@zuplo/cli 6.73.18 → 6.73.20

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.
@@ -32,7 +32,7 @@ const __dirname = dirname(__filename);
32
32
 
33
33
  var RGt=Object.create;var cV=Object.defineProperty;var MGt=Object.getOwnPropertyDescriptor;var jGt=Object.getOwnPropertyNames;var BGt=Object.getPrototypeOf,UGt=Object.prototype.hasOwnProperty;var t=(s,o)=>cV(s,"name",{value:o,configurable:!0}),uo=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(o,f)=>(typeof require<"u"?require:o)[f]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var zGt=(s,o,f)=>()=>{if(f)throw f[0];try{return s&&(o=s(s=0)),o}catch(d){throw f=[d],d}};var ar=(s,o)=>()=>{try{return o||s((o={exports:{}}).exports,o),o.exports}catch(f){throw o=0,f}},Ytt=(s,o)=>{for(var f in o)cV(s,f,{get:o[f],enumerable:!0})},Ktt=(s,o,f,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let y of jGt(o))!UGt.call(s,y)&&y!==f&&cV(s,y,{get:()=>o[y],enumerable:!(d=MGt(o,y))||d.enumerable});return s};var B_=(s,o,f)=>(f=s!=null?RGt(BGt(s)):{},Ktt(o||!s||!s.__esModule?cV(f,"default",{value:s,enumerable:!0}):f,s)),Wu=s=>Ktt(cV({},"__esModule",{value:!0}),s);var Xtt=ar((Qxr,$Gt)=>{$Gt.exports={name:"dotenv",version:"16.5.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var noe=ar((eEr,MP)=>{var dPe=uo("fs"),mPe=uo("path"),JGt=uo("os"),WGt=uo("crypto"),qGt=Xtt(),Qtt=qGt.version,VGt=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function HGt(s){let o={},f=s.toString();f=f.replace(/\r\n?/mg,`
34
34
  `);let d;for(;(d=VGt.exec(f))!=null;){let y=d[1],x=d[2]||"";x=x.trim();let P=x[0];x=x.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),P==='"'&&(x=x.replace(/\\n/g,`
35
- `),x=x.replace(/\\r/g,"\r")),o[y]=x}return o}t(HGt,"parse");function GGt(s){let o=trt(s),f=Ih.configDotenv({path:o});if(!f.parsed){let P=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw P.code="MISSING_DATA",P}let d=ert(s).split(","),y=d.length,x;for(let P=0;P<y;P++)try{let F=d[P].trim(),W=KGt(f,F);x=Ih.decrypt(W.ciphertext,W.key);break}catch(F){if(P+1>=y)throw F}return Ih.parse(x)}t(GGt,"_parseVault");function YGt(s){console.log(`[dotenv@${Qtt}][WARN] ${s}`)}t(YGt,"_warn");function lV(s){console.log(`[dotenv@${Qtt}][DEBUG] ${s}`)}t(lV,"_debug");function ert(s){return s&&s.DOTENV_KEY&&s.DOTENV_KEY.length>0?s.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}t(ert,"_dotenvKey");function KGt(s,o){let f;try{f=new URL(o)}catch(F){if(F.code==="ERR_INVALID_URL"){let W=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw W.code="INVALID_DOTENV_KEY",W}throw F}let d=f.password;if(!d){let F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}let y=f.searchParams.get("environment");if(!y){let F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}let x=`DOTENV_VAULT_${y.toUpperCase()}`,P=s.parsed[x];if(!P){let F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${x} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:P,key:d}}t(KGt,"_instructions");function trt(s){let o=null;if(s&&s.path&&s.path.length>0)if(Array.isArray(s.path))for(let f of s.path)dPe.existsSync(f)&&(o=f.endsWith(".vault")?f:`${f}.vault`);else o=s.path.endsWith(".vault")?s.path:`${s.path}.vault`;else o=mPe.resolve(process.cwd(),".env.vault");return dPe.existsSync(o)?o:null}t(trt,"_vaultPath");function Ztt(s){return s[0]==="~"?mPe.join(JGt.homedir(),s.slice(1)):s}t(Ztt,"_resolveHome");function XGt(s){s&&s.debug&&lV("Loading env from encrypted .env.vault");let f=Ih._parseVault(s),d=process.env;return s&&s.processEnv!=null&&(d=s.processEnv),Ih.populate(d,f,s),{parsed:f}}t(XGt,"_configVault");function ZGt(s){let o=mPe.resolve(process.cwd(),".env"),f="utf8",d=!!(s&&s.debug);s&&s.encoding?f=s.encoding:d&&lV("No encoding is specified. UTF-8 is used by default");let y=[o];if(s&&s.path)if(!Array.isArray(s.path))y=[Ztt(s.path)];else{y=[];for(let W of s.path)y.push(Ztt(W))}let x,P={};for(let W of y)try{let G=Ih.parse(dPe.readFileSync(W,{encoding:f}));Ih.populate(P,G,s)}catch(G){d&&lV(`Failed to load ${W} ${G.message}`),x=G}let F=process.env;return s&&s.processEnv!=null&&(F=s.processEnv),Ih.populate(F,P,s),x?{parsed:P,error:x}:{parsed:P}}t(ZGt,"configDotenv");function QGt(s){if(ert(s).length===0)return Ih.configDotenv(s);let o=trt(s);return o?Ih._configVault(s):(YGt(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),Ih.configDotenv(s))}t(QGt,"config");function eYt(s,o){let f=Buffer.from(o.slice(-64),"hex"),d=Buffer.from(s,"base64"),y=d.subarray(0,12),x=d.subarray(-16);d=d.subarray(12,-16);try{let P=WGt.createDecipheriv("aes-256-gcm",f,y);return P.setAuthTag(x),`${P.update(d)}${P.final()}`}catch(P){let F=P instanceof RangeError,W=P.message==="Invalid key length",G=P.message==="Unsupported state or unable to authenticate data";if(F||W){let be=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw be.code="INVALID_DOTENV_KEY",be}else if(G){let be=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw be.code="DECRYPTION_FAILED",be}else throw P}}t(eYt,"decrypt");function tYt(s,o,f={}){let d=!!(f&&f.debug),y=!!(f&&f.override);if(typeof o!="object"){let x=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw x.code="OBJECT_REQUIRED",x}for(let x of Object.keys(o))Object.prototype.hasOwnProperty.call(s,x)?(y===!0&&(s[x]=o[x]),d&&lV(y===!0?`"${x}" is already defined and WAS overwritten`:`"${x}" is already defined and was NOT overwritten`)):s[x]=o[x]}t(tYt,"populate");var Ih={configDotenv:ZGt,_configVault:XGt,_parseVault:GGt,config:QGt,decrypt:eYt,parse:HGt,populate:tYt};MP.exports.configDotenv=Ih.configDotenv;MP.exports._configVault=Ih._configVault;MP.exports._parseVault=Ih._parseVault;MP.exports.config=Ih.config;MP.exports.decrypt=Ih.decrypt;MP.exports.parse=Ih.parse;MP.exports.populate=Ih.populate;MP.exports=Ih});var Trt=ar((iCr,CPe)=>{var brt=process.argv||[],poe=process.env,bYt=!("NO_COLOR"in poe||brt.includes("--no-color"))&&("FORCE_COLOR"in poe||brt.includes("--color")||process.platform==="win32"||uo!=null&&uo("tty").isatty(1)&&poe.TERM!=="dumb"||"CI"in poe),SYt=t((s,o,f=s)=>d=>{let y=""+d,x=y.indexOf(o,s.length);return~x?s+TYt(y,o,f,x)+o:s+y+o},"formatter"),TYt=t((s,o,f,d)=>{let y="",x=0;do y+=s.substring(x,d)+f,x=d+o.length,d=s.indexOf(o,x);while(~d);return y+s.substring(x)},"replaceClose"),Srt=t((s=bYt)=>{let o=s?SYt:()=>String;return{isColorSupported:s,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}},"createColors");CPe.exports=Srt();CPe.exports.createColors=Srt});var xrt=ar(doe=>{Object.defineProperty(doe,"__esModule",{value:!0});doe.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;doe.matchToToken=function(s){var o={type:"invalid",value:s[0],closed:void 0};return s[1]?(o.type="string",o.closed=!!(s[3]||s[4])):s[5]?o.type="comment":s[6]?(o.type="comment",o.closed=!!s[7]):s[8]?o.type="regex":s[9]?o.type="number":s[10]?o.type="name":s[11]?o.type="punctuator":s[12]&&(o.type="whitespace"),o}});var Drt=ar(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:!0});pV.isIdentifierChar=wrt;pV.isIdentifierName=kYt;pV.isIdentifierStart=krt;var wPe="\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-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",Ert="\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\u0897-\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",xYt=new RegExp("["+wPe+"]"),EYt=new RegExp("["+wPe+Ert+"]");wPe=Ert=null;var Crt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],CYt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function kPe(s,o){let f=65536;for(let d=0,y=o.length;d<y;d+=2){if(f+=o[d],f>s)return!1;if(f+=o[d+1],f>=s)return!0}return!1}t(kPe,"isInAstralSet");function krt(s){return s<65?s===36:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&xYt.test(String.fromCharCode(s)):kPe(s,Crt)}t(krt,"isIdentifierStart");function wrt(s){return s<48?s===36:s<58?!0:s<65?!1:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&EYt.test(String.fromCharCode(s)):kPe(s,Crt)||kPe(s,CYt)}t(wrt,"isIdentifierChar");function kYt(s){let o=!0;for(let f=0;f<s.length;f++){let d=s.charCodeAt(f);if((d&64512)===55296&&f+1<s.length){let y=s.charCodeAt(++f);(y&64512)===56320&&(d=65536+((d&1023)<<10)+(y&1023))}if(o){if(o=!1,!krt(d))return!1}else if(!wrt(d))return!1}return!o}t(kYt,"isIdentifierName")});var Irt=ar(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0});pO.isKeyword=NYt;pO.isReservedWord=Prt;pO.isStrictBindOnlyReservedWord=Nrt;pO.isStrictBindReservedWord=AYt;pO.isStrictReservedWord=Art;var DPe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},wYt=new Set(DPe.keyword),DYt=new Set(DPe.strict),PYt=new Set(DPe.strictBind);function Prt(s,o){return o&&s==="await"||s==="enum"}t(Prt,"isReservedWord");function Art(s,o){return Prt(s,o)||DYt.has(s)}t(Art,"isStrictReservedWord");function Nrt(s){return PYt.has(s)}t(Nrt,"isStrictBindOnlyReservedWord");function AYt(s,o){return Art(s,o)||Nrt(s)}t(AYt,"isStrictBindReservedWord");function NYt(s){return wYt.has(s)}t(NYt,"isKeyword")});var Ort=ar(Nk=>{"use strict";Object.defineProperty(Nk,"__esModule",{value:!0});Object.defineProperty(Nk,"isIdentifierChar",{enumerable:!0,get:t(function(){return PPe.isIdentifierChar},"get")});Object.defineProperty(Nk,"isIdentifierName",{enumerable:!0,get:t(function(){return PPe.isIdentifierName},"get")});Object.defineProperty(Nk,"isIdentifierStart",{enumerable:!0,get:t(function(){return PPe.isIdentifierStart},"get")});Object.defineProperty(Nk,"isKeyword",{enumerable:!0,get:t(function(){return dV.isKeyword},"get")});Object.defineProperty(Nk,"isReservedWord",{enumerable:!0,get:t(function(){return dV.isReservedWord},"get")});Object.defineProperty(Nk,"isStrictBindOnlyReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictBindOnlyReservedWord},"get")});Object.defineProperty(Nk,"isStrictBindReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictBindReservedWord},"get")});Object.defineProperty(Nk,"isStrictReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictReservedWord},"get")});var PPe=Drt(),dV=Irt()});var Jrt=ar(mV=>{"use strict";Object.defineProperty(mV,"__esModule",{value:!0});var APe=Trt(),Frt=xrt(),Lrt=Ort();function IYt(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:APe.isColorSupported}t(IYt,"isColorSupported");var moe=t((s,o)=>f=>s(o(f)),"compose");function jrt(s){return{keyword:s.cyan,capitalized:s.yellow,jsxIdentifier:s.yellow,punctuator:s.yellow,number:s.magenta,string:s.green,regex:s.magenta,comment:s.gray,invalid:moe(moe(s.white,s.bgRed),s.bold),gutter:s.gray,marker:moe(s.red,s.bold),message:moe(s.red,s.bold),reset:s.reset}}t(jrt,"buildDefs");var OYt=jrt(APe.createColors(!0)),FYt=jrt(APe.createColors(!1));function Brt(s){return s?OYt:FYt}t(Brt,"getDefs");var LYt=new Set(["as","async","from","get","of","set"]),RYt=/\r\n|[\n\r\u2028\u2029]/,MYt=/^[()[\]{}]$/,Urt;{let s=/^[a-z][\w-]*$/i,o=t(function(f,d,y){if(f.type==="name"){if(Lrt.isKeyword(f.value)||Lrt.isStrictReservedWord(f.value,!0)||LYt.has(f.value))return"keyword";if(s.test(f.value)&&(y[d-1]==="<"||y.slice(d-2,d)==="</"))return"jsxIdentifier";if(f.value[0]!==f.value[0].toLowerCase())return"capitalized"}return f.type==="punctuator"&&MYt.test(f.value)?"bracket":f.type==="invalid"&&(f.value==="@"||f.value==="#")?"punctuator":f.type},"getTokenType");Urt=t(function*(f){let d;for(;d=Frt.default.exec(f);){let y=Frt.matchToToken(d);yield{type:o(y,d.index,f),value:y.value}}},"tokenize")}function zrt(s){if(s==="")return"";let o=Brt(!0),f="";for(let{type:d,value:y}of Urt(s))d in o?f+=y.split(RYt).map(x=>o[d](x)).join(`
35
+ `),x=x.replace(/\\r/g,"\r")),o[y]=x}return o}t(HGt,"parse");function GGt(s){let o=trt(s),f=Ih.configDotenv({path:o});if(!f.parsed){let P=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw P.code="MISSING_DATA",P}let d=ert(s).split(","),y=d.length,x;for(let P=0;P<y;P++)try{let F=d[P].trim(),W=KGt(f,F);x=Ih.decrypt(W.ciphertext,W.key);break}catch(F){if(P+1>=y)throw F}return Ih.parse(x)}t(GGt,"_parseVault");function YGt(s){console.log(`[dotenv@${Qtt}][WARN] ${s}`)}t(YGt,"_warn");function lV(s){console.log(`[dotenv@${Qtt}][DEBUG] ${s}`)}t(lV,"_debug");function ert(s){return s&&s.DOTENV_KEY&&s.DOTENV_KEY.length>0?s.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}t(ert,"_dotenvKey");function KGt(s,o){let f;try{f=new URL(o)}catch(F){if(F.code==="ERR_INVALID_URL"){let W=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw W.code="INVALID_DOTENV_KEY",W}throw F}let d=f.password;if(!d){let F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}let y=f.searchParams.get("environment");if(!y){let F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}let x=`DOTENV_VAULT_${y.toUpperCase()}`,P=s.parsed[x];if(!P){let F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${x} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:P,key:d}}t(KGt,"_instructions");function trt(s){let o=null;if(s&&s.path&&s.path.length>0)if(Array.isArray(s.path))for(let f of s.path)dPe.existsSync(f)&&(o=f.endsWith(".vault")?f:`${f}.vault`);else o=s.path.endsWith(".vault")?s.path:`${s.path}.vault`;else o=mPe.resolve(process.cwd(),".env.vault");return dPe.existsSync(o)?o:null}t(trt,"_vaultPath");function Ztt(s){return s[0]==="~"?mPe.join(JGt.homedir(),s.slice(1)):s}t(Ztt,"_resolveHome");function XGt(s){s&&s.debug&&lV("Loading env from encrypted .env.vault");let f=Ih._parseVault(s),d=process.env;return s&&s.processEnv!=null&&(d=s.processEnv),Ih.populate(d,f,s),{parsed:f}}t(XGt,"_configVault");function ZGt(s){let o=mPe.resolve(process.cwd(),".env"),f="utf8",d=!!(s&&s.debug);s&&s.encoding?f=s.encoding:d&&lV("No encoding is specified. UTF-8 is used by default");let y=[o];if(s&&s.path)if(!Array.isArray(s.path))y=[Ztt(s.path)];else{y=[];for(let W of s.path)y.push(Ztt(W))}let x,P={};for(let W of y)try{let G=Ih.parse(dPe.readFileSync(W,{encoding:f}));Ih.populate(P,G,s)}catch(G){d&&lV(`Failed to load ${W} ${G.message}`),x=G}let F=process.env;return s&&s.processEnv!=null&&(F=s.processEnv),Ih.populate(F,P,s),x?{parsed:P,error:x}:{parsed:P}}t(ZGt,"configDotenv");function QGt(s){if(ert(s).length===0)return Ih.configDotenv(s);let o=trt(s);return o?Ih._configVault(s):(YGt(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),Ih.configDotenv(s))}t(QGt,"config");function eYt(s,o){let f=Buffer.from(o.slice(-64),"hex"),d=Buffer.from(s,"base64"),y=d.subarray(0,12),x=d.subarray(-16);d=d.subarray(12,-16);try{let P=WGt.createDecipheriv("aes-256-gcm",f,y);return P.setAuthTag(x),`${P.update(d)}${P.final()}`}catch(P){let F=P instanceof RangeError,W=P.message==="Invalid key length",G=P.message==="Unsupported state or unable to authenticate data";if(F||W){let be=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw be.code="INVALID_DOTENV_KEY",be}else if(G){let be=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw be.code="DECRYPTION_FAILED",be}else throw P}}t(eYt,"decrypt");function tYt(s,o,f={}){let d=!!(f&&f.debug),y=!!(f&&f.override);if(typeof o!="object"){let x=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw x.code="OBJECT_REQUIRED",x}for(let x of Object.keys(o))Object.prototype.hasOwnProperty.call(s,x)?(y===!0&&(s[x]=o[x]),d&&lV(y===!0?`"${x}" is already defined and WAS overwritten`:`"${x}" is already defined and was NOT overwritten`)):s[x]=o[x]}t(tYt,"populate");var Ih={configDotenv:ZGt,_configVault:XGt,_parseVault:GGt,config:QGt,decrypt:eYt,parse:HGt,populate:tYt};MP.exports.configDotenv=Ih.configDotenv;MP.exports._configVault=Ih._configVault;MP.exports._parseVault=Ih._parseVault;MP.exports.config=Ih.config;MP.exports.decrypt=Ih.decrypt;MP.exports.parse=Ih.parse;MP.exports.populate=Ih.populate;MP.exports=Ih});var Trt=ar((sCr,CPe)=>{var brt=process.argv||[],poe=process.env,bYt=!("NO_COLOR"in poe||brt.includes("--no-color"))&&("FORCE_COLOR"in poe||brt.includes("--color")||process.platform==="win32"||uo!=null&&uo("tty").isatty(1)&&poe.TERM!=="dumb"||"CI"in poe),SYt=t((s,o,f=s)=>d=>{let y=""+d,x=y.indexOf(o,s.length);return~x?s+TYt(y,o,f,x)+o:s+y+o},"formatter"),TYt=t((s,o,f,d)=>{let y="",x=0;do y+=s.substring(x,d)+f,x=d+o.length,d=s.indexOf(o,x);while(~d);return y+s.substring(x)},"replaceClose"),Srt=t((s=bYt)=>{let o=s?SYt:()=>String;return{isColorSupported:s,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}},"createColors");CPe.exports=Srt();CPe.exports.createColors=Srt});var xrt=ar(doe=>{Object.defineProperty(doe,"__esModule",{value:!0});doe.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;doe.matchToToken=function(s){var o={type:"invalid",value:s[0],closed:void 0};return s[1]?(o.type="string",o.closed=!!(s[3]||s[4])):s[5]?o.type="comment":s[6]?(o.type="comment",o.closed=!!s[7]):s[8]?o.type="regex":s[9]?o.type="number":s[10]?o.type="name":s[11]?o.type="punctuator":s[12]&&(o.type="whitespace"),o}});var Drt=ar(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:!0});pV.isIdentifierChar=wrt;pV.isIdentifierName=kYt;pV.isIdentifierStart=krt;var wPe="\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-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",Ert="\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\u0897-\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",xYt=new RegExp("["+wPe+"]"),EYt=new RegExp("["+wPe+Ert+"]");wPe=Ert=null;var Crt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],CYt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function kPe(s,o){let f=65536;for(let d=0,y=o.length;d<y;d+=2){if(f+=o[d],f>s)return!1;if(f+=o[d+1],f>=s)return!0}return!1}t(kPe,"isInAstralSet");function krt(s){return s<65?s===36:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&xYt.test(String.fromCharCode(s)):kPe(s,Crt)}t(krt,"isIdentifierStart");function wrt(s){return s<48?s===36:s<58?!0:s<65?!1:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&EYt.test(String.fromCharCode(s)):kPe(s,Crt)||kPe(s,CYt)}t(wrt,"isIdentifierChar");function kYt(s){let o=!0;for(let f=0;f<s.length;f++){let d=s.charCodeAt(f);if((d&64512)===55296&&f+1<s.length){let y=s.charCodeAt(++f);(y&64512)===56320&&(d=65536+((d&1023)<<10)+(y&1023))}if(o){if(o=!1,!krt(d))return!1}else if(!wrt(d))return!1}return!o}t(kYt,"isIdentifierName")});var Irt=ar(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0});pO.isKeyword=NYt;pO.isReservedWord=Prt;pO.isStrictBindOnlyReservedWord=Nrt;pO.isStrictBindReservedWord=AYt;pO.isStrictReservedWord=Art;var DPe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},wYt=new Set(DPe.keyword),DYt=new Set(DPe.strict),PYt=new Set(DPe.strictBind);function Prt(s,o){return o&&s==="await"||s==="enum"}t(Prt,"isReservedWord");function Art(s,o){return Prt(s,o)||DYt.has(s)}t(Art,"isStrictReservedWord");function Nrt(s){return PYt.has(s)}t(Nrt,"isStrictBindOnlyReservedWord");function AYt(s,o){return Art(s,o)||Nrt(s)}t(AYt,"isStrictBindReservedWord");function NYt(s){return wYt.has(s)}t(NYt,"isKeyword")});var Ort=ar(Nk=>{"use strict";Object.defineProperty(Nk,"__esModule",{value:!0});Object.defineProperty(Nk,"isIdentifierChar",{enumerable:!0,get:t(function(){return PPe.isIdentifierChar},"get")});Object.defineProperty(Nk,"isIdentifierName",{enumerable:!0,get:t(function(){return PPe.isIdentifierName},"get")});Object.defineProperty(Nk,"isIdentifierStart",{enumerable:!0,get:t(function(){return PPe.isIdentifierStart},"get")});Object.defineProperty(Nk,"isKeyword",{enumerable:!0,get:t(function(){return dV.isKeyword},"get")});Object.defineProperty(Nk,"isReservedWord",{enumerable:!0,get:t(function(){return dV.isReservedWord},"get")});Object.defineProperty(Nk,"isStrictBindOnlyReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictBindOnlyReservedWord},"get")});Object.defineProperty(Nk,"isStrictBindReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictBindReservedWord},"get")});Object.defineProperty(Nk,"isStrictReservedWord",{enumerable:!0,get:t(function(){return dV.isStrictReservedWord},"get")});var PPe=Drt(),dV=Irt()});var Jrt=ar(mV=>{"use strict";Object.defineProperty(mV,"__esModule",{value:!0});var APe=Trt(),Frt=xrt(),Lrt=Ort();function IYt(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:APe.isColorSupported}t(IYt,"isColorSupported");var moe=t((s,o)=>f=>s(o(f)),"compose");function jrt(s){return{keyword:s.cyan,capitalized:s.yellow,jsxIdentifier:s.yellow,punctuator:s.yellow,number:s.magenta,string:s.green,regex:s.magenta,comment:s.gray,invalid:moe(moe(s.white,s.bgRed),s.bold),gutter:s.gray,marker:moe(s.red,s.bold),message:moe(s.red,s.bold),reset:s.reset}}t(jrt,"buildDefs");var OYt=jrt(APe.createColors(!0)),FYt=jrt(APe.createColors(!1));function Brt(s){return s?OYt:FYt}t(Brt,"getDefs");var LYt=new Set(["as","async","from","get","of","set"]),RYt=/\r\n|[\n\r\u2028\u2029]/,MYt=/^[()[\]{}]$/,Urt;{let s=/^[a-z][\w-]*$/i,o=t(function(f,d,y){if(f.type==="name"){if(Lrt.isKeyword(f.value)||Lrt.isStrictReservedWord(f.value,!0)||LYt.has(f.value))return"keyword";if(s.test(f.value)&&(y[d-1]==="<"||y.slice(d-2,d)==="</"))return"jsxIdentifier";if(f.value[0]!==f.value[0].toLowerCase())return"capitalized"}return f.type==="punctuator"&&MYt.test(f.value)?"bracket":f.type==="invalid"&&(f.value==="@"||f.value==="#")?"punctuator":f.type},"getTokenType");Urt=t(function*(f){let d;for(;d=Frt.default.exec(f);){let y=Frt.matchToToken(d);yield{type:o(y,d.index,f),value:y.value}}},"tokenize")}function zrt(s){if(s==="")return"";let o=Brt(!0),f="";for(let{type:d,value:y}of Urt(s))d in o?f+=y.split(RYt).map(x=>o[d](x)).join(`
36
36
  `):f+=y;return f}t(zrt,"highlight");var Rrt=!1,Mrt=/\r\n|[\n\r\u2028\u2029]/;function jYt(s,o,f){let d=Object.assign({column:0,line:-1},s.start),y=Object.assign({},d,s.end),{linesAbove:x=2,linesBelow:P=3}=f||{},F=d.line,W=d.column,G=y.line,be=y.column,de=Math.max(F-(x+1),0),se=Math.min(o.length,G+P);F===-1&&(de=0),G===-1&&(se=o.length);let Xe=G-F,Ue={};if(Xe)for(let je=0;je<=Xe;je++){let Vt=je+F;if(!W)Ue[Vt]=!0;else if(je===0){let Ut=o[Vt-1].length;Ue[Vt]=[W,Ut-W+1]}else if(je===Xe)Ue[Vt]=[0,be];else{let Ut=o[Vt-je].length;Ue[Vt]=[0,Ut]}}else W===be?W?Ue[F]=[W,0]:Ue[F]=!0:Ue[F]=[W,be-W];return{start:de,end:se,markerLines:Ue}}t(jYt,"getMarkerLines");function $rt(s,o,f={}){let d=f.forceColor||IYt()&&f.highlightCode,y=Brt(d),x=s.split(Mrt),{start:P,end:F,markerLines:W}=jYt(o,x,f),G=o.start&&typeof o.start.column=="number",be=String(F).length,se=(d?zrt(s):s).split(Mrt,F).slice(P,F).map((Xe,Ue)=>{let je=P+1+Ue,Ut=` ${` ${je}`.slice(-be)} |`,Ir=W[je],wn=!W[je+1];if(Ir){let sn="";if(Array.isArray(Ir)){let Jn=Xe.slice(0,Math.max(Ir[0]-1,0)).replace(/[^\t]/g," "),kr=Ir[1]||1;sn=[`
37
37
  `,y.gutter(Ut.replace(/\d/g," "))," ",Jn,y.marker("^").repeat(kr)].join(""),wn&&f.message&&(sn+=" "+y.message(f.message))}return[y.marker(">"),y.gutter(Ut),Xe.length>0?` ${Xe}`:"",sn].join("")}else return` ${y.gutter(Ut)}${Xe.length>0?` ${Xe}`:""}`}).join(`
38
38
  `);return f.message&&!G&&(se=`${" ".repeat(be+1)}${f.message}
@@ -58,29 +58,29 @@ Expecting `+In.join(", ")+", got '"+(this.terminals_[sn]||sn)+"'":NT="Parse erro
58
58
  return undefined
59
59
  }
60
60
  `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:t(function(o){var f=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs(o,0,d);var y=this.popStack();d.splice(1,0,y),this.push(this.source.functionCall(f,"call",d))},"blockValue"),ambiguousBlockValue:t(function(){var o=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var d=this.topStack();f.splice(1,0,d),this.pushSource(["if (!",this.lastHelper,") { ",d," = ",this.source.functionCall(o,"call",f),"}"])},"ambiguousBlockValue"),appendContent:t(function(o){this.pendingContent?o=this.pendingContent+o:this.pendingLocation=this.source.currentLocation,this.pendingContent=o},"appendContent"),append:t(function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var o=this.popStack();this.pushSource(["if (",o," != null) { ",this.appendToBuffer(o,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:t(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:t(function(o){this.lastContext=o},"getContext"),pushContext:t(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:t(function(o,f,d,y){var x=0;!y&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(o[x++])):this.pushContext(),this.resolvePath("context",o,x,f,d)},"lookupOnContext"),lookupBlockParam:t(function(o,f){this.useBlockParams=!0,this.push(["blockParams[",o[0],"][",o[1],"]"]),this.resolvePath("context",f,1)},"lookupBlockParam"),lookupData:t(function(o,f,d){o?this.pushStackLiteral("container.data(data, "+o+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,d)},"lookupData"),resolvePath:t(function(o,f,d,y,x){var P=this;if(this.options.strict||this.options.assumeObjects){this.push(Ger(this.options.strict&&x,this,f,d,o));return}for(var F=f.length;d<F;d++)this.replaceStack(function(W){var G=P.nameLookup(W,f[d],o);return y?[" && ",G]:[" != null ? ",G," : ",W]})},"resolvePath"),resolvePossibleLambda:t(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:t(function(o,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof o=="string"?this.pushString(o):this.pushStackLiteral(o))},"pushStringParam"),emptyHash:t(function(o){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(o?"undefined":"{}")},"emptyHash"),pushHash:t(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:t(function(){var o=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(o.ids)),this.stringParams&&(this.push(this.objectLiteral(o.contexts)),this.push(this.objectLiteral(o.types))),this.push(this.objectLiteral(o.values))},"popHash"),pushString:t(function(o){this.pushStackLiteral(this.quotedString(o))},"pushString"),pushLiteral:t(function(o){this.pushStackLiteral(o)},"pushLiteral"),pushProgram:t(function(o){o!=null?this.pushStackLiteral(this.programExpression(o)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:t(function(o,f){var d=this.nameLookup("decorators",f,"decorator"),y=this.setupHelperArgs(f,o);this.decorators.push(["fn = ",this.decorators.functionCall(d,"",["fn","props","container",y])," || fn;"])},"registerDecorator"),invokeHelper:t(function(o,f,d){var y=this.popStack(),x=this.setupHelper(o,f),P=[];d&&P.push(x.name),P.push(y),this.options.strict||P.push(this.aliasable("container.hooks.helperMissing"));var F=["(",this.itemsSeparatedBy(P,"||"),")"],W=this.source.functionCall(F,"call",x.callParams);this.push(W)},"invokeHelper"),itemsSeparatedBy:t(function(o,f){var d=[];d.push(o[0]);for(var y=1;y<o.length;y++)d.push(f,o[y]);return d},"itemsSeparatedBy"),invokeKnownHelper:t(function(o,f){var d=this.setupHelper(o,f);this.push(this.source.functionCall(d.name,"call",d.callParams))},"invokeKnownHelper"),invokeAmbiguous:t(function(o,f){this.useRegister("helper");var d=this.popStack();this.emptyHash();var y=this.setupHelper(0,o,f),x=this.lastHelper=this.nameLookup("helpers",o,"helper"),P=["(","(helper = ",x," || ",d,")"];this.options.strict||(P[0]="(helper = ",P.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",P,y.paramsInit?["),(",y.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",y.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:t(function(o,f,d){var y=[],x=this.setupParams(f,1,y);o&&(f=this.popStack(),delete x.name),d&&(x.indent=JSON.stringify(d)),x.helpers="helpers",x.partials="partials",x.decorators="container.decorators",o?y.unshift(f):y.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(x.depths="depths"),x=this.objectLiteral(x),y.push(x),this.push(this.source.functionCall("container.invokePartial","",y))},"invokePartial"),assignToHash:t(function(o){var f=this.popStack(),d=void 0,y=void 0,x=void 0;this.trackIds&&(x=this.popStack()),this.stringParams&&(y=this.popStack(),d=this.popStack());var P=this.hash;d&&(P.contexts[o]=d),y&&(P.types[o]=y),x&&(P.ids[o]=x),P.values[o]=f},"assignToHash"),pushId:t(function(o,f,d){o==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(d?" + "+JSON.stringify("."+d):"")):o==="PathExpression"?this.pushString(f):o==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:X9,compileChildren:t(function(o,f){for(var d=o.children,y=void 0,x=void 0,P=0,F=d.length;P<F;P++){y=d[P],x=new this.compiler;var W=this.matchExistingProgram(y);if(W==null){this.context.programs.push("");var G=this.context.programs.length;y.index=G,y.name="program"+G,this.context.programs[G]=x.compile(y,f,this.context,!this.precompile),this.context.decorators[G]=x.decorators,this.context.environments[G]=y,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams,y.useDepths=this.useDepths,y.useBlockParams=this.useBlockParams}else y.index=W.index,y.name="program"+W.index,this.useDepths=this.useDepths||W.useDepths,this.useBlockParams=this.useBlockParams||W.useBlockParams}},"compileChildren"),matchExistingProgram:t(function(o){for(var f=0,d=this.context.environments.length;f<d;f++){var y=this.context.environments[f];if(y&&y.equals(o))return y}},"matchExistingProgram"),programExpression:t(function(o){var f=this.environment.children[o],d=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths"),"container.program("+d.join(", ")+")"},"programExpression"),useRegister:t(function(o){this.registers[o]||(this.registers[o]=!0,this.registers.list.push(o))},"useRegister"),push:t(function(o){return o instanceof K9||(o=this.source.wrap(o)),this.inlineStack.push(o),o},"push"),pushStackLiteral:t(function(o){this.push(new K9(o))},"pushStackLiteral"),pushSource:t(function(o){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),o&&this.source.push(o)},"pushSource"),replaceStack:t(function(o){var f=["("],d=void 0,y=void 0,x=void 0;if(!this.isInline())throw new UAe.default("replaceStack on non-inline");var P=this.popStack(!0);if(P instanceof K9)d=[P.value],f=["(",d],x=!0;else{y=!0;var F=this.incrStack();f=["((",this.push(F)," = ",P,")"],d=this.topStack()}var W=o.call(this,d);x||this.popStack(),y&&this.stackSlot--,this.push(f.concat(W,")"))},"replaceStack"),incrStack:t(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:t(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:t(function(){var o=this.inlineStack;this.inlineStack=[];for(var f=0,d=o.length;f<d;f++){var y=o[f];if(y instanceof K9)this.compileStack.push(y);else{var x=this.incrStack();this.pushSource([x," = ",y,";"]),this.compileStack.push(x)}}},"flushInline"),isInline:t(function(){return this.inlineStack.length},"isInline"),popStack:t(function(o){var f=this.isInline(),d=(f?this.inlineStack:this.compileStack).pop();if(!o&&d instanceof K9)return d.value;if(!f){if(!this.stackSlot)throw new UAe.default("Invalid stack pop");this.stackSlot--}return d},"popStack"),topStack:t(function(){var o=this.isInline()?this.inlineStack:this.compileStack,f=o[o.length-1];return f instanceof K9?f.value:f},"topStack"),contextName:t(function(o){return this.useDepths&&o?"depths["+o+"]":"depth"+o},"contextName"),quotedString:t(function(o){return this.source.quotedString(o)},"quotedString"),objectLiteral:t(function(o){return this.source.objectLiteral(o)},"objectLiteral"),aliasable:t(function(o){var f=this.aliases[o];return f?(f.referenceCount++,f):(f=this.aliases[o]=this.source.wrap(o),f.aliasable=!0,f.referenceCount=1,f)},"aliasable"),setupHelper:t(function(o,f,d){var y=[],x=this.setupHelperArgs(f,o,y,d),P=this.nameLookup("helpers",f,"helper"),F=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:y,paramsInit:x,name:P,callParams:[F].concat(y)}},"setupHelper"),setupParams:t(function(o,f,d){var y={},x=[],P=[],F=[],W=!d,G=void 0;W&&(d=[]),y.name=this.quotedString(o),y.hash=this.popStack(),this.trackIds&&(y.hashIds=this.popStack()),this.stringParams&&(y.hashTypes=this.popStack(),y.hashContexts=this.popStack());var be=this.popStack(),de=this.popStack();(de||be)&&(y.fn=de||"container.noop",y.inverse=be||"container.noop");for(var se=f;se--;)G=this.popStack(),d[se]=G,this.trackIds&&(F[se]=this.popStack()),this.stringParams&&(P[se]=this.popStack(),x[se]=this.popStack());return W&&(y.args=this.source.generateArray(d)),this.trackIds&&(y.ids=this.source.generateArray(F)),this.stringParams&&(y.types=this.source.generateArray(P),y.contexts=this.source.generateArray(x)),this.options.data&&(y.data="data"),this.useBlockParams&&(y.blockParams="blockParams"),y},"setupParams"),setupHelperArgs:t(function(o,f,d,y){var x=this.setupParams(o,f,d);return x.loc=JSON.stringify(this.source.currentLocation),x=this.objectLiteral(x),y?(this.useRegister("options"),d.push("options"),["options=",x]):d?(d.push(x),""):x},"setupHelperArgs")};(function(){for(var s="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),o=X9.RESERVED_WORDS={},f=0,d=s.length;f<d;f++)o[s[f]]=!0})();X9.isValidJavaScriptVariableName=function(s){return!X9.RESERVED_WORDS[s]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(s)};function Ger(s,o,f,d,y){var x=o.popStack(),P=f.length;for(s&&P--;d<P;d++)x=o.nameLookup(x,f[d],y);return s?[o.aliasable("container.strict"),"(",x,", ",o.quotedString(f[d]),", ",JSON.stringify(o.source.currentLocation)," )"]:x}t(Ger,"strictLookup");hce.default=X9;Mst.exports=hce.default});var zst=ar((gce,Ust)=>{"use strict";gce.__esModule=!0;function qV(s){return s&&s.__esModule?s:{default:s}}t(qV,"_interopRequireDefault");var Yer=_st(),Ker=qV(Yer),Xer=AAe(),Zer=qV(Xer),zAe=Cst(),$Ae=Pst(),Qer=jst(),etr=qV(Qer),ttr=_ce(),rtr=qV(ttr),ntr=kAe(),itr=qV(ntr),str=Ker.default.create;function Bst(){var s=str();return s.compile=function(o,f){return $Ae.compile(o,f,s)},s.precompile=function(o,f){return $Ae.precompile(o,f,s)},s.AST=Zer.default,s.Compiler=$Ae.Compiler,s.JavaScriptCompiler=etr.default,s.Parser=zAe.parser,s.parse=zAe.parse,s.parseWithoutProcessing=zAe.parseWithoutProcessing,s}t(Bst,"create");var Z9=Bst();Z9.create=Bst;itr.default(Z9);Z9.Visitor=rtr.default;Z9.default=Z9;gce.default=Z9;Ust.exports=gce.default});var $st=ar(yce=>{"use strict";yce.__esModule=!0;yce.print=ltr;yce.PrintVisitor=Zd;function atr(s){return s&&s.__esModule?s:{default:s}}t(atr,"_interopRequireDefault");var otr=_ce(),ctr=atr(otr);function ltr(s){return new Zd().accept(s)}t(ltr,"print");function Zd(){this.padding=0}t(Zd,"PrintVisitor");Zd.prototype=new ctr.default;Zd.prototype.pad=function(s){for(var o="",f=0,d=this.padding;f<d;f++)o+=" ";return o+=s+`
61
- `,o};Zd.prototype.Program=function(s){var o="",f=s.body,d=void 0,y=void 0;if(s.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=s.blockParams.length;d<y;d++)x+=" "+s.blockParams[d];x+=" ]",o+=this.pad(x)}for(d=0,y=f.length;d<y;d++)o+=this.accept(f[d]);return this.padding--,o};Zd.prototype.MustacheStatement=function(s){return this.pad("{{ "+this.SubExpression(s)+" }}")};Zd.prototype.Decorator=function(s){return this.pad("{{ DIRECTIVE "+this.SubExpression(s)+" }}")};Zd.prototype.BlockStatement=Zd.prototype.DecoratorBlock=function(s){var o="";return o+=this.pad((s.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,o+=this.pad(this.SubExpression(s)),s.program&&(o+=this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--),s.inverse&&(s.program&&this.padding++,o+=this.pad("{{^}}"),this.padding++,o+=this.accept(s.inverse),this.padding--,s.program&&this.padding--),this.padding--,o};Zd.prototype.PartialStatement=function(s){var o="PARTIAL:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),this.pad("{{> "+o+" }}")};Zd.prototype.PartialBlockStatement=function(s){var o="PARTIAL BLOCK:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),o+=" "+this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--,this.pad("{{> "+o+" }}")};Zd.prototype.ContentStatement=function(s){return this.pad("CONTENT[ '"+s.value+"' ]")};Zd.prototype.CommentStatement=function(s){return this.pad("{{! '"+s.value+"' }}")};Zd.prototype.SubExpression=function(s){for(var o=s.params,f=[],d=void 0,y=0,x=o.length;y<x;y++)f.push(this.accept(o[y]));return o="["+f.join(", ")+"]",d=s.hash?" "+this.accept(s.hash):"",this.accept(s.path)+" "+o+d};Zd.prototype.PathExpression=function(s){var o=s.parts.join("/");return(s.data?"@":"")+"PATH:"+o};Zd.prototype.StringLiteral=function(s){return'"'+s.value+'"'};Zd.prototype.NumberLiteral=function(s){return"NUMBER{"+s.value+"}"};Zd.prototype.BooleanLiteral=function(s){return"BOOLEAN{"+s.value+"}"};Zd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Zd.prototype.NullLiteral=function(){return"NULL"};Zd.prototype.Hash=function(s){for(var o=s.pairs,f=[],d=0,y=o.length;d<y;d++)f.push(this.accept(o[d]));return"HASH{"+f.join(", ")+"}"};Zd.prototype.HashPair=function(s){return s.key+"="+this.accept(s.value)}});var Vst=ar((lDr,qst)=>{var vce=zst().default,Wst=$st();vce.PrintVisitor=Wst.PrintVisitor;vce.print=Wst.print;qst.exports=vce;function Jst(s,o){var f=uo("fs"),d=f.readFileSync(o,"utf8");s.exports=vce.compile(d)}t(Jst,"extension");typeof uo<"u"&&uo.extensions&&(uo.extensions[".handlebars"]=Jst,uo.extensions[".hbs"]=Jst)});var tM=ar(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var QV=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=QV;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var EO=class extends QV{static{t(this,"Name")}constructor(o){if(super(),!qu.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=EO;var pT=class extends QV{static{t(this,"_Code")}constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((f,d)=>(d instanceof EO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=pT;qu.nil=new pT("");function _at(s,...o){let f=[s[0]],d=0;for(;d<o.length;)ZAe(f,o[d]),f.push(s[++d]);return new pT(f)}t(_at,"_");qu._=_at;var XAe=new pT("+");function pat(s,...o){let f=[eH(s[0])],d=0;for(;d<o.length;)f.push(XAe),ZAe(f,o[d]),f.push(XAe,eH(s[++d]));return Ktr(f),new pT(f)}t(pat,"str");qu.str=pat;function ZAe(s,o){o instanceof pT?s.push(...o._items):o instanceof EO?s.push(o):s.push(Qtr(o))}t(ZAe,"addCodeArg");qu.addCodeArg=ZAe;function Ktr(s){let o=1;for(;o<s.length-1;){if(s[o]===XAe){let f=Xtr(s[o-1],s[o+1]);if(f!==void 0){s.splice(o-1,3,f);continue}s[o++]="+"}o++}}t(Ktr,"optimize");function Xtr(s,o){if(o==='""')return s;if(s==='""')return o;if(typeof s=="string")return o instanceof EO||s[s.length-1]!=='"'?void 0:typeof o!="string"?`${s.slice(0,-1)}${o}"`:o[0]==='"'?s.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(s instanceof EO))return`"${s}${o.slice(1)}`}t(Xtr,"mergeExprItems");function Ztr(s,o){return o.emptyStr()?s:s.emptyStr()?o:pat`${s}${o}`}t(Ztr,"strConcat");qu.strConcat=Ztr;function Qtr(s){return typeof s=="number"||typeof s=="boolean"||s===null?s:eH(Array.isArray(s)?s.join(","):s)}t(Qtr,"interpolate");function err(s){return new pT(eH(s))}t(err,"stringify");qu.stringify=err;function eH(s){return JSON.stringify(s).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(eH,"safeStringify");qu.safeStringify=eH;function trr(s){return typeof s=="string"&&qu.IDENTIFIER.test(s)?new pT(`.${s}`):_at`[${s}]`}t(trr,"getProperty");qu.getProperty=trr;function rrr(s){if(typeof s=="string"&&qu.IDENTIFIER.test(s))return new pT(`${s}`);throw new Error(`CodeGen: invalid export name: ${s}, use explicit $id name mapping`)}t(rrr,"getEsmExportName");qu.getEsmExportName=rrr;function nrr(s){return new pT(s.toString())}t(nrr,"regexpCode");qu.regexpCode=nrr});var xce=ar(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.ValueScope=Kv.ValueScopeName=Kv.Scope=Kv.varKinds=Kv.UsedValueState=void 0;var Yv=tM(),QAe=class extends Error{static{t(this,"ValueError")}constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}},bce;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})(bce||(Kv.UsedValueState=bce={}));Kv.varKinds={const:new Yv.Name("const"),let:new Yv.Name("let"),var:new Yv.Name("var")};var Sce=class{static{t(this,"Scope")}constructor({prefixes:o,parent:f}={}){this._names={},this._prefixes=o,this._parent=f}toName(o){return o instanceof Yv.Name?o:this.name(o)}name(o){return new Yv.Name(this._newName(o))}_newName(o){let f=this._names[o]||this._nameGroup(o);return`${o}${f.index++}`}_nameGroup(o){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}};Kv.Scope=Sce;var Tce=class extends Yv.Name{static{t(this,"ValueScopeName")}constructor(o,f){super(f),this.prefix=o}setValue(o,{property:f,itemIndex:d}){this.value=o,this.scopePath=(0,Yv._)`.${new Yv.Name(f)}[${d}]`}};Kv.ValueScopeName=Tce;var irr=(0,Yv._)`\n`,e6e=class extends Sce{static{t(this,"ValueScope")}constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?irr:Yv.nil}}get(){return this._scope}name(o){return new Tce(o,this._newName(o))}value(o,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(o),{prefix:x}=y,P=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let be=F.get(P);if(be)return be}else F=this._values[x]=new Map;F.set(P,y);let W=this._scope[x]||(this._scope[x]=[]),G=W.length;return W[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(o,f){let d=this._values[o];if(d)return d.get(f)}scopeRefs(o,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Yv._)`${o}${d.scopePath}`})}scopeCode(o=this._values,f,d){return this._reduceValues(o,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(o,f,d={},y){let x=Yv.nil;for(let P in o){let F=o[P];if(!F)continue;let W=d[P]=d[P]||new Map;F.forEach(G=>{if(W.has(G))return;W.set(G,bce.Started);let be=f(G);if(be){let de=this.opts.es5?Kv.varKinds.var:Kv.varKinds.const;x=(0,Yv._)`${x}${de} ${G} = ${be};${this.opts._n}`}else if(be=y?.(G))x=(0,Yv._)`${x}${be}${this.opts._n}`;else throw new QAe(G);W.set(G,bce.Completed)})}return x}};Kv.ValueScope=e6e});var Ec=ar(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var yu=tM(),TE=xce(),aI=tM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return aI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return aI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return aI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return aI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return aI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return aI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return aI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return aI.Name},"get")});var wce=xce();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return wce.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return wce.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return wce.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return wce.varKinds},"get")});Nl.operators={GT:new yu._Code(">"),GTE:new yu._Code(">="),LT:new yu._Code("<"),LTE:new yu._Code("<="),EQ:new yu._Code("==="),NEQ:new yu._Code("!=="),NOT:new yu._Code("!"),OR:new yu._Code("||"),AND:new yu._Code("&&"),ADD:new yu._Code("+")};var XP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(o,f){return this}},t6e=class extends XP{static{t(this,"Def")}constructor(o,f,d){super(),this.varKind=o,this.name=f,this.rhs=d}render({es5:o,_n:f}){let d=o?TE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(o,f){if(o[this.name.str])return this.rhs&&(this.rhs=nM(this.rhs,o,f)),this}get names(){return this.rhs instanceof yu._CodeOrName?this.rhs.names:{}}},Ece=class extends XP{static{t(this,"Assign")}constructor(o,f,d){super(),this.lhs=o,this.rhs=f,this.sideEffects=d}render({_n:o}){return`${this.lhs} = ${this.rhs};`+o}optimizeNames(o,f){if(!(this.lhs instanceof yu.Name&&!o[this.lhs.str]&&!this.sideEffects))return this.rhs=nM(this.rhs,o,f),this}get names(){let o=this.lhs instanceof yu.Name?{}:{...this.lhs.names};return kce(o,this.rhs)}},r6e=class extends Ece{static{t(this,"AssignOp")}constructor(o,f,d,y){super(o,d,y),this.op=f}render({_n:o}){return`${this.lhs} ${this.op}= ${this.rhs};`+o}},n6e=class extends XP{static{t(this,"Label")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`${this.label}:`+o}},i6e=class extends XP{static{t(this,"Break")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`break${this.label?` ${this.label}`:""};`+o}},s6e=class extends XP{static{t(this,"Throw")}constructor(o){super(),this.error=o}render({_n:o}){return`throw ${this.error};`+o}get names(){return this.error.names}},a6e=class extends XP{static{t(this,"AnyCode")}constructor(o){super(),this.code=o}render({_n:o}){return`${this.code};`+o}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(o,f){return this.code=nM(this.code,o,f),this}get names(){return this.code instanceof yu._CodeOrName?this.code.names:{}}},tH=class extends XP{static{t(this,"ParentNode")}constructor(o=[]){super(),this.nodes=o}render(o){return this.nodes.reduce((f,d)=>f+d.render(o),"")}optimizeNodes(){let{nodes:o}=this,f=o.length;for(;f--;){let d=o[f].optimizeNodes();Array.isArray(d)?o.splice(f,1,...d):d?o[f]=d:o.splice(f,1)}return o.length>0?this:void 0}optimizeNames(o,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(o,f)||(srr(o,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((o,f)=>wO(o,f.names),{})}},ZP=class extends tH{static{t(this,"BlockNode")}render(o){return"{"+o._n+super.render(o)+"}"+o._n}},o6e=class extends tH{static{t(this,"Root")}},rM=class extends ZP{static{t(this,"Else")}};rM.kind="else";var CO=class s extends ZP{static{t(this,"If")}constructor(o,f){super(f),this.condition=o}render(o){let f=`if(${this.condition})`+super.render(o);return this.else&&(f+="else "+this.else.render(o)),f}optimizeNodes(){super.optimizeNodes();let o=this.condition;if(o===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new rM(d):d}if(f)return o===!1?f instanceof s?f:f.nodes:this.nodes.length?this:new s(dat(o),f instanceof s?[f]:f.nodes);if(!(o===!1||!this.nodes.length))return this}optimizeNames(o,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(o,f),!!(super.optimizeNames(o,f)||this.else))return this.condition=nM(this.condition,o,f),this}get names(){let o=super.names;return kce(o,this.condition),this.else&&wO(o,this.else.names),o}};CO.kind="if";var kO=class extends ZP{static{t(this,"For")}};kO.kind="for";var c6e=class extends kO{static{t(this,"ForLoop")}constructor(o){super(),this.iteration=o}render(o){return`for(${this.iteration})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iteration=nM(this.iteration,o,f),this}get names(){return wO(super.names,this.iteration.names)}},l6e=class extends kO{static{t(this,"ForRange")}constructor(o,f,d,y){super(),this.varKind=o,this.name=f,this.from=d,this.to=y}render(o){let f=o.es5?TE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(o)}get names(){let o=kce(super.names,this.from);return kce(o,this.to)}},Cce=class extends kO{static{t(this,"ForIter")}constructor(o,f,d,y){super(),this.loop=o,this.varKind=f,this.name=d,this.iterable=y}render(o){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iterable=nM(this.iterable,o,f),this}get names(){return wO(super.names,this.iterable.names)}},rH=class extends ZP{static{t(this,"Func")}constructor(o,f,d){super(),this.name=o,this.args=f,this.async=d}render(o){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(o)}};rH.kind="func";var nH=class extends tH{static{t(this,"Return")}render(o){return"return "+super.render(o)}};nH.kind="return";var u6e=class extends ZP{static{t(this,"Try")}render(o){let f="try"+super.render(o);return this.catch&&(f+=this.catch.render(o)),this.finally&&(f+=this.finally.render(o)),f}optimizeNodes(){var o,f;return super.optimizeNodes(),(o=this.catch)===null||o===void 0||o.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(o,f){var d,y;return super.optimizeNames(o,f),(d=this.catch)===null||d===void 0||d.optimizeNames(o,f),(y=this.finally)===null||y===void 0||y.optimizeNames(o,f),this}get names(){let o=super.names;return this.catch&&wO(o,this.catch.names),this.finally&&wO(o,this.finally.names),o}},iH=class extends ZP{static{t(this,"Catch")}constructor(o){super(),this.error=o}render(o){return`catch(${this.error})`+super.render(o)}};iH.kind="catch";var sH=class extends ZP{static{t(this,"Finally")}render(o){return"finally"+super.render(o)}};sH.kind="finally";var f6e=class{static{t(this,"CodeGen")}constructor(o,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
61
+ `,o};Zd.prototype.Program=function(s){var o="",f=s.body,d=void 0,y=void 0;if(s.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=s.blockParams.length;d<y;d++)x+=" "+s.blockParams[d];x+=" ]",o+=this.pad(x)}for(d=0,y=f.length;d<y;d++)o+=this.accept(f[d]);return this.padding--,o};Zd.prototype.MustacheStatement=function(s){return this.pad("{{ "+this.SubExpression(s)+" }}")};Zd.prototype.Decorator=function(s){return this.pad("{{ DIRECTIVE "+this.SubExpression(s)+" }}")};Zd.prototype.BlockStatement=Zd.prototype.DecoratorBlock=function(s){var o="";return o+=this.pad((s.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,o+=this.pad(this.SubExpression(s)),s.program&&(o+=this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--),s.inverse&&(s.program&&this.padding++,o+=this.pad("{{^}}"),this.padding++,o+=this.accept(s.inverse),this.padding--,s.program&&this.padding--),this.padding--,o};Zd.prototype.PartialStatement=function(s){var o="PARTIAL:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),this.pad("{{> "+o+" }}")};Zd.prototype.PartialBlockStatement=function(s){var o="PARTIAL BLOCK:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),o+=" "+this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--,this.pad("{{> "+o+" }}")};Zd.prototype.ContentStatement=function(s){return this.pad("CONTENT[ '"+s.value+"' ]")};Zd.prototype.CommentStatement=function(s){return this.pad("{{! '"+s.value+"' }}")};Zd.prototype.SubExpression=function(s){for(var o=s.params,f=[],d=void 0,y=0,x=o.length;y<x;y++)f.push(this.accept(o[y]));return o="["+f.join(", ")+"]",d=s.hash?" "+this.accept(s.hash):"",this.accept(s.path)+" "+o+d};Zd.prototype.PathExpression=function(s){var o=s.parts.join("/");return(s.data?"@":"")+"PATH:"+o};Zd.prototype.StringLiteral=function(s){return'"'+s.value+'"'};Zd.prototype.NumberLiteral=function(s){return"NUMBER{"+s.value+"}"};Zd.prototype.BooleanLiteral=function(s){return"BOOLEAN{"+s.value+"}"};Zd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Zd.prototype.NullLiteral=function(){return"NULL"};Zd.prototype.Hash=function(s){for(var o=s.pairs,f=[],d=0,y=o.length;d<y;d++)f.push(this.accept(o[d]));return"HASH{"+f.join(", ")+"}"};Zd.prototype.HashPair=function(s){return s.key+"="+this.accept(s.value)}});var Vst=ar((uDr,qst)=>{var vce=zst().default,Wst=$st();vce.PrintVisitor=Wst.PrintVisitor;vce.print=Wst.print;qst.exports=vce;function Jst(s,o){var f=uo("fs"),d=f.readFileSync(o,"utf8");s.exports=vce.compile(d)}t(Jst,"extension");typeof uo<"u"&&uo.extensions&&(uo.extensions[".handlebars"]=Jst,uo.extensions[".hbs"]=Jst)});var tM=ar(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var QV=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=QV;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var EO=class extends QV{static{t(this,"Name")}constructor(o){if(super(),!qu.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=EO;var pT=class extends QV{static{t(this,"_Code")}constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((f,d)=>(d instanceof EO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=pT;qu.nil=new pT("");function _at(s,...o){let f=[s[0]],d=0;for(;d<o.length;)ZAe(f,o[d]),f.push(s[++d]);return new pT(f)}t(_at,"_");qu._=_at;var XAe=new pT("+");function pat(s,...o){let f=[eH(s[0])],d=0;for(;d<o.length;)f.push(XAe),ZAe(f,o[d]),f.push(XAe,eH(s[++d]));return Ktr(f),new pT(f)}t(pat,"str");qu.str=pat;function ZAe(s,o){o instanceof pT?s.push(...o._items):o instanceof EO?s.push(o):s.push(Qtr(o))}t(ZAe,"addCodeArg");qu.addCodeArg=ZAe;function Ktr(s){let o=1;for(;o<s.length-1;){if(s[o]===XAe){let f=Xtr(s[o-1],s[o+1]);if(f!==void 0){s.splice(o-1,3,f);continue}s[o++]="+"}o++}}t(Ktr,"optimize");function Xtr(s,o){if(o==='""')return s;if(s==='""')return o;if(typeof s=="string")return o instanceof EO||s[s.length-1]!=='"'?void 0:typeof o!="string"?`${s.slice(0,-1)}${o}"`:o[0]==='"'?s.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(s instanceof EO))return`"${s}${o.slice(1)}`}t(Xtr,"mergeExprItems");function Ztr(s,o){return o.emptyStr()?s:s.emptyStr()?o:pat`${s}${o}`}t(Ztr,"strConcat");qu.strConcat=Ztr;function Qtr(s){return typeof s=="number"||typeof s=="boolean"||s===null?s:eH(Array.isArray(s)?s.join(","):s)}t(Qtr,"interpolate");function err(s){return new pT(eH(s))}t(err,"stringify");qu.stringify=err;function eH(s){return JSON.stringify(s).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(eH,"safeStringify");qu.safeStringify=eH;function trr(s){return typeof s=="string"&&qu.IDENTIFIER.test(s)?new pT(`.${s}`):_at`[${s}]`}t(trr,"getProperty");qu.getProperty=trr;function rrr(s){if(typeof s=="string"&&qu.IDENTIFIER.test(s))return new pT(`${s}`);throw new Error(`CodeGen: invalid export name: ${s}, use explicit $id name mapping`)}t(rrr,"getEsmExportName");qu.getEsmExportName=rrr;function nrr(s){return new pT(s.toString())}t(nrr,"regexpCode");qu.regexpCode=nrr});var xce=ar(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.ValueScope=Kv.ValueScopeName=Kv.Scope=Kv.varKinds=Kv.UsedValueState=void 0;var Yv=tM(),QAe=class extends Error{static{t(this,"ValueError")}constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}},bce;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})(bce||(Kv.UsedValueState=bce={}));Kv.varKinds={const:new Yv.Name("const"),let:new Yv.Name("let"),var:new Yv.Name("var")};var Sce=class{static{t(this,"Scope")}constructor({prefixes:o,parent:f}={}){this._names={},this._prefixes=o,this._parent=f}toName(o){return o instanceof Yv.Name?o:this.name(o)}name(o){return new Yv.Name(this._newName(o))}_newName(o){let f=this._names[o]||this._nameGroup(o);return`${o}${f.index++}`}_nameGroup(o){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}};Kv.Scope=Sce;var Tce=class extends Yv.Name{static{t(this,"ValueScopeName")}constructor(o,f){super(f),this.prefix=o}setValue(o,{property:f,itemIndex:d}){this.value=o,this.scopePath=(0,Yv._)`.${new Yv.Name(f)}[${d}]`}};Kv.ValueScopeName=Tce;var irr=(0,Yv._)`\n`,e6e=class extends Sce{static{t(this,"ValueScope")}constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?irr:Yv.nil}}get(){return this._scope}name(o){return new Tce(o,this._newName(o))}value(o,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(o),{prefix:x}=y,P=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let be=F.get(P);if(be)return be}else F=this._values[x]=new Map;F.set(P,y);let W=this._scope[x]||(this._scope[x]=[]),G=W.length;return W[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(o,f){let d=this._values[o];if(d)return d.get(f)}scopeRefs(o,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Yv._)`${o}${d.scopePath}`})}scopeCode(o=this._values,f,d){return this._reduceValues(o,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(o,f,d={},y){let x=Yv.nil;for(let P in o){let F=o[P];if(!F)continue;let W=d[P]=d[P]||new Map;F.forEach(G=>{if(W.has(G))return;W.set(G,bce.Started);let be=f(G);if(be){let de=this.opts.es5?Kv.varKinds.var:Kv.varKinds.const;x=(0,Yv._)`${x}${de} ${G} = ${be};${this.opts._n}`}else if(be=y?.(G))x=(0,Yv._)`${x}${be}${this.opts._n}`;else throw new QAe(G);W.set(G,bce.Completed)})}return x}};Kv.ValueScope=e6e});var Ec=ar(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var yu=tM(),TE=xce(),aI=tM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return aI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return aI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return aI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return aI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return aI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return aI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return aI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return aI.Name},"get")});var wce=xce();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return wce.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return wce.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return wce.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return wce.varKinds},"get")});Nl.operators={GT:new yu._Code(">"),GTE:new yu._Code(">="),LT:new yu._Code("<"),LTE:new yu._Code("<="),EQ:new yu._Code("==="),NEQ:new yu._Code("!=="),NOT:new yu._Code("!"),OR:new yu._Code("||"),AND:new yu._Code("&&"),ADD:new yu._Code("+")};var XP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(o,f){return this}},t6e=class extends XP{static{t(this,"Def")}constructor(o,f,d){super(),this.varKind=o,this.name=f,this.rhs=d}render({es5:o,_n:f}){let d=o?TE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(o,f){if(o[this.name.str])return this.rhs&&(this.rhs=nM(this.rhs,o,f)),this}get names(){return this.rhs instanceof yu._CodeOrName?this.rhs.names:{}}},Ece=class extends XP{static{t(this,"Assign")}constructor(o,f,d){super(),this.lhs=o,this.rhs=f,this.sideEffects=d}render({_n:o}){return`${this.lhs} = ${this.rhs};`+o}optimizeNames(o,f){if(!(this.lhs instanceof yu.Name&&!o[this.lhs.str]&&!this.sideEffects))return this.rhs=nM(this.rhs,o,f),this}get names(){let o=this.lhs instanceof yu.Name?{}:{...this.lhs.names};return kce(o,this.rhs)}},r6e=class extends Ece{static{t(this,"AssignOp")}constructor(o,f,d,y){super(o,d,y),this.op=f}render({_n:o}){return`${this.lhs} ${this.op}= ${this.rhs};`+o}},n6e=class extends XP{static{t(this,"Label")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`${this.label}:`+o}},i6e=class extends XP{static{t(this,"Break")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`break${this.label?` ${this.label}`:""};`+o}},s6e=class extends XP{static{t(this,"Throw")}constructor(o){super(),this.error=o}render({_n:o}){return`throw ${this.error};`+o}get names(){return this.error.names}},a6e=class extends XP{static{t(this,"AnyCode")}constructor(o){super(),this.code=o}render({_n:o}){return`${this.code};`+o}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(o,f){return this.code=nM(this.code,o,f),this}get names(){return this.code instanceof yu._CodeOrName?this.code.names:{}}},tH=class extends XP{static{t(this,"ParentNode")}constructor(o=[]){super(),this.nodes=o}render(o){return this.nodes.reduce((f,d)=>f+d.render(o),"")}optimizeNodes(){let{nodes:o}=this,f=o.length;for(;f--;){let d=o[f].optimizeNodes();Array.isArray(d)?o.splice(f,1,...d):d?o[f]=d:o.splice(f,1)}return o.length>0?this:void 0}optimizeNames(o,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(o,f)||(srr(o,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((o,f)=>wO(o,f.names),{})}},ZP=class extends tH{static{t(this,"BlockNode")}render(o){return"{"+o._n+super.render(o)+"}"+o._n}},o6e=class extends tH{static{t(this,"Root")}},rM=class extends ZP{static{t(this,"Else")}};rM.kind="else";var CO=class s extends ZP{static{t(this,"If")}constructor(o,f){super(f),this.condition=o}render(o){let f=`if(${this.condition})`+super.render(o);return this.else&&(f+="else "+this.else.render(o)),f}optimizeNodes(){super.optimizeNodes();let o=this.condition;if(o===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new rM(d):d}if(f)return o===!1?f instanceof s?f:f.nodes:this.nodes.length?this:new s(dat(o),f instanceof s?[f]:f.nodes);if(!(o===!1||!this.nodes.length))return this}optimizeNames(o,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(o,f),!!(super.optimizeNames(o,f)||this.else))return this.condition=nM(this.condition,o,f),this}get names(){let o=super.names;return kce(o,this.condition),this.else&&wO(o,this.else.names),o}};CO.kind="if";var kO=class extends ZP{static{t(this,"For")}};kO.kind="for";var c6e=class extends kO{static{t(this,"ForLoop")}constructor(o){super(),this.iteration=o}render(o){return`for(${this.iteration})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iteration=nM(this.iteration,o,f),this}get names(){return wO(super.names,this.iteration.names)}},l6e=class extends kO{static{t(this,"ForRange")}constructor(o,f,d,y){super(),this.varKind=o,this.name=f,this.from=d,this.to=y}render(o){let f=o.es5?TE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(o)}get names(){let o=kce(super.names,this.from);return kce(o,this.to)}},Cce=class extends kO{static{t(this,"ForIter")}constructor(o,f,d,y){super(),this.loop=o,this.varKind=f,this.name=d,this.iterable=y}render(o){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iterable=nM(this.iterable,o,f),this}get names(){return wO(super.names,this.iterable.names)}},rH=class extends ZP{static{t(this,"Func")}constructor(o,f,d){super(),this.name=o,this.args=f,this.async=d}render(o){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(o)}};rH.kind="func";var nH=class extends tH{static{t(this,"Return")}render(o){return"return "+super.render(o)}};nH.kind="return";var u6e=class extends ZP{static{t(this,"Try")}render(o){let f="try"+super.render(o);return this.catch&&(f+=this.catch.render(o)),this.finally&&(f+=this.finally.render(o)),f}optimizeNodes(){var o,f;return super.optimizeNodes(),(o=this.catch)===null||o===void 0||o.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(o,f){var d,y;return super.optimizeNames(o,f),(d=this.catch)===null||d===void 0||d.optimizeNames(o,f),(y=this.finally)===null||y===void 0||y.optimizeNames(o,f),this}get names(){let o=super.names;return this.catch&&wO(o,this.catch.names),this.finally&&wO(o,this.finally.names),o}},iH=class extends ZP{static{t(this,"Catch")}constructor(o){super(),this.error=o}render(o){return`catch(${this.error})`+super.render(o)}};iH.kind="catch";var sH=class extends ZP{static{t(this,"Finally")}render(o){return"finally"+super.render(o)}};sH.kind="finally";var f6e=class{static{t(this,"CodeGen")}constructor(o,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
62
62
  `:""},this._extScope=o,this._scope=new TE.Scope({parent:o}),this._nodes=[new o6e]}toString(){return this._root.render(this.opts)}name(o){return this._scope.name(o)}scopeName(o){return this._extScope.name(o)}scopeValue(o,f){let d=this._extScope.value(o,f);return(this._values[d.prefix]||(this._values[d.prefix]=new Set)).add(d),d}getScopeValue(o,f){return this._extScope.getValue(o,f)}scopeRefs(o){return this._extScope.scopeRefs(o,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(o,f,d,y){let x=this._scope.toName(f);return d!==void 0&&y&&(this._constants[x.str]=d),this._leafNode(new t6e(o,x,d)),x}const(o,f,d){return this._def(TE.varKinds.const,o,f,d)}let(o,f,d){return this._def(TE.varKinds.let,o,f,d)}var(o,f,d){return this._def(TE.varKinds.var,o,f,d)}assign(o,f,d){return this._leafNode(new Ece(o,f,d))}add(o,f){return this._leafNode(new r6e(o,Nl.operators.ADD,f))}code(o){return typeof o=="function"?o():o!==yu.nil&&this._leafNode(new a6e(o)),this}object(...o){let f=["{"];for(let[d,y]of o)f.length>1&&f.push(","),f.push(d),(d!==y||this.opts.es5)&&(f.push(":"),(0,yu.addCodeArg)(f,y));return f.push("}"),new yu._Code(f)}if(o,f,d){if(this._blockNode(new CO(o)),f&&d)this.code(f).else().code(d).endIf();else if(f)this.code(f).endIf();else if(d)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(o){return this._elseNode(new CO(o))}else(){return this._elseNode(new rM)}endIf(){return this._endBlockNode(CO,rM)}_for(o,f){return this._blockNode(o),f&&this.code(f).endFor(),this}for(o,f){return this._for(new c6e(o),f)}forRange(o,f,d,y,x=this.opts.es5?TE.varKinds.var:TE.varKinds.let){let P=this._scope.toName(o);return this._for(new l6e(x,P,f,d),()=>y(P))}forOf(o,f,d,y=TE.varKinds.const){let x=this._scope.toName(o);if(this.opts.es5){let P=f instanceof yu.Name?f:this.var("_arr",f);return this.forRange("_i",0,(0,yu._)`${P}.length`,F=>{this.var(x,(0,yu._)`${P}[${F}]`),d(x)})}return this._for(new Cce("of",y,x,f),()=>d(x))}forIn(o,f,d,y=this.opts.es5?TE.varKinds.var:TE.varKinds.const){if(this.opts.ownProperties)return this.forOf(o,(0,yu._)`Object.keys(${f})`,d);let x=this._scope.toName(o);return this._for(new Cce("in",y,x,f),()=>d(x))}endFor(){return this._endBlockNode(kO)}label(o){return this._leafNode(new n6e(o))}break(o){return this._leafNode(new i6e(o))}return(o){let f=new nH;if(this._blockNode(f),this.code(o),f.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(nH)}try(o,f,d){if(!f&&!d)throw new Error('CodeGen: "try" without "catch" and "finally"');let y=new u6e;if(this._blockNode(y),this.code(o),f){let x=this.name("e");this._currNode=y.catch=new iH(x),f(x)}return d&&(this._currNode=y.finally=new sH,this.code(d)),this._endBlockNode(iH,sH)}throw(o){return this._leafNode(new s6e(o))}block(o,f){return this._blockStarts.push(this._nodes.length),o&&this.code(o).endBlock(f),this}endBlock(o){let f=this._blockStarts.pop();if(f===void 0)throw new Error("CodeGen: not in self-balancing block");let d=this._nodes.length-f;if(d<0||o!==void 0&&d!==o)throw new Error(`CodeGen: wrong number of nodes: ${d} vs ${o} expected`);return this._nodes.length=f,this}func(o,f=yu.nil,d,y){return this._blockNode(new rH(o,f,d)),y&&this.code(y).endFunc(),this}endFunc(){return this._endBlockNode(rH)}optimize(o=1){for(;o-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(o){return this._currNode.nodes.push(o),this}_blockNode(o){this._currNode.nodes.push(o),this._nodes.push(o)}_endBlockNode(o,f){let d=this._currNode;if(d instanceof o||f&&d instanceof f)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${f?`${o.kind}/${f.kind}`:o.kind}"`)}_elseNode(o){let f=this._currNode;if(!(f instanceof CO))throw new Error('CodeGen: "else" without "if"');return this._currNode=f.else=o,this}get _root(){return this._nodes[0]}get _currNode(){let o=this._nodes;return o[o.length-1]}set _currNode(o){let f=this._nodes;f[f.length-1]=o}};Nl.CodeGen=f6e;function wO(s,o){for(let f in o)s[f]=(s[f]||0)+(o[f]||0);return s}t(wO,"addNames");function kce(s,o){return o instanceof yu._CodeOrName?wO(s,o.names):s}t(kce,"addExprNames");function nM(s,o,f){if(s instanceof yu.Name)return d(s);if(!y(s))return s;return new yu._Code(s._items.reduce((x,P)=>(P instanceof yu.Name&&(P=d(P)),P instanceof yu._Code?x.push(...P._items):x.push(P),x),[]));function d(x){let P=f[x.str];return P===void 0||o[x.str]!==1?x:(delete o[x.str],P)}function y(x){return x instanceof yu._Code&&x._items.some(P=>P instanceof yu.Name&&o[P.str]===1&&f[P.str]!==void 0)}}t(nM,"optimizeExpr");function srr(s,o){for(let f in o)s[f]=(s[f]||0)-(o[f]||0)}t(srr,"subtractNames");function dat(s){return typeof s=="boolean"||typeof s=="number"||s===null?!s:(0,yu._)`!${_6e(s)}`}t(dat,"not");Nl.not=dat;var arr=mat(Nl.operators.AND);function orr(...s){return s.reduce(arr)}t(orr,"and");Nl.and=orr;var crr=mat(Nl.operators.OR);function lrr(...s){return s.reduce(crr)}t(lrr,"or");Nl.or=lrr;function mat(s){return(o,f)=>o===yu.nil?f:f===yu.nil?o:(0,yu._)`${_6e(o)} ${s} ${_6e(f)}`}t(mat,"mappend");function _6e(s){return s instanceof yu.Name?s:(0,yu._)`(${s})`}t(_6e,"par")});var tu=ar(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.checkStrictMode=Wl.getErrorPath=Wl.Type=Wl.useFunc=Wl.setEvaluated=Wl.evaluatedPropsToName=Wl.mergeEvaluated=Wl.eachItem=Wl.unescapeJsonPointer=Wl.escapeJsonPointer=Wl.escapeFragment=Wl.unescapeFragment=Wl.schemaRefOrVal=Wl.schemaHasRulesButRef=Wl.schemaHasRules=Wl.checkUnknownRules=Wl.alwaysValidSchema=Wl.toHash=void 0;var U_=Ec(),urr=tM();function frr(s){let o={};for(let f of s)o[f]=!0;return o}t(frr,"toHash");Wl.toHash=frr;function _rr(s,o){return typeof o=="boolean"?o:Object.keys(o).length===0?!0:(yat(s,o),!vat(o,s.self.RULES.all))}t(_rr,"alwaysValidSchema");Wl.alwaysValidSchema=_rr;function yat(s,o=s.schema){let{opts:f,self:d}=s;if(!f.strictSchema||typeof o=="boolean")return;let y=d.RULES.keywords;for(let x in o)y[x]||Tat(s,`unknown keyword: "${x}"`)}t(yat,"checkUnknownRules");Wl.checkUnknownRules=yat;function vat(s,o){if(typeof s=="boolean")return!s;for(let f in s)if(o[f])return!0;return!1}t(vat,"schemaHasRules");Wl.schemaHasRules=vat;function prr(s,o){if(typeof s=="boolean")return!s;for(let f in s)if(f!=="$ref"&&o.all[f])return!0;return!1}t(prr,"schemaHasRulesButRef");Wl.schemaHasRulesButRef=prr;function drr({topSchemaRef:s,schemaPath:o},f,d,y){if(!y){if(typeof f=="number"||typeof f=="boolean")return f;if(typeof f=="string")return(0,U_._)`${f}`}return(0,U_._)`${s}${o}${(0,U_.getProperty)(d)}`}t(drr,"schemaRefOrVal");Wl.schemaRefOrVal=drr;function mrr(s){return bat(decodeURIComponent(s))}t(mrr,"unescapeFragment");Wl.unescapeFragment=mrr;function hrr(s){return encodeURIComponent(d6e(s))}t(hrr,"escapeFragment");Wl.escapeFragment=hrr;function d6e(s){return typeof s=="number"?`${s}`:s.replace(/~/g,"~0").replace(/\//g,"~1")}t(d6e,"escapeJsonPointer");Wl.escapeJsonPointer=d6e;function bat(s){return s.replace(/~1/g,"/").replace(/~0/g,"~")}t(bat,"unescapeJsonPointer");Wl.unescapeJsonPointer=bat;function grr(s,o){if(Array.isArray(s))for(let f of s)o(f);else o(s)}t(grr,"eachItem");Wl.eachItem=grr;function hat({mergeNames:s,mergeToName:o,mergeValues:f,resultToName:d}){return(y,x,P,F)=>{let W=P===void 0?x:P instanceof U_.Name?(x instanceof U_.Name?s(y,x,P):o(y,x,P),P):x instanceof U_.Name?(o(y,P,x),x):f(x,P);return F===U_.Name&&!(W instanceof U_.Name)?d(y,W):W}}t(hat,"makeMergeEvaluated");Wl.mergeEvaluated={props:hat({mergeNames:t((s,o,f)=>s.if((0,U_._)`${f} !== true && ${o} !== undefined`,()=>{s.if((0,U_._)`${o} === true`,()=>s.assign(f,!0),()=>s.assign(f,(0,U_._)`${f} || {}`).code((0,U_._)`Object.assign(${f}, ${o})`))}),"mergeNames"),mergeToName:t((s,o,f)=>s.if((0,U_._)`${f} !== true`,()=>{o===!0?s.assign(f,!0):(s.assign(f,(0,U_._)`${f} || {}`),m6e(s,f,o))}),"mergeToName"),mergeValues:t((s,o)=>s===!0?!0:{...s,...o},"mergeValues"),resultToName:Sat}),items:hat({mergeNames:t((s,o,f)=>s.if((0,U_._)`${f} !== true && ${o} !== undefined`,()=>s.assign(f,(0,U_._)`${o} === true ? true : ${f} > ${o} ? ${f} : ${o}`)),"mergeNames"),mergeToName:t((s,o,f)=>s.if((0,U_._)`${f} !== true`,()=>s.assign(f,o===!0?!0:(0,U_._)`${f} > ${o} ? ${f} : ${o}`)),"mergeToName"),mergeValues:t((s,o)=>s===!0?!0:Math.max(s,o),"mergeValues"),resultToName:t((s,o)=>s.var("items",o),"resultToName")})};function Sat(s,o){if(o===!0)return s.var("props",!0);let f=s.var("props",(0,U_._)`{}`);return o!==void 0&&m6e(s,f,o),f}t(Sat,"evaluatedPropsToName");Wl.evaluatedPropsToName=Sat;function m6e(s,o,f){Object.keys(f).forEach(d=>s.assign((0,U_._)`${o}${(0,U_.getProperty)(d)}`,!0))}t(m6e,"setEvaluated");Wl.setEvaluated=m6e;var gat={};function yrr(s,o){return s.scopeValue("func",{ref:o,code:gat[o.code]||(gat[o.code]=new urr._Code(o.code))})}t(yrr,"useFunc");Wl.useFunc=yrr;var p6e;(function(s){s[s.Num=0]="Num",s[s.Str=1]="Str"})(p6e||(Wl.Type=p6e={}));function vrr(s,o,f){if(s instanceof U_.Name){let d=o===p6e.Num;return f?d?(0,U_._)`"[" + ${s} + "]"`:(0,U_._)`"['" + ${s} + "']"`:d?(0,U_._)`"/" + ${s}`:(0,U_._)`"/" + ${s}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return f?(0,U_.getProperty)(s).toString():"/"+d6e(s)}t(vrr,"getErrorPath");Wl.getErrorPath=vrr;function Tat(s,o,f=s.opts.strictSchema){if(f){if(o=`strict mode: ${o}`,f===!0)throw new Error(o);s.self.logger.warn(o)}}t(Tat,"checkStrictMode");Wl.checkStrictMode=Tat});var dT=ar(h6e=>{"use strict";Object.defineProperty(h6e,"__esModule",{value:!0});var ky=Ec(),brr={data:new ky.Name("data"),valCxt:new ky.Name("valCxt"),instancePath:new ky.Name("instancePath"),parentData:new ky.Name("parentData"),parentDataProperty:new ky.Name("parentDataProperty"),rootData:new ky.Name("rootData"),dynamicAnchors:new ky.Name("dynamicAnchors"),vErrors:new ky.Name("vErrors"),errors:new ky.Name("errors"),this:new ky.Name("this"),self:new ky.Name("self"),scope:new ky.Name("scope"),json:new ky.Name("json"),jsonPos:new ky.Name("jsonPos"),jsonLen:new ky.Name("jsonLen"),jsonPart:new ky.Name("jsonPart")};h6e.default=brr});var aH=ar(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.extendErrors=wy.resetErrorsCount=wy.reportExtraError=wy.reportError=wy.keyword$DataError=wy.keywordError=void 0;var Iu=Ec(),Dce=tu(),L1=dT();wy.keywordError={message:t(({keyword:s})=>(0,Iu.str)`must pass "${s}" keyword validation`,"message")};wy.keyword$DataError={message:t(({keyword:s,schemaType:o})=>o?(0,Iu.str)`"${s}" keyword must be ${o} ($data)`:(0,Iu.str)`"${s}" keyword is invalid ($data)`,"message")};function Srr(s,o=wy.keywordError,f,d){let{it:y}=s,{gen:x,compositeRule:P,allErrors:F}=y,W=Cat(s,o,f);d??(P||F)?xat(x,W):Eat(y,(0,Iu._)`[${W}]`)}t(Srr,"reportError");wy.reportError=Srr;function Trr(s,o=wy.keywordError,f){let{it:d}=s,{gen:y,compositeRule:x,allErrors:P}=d,F=Cat(s,o,f);xat(y,F),x||P||Eat(d,L1.default.vErrors)}t(Trr,"reportExtraError");wy.reportExtraError=Trr;function xrr(s,o){s.assign(L1.default.errors,o),s.if((0,Iu._)`${L1.default.vErrors} !== null`,()=>s.if(o,()=>s.assign((0,Iu._)`${L1.default.vErrors}.length`,o),()=>s.assign(L1.default.vErrors,null)))}t(xrr,"resetErrorsCount");wy.resetErrorsCount=xrr;function Err({gen:s,keyword:o,schemaValue:f,data:d,errsCount:y,it:x}){if(y===void 0)throw new Error("ajv implementation error");let P=s.name("err");s.forRange("i",y,L1.default.errors,F=>{s.const(P,(0,Iu._)`${L1.default.vErrors}[${F}]`),s.if((0,Iu._)`${P}.instancePath === undefined`,()=>s.assign((0,Iu._)`${P}.instancePath`,(0,Iu.strConcat)(L1.default.instancePath,x.errorPath))),s.assign((0,Iu._)`${P}.schemaPath`,(0,Iu.str)`${x.errSchemaPath}/${o}`),x.opts.verbose&&(s.assign((0,Iu._)`${P}.schema`,f),s.assign((0,Iu._)`${P}.data`,d))})}t(Err,"extendErrors");wy.extendErrors=Err;function xat(s,o){let f=s.const("err",o);s.if((0,Iu._)`${L1.default.vErrors} === null`,()=>s.assign(L1.default.vErrors,(0,Iu._)`[${f}]`),(0,Iu._)`${L1.default.vErrors}.push(${f})`),s.code((0,Iu._)`${L1.default.errors}++`)}t(xat,"addError");function Eat(s,o){let{gen:f,validateName:d,schemaEnv:y}=s;y.$async?f.throw((0,Iu._)`new ${s.ValidationError}(${o})`):(f.assign((0,Iu._)`${d}.errors`,o),f.return(!1))}t(Eat,"returnErrors");var DO={keyword:new Iu.Name("keyword"),schemaPath:new Iu.Name("schemaPath"),params:new Iu.Name("params"),propertyName:new Iu.Name("propertyName"),message:new Iu.Name("message"),schema:new Iu.Name("schema"),parentSchema:new Iu.Name("parentSchema")};function Cat(s,o,f){let{createErrors:d}=s.it;return d===!1?(0,Iu._)`{}`:Crr(s,o,f)}t(Cat,"errorObjectCode");function Crr(s,o,f={}){let{gen:d,it:y}=s,x=[krr(y,f),wrr(s,f)];return Drr(s,o,x),d.object(...x)}t(Crr,"errorObject");function krr({errorPath:s},{instancePath:o}){let f=o?(0,Iu.str)`${s}${(0,Dce.getErrorPath)(o,Dce.Type.Str)}`:s;return[L1.default.instancePath,(0,Iu.strConcat)(L1.default.instancePath,f)]}t(krr,"errorInstancePath");function wrr({keyword:s,it:{errSchemaPath:o}},{schemaPath:f,parentSchema:d}){let y=d?o:(0,Iu.str)`${o}/${s}`;return f&&(y=(0,Iu.str)`${y}${(0,Dce.getErrorPath)(f,Dce.Type.Str)}`),[DO.schemaPath,y]}t(wrr,"errorSchemaPath");function Drr(s,{params:o,message:f},d){let{keyword:y,data:x,schemaValue:P,it:F}=s,{opts:W,propertyName:G,topSchemaRef:be,schemaPath:de}=F;d.push([DO.keyword,y],[DO.params,typeof o=="function"?o(s):o||(0,Iu._)`{}`]),W.messages&&d.push([DO.message,typeof f=="function"?f(s):f]),W.verbose&&d.push([DO.schema,P],[DO.parentSchema,(0,Iu._)`${be}${de}`],[L1.default.data,x]),G&&d.push([DO.propertyName,G])}t(Drr,"extraErrorProps")});var wat=ar(iM=>{"use strict";Object.defineProperty(iM,"__esModule",{value:!0});iM.boolOrEmptySchema=iM.topBoolOrEmptySchema=void 0;var Prr=aH(),Arr=Ec(),Nrr=dT(),Irr={message:"boolean schema is false"};function Orr(s){let{gen:o,schema:f,validateName:d}=s;f===!1?kat(s,!1):typeof f=="object"&&f.$async===!0?o.return(Nrr.default.data):(o.assign((0,Arr._)`${d}.errors`,null),o.return(!0))}t(Orr,"topBoolOrEmptySchema");iM.topBoolOrEmptySchema=Orr;function Frr(s,o){let{gen:f,schema:d}=s;d===!1?(f.var(o,!1),kat(s)):f.var(o,!0)}t(Frr,"boolOrEmptySchema");iM.boolOrEmptySchema=Frr;function kat(s,o){let{gen:f,data:d}=s,y={gen:f,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,Prr.reportError)(y,Irr,void 0,o)}t(kat,"falseSchemaError")});var g6e=ar(sM=>{"use strict";Object.defineProperty(sM,"__esModule",{value:!0});sM.getRules=sM.isJSONType=void 0;var Lrr=["string","number","integer","boolean","null","object","array"],Rrr=new Set(Lrr);function Mrr(s){return typeof s=="string"&&Rrr.has(s)}t(Mrr,"isJSONType");sM.isJSONType=Mrr;function jrr(){let s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}t(jrr,"getRules");sM.getRules=jrr});var y6e=ar(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.shouldUseRule=oI.shouldUseGroup=oI.schemaHasRulesForType=void 0;function Brr({schema:s,self:o},f){let d=o.RULES.types[f];return d&&d!==!0&&Dat(s,d)}t(Brr,"schemaHasRulesForType");oI.schemaHasRulesForType=Brr;function Dat(s,o){return o.rules.some(f=>Pat(s,f))}t(Dat,"shouldUseGroup");oI.shouldUseGroup=Dat;function Pat(s,o){var f;return s[o.keyword]!==void 0||((f=o.definition.implements)===null||f===void 0?void 0:f.some(d=>s[d]!==void 0))}t(Pat,"shouldUseRule");oI.shouldUseRule=Pat});var oH=ar(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.reportTypeError=Dy.checkDataTypes=Dy.checkDataType=Dy.coerceAndCheckDataType=Dy.getJSONTypes=Dy.getSchemaTypes=Dy.DataType=void 0;var Urr=g6e(),zrr=y6e(),$rr=aH(),hl=Ec(),Aat=tu(),aM;(function(s){s[s.Correct=0]="Correct",s[s.Wrong=1]="Wrong"})(aM||(Dy.DataType=aM={}));function Jrr(s){let o=Nat(s.type);if(o.includes("null")){if(s.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!o.length&&s.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');s.nullable===!0&&o.push("null")}return o}t(Jrr,"getSchemaTypes");Dy.getSchemaTypes=Jrr;function Nat(s){let o=Array.isArray(s)?s:s?[s]:[];if(o.every(Urr.isJSONType))return o;throw new Error("type must be JSONType or JSONType[]: "+o.join(","))}t(Nat,"getJSONTypes");Dy.getJSONTypes=Nat;function Wrr(s,o){let{gen:f,data:d,opts:y}=s,x=qrr(o,y.coerceTypes),P=o.length>0&&!(x.length===0&&o.length===1&&(0,zrr.schemaHasRulesForType)(s,o[0]));if(P){let F=b6e(o,d,y.strictNumbers,aM.Wrong);f.if(F,()=>{x.length?Vrr(s,o,x):S6e(s)})}return P}t(Wrr,"coerceAndCheckDataType");Dy.coerceAndCheckDataType=Wrr;var Iat=new Set(["string","number","integer","boolean","null"]);function qrr(s,o){return o?s.filter(f=>Iat.has(f)||o==="array"&&f==="array"):[]}t(qrr,"coerceToTypes");function Vrr(s,o,f){let{gen:d,data:y,opts:x}=s,P=d.let("dataType",(0,hl._)`typeof ${y}`),F=d.let("coerced",(0,hl._)`undefined`);x.coerceTypes==="array"&&d.if((0,hl._)`${P} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>d.assign(y,(0,hl._)`${y}[0]`).assign(P,(0,hl._)`typeof ${y}`).if(b6e(o,y,x.strictNumbers),()=>d.assign(F,y))),d.if((0,hl._)`${F} !== undefined`);for(let G of f)(Iat.has(G)||G==="array"&&x.coerceTypes==="array")&&W(G);d.else(),S6e(s),d.endIf(),d.if((0,hl._)`${F} !== undefined`,()=>{d.assign(y,F),Hrr(s,F)});function W(G){switch(G){case"string":d.elseIf((0,hl._)`${P} == "number" || ${P} == "boolean"`).assign(F,(0,hl._)`"" + ${y}`).elseIf((0,hl._)`${y} === null`).assign(F,(0,hl._)`""`);return;case"number":d.elseIf((0,hl._)`${P} == "boolean" || ${y} === null
63
63
  || (${P} == "string" && ${y} && ${y} == +${y})`).assign(F,(0,hl._)`+${y}`);return;case"integer":d.elseIf((0,hl._)`${P} === "boolean" || ${y} === null
64
64
  || (${P} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(F,(0,hl._)`+${y}`);return;case"boolean":d.elseIf((0,hl._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(F,!1).elseIf((0,hl._)`${y} === "true" || ${y} === 1`).assign(F,!0);return;case"null":d.elseIf((0,hl._)`${y} === "" || ${y} === 0 || ${y} === false`),d.assign(F,null);return;case"array":d.elseIf((0,hl._)`${P} === "string" || ${P} === "number"
65
- || ${P} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(W,"coerceSpecificType")}t(Vrr,"coerceData");function Hrr({gen:s,parentData:o,parentDataProperty:f},d){s.if((0,hl._)`${o} !== undefined`,()=>s.assign((0,hl._)`${o}[${f}]`,d))}t(Hrr,"assignParentData");function v6e(s,o,f,d=aM.Correct){let y=d===aM.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(s){case"null":return(0,hl._)`${o} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${o})`;break;case"object":x=(0,hl._)`${o} && typeof ${o} == "object" && !Array.isArray(${o})`;break;case"integer":x=P((0,hl._)`!(${o} % 1) && !isNaN(${o})`);break;case"number":x=P();break;default:return(0,hl._)`typeof ${o} ${y} ${s}`}return d===aM.Correct?x:(0,hl.not)(x);function P(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${o} == "number"`,F,f?(0,hl._)`isFinite(${o})`:hl.nil)}}t(v6e,"checkDataType");Dy.checkDataType=v6e;function b6e(s,o,f,d){if(s.length===1)return v6e(s[0],o,f,d);let y,x=(0,Aat.toHash)(s);if(x.array&&x.object){let P=(0,hl._)`typeof ${o} != "object"`;y=x.null?P:(0,hl._)`!${o} || ${P}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let P in x)y=(0,hl.and)(y,v6e(P,o,f,d));return y}t(b6e,"checkDataTypes");Dy.checkDataTypes=b6e;var Grr={message:t(({schema:s})=>`must be ${s}`,"message"),params:t(({schema:s,schemaValue:o})=>typeof s=="string"?(0,hl._)`{type: ${s}}`:(0,hl._)`{type: ${o}}`,"params")};function S6e(s){let o=Yrr(s);(0,$rr.reportError)(o,Grr)}t(S6e,"reportTypeError");Dy.reportTypeError=S6e;function Yrr(s){let{gen:o,data:f,schema:d}=s,y=(0,Aat.schemaRefOrVal)(s,d,"type");return{gen:o,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:s}}t(Yrr,"getTypeErrorContext")});var Fat=ar(Pce=>{"use strict";Object.defineProperty(Pce,"__esModule",{value:!0});Pce.assignDefaults=void 0;var oM=Ec(),Krr=tu();function Xrr(s,o){let{properties:f,items:d}=s.schema;if(o==="object"&&f)for(let y in f)Oat(s,y,f[y].default);else o==="array"&&Array.isArray(d)&&d.forEach((y,x)=>Oat(s,x,y.default))}t(Xrr,"assignDefaults");Pce.assignDefaults=Xrr;function Oat(s,o,f){let{gen:d,compositeRule:y,data:x,opts:P}=s;if(f===void 0)return;let F=(0,oM._)`${x}${(0,oM.getProperty)(o)}`;if(y){(0,Krr.checkStrictMode)(s,`default is ignored for: ${F}`);return}let W=(0,oM._)`${F} === undefined`;P.useDefaults==="empty"&&(W=(0,oM._)`${W} || ${F} === null || ${F} === ""`),d.if(W,(0,oM._)`${F} = ${(0,oM.stringify)(f)}`)}t(Oat,"assignDefault")});var mT=ar(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.validateUnion=S_.validateArray=S_.usePattern=S_.callValidateCode=S_.schemaProperties=S_.allSchemaProperties=S_.noPropertyInData=S_.propertyInData=S_.isOwnProperty=S_.hasPropFunc=S_.reportMissingProp=S_.checkMissingProp=S_.checkReportMissingProp=void 0;var Ap=Ec(),T6e=tu(),cI=dT(),Zrr=tu();function Qrr(s,o){let{gen:f,data:d,it:y}=s;f.if(E6e(f,d,o,y.opts.ownProperties),()=>{s.setParams({missingProperty:(0,Ap._)`${o}`},!0),s.error()})}t(Qrr,"checkReportMissingProp");S_.checkReportMissingProp=Qrr;function enr({gen:s,data:o,it:{opts:f}},d,y){return(0,Ap.or)(...d.map(x=>(0,Ap.and)(E6e(s,o,x,f.ownProperties),(0,Ap._)`${y} = ${x}`)))}t(enr,"checkMissingProp");S_.checkMissingProp=enr;function tnr(s,o){s.setParams({missingProperty:o},!0),s.error()}t(tnr,"reportMissingProp");S_.reportMissingProp=tnr;function Lat(s){return s.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ap._)`Object.prototype.hasOwnProperty`})}t(Lat,"hasPropFunc");S_.hasPropFunc=Lat;function x6e(s,o,f){return(0,Ap._)`${Lat(s)}.call(${o}, ${f})`}t(x6e,"isOwnProperty");S_.isOwnProperty=x6e;function rnr(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} !== undefined`;return d?(0,Ap._)`${y} && ${x6e(s,o,f)}`:y}t(rnr,"propertyInData");S_.propertyInData=rnr;function E6e(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} === undefined`;return d?(0,Ap.or)(y,(0,Ap.not)(x6e(s,o,f))):y}t(E6e,"noPropertyInData");S_.noPropertyInData=E6e;function Rat(s){return s?Object.keys(s).filter(o=>o!=="__proto__"):[]}t(Rat,"allSchemaProperties");S_.allSchemaProperties=Rat;function nnr(s,o){return Rat(o).filter(f=>!(0,T6e.alwaysValidSchema)(s,o[f]))}t(nnr,"schemaProperties");S_.schemaProperties=nnr;function inr({schemaCode:s,data:o,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:P},F,W,G){let be=G?(0,Ap._)`${s}, ${o}, ${d}${y}`:o,de=[[cI.default.instancePath,(0,Ap.strConcat)(cI.default.instancePath,x)],[cI.default.parentData,P.parentData],[cI.default.parentDataProperty,P.parentDataProperty],[cI.default.rootData,cI.default.rootData]];P.opts.dynamicRef&&de.push([cI.default.dynamicAnchors,cI.default.dynamicAnchors]);let se=(0,Ap._)`${be}, ${f.object(...de)}`;return W!==Ap.nil?(0,Ap._)`${F}.call(${W}, ${se})`:(0,Ap._)`${F}(${se})`}t(inr,"callValidateCode");S_.callValidateCode=inr;var snr=(0,Ap._)`new RegExp`;function anr({gen:s,it:{opts:o}},f){let d=o.unicodeRegExp?"u":"",{regExp:y}=o.code,x=y(f,d);return s.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Ap._)`${y.code==="new RegExp"?snr:(0,Zrr.useFunc)(s,y)}(${f}, ${d})`})}t(anr,"usePattern");S_.usePattern=anr;function onr(s){let{gen:o,data:f,keyword:d,it:y}=s,x=o.name("valid");if(y.allErrors){let F=o.let("valid",!0);return P(()=>o.assign(F,!1)),F}return o.var(x,!0),P(()=>o.break()),x;function P(F){let W=o.const("len",(0,Ap._)`${f}.length`);o.forRange("i",0,W,G=>{s.subschema({keyword:d,dataProp:G,dataPropType:T6e.Type.Num},x),o.if((0,Ap.not)(x),F)})}t(P,"validateItems")}t(onr,"validateArray");S_.validateArray=onr;function cnr(s){let{gen:o,schema:f,keyword:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(W=>(0,T6e.alwaysValidSchema)(y,W))&&!y.opts.unevaluated)return;let P=o.let("valid",!1),F=o.name("_valid");o.block(()=>f.forEach((W,G)=>{let be=s.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);o.assign(P,(0,Ap._)`${P} || ${F}`),s.mergeValidEvaluated(be,F)||o.if((0,Ap.not)(P))})),s.result(P,()=>s.reset(),()=>s.error(!0))}t(cnr,"validateUnion");S_.validateUnion=cnr});var Bat=ar(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.validateKeywordUsage=Rk.validSchemaType=Rk.funcKeywordCode=Rk.macroKeywordCode=void 0;var R1=Ec(),PO=dT(),lnr=mT(),unr=aH();function fnr(s,o){let{gen:f,keyword:d,schema:y,parentSchema:x,it:P}=s,F=o.macro.call(P.self,y,x,P),W=jat(f,d,F);P.opts.validateSchema!==!1&&P.self.validateSchema(F,!0);let G=f.name("valid");s.subschema({schema:F,schemaPath:R1.nil,errSchemaPath:`${P.errSchemaPath}/${d}`,topSchemaRef:W,compositeRule:!0},G),s.pass(G,()=>s.error(!0))}t(fnr,"macroKeywordCode");Rk.macroKeywordCode=fnr;function _nr(s,o){var f;let{gen:d,keyword:y,schema:x,parentSchema:P,$data:F,it:W}=s;dnr(W,o);let G=!F&&o.compile?o.compile.call(W.self,x,P,W):o.validate,be=jat(d,y,G),de=d.let("valid");s.block$data(de,se),s.ok((f=o.valid)!==null&&f!==void 0?f:de);function se(){if(o.errors===!1)je(),o.modifying&&Mat(s),Vt(()=>s.error());else{let Ut=o.async?Xe():Ue();o.modifying&&Mat(s),Vt(()=>pnr(s,Ut))}}t(se,"validateKeyword");function Xe(){let Ut=d.let("ruleErrs",null);return d.try(()=>je((0,R1._)`await `),Ir=>d.assign(de,!1).if((0,R1._)`${Ir} instanceof ${W.ValidationError}`,()=>d.assign(Ut,(0,R1._)`${Ir}.errors`),()=>d.throw(Ir))),Ut}t(Xe,"validateAsync");function Ue(){let Ut=(0,R1._)`${be}.errors`;return d.assign(Ut,null),je(R1.nil),Ut}t(Ue,"validateSync");function je(Ut=o.async?(0,R1._)`await `:R1.nil){let Ir=W.opts.passContext?PO.default.this:PO.default.self,wn=!("compile"in o&&!F||o.schema===!1);d.assign(de,(0,R1._)`${Ut}${(0,lnr.callValidateCode)(s,be,Ir,wn)}`,o.modifying)}t(je,"assignValid");function Vt(Ut){var Ir;d.if((0,R1.not)((Ir=o.valid)!==null&&Ir!==void 0?Ir:de),Ut)}t(Vt,"reportErrs")}t(_nr,"funcKeywordCode");Rk.funcKeywordCode=_nr;function Mat(s){let{gen:o,data:f,it:d}=s;o.if(d.parentData,()=>o.assign(f,(0,R1._)`${d.parentData}[${d.parentDataProperty}]`))}t(Mat,"modifyData");function pnr(s,o){let{gen:f}=s;f.if((0,R1._)`Array.isArray(${o})`,()=>{f.assign(PO.default.vErrors,(0,R1._)`${PO.default.vErrors} === null ? ${o} : ${PO.default.vErrors}.concat(${o})`).assign(PO.default.errors,(0,R1._)`${PO.default.vErrors}.length`),(0,unr.extendErrors)(s)},()=>s.error())}t(pnr,"addErrs");function dnr({schemaEnv:s},o){if(o.async&&!s.$async)throw new Error("async keyword in sync schema")}t(dnr,"checkAsyncKeyword");function jat(s,o,f){if(f===void 0)throw new Error(`keyword "${o}" failed to compile`);return s.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,R1.stringify)(f)})}t(jat,"useKeyword");function mnr(s,o,f=!1){return!o.length||o.some(d=>d==="array"?Array.isArray(s):d==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==d||f&&typeof s>"u")}t(mnr,"validSchemaType");Rk.validSchemaType=mnr;function hnr({schema:s,opts:o,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let P=y.dependencies;if(P?.some(F=>!Object.prototype.hasOwnProperty.call(s,F)))throw new Error(`parent schema must have dependencies of ${x}: ${P.join(",")}`);if(y.validateSchema&&!y.validateSchema(s[x])){let W=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(o.validateSchema==="log")f.logger.error(W);else throw new Error(W)}}t(hnr,"validateKeywordUsage");Rk.validateKeywordUsage=hnr});var zat=ar(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.extendSubschemaMode=lI.extendSubschemaData=lI.getSubschema=void 0;var Mk=Ec(),Uat=tu();function gnr(s,{keyword:o,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:P}){if(o!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){let F=s.schema[o];return f===void 0?{schema:F,schemaPath:(0,Mk._)`${s.schemaPath}${(0,Mk.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:F[f],schemaPath:(0,Mk._)`${s.schemaPath}${(0,Mk.getProperty)(o)}${(0,Mk.getProperty)(f)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,Uat.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||P===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:P,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(gnr,"getSubschema");lI.getSubschema=gnr;function ynr(s,o,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:P}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=o;if(f!==void 0){let{errorPath:G,dataPathArr:be,opts:de}=o,se=F.let("data",(0,Mk._)`${o.data}${(0,Mk.getProperty)(f)}`,!0);W(se),s.errorPath=(0,Mk.str)`${G}${(0,Uat.getErrorPath)(f,d,de.jsPropertySyntax)}`,s.parentDataProperty=(0,Mk._)`${f}`,s.dataPathArr=[...be,s.parentDataProperty]}if(y!==void 0){let G=y instanceof Mk.Name?y:F.let("data",y,!0);W(G),P!==void 0&&(s.propertyName=P)}x&&(s.dataTypes=x);function W(G){s.data=G,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,G]}t(W,"dataContextProps")}t(ynr,"extendSubschemaData");lI.extendSubschemaData=ynr;function vnr(s,{jtdDiscriminator:o,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(s.compositeRule=d),y!==void 0&&(s.createErrors=y),x!==void 0&&(s.allErrors=x),s.jtdDiscriminator=o,s.jtdMetadata=f}t(vnr,"extendSubschemaMode");lI.extendSubschemaMode=vnr});var C6e=ar((bPr,$at)=>{"use strict";$at.exports=t(function s(o,f){if(o===f)return!0;if(o&&f&&typeof o=="object"&&typeof f=="object"){if(o.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(o)){if(d=o.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!s(o[y],f[y]))return!1;return!0}if(o.constructor===RegExp)return o.source===f.source&&o.flags===f.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===f.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===f.toString();if(x=Object.keys(o),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var P=x[y];if(!s(o[P],f[P]))return!1}return!0}return o!==o&&f!==f},"equal")});var Wat=ar((TPr,Jat)=>{"use strict";var uI=Jat.exports=function(s,o,f){typeof o=="function"&&(f=o,o={}),f=o.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};Ace(o,d,y,s,"",s)};uI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};uI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};uI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};uI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ace(s,o,f,d,y,x,P,F,W,G){if(d&&typeof d=="object"&&!Array.isArray(d)){o(d,y,x,P,F,W,G);for(var be in d){var de=d[be];if(Array.isArray(de)){if(be in uI.arrayKeywords)for(var se=0;se<de.length;se++)Ace(s,o,f,de[se],y+"/"+be+"/"+se,x,y,be,d,se)}else if(be in uI.propsKeywords){if(de&&typeof de=="object")for(var Xe in de)Ace(s,o,f,de[Xe],y+"/"+be+"/"+bnr(Xe),x,y,be,d,Xe)}else(be in uI.keywords||s.allKeys&&!(be in uI.skipKeywords))&&Ace(s,o,f,de,y+"/"+be,x,y,be,d)}f(d,y,x,P,F,W,G)}}t(Ace,"_traverse");function bnr(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}t(bnr,"escapeJsonPtr")});var cH=ar(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.getSchemaRefs=Xv.resolveUrl=Xv.normalizeId=Xv._getFullPath=Xv.getFullPath=Xv.inlineRef=void 0;var Snr=tu(),Tnr=C6e(),xnr=Wat(),Enr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Cnr(s,o=!0){return typeof s=="boolean"?!0:o===!0?!k6e(s):o?qat(s)<=o:!1}t(Cnr,"inlineRef");Xv.inlineRef=Cnr;var knr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function k6e(s){for(let o in s){if(knr.has(o))return!0;let f=s[o];if(Array.isArray(f)&&f.some(k6e)||typeof f=="object"&&k6e(f))return!0}return!1}t(k6e,"hasRef");function qat(s){let o=0;for(let f in s){if(f==="$ref")return 1/0;if(o++,!Enr.has(f)&&(typeof s[f]=="object"&&(0,Snr.eachItem)(s[f],d=>o+=qat(d)),o===1/0))return 1/0}return o}t(qat,"countKeys");function Vat(s,o="",f){f!==!1&&(o=cM(o));let d=s.parse(o);return Hat(s,d)}t(Vat,"getFullPath");Xv.getFullPath=Vat;function Hat(s,o){return s.serialize(o).split("#")[0]+"#"}t(Hat,"_getFullPath");Xv._getFullPath=Hat;var wnr=/#\/?$/;function cM(s){return s?s.replace(wnr,""):""}t(cM,"normalizeId");Xv.normalizeId=cM;function Dnr(s,o,f){return f=cM(f),s.resolve(o,f)}t(Dnr,"resolveUrl");Xv.resolveUrl=Dnr;var Pnr=/^[a-z_][-a-z0-9._]*$/i;function Anr(s,o){if(typeof s=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=cM(s[f]||o),x={"":y},P=Vat(d,y,!1),F={},W=new Set;return xnr(s,{allKeys:!0},(de,se,Xe,Ue)=>{if(Ue===void 0)return;let je=P+se,Vt=x[Ue];typeof de[f]=="string"&&(Vt=Ut.call(this,de[f])),Ir.call(this,de.$anchor),Ir.call(this,de.$dynamicAnchor),x[se]=Vt;function Ut(wn){let sn=this.opts.uriResolver.resolve;if(wn=cM(Vt?sn(Vt,wn):wn),W.has(wn))throw be(wn);W.add(wn);let Jn=this.refs[wn];return typeof Jn=="string"&&(Jn=this.refs[Jn]),typeof Jn=="object"?G(de,Jn.schema,wn):wn!==cM(je)&&(wn[0]==="#"?(G(de,F[wn],wn),F[wn]=de):this.refs[wn]=je),wn}t(Ut,"addRef");function Ir(wn){if(typeof wn=="string"){if(!Pnr.test(wn))throw new Error(`invalid anchor "${wn}"`);Ut.call(this,`#${wn}`)}}t(Ir,"addAnchor")}),F;function G(de,se,Xe){if(se!==void 0&&!Tnr(de,se))throw be(Xe)}t(G,"checkAmbiguosRef");function be(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(be,"ambiguos")}t(Anr,"getSchemaRefs");Xv.getSchemaRefs=Anr});var lM=ar(fI=>{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});fI.getData=fI.KeywordCxt=fI.validateFunctionCode=void 0;var Zat=wat(),Gat=oH(),D6e=y6e(),Nce=oH(),Nnr=Fat(),uH=Bat(),w6e=zat(),Eo=Ec(),Nc=dT(),Inr=cH(),QP=tu(),lH=aH();function Onr(s){if(tot(s)&&(rot(s),eot(s))){Rnr(s);return}Qat(s,()=>(0,Zat.topBoolOrEmptySchema)(s))}t(Onr,"validateFunctionCode");fI.validateFunctionCode=Onr;function Qat({gen:s,validateName:o,schema:f,schemaEnv:d,opts:y},x){y.code.es5?s.func(o,(0,Eo._)`${Nc.default.data}, ${Nc.default.valCxt}`,d.$async,()=>{s.code((0,Eo._)`"use strict"; ${Yat(f,y)}`),Lnr(s,y),s.code(x)}):s.func(o,(0,Eo._)`${Nc.default.data}, ${Fnr(y)}`,d.$async,()=>s.code(Yat(f,y)).code(x))}t(Qat,"validateFunction");function Fnr(s){return(0,Eo._)`{${Nc.default.instancePath}="", ${Nc.default.parentData}, ${Nc.default.parentDataProperty}, ${Nc.default.rootData}=${Nc.default.data}${s.dynamicRef?(0,Eo._)`, ${Nc.default.dynamicAnchors}={}`:Eo.nil}}={}`}t(Fnr,"destructureValCxt");function Lnr(s,o){s.if(Nc.default.valCxt,()=>{s.var(Nc.default.instancePath,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.instancePath}`),s.var(Nc.default.parentData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentData}`),s.var(Nc.default.parentDataProperty,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentDataProperty}`),s.var(Nc.default.rootData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.rootData}`),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.dynamicAnchors}`)},()=>{s.var(Nc.default.instancePath,(0,Eo._)`""`),s.var(Nc.default.parentData,(0,Eo._)`undefined`),s.var(Nc.default.parentDataProperty,(0,Eo._)`undefined`),s.var(Nc.default.rootData,Nc.default.data),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`{}`)})}t(Lnr,"destructureValCxtES5");function Rnr(s){let{schema:o,opts:f,gen:d}=s;Qat(s,()=>{f.$comment&&o.$comment&&iot(s),znr(s),d.let(Nc.default.vErrors,null),d.let(Nc.default.errors,0),f.unevaluated&&Mnr(s),not(s),Wnr(s)})}t(Rnr,"topSchemaObjCode");function Mnr(s){let{gen:o,validateName:f}=s;s.evaluated=o.const("evaluated",(0,Eo._)`${f}.evaluated`),o.if((0,Eo._)`${s.evaluated}.dynamicProps`,()=>o.assign((0,Eo._)`${s.evaluated}.props`,(0,Eo._)`undefined`)),o.if((0,Eo._)`${s.evaluated}.dynamicItems`,()=>o.assign((0,Eo._)`${s.evaluated}.items`,(0,Eo._)`undefined`))}t(Mnr,"resetEvaluated");function Yat(s,o){let f=typeof s=="object"&&s[o.schemaId];return f&&(o.code.source||o.code.process)?(0,Eo._)`/*# sourceURL=${f} */`:Eo.nil}t(Yat,"funcSourceUrl");function jnr(s,o){if(tot(s)&&(rot(s),eot(s))){Bnr(s,o);return}(0,Zat.boolOrEmptySchema)(s,o)}t(jnr,"subschemaCode");function eot({schema:s,self:o}){if(typeof s=="boolean")return!s;for(let f in s)if(o.RULES.all[f])return!0;return!1}t(eot,"schemaCxtHasRules");function tot(s){return typeof s.schema!="boolean"}t(tot,"isSchemaObj");function Bnr(s,o){let{schema:f,gen:d,opts:y}=s;y.$comment&&f.$comment&&iot(s),$nr(s),Jnr(s);let x=d.const("_errs",Nc.default.errors);not(s,x),d.var(o,(0,Eo._)`${x} === ${Nc.default.errors}`)}t(Bnr,"subSchemaObjCode");function rot(s){(0,QP.checkUnknownRules)(s),Unr(s)}t(rot,"checkKeywords");function not(s,o){if(s.opts.jtd)return Kat(s,[],!1,o);let f=(0,Gat.getSchemaTypes)(s.schema),d=(0,Gat.coerceAndCheckDataType)(s,f);Kat(s,f,!d,o)}t(not,"typeAndKeywords");function Unr(s){let{schema:o,errSchemaPath:f,opts:d,self:y}=s;o.$ref&&d.ignoreKeywordsWithRef&&(0,QP.schemaHasRulesButRef)(o,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(Unr,"checkRefsAndKeywords");function znr(s){let{schema:o,opts:f}=s;o.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,QP.checkStrictMode)(s,"default is ignored in the schema root")}t(znr,"checkNoDefault");function $nr(s){let o=s.schema[s.opts.schemaId];o&&(s.baseId=(0,Inr.resolveUrl)(s.opts.uriResolver,s.baseId,o))}t($nr,"updateContext");function Jnr(s){if(s.schema.$async&&!s.schemaEnv.$async)throw new Error("async schema in sync schema")}t(Jnr,"checkAsyncSchema");function iot({gen:s,schemaEnv:o,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)s.code((0,Eo._)`${Nc.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let P=(0,Eo.str)`${d}/$comment`,F=s.scopeValue("root",{ref:o.root});s.code((0,Eo._)`${Nc.default.self}.opts.$comment(${x}, ${P}, ${F}.schema)`)}}t(iot,"commentKeyword");function Wnr(s){let{gen:o,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=s;f.$async?o.if((0,Eo._)`${Nc.default.errors} === 0`,()=>o.return(Nc.default.data),()=>o.throw((0,Eo._)`new ${y}(${Nc.default.vErrors})`)):(o.assign((0,Eo._)`${d}.errors`,Nc.default.vErrors),x.unevaluated&&qnr(s),o.return((0,Eo._)`${Nc.default.errors} === 0`))}t(Wnr,"returnResults");function qnr({gen:s,evaluated:o,props:f,items:d}){f instanceof Eo.Name&&s.assign((0,Eo._)`${o}.props`,f),d instanceof Eo.Name&&s.assign((0,Eo._)`${o}.items`,d)}t(qnr,"assignEvaluated");function Kat(s,o,f,d){let{gen:y,schema:x,data:P,allErrors:F,opts:W,self:G}=s,{RULES:be}=G;if(x.$ref&&(W.ignoreKeywordsWithRef||!(0,QP.schemaHasRulesButRef)(x,be))){y.block(()=>aot(s,"$ref",be.all.$ref.definition));return}W.jtd||Vnr(s,o),y.block(()=>{for(let se of be.rules)de(se);de(be.post)});function de(se){(0,D6e.shouldUseGroup)(x,se)&&(se.type?(y.if((0,Nce.checkDataType)(se.type,P,W.strictNumbers)),Xat(s,se),o.length===1&&o[0]===se.type&&f&&(y.else(),(0,Nce.reportTypeError)(s)),y.endIf()):Xat(s,se),F||y.if((0,Eo._)`${Nc.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(Kat,"schemaKeywords");function Xat(s,o){let{gen:f,schema:d,opts:{useDefaults:y}}=s;y&&(0,Nnr.assignDefaults)(s,o.type),f.block(()=>{for(let x of o.rules)(0,D6e.shouldUseRule)(d,x)&&aot(s,x.keyword,x.definition,o.type)})}t(Xat,"iterateKeywords");function Vnr(s,o){s.schemaEnv.meta||!s.opts.strictTypes||(Hnr(s,o),s.opts.allowUnionTypes||Gnr(s,o),Ynr(s,s.dataTypes))}t(Vnr,"checkStrictTypes");function Hnr(s,o){if(o.length){if(!s.dataTypes.length){s.dataTypes=o;return}o.forEach(f=>{sot(s.dataTypes,f)||P6e(s,`type "${f}" not allowed by context "${s.dataTypes.join(",")}"`)}),Xnr(s,o)}}t(Hnr,"checkContextTypes");function Gnr(s,o){o.length>1&&!(o.length===2&&o.includes("null"))&&P6e(s,"use allowUnionTypes to allow union type keyword")}t(Gnr,"checkMultipleTypes");function Ynr(s,o){let f=s.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,D6e.shouldUseRule)(s.schema,y)){let{type:x}=y.definition;x.length&&!x.some(P=>Knr(o,P))&&P6e(s,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Ynr,"checkKeywordTypes");function Knr(s,o){return s.includes(o)||o==="number"&&s.includes("integer")}t(Knr,"hasApplicableType");function sot(s,o){return s.includes(o)||o==="integer"&&s.includes("number")}t(sot,"includesType");function Xnr(s,o){let f=[];for(let d of s.dataTypes)sot(o,d)?f.push(d):o.includes("integer")&&d==="number"&&f.push("integer");s.dataTypes=f}t(Xnr,"narrowSchemaTypes");function P6e(s,o){let f=s.schemaEnv.baseId+s.errSchemaPath;o+=` at "${f}" (strictTypes)`,(0,QP.checkStrictMode)(s,o,s.opts.strictTypes)}t(P6e,"strictTypesError");var Ice=class{static{t(this,"KeywordCxt")}constructor(o,f,d){if((0,uH.validateKeywordUsage)(o,f,d),this.gen=o.gen,this.allErrors=o.allErrors,this.keyword=d,this.data=o.data,this.schema=o.schema[d],this.$data=f.$data&&o.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,QP.schemaRefOrVal)(o,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=o.schema,this.params={},this.it=o,this.def=f,this.$data)this.schemaCode=o.gen.const("vSchema",oot(this.$data,o));else if(this.schemaCode=this.schemaValue,!(0,uH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=o.gen.const("_errs",Nc.default.errors))}result(o,f,d){this.failResult((0,Eo.not)(o),f,d)}failResult(o,f,d){this.gen.if(o),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(o,f){this.failResult((0,Eo.not)(o),void 0,f)}fail(o){if(o===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(o),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(o){if(!this.$data)return this.fail(o);let{schemaCode:f}=this;this.fail((0,Eo._)`${f} !== undefined && (${(0,Eo.or)(this.invalid$data(),o)})`)}error(o,f,d){if(f){this.setParams(f),this._error(o,d),this.setParams({});return}this._error(o,d)}_error(o,f){(o?lH.reportExtraError:lH.reportError)(this,this.def.error,f)}$dataError(){(0,lH.reportError)(this,this.def.$dataError||lH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,lH.resetErrorsCount)(this.gen,this.errsCount)}ok(o){this.allErrors||this.gen.if(o)}setParams(o,f){f?Object.assign(this.params,o):this.params=o}block$data(o,f,d=Eo.nil){this.gen.block(()=>{this.check$data(o,d),f()})}check$data(o=Eo.nil,f=Eo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:P}=this;d.if((0,Eo.or)((0,Eo._)`${y} === undefined`,f)),o!==Eo.nil&&d.assign(o,!0),(x.length||P.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),o!==Eo.nil&&d.assign(o,!1)),d.else()}invalid$data(){let{gen:o,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,Eo.or)(P(),F());function P(){if(d.length){if(!(f instanceof Eo.Name))throw new Error("ajv implementation error");let W=Array.isArray(d)?d:[d];return(0,Eo._)`${(0,Nce.checkDataTypes)(W,f,x.opts.strictNumbers,Nce.DataType.Wrong)}`}return Eo.nil}function F(){if(y.validateSchema){let W=o.scopeValue("validate$data",{ref:y.validateSchema});return(0,Eo._)`!${W}(${f})`}return Eo.nil}}subschema(o,f){let d=(0,w6e.getSubschema)(this.it,o);(0,w6e.extendSubschemaData)(d,this.it,o),(0,w6e.extendSubschemaMode)(d,o);let y={...this.it,...d,items:void 0,props:void 0};return jnr(y,f),y}mergeEvaluated(o,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&o.props!==void 0&&(d.props=QP.mergeEvaluated.props(y,o.props,d.props,f)),d.items!==!0&&o.items!==void 0&&(d.items=QP.mergeEvaluated.items(y,o.items,d.items,f)))}mergeValidEvaluated(o,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(o,Eo.Name)),!0}};fI.KeywordCxt=Ice;function aot(s,o,f,d){let y=new Ice(s,f,o);"code"in f?f.code(y,d):y.$data&&f.validate?(0,uH.funcKeywordCode)(y,f):"macro"in f?(0,uH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,uH.funcKeywordCode)(y,f)}t(aot,"keywordCode");var Znr=/^\/(?:[^~]|~0|~1)*$/,Qnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oot(s,{dataLevel:o,dataNames:f,dataPathArr:d}){let y,x;if(s==="")return Nc.default.rootData;if(s[0]==="/"){if(!Znr.test(s))throw new Error(`Invalid JSON-pointer: ${s}`);y=s,x=Nc.default.rootData}else{let G=Qnr.exec(s);if(!G)throw new Error(`Invalid JSON-pointer: ${s}`);let be=+G[1];if(y=G[2],y==="#"){if(be>=o)throw new Error(W("property/index",be));return d[o-be]}if(be>o)throw new Error(W("data",be));if(x=f[o-be],!y)return x}let P=x,F=y.split("/");for(let G of F)G&&(x=(0,Eo._)`${x}${(0,Eo.getProperty)((0,QP.unescapeJsonPointer)(G))}`,P=(0,Eo._)`${P} && ${x}`);return P;function W(G,be){return`Cannot access ${G} ${be} levels up, current level is ${o}`}}t(oot,"getData");fI.getData=oot});var fH=ar(N6e=>{"use strict";Object.defineProperty(N6e,"__esModule",{value:!0});var A6e=class extends Error{static{t(this,"ValidationError")}constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}};N6e.default=A6e});var uM=ar(F6e=>{"use strict";Object.defineProperty(F6e,"__esModule",{value:!0});var I6e=cH(),O6e=class extends Error{static{t(this,"MissingRefError")}constructor(o,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,I6e.resolveUrl)(o,f,d),this.missingSchema=(0,I6e.normalizeId)((0,I6e.getFullPath)(o,this.missingRef))}};F6e.default=O6e});var _H=ar(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.resolveSchema=hT.getCompilingSchema=hT.resolveRef=hT.compileSchema=hT.SchemaEnv=void 0;var xE=Ec(),eir=fH(),AO=dT(),EE=cH(),cot=tu(),tir=lM(),fM=class{static{t(this,"SchemaEnv")}constructor(o){var f;this.refs={},this.dynamicAnchors={};let d;typeof o.schema=="object"&&(d=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(f=o.baseId)!==null&&f!==void 0?f:(0,EE.normalizeId)(d?.[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=d?.$async,this.refs={}}};hT.SchemaEnv=fM;function R6e(s){let o=lot.call(this,s);if(o)return o;let f=(0,EE.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,P=new xE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;s.$async&&(F=P.scopeValue("Error",{ref:eir.default,code:(0,xE._)`require("ajv/dist/runtime/validation_error").default`}));let W=P.scopeName("validate");s.validateName=W;let G={gen:P,allErrors:this.opts.allErrors,data:AO.default.data,parentData:AO.default.parentData,parentDataProperty:AO.default.parentDataProperty,dataNames:[AO.default.data],dataPathArr:[xE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,xE.stringify)(s.schema)}:{ref:s.schema}),validateName:W,ValidationError:F,schema:s.schema,schemaEnv:s,rootId:f,baseId:s.baseId||f,schemaPath:xE.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xE._)`""`,opts:this.opts,self:this},be;try{this._compilations.add(s),(0,tir.validateFunctionCode)(G),P.optimize(this.opts.code.optimize);let de=P.toString();be=`${P.scopeRefs(AO.default.scope)}return ${de}`,this.opts.code.process&&(be=this.opts.code.process(be,s));let Xe=new Function(`${AO.default.self}`,`${AO.default.scope}`,be)(this,this.scope.get());if(this.scope.value(W,{ref:Xe}),Xe.errors=null,Xe.schema=s.schema,Xe.schemaEnv=s,s.$async&&(Xe.$async=!0),this.opts.code.source===!0&&(Xe.source={validateName:W,validateCode:de,scopeValues:P._values}),this.opts.unevaluated){let{props:Ue,items:je}=G;Xe.evaluated={props:Ue instanceof xE.Name?void 0:Ue,items:je instanceof xE.Name?void 0:je,dynamicProps:Ue instanceof xE.Name,dynamicItems:je instanceof xE.Name},Xe.source&&(Xe.source.evaluated=(0,xE.stringify)(Xe.evaluated))}return s.validate=Xe,s}catch(de){throw delete s.validate,delete s.validateName,be&&this.logger.error("Error compiling schema, function code:",be),de}finally{this._compilations.delete(s)}}t(R6e,"compileSchema");hT.compileSchema=R6e;function rir(s,o,f){var d;f=(0,EE.resolveUrl)(this.opts.uriResolver,o,f);let y=s.refs[f];if(y)return y;let x=sir.call(this,s,f);if(x===void 0){let P=(d=s.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;P&&(x=new fM({schema:P,schemaId:F,root:s,baseId:o}))}if(x!==void 0)return s.refs[f]=nir.call(this,x)}t(rir,"resolveRef");hT.resolveRef=rir;function nir(s){return(0,EE.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:R6e.call(this,s)}t(nir,"inlineOrCompile");function lot(s){for(let o of this._compilations)if(iir(o,s))return o}t(lot,"getCompilingSchema");hT.getCompilingSchema=lot;function iir(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}t(iir,"sameSchemaEnv");function sir(s,o){let f;for(;typeof(f=this.refs[o])=="string";)o=f;return f||this.schemas[o]||Oce.call(this,s,o)}t(sir,"resolve");function Oce(s,o){let f=this.opts.uriResolver.parse(o),d=(0,EE._getFullPath)(this.opts.uriResolver,f),y=(0,EE.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&d===y)return L6e.call(this,f,s);let x=(0,EE.normalizeId)(d),P=this.refs[x]||this.schemas[x];if(typeof P=="string"){let F=Oce.call(this,s,P);return typeof F?.schema!="object"?void 0:L6e.call(this,f,F)}if(typeof P?.schema=="object"){if(P.validate||R6e.call(this,P),x===(0,EE.normalizeId)(o)){let{schema:F}=P,{schemaId:W}=this.opts,G=F[W];return G&&(y=(0,EE.resolveUrl)(this.opts.uriResolver,y,G)),new fM({schema:F,schemaId:W,root:s,baseId:y})}return L6e.call(this,f,P)}}t(Oce,"resolveSchema");hT.resolveSchema=Oce;var air=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function L6e(s,{baseId:o,schema:f,root:d}){var y;if(((y=s.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of s.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let W=f[(0,cot.unescapeFragment)(F)];if(W===void 0)return;f=W;let G=typeof f=="object"&&f[this.opts.schemaId];!air.has(F)&&G&&(o=(0,EE.resolveUrl)(this.opts.uriResolver,o,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,cot.schemaHasRulesButRef)(f,this.RULES)){let F=(0,EE.resolveUrl)(this.opts.uriResolver,o,f.$ref);x=Oce.call(this,d,F)}let{schemaId:P}=this.opts;if(x=x||new fM({schema:f,schemaId:P,root:d,baseId:o}),x.schema!==x.root.schema)return x}t(L6e,"getJsonPointer")});var uot=ar((FPr,oir)=>{oir.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var j6e=ar((LPr,dot)=>{"use strict";var cir=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_ot=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function M6e(s){let o="",f=0,d=0;for(d=0;d<s.length;d++)if(f=s[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d];break}for(d+=1;d<s.length;d++){if(f=s[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d]}return o}t(M6e,"stringArrayToHexStripped");var lir=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function fot(s){return s.length=0,!0}t(fot,"consumeIsZone");function uir(s,o,f){if(s.length){let d=M6e(s);if(d!=="")o.push(d);else return f.error=!0,!1;s.length=0}return!0}t(uir,"consumeHextets");function fir(s){let o=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,P=!1,F=uir;for(let W=0;W<s.length;W++){let G=s[W];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(P=!0),!F(y,d,f))break;if(++o>7){f.error=!0;break}W>0&&s[W-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=fot}else{y.push(G);continue}}return y.length&&(F===fot?f.zone=y.join(""):P?d.push(y.join("")):d.push(M6e(y))),f.address=d.join(""),f}t(fir,"getIPV6");function pot(s){if(_ir(s,":")<2)return{host:s,isIPV6:!1};let o=fir(s);if(o.error)return{host:s,isIPV6:!1};{let f=o.address,d=o.address;return o.zone&&(f+="%"+o.zone,d+="%25"+o.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(pot,"normalizeIPv6");function _ir(s,o){let f=0;for(let d=0;d<s.length;d++)s[d]===o&&f++;return f}t(_ir,"findToken");function pir(s){let o=s,f=[],d=-1,y=0;for(;y=o.length;){if(y===1){if(o===".")break;if(o==="/"){f.push("/");break}else{f.push(o);break}}else if(y===2){if(o[0]==="."){if(o[1]===".")break;if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&(o[1]==="."||o[1]==="/")){f.push("/");break}}else if(y===3&&o==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(o[0]==="."){if(o[1]==="."){if(o[2]==="/"){o=o.slice(3);continue}}else if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&o[1]==="."){if(o[2]==="/"){o=o.slice(2);continue}else if(o[2]==="."&&o[3]==="/"){o=o.slice(3),f.length!==0&&f.pop();continue}}if((d=o.indexOf("/",1))===-1){f.push(o);break}else f.push(o.slice(0,d)),o=o.slice(d)}return f.join("")}t(pir,"removeDotSegments");function dir(s,o){let f=o!==!0?escape:unescape;return s.scheme!==void 0&&(s.scheme=f(s.scheme)),s.userinfo!==void 0&&(s.userinfo=f(s.userinfo)),s.host!==void 0&&(s.host=f(s.host)),s.path!==void 0&&(s.path=f(s.path)),s.query!==void 0&&(s.query=f(s.query)),s.fragment!==void 0&&(s.fragment=f(s.fragment)),s}t(dir,"normalizeComponentEncoding");function mir(s){let o=[];if(s.userinfo!==void 0&&(o.push(s.userinfo),o.push("@")),s.host!==void 0){let f=unescape(s.host);if(!_ot(f)){let d=pot(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=s.host}o.push(f)}return(typeof s.port=="number"||typeof s.port=="string")&&(o.push(":"),o.push(String(s.port))),o.length?o.join(""):void 0}t(mir,"recomposeAuthority");dot.exports={nonSimpleDomain:lir,recomposeAuthority:mir,normalizeComponentEncoding:dir,removeDotSegments:pir,isIPv4:_ot,isUUID:cir,normalizeIPv6:pot,stringArrayToHexStripped:M6e}});var vot=ar((MPr,yot)=>{"use strict";var{isUUID:hir}=j6e(),gir=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,yir=["http","https","ws","wss","urn","urn:uuid"];function vir(s){return yir.indexOf(s)!==-1}t(vir,"isValidSchemeName");function B6e(s){return s.secure===!0?!0:s.secure===!1?!1:s.scheme?s.scheme.length===3&&(s.scheme[0]==="w"||s.scheme[0]==="W")&&(s.scheme[1]==="s"||s.scheme[1]==="S")&&(s.scheme[2]==="s"||s.scheme[2]==="S"):!1}t(B6e,"wsIsSecure");function mot(s){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s}t(mot,"httpParse");function hot(s){let o=String(s.scheme).toLowerCase()==="https";return(s.port===(o?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}t(hot,"httpSerialize");function bir(s){return s.secure=B6e(s),s.resourceName=(s.path||"/")+(s.query?"?"+s.query:""),s.path=void 0,s.query=void 0,s}t(bir,"wsParse");function Sir(s){if((s.port===(B6e(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){let[o,f]=s.resourceName.split("?");s.path=o&&o!=="/"?o:void 0,s.query=f,s.resourceName=void 0}return s.fragment=void 0,s}t(Sir,"wsSerialize");function Tir(s,o){if(!s.path)return s.error="URN can not be parsed",s;let f=s.path.match(gir);if(f){let d=o.scheme||s.scheme||"urn";s.nid=f[1].toLowerCase(),s.nss=f[2];let y=`${d}:${o.nid||s.nid}`,x=U6e(y);s.path=void 0,x&&(s=x.parse(s,o))}else s.error=s.error||"URN can not be parsed.";return s}t(Tir,"urnParse");function xir(s,o){if(s.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=o.scheme||s.scheme||"urn",d=s.nid.toLowerCase(),y=`${f}:${o.nid||d}`,x=U6e(y);x&&(s=x.serialize(s,o));let P=s,F=s.nss;return P.path=`${d||o.nid}:${F}`,o.skipEscape=!0,P}t(xir,"urnSerialize");function Eir(s,o){let f=s;return f.uuid=f.nss,f.nss=void 0,!o.tolerant&&(!f.uuid||!hir(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(Eir,"urnuuidParse");function Cir(s){let o=s;return o.nss=(s.uuid||"").toLowerCase(),o}t(Cir,"urnuuidSerialize");var got={scheme:"http",domainHost:!0,parse:mot,serialize:hot},kir={scheme:"https",domainHost:got.domainHost,parse:mot,serialize:hot},Fce={scheme:"ws",domainHost:!0,parse:bir,serialize:Sir},wir={scheme:"wss",domainHost:Fce.domainHost,parse:Fce.parse,serialize:Fce.serialize},Dir={scheme:"urn",parse:Tir,serialize:xir,skipNormalize:!0},Pir={scheme:"urn:uuid",parse:Eir,serialize:Cir,skipNormalize:!0},Lce={http:got,https:kir,ws:Fce,wss:wir,urn:Dir,"urn:uuid":Pir};Object.setPrototypeOf(Lce,null);function U6e(s){return s&&(Lce[s]||Lce[s.toLowerCase()])||void 0}t(U6e,"getSchemeHandler");yot.exports={wsIsSecure:B6e,SCHEMES:Lce,isValidSchemeName:vir,getSchemeHandler:U6e}});var Tot=ar((BPr,Mce)=>{"use strict";var{normalizeIPv6:Air,removeDotSegments:pH,recomposeAuthority:Nir,normalizeComponentEncoding:Rce,isIPv4:Iir,nonSimpleDomain:Oir}=j6e(),{SCHEMES:Fir,getSchemeHandler:bot}=vot();function Lir(s,o){return typeof s=="string"?s=jk(eA(s,o),o):typeof s=="object"&&(s=eA(jk(s,o),o)),s}t(Lir,"normalize");function Rir(s,o,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=Sot(eA(s,d),eA(o,d),d,!0);return d.skipEscape=!0,jk(y,d)}t(Rir,"resolve");function Sot(s,o,f,d){let y={};return d||(s=eA(jk(s,f),f),o=eA(jk(o,f),f)),f=f||{},!f.tolerant&&o.scheme?(y.scheme=o.scheme,y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=pH(o.path||""),y.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=pH(o.path||""),y.query=o.query):(o.path?(o.path[0]==="/"?y.path=pH(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?y.path="/"+o.path:s.path?y.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:y.path=o.path,y.path=pH(y.path)),y.query=o.query):(y.path=s.path,o.query!==void 0?y.query=o.query:y.query=s.query),y.userinfo=s.userinfo,y.host=s.host,y.port=s.port),y.scheme=s.scheme),y.fragment=o.fragment,y}t(Sot,"resolveComponent");function Mir(s,o,f){return typeof s=="string"?(s=unescape(s),s=jk(Rce(eA(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=jk(Rce(s,!0),{...f,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=jk(Rce(eA(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=jk(Rce(o,!0),{...f,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}t(Mir,"equal");function jk(s,o){let f={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},d=Object.assign({},o),y=[],x=bot(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let P=Nir(f);if(P!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(P),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=pH(F)),P===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(jk,"serialize");var jir=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function eA(s,o){let f=Object.assign({},o),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?s=f.scheme+":"+s:s="//"+s);let x=s.match(jir);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(Iir(d.host)===!1){let W=Air(d.host);d.host=W.host.toLowerCase(),y=W.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let P=bot(f.scheme||d.scheme);if(!f.unicodeSupport&&(!P||!P.unicodeSupport)&&d.host&&(f.domainHost||P&&P.domainHost)&&y===!1&&Oir(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!P||P&&!P.skipNormalize)&&(s.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),P&&P.parse&&P.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(eA,"parse");var z6e={SCHEMES:Fir,normalize:Lir,resolve:Rir,resolveComponent:Sot,equal:Mir,serialize:jk,parse:eA};Mce.exports=z6e;Mce.exports.default=z6e;Mce.exports.fastUri=z6e});var Eot=ar($6e=>{"use strict";Object.defineProperty($6e,"__esModule",{value:!0});var xot=Tot();xot.code='require("ajv/dist/runtime/uri").default';$6e.default=xot});var q6e=ar(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.CodeGen=E0.Name=E0.nil=E0.stringify=E0.str=E0._=E0.KeywordCxt=void 0;var Bir=lM();Object.defineProperty(E0,"KeywordCxt",{enumerable:!0,get:t(function(){return Bir.KeywordCxt},"get")});var _M=Ec();Object.defineProperty(E0,"_",{enumerable:!0,get:t(function(){return _M._},"get")});Object.defineProperty(E0,"str",{enumerable:!0,get:t(function(){return _M.str},"get")});Object.defineProperty(E0,"stringify",{enumerable:!0,get:t(function(){return _M.stringify},"get")});Object.defineProperty(E0,"nil",{enumerable:!0,get:t(function(){return _M.nil},"get")});Object.defineProperty(E0,"Name",{enumerable:!0,get:t(function(){return _M.Name},"get")});Object.defineProperty(E0,"CodeGen",{enumerable:!0,get:t(function(){return _M.CodeGen},"get")});var Uir=fH(),Pot=uM(),zir=g6e(),dH=_H(),$ir=Ec(),mH=cH(),jce=oH(),W6e=tu(),Cot=uot(),Jir=Eot(),Aot=t((s,o)=>new RegExp(s,o),"defaultRegExp");Aot.code="new RegExp";var Wir=["removeAdditional","useDefaults","coerceTypes"],qir=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Vir={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Hir={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},kot=200;function Gir(s){var o,f,d,y,x,P,F,W,G,be,de,se,Xe,Ue,je,Vt,Ut,Ir,wn,sn,Jn,kr,yr,xs,bi;let fc=s.strict,Ci=(o=s.code)===null||o===void 0?void 0:o.optimize,bf=Ci===!0||Ci===void 0?1:Ci||0,Bf=(d=(f=s.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:Aot,In=(y=s.uriResolver)!==null&&y!==void 0?y:Jir.default;return{strictSchema:(P=(x=s.strictSchema)!==null&&x!==void 0?x:fc)!==null&&P!==void 0?P:!0,strictNumbers:(W=(F=s.strictNumbers)!==null&&F!==void 0?F:fc)!==null&&W!==void 0?W:!0,strictTypes:(be=(G=s.strictTypes)!==null&&G!==void 0?G:fc)!==null&&be!==void 0?be:"log",strictTuples:(se=(de=s.strictTuples)!==null&&de!==void 0?de:fc)!==null&&se!==void 0?se:"log",strictRequired:(Ue=(Xe=s.strictRequired)!==null&&Xe!==void 0?Xe:fc)!==null&&Ue!==void 0?Ue:!1,code:s.code?{...s.code,optimize:bf,regExp:Bf}:{optimize:bf,regExp:Bf},loopRequired:(je=s.loopRequired)!==null&&je!==void 0?je:kot,loopEnum:(Vt=s.loopEnum)!==null&&Vt!==void 0?Vt:kot,meta:(Ut=s.meta)!==null&&Ut!==void 0?Ut:!0,messages:(Ir=s.messages)!==null&&Ir!==void 0?Ir:!0,inlineRefs:(wn=s.inlineRefs)!==null&&wn!==void 0?wn:!0,schemaId:(sn=s.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Jn=s.addUsedSchema)!==null&&Jn!==void 0?Jn:!0,validateSchema:(kr=s.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(yr=s.validateFormats)!==null&&yr!==void 0?yr:!0,unicodeRegExp:(xs=s.unicodeRegExp)!==null&&xs!==void 0?xs:!0,int32range:(bi=s.int32range)!==null&&bi!==void 0?bi:!0,uriResolver:In}}t(Gir,"requiredOptions");var hH=class{static{t(this,"Ajv")}constructor(o={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,o=this.opts={...o,...Gir(o)};let{es5:f,lines:d}=this.opts.code;this.scope=new $ir.ValueScope({scope:{},prefixes:qir,es5:f,lines:d}),this.logger=esr(o.logger);let y=o.validateFormats;o.validateFormats=!1,this.RULES=(0,zir.getRules)(),wot.call(this,Vir,o,"NOT SUPPORTED"),wot.call(this,Hir,o,"DEPRECATED","warn"),this._metaOpts=Zir.call(this),o.formats&&Kir.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),o.keywords&&Xir.call(this,o.keywords),typeof o.meta=="object"&&this.addMetaSchema(o.meta),Yir.call(this),o.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:o,meta:f,schemaId:d}=this.opts,y=Cot;d==="id"&&(y={...Cot},y.id=y.$id,delete y.$id),f&&o&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:o,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof o=="object"?o[f]||o:void 0}validate(o,f){let d;if(typeof o=="string"){if(d=this.getSchema(o),!d)throw new Error(`no schema with key or ref "${o}"`)}else d=this.compile(o);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(o,f){let d=this._addSchema(o,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(o,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,o,f);async function y(be,de){await x.call(this,be.$schema);let se=this._addSchema(be,de);return se.validate||P.call(this,se)}async function x(be){be&&!this.getSchema(be)&&await y.call(this,{$ref:be},!0)}async function P(be){try{return this._compileSchemaEnv(be)}catch(de){if(!(de instanceof Pot.default))throw de;return F.call(this,de),await W.call(this,de.missingSchema),P.call(this,be)}}function F({missingSchema:be,missingRef:de}){if(this.refs[be])throw new Error(`AnySchema ${be} is loaded but ${de} cannot be resolved`)}async function W(be){let de=await G.call(this,be);this.refs[be]||await x.call(this,de.$schema),this.refs[be]||this.addSchema(de,be,f)}async function G(be){let de=this._loading[be];if(de)return de;try{return await(this._loading[be]=d(be))}finally{delete this._loading[be]}}}addSchema(o,f,d,y=this.opts.validateSchema){if(Array.isArray(o)){for(let P of o)this.addSchema(P,void 0,d,y);return this}let x;if(typeof o=="object"){let{schemaId:P}=this.opts;if(x=o[P],x!==void 0&&typeof x!="string")throw new Error(`schema ${P} must be string`)}return f=(0,mH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(o,d,f,y,!0),this}addMetaSchema(o,f,d=this.opts.validateSchema){return this.addSchema(o,f,!0,d),this}validateSchema(o,f){if(typeof o=="boolean")return!0;let d;if(d=o.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,o);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(o){let f;for(;typeof(f=Dot.call(this,o))=="string";)o=f;if(f===void 0){let{schemaId:d}=this.opts,y=new dH.SchemaEnv({schema:{},schemaId:d});if(f=dH.resolveSchema.call(this,y,o),!f)return;this.refs[o]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(o){if(o instanceof RegExp)return this._removeAllSchemas(this.schemas,o),this._removeAllSchemas(this.refs,o),this;switch(typeof o){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=Dot.call(this,o);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[o],delete this.refs[o],this}case"object":{let f=o;this._cache.delete(f);let d=o[this.opts.schemaId];return d&&(d=(0,mH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(o){for(let f of o)this.addKeyword(f);return this}addKeyword(o,f){let d;if(typeof o=="string")d=o,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof o=="object"&&f===void 0){if(f=o,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rsr.call(this,d,f),!f)return(0,W6e.eachItem)(d,x=>J6e.call(this,x)),this;isr.call(this,f);let y={...f,type:(0,jce.getJSONTypes)(f.type),schemaType:(0,jce.getJSONTypes)(f.schemaType)};return(0,W6e.eachItem)(d,y.type.length===0?x=>J6e.call(this,x,y):x=>y.type.forEach(P=>J6e.call(this,x,y,P))),this}getKeyword(o){let f=this.RULES.all[o];return typeof f=="object"?f.definition:!!f}removeKeyword(o){let{RULES:f}=this;delete f.keywords[o],delete f.all[o];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===o);y>=0&&d.rules.splice(y,1)}return this}addFormat(o,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[o]=f,this}errorsText(o=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!o||o.length===0?"No errors":o.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(o,f){let d=this.RULES.all;o=JSON.parse(JSON.stringify(o));for(let y of f){let x=y.split("/").slice(1),P=o;for(let F of x)P=P[F];for(let F in d){let W=d[F];if(typeof W!="object")continue;let{$data:G}=W.definition,be=P[F];G&&be&&(P[F]=Not(be))}}return o}_removeAllSchemas(o,f){for(let d in o){let y=o[d];(!f||f.test(d))&&(typeof y=="string"?delete o[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete o[d]))}}_addSchema(o,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let P,{schemaId:F}=this.opts;if(typeof o=="object")P=o[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof o!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(o);if(W!==void 0)return W;d=(0,mH.normalizeId)(P||d);let G=mH.getSchemaRefs.call(this,o,d);return W=new dH.SchemaEnv({schema:o,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(W.schema,W),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=W),y&&this.validateSchema(o,!0),W}_checkUnique(o){if(this.schemas[o]||this.refs[o])throw new Error(`schema with key or id "${o}" already exists`)}_compileSchemaEnv(o){if(o.meta?this._compileMetaSchema(o):dH.compileSchema.call(this,o),!o.validate)throw new Error("ajv implementation error");return o.validate}_compileMetaSchema(o){let f=this.opts;this.opts=this._metaOpts;try{dH.compileSchema.call(this,o)}finally{this.opts=f}}};hH.ValidationError=Uir.default;hH.MissingRefError=Pot.default;E0.default=hH;function wot(s,o,f,d="error"){for(let y in s){let x=y;x in o&&this.logger[d](`${f}: option ${y}. ${s[x]}`)}}t(wot,"checkOptions");function Dot(s){return s=(0,mH.normalizeId)(s),this.schemas[s]||this.refs[s]}t(Dot,"getSchEnv");function Yir(){let s=this.opts.schemas;if(s)if(Array.isArray(s))this.addSchema(s);else for(let o in s)this.addSchema(s[o],o)}t(Yir,"addInitialSchemas");function Kir(){for(let s in this.opts.formats){let o=this.opts.formats[s];o&&this.addFormat(s,o)}}t(Kir,"addInitialFormats");function Xir(s){if(Array.isArray(s)){this.addVocabulary(s);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let o in s){let f=s[o];f.keyword||(f.keyword=o),this.addKeyword(f)}}t(Xir,"addInitialKeywords");function Zir(){let s={...this.opts};for(let o of Wir)delete s[o];return s}t(Zir,"getMetaSchemaOptions");var Qir={log(){},warn(){},error(){}};function esr(s){if(s===!1)return Qir;if(s===void 0)return console;if(s.log&&s.warn&&s.error)return s;throw new Error("logger must implement log, warn and error methods")}t(esr,"getLogger");var tsr=/^[a-z_$][a-z0-9_$:-]*$/i;function rsr(s,o){let{RULES:f}=this;if((0,W6e.eachItem)(s,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!tsr.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!o&&o.$data&&!("code"in o||"validate"in o))throw new Error('$data keyword must have "code" or "validate" function')}t(rsr,"checkKeyword");function J6e(s,o,f){var d;let y=o?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,P=y?x.post:x.rules.find(({type:W})=>W===f);if(P||(P={type:f,rules:[]},x.rules.push(P)),x.keywords[s]=!0,!o)return;let F={keyword:s,definition:{...o,type:(0,jce.getJSONTypes)(o.type),schemaType:(0,jce.getJSONTypes)(o.schemaType)}};o.before?nsr.call(this,P,F,o.before):P.rules.push(F),x.all[s]=F,(d=o.implements)===null||d===void 0||d.forEach(W=>this.addKeyword(W))}t(J6e,"addRule");function nsr(s,o,f){let d=s.rules.findIndex(y=>y.keyword===f);d>=0?s.rules.splice(d,0,o):(s.rules.push(o),this.logger.warn(`rule ${f} is not defined`))}t(nsr,"addBeforeRule");function isr(s){let{metaSchema:o}=s;o!==void 0&&(s.$data&&this.opts.$data&&(o=Not(o)),s.validateSchema=this.compile(o,!0))}t(isr,"keywordMetaschema");var ssr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Not(s){return{anyOf:[s,ssr]}}t(Not,"schemaOrData")});var Iot=ar(V6e=>{"use strict";Object.defineProperty(V6e,"__esModule",{value:!0});var asr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};V6e.default=asr});var zce=ar(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});NO.callRef=NO.getValidate=void 0;var osr=uM(),Oot=mT(),Zv=Ec(),pM=dT(),Fot=_H(),Bce=tu(),csr={keyword:"$ref",schemaType:"string",code(s){let{gen:o,schema:f,it:d}=s,{baseId:y,schemaEnv:x,validateName:P,opts:F,self:W}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let be=Fot.resolveRef.call(W,G,y,f);if(be===void 0)throw new osr.default(d.opts.uriResolver,y,f);if(be instanceof Fot.SchemaEnv)return se(be);return Xe(be);function de(){if(x===G)return Uce(s,P,x,x.$async);let Ue=o.scopeValue("root",{ref:G});return Uce(s,(0,Zv._)`${Ue}.validate`,G,G.$async)}function se(Ue){let je=Lot(s,Ue);Uce(s,je,Ue,Ue.$async)}function Xe(Ue){let je=o.scopeValue("schema",F.code.source===!0?{ref:Ue,code:(0,Zv.stringify)(Ue)}:{ref:Ue}),Vt=o.name("valid"),Ut=s.subschema({schema:Ue,dataTypes:[],schemaPath:Zv.nil,topSchemaRef:je,errSchemaPath:f},Vt);s.mergeEvaluated(Ut),s.ok(Vt)}}};function Lot(s,o){let{gen:f}=s;return o.validate?f.scopeValue("validate",{ref:o.validate}):(0,Zv._)`${f.scopeValue("wrapper",{ref:o})}.validate`}t(Lot,"getValidate");NO.getValidate=Lot;function Uce(s,o,f,d){let{gen:y,it:x}=s,{allErrors:P,schemaEnv:F,opts:W}=x,G=W.passContext?pM.default.this:Zv.nil;d?be():de();function be(){if(!F.$async)throw new Error("async schema referenced by sync schema");let Ue=y.let("valid");y.try(()=>{y.code((0,Zv._)`await ${(0,Oot.callValidateCode)(s,o,G)}`),Xe(o),P||y.assign(Ue,!0)},je=>{y.if((0,Zv._)`!(${je} instanceof ${x.ValidationError})`,()=>y.throw(je)),se(je),P||y.assign(Ue,!1)}),s.ok(Ue)}t(be,"callAsyncRef");function de(){s.result((0,Oot.callValidateCode)(s,o,G),()=>Xe(o),()=>se(o))}t(de,"callSyncRef");function se(Ue){let je=(0,Zv._)`${Ue}.errors`;y.assign(pM.default.vErrors,(0,Zv._)`${pM.default.vErrors} === null ? ${je} : ${pM.default.vErrors}.concat(${je})`),y.assign(pM.default.errors,(0,Zv._)`${pM.default.vErrors}.length`)}t(se,"addErrorsFrom");function Xe(Ue){var je;if(!x.opts.unevaluated)return;let Vt=(je=f?.validate)===null||je===void 0?void 0:je.evaluated;if(x.props!==!0)if(Vt&&!Vt.dynamicProps)Vt.props!==void 0&&(x.props=Bce.mergeEvaluated.props(y,Vt.props,x.props));else{let Ut=y.var("props",(0,Zv._)`${Ue}.evaluated.props`);x.props=Bce.mergeEvaluated.props(y,Ut,x.props,Zv.Name)}if(x.items!==!0)if(Vt&&!Vt.dynamicItems)Vt.items!==void 0&&(x.items=Bce.mergeEvaluated.items(y,Vt.items,x.items));else{let Ut=y.var("items",(0,Zv._)`${Ue}.evaluated.items`);x.items=Bce.mergeEvaluated.items(y,Ut,x.items,Zv.Name)}}t(Xe,"addEvaluatedFrom")}t(Uce,"callRef");NO.callRef=Uce;NO.default=csr});var G6e=ar(H6e=>{"use strict";Object.defineProperty(H6e,"__esModule",{value:!0});var lsr=Iot(),usr=zce(),fsr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lsr.default,usr.default];H6e.default=fsr});var Rot=ar(Y6e=>{"use strict";Object.defineProperty(Y6e,"__esModule",{value:!0});var $ce=Ec(),_I=$ce.operators,Jce={maximum:{okStr:"<=",ok:_I.LTE,fail:_I.GT},minimum:{okStr:">=",ok:_I.GTE,fail:_I.LT},exclusiveMaximum:{okStr:"<",ok:_I.LT,fail:_I.GTE},exclusiveMinimum:{okStr:">",ok:_I.GT,fail:_I.LTE}},_sr={message:t(({keyword:s,schemaCode:o})=>(0,$ce.str)`must be ${Jce[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,$ce._)`{comparison: ${Jce[s].okStr}, limit: ${o}}`,"params")},psr={keyword:Object.keys(Jce),type:"number",schemaType:"number",$data:!0,error:_sr,code(s){let{keyword:o,data:f,schemaCode:d}=s;s.fail$data((0,$ce._)`${f} ${Jce[o].fail} ${d} || isNaN(${f})`)}};Y6e.default=psr});var Mot=ar(K6e=>{"use strict";Object.defineProperty(K6e,"__esModule",{value:!0});var gH=Ec(),dsr={message:t(({schemaCode:s})=>(0,gH.str)`must be multiple of ${s}`,"message"),params:t(({schemaCode:s})=>(0,gH._)`{multipleOf: ${s}}`,"params")},msr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:dsr,code(s){let{gen:o,data:f,schemaCode:d,it:y}=s,x=y.opts.multipleOfPrecision,P=o.let("res"),F=x?(0,gH._)`Math.abs(Math.round(${P}) - ${P}) > 1e-${x}`:(0,gH._)`${P} !== parseInt(${P})`;s.fail$data((0,gH._)`(${d} === 0 || (${P} = ${f}/${d}, ${F}))`)}};K6e.default=msr});var Bot=ar(X6e=>{"use strict";Object.defineProperty(X6e,"__esModule",{value:!0});function jot(s){let o=s.length,f=0,d=0,y;for(;d<o;)f++,y=s.charCodeAt(d++),y>=55296&&y<=56319&&d<o&&(y=s.charCodeAt(d),(y&64512)===56320&&d++);return f}t(jot,"ucs2length");X6e.default=jot;jot.code='require("ajv/dist/runtime/ucs2length").default'});var Uot=ar(Z6e=>{"use strict";Object.defineProperty(Z6e,"__esModule",{value:!0});var IO=Ec(),hsr=tu(),gsr=Bot(),ysr={message({keyword:s,schemaCode:o}){let f=s==="maxLength"?"more":"fewer";return(0,IO.str)`must NOT have ${f} than ${o} characters`},params:t(({schemaCode:s})=>(0,IO._)`{limit: ${s}}`,"params")},vsr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ysr,code(s){let{keyword:o,data:f,schemaCode:d,it:y}=s,x=o==="maxLength"?IO.operators.GT:IO.operators.LT,P=y.opts.unicode===!1?(0,IO._)`${f}.length`:(0,IO._)`${(0,hsr.useFunc)(s.gen,gsr.default)}(${f})`;s.fail$data((0,IO._)`${P} ${x} ${d}`)}};Z6e.default=vsr});var zot=ar(Q6e=>{"use strict";Object.defineProperty(Q6e,"__esModule",{value:!0});var bsr=mT(),Wce=Ec(),Ssr={message:t(({schemaCode:s})=>(0,Wce.str)`must match pattern "${s}"`,"message"),params:t(({schemaCode:s})=>(0,Wce._)`{pattern: ${s}}`,"params")},Tsr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ssr,code(s){let{data:o,$data:f,schema:d,schemaCode:y,it:x}=s,P=x.opts.unicodeRegExp?"u":"",F=f?(0,Wce._)`(new RegExp(${y}, ${P}))`:(0,bsr.usePattern)(s,d);s.fail$data((0,Wce._)`!${F}.test(${o})`)}};Q6e.default=Tsr});var $ot=ar(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});var yH=Ec(),xsr={message({keyword:s,schemaCode:o}){let f=s==="maxProperties"?"more":"fewer";return(0,yH.str)`must NOT have ${f} than ${o} properties`},params:t(({schemaCode:s})=>(0,yH._)`{limit: ${s}}`,"params")},Esr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:xsr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxProperties"?yH.operators.GT:yH.operators.LT;s.fail$data((0,yH._)`Object.keys(${f}).length ${y} ${d}`)}};eNe.default=Esr});var Jot=ar(tNe=>{"use strict";Object.defineProperty(tNe,"__esModule",{value:!0});var vH=mT(),bH=Ec(),Csr=tu(),ksr={message:t(({params:{missingProperty:s}})=>(0,bH.str)`must have required property '${s}'`,"message"),params:t(({params:{missingProperty:s}})=>(0,bH._)`{missingProperty: ${s}}`,"params")},wsr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ksr,code(s){let{gen:o,schema:f,schemaCode:d,data:y,$data:x,it:P}=s,{opts:F}=P;if(!x&&f.length===0)return;let W=f.length>=F.loopRequired;if(P.allErrors?G():be(),F.strictRequired){let Xe=s.parentSchema.properties,{definedProperties:Ue}=s.it;for(let je of f)if(Xe?.[je]===void 0&&!Ue.has(je)){let Vt=P.schemaEnv.baseId+P.errSchemaPath,Ut=`required property "${je}" is not defined at "${Vt}" (strictRequired)`;(0,Csr.checkStrictMode)(P,Ut,P.opts.strictRequired)}}function G(){if(W||x)s.block$data(bH.nil,de);else for(let Xe of f)(0,vH.checkReportMissingProp)(s,Xe)}t(G,"allErrorsMode");function be(){let Xe=o.let("missing");if(W||x){let Ue=o.let("valid",!0);s.block$data(Ue,()=>se(Xe,Ue)),s.ok(Ue)}else o.if((0,vH.checkMissingProp)(s,f,Xe)),(0,vH.reportMissingProp)(s,Xe),o.else()}t(be,"exitOnErrorMode");function de(){o.forOf("prop",d,Xe=>{s.setParams({missingProperty:Xe}),o.if((0,vH.noPropertyInData)(o,y,Xe,F.ownProperties),()=>s.error())})}t(de,"loopAllRequired");function se(Xe,Ue){s.setParams({missingProperty:Xe}),o.forOf(Xe,d,()=>{o.assign(Ue,(0,vH.propertyInData)(o,y,Xe,F.ownProperties)),o.if((0,bH.not)(Ue),()=>{s.error(),o.break()})},bH.nil)}t(se,"loopUntilMissing")}};tNe.default=wsr});var Wot=ar(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});var SH=Ec(),Dsr={message({keyword:s,schemaCode:o}){let f=s==="maxItems"?"more":"fewer";return(0,SH.str)`must NOT have ${f} than ${o} items`},params:t(({schemaCode:s})=>(0,SH._)`{limit: ${s}}`,"params")},Psr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Dsr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxItems"?SH.operators.GT:SH.operators.LT;s.fail$data((0,SH._)`${f}.length ${y} ${d}`)}};rNe.default=Psr});var qce=ar(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});var qot=C6e();qot.code='require("ajv/dist/runtime/equal").default';nNe.default=qot});var Vot=ar(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});var iNe=oH(),C0=Ec(),Asr=tu(),Nsr=qce(),Isr={message:t(({params:{i:s,j:o}})=>(0,C0.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,"message"),params:t(({params:{i:s,j:o}})=>(0,C0._)`{i: ${s}, j: ${o}}`,"params")},Osr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Isr,code(s){let{gen:o,data:f,$data:d,schema:y,parentSchema:x,schemaCode:P,it:F}=s;if(!d&&!y)return;let W=o.let("valid"),G=x.items?(0,iNe.getSchemaTypes)(x.items):[];s.block$data(W,be,(0,C0._)`${P} === false`),s.ok(W);function be(){let Ue=o.let("i",(0,C0._)`${f}.length`),je=o.let("j");s.setParams({i:Ue,j:je}),o.assign(W,!0),o.if((0,C0._)`${Ue} > 1`,()=>(de()?se:Xe)(Ue,je))}t(be,"validateUniqueItems");function de(){return G.length>0&&!G.some(Ue=>Ue==="object"||Ue==="array")}t(de,"canOptimize");function se(Ue,je){let Vt=o.name("item"),Ut=(0,iNe.checkDataTypes)(G,Vt,F.opts.strictNumbers,iNe.DataType.Wrong),Ir=o.const("indices",(0,C0._)`{}`);o.for((0,C0._)`;${Ue}--;`,()=>{o.let(Vt,(0,C0._)`${f}[${Ue}]`),o.if(Ut,(0,C0._)`continue`),G.length>1&&o.if((0,C0._)`typeof ${Vt} == "string"`,(0,C0._)`${Vt} += "_"`),o.if((0,C0._)`typeof ${Ir}[${Vt}] == "number"`,()=>{o.assign(je,(0,C0._)`${Ir}[${Vt}]`),s.error(),o.assign(W,!1).break()}).code((0,C0._)`${Ir}[${Vt}] = ${Ue}`)})}t(se,"loopN");function Xe(Ue,je){let Vt=(0,Asr.useFunc)(o,Nsr.default),Ut=o.name("outer");o.label(Ut).for((0,C0._)`;${Ue}--;`,()=>o.for((0,C0._)`${je} = ${Ue}; ${je}--;`,()=>o.if((0,C0._)`${Vt}(${f}[${Ue}], ${f}[${je}])`,()=>{s.error(),o.assign(W,!1).break(Ut)})))}t(Xe,"loopN2")}};sNe.default=Osr});var Hot=ar(oNe=>{"use strict";Object.defineProperty(oNe,"__esModule",{value:!0});var aNe=Ec(),Fsr=tu(),Lsr=qce(),Rsr={message:"must be equal to constant",params:t(({schemaCode:s})=>(0,aNe._)`{allowedValue: ${s}}`,"params")},Msr={keyword:"const",$data:!0,error:Rsr,code(s){let{gen:o,data:f,$data:d,schemaCode:y,schema:x}=s;d||x&&typeof x=="object"?s.fail$data((0,aNe._)`!${(0,Fsr.useFunc)(o,Lsr.default)}(${f}, ${y})`):s.fail((0,aNe._)`${x} !== ${f}`)}};oNe.default=Msr});var Got=ar(cNe=>{"use strict";Object.defineProperty(cNe,"__esModule",{value:!0});var TH=Ec(),jsr=tu(),Bsr=qce(),Usr={message:"must be equal to one of the allowed values",params:t(({schemaCode:s})=>(0,TH._)`{allowedValues: ${s}}`,"params")},zsr={keyword:"enum",schemaType:"array",$data:!0,error:Usr,code(s){let{gen:o,data:f,$data:d,schema:y,schemaCode:x,it:P}=s;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=P.opts.loopEnum,W,G=t(()=>W??(W=(0,jsr.useFunc)(o,Bsr.default)),"getEql"),be;if(F||d)be=o.let("valid"),s.block$data(be,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Xe=o.const("vSchema",x);be=(0,TH.or)(...y.map((Ue,je)=>se(Xe,je)))}s.pass(be);function de(){o.assign(be,!1),o.forOf("v",x,Xe=>o.if((0,TH._)`${G()}(${f}, ${Xe})`,()=>o.assign(be,!0).break()))}t(de,"loopEnum");function se(Xe,Ue){let je=y[Ue];return typeof je=="object"&&je!==null?(0,TH._)`${G()}(${f}, ${Xe}[${Ue}])`:(0,TH._)`${f} === ${je}`}t(se,"equalCode")}};cNe.default=zsr});var uNe=ar(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});var $sr=Rot(),Jsr=Mot(),Wsr=Uot(),qsr=zot(),Vsr=$ot(),Hsr=Jot(),Gsr=Wot(),Ysr=Vot(),Ksr=Hot(),Xsr=Got(),Zsr=[$sr.default,Jsr.default,Wsr.default,qsr.default,Vsr.default,Hsr.default,Gsr.default,Ysr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ksr.default,Xsr.default];lNe.default=Zsr});var _Ne=ar(xH=>{"use strict";Object.defineProperty(xH,"__esModule",{value:!0});xH.validateAdditionalItems=void 0;var OO=Ec(),fNe=tu(),Qsr={message:t(({params:{len:s}})=>(0,OO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,OO._)`{limit: ${s}}`,"params")},ear={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Qsr,code(s){let{parentSchema:o,it:f}=s,{items:d}=o;if(!Array.isArray(d)){(0,fNe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}Yot(s,d)}};function Yot(s,o){let{gen:f,schema:d,data:y,keyword:x,it:P}=s;P.items=!0;let F=f.const("len",(0,OO._)`${y}.length`);if(d===!1)s.setParams({len:o.length}),s.pass((0,OO._)`${F} <= ${o.length}`);else if(typeof d=="object"&&!(0,fNe.alwaysValidSchema)(P,d)){let G=f.var("valid",(0,OO._)`${F} <= ${o.length}`);f.if((0,OO.not)(G),()=>W(G)),s.ok(G)}function W(G){f.forRange("i",o.length,F,be=>{s.subschema({keyword:x,dataProp:be,dataPropType:fNe.Type.Num},G),P.allErrors||f.if((0,OO.not)(G),()=>f.break())})}t(W,"validateItems")}t(Yot,"validateAdditionalItems");xH.validateAdditionalItems=Yot;xH.default=ear});var pNe=ar(EH=>{"use strict";Object.defineProperty(EH,"__esModule",{value:!0});EH.validateTuple=void 0;var Kot=Ec(),Vce=tu(),tar=mT(),rar={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){let{schema:o,it:f}=s;if(Array.isArray(o))return Xot(s,"additionalItems",o);f.items=!0,!(0,Vce.alwaysValidSchema)(f,o)&&s.ok((0,tar.validateArray)(s))}};function Xot(s,o,f=s.schema){let{gen:d,parentSchema:y,data:x,keyword:P,it:F}=s;be(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=Vce.mergeEvaluated.items(d,f.length,F.items));let W=d.name("valid"),G=d.const("len",(0,Kot._)`${x}.length`);f.forEach((de,se)=>{(0,Vce.alwaysValidSchema)(F,de)||(d.if((0,Kot._)`${G} > ${se}`,()=>s.subschema({keyword:P,schemaProp:se,dataProp:se},W)),s.ok(W))});function be(de){let{opts:se,errSchemaPath:Xe}=F,Ue=f.length,je=Ue===de.minItems&&(Ue===de.maxItems||de[o]===!1);if(se.strictTuples&&!je){let Vt=`"${P}" is ${Ue}-tuple, but minItems or maxItems/${o} are not specified or different at path "${Xe}"`;(0,Vce.checkStrictMode)(F,Vt,se.strictTuples)}}t(be,"checkStrictTuple")}t(Xot,"validateTuple");EH.validateTuple=Xot;EH.default=rar});var Zot=ar(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});var nar=pNe(),iar={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(s=>(0,nar.validateTuple)(s,"items"),"code")};dNe.default=iar});var ect=ar(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});var Qot=Ec(),sar=tu(),aar=mT(),oar=_Ne(),car={message:t(({params:{len:s}})=>(0,Qot.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,Qot._)`{limit: ${s}}`,"params")},lar={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:car,code(s){let{schema:o,parentSchema:f,it:d}=s,{prefixItems:y}=f;d.items=!0,!(0,sar.alwaysValidSchema)(d,o)&&(y?(0,oar.validateAdditionalItems)(s,y):s.ok((0,aar.validateArray)(s)))}};mNe.default=lar});var tct=ar(hNe=>{"use strict";Object.defineProperty(hNe,"__esModule",{value:!0});var gT=Ec(),Hce=tu(),uar={message:t(({params:{min:s,max:o}})=>o===void 0?(0,gT.str)`must contain at least ${s} valid item(s)`:(0,gT.str)`must contain at least ${s} and no more than ${o} valid item(s)`,"message"),params:t(({params:{min:s,max:o}})=>o===void 0?(0,gT._)`{minContains: ${s}}`:(0,gT._)`{minContains: ${s}, maxContains: ${o}}`,"params")},far={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uar,code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s,P,F,{minContains:W,maxContains:G}=d;x.opts.next?(P=W===void 0?1:W,F=G):P=1;let be=o.const("len",(0,gT._)`${y}.length`);if(s.setParams({min:P,max:F}),F===void 0&&P===0){(0,Hce.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&P>F){(0,Hce.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,Hce.alwaysValidSchema)(x,f)){let je=(0,gT._)`${be} >= ${P}`;F!==void 0&&(je=(0,gT._)`${je} && ${be} <= ${F}`),s.pass(je);return}x.items=!0;let de=o.name("valid");F===void 0&&P===1?Xe(de,()=>o.if(de,()=>o.break())):P===0?(o.let(de,!0),F!==void 0&&o.if((0,gT._)`${y}.length > 0`,se)):(o.let(de,!1),se()),s.result(de,()=>s.reset());function se(){let je=o.name("_valid"),Vt=o.let("count",0);Xe(je,()=>o.if(je,()=>Ue(Vt)))}t(se,"validateItemsWithCount");function Xe(je,Vt){o.forRange("i",0,be,Ut=>{s.subschema({keyword:"contains",dataProp:Ut,dataPropType:Hce.Type.Num,compositeRule:!0},je),Vt()})}t(Xe,"validateItems");function Ue(je){o.code((0,gT._)`${je}++`),F===void 0?o.if((0,gT._)`${je} >= ${P}`,()=>o.assign(de,!0).break()):(o.if((0,gT._)`${je} > ${F}`,()=>o.assign(de,!1).break()),P===1?o.assign(de,!0):o.if((0,gT._)`${je} >= ${P}`,()=>o.assign(de,!0)))}t(Ue,"checkLimits")}};hNe.default=far});var Gce=ar(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.validateSchemaDeps=Bk.validatePropertyDeps=Bk.error=void 0;var gNe=Ec(),_ar=tu(),CH=mT();Bk.error={message:t(({params:{property:s,depsCount:o,deps:f}})=>{let d=o===1?"property":"properties";return(0,gNe.str)`must have ${d} ${f} when property ${s} is present`},"message"),params:t(({params:{property:s,depsCount:o,deps:f,missingProperty:d}})=>(0,gNe._)`{property: ${s},
65
+ || ${P} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(W,"coerceSpecificType")}t(Vrr,"coerceData");function Hrr({gen:s,parentData:o,parentDataProperty:f},d){s.if((0,hl._)`${o} !== undefined`,()=>s.assign((0,hl._)`${o}[${f}]`,d))}t(Hrr,"assignParentData");function v6e(s,o,f,d=aM.Correct){let y=d===aM.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(s){case"null":return(0,hl._)`${o} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${o})`;break;case"object":x=(0,hl._)`${o} && typeof ${o} == "object" && !Array.isArray(${o})`;break;case"integer":x=P((0,hl._)`!(${o} % 1) && !isNaN(${o})`);break;case"number":x=P();break;default:return(0,hl._)`typeof ${o} ${y} ${s}`}return d===aM.Correct?x:(0,hl.not)(x);function P(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${o} == "number"`,F,f?(0,hl._)`isFinite(${o})`:hl.nil)}}t(v6e,"checkDataType");Dy.checkDataType=v6e;function b6e(s,o,f,d){if(s.length===1)return v6e(s[0],o,f,d);let y,x=(0,Aat.toHash)(s);if(x.array&&x.object){let P=(0,hl._)`typeof ${o} != "object"`;y=x.null?P:(0,hl._)`!${o} || ${P}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let P in x)y=(0,hl.and)(y,v6e(P,o,f,d));return y}t(b6e,"checkDataTypes");Dy.checkDataTypes=b6e;var Grr={message:t(({schema:s})=>`must be ${s}`,"message"),params:t(({schema:s,schemaValue:o})=>typeof s=="string"?(0,hl._)`{type: ${s}}`:(0,hl._)`{type: ${o}}`,"params")};function S6e(s){let o=Yrr(s);(0,$rr.reportError)(o,Grr)}t(S6e,"reportTypeError");Dy.reportTypeError=S6e;function Yrr(s){let{gen:o,data:f,schema:d}=s,y=(0,Aat.schemaRefOrVal)(s,d,"type");return{gen:o,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:s}}t(Yrr,"getTypeErrorContext")});var Fat=ar(Pce=>{"use strict";Object.defineProperty(Pce,"__esModule",{value:!0});Pce.assignDefaults=void 0;var oM=Ec(),Krr=tu();function Xrr(s,o){let{properties:f,items:d}=s.schema;if(o==="object"&&f)for(let y in f)Oat(s,y,f[y].default);else o==="array"&&Array.isArray(d)&&d.forEach((y,x)=>Oat(s,x,y.default))}t(Xrr,"assignDefaults");Pce.assignDefaults=Xrr;function Oat(s,o,f){let{gen:d,compositeRule:y,data:x,opts:P}=s;if(f===void 0)return;let F=(0,oM._)`${x}${(0,oM.getProperty)(o)}`;if(y){(0,Krr.checkStrictMode)(s,`default is ignored for: ${F}`);return}let W=(0,oM._)`${F} === undefined`;P.useDefaults==="empty"&&(W=(0,oM._)`${W} || ${F} === null || ${F} === ""`),d.if(W,(0,oM._)`${F} = ${(0,oM.stringify)(f)}`)}t(Oat,"assignDefault")});var mT=ar(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.validateUnion=S_.validateArray=S_.usePattern=S_.callValidateCode=S_.schemaProperties=S_.allSchemaProperties=S_.noPropertyInData=S_.propertyInData=S_.isOwnProperty=S_.hasPropFunc=S_.reportMissingProp=S_.checkMissingProp=S_.checkReportMissingProp=void 0;var Ap=Ec(),T6e=tu(),cI=dT(),Zrr=tu();function Qrr(s,o){let{gen:f,data:d,it:y}=s;f.if(E6e(f,d,o,y.opts.ownProperties),()=>{s.setParams({missingProperty:(0,Ap._)`${o}`},!0),s.error()})}t(Qrr,"checkReportMissingProp");S_.checkReportMissingProp=Qrr;function enr({gen:s,data:o,it:{opts:f}},d,y){return(0,Ap.or)(...d.map(x=>(0,Ap.and)(E6e(s,o,x,f.ownProperties),(0,Ap._)`${y} = ${x}`)))}t(enr,"checkMissingProp");S_.checkMissingProp=enr;function tnr(s,o){s.setParams({missingProperty:o},!0),s.error()}t(tnr,"reportMissingProp");S_.reportMissingProp=tnr;function Lat(s){return s.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ap._)`Object.prototype.hasOwnProperty`})}t(Lat,"hasPropFunc");S_.hasPropFunc=Lat;function x6e(s,o,f){return(0,Ap._)`${Lat(s)}.call(${o}, ${f})`}t(x6e,"isOwnProperty");S_.isOwnProperty=x6e;function rnr(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} !== undefined`;return d?(0,Ap._)`${y} && ${x6e(s,o,f)}`:y}t(rnr,"propertyInData");S_.propertyInData=rnr;function E6e(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} === undefined`;return d?(0,Ap.or)(y,(0,Ap.not)(x6e(s,o,f))):y}t(E6e,"noPropertyInData");S_.noPropertyInData=E6e;function Rat(s){return s?Object.keys(s).filter(o=>o!=="__proto__"):[]}t(Rat,"allSchemaProperties");S_.allSchemaProperties=Rat;function nnr(s,o){return Rat(o).filter(f=>!(0,T6e.alwaysValidSchema)(s,o[f]))}t(nnr,"schemaProperties");S_.schemaProperties=nnr;function inr({schemaCode:s,data:o,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:P},F,W,G){let be=G?(0,Ap._)`${s}, ${o}, ${d}${y}`:o,de=[[cI.default.instancePath,(0,Ap.strConcat)(cI.default.instancePath,x)],[cI.default.parentData,P.parentData],[cI.default.parentDataProperty,P.parentDataProperty],[cI.default.rootData,cI.default.rootData]];P.opts.dynamicRef&&de.push([cI.default.dynamicAnchors,cI.default.dynamicAnchors]);let se=(0,Ap._)`${be}, ${f.object(...de)}`;return W!==Ap.nil?(0,Ap._)`${F}.call(${W}, ${se})`:(0,Ap._)`${F}(${se})`}t(inr,"callValidateCode");S_.callValidateCode=inr;var snr=(0,Ap._)`new RegExp`;function anr({gen:s,it:{opts:o}},f){let d=o.unicodeRegExp?"u":"",{regExp:y}=o.code,x=y(f,d);return s.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Ap._)`${y.code==="new RegExp"?snr:(0,Zrr.useFunc)(s,y)}(${f}, ${d})`})}t(anr,"usePattern");S_.usePattern=anr;function onr(s){let{gen:o,data:f,keyword:d,it:y}=s,x=o.name("valid");if(y.allErrors){let F=o.let("valid",!0);return P(()=>o.assign(F,!1)),F}return o.var(x,!0),P(()=>o.break()),x;function P(F){let W=o.const("len",(0,Ap._)`${f}.length`);o.forRange("i",0,W,G=>{s.subschema({keyword:d,dataProp:G,dataPropType:T6e.Type.Num},x),o.if((0,Ap.not)(x),F)})}t(P,"validateItems")}t(onr,"validateArray");S_.validateArray=onr;function cnr(s){let{gen:o,schema:f,keyword:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(W=>(0,T6e.alwaysValidSchema)(y,W))&&!y.opts.unevaluated)return;let P=o.let("valid",!1),F=o.name("_valid");o.block(()=>f.forEach((W,G)=>{let be=s.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);o.assign(P,(0,Ap._)`${P} || ${F}`),s.mergeValidEvaluated(be,F)||o.if((0,Ap.not)(P))})),s.result(P,()=>s.reset(),()=>s.error(!0))}t(cnr,"validateUnion");S_.validateUnion=cnr});var Bat=ar(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.validateKeywordUsage=Rk.validSchemaType=Rk.funcKeywordCode=Rk.macroKeywordCode=void 0;var R1=Ec(),PO=dT(),lnr=mT(),unr=aH();function fnr(s,o){let{gen:f,keyword:d,schema:y,parentSchema:x,it:P}=s,F=o.macro.call(P.self,y,x,P),W=jat(f,d,F);P.opts.validateSchema!==!1&&P.self.validateSchema(F,!0);let G=f.name("valid");s.subschema({schema:F,schemaPath:R1.nil,errSchemaPath:`${P.errSchemaPath}/${d}`,topSchemaRef:W,compositeRule:!0},G),s.pass(G,()=>s.error(!0))}t(fnr,"macroKeywordCode");Rk.macroKeywordCode=fnr;function _nr(s,o){var f;let{gen:d,keyword:y,schema:x,parentSchema:P,$data:F,it:W}=s;dnr(W,o);let G=!F&&o.compile?o.compile.call(W.self,x,P,W):o.validate,be=jat(d,y,G),de=d.let("valid");s.block$data(de,se),s.ok((f=o.valid)!==null&&f!==void 0?f:de);function se(){if(o.errors===!1)je(),o.modifying&&Mat(s),Vt(()=>s.error());else{let Ut=o.async?Xe():Ue();o.modifying&&Mat(s),Vt(()=>pnr(s,Ut))}}t(se,"validateKeyword");function Xe(){let Ut=d.let("ruleErrs",null);return d.try(()=>je((0,R1._)`await `),Ir=>d.assign(de,!1).if((0,R1._)`${Ir} instanceof ${W.ValidationError}`,()=>d.assign(Ut,(0,R1._)`${Ir}.errors`),()=>d.throw(Ir))),Ut}t(Xe,"validateAsync");function Ue(){let Ut=(0,R1._)`${be}.errors`;return d.assign(Ut,null),je(R1.nil),Ut}t(Ue,"validateSync");function je(Ut=o.async?(0,R1._)`await `:R1.nil){let Ir=W.opts.passContext?PO.default.this:PO.default.self,wn=!("compile"in o&&!F||o.schema===!1);d.assign(de,(0,R1._)`${Ut}${(0,lnr.callValidateCode)(s,be,Ir,wn)}`,o.modifying)}t(je,"assignValid");function Vt(Ut){var Ir;d.if((0,R1.not)((Ir=o.valid)!==null&&Ir!==void 0?Ir:de),Ut)}t(Vt,"reportErrs")}t(_nr,"funcKeywordCode");Rk.funcKeywordCode=_nr;function Mat(s){let{gen:o,data:f,it:d}=s;o.if(d.parentData,()=>o.assign(f,(0,R1._)`${d.parentData}[${d.parentDataProperty}]`))}t(Mat,"modifyData");function pnr(s,o){let{gen:f}=s;f.if((0,R1._)`Array.isArray(${o})`,()=>{f.assign(PO.default.vErrors,(0,R1._)`${PO.default.vErrors} === null ? ${o} : ${PO.default.vErrors}.concat(${o})`).assign(PO.default.errors,(0,R1._)`${PO.default.vErrors}.length`),(0,unr.extendErrors)(s)},()=>s.error())}t(pnr,"addErrs");function dnr({schemaEnv:s},o){if(o.async&&!s.$async)throw new Error("async keyword in sync schema")}t(dnr,"checkAsyncKeyword");function jat(s,o,f){if(f===void 0)throw new Error(`keyword "${o}" failed to compile`);return s.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,R1.stringify)(f)})}t(jat,"useKeyword");function mnr(s,o,f=!1){return!o.length||o.some(d=>d==="array"?Array.isArray(s):d==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==d||f&&typeof s>"u")}t(mnr,"validSchemaType");Rk.validSchemaType=mnr;function hnr({schema:s,opts:o,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let P=y.dependencies;if(P?.some(F=>!Object.prototype.hasOwnProperty.call(s,F)))throw new Error(`parent schema must have dependencies of ${x}: ${P.join(",")}`);if(y.validateSchema&&!y.validateSchema(s[x])){let W=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(o.validateSchema==="log")f.logger.error(W);else throw new Error(W)}}t(hnr,"validateKeywordUsage");Rk.validateKeywordUsage=hnr});var zat=ar(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.extendSubschemaMode=lI.extendSubschemaData=lI.getSubschema=void 0;var Mk=Ec(),Uat=tu();function gnr(s,{keyword:o,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:P}){if(o!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){let F=s.schema[o];return f===void 0?{schema:F,schemaPath:(0,Mk._)`${s.schemaPath}${(0,Mk.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:F[f],schemaPath:(0,Mk._)`${s.schemaPath}${(0,Mk.getProperty)(o)}${(0,Mk.getProperty)(f)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,Uat.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||P===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:P,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(gnr,"getSubschema");lI.getSubschema=gnr;function ynr(s,o,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:P}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=o;if(f!==void 0){let{errorPath:G,dataPathArr:be,opts:de}=o,se=F.let("data",(0,Mk._)`${o.data}${(0,Mk.getProperty)(f)}`,!0);W(se),s.errorPath=(0,Mk.str)`${G}${(0,Uat.getErrorPath)(f,d,de.jsPropertySyntax)}`,s.parentDataProperty=(0,Mk._)`${f}`,s.dataPathArr=[...be,s.parentDataProperty]}if(y!==void 0){let G=y instanceof Mk.Name?y:F.let("data",y,!0);W(G),P!==void 0&&(s.propertyName=P)}x&&(s.dataTypes=x);function W(G){s.data=G,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,G]}t(W,"dataContextProps")}t(ynr,"extendSubschemaData");lI.extendSubschemaData=ynr;function vnr(s,{jtdDiscriminator:o,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(s.compositeRule=d),y!==void 0&&(s.createErrors=y),x!==void 0&&(s.allErrors=x),s.jtdDiscriminator=o,s.jtdMetadata=f}t(vnr,"extendSubschemaMode");lI.extendSubschemaMode=vnr});var C6e=ar((SPr,$at)=>{"use strict";$at.exports=t(function s(o,f){if(o===f)return!0;if(o&&f&&typeof o=="object"&&typeof f=="object"){if(o.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(o)){if(d=o.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!s(o[y],f[y]))return!1;return!0}if(o.constructor===RegExp)return o.source===f.source&&o.flags===f.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===f.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===f.toString();if(x=Object.keys(o),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var P=x[y];if(!s(o[P],f[P]))return!1}return!0}return o!==o&&f!==f},"equal")});var Wat=ar((xPr,Jat)=>{"use strict";var uI=Jat.exports=function(s,o,f){typeof o=="function"&&(f=o,o={}),f=o.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};Ace(o,d,y,s,"",s)};uI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};uI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};uI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};uI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ace(s,o,f,d,y,x,P,F,W,G){if(d&&typeof d=="object"&&!Array.isArray(d)){o(d,y,x,P,F,W,G);for(var be in d){var de=d[be];if(Array.isArray(de)){if(be in uI.arrayKeywords)for(var se=0;se<de.length;se++)Ace(s,o,f,de[se],y+"/"+be+"/"+se,x,y,be,d,se)}else if(be in uI.propsKeywords){if(de&&typeof de=="object")for(var Xe in de)Ace(s,o,f,de[Xe],y+"/"+be+"/"+bnr(Xe),x,y,be,d,Xe)}else(be in uI.keywords||s.allKeys&&!(be in uI.skipKeywords))&&Ace(s,o,f,de,y+"/"+be,x,y,be,d)}f(d,y,x,P,F,W,G)}}t(Ace,"_traverse");function bnr(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}t(bnr,"escapeJsonPtr")});var cH=ar(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.getSchemaRefs=Xv.resolveUrl=Xv.normalizeId=Xv._getFullPath=Xv.getFullPath=Xv.inlineRef=void 0;var Snr=tu(),Tnr=C6e(),xnr=Wat(),Enr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Cnr(s,o=!0){return typeof s=="boolean"?!0:o===!0?!k6e(s):o?qat(s)<=o:!1}t(Cnr,"inlineRef");Xv.inlineRef=Cnr;var knr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function k6e(s){for(let o in s){if(knr.has(o))return!0;let f=s[o];if(Array.isArray(f)&&f.some(k6e)||typeof f=="object"&&k6e(f))return!0}return!1}t(k6e,"hasRef");function qat(s){let o=0;for(let f in s){if(f==="$ref")return 1/0;if(o++,!Enr.has(f)&&(typeof s[f]=="object"&&(0,Snr.eachItem)(s[f],d=>o+=qat(d)),o===1/0))return 1/0}return o}t(qat,"countKeys");function Vat(s,o="",f){f!==!1&&(o=cM(o));let d=s.parse(o);return Hat(s,d)}t(Vat,"getFullPath");Xv.getFullPath=Vat;function Hat(s,o){return s.serialize(o).split("#")[0]+"#"}t(Hat,"_getFullPath");Xv._getFullPath=Hat;var wnr=/#\/?$/;function cM(s){return s?s.replace(wnr,""):""}t(cM,"normalizeId");Xv.normalizeId=cM;function Dnr(s,o,f){return f=cM(f),s.resolve(o,f)}t(Dnr,"resolveUrl");Xv.resolveUrl=Dnr;var Pnr=/^[a-z_][-a-z0-9._]*$/i;function Anr(s,o){if(typeof s=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=cM(s[f]||o),x={"":y},P=Vat(d,y,!1),F={},W=new Set;return xnr(s,{allKeys:!0},(de,se,Xe,Ue)=>{if(Ue===void 0)return;let je=P+se,Vt=x[Ue];typeof de[f]=="string"&&(Vt=Ut.call(this,de[f])),Ir.call(this,de.$anchor),Ir.call(this,de.$dynamicAnchor),x[se]=Vt;function Ut(wn){let sn=this.opts.uriResolver.resolve;if(wn=cM(Vt?sn(Vt,wn):wn),W.has(wn))throw be(wn);W.add(wn);let Jn=this.refs[wn];return typeof Jn=="string"&&(Jn=this.refs[Jn]),typeof Jn=="object"?G(de,Jn.schema,wn):wn!==cM(je)&&(wn[0]==="#"?(G(de,F[wn],wn),F[wn]=de):this.refs[wn]=je),wn}t(Ut,"addRef");function Ir(wn){if(typeof wn=="string"){if(!Pnr.test(wn))throw new Error(`invalid anchor "${wn}"`);Ut.call(this,`#${wn}`)}}t(Ir,"addAnchor")}),F;function G(de,se,Xe){if(se!==void 0&&!Tnr(de,se))throw be(Xe)}t(G,"checkAmbiguosRef");function be(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(be,"ambiguos")}t(Anr,"getSchemaRefs");Xv.getSchemaRefs=Anr});var lM=ar(fI=>{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});fI.getData=fI.KeywordCxt=fI.validateFunctionCode=void 0;var Zat=wat(),Gat=oH(),D6e=y6e(),Nce=oH(),Nnr=Fat(),uH=Bat(),w6e=zat(),Eo=Ec(),Nc=dT(),Inr=cH(),QP=tu(),lH=aH();function Onr(s){if(tot(s)&&(rot(s),eot(s))){Rnr(s);return}Qat(s,()=>(0,Zat.topBoolOrEmptySchema)(s))}t(Onr,"validateFunctionCode");fI.validateFunctionCode=Onr;function Qat({gen:s,validateName:o,schema:f,schemaEnv:d,opts:y},x){y.code.es5?s.func(o,(0,Eo._)`${Nc.default.data}, ${Nc.default.valCxt}`,d.$async,()=>{s.code((0,Eo._)`"use strict"; ${Yat(f,y)}`),Lnr(s,y),s.code(x)}):s.func(o,(0,Eo._)`${Nc.default.data}, ${Fnr(y)}`,d.$async,()=>s.code(Yat(f,y)).code(x))}t(Qat,"validateFunction");function Fnr(s){return(0,Eo._)`{${Nc.default.instancePath}="", ${Nc.default.parentData}, ${Nc.default.parentDataProperty}, ${Nc.default.rootData}=${Nc.default.data}${s.dynamicRef?(0,Eo._)`, ${Nc.default.dynamicAnchors}={}`:Eo.nil}}={}`}t(Fnr,"destructureValCxt");function Lnr(s,o){s.if(Nc.default.valCxt,()=>{s.var(Nc.default.instancePath,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.instancePath}`),s.var(Nc.default.parentData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentData}`),s.var(Nc.default.parentDataProperty,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentDataProperty}`),s.var(Nc.default.rootData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.rootData}`),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.dynamicAnchors}`)},()=>{s.var(Nc.default.instancePath,(0,Eo._)`""`),s.var(Nc.default.parentData,(0,Eo._)`undefined`),s.var(Nc.default.parentDataProperty,(0,Eo._)`undefined`),s.var(Nc.default.rootData,Nc.default.data),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`{}`)})}t(Lnr,"destructureValCxtES5");function Rnr(s){let{schema:o,opts:f,gen:d}=s;Qat(s,()=>{f.$comment&&o.$comment&&iot(s),znr(s),d.let(Nc.default.vErrors,null),d.let(Nc.default.errors,0),f.unevaluated&&Mnr(s),not(s),Wnr(s)})}t(Rnr,"topSchemaObjCode");function Mnr(s){let{gen:o,validateName:f}=s;s.evaluated=o.const("evaluated",(0,Eo._)`${f}.evaluated`),o.if((0,Eo._)`${s.evaluated}.dynamicProps`,()=>o.assign((0,Eo._)`${s.evaluated}.props`,(0,Eo._)`undefined`)),o.if((0,Eo._)`${s.evaluated}.dynamicItems`,()=>o.assign((0,Eo._)`${s.evaluated}.items`,(0,Eo._)`undefined`))}t(Mnr,"resetEvaluated");function Yat(s,o){let f=typeof s=="object"&&s[o.schemaId];return f&&(o.code.source||o.code.process)?(0,Eo._)`/*# sourceURL=${f} */`:Eo.nil}t(Yat,"funcSourceUrl");function jnr(s,o){if(tot(s)&&(rot(s),eot(s))){Bnr(s,o);return}(0,Zat.boolOrEmptySchema)(s,o)}t(jnr,"subschemaCode");function eot({schema:s,self:o}){if(typeof s=="boolean")return!s;for(let f in s)if(o.RULES.all[f])return!0;return!1}t(eot,"schemaCxtHasRules");function tot(s){return typeof s.schema!="boolean"}t(tot,"isSchemaObj");function Bnr(s,o){let{schema:f,gen:d,opts:y}=s;y.$comment&&f.$comment&&iot(s),$nr(s),Jnr(s);let x=d.const("_errs",Nc.default.errors);not(s,x),d.var(o,(0,Eo._)`${x} === ${Nc.default.errors}`)}t(Bnr,"subSchemaObjCode");function rot(s){(0,QP.checkUnknownRules)(s),Unr(s)}t(rot,"checkKeywords");function not(s,o){if(s.opts.jtd)return Kat(s,[],!1,o);let f=(0,Gat.getSchemaTypes)(s.schema),d=(0,Gat.coerceAndCheckDataType)(s,f);Kat(s,f,!d,o)}t(not,"typeAndKeywords");function Unr(s){let{schema:o,errSchemaPath:f,opts:d,self:y}=s;o.$ref&&d.ignoreKeywordsWithRef&&(0,QP.schemaHasRulesButRef)(o,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(Unr,"checkRefsAndKeywords");function znr(s){let{schema:o,opts:f}=s;o.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,QP.checkStrictMode)(s,"default is ignored in the schema root")}t(znr,"checkNoDefault");function $nr(s){let o=s.schema[s.opts.schemaId];o&&(s.baseId=(0,Inr.resolveUrl)(s.opts.uriResolver,s.baseId,o))}t($nr,"updateContext");function Jnr(s){if(s.schema.$async&&!s.schemaEnv.$async)throw new Error("async schema in sync schema")}t(Jnr,"checkAsyncSchema");function iot({gen:s,schemaEnv:o,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)s.code((0,Eo._)`${Nc.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let P=(0,Eo.str)`${d}/$comment`,F=s.scopeValue("root",{ref:o.root});s.code((0,Eo._)`${Nc.default.self}.opts.$comment(${x}, ${P}, ${F}.schema)`)}}t(iot,"commentKeyword");function Wnr(s){let{gen:o,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=s;f.$async?o.if((0,Eo._)`${Nc.default.errors} === 0`,()=>o.return(Nc.default.data),()=>o.throw((0,Eo._)`new ${y}(${Nc.default.vErrors})`)):(o.assign((0,Eo._)`${d}.errors`,Nc.default.vErrors),x.unevaluated&&qnr(s),o.return((0,Eo._)`${Nc.default.errors} === 0`))}t(Wnr,"returnResults");function qnr({gen:s,evaluated:o,props:f,items:d}){f instanceof Eo.Name&&s.assign((0,Eo._)`${o}.props`,f),d instanceof Eo.Name&&s.assign((0,Eo._)`${o}.items`,d)}t(qnr,"assignEvaluated");function Kat(s,o,f,d){let{gen:y,schema:x,data:P,allErrors:F,opts:W,self:G}=s,{RULES:be}=G;if(x.$ref&&(W.ignoreKeywordsWithRef||!(0,QP.schemaHasRulesButRef)(x,be))){y.block(()=>aot(s,"$ref",be.all.$ref.definition));return}W.jtd||Vnr(s,o),y.block(()=>{for(let se of be.rules)de(se);de(be.post)});function de(se){(0,D6e.shouldUseGroup)(x,se)&&(se.type?(y.if((0,Nce.checkDataType)(se.type,P,W.strictNumbers)),Xat(s,se),o.length===1&&o[0]===se.type&&f&&(y.else(),(0,Nce.reportTypeError)(s)),y.endIf()):Xat(s,se),F||y.if((0,Eo._)`${Nc.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(Kat,"schemaKeywords");function Xat(s,o){let{gen:f,schema:d,opts:{useDefaults:y}}=s;y&&(0,Nnr.assignDefaults)(s,o.type),f.block(()=>{for(let x of o.rules)(0,D6e.shouldUseRule)(d,x)&&aot(s,x.keyword,x.definition,o.type)})}t(Xat,"iterateKeywords");function Vnr(s,o){s.schemaEnv.meta||!s.opts.strictTypes||(Hnr(s,o),s.opts.allowUnionTypes||Gnr(s,o),Ynr(s,s.dataTypes))}t(Vnr,"checkStrictTypes");function Hnr(s,o){if(o.length){if(!s.dataTypes.length){s.dataTypes=o;return}o.forEach(f=>{sot(s.dataTypes,f)||P6e(s,`type "${f}" not allowed by context "${s.dataTypes.join(",")}"`)}),Xnr(s,o)}}t(Hnr,"checkContextTypes");function Gnr(s,o){o.length>1&&!(o.length===2&&o.includes("null"))&&P6e(s,"use allowUnionTypes to allow union type keyword")}t(Gnr,"checkMultipleTypes");function Ynr(s,o){let f=s.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,D6e.shouldUseRule)(s.schema,y)){let{type:x}=y.definition;x.length&&!x.some(P=>Knr(o,P))&&P6e(s,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Ynr,"checkKeywordTypes");function Knr(s,o){return s.includes(o)||o==="number"&&s.includes("integer")}t(Knr,"hasApplicableType");function sot(s,o){return s.includes(o)||o==="integer"&&s.includes("number")}t(sot,"includesType");function Xnr(s,o){let f=[];for(let d of s.dataTypes)sot(o,d)?f.push(d):o.includes("integer")&&d==="number"&&f.push("integer");s.dataTypes=f}t(Xnr,"narrowSchemaTypes");function P6e(s,o){let f=s.schemaEnv.baseId+s.errSchemaPath;o+=` at "${f}" (strictTypes)`,(0,QP.checkStrictMode)(s,o,s.opts.strictTypes)}t(P6e,"strictTypesError");var Ice=class{static{t(this,"KeywordCxt")}constructor(o,f,d){if((0,uH.validateKeywordUsage)(o,f,d),this.gen=o.gen,this.allErrors=o.allErrors,this.keyword=d,this.data=o.data,this.schema=o.schema[d],this.$data=f.$data&&o.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,QP.schemaRefOrVal)(o,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=o.schema,this.params={},this.it=o,this.def=f,this.$data)this.schemaCode=o.gen.const("vSchema",oot(this.$data,o));else if(this.schemaCode=this.schemaValue,!(0,uH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=o.gen.const("_errs",Nc.default.errors))}result(o,f,d){this.failResult((0,Eo.not)(o),f,d)}failResult(o,f,d){this.gen.if(o),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(o,f){this.failResult((0,Eo.not)(o),void 0,f)}fail(o){if(o===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(o),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(o){if(!this.$data)return this.fail(o);let{schemaCode:f}=this;this.fail((0,Eo._)`${f} !== undefined && (${(0,Eo.or)(this.invalid$data(),o)})`)}error(o,f,d){if(f){this.setParams(f),this._error(o,d),this.setParams({});return}this._error(o,d)}_error(o,f){(o?lH.reportExtraError:lH.reportError)(this,this.def.error,f)}$dataError(){(0,lH.reportError)(this,this.def.$dataError||lH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,lH.resetErrorsCount)(this.gen,this.errsCount)}ok(o){this.allErrors||this.gen.if(o)}setParams(o,f){f?Object.assign(this.params,o):this.params=o}block$data(o,f,d=Eo.nil){this.gen.block(()=>{this.check$data(o,d),f()})}check$data(o=Eo.nil,f=Eo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:P}=this;d.if((0,Eo.or)((0,Eo._)`${y} === undefined`,f)),o!==Eo.nil&&d.assign(o,!0),(x.length||P.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),o!==Eo.nil&&d.assign(o,!1)),d.else()}invalid$data(){let{gen:o,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,Eo.or)(P(),F());function P(){if(d.length){if(!(f instanceof Eo.Name))throw new Error("ajv implementation error");let W=Array.isArray(d)?d:[d];return(0,Eo._)`${(0,Nce.checkDataTypes)(W,f,x.opts.strictNumbers,Nce.DataType.Wrong)}`}return Eo.nil}function F(){if(y.validateSchema){let W=o.scopeValue("validate$data",{ref:y.validateSchema});return(0,Eo._)`!${W}(${f})`}return Eo.nil}}subschema(o,f){let d=(0,w6e.getSubschema)(this.it,o);(0,w6e.extendSubschemaData)(d,this.it,o),(0,w6e.extendSubschemaMode)(d,o);let y={...this.it,...d,items:void 0,props:void 0};return jnr(y,f),y}mergeEvaluated(o,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&o.props!==void 0&&(d.props=QP.mergeEvaluated.props(y,o.props,d.props,f)),d.items!==!0&&o.items!==void 0&&(d.items=QP.mergeEvaluated.items(y,o.items,d.items,f)))}mergeValidEvaluated(o,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(o,Eo.Name)),!0}};fI.KeywordCxt=Ice;function aot(s,o,f,d){let y=new Ice(s,f,o);"code"in f?f.code(y,d):y.$data&&f.validate?(0,uH.funcKeywordCode)(y,f):"macro"in f?(0,uH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,uH.funcKeywordCode)(y,f)}t(aot,"keywordCode");var Znr=/^\/(?:[^~]|~0|~1)*$/,Qnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oot(s,{dataLevel:o,dataNames:f,dataPathArr:d}){let y,x;if(s==="")return Nc.default.rootData;if(s[0]==="/"){if(!Znr.test(s))throw new Error(`Invalid JSON-pointer: ${s}`);y=s,x=Nc.default.rootData}else{let G=Qnr.exec(s);if(!G)throw new Error(`Invalid JSON-pointer: ${s}`);let be=+G[1];if(y=G[2],y==="#"){if(be>=o)throw new Error(W("property/index",be));return d[o-be]}if(be>o)throw new Error(W("data",be));if(x=f[o-be],!y)return x}let P=x,F=y.split("/");for(let G of F)G&&(x=(0,Eo._)`${x}${(0,Eo.getProperty)((0,QP.unescapeJsonPointer)(G))}`,P=(0,Eo._)`${P} && ${x}`);return P;function W(G,be){return`Cannot access ${G} ${be} levels up, current level is ${o}`}}t(oot,"getData");fI.getData=oot});var fH=ar(N6e=>{"use strict";Object.defineProperty(N6e,"__esModule",{value:!0});var A6e=class extends Error{static{t(this,"ValidationError")}constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}};N6e.default=A6e});var uM=ar(F6e=>{"use strict";Object.defineProperty(F6e,"__esModule",{value:!0});var I6e=cH(),O6e=class extends Error{static{t(this,"MissingRefError")}constructor(o,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,I6e.resolveUrl)(o,f,d),this.missingSchema=(0,I6e.normalizeId)((0,I6e.getFullPath)(o,this.missingRef))}};F6e.default=O6e});var _H=ar(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.resolveSchema=hT.getCompilingSchema=hT.resolveRef=hT.compileSchema=hT.SchemaEnv=void 0;var xE=Ec(),eir=fH(),AO=dT(),EE=cH(),cot=tu(),tir=lM(),fM=class{static{t(this,"SchemaEnv")}constructor(o){var f;this.refs={},this.dynamicAnchors={};let d;typeof o.schema=="object"&&(d=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(f=o.baseId)!==null&&f!==void 0?f:(0,EE.normalizeId)(d?.[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=d?.$async,this.refs={}}};hT.SchemaEnv=fM;function R6e(s){let o=lot.call(this,s);if(o)return o;let f=(0,EE.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,P=new xE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;s.$async&&(F=P.scopeValue("Error",{ref:eir.default,code:(0,xE._)`require("ajv/dist/runtime/validation_error").default`}));let W=P.scopeName("validate");s.validateName=W;let G={gen:P,allErrors:this.opts.allErrors,data:AO.default.data,parentData:AO.default.parentData,parentDataProperty:AO.default.parentDataProperty,dataNames:[AO.default.data],dataPathArr:[xE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,xE.stringify)(s.schema)}:{ref:s.schema}),validateName:W,ValidationError:F,schema:s.schema,schemaEnv:s,rootId:f,baseId:s.baseId||f,schemaPath:xE.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xE._)`""`,opts:this.opts,self:this},be;try{this._compilations.add(s),(0,tir.validateFunctionCode)(G),P.optimize(this.opts.code.optimize);let de=P.toString();be=`${P.scopeRefs(AO.default.scope)}return ${de}`,this.opts.code.process&&(be=this.opts.code.process(be,s));let Xe=new Function(`${AO.default.self}`,`${AO.default.scope}`,be)(this,this.scope.get());if(this.scope.value(W,{ref:Xe}),Xe.errors=null,Xe.schema=s.schema,Xe.schemaEnv=s,s.$async&&(Xe.$async=!0),this.opts.code.source===!0&&(Xe.source={validateName:W,validateCode:de,scopeValues:P._values}),this.opts.unevaluated){let{props:Ue,items:je}=G;Xe.evaluated={props:Ue instanceof xE.Name?void 0:Ue,items:je instanceof xE.Name?void 0:je,dynamicProps:Ue instanceof xE.Name,dynamicItems:je instanceof xE.Name},Xe.source&&(Xe.source.evaluated=(0,xE.stringify)(Xe.evaluated))}return s.validate=Xe,s}catch(de){throw delete s.validate,delete s.validateName,be&&this.logger.error("Error compiling schema, function code:",be),de}finally{this._compilations.delete(s)}}t(R6e,"compileSchema");hT.compileSchema=R6e;function rir(s,o,f){var d;f=(0,EE.resolveUrl)(this.opts.uriResolver,o,f);let y=s.refs[f];if(y)return y;let x=sir.call(this,s,f);if(x===void 0){let P=(d=s.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;P&&(x=new fM({schema:P,schemaId:F,root:s,baseId:o}))}if(x!==void 0)return s.refs[f]=nir.call(this,x)}t(rir,"resolveRef");hT.resolveRef=rir;function nir(s){return(0,EE.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:R6e.call(this,s)}t(nir,"inlineOrCompile");function lot(s){for(let o of this._compilations)if(iir(o,s))return o}t(lot,"getCompilingSchema");hT.getCompilingSchema=lot;function iir(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}t(iir,"sameSchemaEnv");function sir(s,o){let f;for(;typeof(f=this.refs[o])=="string";)o=f;return f||this.schemas[o]||Oce.call(this,s,o)}t(sir,"resolve");function Oce(s,o){let f=this.opts.uriResolver.parse(o),d=(0,EE._getFullPath)(this.opts.uriResolver,f),y=(0,EE.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&d===y)return L6e.call(this,f,s);let x=(0,EE.normalizeId)(d),P=this.refs[x]||this.schemas[x];if(typeof P=="string"){let F=Oce.call(this,s,P);return typeof F?.schema!="object"?void 0:L6e.call(this,f,F)}if(typeof P?.schema=="object"){if(P.validate||R6e.call(this,P),x===(0,EE.normalizeId)(o)){let{schema:F}=P,{schemaId:W}=this.opts,G=F[W];return G&&(y=(0,EE.resolveUrl)(this.opts.uriResolver,y,G)),new fM({schema:F,schemaId:W,root:s,baseId:y})}return L6e.call(this,f,P)}}t(Oce,"resolveSchema");hT.resolveSchema=Oce;var air=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function L6e(s,{baseId:o,schema:f,root:d}){var y;if(((y=s.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of s.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let W=f[(0,cot.unescapeFragment)(F)];if(W===void 0)return;f=W;let G=typeof f=="object"&&f[this.opts.schemaId];!air.has(F)&&G&&(o=(0,EE.resolveUrl)(this.opts.uriResolver,o,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,cot.schemaHasRulesButRef)(f,this.RULES)){let F=(0,EE.resolveUrl)(this.opts.uriResolver,o,f.$ref);x=Oce.call(this,d,F)}let{schemaId:P}=this.opts;if(x=x||new fM({schema:f,schemaId:P,root:d,baseId:o}),x.schema!==x.root.schema)return x}t(L6e,"getJsonPointer")});var uot=ar((LPr,oir)=>{oir.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var j6e=ar((RPr,dot)=>{"use strict";var cir=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_ot=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function M6e(s){let o="",f=0,d=0;for(d=0;d<s.length;d++)if(f=s[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d];break}for(d+=1;d<s.length;d++){if(f=s[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d]}return o}t(M6e,"stringArrayToHexStripped");var lir=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function fot(s){return s.length=0,!0}t(fot,"consumeIsZone");function uir(s,o,f){if(s.length){let d=M6e(s);if(d!=="")o.push(d);else return f.error=!0,!1;s.length=0}return!0}t(uir,"consumeHextets");function fir(s){let o=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,P=!1,F=uir;for(let W=0;W<s.length;W++){let G=s[W];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(P=!0),!F(y,d,f))break;if(++o>7){f.error=!0;break}W>0&&s[W-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=fot}else{y.push(G);continue}}return y.length&&(F===fot?f.zone=y.join(""):P?d.push(y.join("")):d.push(M6e(y))),f.address=d.join(""),f}t(fir,"getIPV6");function pot(s){if(_ir(s,":")<2)return{host:s,isIPV6:!1};let o=fir(s);if(o.error)return{host:s,isIPV6:!1};{let f=o.address,d=o.address;return o.zone&&(f+="%"+o.zone,d+="%25"+o.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(pot,"normalizeIPv6");function _ir(s,o){let f=0;for(let d=0;d<s.length;d++)s[d]===o&&f++;return f}t(_ir,"findToken");function pir(s){let o=s,f=[],d=-1,y=0;for(;y=o.length;){if(y===1){if(o===".")break;if(o==="/"){f.push("/");break}else{f.push(o);break}}else if(y===2){if(o[0]==="."){if(o[1]===".")break;if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&(o[1]==="."||o[1]==="/")){f.push("/");break}}else if(y===3&&o==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(o[0]==="."){if(o[1]==="."){if(o[2]==="/"){o=o.slice(3);continue}}else if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&o[1]==="."){if(o[2]==="/"){o=o.slice(2);continue}else if(o[2]==="."&&o[3]==="/"){o=o.slice(3),f.length!==0&&f.pop();continue}}if((d=o.indexOf("/",1))===-1){f.push(o);break}else f.push(o.slice(0,d)),o=o.slice(d)}return f.join("")}t(pir,"removeDotSegments");function dir(s,o){let f=o!==!0?escape:unescape;return s.scheme!==void 0&&(s.scheme=f(s.scheme)),s.userinfo!==void 0&&(s.userinfo=f(s.userinfo)),s.host!==void 0&&(s.host=f(s.host)),s.path!==void 0&&(s.path=f(s.path)),s.query!==void 0&&(s.query=f(s.query)),s.fragment!==void 0&&(s.fragment=f(s.fragment)),s}t(dir,"normalizeComponentEncoding");function mir(s){let o=[];if(s.userinfo!==void 0&&(o.push(s.userinfo),o.push("@")),s.host!==void 0){let f=unescape(s.host);if(!_ot(f)){let d=pot(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=s.host}o.push(f)}return(typeof s.port=="number"||typeof s.port=="string")&&(o.push(":"),o.push(String(s.port))),o.length?o.join(""):void 0}t(mir,"recomposeAuthority");dot.exports={nonSimpleDomain:lir,recomposeAuthority:mir,normalizeComponentEncoding:dir,removeDotSegments:pir,isIPv4:_ot,isUUID:cir,normalizeIPv6:pot,stringArrayToHexStripped:M6e}});var vot=ar((jPr,yot)=>{"use strict";var{isUUID:hir}=j6e(),gir=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,yir=["http","https","ws","wss","urn","urn:uuid"];function vir(s){return yir.indexOf(s)!==-1}t(vir,"isValidSchemeName");function B6e(s){return s.secure===!0?!0:s.secure===!1?!1:s.scheme?s.scheme.length===3&&(s.scheme[0]==="w"||s.scheme[0]==="W")&&(s.scheme[1]==="s"||s.scheme[1]==="S")&&(s.scheme[2]==="s"||s.scheme[2]==="S"):!1}t(B6e,"wsIsSecure");function mot(s){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s}t(mot,"httpParse");function hot(s){let o=String(s.scheme).toLowerCase()==="https";return(s.port===(o?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}t(hot,"httpSerialize");function bir(s){return s.secure=B6e(s),s.resourceName=(s.path||"/")+(s.query?"?"+s.query:""),s.path=void 0,s.query=void 0,s}t(bir,"wsParse");function Sir(s){if((s.port===(B6e(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){let[o,f]=s.resourceName.split("?");s.path=o&&o!=="/"?o:void 0,s.query=f,s.resourceName=void 0}return s.fragment=void 0,s}t(Sir,"wsSerialize");function Tir(s,o){if(!s.path)return s.error="URN can not be parsed",s;let f=s.path.match(gir);if(f){let d=o.scheme||s.scheme||"urn";s.nid=f[1].toLowerCase(),s.nss=f[2];let y=`${d}:${o.nid||s.nid}`,x=U6e(y);s.path=void 0,x&&(s=x.parse(s,o))}else s.error=s.error||"URN can not be parsed.";return s}t(Tir,"urnParse");function xir(s,o){if(s.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=o.scheme||s.scheme||"urn",d=s.nid.toLowerCase(),y=`${f}:${o.nid||d}`,x=U6e(y);x&&(s=x.serialize(s,o));let P=s,F=s.nss;return P.path=`${d||o.nid}:${F}`,o.skipEscape=!0,P}t(xir,"urnSerialize");function Eir(s,o){let f=s;return f.uuid=f.nss,f.nss=void 0,!o.tolerant&&(!f.uuid||!hir(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(Eir,"urnuuidParse");function Cir(s){let o=s;return o.nss=(s.uuid||"").toLowerCase(),o}t(Cir,"urnuuidSerialize");var got={scheme:"http",domainHost:!0,parse:mot,serialize:hot},kir={scheme:"https",domainHost:got.domainHost,parse:mot,serialize:hot},Fce={scheme:"ws",domainHost:!0,parse:bir,serialize:Sir},wir={scheme:"wss",domainHost:Fce.domainHost,parse:Fce.parse,serialize:Fce.serialize},Dir={scheme:"urn",parse:Tir,serialize:xir,skipNormalize:!0},Pir={scheme:"urn:uuid",parse:Eir,serialize:Cir,skipNormalize:!0},Lce={http:got,https:kir,ws:Fce,wss:wir,urn:Dir,"urn:uuid":Pir};Object.setPrototypeOf(Lce,null);function U6e(s){return s&&(Lce[s]||Lce[s.toLowerCase()])||void 0}t(U6e,"getSchemeHandler");yot.exports={wsIsSecure:B6e,SCHEMES:Lce,isValidSchemeName:vir,getSchemeHandler:U6e}});var Tot=ar((UPr,Mce)=>{"use strict";var{normalizeIPv6:Air,removeDotSegments:pH,recomposeAuthority:Nir,normalizeComponentEncoding:Rce,isIPv4:Iir,nonSimpleDomain:Oir}=j6e(),{SCHEMES:Fir,getSchemeHandler:bot}=vot();function Lir(s,o){return typeof s=="string"?s=jk(eA(s,o),o):typeof s=="object"&&(s=eA(jk(s,o),o)),s}t(Lir,"normalize");function Rir(s,o,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=Sot(eA(s,d),eA(o,d),d,!0);return d.skipEscape=!0,jk(y,d)}t(Rir,"resolve");function Sot(s,o,f,d){let y={};return d||(s=eA(jk(s,f),f),o=eA(jk(o,f),f)),f=f||{},!f.tolerant&&o.scheme?(y.scheme=o.scheme,y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=pH(o.path||""),y.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=pH(o.path||""),y.query=o.query):(o.path?(o.path[0]==="/"?y.path=pH(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?y.path="/"+o.path:s.path?y.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:y.path=o.path,y.path=pH(y.path)),y.query=o.query):(y.path=s.path,o.query!==void 0?y.query=o.query:y.query=s.query),y.userinfo=s.userinfo,y.host=s.host,y.port=s.port),y.scheme=s.scheme),y.fragment=o.fragment,y}t(Sot,"resolveComponent");function Mir(s,o,f){return typeof s=="string"?(s=unescape(s),s=jk(Rce(eA(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=jk(Rce(s,!0),{...f,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=jk(Rce(eA(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=jk(Rce(o,!0),{...f,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}t(Mir,"equal");function jk(s,o){let f={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},d=Object.assign({},o),y=[],x=bot(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let P=Nir(f);if(P!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(P),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=pH(F)),P===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(jk,"serialize");var jir=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function eA(s,o){let f=Object.assign({},o),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?s=f.scheme+":"+s:s="//"+s);let x=s.match(jir);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(Iir(d.host)===!1){let W=Air(d.host);d.host=W.host.toLowerCase(),y=W.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let P=bot(f.scheme||d.scheme);if(!f.unicodeSupport&&(!P||!P.unicodeSupport)&&d.host&&(f.domainHost||P&&P.domainHost)&&y===!1&&Oir(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!P||P&&!P.skipNormalize)&&(s.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),P&&P.parse&&P.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(eA,"parse");var z6e={SCHEMES:Fir,normalize:Lir,resolve:Rir,resolveComponent:Sot,equal:Mir,serialize:jk,parse:eA};Mce.exports=z6e;Mce.exports.default=z6e;Mce.exports.fastUri=z6e});var Eot=ar($6e=>{"use strict";Object.defineProperty($6e,"__esModule",{value:!0});var xot=Tot();xot.code='require("ajv/dist/runtime/uri").default';$6e.default=xot});var q6e=ar(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.CodeGen=E0.Name=E0.nil=E0.stringify=E0.str=E0._=E0.KeywordCxt=void 0;var Bir=lM();Object.defineProperty(E0,"KeywordCxt",{enumerable:!0,get:t(function(){return Bir.KeywordCxt},"get")});var _M=Ec();Object.defineProperty(E0,"_",{enumerable:!0,get:t(function(){return _M._},"get")});Object.defineProperty(E0,"str",{enumerable:!0,get:t(function(){return _M.str},"get")});Object.defineProperty(E0,"stringify",{enumerable:!0,get:t(function(){return _M.stringify},"get")});Object.defineProperty(E0,"nil",{enumerable:!0,get:t(function(){return _M.nil},"get")});Object.defineProperty(E0,"Name",{enumerable:!0,get:t(function(){return _M.Name},"get")});Object.defineProperty(E0,"CodeGen",{enumerable:!0,get:t(function(){return _M.CodeGen},"get")});var Uir=fH(),Pot=uM(),zir=g6e(),dH=_H(),$ir=Ec(),mH=cH(),jce=oH(),W6e=tu(),Cot=uot(),Jir=Eot(),Aot=t((s,o)=>new RegExp(s,o),"defaultRegExp");Aot.code="new RegExp";var Wir=["removeAdditional","useDefaults","coerceTypes"],qir=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Vir={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Hir={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},kot=200;function Gir(s){var o,f,d,y,x,P,F,W,G,be,de,se,Xe,Ue,je,Vt,Ut,Ir,wn,sn,Jn,kr,yr,xs,bi;let fc=s.strict,Ci=(o=s.code)===null||o===void 0?void 0:o.optimize,bf=Ci===!0||Ci===void 0?1:Ci||0,Bf=(d=(f=s.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:Aot,In=(y=s.uriResolver)!==null&&y!==void 0?y:Jir.default;return{strictSchema:(P=(x=s.strictSchema)!==null&&x!==void 0?x:fc)!==null&&P!==void 0?P:!0,strictNumbers:(W=(F=s.strictNumbers)!==null&&F!==void 0?F:fc)!==null&&W!==void 0?W:!0,strictTypes:(be=(G=s.strictTypes)!==null&&G!==void 0?G:fc)!==null&&be!==void 0?be:"log",strictTuples:(se=(de=s.strictTuples)!==null&&de!==void 0?de:fc)!==null&&se!==void 0?se:"log",strictRequired:(Ue=(Xe=s.strictRequired)!==null&&Xe!==void 0?Xe:fc)!==null&&Ue!==void 0?Ue:!1,code:s.code?{...s.code,optimize:bf,regExp:Bf}:{optimize:bf,regExp:Bf},loopRequired:(je=s.loopRequired)!==null&&je!==void 0?je:kot,loopEnum:(Vt=s.loopEnum)!==null&&Vt!==void 0?Vt:kot,meta:(Ut=s.meta)!==null&&Ut!==void 0?Ut:!0,messages:(Ir=s.messages)!==null&&Ir!==void 0?Ir:!0,inlineRefs:(wn=s.inlineRefs)!==null&&wn!==void 0?wn:!0,schemaId:(sn=s.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Jn=s.addUsedSchema)!==null&&Jn!==void 0?Jn:!0,validateSchema:(kr=s.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(yr=s.validateFormats)!==null&&yr!==void 0?yr:!0,unicodeRegExp:(xs=s.unicodeRegExp)!==null&&xs!==void 0?xs:!0,int32range:(bi=s.int32range)!==null&&bi!==void 0?bi:!0,uriResolver:In}}t(Gir,"requiredOptions");var hH=class{static{t(this,"Ajv")}constructor(o={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,o=this.opts={...o,...Gir(o)};let{es5:f,lines:d}=this.opts.code;this.scope=new $ir.ValueScope({scope:{},prefixes:qir,es5:f,lines:d}),this.logger=esr(o.logger);let y=o.validateFormats;o.validateFormats=!1,this.RULES=(0,zir.getRules)(),wot.call(this,Vir,o,"NOT SUPPORTED"),wot.call(this,Hir,o,"DEPRECATED","warn"),this._metaOpts=Zir.call(this),o.formats&&Kir.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),o.keywords&&Xir.call(this,o.keywords),typeof o.meta=="object"&&this.addMetaSchema(o.meta),Yir.call(this),o.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:o,meta:f,schemaId:d}=this.opts,y=Cot;d==="id"&&(y={...Cot},y.id=y.$id,delete y.$id),f&&o&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:o,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof o=="object"?o[f]||o:void 0}validate(o,f){let d;if(typeof o=="string"){if(d=this.getSchema(o),!d)throw new Error(`no schema with key or ref "${o}"`)}else d=this.compile(o);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(o,f){let d=this._addSchema(o,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(o,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,o,f);async function y(be,de){await x.call(this,be.$schema);let se=this._addSchema(be,de);return se.validate||P.call(this,se)}async function x(be){be&&!this.getSchema(be)&&await y.call(this,{$ref:be},!0)}async function P(be){try{return this._compileSchemaEnv(be)}catch(de){if(!(de instanceof Pot.default))throw de;return F.call(this,de),await W.call(this,de.missingSchema),P.call(this,be)}}function F({missingSchema:be,missingRef:de}){if(this.refs[be])throw new Error(`AnySchema ${be} is loaded but ${de} cannot be resolved`)}async function W(be){let de=await G.call(this,be);this.refs[be]||await x.call(this,de.$schema),this.refs[be]||this.addSchema(de,be,f)}async function G(be){let de=this._loading[be];if(de)return de;try{return await(this._loading[be]=d(be))}finally{delete this._loading[be]}}}addSchema(o,f,d,y=this.opts.validateSchema){if(Array.isArray(o)){for(let P of o)this.addSchema(P,void 0,d,y);return this}let x;if(typeof o=="object"){let{schemaId:P}=this.opts;if(x=o[P],x!==void 0&&typeof x!="string")throw new Error(`schema ${P} must be string`)}return f=(0,mH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(o,d,f,y,!0),this}addMetaSchema(o,f,d=this.opts.validateSchema){return this.addSchema(o,f,!0,d),this}validateSchema(o,f){if(typeof o=="boolean")return!0;let d;if(d=o.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,o);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(o){let f;for(;typeof(f=Dot.call(this,o))=="string";)o=f;if(f===void 0){let{schemaId:d}=this.opts,y=new dH.SchemaEnv({schema:{},schemaId:d});if(f=dH.resolveSchema.call(this,y,o),!f)return;this.refs[o]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(o){if(o instanceof RegExp)return this._removeAllSchemas(this.schemas,o),this._removeAllSchemas(this.refs,o),this;switch(typeof o){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=Dot.call(this,o);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[o],delete this.refs[o],this}case"object":{let f=o;this._cache.delete(f);let d=o[this.opts.schemaId];return d&&(d=(0,mH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(o){for(let f of o)this.addKeyword(f);return this}addKeyword(o,f){let d;if(typeof o=="string")d=o,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof o=="object"&&f===void 0){if(f=o,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rsr.call(this,d,f),!f)return(0,W6e.eachItem)(d,x=>J6e.call(this,x)),this;isr.call(this,f);let y={...f,type:(0,jce.getJSONTypes)(f.type),schemaType:(0,jce.getJSONTypes)(f.schemaType)};return(0,W6e.eachItem)(d,y.type.length===0?x=>J6e.call(this,x,y):x=>y.type.forEach(P=>J6e.call(this,x,y,P))),this}getKeyword(o){let f=this.RULES.all[o];return typeof f=="object"?f.definition:!!f}removeKeyword(o){let{RULES:f}=this;delete f.keywords[o],delete f.all[o];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===o);y>=0&&d.rules.splice(y,1)}return this}addFormat(o,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[o]=f,this}errorsText(o=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!o||o.length===0?"No errors":o.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(o,f){let d=this.RULES.all;o=JSON.parse(JSON.stringify(o));for(let y of f){let x=y.split("/").slice(1),P=o;for(let F of x)P=P[F];for(let F in d){let W=d[F];if(typeof W!="object")continue;let{$data:G}=W.definition,be=P[F];G&&be&&(P[F]=Not(be))}}return o}_removeAllSchemas(o,f){for(let d in o){let y=o[d];(!f||f.test(d))&&(typeof y=="string"?delete o[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete o[d]))}}_addSchema(o,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let P,{schemaId:F}=this.opts;if(typeof o=="object")P=o[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof o!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(o);if(W!==void 0)return W;d=(0,mH.normalizeId)(P||d);let G=mH.getSchemaRefs.call(this,o,d);return W=new dH.SchemaEnv({schema:o,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(W.schema,W),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=W),y&&this.validateSchema(o,!0),W}_checkUnique(o){if(this.schemas[o]||this.refs[o])throw new Error(`schema with key or id "${o}" already exists`)}_compileSchemaEnv(o){if(o.meta?this._compileMetaSchema(o):dH.compileSchema.call(this,o),!o.validate)throw new Error("ajv implementation error");return o.validate}_compileMetaSchema(o){let f=this.opts;this.opts=this._metaOpts;try{dH.compileSchema.call(this,o)}finally{this.opts=f}}};hH.ValidationError=Uir.default;hH.MissingRefError=Pot.default;E0.default=hH;function wot(s,o,f,d="error"){for(let y in s){let x=y;x in o&&this.logger[d](`${f}: option ${y}. ${s[x]}`)}}t(wot,"checkOptions");function Dot(s){return s=(0,mH.normalizeId)(s),this.schemas[s]||this.refs[s]}t(Dot,"getSchEnv");function Yir(){let s=this.opts.schemas;if(s)if(Array.isArray(s))this.addSchema(s);else for(let o in s)this.addSchema(s[o],o)}t(Yir,"addInitialSchemas");function Kir(){for(let s in this.opts.formats){let o=this.opts.formats[s];o&&this.addFormat(s,o)}}t(Kir,"addInitialFormats");function Xir(s){if(Array.isArray(s)){this.addVocabulary(s);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let o in s){let f=s[o];f.keyword||(f.keyword=o),this.addKeyword(f)}}t(Xir,"addInitialKeywords");function Zir(){let s={...this.opts};for(let o of Wir)delete s[o];return s}t(Zir,"getMetaSchemaOptions");var Qir={log(){},warn(){},error(){}};function esr(s){if(s===!1)return Qir;if(s===void 0)return console;if(s.log&&s.warn&&s.error)return s;throw new Error("logger must implement log, warn and error methods")}t(esr,"getLogger");var tsr=/^[a-z_$][a-z0-9_$:-]*$/i;function rsr(s,o){let{RULES:f}=this;if((0,W6e.eachItem)(s,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!tsr.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!o&&o.$data&&!("code"in o||"validate"in o))throw new Error('$data keyword must have "code" or "validate" function')}t(rsr,"checkKeyword");function J6e(s,o,f){var d;let y=o?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,P=y?x.post:x.rules.find(({type:W})=>W===f);if(P||(P={type:f,rules:[]},x.rules.push(P)),x.keywords[s]=!0,!o)return;let F={keyword:s,definition:{...o,type:(0,jce.getJSONTypes)(o.type),schemaType:(0,jce.getJSONTypes)(o.schemaType)}};o.before?nsr.call(this,P,F,o.before):P.rules.push(F),x.all[s]=F,(d=o.implements)===null||d===void 0||d.forEach(W=>this.addKeyword(W))}t(J6e,"addRule");function nsr(s,o,f){let d=s.rules.findIndex(y=>y.keyword===f);d>=0?s.rules.splice(d,0,o):(s.rules.push(o),this.logger.warn(`rule ${f} is not defined`))}t(nsr,"addBeforeRule");function isr(s){let{metaSchema:o}=s;o!==void 0&&(s.$data&&this.opts.$data&&(o=Not(o)),s.validateSchema=this.compile(o,!0))}t(isr,"keywordMetaschema");var ssr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Not(s){return{anyOf:[s,ssr]}}t(Not,"schemaOrData")});var Iot=ar(V6e=>{"use strict";Object.defineProperty(V6e,"__esModule",{value:!0});var asr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};V6e.default=asr});var zce=ar(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});NO.callRef=NO.getValidate=void 0;var osr=uM(),Oot=mT(),Zv=Ec(),pM=dT(),Fot=_H(),Bce=tu(),csr={keyword:"$ref",schemaType:"string",code(s){let{gen:o,schema:f,it:d}=s,{baseId:y,schemaEnv:x,validateName:P,opts:F,self:W}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let be=Fot.resolveRef.call(W,G,y,f);if(be===void 0)throw new osr.default(d.opts.uriResolver,y,f);if(be instanceof Fot.SchemaEnv)return se(be);return Xe(be);function de(){if(x===G)return Uce(s,P,x,x.$async);let Ue=o.scopeValue("root",{ref:G});return Uce(s,(0,Zv._)`${Ue}.validate`,G,G.$async)}function se(Ue){let je=Lot(s,Ue);Uce(s,je,Ue,Ue.$async)}function Xe(Ue){let je=o.scopeValue("schema",F.code.source===!0?{ref:Ue,code:(0,Zv.stringify)(Ue)}:{ref:Ue}),Vt=o.name("valid"),Ut=s.subschema({schema:Ue,dataTypes:[],schemaPath:Zv.nil,topSchemaRef:je,errSchemaPath:f},Vt);s.mergeEvaluated(Ut),s.ok(Vt)}}};function Lot(s,o){let{gen:f}=s;return o.validate?f.scopeValue("validate",{ref:o.validate}):(0,Zv._)`${f.scopeValue("wrapper",{ref:o})}.validate`}t(Lot,"getValidate");NO.getValidate=Lot;function Uce(s,o,f,d){let{gen:y,it:x}=s,{allErrors:P,schemaEnv:F,opts:W}=x,G=W.passContext?pM.default.this:Zv.nil;d?be():de();function be(){if(!F.$async)throw new Error("async schema referenced by sync schema");let Ue=y.let("valid");y.try(()=>{y.code((0,Zv._)`await ${(0,Oot.callValidateCode)(s,o,G)}`),Xe(o),P||y.assign(Ue,!0)},je=>{y.if((0,Zv._)`!(${je} instanceof ${x.ValidationError})`,()=>y.throw(je)),se(je),P||y.assign(Ue,!1)}),s.ok(Ue)}t(be,"callAsyncRef");function de(){s.result((0,Oot.callValidateCode)(s,o,G),()=>Xe(o),()=>se(o))}t(de,"callSyncRef");function se(Ue){let je=(0,Zv._)`${Ue}.errors`;y.assign(pM.default.vErrors,(0,Zv._)`${pM.default.vErrors} === null ? ${je} : ${pM.default.vErrors}.concat(${je})`),y.assign(pM.default.errors,(0,Zv._)`${pM.default.vErrors}.length`)}t(se,"addErrorsFrom");function Xe(Ue){var je;if(!x.opts.unevaluated)return;let Vt=(je=f?.validate)===null||je===void 0?void 0:je.evaluated;if(x.props!==!0)if(Vt&&!Vt.dynamicProps)Vt.props!==void 0&&(x.props=Bce.mergeEvaluated.props(y,Vt.props,x.props));else{let Ut=y.var("props",(0,Zv._)`${Ue}.evaluated.props`);x.props=Bce.mergeEvaluated.props(y,Ut,x.props,Zv.Name)}if(x.items!==!0)if(Vt&&!Vt.dynamicItems)Vt.items!==void 0&&(x.items=Bce.mergeEvaluated.items(y,Vt.items,x.items));else{let Ut=y.var("items",(0,Zv._)`${Ue}.evaluated.items`);x.items=Bce.mergeEvaluated.items(y,Ut,x.items,Zv.Name)}}t(Xe,"addEvaluatedFrom")}t(Uce,"callRef");NO.callRef=Uce;NO.default=csr});var G6e=ar(H6e=>{"use strict";Object.defineProperty(H6e,"__esModule",{value:!0});var lsr=Iot(),usr=zce(),fsr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lsr.default,usr.default];H6e.default=fsr});var Rot=ar(Y6e=>{"use strict";Object.defineProperty(Y6e,"__esModule",{value:!0});var $ce=Ec(),_I=$ce.operators,Jce={maximum:{okStr:"<=",ok:_I.LTE,fail:_I.GT},minimum:{okStr:">=",ok:_I.GTE,fail:_I.LT},exclusiveMaximum:{okStr:"<",ok:_I.LT,fail:_I.GTE},exclusiveMinimum:{okStr:">",ok:_I.GT,fail:_I.LTE}},_sr={message:t(({keyword:s,schemaCode:o})=>(0,$ce.str)`must be ${Jce[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,$ce._)`{comparison: ${Jce[s].okStr}, limit: ${o}}`,"params")},psr={keyword:Object.keys(Jce),type:"number",schemaType:"number",$data:!0,error:_sr,code(s){let{keyword:o,data:f,schemaCode:d}=s;s.fail$data((0,$ce._)`${f} ${Jce[o].fail} ${d} || isNaN(${f})`)}};Y6e.default=psr});var Mot=ar(K6e=>{"use strict";Object.defineProperty(K6e,"__esModule",{value:!0});var gH=Ec(),dsr={message:t(({schemaCode:s})=>(0,gH.str)`must be multiple of ${s}`,"message"),params:t(({schemaCode:s})=>(0,gH._)`{multipleOf: ${s}}`,"params")},msr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:dsr,code(s){let{gen:o,data:f,schemaCode:d,it:y}=s,x=y.opts.multipleOfPrecision,P=o.let("res"),F=x?(0,gH._)`Math.abs(Math.round(${P}) - ${P}) > 1e-${x}`:(0,gH._)`${P} !== parseInt(${P})`;s.fail$data((0,gH._)`(${d} === 0 || (${P} = ${f}/${d}, ${F}))`)}};K6e.default=msr});var Bot=ar(X6e=>{"use strict";Object.defineProperty(X6e,"__esModule",{value:!0});function jot(s){let o=s.length,f=0,d=0,y;for(;d<o;)f++,y=s.charCodeAt(d++),y>=55296&&y<=56319&&d<o&&(y=s.charCodeAt(d),(y&64512)===56320&&d++);return f}t(jot,"ucs2length");X6e.default=jot;jot.code='require("ajv/dist/runtime/ucs2length").default'});var Uot=ar(Z6e=>{"use strict";Object.defineProperty(Z6e,"__esModule",{value:!0});var IO=Ec(),hsr=tu(),gsr=Bot(),ysr={message({keyword:s,schemaCode:o}){let f=s==="maxLength"?"more":"fewer";return(0,IO.str)`must NOT have ${f} than ${o} characters`},params:t(({schemaCode:s})=>(0,IO._)`{limit: ${s}}`,"params")},vsr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ysr,code(s){let{keyword:o,data:f,schemaCode:d,it:y}=s,x=o==="maxLength"?IO.operators.GT:IO.operators.LT,P=y.opts.unicode===!1?(0,IO._)`${f}.length`:(0,IO._)`${(0,hsr.useFunc)(s.gen,gsr.default)}(${f})`;s.fail$data((0,IO._)`${P} ${x} ${d}`)}};Z6e.default=vsr});var zot=ar(Q6e=>{"use strict";Object.defineProperty(Q6e,"__esModule",{value:!0});var bsr=mT(),Wce=Ec(),Ssr={message:t(({schemaCode:s})=>(0,Wce.str)`must match pattern "${s}"`,"message"),params:t(({schemaCode:s})=>(0,Wce._)`{pattern: ${s}}`,"params")},Tsr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ssr,code(s){let{data:o,$data:f,schema:d,schemaCode:y,it:x}=s,P=x.opts.unicodeRegExp?"u":"",F=f?(0,Wce._)`(new RegExp(${y}, ${P}))`:(0,bsr.usePattern)(s,d);s.fail$data((0,Wce._)`!${F}.test(${o})`)}};Q6e.default=Tsr});var $ot=ar(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});var yH=Ec(),xsr={message({keyword:s,schemaCode:o}){let f=s==="maxProperties"?"more":"fewer";return(0,yH.str)`must NOT have ${f} than ${o} properties`},params:t(({schemaCode:s})=>(0,yH._)`{limit: ${s}}`,"params")},Esr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:xsr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxProperties"?yH.operators.GT:yH.operators.LT;s.fail$data((0,yH._)`Object.keys(${f}).length ${y} ${d}`)}};eNe.default=Esr});var Jot=ar(tNe=>{"use strict";Object.defineProperty(tNe,"__esModule",{value:!0});var vH=mT(),bH=Ec(),Csr=tu(),ksr={message:t(({params:{missingProperty:s}})=>(0,bH.str)`must have required property '${s}'`,"message"),params:t(({params:{missingProperty:s}})=>(0,bH._)`{missingProperty: ${s}}`,"params")},wsr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ksr,code(s){let{gen:o,schema:f,schemaCode:d,data:y,$data:x,it:P}=s,{opts:F}=P;if(!x&&f.length===0)return;let W=f.length>=F.loopRequired;if(P.allErrors?G():be(),F.strictRequired){let Xe=s.parentSchema.properties,{definedProperties:Ue}=s.it;for(let je of f)if(Xe?.[je]===void 0&&!Ue.has(je)){let Vt=P.schemaEnv.baseId+P.errSchemaPath,Ut=`required property "${je}" is not defined at "${Vt}" (strictRequired)`;(0,Csr.checkStrictMode)(P,Ut,P.opts.strictRequired)}}function G(){if(W||x)s.block$data(bH.nil,de);else for(let Xe of f)(0,vH.checkReportMissingProp)(s,Xe)}t(G,"allErrorsMode");function be(){let Xe=o.let("missing");if(W||x){let Ue=o.let("valid",!0);s.block$data(Ue,()=>se(Xe,Ue)),s.ok(Ue)}else o.if((0,vH.checkMissingProp)(s,f,Xe)),(0,vH.reportMissingProp)(s,Xe),o.else()}t(be,"exitOnErrorMode");function de(){o.forOf("prop",d,Xe=>{s.setParams({missingProperty:Xe}),o.if((0,vH.noPropertyInData)(o,y,Xe,F.ownProperties),()=>s.error())})}t(de,"loopAllRequired");function se(Xe,Ue){s.setParams({missingProperty:Xe}),o.forOf(Xe,d,()=>{o.assign(Ue,(0,vH.propertyInData)(o,y,Xe,F.ownProperties)),o.if((0,bH.not)(Ue),()=>{s.error(),o.break()})},bH.nil)}t(se,"loopUntilMissing")}};tNe.default=wsr});var Wot=ar(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});var SH=Ec(),Dsr={message({keyword:s,schemaCode:o}){let f=s==="maxItems"?"more":"fewer";return(0,SH.str)`must NOT have ${f} than ${o} items`},params:t(({schemaCode:s})=>(0,SH._)`{limit: ${s}}`,"params")},Psr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Dsr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxItems"?SH.operators.GT:SH.operators.LT;s.fail$data((0,SH._)`${f}.length ${y} ${d}`)}};rNe.default=Psr});var qce=ar(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});var qot=C6e();qot.code='require("ajv/dist/runtime/equal").default';nNe.default=qot});var Vot=ar(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});var iNe=oH(),C0=Ec(),Asr=tu(),Nsr=qce(),Isr={message:t(({params:{i:s,j:o}})=>(0,C0.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,"message"),params:t(({params:{i:s,j:o}})=>(0,C0._)`{i: ${s}, j: ${o}}`,"params")},Osr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Isr,code(s){let{gen:o,data:f,$data:d,schema:y,parentSchema:x,schemaCode:P,it:F}=s;if(!d&&!y)return;let W=o.let("valid"),G=x.items?(0,iNe.getSchemaTypes)(x.items):[];s.block$data(W,be,(0,C0._)`${P} === false`),s.ok(W);function be(){let Ue=o.let("i",(0,C0._)`${f}.length`),je=o.let("j");s.setParams({i:Ue,j:je}),o.assign(W,!0),o.if((0,C0._)`${Ue} > 1`,()=>(de()?se:Xe)(Ue,je))}t(be,"validateUniqueItems");function de(){return G.length>0&&!G.some(Ue=>Ue==="object"||Ue==="array")}t(de,"canOptimize");function se(Ue,je){let Vt=o.name("item"),Ut=(0,iNe.checkDataTypes)(G,Vt,F.opts.strictNumbers,iNe.DataType.Wrong),Ir=o.const("indices",(0,C0._)`{}`);o.for((0,C0._)`;${Ue}--;`,()=>{o.let(Vt,(0,C0._)`${f}[${Ue}]`),o.if(Ut,(0,C0._)`continue`),G.length>1&&o.if((0,C0._)`typeof ${Vt} == "string"`,(0,C0._)`${Vt} += "_"`),o.if((0,C0._)`typeof ${Ir}[${Vt}] == "number"`,()=>{o.assign(je,(0,C0._)`${Ir}[${Vt}]`),s.error(),o.assign(W,!1).break()}).code((0,C0._)`${Ir}[${Vt}] = ${Ue}`)})}t(se,"loopN");function Xe(Ue,je){let Vt=(0,Asr.useFunc)(o,Nsr.default),Ut=o.name("outer");o.label(Ut).for((0,C0._)`;${Ue}--;`,()=>o.for((0,C0._)`${je} = ${Ue}; ${je}--;`,()=>o.if((0,C0._)`${Vt}(${f}[${Ue}], ${f}[${je}])`,()=>{s.error(),o.assign(W,!1).break(Ut)})))}t(Xe,"loopN2")}};sNe.default=Osr});var Hot=ar(oNe=>{"use strict";Object.defineProperty(oNe,"__esModule",{value:!0});var aNe=Ec(),Fsr=tu(),Lsr=qce(),Rsr={message:"must be equal to constant",params:t(({schemaCode:s})=>(0,aNe._)`{allowedValue: ${s}}`,"params")},Msr={keyword:"const",$data:!0,error:Rsr,code(s){let{gen:o,data:f,$data:d,schemaCode:y,schema:x}=s;d||x&&typeof x=="object"?s.fail$data((0,aNe._)`!${(0,Fsr.useFunc)(o,Lsr.default)}(${f}, ${y})`):s.fail((0,aNe._)`${x} !== ${f}`)}};oNe.default=Msr});var Got=ar(cNe=>{"use strict";Object.defineProperty(cNe,"__esModule",{value:!0});var TH=Ec(),jsr=tu(),Bsr=qce(),Usr={message:"must be equal to one of the allowed values",params:t(({schemaCode:s})=>(0,TH._)`{allowedValues: ${s}}`,"params")},zsr={keyword:"enum",schemaType:"array",$data:!0,error:Usr,code(s){let{gen:o,data:f,$data:d,schema:y,schemaCode:x,it:P}=s;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=P.opts.loopEnum,W,G=t(()=>W??(W=(0,jsr.useFunc)(o,Bsr.default)),"getEql"),be;if(F||d)be=o.let("valid"),s.block$data(be,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Xe=o.const("vSchema",x);be=(0,TH.or)(...y.map((Ue,je)=>se(Xe,je)))}s.pass(be);function de(){o.assign(be,!1),o.forOf("v",x,Xe=>o.if((0,TH._)`${G()}(${f}, ${Xe})`,()=>o.assign(be,!0).break()))}t(de,"loopEnum");function se(Xe,Ue){let je=y[Ue];return typeof je=="object"&&je!==null?(0,TH._)`${G()}(${f}, ${Xe}[${Ue}])`:(0,TH._)`${f} === ${je}`}t(se,"equalCode")}};cNe.default=zsr});var uNe=ar(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});var $sr=Rot(),Jsr=Mot(),Wsr=Uot(),qsr=zot(),Vsr=$ot(),Hsr=Jot(),Gsr=Wot(),Ysr=Vot(),Ksr=Hot(),Xsr=Got(),Zsr=[$sr.default,Jsr.default,Wsr.default,qsr.default,Vsr.default,Hsr.default,Gsr.default,Ysr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ksr.default,Xsr.default];lNe.default=Zsr});var _Ne=ar(xH=>{"use strict";Object.defineProperty(xH,"__esModule",{value:!0});xH.validateAdditionalItems=void 0;var OO=Ec(),fNe=tu(),Qsr={message:t(({params:{len:s}})=>(0,OO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,OO._)`{limit: ${s}}`,"params")},ear={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Qsr,code(s){let{parentSchema:o,it:f}=s,{items:d}=o;if(!Array.isArray(d)){(0,fNe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}Yot(s,d)}};function Yot(s,o){let{gen:f,schema:d,data:y,keyword:x,it:P}=s;P.items=!0;let F=f.const("len",(0,OO._)`${y}.length`);if(d===!1)s.setParams({len:o.length}),s.pass((0,OO._)`${F} <= ${o.length}`);else if(typeof d=="object"&&!(0,fNe.alwaysValidSchema)(P,d)){let G=f.var("valid",(0,OO._)`${F} <= ${o.length}`);f.if((0,OO.not)(G),()=>W(G)),s.ok(G)}function W(G){f.forRange("i",o.length,F,be=>{s.subschema({keyword:x,dataProp:be,dataPropType:fNe.Type.Num},G),P.allErrors||f.if((0,OO.not)(G),()=>f.break())})}t(W,"validateItems")}t(Yot,"validateAdditionalItems");xH.validateAdditionalItems=Yot;xH.default=ear});var pNe=ar(EH=>{"use strict";Object.defineProperty(EH,"__esModule",{value:!0});EH.validateTuple=void 0;var Kot=Ec(),Vce=tu(),tar=mT(),rar={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){let{schema:o,it:f}=s;if(Array.isArray(o))return Xot(s,"additionalItems",o);f.items=!0,!(0,Vce.alwaysValidSchema)(f,o)&&s.ok((0,tar.validateArray)(s))}};function Xot(s,o,f=s.schema){let{gen:d,parentSchema:y,data:x,keyword:P,it:F}=s;be(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=Vce.mergeEvaluated.items(d,f.length,F.items));let W=d.name("valid"),G=d.const("len",(0,Kot._)`${x}.length`);f.forEach((de,se)=>{(0,Vce.alwaysValidSchema)(F,de)||(d.if((0,Kot._)`${G} > ${se}`,()=>s.subschema({keyword:P,schemaProp:se,dataProp:se},W)),s.ok(W))});function be(de){let{opts:se,errSchemaPath:Xe}=F,Ue=f.length,je=Ue===de.minItems&&(Ue===de.maxItems||de[o]===!1);if(se.strictTuples&&!je){let Vt=`"${P}" is ${Ue}-tuple, but minItems or maxItems/${o} are not specified or different at path "${Xe}"`;(0,Vce.checkStrictMode)(F,Vt,se.strictTuples)}}t(be,"checkStrictTuple")}t(Xot,"validateTuple");EH.validateTuple=Xot;EH.default=rar});var Zot=ar(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});var nar=pNe(),iar={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(s=>(0,nar.validateTuple)(s,"items"),"code")};dNe.default=iar});var ect=ar(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});var Qot=Ec(),sar=tu(),aar=mT(),oar=_Ne(),car={message:t(({params:{len:s}})=>(0,Qot.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,Qot._)`{limit: ${s}}`,"params")},lar={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:car,code(s){let{schema:o,parentSchema:f,it:d}=s,{prefixItems:y}=f;d.items=!0,!(0,sar.alwaysValidSchema)(d,o)&&(y?(0,oar.validateAdditionalItems)(s,y):s.ok((0,aar.validateArray)(s)))}};mNe.default=lar});var tct=ar(hNe=>{"use strict";Object.defineProperty(hNe,"__esModule",{value:!0});var gT=Ec(),Hce=tu(),uar={message:t(({params:{min:s,max:o}})=>o===void 0?(0,gT.str)`must contain at least ${s} valid item(s)`:(0,gT.str)`must contain at least ${s} and no more than ${o} valid item(s)`,"message"),params:t(({params:{min:s,max:o}})=>o===void 0?(0,gT._)`{minContains: ${s}}`:(0,gT._)`{minContains: ${s}, maxContains: ${o}}`,"params")},far={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uar,code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s,P,F,{minContains:W,maxContains:G}=d;x.opts.next?(P=W===void 0?1:W,F=G):P=1;let be=o.const("len",(0,gT._)`${y}.length`);if(s.setParams({min:P,max:F}),F===void 0&&P===0){(0,Hce.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&P>F){(0,Hce.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,Hce.alwaysValidSchema)(x,f)){let je=(0,gT._)`${be} >= ${P}`;F!==void 0&&(je=(0,gT._)`${je} && ${be} <= ${F}`),s.pass(je);return}x.items=!0;let de=o.name("valid");F===void 0&&P===1?Xe(de,()=>o.if(de,()=>o.break())):P===0?(o.let(de,!0),F!==void 0&&o.if((0,gT._)`${y}.length > 0`,se)):(o.let(de,!1),se()),s.result(de,()=>s.reset());function se(){let je=o.name("_valid"),Vt=o.let("count",0);Xe(je,()=>o.if(je,()=>Ue(Vt)))}t(se,"validateItemsWithCount");function Xe(je,Vt){o.forRange("i",0,be,Ut=>{s.subschema({keyword:"contains",dataProp:Ut,dataPropType:Hce.Type.Num,compositeRule:!0},je),Vt()})}t(Xe,"validateItems");function Ue(je){o.code((0,gT._)`${je}++`),F===void 0?o.if((0,gT._)`${je} >= ${P}`,()=>o.assign(de,!0).break()):(o.if((0,gT._)`${je} > ${F}`,()=>o.assign(de,!1).break()),P===1?o.assign(de,!0):o.if((0,gT._)`${je} >= ${P}`,()=>o.assign(de,!0)))}t(Ue,"checkLimits")}};hNe.default=far});var Gce=ar(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.validateSchemaDeps=Bk.validatePropertyDeps=Bk.error=void 0;var gNe=Ec(),_ar=tu(),CH=mT();Bk.error={message:t(({params:{property:s,depsCount:o,deps:f}})=>{let d=o===1?"property":"properties";return(0,gNe.str)`must have ${d} ${f} when property ${s} is present`},"message"),params:t(({params:{property:s,depsCount:o,deps:f,missingProperty:d}})=>(0,gNe._)`{property: ${s},
66
66
  missingProperty: ${d},
67
67
  depsCount: ${o},
68
- deps: ${f}}`,"params")};var par={keyword:"dependencies",type:"object",schemaType:"object",error:Bk.error,code(s){let[o,f]=dar(s);rct(s,o),nct(s,f)}};function dar({schema:s}){let o={},f={};for(let d in s){if(d==="__proto__")continue;let y=Array.isArray(s[d])?o:f;y[d]=s[d]}return[o,f]}t(dar,"splitDependencies");function rct(s,o=s.schema){let{gen:f,data:d,it:y}=s;if(Object.keys(o).length===0)return;let x=f.let("missing");for(let P in o){let F=o[P];if(F.length===0)continue;let W=(0,CH.propertyInData)(f,d,P,y.opts.ownProperties);s.setParams({property:P,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(W,()=>{for(let G of F)(0,CH.checkReportMissingProp)(s,G)}):(f.if((0,gNe._)`${W} && (${(0,CH.checkMissingProp)(s,F,x)})`),(0,CH.reportMissingProp)(s,x),f.else())}}t(rct,"validatePropertyDeps");Bk.validatePropertyDeps=rct;function nct(s,o=s.schema){let{gen:f,data:d,keyword:y,it:x}=s,P=f.name("valid");for(let F in o)(0,_ar.alwaysValidSchema)(x,o[F])||(f.if((0,CH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let W=s.subschema({keyword:y,schemaProp:F},P);s.mergeValidEvaluated(W,P)},()=>f.var(P,!0)),s.ok(P))}t(nct,"validateSchemaDeps");Bk.validateSchemaDeps=nct;Bk.default=par});var sct=ar(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});var ict=Ec(),mar=tu(),har={message:"property name must be valid",params:t(({params:s})=>(0,ict._)`{propertyName: ${s.propertyName}}`,"params")},gar={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:har,code(s){let{gen:o,schema:f,data:d,it:y}=s;if((0,mar.alwaysValidSchema)(y,f))return;let x=o.name("valid");o.forIn("key",d,P=>{s.setParams({propertyName:P}),s.subschema({keyword:"propertyNames",data:P,dataTypes:["string"],propertyName:P,compositeRule:!0},x),o.if((0,ict.not)(x),()=>{s.error(!0),y.allErrors||o.break()})}),s.ok(x)}};yNe.default=gar});var bNe=ar(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});var Yce=mT(),CE=Ec(),yar=dT(),Kce=tu(),bar={message:"must NOT have additional properties",params:t(({params:s})=>(0,CE._)`{additionalProperty: ${s.additionalProperty}}`,"params")},Sar={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:bar,code(s){let{gen:o,schema:f,parentSchema:d,data:y,errsCount:x,it:P}=s;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:W}=P;if(P.props=!0,W.removeAdditional!=="all"&&(0,Kce.alwaysValidSchema)(P,f))return;let G=(0,Yce.allSchemaProperties)(d.properties),be=(0,Yce.allSchemaProperties)(d.patternProperties);de(),s.ok((0,CE._)`${x} === ${yar.default.errors}`);function de(){o.forIn("key",y,Vt=>{!G.length&&!be.length?Ue(Vt):o.if(se(Vt),()=>Ue(Vt))})}t(de,"checkAdditionalProperties");function se(Vt){let Ut;if(G.length>8){let Ir=(0,Kce.schemaRefOrVal)(P,d.properties,"properties");Ut=(0,Yce.isOwnProperty)(o,Ir,Vt)}else G.length?Ut=(0,CE.or)(...G.map(Ir=>(0,CE._)`${Vt} === ${Ir}`)):Ut=CE.nil;return be.length&&(Ut=(0,CE.or)(Ut,...be.map(Ir=>(0,CE._)`${(0,Yce.usePattern)(s,Ir)}.test(${Vt})`))),(0,CE.not)(Ut)}t(se,"isAdditional");function Xe(Vt){o.code((0,CE._)`delete ${y}[${Vt}]`)}t(Xe,"deleteAdditional");function Ue(Vt){if(W.removeAdditional==="all"||W.removeAdditional&&f===!1){Xe(Vt);return}if(f===!1){s.setParams({additionalProperty:Vt}),s.error(),F||o.break();return}if(typeof f=="object"&&!(0,Kce.alwaysValidSchema)(P,f)){let Ut=o.name("valid");W.removeAdditional==="failing"?(je(Vt,Ut,!1),o.if((0,CE.not)(Ut),()=>{s.reset(),Xe(Vt)})):(je(Vt,Ut),F||o.if((0,CE.not)(Ut),()=>o.break()))}}t(Ue,"additionalPropertyCode");function je(Vt,Ut,Ir){let wn={keyword:"additionalProperties",dataProp:Vt,dataPropType:Kce.Type.Str};Ir===!1&&Object.assign(wn,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(wn,Ut)}t(je,"applyAdditionalSchema")}};vNe.default=Sar});var cct=ar(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});var Tar=lM(),act=mT(),SNe=tu(),oct=bNe(),xar={keyword:"properties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&oct.default.code(new Tar.KeywordCxt(x,oct.default,"additionalProperties"));let P=(0,act.allSchemaProperties)(f);for(let de of P)x.definedProperties.add(de);x.opts.unevaluated&&P.length&&x.props!==!0&&(x.props=SNe.mergeEvaluated.props(o,(0,SNe.toHash)(P),x.props));let F=P.filter(de=>!(0,SNe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let W=o.name("valid");for(let de of F)G(de)?be(de):(o.if((0,act.propertyInData)(o,y,de,x.opts.ownProperties)),be(de),x.allErrors||o.else().var(W,!0),o.endIf()),s.it.definedProperties.add(de),s.ok(W);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function be(de){s.subschema({keyword:"properties",schemaProp:de,dataProp:de},W)}t(be,"applyPropertySchema")}};TNe.default=xar});var _ct=ar(xNe=>{"use strict";Object.defineProperty(xNe,"__esModule",{value:!0});var lct=mT(),Xce=Ec(),uct=tu(),fct=tu(),Ear={keyword:"patternProperties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,data:d,parentSchema:y,it:x}=s,{opts:P}=x,F=(0,lct.allSchemaProperties)(f),W=F.filter(je=>(0,uct.alwaysValidSchema)(x,f[je]));if(F.length===0||W.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=P.strictSchema&&!P.allowMatchingProperties&&y.properties,be=o.name("valid");x.props!==!0&&!(x.props instanceof Xce.Name)&&(x.props=(0,fct.evaluatedPropsToName)(o,x.props));let{props:de}=x;se();function se(){for(let je of F)G&&Xe(je),x.allErrors?Ue(je):(o.var(be,!0),Ue(je),o.if(be))}t(se,"validatePatternProperties");function Xe(je){for(let Vt in G)new RegExp(je).test(Vt)&&(0,uct.checkStrictMode)(x,`property ${Vt} matches pattern ${je} (use allowMatchingProperties)`)}t(Xe,"checkMatchingProperties");function Ue(je){o.forIn("key",d,Vt=>{o.if((0,Xce._)`${(0,lct.usePattern)(s,je)}.test(${Vt})`,()=>{let Ut=W.includes(je);Ut||s.subschema({keyword:"patternProperties",schemaProp:je,dataProp:Vt,dataPropType:fct.Type.Str},be),x.opts.unevaluated&&de!==!0?o.assign((0,Xce._)`${de}[${Vt}]`,!0):!Ut&&!x.allErrors&&o.if((0,Xce.not)(be),()=>o.break())})})}t(Ue,"validateProperties")}};xNe.default=Ear});var pct=ar(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});var Car=tu(),kar={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(s){let{gen:o,schema:f,it:d}=s;if((0,Car.alwaysValidSchema)(d,f)){s.fail();return}let y=o.name("valid");s.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),s.failResult(y,()=>s.reset(),()=>s.error())},error:{message:"must NOT be valid"}};ENe.default=kar});var dct=ar(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});var war=mT(),Dar={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:war.validateUnion,error:{message:"must match a schema in anyOf"}};CNe.default=Dar});var mct=ar(kNe=>{"use strict";Object.defineProperty(kNe,"__esModule",{value:!0});var Zce=Ec(),Par=tu(),Aar={message:"must match exactly one schema in oneOf",params:t(({params:s})=>(0,Zce._)`{passingSchemas: ${s.passing}}`,"params")},Nar={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Aar,code(s){let{gen:o,schema:f,parentSchema:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,P=o.let("valid",!1),F=o.let("passing",null),W=o.name("_valid");s.setParams({passing:F}),o.block(G),s.result(P,()=>s.reset(),()=>s.error(!0));function G(){x.forEach((be,de)=>{let se;(0,Par.alwaysValidSchema)(y,be)?o.var(W,!0):se=s.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},W),de>0&&o.if((0,Zce._)`${W} && ${P}`).assign(P,!1).assign(F,(0,Zce._)`[${F}, ${de}]`).else(),o.if(W,()=>{o.assign(P,!0),o.assign(F,de),se&&s.mergeEvaluated(se,Zce.Name)})})}t(G,"validateOneOf")}};kNe.default=Nar});var hct=ar(wNe=>{"use strict";Object.defineProperty(wNe,"__esModule",{value:!0});var Iar=tu(),Oar={keyword:"allOf",schemaType:"array",code(s){let{gen:o,schema:f,it:d}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=o.name("valid");f.forEach((x,P)=>{if((0,Iar.alwaysValidSchema)(d,x))return;let F=s.subschema({keyword:"allOf",schemaProp:P},y);s.ok(y),s.mergeEvaluated(F)})}};wNe.default=Oar});var vct=ar(DNe=>{"use strict";Object.defineProperty(DNe,"__esModule",{value:!0});var Qce=Ec(),yct=tu(),Far={message:t(({params:s})=>(0,Qce.str)`must match "${s.ifClause}" schema`,"message"),params:t(({params:s})=>(0,Qce._)`{failingKeyword: ${s.ifClause}}`,"params")},Lar={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Far,code(s){let{gen:o,parentSchema:f,it:d}=s;f.then===void 0&&f.else===void 0&&(0,yct.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=gct(d,"then"),x=gct(d,"else");if(!y&&!x)return;let P=o.let("valid",!0),F=o.name("_valid");if(W(),s.reset(),y&&x){let be=o.let("ifClause");s.setParams({ifClause:be}),o.if(F,G("then",be),G("else",be))}else y?o.if(F,G("then")):o.if((0,Qce.not)(F),G("else"));s.pass(P,()=>s.error(!0));function W(){let be=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);s.mergeEvaluated(be)}t(W,"validateIf");function G(be,de){return()=>{let se=s.subschema({keyword:be},F);o.assign(P,F),s.mergeValidEvaluated(se,P),de?o.assign(de,(0,Qce._)`${be}`):s.setParams({ifClause:be})}}t(G,"validateClause")}};function gct(s,o){let f=s.schema[o];return f!==void 0&&!(0,yct.alwaysValidSchema)(s,f)}t(gct,"hasSchema");DNe.default=Lar});var bct=ar(PNe=>{"use strict";Object.defineProperty(PNe,"__esModule",{value:!0});var Rar=tu(),Mar={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:s,parentSchema:o,it:f}){o.if===void 0&&(0,Rar.checkStrictMode)(f,`"${s}" without "if" is ignored`)}};PNe.default=Mar});var NNe=ar(ANe=>{"use strict";Object.defineProperty(ANe,"__esModule",{value:!0});var jar=_Ne(),Bar=Zot(),Uar=pNe(),zar=ect(),$ar=tct(),Jar=Gce(),War=sct(),qar=bNe(),Var=cct(),Har=_ct(),Gar=pct(),Yar=dct(),Kar=mct(),Xar=hct(),Zar=vct(),Qar=bct();function eor(s=!1){let o=[Gar.default,Yar.default,Kar.default,Xar.default,Zar.default,Qar.default,War.default,qar.default,Jar.default,Var.default,Har.default];return s?o.push(Bar.default,zar.default):o.push(jar.default,Uar.default),o.push($ar.default),o}t(eor,"getApplicator");ANe.default=eor});var ONe=ar(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.dynamicAnchor=void 0;var INe=Ec(),tor=dT(),Sct=_H(),ror=zce(),nor={keyword:"$dynamicAnchor",schemaType:"string",code:t(s=>Tct(s,s.schema),"code")};function Tct(s,o){let{gen:f,it:d}=s;d.schemaEnv.root.dynamicAnchors[o]=!0;let y=(0,INe._)`${tor.default.dynamicAnchors}${(0,INe.getProperty)(o)}`,x=d.errSchemaPath==="#"?d.validateName:ior(s);f.if((0,INe._)`!${y}`,()=>f.assign(y,x))}t(Tct,"dynamicAnchor");kH.dynamicAnchor=Tct;function ior(s){let{schemaEnv:o,schema:f,self:d}=s.it,{root:y,baseId:x,localRefs:P,meta:F}=o.root,{schemaId:W}=d.opts,G=new Sct.SchemaEnv({schema:f,schemaId:W,root:y,baseId:x,localRefs:P,meta:F});return Sct.compileSchema.call(d,G),(0,ror.getValidate)(s,G)}t(ior,"_getValidate");kH.default=nor});var FNe=ar(wH=>{"use strict";Object.defineProperty(wH,"__esModule",{value:!0});wH.dynamicRef=void 0;var xct=Ec(),sor=dT(),Ect=zce(),aor={keyword:"$dynamicRef",schemaType:"string",code:t(s=>Cct(s,s.schema),"code")};function Cct(s,o){let{gen:f,keyword:d,it:y}=s;if(o[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=o.slice(1);if(y.allErrors)P();else{let W=f.let("valid",!1);P(W),s.ok(W)}function P(W){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,xct._)`${sor.default.dynamicAnchors}${(0,xct.getProperty)(x)}`);f.if(G,F(G,W),F(y.validateName,W))}else F(y.validateName,W)()}t(P,"_dynamicRef");function F(W,G){return G?()=>f.block(()=>{(0,Ect.callRef)(s,W),f.let(G,!0)}):()=>(0,Ect.callRef)(s,W)}t(F,"_callRef")}t(Cct,"dynamicRef");wH.dynamicRef=Cct;wH.default=aor});var kct=ar(LNe=>{"use strict";Object.defineProperty(LNe,"__esModule",{value:!0});var oor=ONe(),cor=tu(),lor={keyword:"$recursiveAnchor",schemaType:"boolean",code(s){s.schema?(0,oor.dynamicAnchor)(s,""):(0,cor.checkStrictMode)(s.it,"$recursiveAnchor: false is ignored")}};LNe.default=lor});var wct=ar(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});var uor=FNe(),_or={keyword:"$recursiveRef",schemaType:"string",code:t(s=>(0,uor.dynamicRef)(s,s.schema),"code")};RNe.default=_or});var Dct=ar(MNe=>{"use strict";Object.defineProperty(MNe,"__esModule",{value:!0});var por=ONe(),dor=FNe(),mor=kct(),hor=wct(),gor=[por.default,dor.default,mor.default,hor.default];MNe.default=gor});var Act=ar(jNe=>{"use strict";Object.defineProperty(jNe,"__esModule",{value:!0});var Pct=Gce(),yor={keyword:"dependentRequired",type:"object",schemaType:"object",error:Pct.error,code:t(s=>(0,Pct.validatePropertyDeps)(s),"code")};jNe.default=yor});var Nct=ar(BNe=>{"use strict";Object.defineProperty(BNe,"__esModule",{value:!0});var vor=Gce(),bor={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(s=>(0,vor.validateSchemaDeps)(s),"code")};BNe.default=bor});var Ict=ar(UNe=>{"use strict";Object.defineProperty(UNe,"__esModule",{value:!0});var Sor=tu(),Tor={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:s,parentSchema:o,it:f}){o.contains===void 0&&(0,Sor.checkStrictMode)(f,`"${s}" without "contains" is ignored`)}};UNe.default=Tor});var Oct=ar(zNe=>{"use strict";Object.defineProperty(zNe,"__esModule",{value:!0});var xor=Act(),Eor=Nct(),Cor=Ict(),kor=[xor.default,Eor.default,Cor.default];zNe.default=kor});var Lct=ar($Ne=>{"use strict";Object.defineProperty($Ne,"__esModule",{value:!0});var pI=Ec(),Fct=tu(),wor=dT(),Dor={message:"must NOT have unevaluated properties",params:t(({params:s})=>(0,pI._)`{unevaluatedProperty: ${s.unevaluatedProperty}}`,"params")},Por={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Dor,code(s){let{gen:o,schema:f,data:d,errsCount:y,it:x}=s;if(!y)throw new Error("ajv implementation error");let{allErrors:P,props:F}=x;F instanceof pI.Name?o.if((0,pI._)`${F} !== true`,()=>o.forIn("key",d,de=>o.if(G(F,de),()=>W(de)))):F!==!0&&o.forIn("key",d,de=>F===void 0?W(de):o.if(be(F,de),()=>W(de))),x.props=!0,s.ok((0,pI._)`${y} === ${wor.default.errors}`);function W(de){if(f===!1){s.setParams({unevaluatedProperty:de}),s.error(),P||o.break();return}if(!(0,Fct.alwaysValidSchema)(x,f)){let se=o.name("valid");s.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:Fct.Type.Str},se),P||o.if((0,pI.not)(se),()=>o.break())}}t(W,"unevaluatedPropCode");function G(de,se){return(0,pI._)`!${de} || !${de}[${se}]`}t(G,"unevaluatedDynamic");function be(de,se){let Xe=[];for(let Ue in de)de[Ue]===!0&&Xe.push((0,pI._)`${se} !== ${Ue}`);return(0,pI.and)(...Xe)}t(be,"unevaluatedStatic")}};$Ne.default=Por});var Mct=ar(JNe=>{"use strict";Object.defineProperty(JNe,"__esModule",{value:!0});var FO=Ec(),Rct=tu(),Aor={message:t(({params:{len:s}})=>(0,FO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,FO._)`{limit: ${s}}`,"params")},Nor={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Aor,code(s){let{gen:o,schema:f,data:d,it:y}=s,x=y.items||0;if(x===!0)return;let P=o.const("len",(0,FO._)`${d}.length`);if(f===!1)s.setParams({len:x}),s.fail((0,FO._)`${P} > ${x}`);else if(typeof f=="object"&&!(0,Rct.alwaysValidSchema)(y,f)){let W=o.var("valid",(0,FO._)`${P} <= ${x}`);o.if((0,FO.not)(W),()=>F(W,x)),s.ok(W)}y.items=!0;function F(W,G){o.forRange("i",G,P,be=>{s.subschema({keyword:"unevaluatedItems",dataProp:be,dataPropType:Rct.Type.Num},W),y.allErrors||o.if((0,FO.not)(W),()=>o.break())})}t(F,"validateItems")}};JNe.default=Nor});var jct=ar(WNe=>{"use strict";Object.defineProperty(WNe,"__esModule",{value:!0});var Ior=Lct(),Oor=Mct(),For=[Ior.default,Oor.default];WNe.default=For});var Bct=ar(qNe=>{"use strict";Object.defineProperty(qNe,"__esModule",{value:!0});var km=Ec(),Lor={message:t(({schemaCode:s})=>(0,km.str)`must match format "${s}"`,"message"),params:t(({schemaCode:s})=>(0,km._)`{format: ${s}}`,"params")},Ror={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Lor,code(s,o){let{gen:f,data:d,$data:y,schema:x,schemaCode:P,it:F}=s,{opts:W,errSchemaPath:G,schemaEnv:be,self:de}=F;if(!W.validateFormats)return;y?se():Xe();function se(){let Ue=f.scopeValue("formats",{ref:de.formats,code:W.code.formats}),je=f.const("fDef",(0,km._)`${Ue}[${P}]`),Vt=f.let("fType"),Ut=f.let("format");f.if((0,km._)`typeof ${je} == "object" && !(${je} instanceof RegExp)`,()=>f.assign(Vt,(0,km._)`${je}.type || "string"`).assign(Ut,(0,km._)`${je}.validate`),()=>f.assign(Vt,(0,km._)`"string"`).assign(Ut,je)),s.fail$data((0,km.or)(Ir(),wn()));function Ir(){return W.strictSchema===!1?km.nil:(0,km._)`${P} && !${Ut}`}t(Ir,"unknownFmt");function wn(){let sn=be.$async?(0,km._)`(${je}.async ? await ${Ut}(${d}) : ${Ut}(${d}))`:(0,km._)`${Ut}(${d})`,Jn=(0,km._)`(typeof ${Ut} == "function" ? ${sn} : ${Ut}.test(${d}))`;return(0,km._)`${Ut} && ${Ut} !== true && ${Vt} === ${o} && !${Jn}`}t(wn,"invalidFmt")}t(se,"validate$DataFormat");function Xe(){let Ue=de.formats[x];if(!Ue){Ir();return}if(Ue===!0)return;let[je,Vt,Ut]=wn(Ue);je===o&&s.pass(sn());function Ir(){if(W.strictSchema===!1){de.logger.warn(Jn());return}throw new Error(Jn());function Jn(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Ir,"unknownFormat");function wn(Jn){let kr=Jn instanceof RegExp?(0,km.regexpCode)(Jn):W.code.formats?(0,km._)`${W.code.formats}${(0,km.getProperty)(x)}`:void 0,yr=f.scopeValue("formats",{key:x,ref:Jn,code:kr});return typeof Jn=="object"&&!(Jn instanceof RegExp)?[Jn.type||"string",Jn.validate,(0,km._)`${yr}.validate`]:["string",Jn,yr]}t(wn,"getFormat");function sn(){if(typeof Ue=="object"&&!(Ue instanceof RegExp)&&Ue.async){if(!be.$async)throw new Error("async format in sync schema");return(0,km._)`await ${Ut}(${d})`}return typeof Vt=="function"?(0,km._)`${Ut}(${d})`:(0,km._)`${Ut}.test(${d})`}t(sn,"validCondition")}t(Xe,"validateFormat")}};qNe.default=Ror});var HNe=ar(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});var Mor=Bct(),jor=[Mor.default];VNe.default=jor});var GNe=ar(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.contentVocabulary=dM.metadataVocabulary=void 0;dM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var zct=ar(YNe=>{"use strict";Object.defineProperty(YNe,"__esModule",{value:!0});var Bor=G6e(),Uor=uNe(),zor=NNe(),$or=Dct(),Jor=Oct(),Wor=jct(),qor=HNe(),Uct=GNe(),Vor=[$or.default,Bor.default,Uor.default,(0,zor.default)(!0),qor.default,Uct.metadataVocabulary,Uct.contentVocabulary,Jor.default,Wor.default];YNe.default=Vor});var Jct=ar(ele=>{"use strict";Object.defineProperty(ele,"__esModule",{value:!0});ele.DiscrError=void 0;var $ct;(function(s){s.Tag="tag",s.Mapping="mapping"})($ct||(ele.DiscrError=$ct={}))});var ZNe=ar(XNe=>{"use strict";Object.defineProperty(XNe,"__esModule",{value:!0});var mM=Ec(),KNe=Jct(),Wct=_H(),Hor=uM(),Gor=tu(),Yor={message:t(({params:{discrError:s,tagName:o}})=>s===KNe.DiscrError.Tag?`tag "${o}" must be string`:`value of tag "${o}" must be in oneOf`,"message"),params:t(({params:{discrError:s,tag:o,tagName:f}})=>(0,mM._)`{error: ${s}, tag: ${f}, tagValue: ${o}}`,"params")},Kor={keyword:"discriminator",type:"object",schemaType:"object",error:Yor,code(s){let{gen:o,data:f,schema:d,parentSchema:y,it:x}=s,{oneOf:P}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!P)throw new Error("discriminator: requires oneOf keyword");let W=o.let("valid",!1),G=o.const("tag",(0,mM._)`${f}${(0,mM.getProperty)(F)}`);o.if((0,mM._)`typeof ${G} == "string"`,()=>be(),()=>s.error(!1,{discrError:KNe.DiscrError.Tag,tag:G,tagName:F})),s.ok(W);function be(){let Xe=se();o.if(!1);for(let Ue in Xe)o.elseIf((0,mM._)`${G} === ${Ue}`),o.assign(W,de(Xe[Ue]));o.else(),s.error(!1,{discrError:KNe.DiscrError.Mapping,tag:G,tagName:F}),o.endIf()}t(be,"validateMapping");function de(Xe){let Ue=o.name("valid"),je=s.subschema({keyword:"oneOf",schemaProp:Xe},Ue);return s.mergeEvaluated(je,mM.Name),Ue}t(de,"applyTagSchema");function se(){var Xe;let Ue={},je=Ut(y),Vt=!0;for(let sn=0;sn<P.length;sn++){let Jn=P[sn];if(Jn?.$ref&&!(0,Gor.schemaHasRulesButRef)(Jn,x.self.RULES)){let yr=Jn.$ref;if(Jn=Wct.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,yr),Jn instanceof Wct.SchemaEnv&&(Jn=Jn.schema),Jn===void 0)throw new Hor.default(x.opts.uriResolver,x.baseId,yr)}let kr=(Xe=Jn?.properties)===null||Xe===void 0?void 0:Xe[F];if(typeof kr!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Vt=Vt&&(je||Ut(Jn)),Ir(kr,sn)}if(!Vt)throw new Error(`discriminator: "${F}" must be required`);return Ue;function Ut({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Ir(sn,Jn){if(sn.const)wn(sn.const,Jn);else if(sn.enum)for(let kr of sn.enum)wn(kr,Jn);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function wn(sn,Jn){if(typeof sn!="string"||sn in Ue)throw new Error(`discriminator: "${F}" values must be unique strings`);Ue[sn]=Jn}}t(se,"getMapping")}};XNe.default=Kor});var qct=ar((S6r,Xor)=>{Xor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Vct=ar((T6r,Zor)=>{Zor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Hct=ar((x6r,Qor)=>{Qor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Gct=ar((E6r,ecr)=>{ecr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Yct=ar((C6r,tcr)=>{tcr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Kct=ar((k6r,rcr)=>{rcr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Xct=ar((w6r,ncr)=>{ncr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Zct=ar((D6r,icr)=>{icr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Qct=ar(QNe=>{"use strict";Object.defineProperty(QNe,"__esModule",{value:!0});var scr=qct(),acr=Vct(),ocr=Hct(),ccr=Gct(),lcr=Yct(),ucr=Kct(),fcr=Xct(),_cr=Zct(),pcr=["/properties"];function dcr(s){return[scr,acr,ocr,ccr,lcr,o(this,ucr),fcr,o(this,_cr)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function o(f,d){return s?f.$dataMetaSchema(d,pcr):d}t(o,"with$data")}t(dcr,"addMetaSchema2020");QNe.default=dcr});var tle=ar((Np,tIe)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.MissingRefError=Np.ValidationError=Np.CodeGen=Np.Name=Np.nil=Np.stringify=Np.str=Np._=Np.KeywordCxt=Np.Ajv2020=void 0;var mcr=q6e(),hcr=zct(),gcr=ZNe(),ycr=Qct(),eIe="https://json-schema.org/draft/2020-12/schema",hM=class extends mcr.default{static{t(this,"Ajv2020")}constructor(o={}){super({...o,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),hcr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(gcr.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:o,meta:f}=this.opts;f&&(ycr.default.call(this,o),this.refs["http://json-schema.org/schema"]=eIe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(eIe)?eIe:void 0)}};Np.Ajv2020=hM;tIe.exports=Np=hM;tIe.exports.Ajv2020=hM;Object.defineProperty(Np,"__esModule",{value:!0});Np.default=hM;var vcr=lM();Object.defineProperty(Np,"KeywordCxt",{enumerable:!0,get:t(function(){return vcr.KeywordCxt},"get")});var gM=Ec();Object.defineProperty(Np,"_",{enumerable:!0,get:t(function(){return gM._},"get")});Object.defineProperty(Np,"str",{enumerable:!0,get:t(function(){return gM.str},"get")});Object.defineProperty(Np,"stringify",{enumerable:!0,get:t(function(){return gM.stringify},"get")});Object.defineProperty(Np,"nil",{enumerable:!0,get:t(function(){return gM.nil},"get")});Object.defineProperty(Np,"Name",{enumerable:!0,get:t(function(){return gM.Name},"get")});Object.defineProperty(Np,"CodeGen",{enumerable:!0,get:t(function(){return gM.CodeGen},"get")});var bcr=fH();Object.defineProperty(Np,"ValidationError",{enumerable:!0,get:t(function(){return bcr.default},"get")});var Scr=uM();Object.defineProperty(Np,"MissingRefError",{enumerable:!0,get:t(function(){return Scr.default},"get")})});var olt=ar(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.formatNames=zk.fastFormats=zk.fullFormats=void 0;function Uk(s,o){return{validate:s,compare:o}}t(Uk,"fmtDef");zk.fullFormats={date:Uk(nlt,sIe),time:Uk(nIe(!0),aIe),"date-time":Uk(elt(!0),slt),"iso-time":Uk(nIe(),ilt),"iso-date-time":Uk(elt(),alt),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:wcr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Fcr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Dcr,int32:{type:"number",validate:Ncr},int64:{type:"number",validate:Icr},float:{type:"number",validate:rlt},double:{type:"number",validate:rlt},password:!0,binary:!0};zk.fastFormats={...zk.fullFormats,date:Uk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,sIe),time:Uk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aIe),"date-time":Uk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,slt),"iso-time":Uk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ilt),"iso-date-time":Uk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,alt),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};zk.formatNames=Object.keys(zk.fullFormats);function Tcr(s){return s%4===0&&(s%100!==0||s%400===0)}t(Tcr,"isLeapYear");var xcr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Ecr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function nlt(s){let o=xcr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Tcr(f)?29:Ecr[d])}t(nlt,"date");function sIe(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(sIe,"compareDate");var rIe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function nIe(s){return t(function(f){let d=rIe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&P<61},"time")}t(nIe,"getTime");function aIe(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(aIe,"compareTime");function ilt(s,o){if(!(s&&o))return;let f=rIe.exec(s),d=rIe.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(ilt,"compareIsoTime");var iIe=/t|\s/i;function elt(s){let o=nIe(s);return t(function(d){let y=d.split(iIe);return y.length===2&&nlt(y[0])&&o(y[1])},"date_time")}t(elt,"getDateTime");function slt(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(slt,"compareDateTime");function alt(s,o){if(!(s&&o))return;let[f,d]=s.split(iIe),[y,x]=o.split(iIe),P=sIe(f,y);if(P!==void 0)return P||aIe(d,x)}t(alt,"compareIsoDateTime");var Ccr=/\/|:/,kcr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function wcr(s){return Ccr.test(s)&&kcr.test(s)}t(wcr,"uri");var tlt=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function Dcr(s){return tlt.lastIndex=0,tlt.test(s)}t(Dcr,"byte");var Pcr=-(2**31),Acr=2**31-1;function Ncr(s){return Number.isInteger(s)&&s<=Acr&&s>=Pcr}t(Ncr,"validateInt32");function Icr(s){return Number.isInteger(s)}t(Icr,"validateInt64");function rlt(){return!0}t(rlt,"validateNumber");var Ocr=/[^\\]\\Z/;function Fcr(s){if(Ocr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(Fcr,"regex")});var llt=ar(oIe=>{"use strict";Object.defineProperty(oIe,"__esModule",{value:!0});var Lcr=G6e(),Rcr=uNe(),Mcr=NNe(),jcr=HNe(),clt=GNe(),Bcr=[Lcr.default,Rcr.default,(0,Mcr.default)(),jcr.default,clt.metadataVocabulary,clt.contentVocabulary];oIe.default=Bcr});var ult=ar((L6r,Ucr)=>{Ucr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var DH=ar((Ip,cIe)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.MissingRefError=Ip.ValidationError=Ip.CodeGen=Ip.Name=Ip.nil=Ip.stringify=Ip.str=Ip._=Ip.KeywordCxt=Ip.Ajv=void 0;var zcr=q6e(),$cr=llt(),Jcr=ZNe(),flt=ult(),Wcr=["/properties"],rle="http://json-schema.org/draft-07/schema",yM=class extends zcr.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),$cr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Jcr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let o=this.opts.$data?this.$dataMetaSchema(flt,Wcr):flt;this.addMetaSchema(o,rle,!1),this.refs["http://json-schema.org/schema"]=rle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rle)?rle:void 0)}};Ip.Ajv=yM;cIe.exports=Ip=yM;cIe.exports.Ajv=yM;Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=yM;var qcr=lM();Object.defineProperty(Ip,"KeywordCxt",{enumerable:!0,get:t(function(){return qcr.KeywordCxt},"get")});var vM=Ec();Object.defineProperty(Ip,"_",{enumerable:!0,get:t(function(){return vM._},"get")});Object.defineProperty(Ip,"str",{enumerable:!0,get:t(function(){return vM.str},"get")});Object.defineProperty(Ip,"stringify",{enumerable:!0,get:t(function(){return vM.stringify},"get")});Object.defineProperty(Ip,"nil",{enumerable:!0,get:t(function(){return vM.nil},"get")});Object.defineProperty(Ip,"Name",{enumerable:!0,get:t(function(){return vM.Name},"get")});Object.defineProperty(Ip,"CodeGen",{enumerable:!0,get:t(function(){return vM.CodeGen},"get")});var Vcr=fH();Object.defineProperty(Ip,"ValidationError",{enumerable:!0,get:t(function(){return Vcr.default},"get")});var Hcr=uM();Object.defineProperty(Ip,"MissingRefError",{enumerable:!0,get:t(function(){return Hcr.default},"get")})});var _lt=ar(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0});bM.formatLimitDefinition=void 0;var Gcr=DH(),kE=Ec(),dI=kE.operators,nle={formatMaximum:{okStr:"<=",ok:dI.LTE,fail:dI.GT},formatMinimum:{okStr:">=",ok:dI.GTE,fail:dI.LT},formatExclusiveMaximum:{okStr:"<",ok:dI.LT,fail:dI.GTE},formatExclusiveMinimum:{okStr:">",ok:dI.GT,fail:dI.LTE}},Ycr={message:t(({keyword:s,schemaCode:o})=>(0,kE.str)`should be ${nle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,kE._)`{comparison: ${nle[s].okStr}, limit: ${o}}`,"params")};bM.formatLimitDefinition={keyword:Object.keys(nle),type:"string",schemaType:"string",$data:!0,error:Ycr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:P,self:F}=x;if(!P.validateFormats)return;let W=new Gcr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Xe=o.const("fmt",(0,kE._)`${se}[${W.schemaCode}]`);s.fail$data((0,kE.or)((0,kE._)`typeof ${Xe} != "object"`,(0,kE._)`${Xe} instanceof RegExp`,(0,kE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:P.code.formats?(0,kE._)`${P.code.formats}${(0,kE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,kE._)`${se}.compare(${f}, ${d}) ${nle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Kcr=t(s=>(s.addKeyword(bM.formatLimitDefinition),s),"formatLimitPlugin");bM.default=Kcr});var hlt=ar((PH,mlt)=>{"use strict";Object.defineProperty(PH,"__esModule",{value:!0});var SM=olt(),Xcr=_lt(),lIe=Ec(),plt=new lIe.Name("fullFormats"),Zcr=new lIe.Name("fastFormats"),uIe=t((s,o={keywords:!0})=>{if(Array.isArray(o))return dlt(s,o,SM.fullFormats,plt),s;let[f,d]=o.mode==="fast"?[SM.fastFormats,Zcr]:[SM.fullFormats,plt],y=o.formats||SM.formatNames;return dlt(s,y,f,d),o.keywords&&(0,Xcr.default)(s),s},"formatsPlugin");uIe.get=(s,o="full")=>{let d=(o==="fast"?SM.fastFormats:SM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function dlt(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,lIe._)`require("ajv-formats/dist/formats").${d}`);for(let P of o)s.addFormat(P,f[P])}t(dlt,"addFormats");mlt.exports=PH=uIe;Object.defineProperty(PH,"__esModule",{value:!0});PH.default=uIe});var ple=ar(TM=>{"use strict";Object.defineProperty(TM,"__esModule",{value:!0});TM.getDeepKeys=TM.toJSON=void 0;var klr=["function","symbol","undefined"],wlr=["constructor","prototype","__proto__"],Dlr=Object.getPrototypeOf({});function Plr(){let s={},o=this;for(let f of Nlt(o))if(typeof f=="string"){let d=o[f],y=typeof d;klr.includes(y)||(s[f]=d)}return s}t(Plr,"toJSON");TM.toJSON=Plr;function Nlt(s,o=[]){let f=[];for(;s&&s!==Dlr;)f=f.concat(Object.getOwnPropertyNames(s),Object.getOwnPropertySymbols(s)),s=Object.getPrototypeOf(s);let d=new Set(f);for(let y of o.concat(wlr))d.delete(y);return d}t(Nlt,"getDeepKeys");TM.getDeepKeys=Nlt});var mIe=ar(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.addInspectMethod=xM.format=void 0;var Ilt=uo("util"),Alr=ple(),Olt=Ilt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");xM.format=Ilt.format;function Nlr(s){s[Olt]=Ilr}t(Nlr,"addInspectMethod");xM.addInspectMethod=Nlr;function Ilr(){let s={},o=this;for(let f of Alr.getDeepKeys(o)){let d=o[f];s[f]=d}return delete s[Olt],s}t(Ilr,"inspect")});var Rlt=ar(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.lazyJoinStacks=Jk.joinStacks=Jk.isWritableStack=Jk.isLazyStack=void 0;var Olr=/\r?\n/,Flr=/\bono[ @]/;function Llr(s){return!!(s&&s.configurable&&typeof s.get=="function")}t(Llr,"isLazyStack");Jk.isLazyStack=Llr;function Rlr(s){return!!(!s||s.writable||typeof s.set=="function")}t(Rlr,"isWritableStack");Jk.isWritableStack=Rlr;function Flt(s,o){let f=Llt(s.stack),d=o?o.stack:void 0;return f&&d?f+`
68
+ deps: ${f}}`,"params")};var par={keyword:"dependencies",type:"object",schemaType:"object",error:Bk.error,code(s){let[o,f]=dar(s);rct(s,o),nct(s,f)}};function dar({schema:s}){let o={},f={};for(let d in s){if(d==="__proto__")continue;let y=Array.isArray(s[d])?o:f;y[d]=s[d]}return[o,f]}t(dar,"splitDependencies");function rct(s,o=s.schema){let{gen:f,data:d,it:y}=s;if(Object.keys(o).length===0)return;let x=f.let("missing");for(let P in o){let F=o[P];if(F.length===0)continue;let W=(0,CH.propertyInData)(f,d,P,y.opts.ownProperties);s.setParams({property:P,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(W,()=>{for(let G of F)(0,CH.checkReportMissingProp)(s,G)}):(f.if((0,gNe._)`${W} && (${(0,CH.checkMissingProp)(s,F,x)})`),(0,CH.reportMissingProp)(s,x),f.else())}}t(rct,"validatePropertyDeps");Bk.validatePropertyDeps=rct;function nct(s,o=s.schema){let{gen:f,data:d,keyword:y,it:x}=s,P=f.name("valid");for(let F in o)(0,_ar.alwaysValidSchema)(x,o[F])||(f.if((0,CH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let W=s.subschema({keyword:y,schemaProp:F},P);s.mergeValidEvaluated(W,P)},()=>f.var(P,!0)),s.ok(P))}t(nct,"validateSchemaDeps");Bk.validateSchemaDeps=nct;Bk.default=par});var sct=ar(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});var ict=Ec(),mar=tu(),har={message:"property name must be valid",params:t(({params:s})=>(0,ict._)`{propertyName: ${s.propertyName}}`,"params")},gar={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:har,code(s){let{gen:o,schema:f,data:d,it:y}=s;if((0,mar.alwaysValidSchema)(y,f))return;let x=o.name("valid");o.forIn("key",d,P=>{s.setParams({propertyName:P}),s.subschema({keyword:"propertyNames",data:P,dataTypes:["string"],propertyName:P,compositeRule:!0},x),o.if((0,ict.not)(x),()=>{s.error(!0),y.allErrors||o.break()})}),s.ok(x)}};yNe.default=gar});var bNe=ar(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});var Yce=mT(),CE=Ec(),yar=dT(),Kce=tu(),bar={message:"must NOT have additional properties",params:t(({params:s})=>(0,CE._)`{additionalProperty: ${s.additionalProperty}}`,"params")},Sar={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:bar,code(s){let{gen:o,schema:f,parentSchema:d,data:y,errsCount:x,it:P}=s;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:W}=P;if(P.props=!0,W.removeAdditional!=="all"&&(0,Kce.alwaysValidSchema)(P,f))return;let G=(0,Yce.allSchemaProperties)(d.properties),be=(0,Yce.allSchemaProperties)(d.patternProperties);de(),s.ok((0,CE._)`${x} === ${yar.default.errors}`);function de(){o.forIn("key",y,Vt=>{!G.length&&!be.length?Ue(Vt):o.if(se(Vt),()=>Ue(Vt))})}t(de,"checkAdditionalProperties");function se(Vt){let Ut;if(G.length>8){let Ir=(0,Kce.schemaRefOrVal)(P,d.properties,"properties");Ut=(0,Yce.isOwnProperty)(o,Ir,Vt)}else G.length?Ut=(0,CE.or)(...G.map(Ir=>(0,CE._)`${Vt} === ${Ir}`)):Ut=CE.nil;return be.length&&(Ut=(0,CE.or)(Ut,...be.map(Ir=>(0,CE._)`${(0,Yce.usePattern)(s,Ir)}.test(${Vt})`))),(0,CE.not)(Ut)}t(se,"isAdditional");function Xe(Vt){o.code((0,CE._)`delete ${y}[${Vt}]`)}t(Xe,"deleteAdditional");function Ue(Vt){if(W.removeAdditional==="all"||W.removeAdditional&&f===!1){Xe(Vt);return}if(f===!1){s.setParams({additionalProperty:Vt}),s.error(),F||o.break();return}if(typeof f=="object"&&!(0,Kce.alwaysValidSchema)(P,f)){let Ut=o.name("valid");W.removeAdditional==="failing"?(je(Vt,Ut,!1),o.if((0,CE.not)(Ut),()=>{s.reset(),Xe(Vt)})):(je(Vt,Ut),F||o.if((0,CE.not)(Ut),()=>o.break()))}}t(Ue,"additionalPropertyCode");function je(Vt,Ut,Ir){let wn={keyword:"additionalProperties",dataProp:Vt,dataPropType:Kce.Type.Str};Ir===!1&&Object.assign(wn,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(wn,Ut)}t(je,"applyAdditionalSchema")}};vNe.default=Sar});var cct=ar(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});var Tar=lM(),act=mT(),SNe=tu(),oct=bNe(),xar={keyword:"properties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&oct.default.code(new Tar.KeywordCxt(x,oct.default,"additionalProperties"));let P=(0,act.allSchemaProperties)(f);for(let de of P)x.definedProperties.add(de);x.opts.unevaluated&&P.length&&x.props!==!0&&(x.props=SNe.mergeEvaluated.props(o,(0,SNe.toHash)(P),x.props));let F=P.filter(de=>!(0,SNe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let W=o.name("valid");for(let de of F)G(de)?be(de):(o.if((0,act.propertyInData)(o,y,de,x.opts.ownProperties)),be(de),x.allErrors||o.else().var(W,!0),o.endIf()),s.it.definedProperties.add(de),s.ok(W);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function be(de){s.subschema({keyword:"properties",schemaProp:de,dataProp:de},W)}t(be,"applyPropertySchema")}};TNe.default=xar});var _ct=ar(xNe=>{"use strict";Object.defineProperty(xNe,"__esModule",{value:!0});var lct=mT(),Xce=Ec(),uct=tu(),fct=tu(),Ear={keyword:"patternProperties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,data:d,parentSchema:y,it:x}=s,{opts:P}=x,F=(0,lct.allSchemaProperties)(f),W=F.filter(je=>(0,uct.alwaysValidSchema)(x,f[je]));if(F.length===0||W.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=P.strictSchema&&!P.allowMatchingProperties&&y.properties,be=o.name("valid");x.props!==!0&&!(x.props instanceof Xce.Name)&&(x.props=(0,fct.evaluatedPropsToName)(o,x.props));let{props:de}=x;se();function se(){for(let je of F)G&&Xe(je),x.allErrors?Ue(je):(o.var(be,!0),Ue(je),o.if(be))}t(se,"validatePatternProperties");function Xe(je){for(let Vt in G)new RegExp(je).test(Vt)&&(0,uct.checkStrictMode)(x,`property ${Vt} matches pattern ${je} (use allowMatchingProperties)`)}t(Xe,"checkMatchingProperties");function Ue(je){o.forIn("key",d,Vt=>{o.if((0,Xce._)`${(0,lct.usePattern)(s,je)}.test(${Vt})`,()=>{let Ut=W.includes(je);Ut||s.subschema({keyword:"patternProperties",schemaProp:je,dataProp:Vt,dataPropType:fct.Type.Str},be),x.opts.unevaluated&&de!==!0?o.assign((0,Xce._)`${de}[${Vt}]`,!0):!Ut&&!x.allErrors&&o.if((0,Xce.not)(be),()=>o.break())})})}t(Ue,"validateProperties")}};xNe.default=Ear});var pct=ar(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});var Car=tu(),kar={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(s){let{gen:o,schema:f,it:d}=s;if((0,Car.alwaysValidSchema)(d,f)){s.fail();return}let y=o.name("valid");s.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),s.failResult(y,()=>s.reset(),()=>s.error())},error:{message:"must NOT be valid"}};ENe.default=kar});var dct=ar(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});var war=mT(),Dar={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:war.validateUnion,error:{message:"must match a schema in anyOf"}};CNe.default=Dar});var mct=ar(kNe=>{"use strict";Object.defineProperty(kNe,"__esModule",{value:!0});var Zce=Ec(),Par=tu(),Aar={message:"must match exactly one schema in oneOf",params:t(({params:s})=>(0,Zce._)`{passingSchemas: ${s.passing}}`,"params")},Nar={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Aar,code(s){let{gen:o,schema:f,parentSchema:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,P=o.let("valid",!1),F=o.let("passing",null),W=o.name("_valid");s.setParams({passing:F}),o.block(G),s.result(P,()=>s.reset(),()=>s.error(!0));function G(){x.forEach((be,de)=>{let se;(0,Par.alwaysValidSchema)(y,be)?o.var(W,!0):se=s.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},W),de>0&&o.if((0,Zce._)`${W} && ${P}`).assign(P,!1).assign(F,(0,Zce._)`[${F}, ${de}]`).else(),o.if(W,()=>{o.assign(P,!0),o.assign(F,de),se&&s.mergeEvaluated(se,Zce.Name)})})}t(G,"validateOneOf")}};kNe.default=Nar});var hct=ar(wNe=>{"use strict";Object.defineProperty(wNe,"__esModule",{value:!0});var Iar=tu(),Oar={keyword:"allOf",schemaType:"array",code(s){let{gen:o,schema:f,it:d}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=o.name("valid");f.forEach((x,P)=>{if((0,Iar.alwaysValidSchema)(d,x))return;let F=s.subschema({keyword:"allOf",schemaProp:P},y);s.ok(y),s.mergeEvaluated(F)})}};wNe.default=Oar});var vct=ar(DNe=>{"use strict";Object.defineProperty(DNe,"__esModule",{value:!0});var Qce=Ec(),yct=tu(),Far={message:t(({params:s})=>(0,Qce.str)`must match "${s.ifClause}" schema`,"message"),params:t(({params:s})=>(0,Qce._)`{failingKeyword: ${s.ifClause}}`,"params")},Lar={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Far,code(s){let{gen:o,parentSchema:f,it:d}=s;f.then===void 0&&f.else===void 0&&(0,yct.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=gct(d,"then"),x=gct(d,"else");if(!y&&!x)return;let P=o.let("valid",!0),F=o.name("_valid");if(W(),s.reset(),y&&x){let be=o.let("ifClause");s.setParams({ifClause:be}),o.if(F,G("then",be),G("else",be))}else y?o.if(F,G("then")):o.if((0,Qce.not)(F),G("else"));s.pass(P,()=>s.error(!0));function W(){let be=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);s.mergeEvaluated(be)}t(W,"validateIf");function G(be,de){return()=>{let se=s.subschema({keyword:be},F);o.assign(P,F),s.mergeValidEvaluated(se,P),de?o.assign(de,(0,Qce._)`${be}`):s.setParams({ifClause:be})}}t(G,"validateClause")}};function gct(s,o){let f=s.schema[o];return f!==void 0&&!(0,yct.alwaysValidSchema)(s,f)}t(gct,"hasSchema");DNe.default=Lar});var bct=ar(PNe=>{"use strict";Object.defineProperty(PNe,"__esModule",{value:!0});var Rar=tu(),Mar={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:s,parentSchema:o,it:f}){o.if===void 0&&(0,Rar.checkStrictMode)(f,`"${s}" without "if" is ignored`)}};PNe.default=Mar});var NNe=ar(ANe=>{"use strict";Object.defineProperty(ANe,"__esModule",{value:!0});var jar=_Ne(),Bar=Zot(),Uar=pNe(),zar=ect(),$ar=tct(),Jar=Gce(),War=sct(),qar=bNe(),Var=cct(),Har=_ct(),Gar=pct(),Yar=dct(),Kar=mct(),Xar=hct(),Zar=vct(),Qar=bct();function eor(s=!1){let o=[Gar.default,Yar.default,Kar.default,Xar.default,Zar.default,Qar.default,War.default,qar.default,Jar.default,Var.default,Har.default];return s?o.push(Bar.default,zar.default):o.push(jar.default,Uar.default),o.push($ar.default),o}t(eor,"getApplicator");ANe.default=eor});var ONe=ar(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.dynamicAnchor=void 0;var INe=Ec(),tor=dT(),Sct=_H(),ror=zce(),nor={keyword:"$dynamicAnchor",schemaType:"string",code:t(s=>Tct(s,s.schema),"code")};function Tct(s,o){let{gen:f,it:d}=s;d.schemaEnv.root.dynamicAnchors[o]=!0;let y=(0,INe._)`${tor.default.dynamicAnchors}${(0,INe.getProperty)(o)}`,x=d.errSchemaPath==="#"?d.validateName:ior(s);f.if((0,INe._)`!${y}`,()=>f.assign(y,x))}t(Tct,"dynamicAnchor");kH.dynamicAnchor=Tct;function ior(s){let{schemaEnv:o,schema:f,self:d}=s.it,{root:y,baseId:x,localRefs:P,meta:F}=o.root,{schemaId:W}=d.opts,G=new Sct.SchemaEnv({schema:f,schemaId:W,root:y,baseId:x,localRefs:P,meta:F});return Sct.compileSchema.call(d,G),(0,ror.getValidate)(s,G)}t(ior,"_getValidate");kH.default=nor});var FNe=ar(wH=>{"use strict";Object.defineProperty(wH,"__esModule",{value:!0});wH.dynamicRef=void 0;var xct=Ec(),sor=dT(),Ect=zce(),aor={keyword:"$dynamicRef",schemaType:"string",code:t(s=>Cct(s,s.schema),"code")};function Cct(s,o){let{gen:f,keyword:d,it:y}=s;if(o[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=o.slice(1);if(y.allErrors)P();else{let W=f.let("valid",!1);P(W),s.ok(W)}function P(W){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,xct._)`${sor.default.dynamicAnchors}${(0,xct.getProperty)(x)}`);f.if(G,F(G,W),F(y.validateName,W))}else F(y.validateName,W)()}t(P,"_dynamicRef");function F(W,G){return G?()=>f.block(()=>{(0,Ect.callRef)(s,W),f.let(G,!0)}):()=>(0,Ect.callRef)(s,W)}t(F,"_callRef")}t(Cct,"dynamicRef");wH.dynamicRef=Cct;wH.default=aor});var kct=ar(LNe=>{"use strict";Object.defineProperty(LNe,"__esModule",{value:!0});var oor=ONe(),cor=tu(),lor={keyword:"$recursiveAnchor",schemaType:"boolean",code(s){s.schema?(0,oor.dynamicAnchor)(s,""):(0,cor.checkStrictMode)(s.it,"$recursiveAnchor: false is ignored")}};LNe.default=lor});var wct=ar(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});var uor=FNe(),_or={keyword:"$recursiveRef",schemaType:"string",code:t(s=>(0,uor.dynamicRef)(s,s.schema),"code")};RNe.default=_or});var Dct=ar(MNe=>{"use strict";Object.defineProperty(MNe,"__esModule",{value:!0});var por=ONe(),dor=FNe(),mor=kct(),hor=wct(),gor=[por.default,dor.default,mor.default,hor.default];MNe.default=gor});var Act=ar(jNe=>{"use strict";Object.defineProperty(jNe,"__esModule",{value:!0});var Pct=Gce(),yor={keyword:"dependentRequired",type:"object",schemaType:"object",error:Pct.error,code:t(s=>(0,Pct.validatePropertyDeps)(s),"code")};jNe.default=yor});var Nct=ar(BNe=>{"use strict";Object.defineProperty(BNe,"__esModule",{value:!0});var vor=Gce(),bor={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(s=>(0,vor.validateSchemaDeps)(s),"code")};BNe.default=bor});var Ict=ar(UNe=>{"use strict";Object.defineProperty(UNe,"__esModule",{value:!0});var Sor=tu(),Tor={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:s,parentSchema:o,it:f}){o.contains===void 0&&(0,Sor.checkStrictMode)(f,`"${s}" without "contains" is ignored`)}};UNe.default=Tor});var Oct=ar(zNe=>{"use strict";Object.defineProperty(zNe,"__esModule",{value:!0});var xor=Act(),Eor=Nct(),Cor=Ict(),kor=[xor.default,Eor.default,Cor.default];zNe.default=kor});var Lct=ar($Ne=>{"use strict";Object.defineProperty($Ne,"__esModule",{value:!0});var pI=Ec(),Fct=tu(),wor=dT(),Dor={message:"must NOT have unevaluated properties",params:t(({params:s})=>(0,pI._)`{unevaluatedProperty: ${s.unevaluatedProperty}}`,"params")},Por={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Dor,code(s){let{gen:o,schema:f,data:d,errsCount:y,it:x}=s;if(!y)throw new Error("ajv implementation error");let{allErrors:P,props:F}=x;F instanceof pI.Name?o.if((0,pI._)`${F} !== true`,()=>o.forIn("key",d,de=>o.if(G(F,de),()=>W(de)))):F!==!0&&o.forIn("key",d,de=>F===void 0?W(de):o.if(be(F,de),()=>W(de))),x.props=!0,s.ok((0,pI._)`${y} === ${wor.default.errors}`);function W(de){if(f===!1){s.setParams({unevaluatedProperty:de}),s.error(),P||o.break();return}if(!(0,Fct.alwaysValidSchema)(x,f)){let se=o.name("valid");s.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:Fct.Type.Str},se),P||o.if((0,pI.not)(se),()=>o.break())}}t(W,"unevaluatedPropCode");function G(de,se){return(0,pI._)`!${de} || !${de}[${se}]`}t(G,"unevaluatedDynamic");function be(de,se){let Xe=[];for(let Ue in de)de[Ue]===!0&&Xe.push((0,pI._)`${se} !== ${Ue}`);return(0,pI.and)(...Xe)}t(be,"unevaluatedStatic")}};$Ne.default=Por});var Mct=ar(JNe=>{"use strict";Object.defineProperty(JNe,"__esModule",{value:!0});var FO=Ec(),Rct=tu(),Aor={message:t(({params:{len:s}})=>(0,FO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,FO._)`{limit: ${s}}`,"params")},Nor={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Aor,code(s){let{gen:o,schema:f,data:d,it:y}=s,x=y.items||0;if(x===!0)return;let P=o.const("len",(0,FO._)`${d}.length`);if(f===!1)s.setParams({len:x}),s.fail((0,FO._)`${P} > ${x}`);else if(typeof f=="object"&&!(0,Rct.alwaysValidSchema)(y,f)){let W=o.var("valid",(0,FO._)`${P} <= ${x}`);o.if((0,FO.not)(W),()=>F(W,x)),s.ok(W)}y.items=!0;function F(W,G){o.forRange("i",G,P,be=>{s.subschema({keyword:"unevaluatedItems",dataProp:be,dataPropType:Rct.Type.Num},W),y.allErrors||o.if((0,FO.not)(W),()=>o.break())})}t(F,"validateItems")}};JNe.default=Nor});var jct=ar(WNe=>{"use strict";Object.defineProperty(WNe,"__esModule",{value:!0});var Ior=Lct(),Oor=Mct(),For=[Ior.default,Oor.default];WNe.default=For});var Bct=ar(qNe=>{"use strict";Object.defineProperty(qNe,"__esModule",{value:!0});var km=Ec(),Lor={message:t(({schemaCode:s})=>(0,km.str)`must match format "${s}"`,"message"),params:t(({schemaCode:s})=>(0,km._)`{format: ${s}}`,"params")},Ror={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Lor,code(s,o){let{gen:f,data:d,$data:y,schema:x,schemaCode:P,it:F}=s,{opts:W,errSchemaPath:G,schemaEnv:be,self:de}=F;if(!W.validateFormats)return;y?se():Xe();function se(){let Ue=f.scopeValue("formats",{ref:de.formats,code:W.code.formats}),je=f.const("fDef",(0,km._)`${Ue}[${P}]`),Vt=f.let("fType"),Ut=f.let("format");f.if((0,km._)`typeof ${je} == "object" && !(${je} instanceof RegExp)`,()=>f.assign(Vt,(0,km._)`${je}.type || "string"`).assign(Ut,(0,km._)`${je}.validate`),()=>f.assign(Vt,(0,km._)`"string"`).assign(Ut,je)),s.fail$data((0,km.or)(Ir(),wn()));function Ir(){return W.strictSchema===!1?km.nil:(0,km._)`${P} && !${Ut}`}t(Ir,"unknownFmt");function wn(){let sn=be.$async?(0,km._)`(${je}.async ? await ${Ut}(${d}) : ${Ut}(${d}))`:(0,km._)`${Ut}(${d})`,Jn=(0,km._)`(typeof ${Ut} == "function" ? ${sn} : ${Ut}.test(${d}))`;return(0,km._)`${Ut} && ${Ut} !== true && ${Vt} === ${o} && !${Jn}`}t(wn,"invalidFmt")}t(se,"validate$DataFormat");function Xe(){let Ue=de.formats[x];if(!Ue){Ir();return}if(Ue===!0)return;let[je,Vt,Ut]=wn(Ue);je===o&&s.pass(sn());function Ir(){if(W.strictSchema===!1){de.logger.warn(Jn());return}throw new Error(Jn());function Jn(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Ir,"unknownFormat");function wn(Jn){let kr=Jn instanceof RegExp?(0,km.regexpCode)(Jn):W.code.formats?(0,km._)`${W.code.formats}${(0,km.getProperty)(x)}`:void 0,yr=f.scopeValue("formats",{key:x,ref:Jn,code:kr});return typeof Jn=="object"&&!(Jn instanceof RegExp)?[Jn.type||"string",Jn.validate,(0,km._)`${yr}.validate`]:["string",Jn,yr]}t(wn,"getFormat");function sn(){if(typeof Ue=="object"&&!(Ue instanceof RegExp)&&Ue.async){if(!be.$async)throw new Error("async format in sync schema");return(0,km._)`await ${Ut}(${d})`}return typeof Vt=="function"?(0,km._)`${Ut}(${d})`:(0,km._)`${Ut}.test(${d})`}t(sn,"validCondition")}t(Xe,"validateFormat")}};qNe.default=Ror});var HNe=ar(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});var Mor=Bct(),jor=[Mor.default];VNe.default=jor});var GNe=ar(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.contentVocabulary=dM.metadataVocabulary=void 0;dM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var zct=ar(YNe=>{"use strict";Object.defineProperty(YNe,"__esModule",{value:!0});var Bor=G6e(),Uor=uNe(),zor=NNe(),$or=Dct(),Jor=Oct(),Wor=jct(),qor=HNe(),Uct=GNe(),Vor=[$or.default,Bor.default,Uor.default,(0,zor.default)(!0),qor.default,Uct.metadataVocabulary,Uct.contentVocabulary,Jor.default,Wor.default];YNe.default=Vor});var Jct=ar(ele=>{"use strict";Object.defineProperty(ele,"__esModule",{value:!0});ele.DiscrError=void 0;var $ct;(function(s){s.Tag="tag",s.Mapping="mapping"})($ct||(ele.DiscrError=$ct={}))});var ZNe=ar(XNe=>{"use strict";Object.defineProperty(XNe,"__esModule",{value:!0});var mM=Ec(),KNe=Jct(),Wct=_H(),Hor=uM(),Gor=tu(),Yor={message:t(({params:{discrError:s,tagName:o}})=>s===KNe.DiscrError.Tag?`tag "${o}" must be string`:`value of tag "${o}" must be in oneOf`,"message"),params:t(({params:{discrError:s,tag:o,tagName:f}})=>(0,mM._)`{error: ${s}, tag: ${f}, tagValue: ${o}}`,"params")},Kor={keyword:"discriminator",type:"object",schemaType:"object",error:Yor,code(s){let{gen:o,data:f,schema:d,parentSchema:y,it:x}=s,{oneOf:P}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!P)throw new Error("discriminator: requires oneOf keyword");let W=o.let("valid",!1),G=o.const("tag",(0,mM._)`${f}${(0,mM.getProperty)(F)}`);o.if((0,mM._)`typeof ${G} == "string"`,()=>be(),()=>s.error(!1,{discrError:KNe.DiscrError.Tag,tag:G,tagName:F})),s.ok(W);function be(){let Xe=se();o.if(!1);for(let Ue in Xe)o.elseIf((0,mM._)`${G} === ${Ue}`),o.assign(W,de(Xe[Ue]));o.else(),s.error(!1,{discrError:KNe.DiscrError.Mapping,tag:G,tagName:F}),o.endIf()}t(be,"validateMapping");function de(Xe){let Ue=o.name("valid"),je=s.subschema({keyword:"oneOf",schemaProp:Xe},Ue);return s.mergeEvaluated(je,mM.Name),Ue}t(de,"applyTagSchema");function se(){var Xe;let Ue={},je=Ut(y),Vt=!0;for(let sn=0;sn<P.length;sn++){let Jn=P[sn];if(Jn?.$ref&&!(0,Gor.schemaHasRulesButRef)(Jn,x.self.RULES)){let yr=Jn.$ref;if(Jn=Wct.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,yr),Jn instanceof Wct.SchemaEnv&&(Jn=Jn.schema),Jn===void 0)throw new Hor.default(x.opts.uriResolver,x.baseId,yr)}let kr=(Xe=Jn?.properties)===null||Xe===void 0?void 0:Xe[F];if(typeof kr!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Vt=Vt&&(je||Ut(Jn)),Ir(kr,sn)}if(!Vt)throw new Error(`discriminator: "${F}" must be required`);return Ue;function Ut({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Ir(sn,Jn){if(sn.const)wn(sn.const,Jn);else if(sn.enum)for(let kr of sn.enum)wn(kr,Jn);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function wn(sn,Jn){if(typeof sn!="string"||sn in Ue)throw new Error(`discriminator: "${F}" values must be unique strings`);Ue[sn]=Jn}}t(se,"getMapping")}};XNe.default=Kor});var qct=ar((T6r,Xor)=>{Xor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Vct=ar((x6r,Zor)=>{Zor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Hct=ar((E6r,Qor)=>{Qor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Gct=ar((C6r,ecr)=>{ecr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Yct=ar((k6r,tcr)=>{tcr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Kct=ar((w6r,rcr)=>{rcr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Xct=ar((D6r,ncr)=>{ncr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Zct=ar((P6r,icr)=>{icr.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Qct=ar(QNe=>{"use strict";Object.defineProperty(QNe,"__esModule",{value:!0});var scr=qct(),acr=Vct(),ocr=Hct(),ccr=Gct(),lcr=Yct(),ucr=Kct(),fcr=Xct(),_cr=Zct(),pcr=["/properties"];function dcr(s){return[scr,acr,ocr,ccr,lcr,o(this,ucr),fcr,o(this,_cr)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function o(f,d){return s?f.$dataMetaSchema(d,pcr):d}t(o,"with$data")}t(dcr,"addMetaSchema2020");QNe.default=dcr});var tle=ar((Np,tIe)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.MissingRefError=Np.ValidationError=Np.CodeGen=Np.Name=Np.nil=Np.stringify=Np.str=Np._=Np.KeywordCxt=Np.Ajv2020=void 0;var mcr=q6e(),hcr=zct(),gcr=ZNe(),ycr=Qct(),eIe="https://json-schema.org/draft/2020-12/schema",hM=class extends mcr.default{static{t(this,"Ajv2020")}constructor(o={}){super({...o,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),hcr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(gcr.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:o,meta:f}=this.opts;f&&(ycr.default.call(this,o),this.refs["http://json-schema.org/schema"]=eIe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(eIe)?eIe:void 0)}};Np.Ajv2020=hM;tIe.exports=Np=hM;tIe.exports.Ajv2020=hM;Object.defineProperty(Np,"__esModule",{value:!0});Np.default=hM;var vcr=lM();Object.defineProperty(Np,"KeywordCxt",{enumerable:!0,get:t(function(){return vcr.KeywordCxt},"get")});var gM=Ec();Object.defineProperty(Np,"_",{enumerable:!0,get:t(function(){return gM._},"get")});Object.defineProperty(Np,"str",{enumerable:!0,get:t(function(){return gM.str},"get")});Object.defineProperty(Np,"stringify",{enumerable:!0,get:t(function(){return gM.stringify},"get")});Object.defineProperty(Np,"nil",{enumerable:!0,get:t(function(){return gM.nil},"get")});Object.defineProperty(Np,"Name",{enumerable:!0,get:t(function(){return gM.Name},"get")});Object.defineProperty(Np,"CodeGen",{enumerable:!0,get:t(function(){return gM.CodeGen},"get")});var bcr=fH();Object.defineProperty(Np,"ValidationError",{enumerable:!0,get:t(function(){return bcr.default},"get")});var Scr=uM();Object.defineProperty(Np,"MissingRefError",{enumerable:!0,get:t(function(){return Scr.default},"get")})});var olt=ar(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.formatNames=zk.fastFormats=zk.fullFormats=void 0;function Uk(s,o){return{validate:s,compare:o}}t(Uk,"fmtDef");zk.fullFormats={date:Uk(nlt,sIe),time:Uk(nIe(!0),aIe),"date-time":Uk(elt(!0),slt),"iso-time":Uk(nIe(),ilt),"iso-date-time":Uk(elt(),alt),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:wcr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Fcr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Dcr,int32:{type:"number",validate:Ncr},int64:{type:"number",validate:Icr},float:{type:"number",validate:rlt},double:{type:"number",validate:rlt},password:!0,binary:!0};zk.fastFormats={...zk.fullFormats,date:Uk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,sIe),time:Uk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aIe),"date-time":Uk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,slt),"iso-time":Uk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ilt),"iso-date-time":Uk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,alt),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};zk.formatNames=Object.keys(zk.fullFormats);function Tcr(s){return s%4===0&&(s%100!==0||s%400===0)}t(Tcr,"isLeapYear");var xcr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Ecr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function nlt(s){let o=xcr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Tcr(f)?29:Ecr[d])}t(nlt,"date");function sIe(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(sIe,"compareDate");var rIe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function nIe(s){return t(function(f){let d=rIe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&P<61},"time")}t(nIe,"getTime");function aIe(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(aIe,"compareTime");function ilt(s,o){if(!(s&&o))return;let f=rIe.exec(s),d=rIe.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(ilt,"compareIsoTime");var iIe=/t|\s/i;function elt(s){let o=nIe(s);return t(function(d){let y=d.split(iIe);return y.length===2&&nlt(y[0])&&o(y[1])},"date_time")}t(elt,"getDateTime");function slt(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(slt,"compareDateTime");function alt(s,o){if(!(s&&o))return;let[f,d]=s.split(iIe),[y,x]=o.split(iIe),P=sIe(f,y);if(P!==void 0)return P||aIe(d,x)}t(alt,"compareIsoDateTime");var Ccr=/\/|:/,kcr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function wcr(s){return Ccr.test(s)&&kcr.test(s)}t(wcr,"uri");var tlt=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function Dcr(s){return tlt.lastIndex=0,tlt.test(s)}t(Dcr,"byte");var Pcr=-(2**31),Acr=2**31-1;function Ncr(s){return Number.isInteger(s)&&s<=Acr&&s>=Pcr}t(Ncr,"validateInt32");function Icr(s){return Number.isInteger(s)}t(Icr,"validateInt64");function rlt(){return!0}t(rlt,"validateNumber");var Ocr=/[^\\]\\Z/;function Fcr(s){if(Ocr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(Fcr,"regex")});var llt=ar(oIe=>{"use strict";Object.defineProperty(oIe,"__esModule",{value:!0});var Lcr=G6e(),Rcr=uNe(),Mcr=NNe(),jcr=HNe(),clt=GNe(),Bcr=[Lcr.default,Rcr.default,(0,Mcr.default)(),jcr.default,clt.metadataVocabulary,clt.contentVocabulary];oIe.default=Bcr});var ult=ar((R6r,Ucr)=>{Ucr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var DH=ar((Ip,cIe)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.MissingRefError=Ip.ValidationError=Ip.CodeGen=Ip.Name=Ip.nil=Ip.stringify=Ip.str=Ip._=Ip.KeywordCxt=Ip.Ajv=void 0;var zcr=q6e(),$cr=llt(),Jcr=ZNe(),flt=ult(),Wcr=["/properties"],rle="http://json-schema.org/draft-07/schema",yM=class extends zcr.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),$cr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Jcr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let o=this.opts.$data?this.$dataMetaSchema(flt,Wcr):flt;this.addMetaSchema(o,rle,!1),this.refs["http://json-schema.org/schema"]=rle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rle)?rle:void 0)}};Ip.Ajv=yM;cIe.exports=Ip=yM;cIe.exports.Ajv=yM;Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=yM;var qcr=lM();Object.defineProperty(Ip,"KeywordCxt",{enumerable:!0,get:t(function(){return qcr.KeywordCxt},"get")});var vM=Ec();Object.defineProperty(Ip,"_",{enumerable:!0,get:t(function(){return vM._},"get")});Object.defineProperty(Ip,"str",{enumerable:!0,get:t(function(){return vM.str},"get")});Object.defineProperty(Ip,"stringify",{enumerable:!0,get:t(function(){return vM.stringify},"get")});Object.defineProperty(Ip,"nil",{enumerable:!0,get:t(function(){return vM.nil},"get")});Object.defineProperty(Ip,"Name",{enumerable:!0,get:t(function(){return vM.Name},"get")});Object.defineProperty(Ip,"CodeGen",{enumerable:!0,get:t(function(){return vM.CodeGen},"get")});var Vcr=fH();Object.defineProperty(Ip,"ValidationError",{enumerable:!0,get:t(function(){return Vcr.default},"get")});var Hcr=uM();Object.defineProperty(Ip,"MissingRefError",{enumerable:!0,get:t(function(){return Hcr.default},"get")})});var _lt=ar(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0});bM.formatLimitDefinition=void 0;var Gcr=DH(),kE=Ec(),dI=kE.operators,nle={formatMaximum:{okStr:"<=",ok:dI.LTE,fail:dI.GT},formatMinimum:{okStr:">=",ok:dI.GTE,fail:dI.LT},formatExclusiveMaximum:{okStr:"<",ok:dI.LT,fail:dI.GTE},formatExclusiveMinimum:{okStr:">",ok:dI.GT,fail:dI.LTE}},Ycr={message:t(({keyword:s,schemaCode:o})=>(0,kE.str)`should be ${nle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,kE._)`{comparison: ${nle[s].okStr}, limit: ${o}}`,"params")};bM.formatLimitDefinition={keyword:Object.keys(nle),type:"string",schemaType:"string",$data:!0,error:Ycr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:P,self:F}=x;if(!P.validateFormats)return;let W=new Gcr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Xe=o.const("fmt",(0,kE._)`${se}[${W.schemaCode}]`);s.fail$data((0,kE.or)((0,kE._)`typeof ${Xe} != "object"`,(0,kE._)`${Xe} instanceof RegExp`,(0,kE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:P.code.formats?(0,kE._)`${P.code.formats}${(0,kE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,kE._)`${se}.compare(${f}, ${d}) ${nle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Kcr=t(s=>(s.addKeyword(bM.formatLimitDefinition),s),"formatLimitPlugin");bM.default=Kcr});var hlt=ar((PH,mlt)=>{"use strict";Object.defineProperty(PH,"__esModule",{value:!0});var SM=olt(),Xcr=_lt(),lIe=Ec(),plt=new lIe.Name("fullFormats"),Zcr=new lIe.Name("fastFormats"),uIe=t((s,o={keywords:!0})=>{if(Array.isArray(o))return dlt(s,o,SM.fullFormats,plt),s;let[f,d]=o.mode==="fast"?[SM.fastFormats,Zcr]:[SM.fullFormats,plt],y=o.formats||SM.formatNames;return dlt(s,y,f,d),o.keywords&&(0,Xcr.default)(s),s},"formatsPlugin");uIe.get=(s,o="full")=>{let d=(o==="fast"?SM.fastFormats:SM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function dlt(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,lIe._)`require("ajv-formats/dist/formats").${d}`);for(let P of o)s.addFormat(P,f[P])}t(dlt,"addFormats");mlt.exports=PH=uIe;Object.defineProperty(PH,"__esModule",{value:!0});PH.default=uIe});var ple=ar(TM=>{"use strict";Object.defineProperty(TM,"__esModule",{value:!0});TM.getDeepKeys=TM.toJSON=void 0;var klr=["function","symbol","undefined"],wlr=["constructor","prototype","__proto__"],Dlr=Object.getPrototypeOf({});function Plr(){let s={},o=this;for(let f of Nlt(o))if(typeof f=="string"){let d=o[f],y=typeof d;klr.includes(y)||(s[f]=d)}return s}t(Plr,"toJSON");TM.toJSON=Plr;function Nlt(s,o=[]){let f=[];for(;s&&s!==Dlr;)f=f.concat(Object.getOwnPropertyNames(s),Object.getOwnPropertySymbols(s)),s=Object.getPrototypeOf(s);let d=new Set(f);for(let y of o.concat(wlr))d.delete(y);return d}t(Nlt,"getDeepKeys");TM.getDeepKeys=Nlt});var mIe=ar(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.addInspectMethod=xM.format=void 0;var Ilt=uo("util"),Alr=ple(),Olt=Ilt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");xM.format=Ilt.format;function Nlr(s){s[Olt]=Ilr}t(Nlr,"addInspectMethod");xM.addInspectMethod=Nlr;function Ilr(){let s={},o=this;for(let f of Alr.getDeepKeys(o)){let d=o[f];s[f]=d}return delete s[Olt],s}t(Ilr,"inspect")});var Rlt=ar(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.lazyJoinStacks=Jk.joinStacks=Jk.isWritableStack=Jk.isLazyStack=void 0;var Olr=/\r?\n/,Flr=/\bono[ @]/;function Llr(s){return!!(s&&s.configurable&&typeof s.get=="function")}t(Llr,"isLazyStack");Jk.isLazyStack=Llr;function Rlr(s){return!!(!s||s.writable||typeof s.set=="function")}t(Rlr,"isWritableStack");Jk.isWritableStack=Rlr;function Flt(s,o){let f=Llt(s.stack),d=o?o.stack:void 0;return f&&d?f+`
69
69
 
70
70
  `+d:f||d}t(Flt,"joinStacks");Jk.joinStacks=Flt;function Mlr(s,o,f){f?Object.defineProperty(o,"stack",{get:t(()=>{let d=s.get.apply(o);return Flt({stack:d},f)},"get"),enumerable:!1,configurable:!0}):jlr(o,s)}t(Mlr,"lazyJoinStacks");Jk.lazyJoinStacks=Mlr;function Llt(s){if(s){let o=s.split(Olr),f;for(let d=0;d<o.length;d++){let y=o[d];if(Flr.test(y))f===void 0&&(f=d);else if(f!==void 0){o.splice(f,d-f);break}}if(o.length>0)return o.join(`
71
71
  `)}return s}t(Llt,"popStack");function jlr(s,o){Object.defineProperty(s,"stack",{get:t(()=>Llt(o.get.apply(s)),"get"),enumerable:!1,configurable:!0})}t(jlr,"lazyPopStack")});var Blt=ar(mle=>{"use strict";Object.defineProperty(mle,"__esModule",{value:!0});mle.extendError=void 0;var Mlt=mIe(),dle=Rlt(),jlt=ple(),Blr=["name","message","stack"];function Ulr(s,o,f){let d=s;return zlr(d,o),o&&typeof o=="object"&&$lr(d,o),d.toJSON=jlt.toJSON,Mlt.addInspectMethod&&Mlt.addInspectMethod(d),f&&typeof f=="object"&&Object.assign(d,f),d}t(Ulr,"extendError");mle.extendError=Ulr;function zlr(s,o){let f=Object.getOwnPropertyDescriptor(s,"stack");dle.isLazyStack(f)?dle.lazyJoinStacks(f,s,o):dle.isWritableStack(f)&&(s.stack=dle.joinStacks(s,o))}t(zlr,"extendStack");function $lr(s,o){let f=jlt.getDeepKeys(o,Blr),d=s,y=o;for(let x of f)if(d[x]===void 0)try{d[x]=y[x]}catch{}}t($lr,"mergeErrors")});var Ult=ar(EM=>{"use strict";Object.defineProperty(EM,"__esModule",{value:!0});EM.normalizeArgs=EM.normalizeOptions=void 0;var Jlr=mIe();function Wlr(s){return s=s||{},{concatMessages:s.concatMessages===void 0?!0:!!s.concatMessages,format:s.format===void 0?Jlr.format:typeof s.format=="function"?s.format:!1}}t(Wlr,"normalizeOptions");EM.normalizeOptions=Wlr;function qlr(s,o){let f,d,y,x="";return typeof s[0]=="string"?y=s:typeof s[1]=="string"?(s[0]instanceof Error?f=s[0]:d=s[0],y=s.slice(1)):(f=s[0],d=s[1],y=s.slice(2)),y.length>0&&(o.format?x=o.format.apply(void 0,y):x=y.join(" ")),o.concatMessages&&f&&f.message&&(x+=(x?`
72
- `:"")+f.message),{originalError:f,props:d,message:x}}t(qlr,"normalizeArgs");EM.normalizeArgs=qlr});var gIe=ar(gle=>{"use strict";Object.defineProperty(gle,"__esModule",{value:!0});gle.Ono=void 0;var hle=Blt(),zlt=Ult(),Vlr=ple(),Hlr=hIe;gle.Ono=Hlr;function hIe(s,o){o=zlt.normalizeOptions(o);function f(...d){let{originalError:y,props:x,message:P}=zlt.normalizeArgs(d,o),F=new s(P);return hle.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=s,f}t(hIe,"Ono");hIe.toJSON=t(function(o){return Vlr.toJSON.call(o)},"toJSON");hIe.extend=t(function(o,f,d){return d||f instanceof Error?hle.extendError(o,f,d):f?hle.extendError(o,void 0,f):hle.extendError(o)},"extend")});var $lt=ar(yle=>{"use strict";Object.defineProperty(yle,"__esModule",{value:!0});yle.ono=void 0;var LO=gIe(),Glr=Wk;yle.ono=Glr;Wk.error=new LO.Ono(Error);Wk.eval=new LO.Ono(EvalError);Wk.range=new LO.Ono(RangeError);Wk.reference=new LO.Ono(ReferenceError);Wk.syntax=new LO.Ono(SyntaxError);Wk.type=new LO.Ono(TypeError);Wk.uri=new LO.Ono(URIError);var Ylr=Wk;function Wk(...s){let o=s[0];if(typeof o=="object"&&typeof o.name=="string"){for(let f of Object.values(Ylr))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(o instanceof d||o.name===d.name))return f.apply(void 0,s)}}return Wk.error.apply(void 0,s)}t(Wk,"ono")});var Wlt=ar(Jlt=>{"use strict";Object.defineProperty(Jlt,"__esModule",{value:!0});var ZNr=uo("util")});var hI=ar((wE,CM)=>{"use strict";var Klr=wE&&wE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f),Object.defineProperty(s,d,{enumerable:!0,get:t(function(){return o[f]},"get")})}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Xlr=wE&&wE.__exportStar||function(s,o){for(var f in s)f!=="default"&&!o.hasOwnProperty(f)&&Klr(o,s,f)};Object.defineProperty(wE,"__esModule",{value:!0});wE.ono=void 0;var qlt=$lt();Object.defineProperty(wE,"ono",{enumerable:!0,get:t(function(){return qlt.ono},"get")});var Zlr=gIe();Object.defineProperty(wE,"Ono",{enumerable:!0,get:t(function(){return Zlr.Ono},"get")});Xlr(Wlt(),wE);wE.default=qlt.ono;typeof CM=="object"&&typeof CM.exports=="object"&&(CM.exports=Object.assign(CM.exports.default,CM.exports))});var yIe=ar(IH=>{"use strict";var Qlr=IH&&IH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IH,"__esModule",{value:!0});IH.default=eur;var Vlt=Qlr(uo("path"));function eur(s){return s.startsWith("\\\\?\\")?s:s.split(Vlt.default?.win32?.sep).join(Vlt.default?.posix?.sep??"/")}t(eur,"convertPathToPosix")});var Hlt=ar(vle=>{"use strict";Object.defineProperty(vle,"__esModule",{value:!0});vle.isWindows=void 0;var tur=/^win/.test(globalThis.process?globalThis.process.platform:""),rur=t(()=>tur,"isWindows");vle.isWindows=rur});var yT=ar(Op=>{"use strict";var nur=Op&&Op.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),iur=Op&&Op.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),sur=Op&&Op.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&nur(o,s,f);return iur(o,s),o},aur=Op&&Op.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Op,"__esModule",{value:!0});Op.parse=void 0;Op.resolve=Glt;Op.cwd=Ylt;Op.getProtocol=xIe;Op.getExtension=dur;Op.stripQuery=Klt;Op.getHash=Xlt;Op.stripHash=SIe;Op.isHttp=mur;Op.isFileSystemPath=TIe;Op.fromFileSystemPath=hur;Op.toFileSystemPath=gur;Op.safePointerToPath=yur;Op.relative=vur;var Sle=aur(yIe()),bIe=sur(uo("path")),our=/\//g,cur=/^(\w{2,}):\/\//i,lur=/~1/g,uur=/~0/g,fur=uo("path"),ble=Hlt(),_ur=[[/\?/g,"%3F"],[/#/g,"%23"]],vIe=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],pur=t(s=>new URL(s),"parse");Op.parse=pur;function Glt(s,o){let f=new URL((0,Sle.default)(s),"resolve://"),d=new URL((0,Sle.default)(o),f),y=o.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:P,hash:F}=d;return x+P+F+y}return d.toString()+y}t(Glt,"resolve");function Ylt(){if(typeof window<"u")return location.href;let s=process.cwd(),o=s.slice(-1);return o==="/"||o==="\\"?s:s+"/"}t(Ylt,"cwd");function xIe(s){let o=cur.exec(s||"");if(o)return o[1].toLowerCase()}t(xIe,"getProtocol");function dur(s){let o=s.lastIndexOf(".");return o>=0?Klt(s.substr(o).toLowerCase()):""}t(dur,"getExtension");function Klt(s){let o=s.indexOf("?");return o>=0&&(s=s.substr(0,o)),s}t(Klt,"stripQuery");function Xlt(s){if(!s)return"#";let o=s.indexOf("#");return o>=0?s.substring(o):"#"}t(Xlt,"getHash");function SIe(s){if(!s)return"";let o=s.indexOf("#");return o>=0&&(s=s.substring(0,o)),s}t(SIe,"stripHash");function mur(s){let o=xIe(s);return o==="http"||o==="https"?!0:o===void 0?typeof window<"u":!1}t(mur,"isHttp");function TIe(s){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let o=xIe(s);return o===void 0||o==="file"}t(TIe,"isFileSystemPath");function hur(s){if((0,ble.isWindows)()){let o=Ylt(),f=s.toUpperCase(),y=(0,Sle.default)(o).toUpperCase(),x=f.includes(y),P=f.includes(y),F=bIe.win32?.isAbsolute(s)||s.startsWith("http://")||s.startsWith("https://")||s.startsWith("file://");!(x||P||F)&&!o.startsWith("http")&&(s=(0,fur.join)(o,s)),s=(0,Sle.default)(s)}s=encodeURI(s);for(let o of _ur)s=s.replace(o[0],o[1]);return s}t(hur,"fromFileSystemPath");function gur(s,o){s=decodeURI(s);for(let d=0;d<vIe.length;d+=2)s=s.replace(vIe[d],vIe[d+1]);let f=s.substr(0,7).toLowerCase()==="file://";return f&&(s=s[7]==="/"?s.substr(8):s.substr(7),(0,ble.isWindows)()&&s[1]==="/"&&(s=s[0]+":"+s.substr(1)),o?s="file:///"+s:(f=!1,s=(0,ble.isWindows)()?s:"/"+s)),(0,ble.isWindows)()&&!f&&(s=s.replace(our,"\\"),s.substr(1,2)===":\\"&&(s=s[0].toUpperCase()+s.substr(1))),s}t(gur,"toFileSystemPath");function yur(s){return s.length<=1||s[0]!=="#"||s[1]!=="/"?[]:s.slice(2).split("/").map(o=>decodeURIComponent(o).replace(lur,"/").replace(uur,"~"))}t(yur,"safePointerToPath");function vur(s,o){if(!TIe(s)||!TIe(o))return Glt(s,o);let f=bIe.default.dirname(SIe(s)),d=SIe(o);return bIe.default.relative(f,d)+Xlt(o)}t(vur,"relative")});var vT=ar(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.InvalidPointerError=Qd.TimeoutError=Qd.MissingPointerError=Qd.UnmatchedResolverError=Qd.ResolverError=Qd.UnmatchedParserError=Qd.ParserError=Qd.JSONParserErrorGroup=Qd.JSONParserError=void 0;Qd.isHandledError=bur;Qd.normalizeError=Sur;var Zlt=hI(),NIe=yT(),DE=class extends Error{static{t(this,"JSONParserError")}constructor(o,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=o,this.source=f,this.path=null,Zlt.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Qd.JSONParserError=DE;var Tle=class s extends Error{static{t(this,"JSONParserErrorGroup")}constructor(o){super(),this.files=o,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,NIe.toFileSystemPath)(o.$refs._root$Ref.path)}'`,Zlt.Ono.extend(this)}static getParserErrors(o){let f=[];for(let d of Object.values(o.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return s.getParserErrors(this.files)}};Qd.JSONParserErrorGroup=Tle;var EIe=class extends DE{static{t(this,"ParserError")}constructor(o,f){super(`Error parsing ${f}: ${o}`,f),this.code="EPARSER",this.name="ParserError"}};Qd.ParserError=EIe;var CIe=class extends DE{static{t(this,"UnmatchedParserError")}constructor(o){super(`Could not find parser for "${o}"`,o),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Qd.UnmatchedParserError=CIe;var kIe=class extends DE{static{t(this,"ResolverError")}constructor(o,f){super(o.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in o&&(this.ioErrorCode=String(o.code))}};Qd.ResolverError=kIe;var wIe=class extends DE{static{t(this,"UnmatchedResolverError")}constructor(o){super(`Could not find resolver for "${o}"`,o),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Qd.UnmatchedResolverError=wIe;var DIe=class extends DE{static{t(this,"MissingPointerError")}constructor(o,f){super(`Token "${o}" does not exist.`,(0,NIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Qd.MissingPointerError=DIe;var PIe=class extends DE{static{t(this,"TimeoutError")}constructor(o){super(`Dereferencing timeout reached: ${o}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Qd.TimeoutError=PIe;var AIe=class extends DE{static{t(this,"InvalidPointerError")}constructor(o,f){super(`Invalid $ref pointer "${o}". Pointers must begin with "#/"`,(0,NIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Qd.InvalidPointerError=AIe;function bur(s){return s instanceof DE||s instanceof Tle}t(bur,"isHandledError");function Sur(s){return s.path===null&&(s.path=[]),s}t(Sur,"normalizeError")});var OH=ar(PE=>{"use strict";var Tur=PE&&PE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),xur=PE&&PE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Eur=PE&&PE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Tur(o,s,f);return xur(o,s),o},Cur=PE&&PE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(PE,"__esModule",{value:!0});var IIe=Cur(kM()),OIe=Eur(yT()),Ele=vT(),kur=/\//g,wur=/~/g,Dur=/~1/g,Pur=/~0/g,Aur=t(s=>{try{return decodeURIComponent(s)}catch{return s}},"safeDecodeURIComponent"),Cle=class s{static{t(this,"Pointer")}constructor(o,f,d){this.$ref=o,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(o,f,d){let y=s.parse(this.path,this.originalPath);this.value=eut(o);for(let x=0;x<y.length;x++){if(xle(this,f,d)&&(this.path=s.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!tut(d)&&"$ref"in this.value)return this;let P=y[x];if(this.value[P]===void 0||this.value[P]===null&&x===y.length-1){let F=!1;for(let W=y.length-1;W>x;W--){let G=y.slice(x,W+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=W,F=!0;break}}if(F)continue;throw this.value=null,new Ele.MissingPointerError(P,decodeURI(this.originalPath))}else this.value=this.value[P]}return(!this.value||this.value.$ref&&OIe.resolve(this.path,this.value.$ref)!==d)&&xle(this,f,d),this}set(o,f,d){let y=s.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=eut(o);for(let P=0;P<y.length-1;P++)xle(this,d),x=y[P],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=Qlt(this,x,{});return xle(this,d),x=y[y.length-1],Qlt(this,x,f),o}static parse(o,f){let d=OIe.getHash(o).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=Aur(y[x].replace(Dur,"/").replace(Pur,"~"));if(y[0]!=="")throw new Ele.InvalidPointerError(y,f===void 0?o:f);return y.slice(1)}static join(o,f){o.indexOf("#")===-1&&(o+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];o+="/"+encodeURIComponent(y.replace(wur,"~0").replace(kur,"~1"))}return o}};function xle(s,o,f){if(IIe.default.isAllowed$Ref(s.value,o)){let d=OIe.resolve(s.path,s.value.$ref);if(d===s.path&&!tut(f))s.circular=!0;else{let y=s.$ref.$refs._resolve(d,s.path,o);return y===null?!1:(s.indirections+=y.indirections+1,IIe.default.isExtended$Ref(s.value)?(s.value=IIe.default.dereference(s.value,y.value),!1):(s.$ref=y.$ref,s.path=y.path,s.value=y.value,!0))}}}t(xle,"resolveIf$Ref");PE.default=Cle;function Qlt(s,o,f){if(s.value&&typeof s.value=="object")o==="-"&&Array.isArray(s.value)?s.value.push(f):s.value[o]=f;else throw new Ele.JSONParserError(`Error assigning $ref pointer "${s.path}".
72
+ `:"")+f.message),{originalError:f,props:d,message:x}}t(qlr,"normalizeArgs");EM.normalizeArgs=qlr});var gIe=ar(gle=>{"use strict";Object.defineProperty(gle,"__esModule",{value:!0});gle.Ono=void 0;var hle=Blt(),zlt=Ult(),Vlr=ple(),Hlr=hIe;gle.Ono=Hlr;function hIe(s,o){o=zlt.normalizeOptions(o);function f(...d){let{originalError:y,props:x,message:P}=zlt.normalizeArgs(d,o),F=new s(P);return hle.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=s,f}t(hIe,"Ono");hIe.toJSON=t(function(o){return Vlr.toJSON.call(o)},"toJSON");hIe.extend=t(function(o,f,d){return d||f instanceof Error?hle.extendError(o,f,d):f?hle.extendError(o,void 0,f):hle.extendError(o)},"extend")});var $lt=ar(yle=>{"use strict";Object.defineProperty(yle,"__esModule",{value:!0});yle.ono=void 0;var LO=gIe(),Glr=Wk;yle.ono=Glr;Wk.error=new LO.Ono(Error);Wk.eval=new LO.Ono(EvalError);Wk.range=new LO.Ono(RangeError);Wk.reference=new LO.Ono(ReferenceError);Wk.syntax=new LO.Ono(SyntaxError);Wk.type=new LO.Ono(TypeError);Wk.uri=new LO.Ono(URIError);var Ylr=Wk;function Wk(...s){let o=s[0];if(typeof o=="object"&&typeof o.name=="string"){for(let f of Object.values(Ylr))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(o instanceof d||o.name===d.name))return f.apply(void 0,s)}}return Wk.error.apply(void 0,s)}t(Wk,"ono")});var Wlt=ar(Jlt=>{"use strict";Object.defineProperty(Jlt,"__esModule",{value:!0});var QNr=uo("util")});var hI=ar((wE,CM)=>{"use strict";var Klr=wE&&wE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f),Object.defineProperty(s,d,{enumerable:!0,get:t(function(){return o[f]},"get")})}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Xlr=wE&&wE.__exportStar||function(s,o){for(var f in s)f!=="default"&&!o.hasOwnProperty(f)&&Klr(o,s,f)};Object.defineProperty(wE,"__esModule",{value:!0});wE.ono=void 0;var qlt=$lt();Object.defineProperty(wE,"ono",{enumerable:!0,get:t(function(){return qlt.ono},"get")});var Zlr=gIe();Object.defineProperty(wE,"Ono",{enumerable:!0,get:t(function(){return Zlr.Ono},"get")});Xlr(Wlt(),wE);wE.default=qlt.ono;typeof CM=="object"&&typeof CM.exports=="object"&&(CM.exports=Object.assign(CM.exports.default,CM.exports))});var yIe=ar(IH=>{"use strict";var Qlr=IH&&IH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IH,"__esModule",{value:!0});IH.default=eur;var Vlt=Qlr(uo("path"));function eur(s){return s.startsWith("\\\\?\\")?s:s.split(Vlt.default?.win32?.sep).join(Vlt.default?.posix?.sep??"/")}t(eur,"convertPathToPosix")});var Hlt=ar(vle=>{"use strict";Object.defineProperty(vle,"__esModule",{value:!0});vle.isWindows=void 0;var tur=/^win/.test(globalThis.process?globalThis.process.platform:""),rur=t(()=>tur,"isWindows");vle.isWindows=rur});var yT=ar(Op=>{"use strict";var nur=Op&&Op.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),iur=Op&&Op.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),sur=Op&&Op.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&nur(o,s,f);return iur(o,s),o},aur=Op&&Op.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Op,"__esModule",{value:!0});Op.parse=void 0;Op.resolve=Glt;Op.cwd=Ylt;Op.getProtocol=xIe;Op.getExtension=dur;Op.stripQuery=Klt;Op.getHash=Xlt;Op.stripHash=SIe;Op.isHttp=mur;Op.isFileSystemPath=TIe;Op.fromFileSystemPath=hur;Op.toFileSystemPath=gur;Op.safePointerToPath=yur;Op.relative=vur;var Sle=aur(yIe()),bIe=sur(uo("path")),our=/\//g,cur=/^(\w{2,}):\/\//i,lur=/~1/g,uur=/~0/g,fur=uo("path"),ble=Hlt(),_ur=[[/\?/g,"%3F"],[/#/g,"%23"]],vIe=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],pur=t(s=>new URL(s),"parse");Op.parse=pur;function Glt(s,o){let f=new URL((0,Sle.default)(s),"resolve://"),d=new URL((0,Sle.default)(o),f),y=o.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:P,hash:F}=d;return x+P+F+y}return d.toString()+y}t(Glt,"resolve");function Ylt(){if(typeof window<"u")return location.href;let s=process.cwd(),o=s.slice(-1);return o==="/"||o==="\\"?s:s+"/"}t(Ylt,"cwd");function xIe(s){let o=cur.exec(s||"");if(o)return o[1].toLowerCase()}t(xIe,"getProtocol");function dur(s){let o=s.lastIndexOf(".");return o>=0?Klt(s.substr(o).toLowerCase()):""}t(dur,"getExtension");function Klt(s){let o=s.indexOf("?");return o>=0&&(s=s.substr(0,o)),s}t(Klt,"stripQuery");function Xlt(s){if(!s)return"#";let o=s.indexOf("#");return o>=0?s.substring(o):"#"}t(Xlt,"getHash");function SIe(s){if(!s)return"";let o=s.indexOf("#");return o>=0&&(s=s.substring(0,o)),s}t(SIe,"stripHash");function mur(s){let o=xIe(s);return o==="http"||o==="https"?!0:o===void 0?typeof window<"u":!1}t(mur,"isHttp");function TIe(s){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let o=xIe(s);return o===void 0||o==="file"}t(TIe,"isFileSystemPath");function hur(s){if((0,ble.isWindows)()){let o=Ylt(),f=s.toUpperCase(),y=(0,Sle.default)(o).toUpperCase(),x=f.includes(y),P=f.includes(y),F=bIe.win32?.isAbsolute(s)||s.startsWith("http://")||s.startsWith("https://")||s.startsWith("file://");!(x||P||F)&&!o.startsWith("http")&&(s=(0,fur.join)(o,s)),s=(0,Sle.default)(s)}s=encodeURI(s);for(let o of _ur)s=s.replace(o[0],o[1]);return s}t(hur,"fromFileSystemPath");function gur(s,o){s=decodeURI(s);for(let d=0;d<vIe.length;d+=2)s=s.replace(vIe[d],vIe[d+1]);let f=s.substr(0,7).toLowerCase()==="file://";return f&&(s=s[7]==="/"?s.substr(8):s.substr(7),(0,ble.isWindows)()&&s[1]==="/"&&(s=s[0]+":"+s.substr(1)),o?s="file:///"+s:(f=!1,s=(0,ble.isWindows)()?s:"/"+s)),(0,ble.isWindows)()&&!f&&(s=s.replace(our,"\\"),s.substr(1,2)===":\\"&&(s=s[0].toUpperCase()+s.substr(1))),s}t(gur,"toFileSystemPath");function yur(s){return s.length<=1||s[0]!=="#"||s[1]!=="/"?[]:s.slice(2).split("/").map(o=>decodeURIComponent(o).replace(lur,"/").replace(uur,"~"))}t(yur,"safePointerToPath");function vur(s,o){if(!TIe(s)||!TIe(o))return Glt(s,o);let f=bIe.default.dirname(SIe(s)),d=SIe(o);return bIe.default.relative(f,d)+Xlt(o)}t(vur,"relative")});var vT=ar(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.InvalidPointerError=Qd.TimeoutError=Qd.MissingPointerError=Qd.UnmatchedResolverError=Qd.ResolverError=Qd.UnmatchedParserError=Qd.ParserError=Qd.JSONParserErrorGroup=Qd.JSONParserError=void 0;Qd.isHandledError=bur;Qd.normalizeError=Sur;var Zlt=hI(),NIe=yT(),DE=class extends Error{static{t(this,"JSONParserError")}constructor(o,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=o,this.source=f,this.path=null,Zlt.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Qd.JSONParserError=DE;var Tle=class s extends Error{static{t(this,"JSONParserErrorGroup")}constructor(o){super(),this.files=o,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,NIe.toFileSystemPath)(o.$refs._root$Ref.path)}'`,Zlt.Ono.extend(this)}static getParserErrors(o){let f=[];for(let d of Object.values(o.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return s.getParserErrors(this.files)}};Qd.JSONParserErrorGroup=Tle;var EIe=class extends DE{static{t(this,"ParserError")}constructor(o,f){super(`Error parsing ${f}: ${o}`,f),this.code="EPARSER",this.name="ParserError"}};Qd.ParserError=EIe;var CIe=class extends DE{static{t(this,"UnmatchedParserError")}constructor(o){super(`Could not find parser for "${o}"`,o),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Qd.UnmatchedParserError=CIe;var kIe=class extends DE{static{t(this,"ResolverError")}constructor(o,f){super(o.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in o&&(this.ioErrorCode=String(o.code))}};Qd.ResolverError=kIe;var wIe=class extends DE{static{t(this,"UnmatchedResolverError")}constructor(o){super(`Could not find resolver for "${o}"`,o),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Qd.UnmatchedResolverError=wIe;var DIe=class extends DE{static{t(this,"MissingPointerError")}constructor(o,f){super(`Token "${o}" does not exist.`,(0,NIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Qd.MissingPointerError=DIe;var PIe=class extends DE{static{t(this,"TimeoutError")}constructor(o){super(`Dereferencing timeout reached: ${o}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Qd.TimeoutError=PIe;var AIe=class extends DE{static{t(this,"InvalidPointerError")}constructor(o,f){super(`Invalid $ref pointer "${o}". Pointers must begin with "#/"`,(0,NIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Qd.InvalidPointerError=AIe;function bur(s){return s instanceof DE||s instanceof Tle}t(bur,"isHandledError");function Sur(s){return s.path===null&&(s.path=[]),s}t(Sur,"normalizeError")});var OH=ar(PE=>{"use strict";var Tur=PE&&PE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),xur=PE&&PE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Eur=PE&&PE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Tur(o,s,f);return xur(o,s),o},Cur=PE&&PE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(PE,"__esModule",{value:!0});var IIe=Cur(kM()),OIe=Eur(yT()),Ele=vT(),kur=/\//g,wur=/~/g,Dur=/~1/g,Pur=/~0/g,Aur=t(s=>{try{return decodeURIComponent(s)}catch{return s}},"safeDecodeURIComponent"),Cle=class s{static{t(this,"Pointer")}constructor(o,f,d){this.$ref=o,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(o,f,d){let y=s.parse(this.path,this.originalPath);this.value=eut(o);for(let x=0;x<y.length;x++){if(xle(this,f,d)&&(this.path=s.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!tut(d)&&"$ref"in this.value)return this;let P=y[x];if(this.value[P]===void 0||this.value[P]===null&&x===y.length-1){let F=!1;for(let W=y.length-1;W>x;W--){let G=y.slice(x,W+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=W,F=!0;break}}if(F)continue;throw this.value=null,new Ele.MissingPointerError(P,decodeURI(this.originalPath))}else this.value=this.value[P]}return(!this.value||this.value.$ref&&OIe.resolve(this.path,this.value.$ref)!==d)&&xle(this,f,d),this}set(o,f,d){let y=s.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=eut(o);for(let P=0;P<y.length-1;P++)xle(this,d),x=y[P],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=Qlt(this,x,{});return xle(this,d),x=y[y.length-1],Qlt(this,x,f),o}static parse(o,f){let d=OIe.getHash(o).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=Aur(y[x].replace(Dur,"/").replace(Pur,"~"));if(y[0]!=="")throw new Ele.InvalidPointerError(y,f===void 0?o:f);return y.slice(1)}static join(o,f){o.indexOf("#")===-1&&(o+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];o+="/"+encodeURIComponent(y.replace(wur,"~0").replace(kur,"~1"))}return o}};function xle(s,o,f){if(IIe.default.isAllowed$Ref(s.value,o)){let d=OIe.resolve(s.path,s.value.$ref);if(d===s.path&&!tut(f))s.circular=!0;else{let y=s.$ref.$refs._resolve(d,s.path,o);return y===null?!1:(s.indirections+=y.indirections+1,IIe.default.isExtended$Ref(s.value)?(s.value=IIe.default.dereference(s.value,y.value),!1):(s.$ref=y.$ref,s.path=y.path,s.value=y.value,!0))}}}t(xle,"resolveIf$Ref");PE.default=Cle;function Qlt(s,o,f){if(s.value&&typeof s.value=="object")o==="-"&&Array.isArray(s.value)?s.value.push(f):s.value[o]=f;else throw new Ele.JSONParserError(`Error assigning $ref pointer "${s.path}".
73
73
  Cannot set "${o}" of a non-object.`);return f}t(Qlt,"setValue");function eut(s){if((0,Ele.isHandledError)(s))throw s;return s}t(eut,"unwrapOrThrow");function tut(s){return typeof s=="string"&&Cle.parse(s).length==0}t(tut,"isRootPath")});var kM=ar(FH=>{"use strict";var Nur=FH&&FH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(FH,"__esModule",{value:!0});var rut=Nur(OH()),kle=vT(),FIe=yT(),LIe=class s{static{t(this,"$Ref")}constructor(o){this.errors=[],this.$refs=o}addError(o){this.errors===void 0&&(this.errors=[]);let f=this.errors.map(({footprint:d})=>d);"errors"in o&&Array.isArray(o.errors)?this.errors.push(...o.errors.map(kle.normalizeError).filter(({footprint:d})=>!f.includes(d))):(!("footprint"in o)||!f.includes(o.footprint))&&this.errors.push((0,kle.normalizeError)(o))}exists(o,f){try{return this.resolve(o,f),!0}catch{return!1}}get(o,f){return this.resolve(o,f)?.value}resolve(o,f,d,y){let x=new rut.default(this,o,d);try{return x.resolve(this.value,f,y)}catch(P){if(!f||!f.continueOnError||!(0,kle.isHandledError)(P))throw P;return P.path===null&&(P.path=(0,FIe.safePointerToPath)((0,FIe.getHash)(y))),P instanceof kle.InvalidPointerError&&(P.source=decodeURI((0,FIe.stripHash)(y))),this.addError(P),null}}set(o,f){let d=new rut.default(this,o);this.value=d.set(this.value,f)}static is$Ref(o){return!!o&&typeof o=="object"&&o!==null&&"$ref"in o&&typeof o.$ref=="string"&&o.$ref.length>0}static isExternal$Ref(o){return s.is$Ref(o)&&o.$ref[0]!=="#"}static isAllowed$Ref(o,f){if(this.is$Ref(o)){if(o.$ref.substring(0,2)==="#/"||o.$ref==="#")return!0;if(o.$ref[0]!=="#"&&(!f||f.resolve?.external))return!0}}static isExtended$Ref(o){return s.is$Ref(o)&&Object.keys(o).length>1}static dereference(o,f){if(f&&typeof f=="object"&&s.isExtended$Ref(o)){let d={};for(let y of Object.keys(o))y!=="$ref"&&(d[y]=o[y]);for(let y of Object.keys(f))y in d||(d[y]=f[y]);return d}else return f}};FH.default=LIe});var out=ar(AE=>{"use strict";var Iur=AE&&AE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Our=AE&&AE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Fur=AE&&AE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Iur(o,s,f);return Our(o,s),o},aut=AE&&AE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(AE,"__esModule",{value:!0});var nut=hI(),Lur=aut(kM()),gI=Fur(yT()),iut=aut(yIe()),RIe=class{static{t(this,"$Refs")}paths(...o){return sut(this._$refs,o.flat()).map(d=>(0,iut.default)(d.decoded))}values(...o){let f=this._$refs;return sut(f,o.flat()).reduce((y,x)=>(y[(0,iut.default)(x.decoded)]=f[x.encoded].value,y),{})}exists(o,f){try{return this._resolve(o,"",f),!0}catch{return!1}}get(o,f){return this._resolve(o,"",f).value}set(o,f){let d=gI.resolve(this._root$Ref.path,o),y=gI.stripHash(d),x=this._$refs[y];if(!x)throw(0,nut.ono)(`Error resolving $ref pointer "${o}".
74
74
  "${y}" not found.`);x.set(d,f)}_get$Ref(o){o=gI.resolve(this._root$Ref.path,o);let f=gI.stripHash(o);return this._$refs[f]}_add(o){let f=gI.stripHash(o),d=new Lur.default(this);return d.path=f,this._$refs[f]=d,this._root$Ref=this._root$Ref||d,d}_resolve(o,f,d){let y=gI.resolve(this._root$Ref.path,o),x=gI.stripHash(y),P=this._$refs[x];if(!P)throw(0,nut.ono)(`Error resolving $ref pointer "${o}".
75
75
  "${x}" not found.`);return P.resolve(y,d,o,f)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};AE.default=RIe;function sut(s,o){let f=Object.keys(s);return o=Array.isArray(o[0])?o[0]:Array.prototype.slice.call(o),o.length>0&&o[0]&&(f=f.filter(d=>o.includes(s[d].pathType))),f.map(d=>({encoded:d,decoded:s[d].pathType==="file"?gI.toFileSystemPath(d,!0):d}))}t(sut,"getPaths")});var lut=ar(wM=>{"use strict";Object.defineProperty(wM,"__esModule",{value:!0});wM.all=Rur;wM.filter=Mur;wM.sort=jur;wM.run=Bur;function Rur(s){return Object.keys(s||{}).filter(o=>typeof s[o]=="object").map(o=>(s[o].name=o,s[o]))}t(Rur,"all");function Mur(s,o,f){return s.filter(d=>!!cut(d,o,f))}t(Mur,"filter");function jur(s){for(let o of s)o.order=o.order||Number.MAX_SAFE_INTEGER;return s.sort((o,f)=>o.order-f.order)}t(jur,"sort");async function Bur(s,o,f,d){let y,x,P=0;return new Promise((F,W)=>{G();function G(){if(y=s[P++],!y)return W(x);try{let Xe=cut(y,o,f,be,d);if(Xe&&typeof Xe.then=="function")Xe.then(de,se);else if(Xe!==void 0)de(Xe);else if(P===s.length)throw new Error("No promise has been returned or callback has been called.")}catch(Xe){se(Xe)}}t(G,"runNextPlugin");function be(Xe,Ue){Xe?se(Xe):de(Ue)}t(be,"callback");function de(Xe){F({plugin:y,result:Xe})}t(de,"onSuccess");function se(Xe){x={plugin:y,error:Xe},G()}t(se,"onError")})}t(Bur,"run");function cut(s,o,f,d,y){let x=s[o];if(typeof x=="function")return x.apply(s,[f,d,y]);if(!d){if(x instanceof RegExp)return x.test(f.url);if(typeof x=="string")return x===f.extension;if(Array.isArray(x))return x.indexOf(f.extension)!==-1}return x}t(cut,"getResult")});var jIe=ar(rA=>{"use strict";var Uur=rA&&rA.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),zur=rA&&rA.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),uut=rA&&rA.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Uur(o,s,f);return zur(o,s),o};Object.defineProperty(rA,"__esModule",{value:!0});var MIe=hI(),$ur=uut(yT()),yI=uut(lut()),RO=vT();async function Jur(s,o,f){let d=s.indexOf("#"),y="";d>=0&&(y=s.substring(d),s=s.substring(0,d));let x=o._add(s),P={url:s,hash:y,extension:$ur.getExtension(s)};try{let F=await Wur(P,f,o);x.pathType=F.plugin.name,P.data=F.result;let W=await qur(P,f,o);return x.value=W.result,W.result}catch(F){throw(0,RO.isHandledError)(F)&&(x.value=F),F}}t(Jur,"parse");async function Wur(s,o,f){let d=yI.all(o.resolve);d=yI.filter(d,"canRead",s),yI.sort(d);try{return await yI.run(d,"read",s,f)}catch(y){throw!y&&o.continueOnError?new RO.UnmatchedResolverError(s.url):!y||!("error"in y)?MIe.ono.syntax(`Unable to resolve $ref pointer "${s.url}"`):y.error instanceof RO.ResolverError?y.error:new RO.ResolverError(y,s.url)}}t(Wur,"readFile");async function qur(s,o,f){let d=yI.all(o.parse),y=yI.filter(d,"canParse",s),x=y.length>0?y:d;yI.sort(x);try{let P=await yI.run(x,"parse",s,f);if(!P.plugin.allowEmpty&&Vur(P.result))throw MIe.ono.syntax(`Error parsing "${s.url}" as ${P.plugin.name}.
76
- Parsed value is empty`);return P}catch(P){throw!P&&o.continueOnError?new RO.UnmatchedParserError(s.url):P&&P.message&&P.message.startsWith("Error parsing")?P:!P||!("error"in P)?MIe.ono.syntax(`Unable to parse ${s.url}`):P.error instanceof RO.ParserError?P.error:new RO.ParserError(P.error.message,s.url)}}t(qur,"parseFile");function Vur(s){return s===void 0||typeof s=="object"&&Object.keys(s).length===0||typeof s=="string"&&s.trim().length===0||Buffer.isBuffer(s)&&s.length===0}t(Vur,"isEmpty");rA.default=Jur});var _ut=ar(BIe=>{"use strict";Object.defineProperty(BIe,"__esModule",{value:!0});var fut=vT();BIe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string"){if(o.trim().length===0)return;try{return JSON.parse(o)}catch(f){if(this.allowBOM)try{let d=o.indexOf("{");return o=o.slice(d),JSON.parse(o)}catch(d){throw new fut.ParserError(d.message,s.url)}throw new fut.ParserError(f.message,s.url)}}else return o}}});var DM=ar((bIr,MO)=>{"use strict";function put(s){return typeof s>"u"||s===null}t(put,"isNothing");function Hur(s){return typeof s=="object"&&s!==null}t(Hur,"isObject");function Gur(s){return Array.isArray(s)?s:put(s)?[]:[s]}t(Gur,"toArray");function Yur(s,o){if(o){let f=Object.keys(o);for(let d=0,y=f.length;d<y;d+=1){let x=f[d];s[x]=o[x]}}return s}t(Yur,"extend");function Kur(s,o){let f="";for(let d=0;d<o;d+=1)f+=s;return f}t(Kur,"repeat");function Xur(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}t(Xur,"isNegativeZero");MO.exports.isNothing=put;MO.exports.isObject=Hur;MO.exports.toArray=Gur;MO.exports.repeat=Kur;MO.exports.isNegativeZero=Xur;MO.exports.extend=Yur});var PM=ar((TIr,mut)=>{"use strict";function dut(s,o){let f="",d=s.reason||"(unknown reason)";return s.mark?(s.mark.name&&(f+='in "'+s.mark.name+'" '),f+="("+(s.mark.line+1)+":"+(s.mark.column+1)+")",!o&&s.mark.snippet&&(f+=`
76
+ Parsed value is empty`);return P}catch(P){throw!P&&o.continueOnError?new RO.UnmatchedParserError(s.url):P&&P.message&&P.message.startsWith("Error parsing")?P:!P||!("error"in P)?MIe.ono.syntax(`Unable to parse ${s.url}`):P.error instanceof RO.ParserError?P.error:new RO.ParserError(P.error.message,s.url)}}t(qur,"parseFile");function Vur(s){return s===void 0||typeof s=="object"&&Object.keys(s).length===0||typeof s=="string"&&s.trim().length===0||Buffer.isBuffer(s)&&s.length===0}t(Vur,"isEmpty");rA.default=Jur});var _ut=ar(BIe=>{"use strict";Object.defineProperty(BIe,"__esModule",{value:!0});var fut=vT();BIe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string"){if(o.trim().length===0)return;try{return JSON.parse(o)}catch(f){if(this.allowBOM)try{let d=o.indexOf("{");return o=o.slice(d),JSON.parse(o)}catch(d){throw new fut.ParserError(d.message,s.url)}throw new fut.ParserError(f.message,s.url)}}else return o}}});var DM=ar((SIr,MO)=>{"use strict";function put(s){return typeof s>"u"||s===null}t(put,"isNothing");function Hur(s){return typeof s=="object"&&s!==null}t(Hur,"isObject");function Gur(s){return Array.isArray(s)?s:put(s)?[]:[s]}t(Gur,"toArray");function Yur(s,o){if(o){let f=Object.keys(o);for(let d=0,y=f.length;d<y;d+=1){let x=f[d];s[x]=o[x]}}return s}t(Yur,"extend");function Kur(s,o){let f="";for(let d=0;d<o;d+=1)f+=s;return f}t(Kur,"repeat");function Xur(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}t(Xur,"isNegativeZero");MO.exports.isNothing=put;MO.exports.isObject=Hur;MO.exports.toArray=Gur;MO.exports.repeat=Kur;MO.exports.isNegativeZero=Xur;MO.exports.extend=Yur});var PM=ar((xIr,mut)=>{"use strict";function dut(s,o){let f="",d=s.reason||"(unknown reason)";return s.mark?(s.mark.name&&(f+='in "'+s.mark.name+'" '),f+="("+(s.mark.line+1)+":"+(s.mark.column+1)+")",!o&&s.mark.snippet&&(f+=`
77
77
 
78
- `+s.mark.snippet),d+" "+f):d}t(dut,"formatError");function LH(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=dut(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(LH,"YAMLException");LH.prototype=Object.create(Error.prototype);LH.prototype.constructor=LH;LH.prototype.toString=t(function(o){return this.name+": "+dut(this,o)},"toString");mut.exports=LH});var gut=ar((EIr,hut)=>{"use strict";var RH=DM();function UIe(s,o,f,d,y){let x="",P="",F=Math.floor(y/2)-1;return d-o>F&&(x=" ... ",o=d-F+x.length),f-d>F&&(P=" ...",f=d+F-P.length),{str:x+s.slice(o,f).replace(/\t/g,"\u2192")+P,pos:d-o+x.length}}t(UIe,"getLine");function zIe(s,o){return RH.repeat(" ",o-s.length)+s}t(zIe,"padStart");function Zur(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);let f=/\r?\n|\r|\0/g,d=[0],y=[],x,P=-1;for(;x=f.exec(s.buffer);)y.push(x.index),d.push(x.index+x[0].length),s.position<=x.index&&P<0&&(P=d.length-2);P<0&&(P=d.length-1);let F="",W=Math.min(s.line+o.linesAfter,y.length).toString().length,G=o.maxLength-(o.indent+W+3);for(let de=1;de<=o.linesBefore&&!(P-de<0);de++){let se=UIe(s.buffer,d[P-de],y[P-de],s.position-(d[P]-d[P-de]),G);F=RH.repeat(" ",o.indent)+zIe((s.line-de+1).toString(),W)+" | "+se.str+`
78
+ `+s.mark.snippet),d+" "+f):d}t(dut,"formatError");function LH(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=dut(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(LH,"YAMLException");LH.prototype=Object.create(Error.prototype);LH.prototype.constructor=LH;LH.prototype.toString=t(function(o){return this.name+": "+dut(this,o)},"toString");mut.exports=LH});var gut=ar((CIr,hut)=>{"use strict";var RH=DM();function UIe(s,o,f,d,y){let x="",P="",F=Math.floor(y/2)-1;return d-o>F&&(x=" ... ",o=d-F+x.length),f-d>F&&(P=" ...",f=d+F-P.length),{str:x+s.slice(o,f).replace(/\t/g,"\u2192")+P,pos:d-o+x.length}}t(UIe,"getLine");function zIe(s,o){return RH.repeat(" ",o-s.length)+s}t(zIe,"padStart");function Zur(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);let f=/\r?\n|\r|\0/g,d=[0],y=[],x,P=-1;for(;x=f.exec(s.buffer);)y.push(x.index),d.push(x.index+x[0].length),s.position<=x.index&&P<0&&(P=d.length-2);P<0&&(P=d.length-1);let F="",W=Math.min(s.line+o.linesAfter,y.length).toString().length,G=o.maxLength-(o.indent+W+3);for(let de=1;de<=o.linesBefore&&!(P-de<0);de++){let se=UIe(s.buffer,d[P-de],y[P-de],s.position-(d[P]-d[P-de]),G);F=RH.repeat(" ",o.indent)+zIe((s.line-de+1).toString(),W)+" | "+se.str+`
79
79
  `+F}let be=UIe(s.buffer,d[P],y[P],s.position,G);F+=RH.repeat(" ",o.indent)+zIe((s.line+1).toString(),W)+" | "+be.str+`
80
80
  `,F+=RH.repeat("-",o.indent+W+3+be.pos)+`^
81
81
  `;for(let de=1;de<=o.linesAfter&&!(P+de>=y.length);de++){let se=UIe(s.buffer,d[P+de],y[P+de],s.position-(d[P]-d[P+de]),G);F+=RH.repeat(" ",o.indent)+zIe((s.line+de+1).toString(),W)+" | "+se.str+`
82
- `}return F.replace(/\n$/,"")}t(Zur,"makeSnippet");hut.exports=Zur});var Py=ar((kIr,vut)=>{"use strict";var yut=PM(),Qur=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],efr=["scalar","sequence","mapping"];function tfr(s){let o={};return s!==null&&Object.keys(s).forEach(function(f){s[f].forEach(function(d){o[String(d)]=f})}),o}t(tfr,"compileStyleAliases");function rfr(s,o){if(o=o||{},Object.keys(o).forEach(function(f){if(Qur.indexOf(f)===-1)throw new yut('Unknown option "'+f+'" is met in definition of "'+s+'" YAML type.')}),this.options=o,this.tag=s,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(f){return f},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=tfr(o.styleAliases||null),efr.indexOf(this.kind)===-1)throw new yut('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}t(rfr,"Type");vut.exports=rfr});var WIe=ar((DIr,Sut)=>{"use strict";var MH=PM(),$Ie=Py();function but(s,o){let f=[];return s[o].forEach(function(d){let y=f.length;f.forEach(function(x,P){x.tag===d.tag&&x.kind===d.kind&&x.multi===d.multi&&(y=P)}),f[y]=d}),f}t(but,"compileList");function nfr(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(f){f.multi?(s.multi[f.kind].push(f),s.multi.fallback.push(f)):s[f.kind][f.tag]=s.fallback[f.tag]=f}t(o,"collectType");for(let f=0,d=arguments.length;f<d;f+=1)arguments[f].forEach(o);return s}t(nfr,"compileMap");function JIe(s){return this.extend(s)}t(JIe,"Schema");JIe.prototype.extend=t(function(o){let f=[],d=[];if(o instanceof $Ie)d.push(o);else if(Array.isArray(o))d=d.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(f=f.concat(o.implicit)),o.explicit&&(d=d.concat(o.explicit));else throw new MH("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(x){if(!(x instanceof $Ie))throw new MH("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(x.loadKind&&x.loadKind!=="scalar")throw new MH("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(x.multi)throw new MH("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(x){if(!(x instanceof $Ie))throw new MH("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let y=Object.create(JIe.prototype);return y.implicit=(this.implicit||[]).concat(f),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=but(y,"implicit"),y.compiledExplicit=but(y,"explicit"),y.compiledTypeMap=nfr(y.compiledImplicit,y.compiledExplicit),y},"extend");Sut.exports=JIe});var qIe=ar((AIr,Tut)=>{"use strict";var ifr=Py();Tut.exports=new ifr("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(s){return s!==null?s:""},"construct")})});var VIe=ar((IIr,xut)=>{"use strict";var sfr=Py();xut.exports=new sfr("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(s){return s!==null?s:[]},"construct")})});var HIe=ar((FIr,Eut)=>{"use strict";var afr=Py();Eut.exports=new afr("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(s){return s!==null?s:{}},"construct")})});var GIe=ar((RIr,Cut)=>{"use strict";var ofr=WIe();Cut.exports=new ofr({explicit:[qIe(),VIe(),HIe()]})});var YIe=ar((MIr,kut)=>{"use strict";var cfr=Py();function lfr(s){if(s===null)return!0;let o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}t(lfr,"resolveYamlNull");function ufr(){return null}t(ufr,"constructYamlNull");function ffr(s){return s===null}t(ffr,"isNull");kut.exports=new cfr("tag:yaml.org,2002:null",{kind:"scalar",resolve:lfr,construct:ufr,predicate:ffr,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"})});var KIe=ar((BIr,wut)=>{"use strict";var _fr=Py();function pfr(s){if(s===null)return!1;let o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}t(pfr,"resolveYamlBoolean");function dfr(s){return s==="true"||s==="True"||s==="TRUE"}t(dfr,"constructYamlBoolean");function mfr(s){return Object.prototype.toString.call(s)==="[object Boolean]"}t(mfr,"isBoolean");wut.exports=new _fr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pfr,construct:dfr,predicate:mfr,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var XIe=ar((zIr,Dut)=>{"use strict";var hfr=DM(),gfr=Py();function yfr(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}t(yfr,"isHexCode");function vfr(s){return s>=48&&s<=55}t(vfr,"isOctCode");function bfr(s){return s>=48&&s<=57}t(bfr,"isDecCode");function Sfr(s){if(s===null)return!1;let o=s.length,f=0,d=!1;if(!o)return!1;let y=s[f];if((y==="-"||y==="+")&&(y=s[++f]),y==="0"){if(f+1===o)return!0;if(y=s[++f],y==="b"){for(f++;f<o;f++){if(y=s[f],y!=="0"&&y!=="1")return!1;d=!0}return d&&isFinite(jH(s))}if(y==="x"){for(f++;f<o;f++){if(!yfr(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(jH(s))}if(y==="o"){for(f++;f<o;f++){if(!vfr(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(jH(s))}}for(;f<o;f++){if(!bfr(s.charCodeAt(f)))return!1;d=!0}return d?isFinite(jH(s)):!1}t(Sfr,"resolveYamlInteger");function jH(s){let o=s,f=1,d=o[0];if((d==="-"||d==="+")&&(d==="-"&&(f=-1),o=o.slice(1),d=o[0]),o==="0")return 0;if(d==="0"){if(o[1]==="b")return f*parseInt(o.slice(2),2);if(o[1]==="x")return f*parseInt(o.slice(2),16);if(o[1]==="o")return f*parseInt(o.slice(2),8)}return f*parseInt(o,10)}t(jH,"parseYamlInteger");function Tfr(s){return jH(s)}t(Tfr,"constructYamlInteger");function xfr(s){return Object.prototype.toString.call(s)==="[object Number]"&&s%1===0&&!hfr.isNegativeZero(s)}t(xfr,"isInteger");Dut.exports=new gfr("tag:yaml.org,2002:int",{kind:"scalar",resolve:Sfr,construct:Tfr,predicate:xfr,represent:{binary:t(function(s){return s>=0?"0b"+s.toString(2):"-0b"+s.toString(2).slice(1)},"binary"),octal:t(function(s){return s>=0?"0o"+s.toString(8):"-0o"+s.toString(8).slice(1)},"octal"),decimal:t(function(s){return s.toString(10)},"decimal"),hexadecimal:t(function(s){return s>=0?"0x"+s.toString(16).toUpperCase():"-0x"+s.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var ZIe=ar((JIr,Aut)=>{"use strict";var Put=DM(),Efr=Py(),Cfr=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),kfr=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wfr(s){return s===null||!Cfr.test(s)?!1:isFinite(parseFloat(s,10))?!0:kfr.test(s)}t(wfr,"resolveYamlFloat");function Dfr(s){let o=s.toLowerCase(),f=o[0]==="-"?-1:1;return"+-".indexOf(o[0])>=0&&(o=o.slice(1)),o===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:o===".nan"?NaN:f*parseFloat(o,10)}t(Dfr,"constructYamlFloat");var Pfr=/^[-+]?[0-9]+e/;function Afr(s,o){if(isNaN(s))switch(o){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===s)switch(o){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===s)switch(o){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Put.isNegativeZero(s))return"-0.0";let f=s.toString(10);return Pfr.test(f)?f.replace("e",".e"):f}t(Afr,"representYamlFloat");function Nfr(s){return Object.prototype.toString.call(s)==="[object Number]"&&(s%1!==0||Put.isNegativeZero(s))}t(Nfr,"isFloat");Aut.exports=new Efr("tag:yaml.org,2002:float",{kind:"scalar",resolve:wfr,construct:Dfr,predicate:Nfr,represent:Afr,defaultStyle:"lowercase"})});var QIe=ar((qIr,Nut)=>{"use strict";Nut.exports=GIe().extend({implicit:[YIe(),KIe(),XIe(),ZIe()]})});var e4e=ar((VIr,Iut)=>{"use strict";Iut.exports=QIe()});var t4e=ar((HIr,Lut)=>{"use strict";var Ifr=Py(),Out=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ofr(s){return s===null?!1:Out.exec(s)!==null||Fut.exec(s)!==null}t(Ofr,"resolveYamlTimestamp");function Ffr(s){let o=0,f=null,d=Out.exec(s);if(d===null&&(d=Fut.exec(s)),d===null)throw new Error("Date resolve error");let y=+d[1],x=+d[2]-1,P=+d[3];if(!d[4])return new Date(Date.UTC(y,x,P));let F=+d[4],W=+d[5],G=+d[6];if(d[7]){for(o=d[7].slice(0,3);o.length<3;)o+="0";o=+o}if(d[9]){let de=+d[10],se=+(d[11]||0);f=(de*60+se)*6e4,d[9]==="-"&&(f=-f)}let be=new Date(Date.UTC(y,x,P,F,W,G,o));return f&&be.setTime(be.getTime()-f),be}t(Ffr,"constructYamlTimestamp");function Lfr(s){return s.toISOString()}t(Lfr,"representYamlTimestamp");Lut.exports=new Ifr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ofr,construct:Ffr,instanceOf:Date,represent:Lfr})});var r4e=ar((YIr,Rut)=>{"use strict";var Rfr=Py();function Mfr(s){return s==="<<"||s===null}t(Mfr,"resolveYamlMerge");Rut.exports=new Rfr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Mfr})});var i4e=ar((XIr,Mut)=>{"use strict";var jfr=Py(),n4e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
83
- \r`;function Bfr(s){if(s===null)return!1;let o=0,f=s.length,d=n4e;for(let y=0;y<f;y++){let x=d.indexOf(s.charAt(y));if(!(x>64)){if(x<0)return!1;o+=6}}return o%8===0}t(Bfr,"resolveYamlBinary");function Ufr(s){let o=s.replace(/[\r\n=]/g,""),f=o.length,d=n4e,y=0,x=[];for(let F=0;F<f;F++)F%4===0&&F&&(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)),y=y<<6|d.indexOf(o.charAt(F));let P=f%4*6;return P===0?(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)):P===18?(x.push(y>>10&255),x.push(y>>2&255)):P===12&&x.push(y>>4&255),new Uint8Array(x)}t(Ufr,"constructYamlBinary");function zfr(s){let o="",f=0,d=s.length,y=n4e;for(let P=0;P<d;P++)P%3===0&&P&&(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]),f=(f<<8)+s[P];let x=d%3;return x===0?(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]):x===2?(o+=y[f>>10&63],o+=y[f>>4&63],o+=y[f<<2&63],o+=y[64]):x===1&&(o+=y[f>>2&63],o+=y[f<<4&63],o+=y[64],o+=y[64]),o}t(zfr,"representYamlBinary");function $fr(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}t($fr,"isBinary");Mut.exports=new jfr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Bfr,construct:Ufr,predicate:$fr,represent:zfr})});var s4e=ar((QIr,jut)=>{"use strict";var Jfr=Py(),Wfr=Object.prototype.hasOwnProperty,qfr=Object.prototype.toString;function Vfr(s){if(s===null)return!0;let o=[],f=s;for(let d=0,y=f.length;d<y;d+=1){let x=f[d],P=!1;if(qfr.call(x)!=="[object Object]")return!1;let F;for(F in x)if(Wfr.call(x,F))if(!P)P=!0;else return!1;if(!P)return!1;if(o.indexOf(F)===-1)o.push(F);else return!1}return!0}t(Vfr,"resolveYamlOmap");function Hfr(s){return s!==null?s:[]}t(Hfr,"constructYamlOmap");jut.exports=new Jfr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Vfr,construct:Hfr})});var a4e=ar((t4r,But)=>{"use strict";var Gfr=Py(),Yfr=Object.prototype.toString;function Kfr(s){if(s===null)return!0;let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d];if(Yfr.call(x)!=="[object Object]")return!1;let P=Object.keys(x);if(P.length!==1)return!1;f[d]=[P[0],x[P[0]]]}return!0}t(Kfr,"resolveYamlPairs");function Xfr(s){if(s===null)return[];let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d],P=Object.keys(x);f[d]=[P[0],x[P[0]]]}return f}t(Xfr,"constructYamlPairs");But.exports=new Gfr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Kfr,construct:Xfr})});var o4e=ar((n4r,Uut)=>{"use strict";var Zfr=Py(),Qfr=Object.prototype.hasOwnProperty;function e_r(s){if(s===null)return!0;let o=s;for(let f in o)if(Qfr.call(o,f)&&o[f]!==null)return!1;return!0}t(e_r,"resolveYamlSet");function t_r(s){return s!==null?s:{}}t(t_r,"constructYamlSet");Uut.exports=new Zfr("tag:yaml.org,2002:set",{kind:"mapping",resolve:e_r,construct:t_r})});var wle=ar((s4r,zut)=>{"use strict";zut.exports=e4e().extend({implicit:[t4e(),r4e()],explicit:[i4e(),s4e(),a4e(),o4e()]})});var oft=ar((a4r,f4e)=>{"use strict";var jO=DM(),Yut=PM(),r_r=gut(),n_r=wle(),NE=Object.prototype.hasOwnProperty,Dle=1,Kut=2,Xut=3,Ple=4,c4e=1,i_r=2,$ut=3,s_r=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a_r=/[\x85\u2028\u2029]/,o_r=/[,\[\]{}]/,Zut=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Qut=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Jut(s){return Object.prototype.toString.call(s)}t(Jut,"_class");function qk(s){return s===10||s===13}t(qk,"isEol");function nA(s){return s===9||s===32}t(nA,"isWhiteSpace");function Qv(s){return s===9||s===32||s===10||s===13}t(Qv,"isWsOrEol");function AM(s){return s===44||s===91||s===93||s===123||s===125}t(AM,"isFlowIndicator");function c_r(s){if(s>=48&&s<=57)return s-48;let o=s|32;return o>=97&&o<=102?o-97+10:-1}t(c_r,"fromHexCode");function l_r(s){return s===120?2:s===117?4:s===85?8:0}t(l_r,"escapedHexLen");function u_r(s){return s>=48&&s<=57?s-48:-1}t(u_r,"fromDecimalCode");function Wut(s){switch(s){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
82
+ `}return F.replace(/\n$/,"")}t(Zur,"makeSnippet");hut.exports=Zur});var Py=ar((wIr,vut)=>{"use strict";var yut=PM(),Qur=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],efr=["scalar","sequence","mapping"];function tfr(s){let o={};return s!==null&&Object.keys(s).forEach(function(f){s[f].forEach(function(d){o[String(d)]=f})}),o}t(tfr,"compileStyleAliases");function rfr(s,o){if(o=o||{},Object.keys(o).forEach(function(f){if(Qur.indexOf(f)===-1)throw new yut('Unknown option "'+f+'" is met in definition of "'+s+'" YAML type.')}),this.options=o,this.tag=s,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(f){return f},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=tfr(o.styleAliases||null),efr.indexOf(this.kind)===-1)throw new yut('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}t(rfr,"Type");vut.exports=rfr});var WIe=ar((PIr,Sut)=>{"use strict";var MH=PM(),$Ie=Py();function but(s,o){let f=[];return s[o].forEach(function(d){let y=f.length;f.forEach(function(x,P){x.tag===d.tag&&x.kind===d.kind&&x.multi===d.multi&&(y=P)}),f[y]=d}),f}t(but,"compileList");function nfr(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(f){f.multi?(s.multi[f.kind].push(f),s.multi.fallback.push(f)):s[f.kind][f.tag]=s.fallback[f.tag]=f}t(o,"collectType");for(let f=0,d=arguments.length;f<d;f+=1)arguments[f].forEach(o);return s}t(nfr,"compileMap");function JIe(s){return this.extend(s)}t(JIe,"Schema");JIe.prototype.extend=t(function(o){let f=[],d=[];if(o instanceof $Ie)d.push(o);else if(Array.isArray(o))d=d.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(f=f.concat(o.implicit)),o.explicit&&(d=d.concat(o.explicit));else throw new MH("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(x){if(!(x instanceof $Ie))throw new MH("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(x.loadKind&&x.loadKind!=="scalar")throw new MH("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(x.multi)throw new MH("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(x){if(!(x instanceof $Ie))throw new MH("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let y=Object.create(JIe.prototype);return y.implicit=(this.implicit||[]).concat(f),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=but(y,"implicit"),y.compiledExplicit=but(y,"explicit"),y.compiledTypeMap=nfr(y.compiledImplicit,y.compiledExplicit),y},"extend");Sut.exports=JIe});var qIe=ar((NIr,Tut)=>{"use strict";var ifr=Py();Tut.exports=new ifr("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(s){return s!==null?s:""},"construct")})});var VIe=ar((OIr,xut)=>{"use strict";var sfr=Py();xut.exports=new sfr("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(s){return s!==null?s:[]},"construct")})});var HIe=ar((LIr,Eut)=>{"use strict";var afr=Py();Eut.exports=new afr("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(s){return s!==null?s:{}},"construct")})});var GIe=ar((MIr,Cut)=>{"use strict";var ofr=WIe();Cut.exports=new ofr({explicit:[qIe(),VIe(),HIe()]})});var YIe=ar((jIr,kut)=>{"use strict";var cfr=Py();function lfr(s){if(s===null)return!0;let o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}t(lfr,"resolveYamlNull");function ufr(){return null}t(ufr,"constructYamlNull");function ffr(s){return s===null}t(ffr,"isNull");kut.exports=new cfr("tag:yaml.org,2002:null",{kind:"scalar",resolve:lfr,construct:ufr,predicate:ffr,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"})});var KIe=ar((UIr,wut)=>{"use strict";var _fr=Py();function pfr(s){if(s===null)return!1;let o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}t(pfr,"resolveYamlBoolean");function dfr(s){return s==="true"||s==="True"||s==="TRUE"}t(dfr,"constructYamlBoolean");function mfr(s){return Object.prototype.toString.call(s)==="[object Boolean]"}t(mfr,"isBoolean");wut.exports=new _fr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pfr,construct:dfr,predicate:mfr,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var XIe=ar(($Ir,Dut)=>{"use strict";var hfr=DM(),gfr=Py();function yfr(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}t(yfr,"isHexCode");function vfr(s){return s>=48&&s<=55}t(vfr,"isOctCode");function bfr(s){return s>=48&&s<=57}t(bfr,"isDecCode");function Sfr(s){if(s===null)return!1;let o=s.length,f=0,d=!1;if(!o)return!1;let y=s[f];if((y==="-"||y==="+")&&(y=s[++f]),y==="0"){if(f+1===o)return!0;if(y=s[++f],y==="b"){for(f++;f<o;f++){if(y=s[f],y!=="0"&&y!=="1")return!1;d=!0}return d&&isFinite(jH(s))}if(y==="x"){for(f++;f<o;f++){if(!yfr(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(jH(s))}if(y==="o"){for(f++;f<o;f++){if(!vfr(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(jH(s))}}for(;f<o;f++){if(!bfr(s.charCodeAt(f)))return!1;d=!0}return d?isFinite(jH(s)):!1}t(Sfr,"resolveYamlInteger");function jH(s){let o=s,f=1,d=o[0];if((d==="-"||d==="+")&&(d==="-"&&(f=-1),o=o.slice(1),d=o[0]),o==="0")return 0;if(d==="0"){if(o[1]==="b")return f*parseInt(o.slice(2),2);if(o[1]==="x")return f*parseInt(o.slice(2),16);if(o[1]==="o")return f*parseInt(o.slice(2),8)}return f*parseInt(o,10)}t(jH,"parseYamlInteger");function Tfr(s){return jH(s)}t(Tfr,"constructYamlInteger");function xfr(s){return Object.prototype.toString.call(s)==="[object Number]"&&s%1===0&&!hfr.isNegativeZero(s)}t(xfr,"isInteger");Dut.exports=new gfr("tag:yaml.org,2002:int",{kind:"scalar",resolve:Sfr,construct:Tfr,predicate:xfr,represent:{binary:t(function(s){return s>=0?"0b"+s.toString(2):"-0b"+s.toString(2).slice(1)},"binary"),octal:t(function(s){return s>=0?"0o"+s.toString(8):"-0o"+s.toString(8).slice(1)},"octal"),decimal:t(function(s){return s.toString(10)},"decimal"),hexadecimal:t(function(s){return s>=0?"0x"+s.toString(16).toUpperCase():"-0x"+s.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var ZIe=ar((WIr,Aut)=>{"use strict";var Put=DM(),Efr=Py(),Cfr=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),kfr=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wfr(s){return s===null||!Cfr.test(s)?!1:isFinite(parseFloat(s,10))?!0:kfr.test(s)}t(wfr,"resolveYamlFloat");function Dfr(s){let o=s.toLowerCase(),f=o[0]==="-"?-1:1;return"+-".indexOf(o[0])>=0&&(o=o.slice(1)),o===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:o===".nan"?NaN:f*parseFloat(o,10)}t(Dfr,"constructYamlFloat");var Pfr=/^[-+]?[0-9]+e/;function Afr(s,o){if(isNaN(s))switch(o){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===s)switch(o){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===s)switch(o){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Put.isNegativeZero(s))return"-0.0";let f=s.toString(10);return Pfr.test(f)?f.replace("e",".e"):f}t(Afr,"representYamlFloat");function Nfr(s){return Object.prototype.toString.call(s)==="[object Number]"&&(s%1!==0||Put.isNegativeZero(s))}t(Nfr,"isFloat");Aut.exports=new Efr("tag:yaml.org,2002:float",{kind:"scalar",resolve:wfr,construct:Dfr,predicate:Nfr,represent:Afr,defaultStyle:"lowercase"})});var QIe=ar((VIr,Nut)=>{"use strict";Nut.exports=GIe().extend({implicit:[YIe(),KIe(),XIe(),ZIe()]})});var e4e=ar((HIr,Iut)=>{"use strict";Iut.exports=QIe()});var t4e=ar((GIr,Lut)=>{"use strict";var Ifr=Py(),Out=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ofr(s){return s===null?!1:Out.exec(s)!==null||Fut.exec(s)!==null}t(Ofr,"resolveYamlTimestamp");function Ffr(s){let o=0,f=null,d=Out.exec(s);if(d===null&&(d=Fut.exec(s)),d===null)throw new Error("Date resolve error");let y=+d[1],x=+d[2]-1,P=+d[3];if(!d[4])return new Date(Date.UTC(y,x,P));let F=+d[4],W=+d[5],G=+d[6];if(d[7]){for(o=d[7].slice(0,3);o.length<3;)o+="0";o=+o}if(d[9]){let de=+d[10],se=+(d[11]||0);f=(de*60+se)*6e4,d[9]==="-"&&(f=-f)}let be=new Date(Date.UTC(y,x,P,F,W,G,o));return f&&be.setTime(be.getTime()-f),be}t(Ffr,"constructYamlTimestamp");function Lfr(s){return s.toISOString()}t(Lfr,"representYamlTimestamp");Lut.exports=new Ifr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ofr,construct:Ffr,instanceOf:Date,represent:Lfr})});var r4e=ar((KIr,Rut)=>{"use strict";var Rfr=Py();function Mfr(s){return s==="<<"||s===null}t(Mfr,"resolveYamlMerge");Rut.exports=new Rfr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Mfr})});var i4e=ar((ZIr,Mut)=>{"use strict";var jfr=Py(),n4e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
83
+ \r`;function Bfr(s){if(s===null)return!1;let o=0,f=s.length,d=n4e;for(let y=0;y<f;y++){let x=d.indexOf(s.charAt(y));if(!(x>64)){if(x<0)return!1;o+=6}}return o%8===0}t(Bfr,"resolveYamlBinary");function Ufr(s){let o=s.replace(/[\r\n=]/g,""),f=o.length,d=n4e,y=0,x=[];for(let F=0;F<f;F++)F%4===0&&F&&(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)),y=y<<6|d.indexOf(o.charAt(F));let P=f%4*6;return P===0?(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)):P===18?(x.push(y>>10&255),x.push(y>>2&255)):P===12&&x.push(y>>4&255),new Uint8Array(x)}t(Ufr,"constructYamlBinary");function zfr(s){let o="",f=0,d=s.length,y=n4e;for(let P=0;P<d;P++)P%3===0&&P&&(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]),f=(f<<8)+s[P];let x=d%3;return x===0?(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]):x===2?(o+=y[f>>10&63],o+=y[f>>4&63],o+=y[f<<2&63],o+=y[64]):x===1&&(o+=y[f>>2&63],o+=y[f<<4&63],o+=y[64],o+=y[64]),o}t(zfr,"representYamlBinary");function $fr(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}t($fr,"isBinary");Mut.exports=new jfr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Bfr,construct:Ufr,predicate:$fr,represent:zfr})});var s4e=ar((e4r,jut)=>{"use strict";var Jfr=Py(),Wfr=Object.prototype.hasOwnProperty,qfr=Object.prototype.toString;function Vfr(s){if(s===null)return!0;let o=[],f=s;for(let d=0,y=f.length;d<y;d+=1){let x=f[d],P=!1;if(qfr.call(x)!=="[object Object]")return!1;let F;for(F in x)if(Wfr.call(x,F))if(!P)P=!0;else return!1;if(!P)return!1;if(o.indexOf(F)===-1)o.push(F);else return!1}return!0}t(Vfr,"resolveYamlOmap");function Hfr(s){return s!==null?s:[]}t(Hfr,"constructYamlOmap");jut.exports=new Jfr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Vfr,construct:Hfr})});var a4e=ar((r4r,But)=>{"use strict";var Gfr=Py(),Yfr=Object.prototype.toString;function Kfr(s){if(s===null)return!0;let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d];if(Yfr.call(x)!=="[object Object]")return!1;let P=Object.keys(x);if(P.length!==1)return!1;f[d]=[P[0],x[P[0]]]}return!0}t(Kfr,"resolveYamlPairs");function Xfr(s){if(s===null)return[];let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d],P=Object.keys(x);f[d]=[P[0],x[P[0]]]}return f}t(Xfr,"constructYamlPairs");But.exports=new Gfr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Kfr,construct:Xfr})});var o4e=ar((i4r,Uut)=>{"use strict";var Zfr=Py(),Qfr=Object.prototype.hasOwnProperty;function e_r(s){if(s===null)return!0;let o=s;for(let f in o)if(Qfr.call(o,f)&&o[f]!==null)return!1;return!0}t(e_r,"resolveYamlSet");function t_r(s){return s!==null?s:{}}t(t_r,"constructYamlSet");Uut.exports=new Zfr("tag:yaml.org,2002:set",{kind:"mapping",resolve:e_r,construct:t_r})});var wle=ar((a4r,zut)=>{"use strict";zut.exports=e4e().extend({implicit:[t4e(),r4e()],explicit:[i4e(),s4e(),a4e(),o4e()]})});var oft=ar((o4r,f4e)=>{"use strict";var jO=DM(),Yut=PM(),r_r=gut(),n_r=wle(),NE=Object.prototype.hasOwnProperty,Dle=1,Kut=2,Xut=3,Ple=4,c4e=1,i_r=2,$ut=3,s_r=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a_r=/[\x85\u2028\u2029]/,o_r=/[,\[\]{}]/,Zut=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Qut=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Jut(s){return Object.prototype.toString.call(s)}t(Jut,"_class");function qk(s){return s===10||s===13}t(qk,"isEol");function nA(s){return s===9||s===32}t(nA,"isWhiteSpace");function Qv(s){return s===9||s===32||s===10||s===13}t(Qv,"isWsOrEol");function AM(s){return s===44||s===91||s===93||s===123||s===125}t(AM,"isFlowIndicator");function c_r(s){if(s>=48&&s<=57)return s-48;let o=s|32;return o>=97&&o<=102?o-97+10:-1}t(c_r,"fromHexCode");function l_r(s){return s===120?2:s===117?4:s===85?8:0}t(l_r,"escapedHexLen");function u_r(s){return s>=48&&s<=57?s-48:-1}t(u_r,"fromDecimalCode");function Wut(s){switch(s){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
84
84
  `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(Wut,"simpleEscapeSequence");function f_r(s){return s<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320)}t(f_r,"charFromCodepoint");function eft(s,o,f){o==="__proto__"?Object.defineProperty(s,o,{configurable:!0,enumerable:!0,writable:!0,value:f}):s[o]=f}t(eft,"setProperty");var tft=new Array(256),rft=new Array(256);for(let s=0;s<256;s++)tft[s]=Wut(s)?1:0,rft[s]=Wut(s);function __r(s,o){this.input=s,this.filename=o.filename||null,this.schema=o.schema||n_r,this.onWarning=o.onWarning||null,this.legacy=o.legacy||!1,this.json=o.json||!1,this.listener=o.listener||null,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:100,this.maxTotalMergeKeys=typeof o.maxTotalMergeKeys=="number"?o.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=s.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(__r,"State");function nft(s,o){let f={name:s.filename,buffer:s.input.slice(0,-1),position:s.position,line:s.line,column:s.position-s.lineStart};return f.snippet=r_r(f),new Yut(o,f)}t(nft,"generateError");function bo(s,o){throw nft(s,o)}t(bo,"throwError");function Ale(s,o){s.onWarning&&s.onWarning.call(null,nft(s,o))}t(Ale,"throwWarning");function BO(s,o,f){let d=s.anchorMapTransactions;if(d.length!==0){let y=d[d.length-1];NE.call(y,o)||(y[o]={existed:NE.call(s.anchorMap,o),value:s.anchorMap[o]})}s.anchorMap[o]=f}t(BO,"storeAnchor");function p_r(s){s.anchorMapTransactions.push(Object.create(null))}t(p_r,"beginAnchorTransaction");function d_r(s){let o=s.anchorMapTransactions.pop(),f=s.anchorMapTransactions;if(f.length===0)return;let d=f[f.length-1],y=Object.keys(o);for(let x=0,P=y.length;x<P;x+=1){let F=y[x];NE.call(d,F)||(d[F]=o[F])}}t(d_r,"commitAnchorTransaction");function m_r(s){let o=s.anchorMapTransactions.pop(),f=Object.keys(o);for(let d=f.length-1;d>=0;d-=1){let y=o[f[d]];y.existed?s.anchorMap[f[d]]=y.value:delete s.anchorMap[f[d]]}}t(m_r,"rollbackAnchorTransaction");function ift(s){return{position:s.position,line:s.line,lineStart:s.lineStart,lineIndent:s.lineIndent,firstTabInLine:s.firstTabInLine,tag:s.tag,anchor:s.anchor,kind:s.kind,result:s.result}}t(ift,"snapshotState");function qut(s,o){s.position=o.position,s.line=o.line,s.lineStart=o.lineStart,s.lineIndent=o.lineIndent,s.firstTabInLine=o.firstTabInLine,s.tag=o.tag,s.anchor=o.anchor,s.kind=o.kind,s.result=o.result}t(qut,"restoreState");var Vut={YAML:t(function(o,f,d){o.version!==null&&bo(o,"duplication of %YAML directive"),d.length!==1&&bo(o,"YAML directive accepts exactly one argument");let y=/^([0-9]+)\.([0-9]+)$/.exec(d[0]);y===null&&bo(o,"ill-formed argument of the YAML directive");let x=parseInt(y[1],10),P=parseInt(y[2],10);x!==1&&bo(o,"unacceptable YAML version of the document"),o.version=d[0],o.checkLineBreaks=P<2,P!==1&&P!==2&&Ale(o,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(o,f,d){let y;d.length!==2&&bo(o,"TAG directive accepts exactly two arguments");let x=d[0];y=d[1],Zut.test(x)||bo(o,"ill-formed tag handle (first argument) of the TAG directive"),NE.call(o.tagMap,x)&&bo(o,'there is a previously declared suffix for "'+x+'" tag handle'),Qut.test(y)||bo(o,"ill-formed tag prefix (second argument) of the TAG directive");try{y=decodeURIComponent(y)}catch{bo(o,"tag prefix is malformed: "+y)}o.tagMap[x]=y},"handleTagDirective")};function vI(s,o,f,d){if(o<f){let y=s.input.slice(o,f);if(d)for(let x=0,P=y.length;x<P;x+=1){let F=y.charCodeAt(x);F===9||F>=32&&F<=1114111||bo(s,"expected valid JSON character")}else s_r.test(y)&&bo(s,"the stream contains non-printable characters");s.result+=y}}t(vI,"captureSegment");function Hut(s,o,f,d){jO.isObject(f)||bo(s,"cannot merge mappings; the provided source object is unacceptable");let y=Object.keys(f);for(let x=0,P=y.length;x<P;x+=1){let F=y[x];s.maxTotalMergeKeys!==-1&&++s.totalMergeKeys>s.maxTotalMergeKeys&&bo(s,"merge keys exceeded maxTotalMergeKeys ("+s.maxTotalMergeKeys+")"),NE.call(o,F)||(eft(o,F,f[F]),d[F]=!0)}}t(Hut,"mergeMappings");function NM(s,o,f,d,y,x,P,F,W){if(Array.isArray(y)){y=Array.prototype.slice.call(y);for(let G=0,be=y.length;G<be;G+=1)Array.isArray(y[G])&&bo(s,"nested arrays are not supported inside keys"),typeof y=="object"&&Jut(y[G])==="[object Object]"&&(y[G]="[object Object]")}if(typeof y=="object"&&Jut(y)==="[object Object]"&&(y="[object Object]"),y=String(y),o===null&&(o={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(x))for(let G=0,be=x.length;G<be;G+=1)Hut(s,o,x[G],f);else Hut(s,o,x,f);else!s.json&&!NE.call(f,y)&&NE.call(o,y)&&(s.line=P||s.line,s.lineStart=F||s.lineStart,s.position=W||s.position,bo(s,"duplicated mapping key")),eft(o,y,x),delete f[y];return o}t(NM,"storeMappingPair");function l4e(s){let o=s.input.charCodeAt(s.position);o===10?s.position++:o===13?(s.position++,s.input.charCodeAt(s.position)===10&&s.position++):bo(s,"a line break is expected"),s.line+=1,s.lineStart=s.position,s.firstTabInLine=-1}t(l4e,"readLineBreak");function Ym(s,o,f){let d=0,y=s.input.charCodeAt(s.position);for(;y!==0;){for(;nA(y);)y===9&&s.firstTabInLine===-1&&(s.firstTabInLine=s.position),y=s.input.charCodeAt(++s.position);if(o&&y===35)do y=s.input.charCodeAt(++s.position);while(y!==10&&y!==13&&y!==0);if(qk(y))for(l4e(s),y=s.input.charCodeAt(s.position),d++,s.lineIndent=0;y===32;)s.lineIndent++,y=s.input.charCodeAt(++s.position);else break}return f!==-1&&d!==0&&s.lineIndent<f&&Ale(s,"deficient indentation"),d}t(Ym,"skipSeparationSpace");function Nle(s){let o=s.position,f=s.input.charCodeAt(o);return!!((f===45||f===46)&&f===s.input.charCodeAt(o+1)&&f===s.input.charCodeAt(o+2)&&(o+=3,f=s.input.charCodeAt(o),f===0||Qv(f)))}t(Nle,"testDocumentSeparator");function u4e(s,o){o===1?s.result+=" ":o>1&&(s.result+=jO.repeat(`
85
85
  `,o-1))}t(u4e,"writeFoldedLines");function h_r(s,o,f){let d,y,x,P,F,W,G=s.kind,be=s.result,de=s.input.charCodeAt(s.position);if(Qv(de)||AM(de)||de===35||de===38||de===42||de===33||de===124||de===62||de===39||de===34||de===37||de===64||de===96)return!1;if(de===63||de===45){let se=s.input.charCodeAt(s.position+1);if(Qv(se)||f&&AM(se))return!1}for(s.kind="scalar",s.result="",d=y=s.position,x=!1;de!==0;){if(de===58){let se=s.input.charCodeAt(s.position+1);if(Qv(se)||f&&AM(se))break}else if(de===35){let se=s.input.charCodeAt(s.position-1);if(Qv(se))break}else{if(s.position===s.lineStart&&Nle(s)||f&&AM(de))break;if(qk(de))if(P=s.line,F=s.lineStart,W=s.lineIndent,Ym(s,!1,-1),s.lineIndent>=o){x=!0,de=s.input.charCodeAt(s.position);continue}else{s.position=y,s.line=P,s.lineStart=F,s.lineIndent=W;break}}x&&(vI(s,d,y,!1),u4e(s,s.line-P),d=y=s.position,x=!1),nA(de)||(y=s.position+1),de=s.input.charCodeAt(++s.position)}return vI(s,d,y,!1),s.result?!0:(s.kind=G,s.result=be,!1)}t(h_r,"readPlainScalar");function g_r(s,o){let f,d,y=s.input.charCodeAt(s.position);if(y!==39)return!1;for(s.kind="scalar",s.result="",s.position++,f=d=s.position;(y=s.input.charCodeAt(s.position))!==0;)if(y===39)if(vI(s,f,s.position,!0),y=s.input.charCodeAt(++s.position),y===39)f=s.position,s.position++,d=s.position;else return!0;else qk(y)?(vI(s,f,d,!0),u4e(s,Ym(s,!1,o)),f=d=s.position):s.position===s.lineStart&&Nle(s)?bo(s,"unexpected end of the document within a single quoted scalar"):(s.position++,nA(y)||(d=s.position));bo(s,"unexpected end of the stream within a single quoted scalar")}t(g_r,"readSingleQuotedScalar");function y_r(s,o){let f,d,y,x=s.input.charCodeAt(s.position);if(x!==34)return!1;for(s.kind="scalar",s.result="",s.position++,f=d=s.position;(x=s.input.charCodeAt(s.position))!==0;){if(x===34)return vI(s,f,s.position,!0),s.position++,!0;if(x===92){if(vI(s,f,s.position,!0),x=s.input.charCodeAt(++s.position),qk(x))Ym(s,!1,o);else if(x<256&&tft[x])s.result+=rft[x],s.position++;else if((y=l_r(x))>0){let P=y,F=0;for(;P>0;P--)x=s.input.charCodeAt(++s.position),(y=c_r(x))>=0?F=(F<<4)+y:bo(s,"expected hexadecimal character");s.result+=f_r(F),s.position++}else bo(s,"unknown escape sequence");f=d=s.position}else qk(x)?(vI(s,f,d,!0),u4e(s,Ym(s,!1,o)),f=d=s.position):s.position===s.lineStart&&Nle(s)?bo(s,"unexpected end of the document within a double quoted scalar"):(s.position++,nA(x)||(d=s.position))}bo(s,"unexpected end of the stream within a double quoted scalar")}t(y_r,"readDoubleQuotedScalar");function v_r(s,o){let f=!0,d,y,x,P=s.tag,F,W=s.anchor,G,be,de,se,Xe=Object.create(null),Ue,je,Vt,Ut=s.input.charCodeAt(s.position);if(Ut===91)G=93,se=!1,F=[];else if(Ut===123)G=125,se=!0,F={};else return!1;for(s.anchor!==null&&BO(s,s.anchor,F),Ut=s.input.charCodeAt(++s.position);Ut!==0;){if(Ym(s,!0,o),Ut=s.input.charCodeAt(s.position),Ut===G)return s.position++,s.tag=P,s.anchor=W,s.kind=se?"mapping":"sequence",s.result=F,!0;if(f?Ut===44&&bo(s,"expected the node content, but found ','"):bo(s,"missed comma between flow collection entries"),je=Ue=Vt=null,be=de=!1,Ut===63){let Ir=s.input.charCodeAt(s.position+1);Qv(Ir)&&(be=de=!0,s.position++,Ym(s,!0,o))}d=s.line,y=s.lineStart,x=s.position,IM(s,o,Dle,!1,!0),je=s.tag,Ue=s.result,Ym(s,!0,o),Ut=s.input.charCodeAt(s.position),(de||s.line===d)&&Ut===58&&(be=!0,Ut=s.input.charCodeAt(++s.position),Ym(s,!0,o),IM(s,o,Dle,!1,!0),Vt=s.result),se?NM(s,F,Xe,je,Ue,Vt,d,y,x):be?F.push(NM(s,null,Xe,je,Ue,Vt,d,y,x)):F.push(Ue),Ym(s,!0,o),Ut=s.input.charCodeAt(s.position),Ut===44?(f=!0,Ut=s.input.charCodeAt(++s.position)):f=!1}bo(s,"unexpected end of the stream within a flow collection")}t(v_r,"readFlowCollection");function b_r(s,o){let f,d=c4e,y=!1,x=!1,P=o,F=0,W=!1,G,be=s.input.charCodeAt(s.position);if(be===124)f=!1;else if(be===62)f=!0;else return!1;for(s.kind="scalar",s.result="";be!==0;)if(be=s.input.charCodeAt(++s.position),be===43||be===45)c4e===d?d=be===43?$ut:i_r:bo(s,"repeat of a chomping mode identifier");else if((G=u_r(be))>=0)G===0?bo(s,"bad explicit indentation width of a block scalar; it cannot be less than one"):x?bo(s,"repeat of an indentation width identifier"):(P=o+G-1,x=!0);else break;if(nA(be)){do be=s.input.charCodeAt(++s.position);while(nA(be));if(be===35)do be=s.input.charCodeAt(++s.position);while(!qk(be)&&be!==0)}for(;be!==0;){for(l4e(s),s.lineIndent=0,be=s.input.charCodeAt(s.position);(!x||s.lineIndent<P)&&be===32;)s.lineIndent++,be=s.input.charCodeAt(++s.position);if(!x&&s.lineIndent>P&&(P=s.lineIndent),qk(be)){F++;continue}if(!x&&P===0&&bo(s,"missing indentation for block scalar"),s.lineIndent<P){d===$ut?s.result+=jO.repeat(`
86
86
  `,y?1+F:F):d===c4e&&y&&(s.result+=`
@@ -89,7 +89,7 @@ Parsed value is empty`);return P}catch(P){throw!P&&o.continueOnError?new RO.Unma
89
89
  `,F+1)):F===0?y&&(s.result+=" "):s.result+=jO.repeat(`
90
90
  `,F):s.result+=jO.repeat(`
91
91
  `,y?1+F:F),y=!0,x=!0,F=0;let de=s.position;for(;!qk(be)&&be!==0;)be=s.input.charCodeAt(++s.position);vI(s,de,s.position,!1)}return!0}t(b_r,"readBlockScalar");function Gut(s,o){let f=s.tag,d=s.anchor,y=[],x=!1;if(s.firstTabInLine!==-1)return!1;s.anchor!==null&&BO(s,s.anchor,y);let P=s.input.charCodeAt(s.position);for(;P!==0&&(s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,bo(s,"tab characters must not be used in indentation")),P===45);){let F=s.input.charCodeAt(s.position+1);if(!Qv(F))break;if(x=!0,s.position++,Ym(s,!0,-1)&&s.lineIndent<=o){y.push(null),P=s.input.charCodeAt(s.position);continue}let W=s.line;if(IM(s,o,Xut,!1,!0),y.push(s.result),Ym(s,!0,-1),P=s.input.charCodeAt(s.position),(s.line===W||s.lineIndent>o)&&P!==0)bo(s,"bad indentation of a sequence entry");else if(s.lineIndent<o)break}return x?(s.tag=f,s.anchor=d,s.kind="sequence",s.result=y,!0):!1}t(Gut,"readBlockSequence");function sft(s,o,f){let d,y,x,P,F=s.tag,W=s.anchor,G={},be=Object.create(null),de=null,se=null,Xe=null,Ue=!1,je=!1;if(s.firstTabInLine!==-1)return!1;s.anchor!==null&&BO(s,s.anchor,G);let Vt=s.input.charCodeAt(s.position);for(;Vt!==0;){!Ue&&s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,bo(s,"tab characters must not be used in indentation"));let Ut=s.input.charCodeAt(s.position+1),Ir=s.line;if((Vt===63||Vt===58)&&Qv(Ut))Vt===63?(Ue&&(NM(s,G,be,de,se,null,y,x,P),de=se=Xe=null),je=!0,Ue=!0,d=!0):Ue?(Ue=!1,d=!0):bo(s,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),s.position+=1,Vt=Ut;else{if(y=s.line,x=s.lineStart,P=s.position,!IM(s,f,Kut,!1,!0))break;if(s.line===Ir){for(Vt=s.input.charCodeAt(s.position);nA(Vt);)Vt=s.input.charCodeAt(++s.position);if(Vt===58)Vt=s.input.charCodeAt(++s.position),Qv(Vt)||bo(s,"a whitespace character is expected after the key-value separator within a block mapping"),Ue&&(NM(s,G,be,de,se,null,y,x,P),de=se=Xe=null),je=!0,Ue=!1,d=!1,de=s.tag,se=s.result;else if(je)bo(s,"can not read an implicit mapping pair; a colon is missed");else return s.tag=F,s.anchor=W,!0}else if(je)bo(s,"can not read a block mapping entry; a multiline key may not be an implicit key");else return s.tag=F,s.anchor=W,!0}if((s.line===Ir||s.lineIndent>o)&&(Ue&&(y=s.line,x=s.lineStart,P=s.position),IM(s,o,Ple,!0,d)&&(Ue?se=s.result:Xe=s.result),Ue||(NM(s,G,be,de,se,Xe,y,x,P),de=se=Xe=null),Ym(s,!0,-1),Vt=s.input.charCodeAt(s.position)),(s.line===Ir||s.lineIndent>o)&&Vt!==0)bo(s,"bad indentation of a mapping entry");else if(s.lineIndent<o)break}return Ue&&NM(s,G,be,de,se,null,y,x,P),je&&(s.tag=F,s.anchor=W,s.kind="mapping",s.result=G),je}t(sft,"readBlockMapping");function S_r(s){let o=!1,f=!1,d,y,x=s.input.charCodeAt(s.position);if(x!==33)return!1;s.tag!==null&&bo(s,"duplication of a tag property"),x=s.input.charCodeAt(++s.position),x===60?(o=!0,x=s.input.charCodeAt(++s.position)):x===33?(f=!0,d="!!",x=s.input.charCodeAt(++s.position)):d="!";let P=s.position;if(o){do x=s.input.charCodeAt(++s.position);while(x!==0&&x!==62);s.position<s.length?(y=s.input.slice(P,s.position),x=s.input.charCodeAt(++s.position)):bo(s,"unexpected end of the stream within a verbatim tag")}else{for(;x!==0&&!Qv(x);)x===33&&(f?bo(s,"tag suffix cannot contain exclamation marks"):(d=s.input.slice(P-1,s.position+1),Zut.test(d)||bo(s,"named tag handle cannot contain such characters"),f=!0,P=s.position+1)),x=s.input.charCodeAt(++s.position);y=s.input.slice(P,s.position),o_r.test(y)&&bo(s,"tag suffix cannot contain flow indicator characters")}y&&!Qut.test(y)&&bo(s,"tag name cannot contain such characters: "+y);try{y=decodeURIComponent(y)}catch{bo(s,"tag name is malformed: "+y)}return o?s.tag=y:NE.call(s.tagMap,d)?s.tag=s.tagMap[d]+y:d==="!"?s.tag="!"+y:d==="!!"?s.tag="tag:yaml.org,2002:"+y:bo(s,'undeclared tag handle "'+d+'"'),!0}t(S_r,"readTagProperty");function T_r(s){let o=s.input.charCodeAt(s.position);if(o!==38)return!1;s.anchor!==null&&bo(s,"duplication of an anchor property"),o=s.input.charCodeAt(++s.position);let f=s.position;for(;o!==0&&!Qv(o)&&!AM(o);)o=s.input.charCodeAt(++s.position);return s.position===f&&bo(s,"name of an anchor node must contain at least one character"),s.anchor=s.input.slice(f,s.position),!0}t(T_r,"readAnchorProperty");function x_r(s){let o=s.input.charCodeAt(s.position);if(o!==42)return!1;o=s.input.charCodeAt(++s.position);let f=s.position;for(;o!==0&&!Qv(o)&&!AM(o);)o=s.input.charCodeAt(++s.position);s.position===f&&bo(s,"name of an alias node must contain at least one character");let d=s.input.slice(f,s.position);return NE.call(s.anchorMap,d)||bo(s,'unidentified alias "'+d+'"'),s.result=s.anchorMap[d],Ym(s,!0,-1),!0}t(x_r,"readAlias");function E_r(s,o,f,d){let y=ift(s);return p_r(s),qut(s,o),s.tag=null,s.anchor=null,s.kind=null,s.result=null,sft(s,f,d)&&s.kind==="mapping"?(d_r(s),!0):(m_r(s),qut(s,y),!1)}t(E_r,"tryReadBlockMappingFromProperty");function IM(s,o,f,d,y){let x,P,F=1,W=!1,G=!1,be=null,de,se,Xe;s.depth>=s.maxDepth&&bo(s,"nesting exceeded maxDepth ("+s.maxDepth+")"),s.depth+=1,s.listener!==null&&s.listener("open",s),s.tag=null,s.anchor=null,s.kind=null,s.result=null;let Ue=x=P=Ple===f||Xut===f;if(d&&Ym(s,!0,-1)&&(W=!0,s.lineIndent>o?F=1:s.lineIndent===o?F=0:s.lineIndent<o&&(F=-1)),F===1)for(;;){let je=s.input.charCodeAt(s.position),Vt=ift(s);if(W&&(je===33&&s.tag!==null||je===38&&s.anchor!==null)||!S_r(s)&&!T_r(s))break;be===null&&(be=Vt),Ym(s,!0,-1)?(W=!0,P=Ue,s.lineIndent>o?F=1:s.lineIndent===o?F=0:s.lineIndent<o&&(F=-1)):P=!1}if(P&&(P=W||y),F===1||Ple===f)if(Dle===f||Kut===f?se=o:se=o+1,Xe=s.position-s.lineStart,F===1)if(P&&(Gut(s,Xe)||sft(s,Xe,se))||v_r(s,se))G=!0;else{let je=s.input.charCodeAt(s.position);be!==null&&Ue&&!P&&je!==124&&je!==62&&E_r(s,be,be.position-be.lineStart,se)||x&&b_r(s,se)||g_r(s,se)||y_r(s,se)?G=!0:x_r(s)?(G=!0,(s.tag!==null||s.anchor!==null)&&bo(s,"alias node should not have any properties")):h_r(s,se,Dle===f)&&(G=!0,s.tag===null&&(s.tag="?")),s.anchor!==null&&BO(s,s.anchor,s.result)}else F===0&&(G=P&&Gut(s,Xe));if(s.tag===null)s.anchor!==null&&BO(s,s.anchor,s.result);else if(s.tag==="?"){s.result!==null&&s.kind!=="scalar"&&bo(s,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+s.kind+'"');for(let je=0,Vt=s.implicitTypes.length;je<Vt;je+=1)if(de=s.implicitTypes[je],de.resolve(s.result)){s.result=de.construct(s.result),s.tag=de.tag,s.anchor!==null&&BO(s,s.anchor,s.result);break}}else if(s.tag!=="!"){if(NE.call(s.typeMap[s.kind||"fallback"],s.tag))de=s.typeMap[s.kind||"fallback"][s.tag];else{de=null;let je=s.typeMap.multi[s.kind||"fallback"];for(let Vt=0,Ut=je.length;Vt<Ut;Vt+=1)if(s.tag.slice(0,je[Vt].tag.length)===je[Vt].tag){de=je[Vt];break}}de||bo(s,"unknown tag !<"+s.tag+">"),s.result!==null&&de.kind!==s.kind&&bo(s,"unacceptable node kind for !<"+s.tag+'> tag; it should be "'+de.kind+'", not "'+s.kind+'"'),de.resolve(s.result,s.tag)?(s.result=de.construct(s.result,s.tag),s.anchor!==null&&BO(s,s.anchor,s.result)):bo(s,"cannot resolve a node with !<"+s.tag+"> explicit tag")}return s.listener!==null&&s.listener("close",s),s.depth-=1,s.tag!==null||s.anchor!==null||G}t(IM,"composeNode");function C_r(s){let o=s.position,f=!1,d;for(s.version=null,s.checkLineBreaks=s.legacy,s.tagMap=Object.create(null),s.anchorMap=Object.create(null);(d=s.input.charCodeAt(s.position))!==0&&(Ym(s,!0,-1),d=s.input.charCodeAt(s.position),!(s.lineIndent>0||d!==37));){f=!0,d=s.input.charCodeAt(++s.position);let y=s.position;for(;d!==0&&!Qv(d);)d=s.input.charCodeAt(++s.position);let x=s.input.slice(y,s.position),P=[];for(x.length<1&&bo(s,"directive name must not be less than one character in length");d!==0;){for(;nA(d);)d=s.input.charCodeAt(++s.position);if(d===35){do d=s.input.charCodeAt(++s.position);while(d!==0&&!qk(d));break}if(qk(d))break;for(y=s.position;d!==0&&!Qv(d);)d=s.input.charCodeAt(++s.position);P.push(s.input.slice(y,s.position))}d!==0&&l4e(s),NE.call(Vut,x)?Vut[x](s,x,P):Ale(s,'unknown document directive "'+x+'"')}if(Ym(s,!0,-1),s.lineIndent===0&&s.input.charCodeAt(s.position)===45&&s.input.charCodeAt(s.position+1)===45&&s.input.charCodeAt(s.position+2)===45?(s.position+=3,Ym(s,!0,-1)):f&&bo(s,"directives end mark is expected"),IM(s,s.lineIndent-1,Ple,!1,!0),Ym(s,!0,-1),s.checkLineBreaks&&a_r.test(s.input.slice(o,s.position))&&Ale(s,"non-ASCII line breaks are interpreted as content"),s.documents.push(s.result),s.position===s.lineStart&&Nle(s)){s.input.charCodeAt(s.position)===46&&(s.position+=3,Ym(s,!0,-1));return}s.position<s.length-1&&bo(s,"end of the stream or a document separator is expected")}t(C_r,"readDocument");function aft(s,o){s=String(s),o=o||{},s.length!==0&&(s.charCodeAt(s.length-1)!==10&&s.charCodeAt(s.length-1)!==13&&(s+=`
92
- `),s.charCodeAt(0)===65279&&(s=s.slice(1)));let f=new __r(s,o),d=s.indexOf("\0");for(d!==-1&&(f.position=d,bo(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)C_r(f);return f.documents}t(aft,"loadDocuments");function k_r(s,o,f){o!==null&&typeof o=="object"&&typeof f>"u"&&(f=o,o=null);let d=aft(s,f);if(typeof o!="function")return d;for(let y=0,x=d.length;y<x;y+=1)o(d[y])}t(k_r,"loadAll");function w_r(s,o){let f=aft(s,o);if(f.length!==0){if(f.length===1)return f[0];throw new Yut("expected a single document in the stream, but found more")}}t(w_r,"load");f4e.exports.loadAll=k_r;f4e.exports.load=w_r});var Dft=ar((c4r,wft)=>{"use strict";var Fle=DM(),JH=PM(),D_r=wle(),hft=Object.prototype.toString,gft=Object.prototype.hasOwnProperty,h4e=65279,P_r=9,UH=10,A_r=13,N_r=32,I_r=33,O_r=34,_4e=35,F_r=37,L_r=38,R_r=39,M_r=42,yft=44,j_r=45,Ile=58,B_r=61,U_r=62,z_r=63,$_r=64,vft=91,bft=93,J_r=96,Sft=123,W_r=124,Tft=125,Ay={};Ay[0]="\\0";Ay[7]="\\a";Ay[8]="\\b";Ay[9]="\\t";Ay[10]="\\n";Ay[11]="\\v";Ay[12]="\\f";Ay[13]="\\r";Ay[27]="\\e";Ay[34]='\\"';Ay[92]="\\\\";Ay[133]="\\N";Ay[160]="\\_";Ay[8232]="\\L";Ay[8233]="\\P";var q_r=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],V_r=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function H_r(s,o){if(o===null)return{};let f={},d=Object.keys(o);for(let y=0,x=d.length;y<x;y+=1){let P=d[y],F=String(o[P]);P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2));let W=s.compiledTypeMap.fallback[P];W&&gft.call(W.styleAliases,F)&&(F=W.styleAliases[F]),f[P]=F}return f}t(H_r,"compileStyleMap");function G_r(s){let o,f,d=s.toString(16).toUpperCase();if(s<=255)o="x",f=2;else if(s<=65535)o="u",f=4;else if(s<=4294967295)o="U",f=8;else throw new JH("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+o+Fle.repeat("0",f-d.length)+d}t(G_r,"encodeHex");var Y_r=1,zH=2;function K_r(s){this.schema=s.schema||D_r,this.indent=Math.max(1,s.indent||2),this.noArrayIndent=s.noArrayIndent||!1,this.skipInvalid=s.skipInvalid||!1,this.flowLevel=Fle.isNothing(s.flowLevel)?-1:s.flowLevel,this.styleMap=H_r(this.schema,s.styles||null),this.sortKeys=s.sortKeys||!1,this.lineWidth=s.lineWidth||80,this.noRefs=s.noRefs||!1,this.noCompatMode=s.noCompatMode||!1,this.condenseFlow=s.condenseFlow||!1,this.quotingType=s.quotingType==='"'?zH:Y_r,this.forceQuotes=s.forceQuotes||!1,this.replacer=typeof s.replacer=="function"?s.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(K_r,"State");function cft(s,o){let f=Fle.repeat(" ",o),d=0,y="",x=s.length;for(;d<x;){let P,F=s.indexOf(`
92
+ `),s.charCodeAt(0)===65279&&(s=s.slice(1)));let f=new __r(s,o),d=s.indexOf("\0");for(d!==-1&&(f.position=d,bo(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)C_r(f);return f.documents}t(aft,"loadDocuments");function k_r(s,o,f){o!==null&&typeof o=="object"&&typeof f>"u"&&(f=o,o=null);let d=aft(s,f);if(typeof o!="function")return d;for(let y=0,x=d.length;y<x;y+=1)o(d[y])}t(k_r,"loadAll");function w_r(s,o){let f=aft(s,o);if(f.length!==0){if(f.length===1)return f[0];throw new Yut("expected a single document in the stream, but found more")}}t(w_r,"load");f4e.exports.loadAll=k_r;f4e.exports.load=w_r});var Dft=ar((l4r,wft)=>{"use strict";var Fle=DM(),JH=PM(),D_r=wle(),hft=Object.prototype.toString,gft=Object.prototype.hasOwnProperty,h4e=65279,P_r=9,UH=10,A_r=13,N_r=32,I_r=33,O_r=34,_4e=35,F_r=37,L_r=38,R_r=39,M_r=42,yft=44,j_r=45,Ile=58,B_r=61,U_r=62,z_r=63,$_r=64,vft=91,bft=93,J_r=96,Sft=123,W_r=124,Tft=125,Ay={};Ay[0]="\\0";Ay[7]="\\a";Ay[8]="\\b";Ay[9]="\\t";Ay[10]="\\n";Ay[11]="\\v";Ay[12]="\\f";Ay[13]="\\r";Ay[27]="\\e";Ay[34]='\\"';Ay[92]="\\\\";Ay[133]="\\N";Ay[160]="\\_";Ay[8232]="\\L";Ay[8233]="\\P";var q_r=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],V_r=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function H_r(s,o){if(o===null)return{};let f={},d=Object.keys(o);for(let y=0,x=d.length;y<x;y+=1){let P=d[y],F=String(o[P]);P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2));let W=s.compiledTypeMap.fallback[P];W&&gft.call(W.styleAliases,F)&&(F=W.styleAliases[F]),f[P]=F}return f}t(H_r,"compileStyleMap");function G_r(s){let o,f,d=s.toString(16).toUpperCase();if(s<=255)o="x",f=2;else if(s<=65535)o="u",f=4;else if(s<=4294967295)o="U",f=8;else throw new JH("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+o+Fle.repeat("0",f-d.length)+d}t(G_r,"encodeHex");var Y_r=1,zH=2;function K_r(s){this.schema=s.schema||D_r,this.indent=Math.max(1,s.indent||2),this.noArrayIndent=s.noArrayIndent||!1,this.skipInvalid=s.skipInvalid||!1,this.flowLevel=Fle.isNothing(s.flowLevel)?-1:s.flowLevel,this.styleMap=H_r(this.schema,s.styles||null),this.sortKeys=s.sortKeys||!1,this.lineWidth=s.lineWidth||80,this.noRefs=s.noRefs||!1,this.noCompatMode=s.noCompatMode||!1,this.condenseFlow=s.condenseFlow||!1,this.quotingType=s.quotingType==='"'?zH:Y_r,this.forceQuotes=s.forceQuotes||!1,this.replacer=typeof s.replacer=="function"?s.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(K_r,"State");function cft(s,o){let f=Fle.repeat(" ",o),d=0,y="",x=s.length;for(;d<x;){let P,F=s.indexOf(`
93
93
  `,d);F===-1?(P=s.slice(d),d=x):(P=s.slice(d,F+1),d=F+1),P.length&&P!==`
94
94
  `&&(y+=f),y+=P}return y}t(cft,"indentString");function p4e(s,o){return`
95
95
  `+Fle.repeat(" ",s.indent*o)}t(p4e,"generateNextLine");function X_r(s,o){for(let f=0,d=s.implicitTypes.length;f<d;f+=1)if(s.implicitTypes[f].resolve(o))return!0;return!1}t(X_r,"testImplicitResolving");function Ole(s){return s===N_r||s===P_r}t(Ole,"isWhitespace");function $H(s){return s>=32&&s<=126||s>=161&&s<=55295&&s!==8232&&s!==8233||s>=57344&&s<=65533&&s!==h4e||s>=65536&&s<=1114111}t($H,"isPrintable");function lft(s){return $H(s)&&s!==h4e&&s!==A_r&&s!==UH}t(lft,"isNsCharOrWhitespace");function uft(s,o,f){let d=lft(s),y=d&&!Ole(s);return(f?d:d&&s!==yft&&s!==vft&&s!==bft&&s!==Sft&&s!==Tft)&&s!==_4e&&!(o===Ile&&!y)||lft(o)&&!Ole(o)&&s===_4e||o===Ile&&y}t(uft,"isPlainSafe");function Z_r(s){return $H(s)&&s!==h4e&&!Ole(s)&&s!==j_r&&s!==z_r&&s!==Ile&&s!==yft&&s!==vft&&s!==bft&&s!==Sft&&s!==Tft&&s!==_4e&&s!==L_r&&s!==M_r&&s!==I_r&&s!==W_r&&s!==B_r&&s!==U_r&&s!==R_r&&s!==O_r&&s!==F_r&&s!==$_r&&s!==J_r}t(Z_r,"isPlainSafeFirst");function Q_r(s){return!Ole(s)&&s!==Ile}t(Q_r,"isPlainSafeLast");function BH(s,o){let f=s.charCodeAt(o),d;return f>=55296&&f<=56319&&o+1<s.length&&(d=s.charCodeAt(o+1),d>=56320&&d<=57343)?(f-55296)*1024+d-56320+65536:f}t(BH,"codePointAt");function xft(s){return/^\n* /.test(s)}t(xft,"needIndentIndicator");var Eft=1,d4e=2,Cft=3,kft=4,OM=5;function epr(s,o,f,d,y,x,P,F){let W,G=0,be=null,de=!1,se=!1,Xe=d!==-1,Ue=-1,je=Z_r(BH(s,0))&&Q_r(BH(s,s.length-1));if(o||P)for(W=0;W<s.length;G>=65536?W+=2:W++){if(G=BH(s,W),!$H(G))return OM;je=je&&uft(G,be,F),be=G}else{for(W=0;W<s.length;G>=65536?W+=2:W++){if(G=BH(s,W),G===UH)de=!0,Xe&&(se=se||W-Ue-1>d&&s[Ue+1]!==" ",Ue=W);else if(!$H(G))return OM;je=je&&uft(G,be,F),be=G}se=se||Xe&&W-Ue-1>d&&s[Ue+1]!==" "}return!de&&!se?je&&!P&&!y(s)?Eft:x===zH?OM:d4e:f>9&&xft(s)?OM:P?x===zH?OM:d4e:se?kft:Cft}t(epr,"chooseScalarStyle");function tpr(s,o,f,d,y){s.dump=(function(){if(o.length===0)return s.quotingType===zH?'""':"''";if(!s.noCompatMode&&(q_r.indexOf(o)!==-1||V_r.test(o)))return s.quotingType===zH?'"'+o+'"':"'"+o+"'";let x=s.indent*Math.max(1,f),P=s.lineWidth===-1?-1:Math.max(Math.min(s.lineWidth,40),s.lineWidth-x),F=d||s.flowLevel>-1&&f>=s.flowLevel;function W(G){return X_r(s,G)}switch(t(W,"testAmbiguity"),epr(o,F,s.indent,P,W,s.quotingType,s.forceQuotes&&!d,y)){case Eft:return o;case d4e:return"'"+o.replace(/'/g,"''")+"'";case Cft:return"|"+fft(o,s.indent)+_ft(cft(o,x));case kft:return">"+fft(o,s.indent)+_ft(cft(rpr(o,P),x));case OM:return'"'+npr(o,P)+'"';default:throw new JH("impossible error: invalid scalar style")}})()}t(tpr,"writeScalar");function fft(s,o){let f=xft(s)?String(o):"",d=s[s.length-1]===`
@@ -104,13 +104,13 @@ Parsed value is empty`);return P}catch(P){throw!P&&o.continueOnError?new RO.Unma
104
104
  `+s.slice(y,x),y=x+1),P=F;return W+=`
105
105
  `,s.length-y>o&&P>y?W+=s.slice(y,P)+`
106
106
  `+s.slice(P+1):W+=s.slice(y),W.slice(1)}t(pft,"foldLine");function npr(s){let o="",f=0;for(let d=0;d<s.length;f>=65536?d+=2:d++){f=BH(s,d);let y=Ay[f];!y&&$H(f)?(o+=s[d],f>=65536&&(o+=s[d+1])):o+=y||G_r(f)}return o}t(npr,"escapeString");function ipr(s,o,f){let d="",y=s.tag;for(let x=0,P=f.length;x<P;x+=1){let F=f[x];s.replacer&&(F=s.replacer.call(f,String(x),F)),(iA(s,o,F,!1,!1)||typeof F>"u"&&iA(s,o,null,!1,!1))&&(d!==""&&(d+=","+(s.condenseFlow?"":" ")),d+=s.dump)}s.tag=y,s.dump="["+d+"]"}t(ipr,"writeFlowSequence");function dft(s,o,f,d){let y="",x=s.tag;for(let P=0,F=f.length;P<F;P+=1){let W=f[P];s.replacer&&(W=s.replacer.call(f,String(P),W)),(iA(s,o+1,W,!0,!0,!1,!0)||typeof W>"u"&&iA(s,o+1,null,!0,!0,!1,!0))&&((!d||y!=="")&&(y+=p4e(s,o)),s.dump&&UH===s.dump.charCodeAt(0)?y+="-":y+="- ",y+=s.dump)}s.tag=x,s.dump=y||"[]"}t(dft,"writeBlockSequence");function spr(s,o,f){let d="",y=s.tag,x=Object.keys(f);for(let P=0,F=x.length;P<F;P+=1){let W="";d!==""&&(W+=", "),s.condenseFlow&&(W+='"');let G=x[P],be=f[G];s.replacer&&(be=s.replacer.call(f,G,be)),iA(s,o,G,!1,!1)&&(s.dump.length>1024&&(W+="? "),W+=s.dump+(s.condenseFlow?'"':"")+":"+(s.condenseFlow?"":" "),iA(s,o,be,!1,!1)&&(W+=s.dump,d+=W))}s.tag=y,s.dump="{"+d+"}"}t(spr,"writeFlowMapping");function apr(s,o,f,d){let y="",x=s.tag,P=Object.keys(f);if(s.sortKeys===!0)P.sort();else if(typeof s.sortKeys=="function")P.sort(s.sortKeys);else if(s.sortKeys)throw new JH("sortKeys must be a boolean or a function");for(let F=0,W=P.length;F<W;F+=1){let G="";(!d||y!=="")&&(G+=p4e(s,o));let be=P[F],de=f[be];if(s.replacer&&(de=s.replacer.call(f,be,de)),!iA(s,o+1,be,!0,!0,!0))continue;let se=s.tag!==null&&s.tag!=="?"||s.dump&&s.dump.length>1024;se&&(s.dump&&UH===s.dump.charCodeAt(0)?G+="?":G+="? "),G+=s.dump,se&&(G+=p4e(s,o)),iA(s,o+1,de,!0,se)&&(s.dump&&UH===s.dump.charCodeAt(0)?G+=":":G+=": ",G+=s.dump,y+=G)}s.tag=x,s.dump=y||"{}"}t(apr,"writeBlockMapping");function mft(s,o,f){let d=f?s.explicitTypes:s.implicitTypes;for(let y=0,x=d.length;y<x;y+=1){let P=d[y];if((P.instanceOf||P.predicate)&&(!P.instanceOf||typeof o=="object"&&o instanceof P.instanceOf)&&(!P.predicate||P.predicate(o))){if(f?P.multi&&P.representName?s.tag=P.representName(o):s.tag=P.tag:s.tag="?",P.represent){let F=s.styleMap[P.tag]||P.defaultStyle,W;if(hft.call(P.represent)==="[object Function]")W=P.represent(o,F);else if(gft.call(P.represent,F))W=P.represent[F](o,F);else throw new JH("!<"+P.tag+'> tag resolver accepts not "'+F+'" style');s.dump=W}return!0}}return!1}t(mft,"detectType");function iA(s,o,f,d,y,x,P){s.tag=null,s.dump=f,mft(s,f,!1)||mft(s,f,!0);let F=hft.call(s.dump),W=d;d&&(d=s.flowLevel<0||s.flowLevel>o);let G=F==="[object Object]"||F==="[object Array]",be,de;if(G&&(be=s.duplicates.indexOf(f),de=be!==-1),(s.tag!==null&&s.tag!=="?"||de||s.indent!==2&&o>0)&&(y=!1),de&&s.usedDuplicates[be])s.dump="*ref_"+be;else{if(G&&de&&!s.usedDuplicates[be]&&(s.usedDuplicates[be]=!0),F==="[object Object]")d&&Object.keys(s.dump).length!==0?(apr(s,o,s.dump,y),de&&(s.dump="&ref_"+be+s.dump)):(spr(s,o,s.dump),de&&(s.dump="&ref_"+be+" "+s.dump));else if(F==="[object Array]")d&&s.dump.length!==0?(s.noArrayIndent&&!P&&o>0?dft(s,o-1,s.dump,y):dft(s,o,s.dump,y),de&&(s.dump="&ref_"+be+s.dump)):(ipr(s,o,s.dump),de&&(s.dump="&ref_"+be+" "+s.dump));else if(F==="[object String]")s.tag!=="?"&&tpr(s,s.dump,o,x,W);else{if(F==="[object Undefined]")return!1;if(s.skipInvalid)return!1;throw new JH("unacceptable kind of an object to dump "+F)}if(s.tag!==null&&s.tag!=="?"){let se=encodeURI(s.tag[0]==="!"?s.tag.slice(1):s.tag).replace(/!/g,"%21");s.tag[0]==="!"?se="!"+se:se.slice(0,18)==="tag:yaml.org,2002:"?se="!!"+se.slice(18):se="!<"+se+">",s.dump=se+" "+s.dump}}return!0}t(iA,"writeNode");function opr(s,o){let f=[],d=[];m4e(s,f,d);let y=d.length;for(let x=0;x<y;x+=1)o.duplicates.push(f[d[x]]);o.usedDuplicates=new Array(y)}t(opr,"getDuplicateReferences");function m4e(s,o,f){if(s!==null&&typeof s=="object"){let d=o.indexOf(s);if(d!==-1)f.indexOf(d)===-1&&f.push(d);else if(o.push(s),Array.isArray(s))for(let y=0,x=s.length;y<x;y+=1)m4e(s[y],o,f);else{let y=Object.keys(s);for(let x=0,P=y.length;x<P;x+=1)m4e(s[y[x]],o,f)}}}t(m4e,"inspectNode");function cpr(s,o){o=o||{};let f=new K_r(o);f.noRefs||opr(s,f);let d=s;return f.replacer&&(d=f.replacer.call({"":d},"",d)),iA(f,0,d,!0,!0)?f.dump+`
107
- `:""}t(cpr,"dump");wft.exports.dump=cpr});var y4e=ar((u4r,M1)=>{"use strict";var Pft=oft(),lpr=Dft();function g4e(s,o){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}t(g4e,"renamed");M1.exports.Type=Py();M1.exports.Schema=WIe();M1.exports.FAILSAFE_SCHEMA=GIe();M1.exports.JSON_SCHEMA=QIe();M1.exports.CORE_SCHEMA=e4e();M1.exports.DEFAULT_SCHEMA=wle();M1.exports.load=Pft.load;M1.exports.loadAll=Pft.loadAll;M1.exports.dump=lpr.dump;M1.exports.YAMLException=PM();M1.exports.types={binary:i4e(),float:ZIe(),map:HIe(),null:YIe(),pairs:a4e(),set:o4e(),timestamp:t4e(),bool:KIe(),int:XIe(),merge:r4e(),omap:s4e(),seq:VIe(),str:qIe()};M1.exports.safeLoad=g4e("safeLoad","load");M1.exports.safeLoadAll=g4e("safeLoadAll","loadAll");M1.exports.safeDump=g4e("safeDump","dump")});var Aft=ar(WH=>{"use strict";var upr=WH&&WH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(WH,"__esModule",{value:!0});var fpr=vT(),_pr=upr(y4e()),ppr=y4e();WH.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string")try{return _pr.default.load(o,{schema:ppr.JSON_SCHEMA})}catch(f){throw new fpr.ParserError(f?.message||"Parser Error",s.url)}else return o}}});var Nft=ar(v4e=>{"use strict";Object.defineProperty(v4e,"__esModule",{value:!0});var dpr=vT(),mpr=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;v4e.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(s){return(typeof s.data=="string"||Buffer.isBuffer(s.data))&&mpr.test(s.url)},parse(s){if(typeof s.data=="string")return s.data;if(Buffer.isBuffer(s.data))return s.data.toString(this.encoding);throw new dpr.ParserError("data is not text",s.url)}}});var Ift=ar(b4e=>{"use strict";Object.defineProperty(b4e,"__esModule",{value:!0});var hpr=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;b4e.default={order:400,allowEmpty:!0,canParse(s){return Buffer.isBuffer(s.data)&&hpr.test(s.url)},parse(s){return Buffer.isBuffer(s.data)?s.data:Buffer.from(s.data)}}});var Rft=ar(IE=>{"use strict";var gpr=IE&&IE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),ypr=IE&&IE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),vpr=IE&&IE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&gpr(o,s,f);return ypr(o,s),o},bpr=IE&&IE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IE,"__esModule",{value:!0});var Spr=bpr(uo("fs")),Oft=hI(),Fft=vpr(yT()),Lft=vT();IE.default={order:100,canRead(s){return Fft.isFileSystemPath(s.url)},async read(s){let o;try{o=Fft.toFileSystemPath(s.url)}catch(f){throw new Lft.ResolverError(Oft.ono.uri(f,`Malformed URI: ${s.url}`),s.url)}try{return await Spr.default.promises.readFile(o)}catch(f){throw new Lft.ResolverError((0,Oft.ono)(f,`Error opening file "${o}"`),o)}}}});var Bft=ar(sA=>{"use strict";var Tpr=sA&&sA.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),xpr=sA&&sA.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Epr=sA&&sA.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Tpr(o,s,f);return xpr(o,s),o};Object.defineProperty(sA,"__esModule",{value:!0});var Lle=hI(),qH=Epr(yT()),Mft=vT();sA.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(s){return qH.isHttp(s.url)},read(s){let o=qH.parse(s.url);return typeof window<"u"&&!o.protocol&&(o.protocol=qH.parse(location.href).protocol),jft(o,this)}};async function jft(s,o,f){s=qH.parse(s);let d=f||[];d.push(s.href);try{let y=await Cpr(s,o);if(y.status>=400)throw(0,Lle.ono)({status:y.status},`HTTP ERROR ${y.status}`);if(y.status>=300){if(!Number.isNaN(o.redirects)&&d.length>o.redirects)throw new Mft.ResolverError((0,Lle.ono)({status:y.status},`Error downloading ${d[0]}.
107
+ `:""}t(cpr,"dump");wft.exports.dump=cpr});var y4e=ar((f4r,M1)=>{"use strict";var Pft=oft(),lpr=Dft();function g4e(s,o){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}t(g4e,"renamed");M1.exports.Type=Py();M1.exports.Schema=WIe();M1.exports.FAILSAFE_SCHEMA=GIe();M1.exports.JSON_SCHEMA=QIe();M1.exports.CORE_SCHEMA=e4e();M1.exports.DEFAULT_SCHEMA=wle();M1.exports.load=Pft.load;M1.exports.loadAll=Pft.loadAll;M1.exports.dump=lpr.dump;M1.exports.YAMLException=PM();M1.exports.types={binary:i4e(),float:ZIe(),map:HIe(),null:YIe(),pairs:a4e(),set:o4e(),timestamp:t4e(),bool:KIe(),int:XIe(),merge:r4e(),omap:s4e(),seq:VIe(),str:qIe()};M1.exports.safeLoad=g4e("safeLoad","load");M1.exports.safeLoadAll=g4e("safeLoadAll","loadAll");M1.exports.safeDump=g4e("safeDump","dump")});var Aft=ar(WH=>{"use strict";var upr=WH&&WH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(WH,"__esModule",{value:!0});var fpr=vT(),_pr=upr(y4e()),ppr=y4e();WH.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string")try{return _pr.default.load(o,{schema:ppr.JSON_SCHEMA})}catch(f){throw new fpr.ParserError(f?.message||"Parser Error",s.url)}else return o}}});var Nft=ar(v4e=>{"use strict";Object.defineProperty(v4e,"__esModule",{value:!0});var dpr=vT(),mpr=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;v4e.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(s){return(typeof s.data=="string"||Buffer.isBuffer(s.data))&&mpr.test(s.url)},parse(s){if(typeof s.data=="string")return s.data;if(Buffer.isBuffer(s.data))return s.data.toString(this.encoding);throw new dpr.ParserError("data is not text",s.url)}}});var Ift=ar(b4e=>{"use strict";Object.defineProperty(b4e,"__esModule",{value:!0});var hpr=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;b4e.default={order:400,allowEmpty:!0,canParse(s){return Buffer.isBuffer(s.data)&&hpr.test(s.url)},parse(s){return Buffer.isBuffer(s.data)?s.data:Buffer.from(s.data)}}});var Rft=ar(IE=>{"use strict";var gpr=IE&&IE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),ypr=IE&&IE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),vpr=IE&&IE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&gpr(o,s,f);return ypr(o,s),o},bpr=IE&&IE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IE,"__esModule",{value:!0});var Spr=bpr(uo("fs")),Oft=hI(),Fft=vpr(yT()),Lft=vT();IE.default={order:100,canRead(s){return Fft.isFileSystemPath(s.url)},async read(s){let o;try{o=Fft.toFileSystemPath(s.url)}catch(f){throw new Lft.ResolverError(Oft.ono.uri(f,`Malformed URI: ${s.url}`),s.url)}try{return await Spr.default.promises.readFile(o)}catch(f){throw new Lft.ResolverError((0,Oft.ono)(f,`Error opening file "${o}"`),o)}}}});var Bft=ar(sA=>{"use strict";var Tpr=sA&&sA.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),xpr=sA&&sA.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Epr=sA&&sA.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Tpr(o,s,f);return xpr(o,s),o};Object.defineProperty(sA,"__esModule",{value:!0});var Lle=hI(),qH=Epr(yT()),Mft=vT();sA.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(s){return qH.isHttp(s.url)},read(s){let o=qH.parse(s.url);return typeof window<"u"&&!o.protocol&&(o.protocol=qH.parse(location.href).protocol),jft(o,this)}};async function jft(s,o,f){s=qH.parse(s);let d=f||[];d.push(s.href);try{let y=await Cpr(s,o);if(y.status>=400)throw(0,Lle.ono)({status:y.status},`HTTP ERROR ${y.status}`);if(y.status>=300){if(!Number.isNaN(o.redirects)&&d.length>o.redirects)throw new Mft.ResolverError((0,Lle.ono)({status:y.status},`Error downloading ${d[0]}.
108
108
  Too many redirects:
109
109
  ${d.join(`
110
- `)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,Lle.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=qH.resolve(s.href,y.headers.location);return jft(x,o,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new Mft.ResolverError((0,Lle.ono)(y,`Error downloading ${s.href}`),s.href)}}t(jft,"download");async function Cpr(s,o){let f,d;o.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),o.timeout));let y=await fetch(s,{method:"GET",headers:o.headers||{},credentials:o.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(Cpr,"get")});var S4e=ar(aA=>{"use strict";var FM=aA&&aA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(aA,"__esModule",{value:!0});aA.getNewOptions=aA.getJsonSchemaRefParserDefaultOptions=void 0;var kpr=FM(_ut()),wpr=FM(Aft()),Dpr=FM(Nft()),Ppr=FM(Ift()),Apr=FM(Rft()),Npr=FM(Bft()),Ipr=t(()=>({parse:{json:{...kpr.default},yaml:{...wpr.default},text:{...Dpr.default},binary:{...Ppr.default}},resolve:{file:{...Apr.default},http:{...Npr.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");aA.getJsonSchemaRefParserDefaultOptions=Ipr;var Opr=t(s=>{let o=(0,aA.getJsonSchemaRefParserDefaultOptions)();return s&&zft(o,s),o},"getNewOptions");aA.getNewOptions=Opr;function zft(s,o){if(Uft(o)){let f=Object.keys(o).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=o[y],P=s[y];Uft(x)?s[y]=zft(P||{},x):x!==void 0&&(s[y]=x)}}return s}t(zft,"merge");function Uft(s){return s&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}t(Uft,"isMergeable")});var Jft=ar(Rle=>{"use strict";Object.defineProperty(Rle,"__esModule",{value:!0});Rle.normalizeArgs=$ft;var Fpr=S4e();function $ft(s){let o,f,d,y,x=Array.prototype.slice.call(s);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(o=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(o="",f=x[0],d=x[1]);try{d=(0,Fpr.getNewOptions)(d)}catch(P){console.error(`JSON Schema Ref Parser: Error normalizing options: ${P}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:o,schema:f,options:d,callback:y}}t($ft,"normalizeArgs");Rle.default=$ft});var Wft=ar(OE=>{"use strict";var Lpr=OE&&OE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Rpr=OE&&OE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Mpr=OE&&OE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Lpr(o,s,f);return Rpr(o,s),o},T4e=OE&&OE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(OE,"__esModule",{value:!0});var jpr=T4e(kM()),Bpr=T4e(OH()),Upr=T4e(jIe()),LM=Mpr(yT()),zpr=vT();function $pr(s,o){if(!o.resolve?.external)return Promise.resolve();try{let f=x4e(s.schema,s.$refs._root$Ref.path+"#",s.$refs,o);return Promise.all(f)}catch(f){return Promise.reject(f)}}t($pr,"resolveExternal");function x4e(s,o,f,d,y,x){y||(y=new Set);let P=[];if(s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!y.has(s)){y.add(s),jpr.default.isExternal$Ref(s)&&P.push(Jpr(s,o,f,d));let F=Object.keys(s);for(let W of F){let G=Bpr.default.join(o,W),be=s[W];P=P.concat(x4e(be,G,f,d,y,x))}}return P}t(x4e,"crawl");async function Jpr(s,o,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=LM.resolve(y?LM.cwd():o,s.$ref),P=LM.stripHash(x),F=f._$refs[P];if(F)return Promise.resolve(F.value);try{let W=await(0,Upr.default)(x,f,d),G=x4e(W,P+"#",f,d,new Set,!0);return Promise.all(G)}catch(W){if(!d?.continueOnError||!(0,zpr.isHandledError)(W))throw W;return f._$refs[P]&&(W.source=decodeURI(LM.stripHash(o)),W.path=LM.safePointerToPath(LM.getHash(o))),[]}}t(Jpr,"resolve$Ref");OE.default=$pr});var Hft=ar(FE=>{"use strict";var Wpr=FE&&FE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),qpr=FE&&FE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Vpr=FE&&FE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Wpr(o,s,f);return qpr(o,s),o},Vft=FE&&FE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(FE,"__esModule",{value:!0});var Mle=Vft(kM()),VH=Vft(OH()),E4e=Vpr(yT());function Hpr(s,o){let f=[];C4e(s,"schema",s.$refs._root$Ref.path+"#","#",0,f,s.$refs,o),Gpr(f)}t(Hpr,"bundle");function C4e(s,o,f,d,y,x,P,F){let W=o===null?s:s[o];if(W&&typeof W=="object"&&!ArrayBuffer.isView(W))if(Mle.default.isAllowed$Ref(W))qft(s,o,f,d,y,x,P,F);else{let G=Object.keys(W).sort((be,de)=>be==="definitions"?-1:de==="definitions"?1:be.length-de.length);for(let be of G){let de=VH.default.join(f,be),se=VH.default.join(d,be),Xe=W[be];Mle.default.isAllowed$Ref(Xe)?qft(W,be,f,se,y,x,P,F):C4e(W,be,de,se,y,x,P,F)}}}t(C4e,"crawl");function qft(s,o,f,d,y,x,P,F){let W=o===null?s:s[o],G=E4e.resolve(f,W.$ref),be=P._resolve(G,d,F);if(be===null)return;let se=VH.default.parse(d).length,Xe=E4e.stripHash(be.path),Ue=E4e.getHash(be.path),je=Xe!==P._root$Ref.path,Vt=Mle.default.isExtended$Ref(W);y+=be.indirections;let Ut=Ypr(x,s,o);if(Ut)if(se<Ut.depth||y<Ut.indirections)Kpr(x,Ut);else return;x.push({$ref:W,parent:s,key:o,pathFromRoot:d,depth:se,file:Xe,hash:Ue,value:be.value,circular:be.circular,extended:Vt,external:je,indirections:y}),(!Ut||je)&&C4e(be.value,null,be.path,d,y+1,x,P,F)}t(qft,"inventory$Ref");function Gpr(s){s.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let P=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return P!==F?F-P:y.pathFromRoot.length-x.pathFromRoot.length}});let o,f,d;for(let y of s)y.external?y.file===o&&y.hash===f?y.$ref.$ref=d:y.file===o&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=VH.default.join(d,VH.default.parse(y.hash.replace(f,"#"))):(o=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=Mle.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(Gpr,"remap");function Ypr(s,o,f){for(let d of s)if(d&&d.parent===o&&d.key===f)return d}t(Ypr,"findInInventory");function Kpr(s,o){let f=s.indexOf(o);s.splice(f,1)}t(Kpr,"removeFromInventory");FE.default=Hpr});var Qft=ar(LE=>{"use strict";var Xpr=LE&&LE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Zpr=LE&&LE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Qpr=LE&&LE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Xpr(o,s,f);return Zpr(o,s),o},Xft=LE&&LE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(LE,"__esModule",{value:!0});var jle=Xft(kM()),Gft=Xft(OH()),edr=hI(),Yft=Qpr(yT()),tdr=vT();LE.default=rdr;function rdr(s,o){let f=Date.now(),d=k4e(s.schema,s.$refs._root$Ref.path,"#",new Set,new Set,new Map,s.$refs,o,f);s.$refs.circular=d.circular,s.schema=d.value}t(rdr,"dereference");function k4e(s,o,f,d,y,x,P,F,W){let G,be={value:s,circular:!1};if(F&&F.timeoutMs&&Date.now()-W>F.timeoutMs)throw new tdr.TimeoutError(F.timeoutMs);let de=F.dereference||{},se=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(s))&&s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!se(f)){if(d.add(s),y.add(s),jle.default.isAllowed$Ref(s,F))G=Kft(s,o,f,d,y,x,P,F,W),be.circular=G.circular,be.value=G.value;else for(let Xe of Object.keys(s)){let Ue=Gft.default.join(o,Xe),je=Gft.default.join(f,Xe);if(se(je))continue;let Vt=s[Xe],Ut=!1;jle.default.isAllowed$Ref(Vt,F)?(G=Kft(Vt,Ue,je,d,y,x,P,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value,de?.onDereference?.(Vt.$ref,s[Xe],s,Xe))):d.has(Vt)?Ut=Zft(Ue,P,F):(G=k4e(Vt,Ue,je,d,y,x,P,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value)),be.circular=be.circular||Ut}d.delete(s)}return be}t(k4e,"crawl");function Kft(s,o,f,d,y,x,P,F,W){let be=jle.default.isExternal$Ref(s)&&F?.dereference?.externalReferenceResolution==="root",de=Yft.resolve(be?Yft.cwd():o,s.$ref),se=x.get(de);if(se&&!se.circular){let Ir=Object.keys(s);if(Ir.length>1){let wn={};for(let sn of Ir)sn!=="$ref"&&!(sn in se.value)&&(wn[sn]=s[sn]);return{circular:se.circular,value:Object.assign({},se.value,wn)}}return se}let Xe=P._resolve(de,o,F);if(Xe===null)return{circular:!1,value:null};let Ue=Xe.circular,je=Ue||d.has(Xe.value);je&&Zft(o,P,F);let Vt=jle.default.dereference(s,Xe.value);if(!je){let Ir=k4e(Vt,Xe.path,f,d,y,x,P,F,W);je=Ir.circular,Vt=Ir.value}je&&!Ue&&F.dereference?.circular==="ignore"&&(Vt=s),Ue&&(Vt.$ref=f);let Ut={circular:je,value:Vt};return Object.keys(s).length===1&&x.set(de,Ut),Ut}t(Kft,"dereference$Ref");function Zft(s,o,f){if(o.circular=!0,!f.dereference.circular)throw edr.ono.reference(`Circular $ref pointer found at ${s}`);return!0}t(Zft,"foundCircularReference")});var e_t=ar(w4e=>{"use strict";Object.defineProperty(w4e,"__esModule",{value:!0});function ndr(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(o){setTimeout(o,0)},"next")}t(ndr,"makeNext");w4e.default=ndr()});var r_t=ar(HH=>{"use strict";var idr=HH&&HH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(HH,"__esModule",{value:!0});HH.default=sdr;var t_t=idr(e_t());function sdr(s,o){if(s){o.then(function(f){(0,t_t.default)(function(){s(null,f)})},function(f){(0,t_t.default)(function(){s(f)})});return}else return o}t(sdr,"maybe")});var P4e=ar(Uc=>{"use strict";var adr=Uc&&Uc.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),odr=Uc&&Uc.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),cdr=Uc&&Uc.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&adr(o,s,f);return odr(o,s),o},zO=Uc&&Uc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getJsonSchemaRefParserDefaultOptions=Uc.jsonSchemaParserNormalizeArgs=Uc.dereferenceInternal=Uc.JSONParserErrorGroup=Uc.isHandledError=Uc.UnmatchedParserError=Uc.ParserError=Uc.ResolverError=Uc.MissingPointerError=Uc.InvalidPointerError=Uc.JSONParserError=Uc.UnmatchedResolverError=Uc.dereference=Uc.bundle=Uc.resolve=Uc.parse=Uc.$RefParser=void 0;var n_t=zO(out()),ldr=zO(jIe()),GH=zO(Jft());Uc.jsonSchemaParserNormalizeArgs=GH.default;var udr=zO(Wft()),fdr=zO(Hft()),s_t=zO(Qft());Uc.dereferenceInternal=s_t.default;var UO=cdr(yT()),bT=vT();Object.defineProperty(Uc,"JSONParserError",{enumerable:!0,get:t(function(){return bT.JSONParserError},"get")});Object.defineProperty(Uc,"InvalidPointerError",{enumerable:!0,get:t(function(){return bT.InvalidPointerError},"get")});Object.defineProperty(Uc,"MissingPointerError",{enumerable:!0,get:t(function(){return bT.MissingPointerError},"get")});Object.defineProperty(Uc,"ResolverError",{enumerable:!0,get:t(function(){return bT.ResolverError},"get")});Object.defineProperty(Uc,"ParserError",{enumerable:!0,get:t(function(){return bT.ParserError},"get")});Object.defineProperty(Uc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return bT.UnmatchedParserError},"get")});Object.defineProperty(Uc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return bT.UnmatchedResolverError},"get")});Object.defineProperty(Uc,"isHandledError",{enumerable:!0,get:t(function(){return bT.isHandledError},"get")});Object.defineProperty(Uc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return bT.JSONParserErrorGroup},"get")});var i_t=hI(),RE=zO(r_t()),_dr=S4e();Object.defineProperty(Uc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return _dr.getJsonSchemaRefParserDefaultOptions},"get")});var bI=class s{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new n_t.default}async parse(){let o=(0,GH.default)(arguments),f;if(!o.path&&!o.schema){let y=(0,i_t.ono)(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return(0,RE.default)(o.callback,Promise.reject(y))}this.schema=null,this.$refs=new n_t.default;let d="http";if(UO.isFileSystemPath(o.path))o.path=UO.fromFileSystemPath(o.path),d="file";else if(!o.path&&o.schema&&"$id"in o.schema&&o.schema.$id){let y=UO.parse(o.schema.$id),x=y.protocol==="https:"?443:80;o.path=`${y.protocol}//${y.hostname}:${x}`}if(o.path=UO.resolve(UO.cwd(),o.path),o.schema&&typeof o.schema=="object"){let y=this.$refs._add(o.path);y.value=o.schema,y.pathType=d,f=Promise.resolve(o.schema)}else f=(0,ldr.default)(o.path,this.$refs,o.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,RE.default)(o.callback,Promise.resolve(this.schema));if(o.options.continueOnError)return this.schema=null,(0,RE.default)(o.callback,Promise.resolve(this.schema));throw i_t.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!o.options.continueOnError||!(0,bT.isHandledError)(y)?(0,RE.default)(o.callback,Promise.reject(y)):(this.$refs._$refs[UO.stripHash(o.path)]&&this.$refs._$refs[UO.stripHash(o.path)].addError(y),(0,RE.default)(o.callback,Promise.resolve(null)))}}static parse(){let o=new s;return o.parse.apply(o,arguments)}async resolve(){let o=(0,GH.default)(arguments);try{return await this.parse(o.path,o.schema,o.options),await(0,udr.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.$refs))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}static resolve(){let o=new s;return o.resolve.apply(o,arguments)}static bundle(){let o=new s;return o.bundle.apply(o,arguments)}async bundle(){let o=(0,GH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,fdr.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}static dereference(){let o=new s;return o.dereference.apply(o,arguments)}async dereference(){let o=(0,GH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,s_t.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}};Uc.$RefParser=bI;Uc.default=bI;function D4e(s){if(bT.JSONParserErrorGroup.getParserErrors(s).length>0)throw new bT.JSONParserErrorGroup(s)}t(D4e,"finalize");Uc.parse=bI.parse;Uc.resolve=bI.resolve;Uc.bundle=bI.bundle;Uc.dereference=bI.dereference});var M4e=ar((XH,P_t)=>{"use strict";Object.defineProperty(XH,"__esModule",{value:!0});var KH=xce(),jE=tM();function D_t(s,o){if(!s.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=s.scope.opts;return typeof o=="function"?y(o.source):o!==void 0?x(o,d):x(s.schemas,F=>F.meta?void 0:s.compile(F.schema));function d(F){let W=s.getSchema(F);if(!W)throw new Error(`moduleCode: no schema with id ${F}`);return W}function y(F){let W={},G=F?.validateName,be=P(W,F);return s.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${be}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${be}`}function x(F,W){var G;let be={},de=(0,jE._)`"use strict";`;for(let se in F){let Xe=W(F[se]);if(Xe){let Ue=P(be,Xe.source),je=s.opts.code.esm?(0,jE._)`export const ${(0,jE.getEsmExportName)(se)}`:(0,jE._)`exports${(0,jE.getProperty)(se)}`;de=(0,jE._)`${de}${f}${je} = ${(G=Xe.source)===null||G===void 0?void 0:G.validateName};${f}${Ue}`}}return`${de}`}function P(F,W){if(!W)throw new Error('moduleCode: function does not have "source" property');if(se(W.validateName)===KH.UsedValueState.Completed)return jE.nil;Xe(W.validateName,KH.UsedValueState.Started);let G=s.scope.scopeCode(W.scopeValues,F,de),be=new jE._Code(`${G}${f}${W.validateCode}`);return W.evaluated?(0,jE._)`${be}${W.validateName}.evaluated = ${W.evaluated};${f}`:be;function de(Ue){var je;let Vt=(je=Ue.value)===null||je===void 0?void 0:je.ref;if(Ue.prefix==="validate"&&typeof Vt=="function")return P(F,Vt.source);if((Ue.prefix==="root"||Ue.prefix==="wrapper")&&typeof Vt=="object"){let{validate:Ut,validateName:Ir}=Vt;if(!Ir)throw new Error("ajv internal error");let wn=s.opts.code.es5?KH.varKinds.var:KH.varKinds.const,sn=(0,jE._)`${wn} ${Ue} = {validate: ${Ir}};`;if(se(Ir)===KH.UsedValueState.Started)return sn;let Jn=P(F,Ut?.source);return(0,jE._)`${sn}${f}${Jn}`}}function se(Ue){var je;return(je=F[Ue.prefix])===null||je===void 0?void 0:je.get(Ue)}function Xe(Ue,je){let{prefix:Vt}=Ue;(F[Vt]=F[Vt]||new Map).set(Ue,je)}}}t(D_t,"standaloneCode");P_t.exports=XH=D_t;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=D_t});var M_t=ar(Hk=>{"use strict";Object.defineProperty(Hk,"__esModule",{value:!0});Hk.formatNames=Hk.fastFormats=Hk.fullFormats=void 0;function Vk(s,o){return{validate:s,compare:o}}t(Vk,"fmtDef");Hk.fullFormats={date:Vk(O_t,z4e),time:Vk(B4e(!0),$4e),"date-time":Vk(A_t(!0),L_t),"iso-time":Vk(B4e(),F_t),"iso-date-time":Vk(A_t(),R_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Udr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Hdr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:zdr,int32:{type:"number",validate:Wdr},int64:{type:"number",validate:qdr},float:{type:"number",validate:I_t},double:{type:"number",validate:I_t},password:!0,binary:!0};Hk.fastFormats={...Hk.fullFormats,date:Vk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,z4e),time:Vk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,$4e),"date-time":Vk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,L_t),"iso-time":Vk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,F_t),"iso-date-time":Vk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,R_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Hk.formatNames=Object.keys(Hk.fullFormats);function Ldr(s){return s%4===0&&(s%100!==0||s%400===0)}t(Ldr,"isLeapYear");var Rdr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Mdr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function O_t(s){let o=Rdr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Ldr(f)?29:Mdr[d])}t(O_t,"date");function z4e(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(z4e,"compareDate");var j4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function B4e(s){return t(function(f){let d=j4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&P<61},"time")}t(B4e,"getTime");function $4e(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t($4e,"compareTime");function F_t(s,o){if(!(s&&o))return;let f=j4e.exec(s),d=j4e.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(F_t,"compareIsoTime");var U4e=/t|\s/i;function A_t(s){let o=B4e(s);return t(function(d){let y=d.split(U4e);return y.length===2&&O_t(y[0])&&o(y[1])},"date_time")}t(A_t,"getDateTime");function L_t(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(L_t,"compareDateTime");function R_t(s,o){if(!(s&&o))return;let[f,d]=s.split(U4e),[y,x]=o.split(U4e),P=z4e(f,y);if(P!==void 0)return P||$4e(d,x)}t(R_t,"compareIsoDateTime");var jdr=/\/|:/,Bdr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Udr(s){return jdr.test(s)&&Bdr.test(s)}t(Udr,"uri");var N_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function zdr(s){return N_t.lastIndex=0,N_t.test(s)}t(zdr,"byte");var $dr=-(2**31),Jdr=2**31-1;function Wdr(s){return Number.isInteger(s)&&s<=Jdr&&s>=$dr}t(Wdr,"validateInt32");function qdr(s){return Number.isInteger(s)}t(qdr,"validateInt64");function I_t(){return!0}t(I_t,"validateNumber");var Vdr=/[^\\]\\Z/;function Hdr(s){if(Vdr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(Hdr,"regex")});var j_t=ar(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.formatLimitDefinition=void 0;var Gdr=DH(),BE=Ec(),TI=BE.operators,Jle={formatMaximum:{okStr:"<=",ok:TI.LTE,fail:TI.GT},formatMinimum:{okStr:">=",ok:TI.GTE,fail:TI.LT},formatExclusiveMaximum:{okStr:"<",ok:TI.LT,fail:TI.GTE},formatExclusiveMinimum:{okStr:">",ok:TI.GT,fail:TI.LTE}},Ydr={message:t(({keyword:s,schemaCode:o})=>(0,BE.str)`should be ${Jle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,BE._)`{comparison: ${Jle[s].okStr}, limit: ${o}}`,"params")};jM.formatLimitDefinition={keyword:Object.keys(Jle),type:"string",schemaType:"string",$data:!0,error:Ydr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:P,self:F}=x;if(!P.validateFormats)return;let W=new Gdr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Xe=o.const("fmt",(0,BE._)`${se}[${W.schemaCode}]`);s.fail$data((0,BE.or)((0,BE._)`typeof ${Xe} != "object"`,(0,BE._)`${Xe} instanceof RegExp`,(0,BE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:P.code.formats?(0,BE._)`${P.code.formats}${(0,BE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,BE._)`${se}.compare(${f}, ${d}) ${Jle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Kdr=t(s=>(s.addKeyword(jM.formatLimitDefinition),s),"formatLimitPlugin");jM.default=Kdr});var q4e=ar((ZH,z_t)=>{"use strict";Object.defineProperty(ZH,"__esModule",{value:!0});var BM=M_t(),Xdr=j_t(),J4e=Ec(),B_t=new J4e.Name("fullFormats"),Zdr=new J4e.Name("fastFormats"),W4e=t((s,o={keywords:!0})=>{if(Array.isArray(o))return U_t(s,o,BM.fullFormats,B_t),s;let[f,d]=o.mode==="fast"?[BM.fastFormats,Zdr]:[BM.fullFormats,B_t],y=o.formats||BM.formatNames;return U_t(s,y,f,d),o.keywords&&(0,Xdr.default)(s),s},"formatsPlugin");W4e.get=(s,o="full")=>{let d=(o==="fast"?BM.fastFormats:BM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function U_t(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,J4e._)`require("ajv-formats/dist/formats").${d}`);for(let P of o)s.addFormat(P,f[P])}t(U_t,"addFormats");z_t.exports=ZH=W4e;Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=W4e});var Ipt=ar((J7r,Npt)=>{var Gmr=Object.prototype.toString,i3e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Ymr(s){return Gmr.call(s).slice(8,-1)==="ArrayBuffer"}t(Ymr,"isArrayBuffer");function Kmr(s,o,f){o>>>=0;var d=s.byteLength-o;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return i3e?Buffer.from(s.slice(o,o+f)):new Buffer(new Uint8Array(s.slice(o,o+f)))}t(Kmr,"fromArrayBuffer");function Xmr(s,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Buffer.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');return i3e?Buffer.from(s,o):new Buffer(s,o)}t(Xmr,"fromString");function Zmr(s,o,f){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return Ymr(s)?Kmr(s,o,f):typeof s=="string"?Xmr(s,o):i3e?Buffer.from(s):new Buffer(s)}t(Zmr,"bufferFrom");Npt.exports=Zmr});var Upt=ar((VO,c3e)=>{var Qmr=uo("source-map").SourceMapConsumer,s3e=uo("path"),Kk;try{Kk=uo("fs"),(!Kk.existsSync||!Kk.readFileSync)&&(Kk=null)}catch{}var ehr=Ipt();function Opt(s,o){return s.require(o)}t(Opt,"dynamicRequire");var Fpt=!1,Lpt=!1,a3e=!1,sG="auto",qO={},aG={},thr=/^data:application\/json[^,]+base64,/,CI=[],kI=[];function l3e(){return sG==="browser"?!0:sG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(l3e,"isInBrowser");function rhr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(rhr,"hasGlobalProcessEventEmitter");function nhr(){return typeof process=="object"&&process!==null?process.version:""}t(nhr,"globalProcessVersion");function ihr(){if(typeof process=="object"&&process!==null)return process.stderr}t(ihr,"globalProcessStderr");function shr(s){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(s)}t(shr,"globalProcessExit");function Xle(s){return function(o){for(var f=0;f<s.length;f++){var d=s[f](o);if(d)return d}return null}}t(Xle,"handlerExec");var u3e=Xle(CI);CI.push(function(s){if(s=s.trim(),/^file:/.test(s)&&(s=s.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),s in qO)return qO[s];var o="";try{if(Kk)Kk.existsSync(s)&&(o=Kk.readFileSync(s,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),f.readyState===4&&f.status===200&&(o=f.responseText)}}catch{}return qO[s]=o});function o3e(s,o){if(!s)return o;var f=s3e.dirname(s),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+s3e.resolve(f.slice(y.length),o).replace(/\\/g,"/")):y+s3e.resolve(f.slice(y.length),o)}t(o3e,"supportRelativeURL");function ahr(s){var o;if(l3e())try{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),o=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}o=u3e(s);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,P;P=y.exec(o);)x=P;return x?x[1]:null}t(ahr,"retrieveSourceMapURL");var f3e=Xle(kI);kI.push(function(s){var o=ahr(s);if(!o)return null;var f;if(thr.test(o)){var d=o.slice(o.indexOf(",")+1);f=ehr(d,"base64").toString(),o=s}else o=o3e(s,o),f=u3e(o);return f?{url:o,map:f}:null});function _3e(s){var o=aG[s.source];if(!o){var f=f3e(s.source);f?(o=aG[s.source]={url:f.url,map:new Qmr(f.map)},o.map.sourcesContent&&o.map.sources.forEach(function(y,x){var P=o.map.sourcesContent[x];if(P){var F=o3e(o.url,y);qO[F]=P}})):o=aG[s.source]={url:null,map:null}}if(o&&o.map&&typeof o.map.originalPositionFor=="function"){var d=o.map.originalPositionFor(s);if(d.source!==null)return d.source=o3e(o.url,d.source),d}return s}t(_3e,"mapSourcePosition");function Mpt(s){var o=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(s);if(o){var f=_3e({source:o[2],line:+o[3],column:o[4]-1});return"eval at "+o[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return o=/^eval at ([^(]+) \((.+)\)$/.exec(s),o?"eval at "+o[1]+" ("+Mpt(o[2])+")":s}t(Mpt,"mapEvalOrigin");function ohr(){var s,o="";if(this.isNative())o="native";else{s=this.getScriptNameOrSourceURL(),!s&&this.isEval()&&(o=this.getEvalOrigin(),o+=", "),s?o+=s:o+="<anonymous>";var f=this.getLineNumber();if(f!=null){o+=":"+f;var d=this.getColumnNumber();d&&(o+=":"+d)}}var y="",x=this.getFunctionName(),P=!0,F=this.isConstructor(),W=!(this.isToplevel()||F);if(W){var G=this.getTypeName();G==="[object Object]"&&(G="null");var be=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,be&&x.indexOf("."+be)!=x.length-be.length-1&&(y+=" [as "+be+"]")):y+=G+"."+(be||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=o,P=!1);return P&&(y+=" ("+o+")"),y}t(ohr,"CallSiteToString");function Rpt(s){var o={};return Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(function(f){o[f]=/^(?:is|get)/.test(f)?function(){return s[f].call(s)}:s[f]}),o.toString=ohr,o}t(Rpt,"cloneCallSite");function jpt(s,o){if(o===void 0&&(o={nextPosition:null,curPosition:null}),s.isNative())return o.curPosition=null,s;var f=s.getFileName()||s.getScriptNameOrSourceURL();if(f){var d=s.getLineNumber(),y=s.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,P=x.test(nhr())?0:62;d===1&&y>P&&!l3e()&&!s.isEval()&&(y-=P);var F=_3e({source:f,line:d,column:y});o.curPosition=F,s=Rpt(s);var W=s.getFunctionName;return s.getFunctionName=function(){return o.nextPosition==null?W():o.nextPosition.name||W()},s.getFileName=function(){return F.source},s.getLineNumber=function(){return F.line},s.getColumnNumber=function(){return F.column+1},s.getScriptNameOrSourceURL=function(){return F.source},s}var G=s.isEval()&&s.getEvalOrigin();return G&&(G=Mpt(G),s=Rpt(s),s.getEvalOrigin=function(){return G}),s}t(jpt,"wrapCallSite");function chr(s,o){a3e&&(qO={},aG={});for(var f=s.name||"Error",d=s.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},P=[],F=o.length-1;F>=0;F--)P.push(`
110
+ `)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,Lle.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=qH.resolve(s.href,y.headers.location);return jft(x,o,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new Mft.ResolverError((0,Lle.ono)(y,`Error downloading ${s.href}`),s.href)}}t(jft,"download");async function Cpr(s,o){let f,d;o.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),o.timeout));let y=await fetch(s,{method:"GET",headers:o.headers||{},credentials:o.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(Cpr,"get")});var S4e=ar(aA=>{"use strict";var FM=aA&&aA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(aA,"__esModule",{value:!0});aA.getNewOptions=aA.getJsonSchemaRefParserDefaultOptions=void 0;var kpr=FM(_ut()),wpr=FM(Aft()),Dpr=FM(Nft()),Ppr=FM(Ift()),Apr=FM(Rft()),Npr=FM(Bft()),Ipr=t(()=>({parse:{json:{...kpr.default},yaml:{...wpr.default},text:{...Dpr.default},binary:{...Ppr.default}},resolve:{file:{...Apr.default},http:{...Npr.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");aA.getJsonSchemaRefParserDefaultOptions=Ipr;var Opr=t(s=>{let o=(0,aA.getJsonSchemaRefParserDefaultOptions)();return s&&zft(o,s),o},"getNewOptions");aA.getNewOptions=Opr;function zft(s,o){if(Uft(o)){let f=Object.keys(o).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=o[y],P=s[y];Uft(x)?s[y]=zft(P||{},x):x!==void 0&&(s[y]=x)}}return s}t(zft,"merge");function Uft(s){return s&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}t(Uft,"isMergeable")});var Jft=ar(Rle=>{"use strict";Object.defineProperty(Rle,"__esModule",{value:!0});Rle.normalizeArgs=$ft;var Fpr=S4e();function $ft(s){let o,f,d,y,x=Array.prototype.slice.call(s);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(o=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(o="",f=x[0],d=x[1]);try{d=(0,Fpr.getNewOptions)(d)}catch(P){console.error(`JSON Schema Ref Parser: Error normalizing options: ${P}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:o,schema:f,options:d,callback:y}}t($ft,"normalizeArgs");Rle.default=$ft});var Wft=ar(OE=>{"use strict";var Lpr=OE&&OE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Rpr=OE&&OE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Mpr=OE&&OE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Lpr(o,s,f);return Rpr(o,s),o},T4e=OE&&OE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(OE,"__esModule",{value:!0});var jpr=T4e(kM()),Bpr=T4e(OH()),Upr=T4e(jIe()),LM=Mpr(yT()),zpr=vT();function $pr(s,o){if(!o.resolve?.external)return Promise.resolve();try{let f=x4e(s.schema,s.$refs._root$Ref.path+"#",s.$refs,o);return Promise.all(f)}catch(f){return Promise.reject(f)}}t($pr,"resolveExternal");function x4e(s,o,f,d,y,x){y||(y=new Set);let P=[];if(s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!y.has(s)){y.add(s),jpr.default.isExternal$Ref(s)&&P.push(Jpr(s,o,f,d));let F=Object.keys(s);for(let W of F){let G=Bpr.default.join(o,W),be=s[W];P=P.concat(x4e(be,G,f,d,y,x))}}return P}t(x4e,"crawl");async function Jpr(s,o,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=LM.resolve(y?LM.cwd():o,s.$ref),P=LM.stripHash(x),F=f._$refs[P];if(F)return Promise.resolve(F.value);try{let W=await(0,Upr.default)(x,f,d),G=x4e(W,P+"#",f,d,new Set,!0);return Promise.all(G)}catch(W){if(!d?.continueOnError||!(0,zpr.isHandledError)(W))throw W;return f._$refs[P]&&(W.source=decodeURI(LM.stripHash(o)),W.path=LM.safePointerToPath(LM.getHash(o))),[]}}t(Jpr,"resolve$Ref");OE.default=$pr});var Hft=ar(FE=>{"use strict";var Wpr=FE&&FE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),qpr=FE&&FE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Vpr=FE&&FE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Wpr(o,s,f);return qpr(o,s),o},Vft=FE&&FE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(FE,"__esModule",{value:!0});var Mle=Vft(kM()),VH=Vft(OH()),E4e=Vpr(yT());function Hpr(s,o){let f=[];C4e(s,"schema",s.$refs._root$Ref.path+"#","#",0,f,s.$refs,o),Gpr(f)}t(Hpr,"bundle");function C4e(s,o,f,d,y,x,P,F){let W=o===null?s:s[o];if(W&&typeof W=="object"&&!ArrayBuffer.isView(W))if(Mle.default.isAllowed$Ref(W))qft(s,o,f,d,y,x,P,F);else{let G=Object.keys(W).sort((be,de)=>be==="definitions"?-1:de==="definitions"?1:be.length-de.length);for(let be of G){let de=VH.default.join(f,be),se=VH.default.join(d,be),Xe=W[be];Mle.default.isAllowed$Ref(Xe)?qft(W,be,f,se,y,x,P,F):C4e(W,be,de,se,y,x,P,F)}}}t(C4e,"crawl");function qft(s,o,f,d,y,x,P,F){let W=o===null?s:s[o],G=E4e.resolve(f,W.$ref),be=P._resolve(G,d,F);if(be===null)return;let se=VH.default.parse(d).length,Xe=E4e.stripHash(be.path),Ue=E4e.getHash(be.path),je=Xe!==P._root$Ref.path,Vt=Mle.default.isExtended$Ref(W);y+=be.indirections;let Ut=Ypr(x,s,o);if(Ut)if(se<Ut.depth||y<Ut.indirections)Kpr(x,Ut);else return;x.push({$ref:W,parent:s,key:o,pathFromRoot:d,depth:se,file:Xe,hash:Ue,value:be.value,circular:be.circular,extended:Vt,external:je,indirections:y}),(!Ut||je)&&C4e(be.value,null,be.path,d,y+1,x,P,F)}t(qft,"inventory$Ref");function Gpr(s){s.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let P=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return P!==F?F-P:y.pathFromRoot.length-x.pathFromRoot.length}});let o,f,d;for(let y of s)y.external?y.file===o&&y.hash===f?y.$ref.$ref=d:y.file===o&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=VH.default.join(d,VH.default.parse(y.hash.replace(f,"#"))):(o=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=Mle.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(Gpr,"remap");function Ypr(s,o,f){for(let d of s)if(d&&d.parent===o&&d.key===f)return d}t(Ypr,"findInInventory");function Kpr(s,o){let f=s.indexOf(o);s.splice(f,1)}t(Kpr,"removeFromInventory");FE.default=Hpr});var Qft=ar(LE=>{"use strict";var Xpr=LE&&LE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Zpr=LE&&LE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Qpr=LE&&LE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Xpr(o,s,f);return Zpr(o,s),o},Xft=LE&&LE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(LE,"__esModule",{value:!0});var jle=Xft(kM()),Gft=Xft(OH()),edr=hI(),Yft=Qpr(yT()),tdr=vT();LE.default=rdr;function rdr(s,o){let f=Date.now(),d=k4e(s.schema,s.$refs._root$Ref.path,"#",new Set,new Set,new Map,s.$refs,o,f);s.$refs.circular=d.circular,s.schema=d.value}t(rdr,"dereference");function k4e(s,o,f,d,y,x,P,F,W){let G,be={value:s,circular:!1};if(F&&F.timeoutMs&&Date.now()-W>F.timeoutMs)throw new tdr.TimeoutError(F.timeoutMs);let de=F.dereference||{},se=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(s))&&s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!se(f)){if(d.add(s),y.add(s),jle.default.isAllowed$Ref(s,F))G=Kft(s,o,f,d,y,x,P,F,W),be.circular=G.circular,be.value=G.value;else for(let Xe of Object.keys(s)){let Ue=Gft.default.join(o,Xe),je=Gft.default.join(f,Xe);if(se(je))continue;let Vt=s[Xe],Ut=!1;jle.default.isAllowed$Ref(Vt,F)?(G=Kft(Vt,Ue,je,d,y,x,P,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value,de?.onDereference?.(Vt.$ref,s[Xe],s,Xe))):d.has(Vt)?Ut=Zft(Ue,P,F):(G=k4e(Vt,Ue,je,d,y,x,P,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value)),be.circular=be.circular||Ut}d.delete(s)}return be}t(k4e,"crawl");function Kft(s,o,f,d,y,x,P,F,W){let be=jle.default.isExternal$Ref(s)&&F?.dereference?.externalReferenceResolution==="root",de=Yft.resolve(be?Yft.cwd():o,s.$ref),se=x.get(de);if(se&&!se.circular){let Ir=Object.keys(s);if(Ir.length>1){let wn={};for(let sn of Ir)sn!=="$ref"&&!(sn in se.value)&&(wn[sn]=s[sn]);return{circular:se.circular,value:Object.assign({},se.value,wn)}}return se}let Xe=P._resolve(de,o,F);if(Xe===null)return{circular:!1,value:null};let Ue=Xe.circular,je=Ue||d.has(Xe.value);je&&Zft(o,P,F);let Vt=jle.default.dereference(s,Xe.value);if(!je){let Ir=k4e(Vt,Xe.path,f,d,y,x,P,F,W);je=Ir.circular,Vt=Ir.value}je&&!Ue&&F.dereference?.circular==="ignore"&&(Vt=s),Ue&&(Vt.$ref=f);let Ut={circular:je,value:Vt};return Object.keys(s).length===1&&x.set(de,Ut),Ut}t(Kft,"dereference$Ref");function Zft(s,o,f){if(o.circular=!0,!f.dereference.circular)throw edr.ono.reference(`Circular $ref pointer found at ${s}`);return!0}t(Zft,"foundCircularReference")});var e_t=ar(w4e=>{"use strict";Object.defineProperty(w4e,"__esModule",{value:!0});function ndr(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(o){setTimeout(o,0)},"next")}t(ndr,"makeNext");w4e.default=ndr()});var r_t=ar(HH=>{"use strict";var idr=HH&&HH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(HH,"__esModule",{value:!0});HH.default=sdr;var t_t=idr(e_t());function sdr(s,o){if(s){o.then(function(f){(0,t_t.default)(function(){s(null,f)})},function(f){(0,t_t.default)(function(){s(f)})});return}else return o}t(sdr,"maybe")});var P4e=ar(Uc=>{"use strict";var adr=Uc&&Uc.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),odr=Uc&&Uc.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),cdr=Uc&&Uc.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&adr(o,s,f);return odr(o,s),o},zO=Uc&&Uc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getJsonSchemaRefParserDefaultOptions=Uc.jsonSchemaParserNormalizeArgs=Uc.dereferenceInternal=Uc.JSONParserErrorGroup=Uc.isHandledError=Uc.UnmatchedParserError=Uc.ParserError=Uc.ResolverError=Uc.MissingPointerError=Uc.InvalidPointerError=Uc.JSONParserError=Uc.UnmatchedResolverError=Uc.dereference=Uc.bundle=Uc.resolve=Uc.parse=Uc.$RefParser=void 0;var n_t=zO(out()),ldr=zO(jIe()),GH=zO(Jft());Uc.jsonSchemaParserNormalizeArgs=GH.default;var udr=zO(Wft()),fdr=zO(Hft()),s_t=zO(Qft());Uc.dereferenceInternal=s_t.default;var UO=cdr(yT()),bT=vT();Object.defineProperty(Uc,"JSONParserError",{enumerable:!0,get:t(function(){return bT.JSONParserError},"get")});Object.defineProperty(Uc,"InvalidPointerError",{enumerable:!0,get:t(function(){return bT.InvalidPointerError},"get")});Object.defineProperty(Uc,"MissingPointerError",{enumerable:!0,get:t(function(){return bT.MissingPointerError},"get")});Object.defineProperty(Uc,"ResolverError",{enumerable:!0,get:t(function(){return bT.ResolverError},"get")});Object.defineProperty(Uc,"ParserError",{enumerable:!0,get:t(function(){return bT.ParserError},"get")});Object.defineProperty(Uc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return bT.UnmatchedParserError},"get")});Object.defineProperty(Uc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return bT.UnmatchedResolverError},"get")});Object.defineProperty(Uc,"isHandledError",{enumerable:!0,get:t(function(){return bT.isHandledError},"get")});Object.defineProperty(Uc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return bT.JSONParserErrorGroup},"get")});var i_t=hI(),RE=zO(r_t()),_dr=S4e();Object.defineProperty(Uc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return _dr.getJsonSchemaRefParserDefaultOptions},"get")});var bI=class s{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new n_t.default}async parse(){let o=(0,GH.default)(arguments),f;if(!o.path&&!o.schema){let y=(0,i_t.ono)(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return(0,RE.default)(o.callback,Promise.reject(y))}this.schema=null,this.$refs=new n_t.default;let d="http";if(UO.isFileSystemPath(o.path))o.path=UO.fromFileSystemPath(o.path),d="file";else if(!o.path&&o.schema&&"$id"in o.schema&&o.schema.$id){let y=UO.parse(o.schema.$id),x=y.protocol==="https:"?443:80;o.path=`${y.protocol}//${y.hostname}:${x}`}if(o.path=UO.resolve(UO.cwd(),o.path),o.schema&&typeof o.schema=="object"){let y=this.$refs._add(o.path);y.value=o.schema,y.pathType=d,f=Promise.resolve(o.schema)}else f=(0,ldr.default)(o.path,this.$refs,o.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,RE.default)(o.callback,Promise.resolve(this.schema));if(o.options.continueOnError)return this.schema=null,(0,RE.default)(o.callback,Promise.resolve(this.schema));throw i_t.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!o.options.continueOnError||!(0,bT.isHandledError)(y)?(0,RE.default)(o.callback,Promise.reject(y)):(this.$refs._$refs[UO.stripHash(o.path)]&&this.$refs._$refs[UO.stripHash(o.path)].addError(y),(0,RE.default)(o.callback,Promise.resolve(null)))}}static parse(){let o=new s;return o.parse.apply(o,arguments)}async resolve(){let o=(0,GH.default)(arguments);try{return await this.parse(o.path,o.schema,o.options),await(0,udr.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.$refs))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}static resolve(){let o=new s;return o.resolve.apply(o,arguments)}static bundle(){let o=new s;return o.bundle.apply(o,arguments)}async bundle(){let o=(0,GH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,fdr.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}static dereference(){let o=new s;return o.dereference.apply(o,arguments)}async dereference(){let o=(0,GH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,s_t.default)(this,o.options),D4e(this),(0,RE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,RE.default)(o.callback,Promise.reject(f))}}};Uc.$RefParser=bI;Uc.default=bI;function D4e(s){if(bT.JSONParserErrorGroup.getParserErrors(s).length>0)throw new bT.JSONParserErrorGroup(s)}t(D4e,"finalize");Uc.parse=bI.parse;Uc.resolve=bI.resolve;Uc.bundle=bI.bundle;Uc.dereference=bI.dereference});var M4e=ar((XH,P_t)=>{"use strict";Object.defineProperty(XH,"__esModule",{value:!0});var KH=xce(),jE=tM();function D_t(s,o){if(!s.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=s.scope.opts;return typeof o=="function"?y(o.source):o!==void 0?x(o,d):x(s.schemas,F=>F.meta?void 0:s.compile(F.schema));function d(F){let W=s.getSchema(F);if(!W)throw new Error(`moduleCode: no schema with id ${F}`);return W}function y(F){let W={},G=F?.validateName,be=P(W,F);return s.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${be}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${be}`}function x(F,W){var G;let be={},de=(0,jE._)`"use strict";`;for(let se in F){let Xe=W(F[se]);if(Xe){let Ue=P(be,Xe.source),je=s.opts.code.esm?(0,jE._)`export const ${(0,jE.getEsmExportName)(se)}`:(0,jE._)`exports${(0,jE.getProperty)(se)}`;de=(0,jE._)`${de}${f}${je} = ${(G=Xe.source)===null||G===void 0?void 0:G.validateName};${f}${Ue}`}}return`${de}`}function P(F,W){if(!W)throw new Error('moduleCode: function does not have "source" property');if(se(W.validateName)===KH.UsedValueState.Completed)return jE.nil;Xe(W.validateName,KH.UsedValueState.Started);let G=s.scope.scopeCode(W.scopeValues,F,de),be=new jE._Code(`${G}${f}${W.validateCode}`);return W.evaluated?(0,jE._)`${be}${W.validateName}.evaluated = ${W.evaluated};${f}`:be;function de(Ue){var je;let Vt=(je=Ue.value)===null||je===void 0?void 0:je.ref;if(Ue.prefix==="validate"&&typeof Vt=="function")return P(F,Vt.source);if((Ue.prefix==="root"||Ue.prefix==="wrapper")&&typeof Vt=="object"){let{validate:Ut,validateName:Ir}=Vt;if(!Ir)throw new Error("ajv internal error");let wn=s.opts.code.es5?KH.varKinds.var:KH.varKinds.const,sn=(0,jE._)`${wn} ${Ue} = {validate: ${Ir}};`;if(se(Ir)===KH.UsedValueState.Started)return sn;let Jn=P(F,Ut?.source);return(0,jE._)`${sn}${f}${Jn}`}}function se(Ue){var je;return(je=F[Ue.prefix])===null||je===void 0?void 0:je.get(Ue)}function Xe(Ue,je){let{prefix:Vt}=Ue;(F[Vt]=F[Vt]||new Map).set(Ue,je)}}}t(D_t,"standaloneCode");P_t.exports=XH=D_t;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=D_t});var M_t=ar(Hk=>{"use strict";Object.defineProperty(Hk,"__esModule",{value:!0});Hk.formatNames=Hk.fastFormats=Hk.fullFormats=void 0;function Vk(s,o){return{validate:s,compare:o}}t(Vk,"fmtDef");Hk.fullFormats={date:Vk(O_t,z4e),time:Vk(B4e(!0),$4e),"date-time":Vk(A_t(!0),L_t),"iso-time":Vk(B4e(),F_t),"iso-date-time":Vk(A_t(),R_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Udr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Hdr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:zdr,int32:{type:"number",validate:Wdr},int64:{type:"number",validate:qdr},float:{type:"number",validate:I_t},double:{type:"number",validate:I_t},password:!0,binary:!0};Hk.fastFormats={...Hk.fullFormats,date:Vk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,z4e),time:Vk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,$4e),"date-time":Vk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,L_t),"iso-time":Vk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,F_t),"iso-date-time":Vk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,R_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Hk.formatNames=Object.keys(Hk.fullFormats);function Ldr(s){return s%4===0&&(s%100!==0||s%400===0)}t(Ldr,"isLeapYear");var Rdr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Mdr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function O_t(s){let o=Rdr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Ldr(f)?29:Mdr[d])}t(O_t,"date");function z4e(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(z4e,"compareDate");var j4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function B4e(s){return t(function(f){let d=j4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&P<61},"time")}t(B4e,"getTime");function $4e(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t($4e,"compareTime");function F_t(s,o){if(!(s&&o))return;let f=j4e.exec(s),d=j4e.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(F_t,"compareIsoTime");var U4e=/t|\s/i;function A_t(s){let o=B4e(s);return t(function(d){let y=d.split(U4e);return y.length===2&&O_t(y[0])&&o(y[1])},"date_time")}t(A_t,"getDateTime");function L_t(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(L_t,"compareDateTime");function R_t(s,o){if(!(s&&o))return;let[f,d]=s.split(U4e),[y,x]=o.split(U4e),P=z4e(f,y);if(P!==void 0)return P||$4e(d,x)}t(R_t,"compareIsoDateTime");var jdr=/\/|:/,Bdr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Udr(s){return jdr.test(s)&&Bdr.test(s)}t(Udr,"uri");var N_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function zdr(s){return N_t.lastIndex=0,N_t.test(s)}t(zdr,"byte");var $dr=-(2**31),Jdr=2**31-1;function Wdr(s){return Number.isInteger(s)&&s<=Jdr&&s>=$dr}t(Wdr,"validateInt32");function qdr(s){return Number.isInteger(s)}t(qdr,"validateInt64");function I_t(){return!0}t(I_t,"validateNumber");var Vdr=/[^\\]\\Z/;function Hdr(s){if(Vdr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(Hdr,"regex")});var j_t=ar(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.formatLimitDefinition=void 0;var Gdr=DH(),BE=Ec(),TI=BE.operators,Jle={formatMaximum:{okStr:"<=",ok:TI.LTE,fail:TI.GT},formatMinimum:{okStr:">=",ok:TI.GTE,fail:TI.LT},formatExclusiveMaximum:{okStr:"<",ok:TI.LT,fail:TI.GTE},formatExclusiveMinimum:{okStr:">",ok:TI.GT,fail:TI.LTE}},Ydr={message:t(({keyword:s,schemaCode:o})=>(0,BE.str)`should be ${Jle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,BE._)`{comparison: ${Jle[s].okStr}, limit: ${o}}`,"params")};jM.formatLimitDefinition={keyword:Object.keys(Jle),type:"string",schemaType:"string",$data:!0,error:Ydr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:P,self:F}=x;if(!P.validateFormats)return;let W=new Gdr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Xe=o.const("fmt",(0,BE._)`${se}[${W.schemaCode}]`);s.fail$data((0,BE.or)((0,BE._)`typeof ${Xe} != "object"`,(0,BE._)`${Xe} instanceof RegExp`,(0,BE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:P.code.formats?(0,BE._)`${P.code.formats}${(0,BE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,BE._)`${se}.compare(${f}, ${d}) ${Jle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Kdr=t(s=>(s.addKeyword(jM.formatLimitDefinition),s),"formatLimitPlugin");jM.default=Kdr});var q4e=ar((ZH,z_t)=>{"use strict";Object.defineProperty(ZH,"__esModule",{value:!0});var BM=M_t(),Xdr=j_t(),J4e=Ec(),B_t=new J4e.Name("fullFormats"),Zdr=new J4e.Name("fastFormats"),W4e=t((s,o={keywords:!0})=>{if(Array.isArray(o))return U_t(s,o,BM.fullFormats,B_t),s;let[f,d]=o.mode==="fast"?[BM.fastFormats,Zdr]:[BM.fullFormats,B_t],y=o.formats||BM.formatNames;return U_t(s,y,f,d),o.keywords&&(0,Xdr.default)(s),s},"formatsPlugin");W4e.get=(s,o="full")=>{let d=(o==="fast"?BM.fastFormats:BM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function U_t(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,J4e._)`require("ajv-formats/dist/formats").${d}`);for(let P of o)s.addFormat(P,f[P])}t(U_t,"addFormats");z_t.exports=ZH=W4e;Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=W4e});var Ipt=ar((W7r,Npt)=>{var Gmr=Object.prototype.toString,i3e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Ymr(s){return Gmr.call(s).slice(8,-1)==="ArrayBuffer"}t(Ymr,"isArrayBuffer");function Kmr(s,o,f){o>>>=0;var d=s.byteLength-o;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return i3e?Buffer.from(s.slice(o,o+f)):new Buffer(new Uint8Array(s.slice(o,o+f)))}t(Kmr,"fromArrayBuffer");function Xmr(s,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Buffer.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');return i3e?Buffer.from(s,o):new Buffer(s,o)}t(Xmr,"fromString");function Zmr(s,o,f){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return Ymr(s)?Kmr(s,o,f):typeof s=="string"?Xmr(s,o):i3e?Buffer.from(s):new Buffer(s)}t(Zmr,"bufferFrom");Npt.exports=Zmr});var Upt=ar((VO,c3e)=>{var Qmr=uo("source-map").SourceMapConsumer,s3e=uo("path"),Kk;try{Kk=uo("fs"),(!Kk.existsSync||!Kk.readFileSync)&&(Kk=null)}catch{}var ehr=Ipt();function Opt(s,o){return s.require(o)}t(Opt,"dynamicRequire");var Fpt=!1,Lpt=!1,a3e=!1,sG="auto",qO={},aG={},thr=/^data:application\/json[^,]+base64,/,CI=[],kI=[];function l3e(){return sG==="browser"?!0:sG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(l3e,"isInBrowser");function rhr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(rhr,"hasGlobalProcessEventEmitter");function nhr(){return typeof process=="object"&&process!==null?process.version:""}t(nhr,"globalProcessVersion");function ihr(){if(typeof process=="object"&&process!==null)return process.stderr}t(ihr,"globalProcessStderr");function shr(s){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(s)}t(shr,"globalProcessExit");function Xle(s){return function(o){for(var f=0;f<s.length;f++){var d=s[f](o);if(d)return d}return null}}t(Xle,"handlerExec");var u3e=Xle(CI);CI.push(function(s){if(s=s.trim(),/^file:/.test(s)&&(s=s.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),s in qO)return qO[s];var o="";try{if(Kk)Kk.existsSync(s)&&(o=Kk.readFileSync(s,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),f.readyState===4&&f.status===200&&(o=f.responseText)}}catch{}return qO[s]=o});function o3e(s,o){if(!s)return o;var f=s3e.dirname(s),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+s3e.resolve(f.slice(y.length),o).replace(/\\/g,"/")):y+s3e.resolve(f.slice(y.length),o)}t(o3e,"supportRelativeURL");function ahr(s){var o;if(l3e())try{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),o=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}o=u3e(s);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,P;P=y.exec(o);)x=P;return x?x[1]:null}t(ahr,"retrieveSourceMapURL");var f3e=Xle(kI);kI.push(function(s){var o=ahr(s);if(!o)return null;var f;if(thr.test(o)){var d=o.slice(o.indexOf(",")+1);f=ehr(d,"base64").toString(),o=s}else o=o3e(s,o),f=u3e(o);return f?{url:o,map:f}:null});function _3e(s){var o=aG[s.source];if(!o){var f=f3e(s.source);f?(o=aG[s.source]={url:f.url,map:new Qmr(f.map)},o.map.sourcesContent&&o.map.sources.forEach(function(y,x){var P=o.map.sourcesContent[x];if(P){var F=o3e(o.url,y);qO[F]=P}})):o=aG[s.source]={url:null,map:null}}if(o&&o.map&&typeof o.map.originalPositionFor=="function"){var d=o.map.originalPositionFor(s);if(d.source!==null)return d.source=o3e(o.url,d.source),d}return s}t(_3e,"mapSourcePosition");function Mpt(s){var o=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(s);if(o){var f=_3e({source:o[2],line:+o[3],column:o[4]-1});return"eval at "+o[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return o=/^eval at ([^(]+) \((.+)\)$/.exec(s),o?"eval at "+o[1]+" ("+Mpt(o[2])+")":s}t(Mpt,"mapEvalOrigin");function ohr(){var s,o="";if(this.isNative())o="native";else{s=this.getScriptNameOrSourceURL(),!s&&this.isEval()&&(o=this.getEvalOrigin(),o+=", "),s?o+=s:o+="<anonymous>";var f=this.getLineNumber();if(f!=null){o+=":"+f;var d=this.getColumnNumber();d&&(o+=":"+d)}}var y="",x=this.getFunctionName(),P=!0,F=this.isConstructor(),W=!(this.isToplevel()||F);if(W){var G=this.getTypeName();G==="[object Object]"&&(G="null");var be=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,be&&x.indexOf("."+be)!=x.length-be.length-1&&(y+=" [as "+be+"]")):y+=G+"."+(be||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=o,P=!1);return P&&(y+=" ("+o+")"),y}t(ohr,"CallSiteToString");function Rpt(s){var o={};return Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(function(f){o[f]=/^(?:is|get)/.test(f)?function(){return s[f].call(s)}:s[f]}),o.toString=ohr,o}t(Rpt,"cloneCallSite");function jpt(s,o){if(o===void 0&&(o={nextPosition:null,curPosition:null}),s.isNative())return o.curPosition=null,s;var f=s.getFileName()||s.getScriptNameOrSourceURL();if(f){var d=s.getLineNumber(),y=s.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,P=x.test(nhr())?0:62;d===1&&y>P&&!l3e()&&!s.isEval()&&(y-=P);var F=_3e({source:f,line:d,column:y});o.curPosition=F,s=Rpt(s);var W=s.getFunctionName;return s.getFunctionName=function(){return o.nextPosition==null?W():o.nextPosition.name||W()},s.getFileName=function(){return F.source},s.getLineNumber=function(){return F.line},s.getColumnNumber=function(){return F.column+1},s.getScriptNameOrSourceURL=function(){return F.source},s}var G=s.isEval()&&s.getEvalOrigin();return G&&(G=Mpt(G),s=Rpt(s),s.getEvalOrigin=function(){return G}),s}t(jpt,"wrapCallSite");function chr(s,o){a3e&&(qO={},aG={});for(var f=s.name||"Error",d=s.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},P=[],F=o.length-1;F>=0;F--)P.push(`
111
111
  at `+jpt(o[F],x)),x.nextPosition=x.curPosition;return x.curPosition=x.nextPosition=null,y+P.reverse().join("")}t(chr,"prepareStackTrace");function Bpt(s){var o=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(s.stack);if(o){var f=o[1],d=+o[2],y=+o[3],x=qO[f];if(!x&&Kk&&Kk.existsSync(f))try{x=Kk.readFileSync(f,"utf8")}catch{x=""}if(x){var P=x.split(/(?:\r\n|\r|\n)/)[d-1];if(P)return f+":"+d+`
112
112
  `+P+`
113
- `+new Array(y).join(" ")+"^"}}return null}t(Bpt,"getErrorSource");function lhr(s){var o=Bpt(s),f=ihr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),o&&(console.error(),console.error(o)),console.error(s.stack),shr(1)}t(lhr,"printErrorAndExit");function uhr(){var s=process.emit;process.emit=function(o){if(o==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,d=this.listeners(o).length>0;if(f&&!d)return lhr(arguments[1])}return s.apply(this,arguments)}}t(uhr,"shimEmitUncaughtException");var fhr=CI.slice(0),_hr=kI.slice(0);VO.wrapCallSite=jpt;VO.getErrorSource=Bpt;VO.mapSourcePosition=_3e;VO.retrieveSourceMap=f3e;VO.install=function(s){if(s=s||{},s.environment&&(sG=s.environment,["node","browser","auto"].indexOf(sG)===-1))throw new Error("environment "+sG+" was unknown. Available options are {auto, browser, node}");if(s.retrieveFile&&(s.overrideRetrieveFile&&(CI.length=0),CI.unshift(s.retrieveFile)),s.retrieveSourceMap&&(s.overrideRetrieveSourceMap&&(kI.length=0),kI.unshift(s.retrieveSourceMap)),s.hookRequire&&!l3e()){var o=Opt(c3e,"module"),f=o.prototype._compile;f.__sourceMapSupport||(o.prototype._compile=function(x,P){return qO[P]=x,aG[P]=void 0,f.call(this,x,P)},o.prototype._compile.__sourceMapSupport=!0)}if(a3e||(a3e="emptyCacheBetweenOperations"in s?s.emptyCacheBetweenOperations:!1),Fpt||(Fpt=!0,Error.prepareStackTrace=chr),!Lpt){var d="handleUncaughtExceptions"in s?s.handleUncaughtExceptions:!0;try{var y=Opt(c3e,"worker_threads");y.isMainThread===!1&&(d=!1)}catch{}d&&rhr()&&(Lpt=!0,uhr())}};VO.resetRetrieveHandlers=function(){CI.length=0,kI.length=0,CI=fhr.slice(0),kI=_hr.slice(0),f3e=Xle(kI),u3e=Xle(CI)}});var y3e=ar((V7r,Qle)=>{var zpt={};(s=>{"use strict";var o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,x=t((e,r)=>{for(var i in r)o(e,i,{get:r[i],enumerable:!0})},"__export"),P=t((e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of d(r))!y.call(e,c)&&c!==i&&o(e,c,{get:t(()=>r[c],"get"),enumerable:!(a=f(r,c))||a.enumerable});return e},"__copyProps"),F=t(e=>e,"__toCommonJS"),W={};x(W,{ANONYMOUS:t(()=>yre,"ANONYMOUS"),AccessFlags:t(()=>cpe,"AccessFlags"),AssertionLevel:t(()=>y_e,"AssertionLevel"),AssignmentDeclarationKind:t(()=>gpe,"AssignmentDeclarationKind"),AssignmentKind:t(()=>$me,"AssignmentKind"),Associativity:t(()=>Kme,"Associativity"),BreakpointResolver:t(()=>hne,"BreakpointResolver"),BuilderFileEmit:t(()=>H1e,"BuilderFileEmit"),BuilderProgramKind:t(()=>tve,"BuilderProgramKind"),BuilderState:t(()=>fh,"BuilderState"),CallHierarchy:t(()=>ID,"CallHierarchy"),CharacterCodes:t(()=>Dpe,"CharacterCodes"),CheckFlags:t(()=>ipe,"CheckFlags"),CheckMode:t(()=>BQ,"CheckMode"),ClassificationType:t(()=>wte,"ClassificationType"),ClassificationTypeNames:t(()=>nbe,"ClassificationTypeNames"),CommentDirectiveType:t(()=>J_e,"CommentDirectiveType"),Comparison:t(()=>de,"Comparison"),CompletionInfoFlags:t(()=>Kve,"CompletionInfoFlags"),CompletionTriggerKind:t(()=>Cte,"CompletionTriggerKind"),Completions:t(()=>MD,"Completions"),ContainerFlags:t(()=>wye,"ContainerFlags"),ContextFlags:t(()=>K_e,"ContextFlags"),Debug:t(()=>L,"Debug"),DiagnosticCategory:t(()=>Wj,"DiagnosticCategory"),Diagnostics:t(()=>v,"Diagnostics"),DocumentHighlights:t(()=>UJ,"DocumentHighlights"),ElementFlags:t(()=>ope,"ElementFlags"),EmitFlags:t(()=>EY,"EmitFlags"),EmitHint:t(()=>Ipe,"EmitHint"),EmitOnly:t(()=>q_e,"EmitOnly"),EndOfLineState:t(()=>Qve,"EndOfLineState"),ExitStatus:t(()=>V_e,"ExitStatus"),ExportKind:t(()=>Ybe,"ExportKind"),Extension:t(()=>Ppe,"Extension"),ExternalEmitHelpers:t(()=>Npe,"ExternalEmitHelpers"),FileIncludeKind:t(()=>dY,"FileIncludeKind"),FilePreprocessingDiagnosticsKind:t(()=>W_e,"FilePreprocessingDiagnosticsKind"),FileSystemEntryKind:t(()=>zpe,"FileSystemEntryKind"),FileWatcherEventKind:t(()=>jpe,"FileWatcherEventKind"),FindAllReferences:t(()=>ec,"FindAllReferences"),FlattenLevel:t(()=>Yye,"FlattenLevel"),FlowFlags:t(()=>Jj,"FlowFlags"),ForegroundColorEscapeSequences:t(()=>M1e,"ForegroundColorEscapeSequences"),FunctionFlags:t(()=>Gme,"FunctionFlags"),GeneratedIdentifierFlags:t(()=>pY,"GeneratedIdentifierFlags"),GetLiteralTextFlags:t(()=>sme,"GetLiteralTextFlags"),GoToDefinition:t(()=>rN,"GoToDefinition"),HighlightSpanKind:t(()=>Gve,"HighlightSpanKind"),IdentifierNameMap:t(()=>N6,"IdentifierNameMap"),ImportKind:t(()=>Gbe,"ImportKind"),ImportsNotUsedAsValues:t(()=>xpe,"ImportsNotUsedAsValues"),IndentStyle:t(()=>Yve,"IndentStyle"),IndexFlags:t(()=>lpe,"IndexFlags"),IndexKind:t(()=>_pe,"IndexKind"),InferenceFlags:t(()=>mpe,"InferenceFlags"),InferencePriority:t(()=>dpe,"InferencePriority"),InlayHintKind:t(()=>Hve,"InlayHintKind"),InlayHints:t(()=>oie,"InlayHints"),InternalEmitFlags:t(()=>Ape,"InternalEmitFlags"),InternalNodeBuilderFlags:t(()=>Z_e,"InternalNodeBuilderFlags"),InternalSymbolName:t(()=>spe,"InternalSymbolName"),IntersectionFlags:t(()=>Y_e,"IntersectionFlags"),InvalidatedProjectKind:t(()=>Eve,"InvalidatedProjectKind"),JSDocParsingMode:t(()=>Mpe,"JSDocParsingMode"),JsDoc:t(()=>b2,"JsDoc"),JsTyping:t(()=>Xb,"JsTyping"),JsxEmit:t(()=>Tpe,"JsxEmit"),JsxFlags:t(()=>B_e,"JsxFlags"),JsxReferenceKind:t(()=>upe,"JsxReferenceKind"),LanguageFeatureMinimumTarget:t(()=>du,"LanguageFeatureMinimumTarget"),LanguageServiceMode:t(()=>qve,"LanguageServiceMode"),LanguageVariant:t(()=>kpe,"LanguageVariant"),LexicalEnvironmentFlags:t(()=>Fpe,"LexicalEnvironmentFlags"),ListFormat:t(()=>Lpe,"ListFormat"),LogLevel:t(()=>D_e,"LogLevel"),MapCode:t(()=>cie,"MapCode"),MemberOverrideStatus:t(()=>H_e,"MemberOverrideStatus"),ModifierFlags:t(()=>fY,"ModifierFlags"),ModuleDetectionKind:t(()=>ype,"ModuleDetectionKind"),ModuleInstanceState:t(()=>Cye,"ModuleInstanceState"),ModuleKind:t(()=>vA,"ModuleKind"),ModuleResolutionKind:t(()=>yA,"ModuleResolutionKind"),ModuleSpecifierEnding:t(()=>Vhe,"ModuleSpecifierEnding"),NavigateTo:t(()=>vSe,"NavigateTo"),NavigationBar:t(()=>SSe,"NavigationBar"),NewLineKind:t(()=>Epe,"NewLineKind"),NodeBuilderFlags:t(()=>X_e,"NodeBuilderFlags"),NodeCheckFlags:t(()=>gY,"NodeCheckFlags"),NodeFactoryFlags:t(()=>Sge,"NodeFactoryFlags"),NodeFlags:t(()=>uY,"NodeFlags"),NodeResolutionFeatures:t(()=>mye,"NodeResolutionFeatures"),ObjectFlags:t(()=>vY,"ObjectFlags"),OperationCanceledException:t(()=>e4,"OperationCanceledException"),OperatorPrecedence:t(()=>Xme,"OperatorPrecedence"),OrganizeImports:t(()=>S2,"OrganizeImports"),OrganizeImportsMode:t(()=>Ete,"OrganizeImportsMode"),OuterExpressionKinds:t(()=>Ope,"OuterExpressionKinds"),OutliningElementsCollector:t(()=>uie,"OutliningElementsCollector"),OutliningSpanKind:t(()=>Xve,"OutliningSpanKind"),OutputFileType:t(()=>Zve,"OutputFileType"),PackageJsonAutoImportPreference:t(()=>Wve,"PackageJsonAutoImportPreference"),PackageJsonDependencyGroup:t(()=>Jve,"PackageJsonDependencyGroup"),PatternMatchKind:t(()=>Mre,"PatternMatchKind"),PollingInterval:t(()=>CY,"PollingInterval"),PollingWatchKind:t(()=>Spe,"PollingWatchKind"),PragmaKindFlags:t(()=>Rpe,"PragmaKindFlags"),PredicateSemantics:t(()=>U_e,"PredicateSemantics"),PreparePasteEdits:t(()=>Cie,"PreparePasteEdits"),PrivateIdentifierKind:t(()=>Nge,"PrivateIdentifierKind"),ProcessLevel:t(()=>Qye,"ProcessLevel"),ProgramUpdateLevel:t(()=>I1e,"ProgramUpdateLevel"),QuotePreference:t(()=>Cbe,"QuotePreference"),RegularExpressionFlags:t(()=>z_e,"RegularExpressionFlags"),RelationComparisonResult:t(()=>_Y,"RelationComparisonResult"),Rename:t(()=>xW,"Rename"),ScriptElementKind:t(()=>tbe,"ScriptElementKind"),ScriptElementKindModifier:t(()=>rbe,"ScriptElementKindModifier"),ScriptKind:t(()=>SY,"ScriptKind"),ScriptSnapshot:t(()=>Z$,"ScriptSnapshot"),ScriptTarget:t(()=>Cpe,"ScriptTarget"),SemanticClassificationFormat:t(()=>Vve,"SemanticClassificationFormat"),SemanticMeaning:t(()=>ibe,"SemanticMeaning"),SemicolonPreference:t(()=>kte,"SemicolonPreference"),SignatureCheckMode:t(()=>UQ,"SignatureCheckMode"),SignatureFlags:t(()=>bY,"SignatureFlags"),SignatureHelp:t(()=>hR,"SignatureHelp"),SignatureInfo:t(()=>V1e,"SignatureInfo"),SignatureKind:t(()=>fpe,"SignatureKind"),SmartSelectionRange:t(()=>pie,"SmartSelectionRange"),SnippetKind:t(()=>xY,"SnippetKind"),StatisticType:t(()=>Ove,"StatisticType"),StructureIsReused:t(()=>mY,"StructureIsReused"),SymbolAccessibility:t(()=>tpe,"SymbolAccessibility"),SymbolDisplay:t(()=>pv,"SymbolDisplay"),SymbolDisplayPartKind:t(()=>eJ,"SymbolDisplayPartKind"),SymbolFlags:t(()=>hY,"SymbolFlags"),SymbolFormatFlags:t(()=>epe,"SymbolFormatFlags"),SyntaxKind:t(()=>lY,"SyntaxKind"),Ternary:t(()=>hpe,"Ternary"),ThrottledCancellationToken:t(()=>P2e,"ThrottledCancellationToken"),TokenClass:t(()=>ebe,"TokenClass"),TokenFlags:t(()=>$_e,"TokenFlags"),TransformFlags:t(()=>TY,"TransformFlags"),TypeFacts:t(()=>jQ,"TypeFacts"),TypeFlags:t(()=>yY,"TypeFlags"),TypeFormatFlags:t(()=>Q_e,"TypeFormatFlags"),TypeMapKind:t(()=>ppe,"TypeMapKind"),TypePredicateKind:t(()=>rpe,"TypePredicateKind"),TypeReferenceSerializationKind:t(()=>npe,"TypeReferenceSerializationKind"),UnionReduction:t(()=>G_e,"UnionReduction"),UpToDateStatusType:t(()=>gve,"UpToDateStatusType"),VarianceFlags:t(()=>ape,"VarianceFlags"),Version:t(()=>Zm,"Version"),VersionRange:t(()=>$j,"VersionRange"),WatchDirectoryFlags:t(()=>wpe,"WatchDirectoryFlags"),WatchDirectoryKind:t(()=>bpe,"WatchDirectoryKind"),WatchFileKind:t(()=>vpe,"WatchFileKind"),WatchLogLevel:t(()=>F1e,"WatchLogLevel"),WatchType:t(()=>xu,"WatchType"),accessPrivateIdentifier:t(()=>Gye,"accessPrivateIdentifier"),addEmitFlags:t(()=>Kh,"addEmitFlags"),addEmitHelper:t(()=>Qw,"addEmitHelper"),addEmitHelpers:t(()=>H0,"addEmitHelpers"),addInternalEmitFlags:t(()=>gC,"addInternalEmitFlags"),addNodeFactoryPatcher:t(()=>kFe,"addNodeFactoryPatcher"),addObjectAllocatorPatcher:t(()=>fFe,"addObjectAllocatorPatcher"),addRange:t(()=>Zn,"addRange"),addRelatedInfo:t(()=>da,"addRelatedInfo"),addSyntheticLeadingComment:t(()=>cx,"addSyntheticLeadingComment"),addSyntheticTrailingComment:t(()=>p3,"addSyntheticTrailingComment"),addToSeen:t(()=>lm,"addToSeen"),advancedAsyncSuperHelper:t(()=>lz,"advancedAsyncSuperHelper"),affectsDeclarationPathOptionDeclarations:t(()=>j0e,"affectsDeclarationPathOptionDeclarations"),affectsEmitOptionDeclarations:t(()=>M0e,"affectsEmitOptionDeclarations"),allKeysStartWithDot:t(()=>n$,"allKeysStartWithDot"),altDirectorySeparator:t(()=>Gj,"altDirectorySeparator"),and:t(()=>Bj,"and"),append:t(()=>Kr,"append"),appendIfUnique:t(()=>Ry,"appendIfUnique"),arrayFrom:t(()=>Ps,"arrayFrom"),arrayIsEqualTo:t(()=>ed,"arrayIsEqualTo"),arrayIsHomogeneous:t(()=>ege,"arrayIsHomogeneous"),arrayOf:t(()=>d_e,"arrayOf"),arrayReverseIterator:t(()=>JG,"arrayReverseIterator"),arrayToMap:t(()=>dA,"arrayToMap"),arrayToMultiMap:t(()=>C7,"arrayToMultiMap"),arrayToNumericMap:t(()=>h_e,"arrayToNumericMap"),assertType:t(()=>zOe,"assertType"),assign:t(()=>WE,"assign"),asyncSuperHelper:t(()=>cz,"asyncSuperHelper"),attachFileToDiagnostics:t(()=>Ww,"attachFileToDiagnostics"),base64decode:t(()=>yhe,"base64decode"),base64encode:t(()=>ghe,"base64encode"),binarySearch:t(()=>lb,"binarySearch"),binarySearchKey:t(()=>cw,"binarySearchKey"),bindSourceFile:t(()=>Dye,"bindSourceFile"),breakIntoCharacterSpans:t(()=>fSe,"breakIntoCharacterSpans"),breakIntoWordSpans:t(()=>_Se,"breakIntoWordSpans"),buildLinkParts:t(()=>Obe,"buildLinkParts"),buildOpts:t(()=>$5,"buildOpts"),buildOverload:t(()=>_Ge,"buildOverload"),bundlerModuleNameResolver:t(()=>hye,"bundlerModuleNameResolver"),canBeConvertedToAsync:t(()=>Jre,"canBeConvertedToAsync"),canHaveDecorators:t(()=>yx,"canHaveDecorators"),canHaveExportModifier:t(()=>_5,"canHaveExportModifier"),canHaveFlowNode:t(()=>JA,"canHaveFlowNode"),canHaveIllegalDecorators:t(()=>HZ,"canHaveIllegalDecorators"),canHaveIllegalModifiers:t(()=>g0e,"canHaveIllegalModifiers"),canHaveIllegalType:t(()=>ZFe,"canHaveIllegalType"),canHaveIllegalTypeParameters:t(()=>h0e,"canHaveIllegalTypeParameters"),canHaveJSDoc:t(()=>FF,"canHaveJSDoc"),canHaveLocals:t(()=>Wg,"canHaveLocals"),canHaveModifiers:t(()=>pm,"canHaveModifiers"),canHaveModuleSpecifier:t(()=>Bme,"canHaveModuleSpecifier"),canHaveSymbol:t(()=>th,"canHaveSymbol"),canIncludeBindAndCheckDiagnostics:t(()=>n3,"canIncludeBindAndCheckDiagnostics"),canJsonReportNoInputFiles:t(()=>G5,"canJsonReportNoInputFiles"),canProduceDiagnostics:t(()=>iL,"canProduceDiagnostics"),canUsePropertyAccess:t(()=>eZ,"canUsePropertyAccess"),canWatchAffectingLocation:t(()=>lve,"canWatchAffectingLocation"),canWatchAtTypes:t(()=>cve,"canWatchAtTypes"),canWatchDirectoryOrFile:t(()=>zee,"canWatchDirectoryOrFile"),canWatchDirectoryOrFilePath:t(()=>vL,"canWatchDirectoryOrFilePath"),cartesianProduct:t(()=>k_e,"cartesianProduct"),cast:t(()=>ha,"cast"),chainBundle:t(()=>uh,"chainBundle"),chainDiagnosticMessages:t(()=>qs,"chainDiagnosticMessages"),changeAnyExtension:t(()=>I7,"changeAnyExtension"),changeCompilerHostLikeToUseCache:t(()=>Y3,"changeCompilerHostLikeToUseCache"),changeExtension:t(()=>Yy,"changeExtension"),changeFullExtension:t(()=>Xj,"changeFullExtension"),changesAffectModuleResolution:t(()=>EB,"changesAffectModuleResolution"),changesAffectingProgramStructure:t(()=>Xde,"changesAffectingProgramStructure"),characterCodeToRegularExpressionFlag:t(()=>RY,"characterCodeToRegularExpressionFlag"),childIsDecorated:t(()=>D4,"childIsDecorated"),classElementOrClassElementParameterIsDecorated:t(()=>LK,"classElementOrClassElementParameterIsDecorated"),classHasClassThisAssignment:t(()=>tee,"classHasClassThisAssignment"),classHasDeclaredOrExplicitlyAssignedName:t(()=>ree,"classHasDeclaredOrExplicitlyAssignedName"),classHasExplicitlyAssignedName:t(()=>h$,"classHasExplicitlyAssignedName"),classOrConstructorParameterIsDecorated:t(()=>Y1,"classOrConstructorParameterIsDecorated"),classicNameResolver:t(()=>xye,"classicNameResolver"),classifier:t(()=>O2e,"classifier"),cleanExtendedConfigCache:t(()=>T$,"cleanExtendedConfigCache"),clear:t(()=>bu,"clear"),clearMap:t(()=>J_,"clearMap"),clearSharedExtendedConfigFileWatcher:t(()=>hee,"clearSharedExtendedConfigFileWatcher"),climbPastPropertyAccess:t(()=>nJ,"climbPastPropertyAccess"),clone:t(()=>g_e,"clone"),cloneCompilerOptions:t(()=>Vte,"cloneCompilerOptions"),closeFileWatcher:t(()=>Fm,"closeFileWatcher"),closeFileWatcherOf:t(()=>Ud,"closeFileWatcherOf"),codefix:t(()=>Af,"codefix"),collapseTextChangeRangesAcrossMultipleVersions:t(()=>ude,"collapseTextChangeRangesAcrossMultipleVersions"),collectExternalModuleInfo:t(()=>XQ,"collectExternalModuleInfo"),combine:t(()=>ow,"combine"),combinePaths:t(()=>ei,"combinePaths"),commandLineOptionOfCustomType:t(()=>z0e,"commandLineOptionOfCustomType"),commentPragmas:t(()=>qj,"commentPragmas"),commonOptionsWithBuild:t(()=>Rz,"commonOptionsWithBuild"),compact:t(()=>x7,"compact"),compareBooleans:t(()=>OS,"compareBooleans"),compareDataObjects:t(()=>DX,"compareDataObjects"),compareDiagnostics:t(()=>K4,"compareDiagnostics"),compareEmitHelpers:t(()=>Oge,"compareEmitHelpers"),compareNumberOfDirectorySeparators:t(()=>l5,"compareNumberOfDirectorySeparators"),comparePaths:t(()=>jy,"comparePaths"),comparePathsCaseInsensitive:t(()=>f7e,"comparePathsCaseInsensitive"),comparePathsCaseSensitive:t(()=>u7e,"comparePathsCaseSensitive"),comparePatternKeys:t(()=>NQ,"comparePatternKeys"),compareProperties:t(()=>T_e,"compareProperties"),compareStringsCaseInsensitive:t(()=>w7,"compareStringsCaseInsensitive"),compareStringsCaseInsensitiveEslintCompatible:t(()=>v_e,"compareStringsCaseInsensitiveEslintCompatible"),compareStringsCaseSensitive:t(()=>lf,"compareStringsCaseSensitive"),compareStringsCaseSensitiveUI:t(()=>D7,"compareStringsCaseSensitiveUI"),compareTextSpans:t(()=>Mj,"compareTextSpans"),compareValues:t(()=>Vo,"compareValues"),compilerOptionsAffectDeclarationPath:t(()=>Uhe,"compilerOptionsAffectDeclarationPath"),compilerOptionsAffectEmit:t(()=>Bhe,"compilerOptionsAffectEmit"),compilerOptionsAffectSemanticDiagnostics:t(()=>jhe,"compilerOptionsAffectSemanticDiagnostics"),compilerOptionsDidYouMeanDiagnostics:t(()=>Uz,"compilerOptionsDidYouMeanDiagnostics"),compilerOptionsIndicateEsModules:t(()=>Zte,"compilerOptionsIndicateEsModules"),computeCommonSourceDirectoryOfFilenames:t(()=>L1e,"computeCommonSourceDirectoryOfFilenames"),computeLineAndCharacterOfPosition:t(()=>TA,"computeLineAndCharacterOfPosition"),computeLineOfPosition:t(()=>s4,"computeLineOfPosition"),computeLineStarts:t(()=>gw,"computeLineStarts"),computePositionOfLineAndCharacter:t(()=>tB,"computePositionOfLineAndCharacter"),computeSignatureWithDiagnostics:t(()=>Lee,"computeSignatureWithDiagnostics"),computeSuggestionDiagnostics:t(()=>Ure,"computeSuggestionDiagnostics"),computedOptions:t(()=>X4,"computedOptions"),concatenate:t(()=>us,"concatenate"),concatenateDiagnosticMessageChains:t(()=>Nhe,"concatenateDiagnosticMessageChains"),consumesNodeCoreModules:t(()=>NJ,"consumesNodeCoreModules"),contains:t(()=>Ci,"contains"),containsIgnoredPath:t(()=>a3,"containsIgnoredPath"),containsObjectRestOrSpread:t(()=>j5,"containsObjectRestOrSpread"),containsParseError:t(()=>ww,"containsParseError"),containsPath:t(()=>wd,"containsPath"),convertCompilerOptionsForTelemetry:t(()=>nye,"convertCompilerOptionsForTelemetry"),convertCompilerOptionsFromJson:t(()=>aLe,"convertCompilerOptionsFromJson"),convertJsonOption:t(()=>NC,"convertJsonOption"),convertToBase64:t(()=>hhe,"convertToBase64"),convertToJson:t(()=>q5,"convertToJson"),convertToObject:t(()=>K0e,"convertToObject"),convertToOptionsWithAbsolutePaths:t(()=>Wz,"convertToOptionsWithAbsolutePaths"),convertToRelativePath:t(()=>n4,"convertToRelativePath"),convertToTSConfig:t(()=>dQ,"convertToTSConfig"),convertTypeAcquisitionFromJson:t(()=>oLe,"convertTypeAcquisitionFromJson"),copyComments:t(()=>UC,"copyComments"),copyEntries:t(()=>CB,"copyEntries"),copyLeadingComments:t(()=>G6,"copyLeadingComments"),copyProperties:t(()=>YG,"copyProperties"),copyTrailingAsLeadingComments:t(()=>zL,"copyTrailingAsLeadingComments"),copyTrailingComments:t(()=>f8,"copyTrailingComments"),couldStartTrivia:t(()=>Kpe,"couldStartTrivia"),countWhere:t(()=>Bf,"countWhere"),createAbstractBuilder:t(()=>p9e,"createAbstractBuilder"),createAccessorPropertyBackingField:t(()=>KZ,"createAccessorPropertyBackingField"),createAccessorPropertyGetRedirector:t(()=>C0e,"createAccessorPropertyGetRedirector"),createAccessorPropertySetRedirector:t(()=>k0e,"createAccessorPropertySetRedirector"),createBaseNodeFactory:t(()=>hge,"createBaseNodeFactory"),createBinaryExpressionTrampoline:t(()=>Nz,"createBinaryExpressionTrampoline"),createBuilderProgram:t(()=>Ree,"createBuilderProgram"),createBuilderProgramUsingIncrementalBuildInfo:t(()=>sve,"createBuilderProgramUsingIncrementalBuildInfo"),createBuilderStatusReporter:t(()=>W$,"createBuilderStatusReporter"),createCacheableExportInfoMap:t(()=>Pre,"createCacheableExportInfoMap"),createCachedDirectoryStructureHost:t(()=>b$,"createCachedDirectoryStructureHost"),createClassifier:t(()=>WMe,"createClassifier"),createCommentDirectivesMap:t(()=>nme,"createCommentDirectivesMap"),createCompilerDiagnostic:t(()=>kc,"createCompilerDiagnostic"),createCompilerDiagnosticForInvalidCustomType:t(()=>$0e,"createCompilerDiagnosticForInvalidCustomType"),createCompilerDiagnosticFromMessageChain:t(()=>PU,"createCompilerDiagnosticFromMessageChain"),createCompilerHost:t(()=>R1e,"createCompilerHost"),createCompilerHostFromProgramHost:t(()=>rte,"createCompilerHostFromProgramHost"),createCompilerHostWorker:t(()=>x$,"createCompilerHostWorker"),createDetachedDiagnostic:t(()=>Jw,"createDetachedDiagnostic"),createDiagnosticCollection:t(()=>U4,"createDiagnosticCollection"),createDiagnosticForFileFromMessageChain:t(()=>AK,"createDiagnosticForFileFromMessageChain"),createDiagnosticForNode:t(()=>Sn,"createDiagnosticForNode"),createDiagnosticForNodeArray:t(()=>LA,"createDiagnosticForNodeArray"),createDiagnosticForNodeArrayFromMessageChain:t(()=>uF,"createDiagnosticForNodeArrayFromMessageChain"),createDiagnosticForNodeFromMessageChain:t(()=>M0,"createDiagnosticForNodeFromMessageChain"),createDiagnosticForNodeInSourceFile:t(()=>Pd,"createDiagnosticForNodeInSourceFile"),createDiagnosticForRange:t(()=>gme,"createDiagnosticForRange"),createDiagnosticMessageChainFromDiagnostic:t(()=>hme,"createDiagnosticMessageChainFromDiagnostic"),createDiagnosticReporter:t(()=>ED,"createDiagnosticReporter"),createDocumentPositionMapper:t(()=>Jye,"createDocumentPositionMapper"),createDocumentRegistry:t(()=>eSe,"createDocumentRegistry"),createDocumentRegistryInternal:t(()=>Fre,"createDocumentRegistryInternal"),createEmitAndSemanticDiagnosticsBuilderProgram:t(()=>Uee,"createEmitAndSemanticDiagnosticsBuilderProgram"),createEmitHelperFactory:t(()=>Ige,"createEmitHelperFactory"),createEmptyExports:t(()=>A5,"createEmptyExports"),createEvaluator:t(()=>uge,"createEvaluator"),createExpressionForJsxElement:t(()=>u0e,"createExpressionForJsxElement"),createExpressionForJsxFragment:t(()=>f0e,"createExpressionForJsxFragment"),createExpressionForObjectLiteralElementLike:t(()=>_0e,"createExpressionForObjectLiteralElementLike"),createExpressionForPropertyName:t(()=>zZ,"createExpressionForPropertyName"),createExpressionFromEntityName:t(()=>N5,"createExpressionFromEntityName"),createExternalHelpersImportDeclarationIfNeeded:t(()=>WZ,"createExternalHelpersImportDeclarationIfNeeded"),createFileDiagnostic:t(()=>su,"createFileDiagnostic"),createFileDiagnosticFromMessageChain:t(()=>LB,"createFileDiagnosticFromMessageChain"),createFlowNode:t(()=>Qg,"createFlowNode"),createForOfBindingStatement:t(()=>UZ,"createForOfBindingStatement"),createFutureSourceFile:t(()=>MJ,"createFutureSourceFile"),createGetCanonicalFileName:t(()=>Hu,"createGetCanonicalFileName"),createGetIsolatedDeclarationErrors:t(()=>T1e,"createGetIsolatedDeclarationErrors"),createGetSourceFile:t(()=>See,"createGetSourceFile"),createGetSymbolAccessibilityDiagnosticForNode:t(()=>l2,"createGetSymbolAccessibilityDiagnosticForNode"),createGetSymbolAccessibilityDiagnosticForNodeName:t(()=>S1e,"createGetSymbolAccessibilityDiagnosticForNodeName"),createGetSymbolWalker:t(()=>Pye,"createGetSymbolWalker"),createIncrementalCompilerHost:t(()=>J$,"createIncrementalCompilerHost"),createIncrementalProgram:t(()=>hve,"createIncrementalProgram"),createJsxFactoryExpression:t(()=>BZ,"createJsxFactoryExpression"),createLanguageService:t(()=>A2e,"createLanguageService"),createLanguageServiceSourceFile:t(()=>rW,"createLanguageServiceSourceFile"),createMemberAccessForPropertyName:t(()=>PC,"createMemberAccessForPropertyName"),createModeAwareCache:t(()=>k6,"createModeAwareCache"),createModeAwareCacheKey:t(()=>L3,"createModeAwareCacheKey"),createModeMismatchDetails:t(()=>dK,"createModeMismatchDetails"),createModuleNotFoundChain:t(()=>wB,"createModuleNotFoundChain"),createModuleResolutionCache:t(()=>w6,"createModuleResolutionCache"),createModuleResolutionLoader:t(()=>wee,"createModuleResolutionLoader"),createModuleResolutionLoaderUsingGlobalCache:t(()=>pve,"createModuleResolutionLoaderUsingGlobalCache"),createModuleSpecifierResolutionHost:t(()=>p2,"createModuleSpecifierResolutionHost"),createMultiMap:t(()=>rm,"createMultiMap"),createNameResolver:t(()=>sZ,"createNameResolver"),createNodeConverters:t(()=>vge,"createNodeConverters"),createNodeFactory:t(()=>h5,"createNodeFactory"),createOptionNameMap:t(()=>jz,"createOptionNameMap"),createOverload:t(()=>wie,"createOverload"),createPackageJsonImportFilter:t(()=>Y6,"createPackageJsonImportFilter"),createPackageJsonInfo:t(()=>Sre,"createPackageJsonInfo"),createParenthesizerRules:t(()=>gge,"createParenthesizerRules"),createPatternMatcher:t(()=>sSe,"createPatternMatcher"),createPrinter:t(()=>Yb,"createPrinter"),createPrinterWithDefaults:t(()=>A1e,"createPrinterWithDefaults"),createPrinterWithRemoveComments:t(()=>Tx,"createPrinterWithRemoveComments"),createPrinterWithRemoveCommentsNeverAsciiEscape:t(()=>N1e,"createPrinterWithRemoveCommentsNeverAsciiEscape"),createPrinterWithRemoveCommentsOmitTrailingSemicolon:t(()=>mee,"createPrinterWithRemoveCommentsOmitTrailingSemicolon"),createProgram:t(()=>hL,"createProgram"),createProgramDiagnostics:t(()=>W1e,"createProgramDiagnostics"),createProgramHost:t(()=>nte,"createProgramHost"),createPropertyNameNodeForIdentifierOrLiteral:t(()=>YU,"createPropertyNameNodeForIdentifierOrLiteral"),createQueue:t(()=>k7,"createQueue"),createRange:t(()=>Id,"createRange"),createRedirectedBuilderProgram:t(()=>Bee,"createRedirectedBuilderProgram"),createResolutionCache:t(()=>Jee,"createResolutionCache"),createRuntimeTypeSerializer:t(()=>i1e,"createRuntimeTypeSerializer"),createScanner:t(()=>N0,"createScanner"),createSemanticDiagnosticsBuilderProgram:t(()=>_9e,"createSemanticDiagnosticsBuilderProgram"),createSet:t(()=>KG,"createSet"),createSolutionBuilder:t(()=>Sve,"createSolutionBuilder"),createSolutionBuilderHost:t(()=>vve,"createSolutionBuilderHost"),createSolutionBuilderWithWatch:t(()=>Tve,"createSolutionBuilderWithWatch"),createSolutionBuilderWithWatchHost:t(()=>bve,"createSolutionBuilderWithWatchHost"),createSortedArray:t(()=>$G,"createSortedArray"),createSourceFile:t(()=>mD,"createSourceFile"),createSourceMapGenerator:t(()=>jye,"createSourceMapGenerator"),createSourceMapSource:t(()=>AFe,"createSourceMapSource"),createSuperAccessVariableStatement:t(()=>y$,"createSuperAccessVariableStatement"),createSymbolTable:t(()=>ga,"createSymbolTable"),createSymlinkCache:t(()=>jX,"createSymlinkCache"),createSyntacticTypeNodeBuilder:t(()=>Uve,"createSyntacticTypeNodeBuilder"),createSystemWatchFunctions:t(()=>$pe,"createSystemWatchFunctions"),createTextChange:t(()=>OL,"createTextChange"),createTextChangeFromStartLength:t(()=>hJ,"createTextChangeFromStartLength"),createTextChangeRange:t(()=>$7,"createTextChangeRange"),createTextRangeFromNode:t(()=>Yte,"createTextRangeFromNode"),createTextRangeFromSpan:t(()=>mJ,"createTextRangeFromSpan"),createTextSpan:t(()=>Gu,"createTextSpan"),createTextSpanFromBounds:t(()=>ul,"createTextSpanFromBounds"),createTextSpanFromNode:t(()=>f_,"createTextSpanFromNode"),createTextSpanFromRange:t(()=>uv,"createTextSpanFromRange"),createTextSpanFromStringLiteralLikeContent:t(()=>Gte,"createTextSpanFromStringLiteralLikeContent"),createTextWriter:t(()=>VF,"createTextWriter"),createTokenRange:t(()=>xX,"createTokenRange"),createTypeChecker:t(()=>Rye,"createTypeChecker"),createTypeReferenceDirectiveResolutionCache:t(()=>e$,"createTypeReferenceDirectiveResolutionCache"),createTypeReferenceResolutionLoader:t(()=>k$,"createTypeReferenceResolutionLoader"),createWatchCompilerHost:t(()=>x9e,"createWatchCompilerHost"),createWatchCompilerHostOfConfigFile:t(()=>ite,"createWatchCompilerHostOfConfigFile"),createWatchCompilerHostOfFilesAndCompilerOptions:t(()=>ste,"createWatchCompilerHostOfFilesAndCompilerOptions"),createWatchFactory:t(()=>tte,"createWatchFactory"),createWatchHost:t(()=>ete,"createWatchHost"),createWatchProgram:t(()=>ate,"createWatchProgram"),createWatchStatusReporter:t(()=>Wee,"createWatchStatusReporter"),createWriteFileMeasuringIO:t(()=>Tee,"createWriteFileMeasuringIO"),declarationNameToString:t(()=>zo,"declarationNameToString"),decodeMappings:t(()=>GQ,"decodeMappings"),decodedTextSpanIntersectsWith:t(()=>z7,"decodedTextSpanIntersectsWith"),deduplicate:t(()=>OT,"deduplicate"),defaultInitCompilerOptions:t(()=>oQ,"defaultInitCompilerOptions"),defaultMaximumTruncationLength:t(()=>S4,"defaultMaximumTruncationLength"),diagnosticCategoryName:t(()=>VE,"diagnosticCategoryName"),diagnosticToString:t(()=>Dx,"diagnosticToString"),diagnosticsEqualityComparer:t(()=>AU,"diagnosticsEqualityComparer"),directoryProbablyExists:t(()=>ih,"directoryProbablyExists"),directorySeparator:t(()=>Xo,"directorySeparator"),displayPart:t(()=>V_,"displayPart"),displayPartsToString:t(()=>eR,"displayPartsToString"),disposeEmitNodes:t(()=>dZ,"disposeEmitNodes"),documentSpansEqual:t(()=>sre,"documentSpansEqual"),dumpTracingLegend:t(()=>j_e,"dumpTracingLegend"),elementAt:t(()=>cb,"elementAt"),elideNodes:t(()=>E0e,"elideNodes"),emitDetachedComments:t(()=>ahe,"emitDetachedComments"),emitFiles:t(()=>pee,"emitFiles"),emitFilesAndReportErrors:t(()=>B$,"emitFilesAndReportErrors"),emitFilesAndReportErrorsAndGetExitStatus:t(()=>Qee,"emitFilesAndReportErrorsAndGetExitStatus"),emitModuleKindIsNonNodeESM:t(()=>s5,"emitModuleKindIsNonNodeESM"),emitNewLineBeforeLeadingCommentOfPosition:t(()=>she,"emitNewLineBeforeLeadingCommentOfPosition"),emitResolverSkipsTypeChecking:t(()=>_ee,"emitResolverSkipsTypeChecking"),emitSkippedWithNoDiagnostics:t(()=>Aee,"emitSkippedWithNoDiagnostics"),emptyArray:t(()=>se,"emptyArray"),emptyFileSystemEntries:t(()=>VX,"emptyFileSystemEntries"),emptyMap:t(()=>Xe,"emptyMap"),emptyOptions:t(()=>dm,"emptyOptions"),endsWith:t(()=>ic,"endsWith"),ensurePathIsNonModuleName:t(()=>HE,"ensurePathIsNonModuleName"),ensureScriptKind:t(()=>UU,"ensureScriptKind"),ensureTrailingDirectorySeparator:t(()=>nu,"ensureTrailingDirectorySeparator"),entityNameToString:t(()=>lp,"entityNameToString"),enumerateInsertsAndDeletes:t(()=>zj,"enumerateInsertsAndDeletes"),equalOwnProperties:t(()=>m_e,"equalOwnProperties"),equateStringsCaseInsensitive:t(()=>pb,"equateStringsCaseInsensitive"),equateStringsCaseSensitive:t(()=>RT,"equateStringsCaseSensitive"),equateValues:t(()=>_b,"equateValues"),escapeJsxAttributeString:t(()=>sX,"escapeJsxAttributeString"),escapeLeadingUnderscores:t(()=>Lc,"escapeLeadingUnderscores"),escapeNonAsciiString:t(()=>cU,"escapeNonAsciiString"),escapeSnippetText:t(()=>ox,"escapeSnippetText"),escapeString:t(()=>Yg,"escapeString"),escapeTemplateSubstitution:t(()=>nX,"escapeTemplateSubstitution"),evaluatorResult:t(()=>au,"evaluatorResult"),every:t(()=>kr,"every"),exclusivelyPrefixedNodeCoreModules:t(()=>rz,"exclusivelyPrefixedNodeCoreModules"),executeCommandLine:t(()=>rMe,"executeCommandLine"),expandPreOrPostfixIncrementOrDecrementExpression:t(()=>kz,"expandPreOrPostfixIncrementOrDecrementExpression"),explainFiles:t(()=>Gee,"explainFiles"),explainIfFileIsRedirectAndImpliedFormat:t(()=>Yee,"explainIfFileIsRedirectAndImpliedFormat"),exportAssignmentIsAlias:t(()=>jF,"exportAssignmentIsAlias"),expressionResultIsUnused:t(()=>rge,"expressionResultIsUnused"),extend:t(()=>Rj,"extend"),extensionFromPath:t(()=>t3,"extensionFromPath"),extensionIsTS:t(()=>qU,"extensionIsTS"),extensionsNotSupportingExtensionlessResolution:t(()=>WU,"extensionsNotSupportingExtensionlessResolution"),externalHelpersModuleNameText:t(()=>kb,"externalHelpersModuleNameText"),factory:t(()=>B,"factory"),fileExtensionIs:t(()=>bc,"fileExtensionIs"),fileExtensionIsOneOf:t(()=>ll,"fileExtensionIsOneOf"),fileIncludeReasonToDiagnostics:t(()=>Zee,"fileIncludeReasonToDiagnostics"),fileShouldUseJavaScriptRequire:t(()=>Dre,"fileShouldUseJavaScriptRequire"),filter:t(()=>In,"filter"),filterMutate:t(()=>NT,"filterMutate"),filterSemanticDiagnostics:t(()=>A$,"filterSemanticDiagnostics"),find:t(()=>yr,"find"),findAncestor:t(()=>Ar,"findAncestor"),findBestPatternMatch:t(()=>rY,"findBestPatternMatch"),findChildOfKind:t(()=>Po,"findChildOfKind"),findComputedPropertyNameCacheAssignment:t(()=>Iz,"findComputedPropertyNameCacheAssignment"),findConfigFile:t(()=>vee,"findConfigFile"),findConstructorDeclaration:t(()=>m5,"findConstructorDeclaration"),findContainingList:t(()=>cJ,"findContainingList"),findDiagnosticForNode:t(()=>qbe,"findDiagnosticForNode"),findFirstNonJsxWhitespaceToken:t(()=>_be,"findFirstNonJsxWhitespaceToken"),findIndex:t(()=>bi,"findIndex"),findLast:t(()=>xs,"findLast"),findLastIndex:t(()=>fc,"findLastIndex"),findListItemInfo:t(()=>fbe,"findListItemInfo"),findModifier:t(()=>q6,"findModifier"),findNextToken:t(()=>kx,"findNextToken"),findPackageJson:t(()=>Wbe,"findPackageJson"),findPackageJsons:t(()=>bre,"findPackageJsons"),findPrecedingMatchingToken:t(()=>pJ,"findPrecedingMatchingToken"),findPrecedingToken:t(()=>Yl,"findPrecedingToken"),findSuperStatementIndexPath:t(()=>_$,"findSuperStatementIndexPath"),findTokenOnLeftOfPosition:t(()=>i8,"findTokenOnLeftOfPosition"),findUseStrictPrologue:t(()=>JZ,"findUseStrictPrologue"),first:t(()=>Ga,"first"),firstDefined:t(()=>Ut,"firstDefined"),firstDefinedIterator:t(()=>Ir,"firstDefinedIterator"),firstIterator:t(()=>qG,"firstIterator"),firstOrOnly:t(()=>Ere,"firstOrOnly"),firstOrUndefined:t(()=>Fl,"firstOrUndefined"),firstOrUndefinedIterator:t(()=>E7,"firstOrUndefinedIterator"),fixupCompilerOptions:t(()=>Wre,"fixupCompilerOptions"),flatMap:t(()=>ka,"flatMap"),flatMapIterator:t(()=>Fy,"flatMapIterator"),flatMapToMutable:t(()=>tm,"flatMapToMutable"),flatten:t(()=>Sf,"flatten"),flattenCommaList:t(()=>w0e,"flattenCommaList"),flattenDestructuringAssignment:t(()=>LC,"flattenDestructuringAssignment"),flattenDestructuringBinding:t(()=>Sx,"flattenDestructuringBinding"),flattenDiagnosticMessageText:t(()=>sg,"flattenDiagnosticMessageText"),forEach:t(()=>je,"forEach"),forEachAncestor:t(()=>Zde,"forEachAncestor"),forEachAncestorDirectory:t(()=>i4,"forEachAncestorDirectory"),forEachAncestorDirectoryStoppingAtGlobalCache:t(()=>Zg,"forEachAncestorDirectoryStoppingAtGlobalCache"),forEachChild:t(()=>Hs,"forEachChild"),forEachChildRecursively:t(()=>dD,"forEachChildRecursively"),forEachDynamicImportOrRequireCall:t(()=>nz,"forEachDynamicImportOrRequireCall"),forEachEmittedFile:t(()=>cee,"forEachEmittedFile"),forEachEnclosingBlockScopeContainer:t(()=>pme,"forEachEnclosingBlockScopeContainer"),forEachEntry:t(()=>iu,"forEachEntry"),forEachExternalModuleToImportFrom:t(()=>Nre,"forEachExternalModuleToImportFrom"),forEachImportClauseDeclaration:t(()=>Ume,"forEachImportClauseDeclaration"),forEachKey:t(()=>L0,"forEachKey"),forEachLeadingCommentRange:t(()=>L7,"forEachLeadingCommentRange"),forEachNameInAccessChainWalkingLeft:t(()=>khe,"forEachNameInAccessChainWalkingLeft"),forEachNameOfDefaultExport:t(()=>BJ,"forEachNameOfDefaultExport"),forEachOptionsSyntaxByName:t(()=>fZ,"forEachOptionsSyntaxByName"),forEachProjectReference:t(()=>f3,"forEachProjectReference"),forEachPropertyAssignment:t(()=>jA,"forEachPropertyAssignment"),forEachResolvedProjectReference:t(()=>lZ,"forEachResolvedProjectReference"),forEachReturnStatement:t(()=>Ab,"forEachReturnStatement"),forEachRight:t(()=>Vt,"forEachRight"),forEachTrailingCommentRange:t(()=>R7,"forEachTrailingCommentRange"),forEachTsConfigPropArray:t(()=>mF,"forEachTsConfigPropArray"),forEachUnique:t(()=>ore,"forEachUnique"),forEachYieldExpression:t(()=>Sme,"forEachYieldExpression"),formatColorAndReset:t(()=>xx,"formatColorAndReset"),formatDiagnostic:t(()=>xee,"formatDiagnostic"),formatDiagnostics:t(()=>URe,"formatDiagnostics"),formatDiagnosticsWithColorAndContext:t(()=>U1e,"formatDiagnosticsWithColorAndContext"),formatGeneratedName:t(()=>i2,"formatGeneratedName"),formatGeneratedNamePart:t(()=>T6,"formatGeneratedNamePart"),formatLocation:t(()=>Eee,"formatLocation"),formatMessage:t(()=>qw,"formatMessage"),formatStringFromArgs:t(()=>$0,"formatStringFromArgs"),formatting:t(()=>zl,"formatting"),generateDjb2Hash:t(()=>t4,"generateDjb2Hash"),generateTSConfig:t(()=>Z0e,"generateTSConfig"),getAdjustedReferenceLocation:t(()=>Ute,"getAdjustedReferenceLocation"),getAdjustedRenameLocation:t(()=>uJ,"getAdjustedRenameLocation"),getAliasDeclarationFromName:t(()=>HK,"getAliasDeclarationFromName"),getAllAccessorDeclarations:t(()=>rx,"getAllAccessorDeclarations"),getAllDecoratorsOfClass:t(()=>QQ,"getAllDecoratorsOfClass"),getAllDecoratorsOfClassElement:t(()=>d$,"getAllDecoratorsOfClassElement"),getAllJSDocTags:t(()=>cB,"getAllJSDocTags"),getAllJSDocTagsOfKind:t(()=>F7e,"getAllJSDocTagsOfKind"),getAllKeys:t(()=>MOe,"getAllKeys"),getAllProjectOutputs:t(()=>v$,"getAllProjectOutputs"),getAllSuperTypeNodes:t(()=>L4,"getAllSuperTypeNodes"),getAllowImportingTsExtensions:t(()=>Ohe,"getAllowImportingTsExtensions"),getAllowJSCompilerOption:t(()=>Mb,"getAllowJSCompilerOption"),getAllowSyntheticDefaultImports:t(()=>Vw,"getAllowSyntheticDefaultImports"),getAncestor:t(()=>WS,"getAncestor"),getAnyExtensionFromPath:t(()=>dw,"getAnyExtensionFromPath"),getAreDeclarationMapsEnabled:t(()=>NU,"getAreDeclarationMapsEnabled"),getAssignedExpandoInitializer:t(()=>Aw,"getAssignedExpandoInitializer"),getAssignedName:t(()=>sB,"getAssignedName"),getAssignmentDeclarationKind:t(()=>fl,"getAssignmentDeclarationKind"),getAssignmentDeclarationPropertyAccessKind:t(()=>DF,"getAssignmentDeclarationPropertyAccessKind"),getAssignmentTargetKind:t(()=>Nb,"getAssignmentTargetKind"),getAutomaticTypeDirectiveNames:t(()=>Zz,"getAutomaticTypeDirectiveNames"),getBaseFileName:t(()=>Ll,"getBaseFileName"),getBinaryOperatorPrecedence:t(()=>JF,"getBinaryOperatorPrecedence"),getBuildInfo:t(()=>dee,"getBuildInfo"),getBuildInfoFileVersionMap:t(()=>jee,"getBuildInfoFileVersionMap"),getBuildInfoText:t(()=>D1e,"getBuildInfoText"),getBuildOrderFromAnyBuildOrder:t(()=>SL,"getBuildOrderFromAnyBuildOrder"),getBuilderCreationParameters:t(()=>F$,"getBuilderCreationParameters"),getBuilderFileEmit:t(()=>Kb,"getBuilderFileEmit"),getCanonicalDiagnostic:t(()=>yme,"getCanonicalDiagnostic"),getCheckFlags:t(()=>$c,"getCheckFlags"),getClassExtendsHeritageElement:t(()=>ZT,"getClassExtendsHeritageElement"),getClassLikeDeclarationOfSymbol:t(()=>Gy,"getClassLikeDeclarationOfSymbol"),getCombinedLocalAndExportSymbolFlags:t(()=>ZA,"getCombinedLocalAndExportSymbolFlags"),getCombinedModifierFlags:t(()=>LS,"getCombinedModifierFlags"),getCombinedNodeFlags:t(()=>Uy,"getCombinedNodeFlags"),getCombinedNodeFlagsAlwaysIncludeJSDoc:t(()=>$Y,"getCombinedNodeFlagsAlwaysIncludeJSDoc"),getCommentRange:t(()=>Xh,"getCommentRange"),getCommonSourceDirectory:t(()=>G3,"getCommonSourceDirectory"),getCommonSourceDirectoryOfConfig:t(()=>RC,"getCommonSourceDirectoryOfConfig"),getCompilerOptionValue:t(()=>FU,"getCompilerOptionValue"),getCompilerOptionsDiffValue:t(()=>X0e,"getCompilerOptionsDiffValue"),getConditions:t(()=>Vb,"getConditions"),getConfigFileParsingDiagnostics:t(()=>Ex,"getConfigFileParsingDiagnostics"),getConstantValue:t(()=>Ege,"getConstantValue"),getContainerFlags:t(()=>OQ,"getContainerFlags"),getContainerNode:t(()=>BC,"getContainerNode"),getContainingClass:t(()=>Mu,"getContainingClass"),getContainingClassExcludingClassDecorators:t(()=>JB,"getContainingClassExcludingClassDecorators"),getContainingClassStaticBlock:t(()=>Pme,"getContainingClassStaticBlock"),getContainingFunction:t(()=>rd,"getContainingFunction"),getContainingFunctionDeclaration:t(()=>Dme,"getContainingFunctionDeclaration"),getContainingFunctionOrClassStaticBlock:t(()=>$B,"getContainingFunctionOrClassStaticBlock"),getContainingNodeArray:t(()=>nge,"getContainingNodeArray"),getContainingObjectLiteralElement:t(()=>tR,"getContainingObjectLiteralElement"),getContextualTypeFromParent:t(()=>CJ,"getContextualTypeFromParent"),getContextualTypeFromParentOrAncestorTypeNode:t(()=>lJ,"getContextualTypeFromParentOrAncestorTypeNode"),getDeclarationDiagnostics:t(()=>x1e,"getDeclarationDiagnostics"),getDeclarationEmitExtensionForPath:t(()=>fU,"getDeclarationEmitExtensionForPath"),getDeclarationEmitOutputFilePath:t(()=>the,"getDeclarationEmitOutputFilePath"),getDeclarationEmitOutputFilePathWorker:t(()=>uU,"getDeclarationEmitOutputFilePathWorker"),getDeclarationFileExtension:t(()=>Fz,"getDeclarationFileExtension"),getDeclarationFromName:t(()=>F4,"getDeclarationFromName"),getDeclarationModifierFlagsFromSymbol:t(()=>Fd,"getDeclarationModifierFlagsFromSymbol"),getDeclarationOfKind:t(()=>dc,"getDeclarationOfKind"),getDeclarationsOfKind:t(()=>Kde,"getDeclarationsOfKind"),getDeclaredExpandoInitializer:t(()=>N4,"getDeclaredExpandoInitializer"),getDecorators:t(()=>yb,"getDecorators"),getDefaultCompilerOptions:t(()=>tW,"getDefaultCompilerOptions"),getDefaultFormatCodeSettings:t(()=>Q$,"getDefaultFormatCodeSettings"),getDefaultLibFileName:t(()=>j7,"getDefaultLibFileName"),getDefaultLibFilePath:t(()=>N2e,"getDefaultLibFilePath"),getDefaultLikeExportInfo:t(()=>jJ,"getDefaultLikeExportInfo"),getDefaultLikeExportNameFromDeclaration:t(()=>Cre,"getDefaultLikeExportNameFromDeclaration"),getDefaultResolutionModeForFileWorker:t(()=>P$,"getDefaultResolutionModeForFileWorker"),getDiagnosticText:t(()=>A_,"getDiagnosticText"),getDiagnosticsWithinSpan:t(()=>Vbe,"getDiagnosticsWithinSpan"),getDirectoryPath:t(()=>_i,"getDirectoryPath"),getDirectoryToWatchFailedLookupLocation:t(()=>$ee,"getDirectoryToWatchFailedLookupLocation"),getDirectoryToWatchFailedLookupLocationFromTypeRoot:t(()=>fve,"getDirectoryToWatchFailedLookupLocationFromTypeRoot"),getDocumentPositionMapper:t(()=>Bre,"getDocumentPositionMapper"),getDocumentSpansEqualityComparer:t(()=>are,"getDocumentSpansEqualityComparer"),getESModuleInterop:t(()=>J0,"getESModuleInterop"),getEditsForFileRename:t(()=>rSe,"getEditsForFileRename"),getEffectiveBaseTypeNode:t(()=>Wh,"getEffectiveBaseTypeNode"),getEffectiveConstraintOfTypeParameter:t(()=>kA,"getEffectiveConstraintOfTypeParameter"),getEffectiveContainerForJSDocTemplateTag:t(()=>tU,"getEffectiveContainerForJSDocTemplateTag"),getEffectiveImplementsTypeNodes:t(()=>qA,"getEffectiveImplementsTypeNodes"),getEffectiveInitializer:t(()=>CF,"getEffectiveInitializer"),getEffectiveJSDocHost:t(()=>JS,"getEffectiveJSDocHost"),getEffectiveModifierFlags:t(()=>Wf,"getEffectiveModifierFlags"),getEffectiveModifierFlagsAlwaysIncludeJSDoc:t(()=>uhe,"getEffectiveModifierFlagsAlwaysIncludeJSDoc"),getEffectiveModifierFlagsNoCache:t(()=>fhe,"getEffectiveModifierFlagsNoCache"),getEffectiveReturnTypeNode:t(()=>jp,"getEffectiveReturnTypeNode"),getEffectiveSetAccessorTypeAnnotationNode:t(()=>pX,"getEffectiveSetAccessorTypeAnnotationNode"),getEffectiveTypeAnnotationNode:t(()=>Rl,"getEffectiveTypeAnnotationNode"),getEffectiveTypeParameterDeclarations:t(()=>bb,"getEffectiveTypeParameterDeclarations"),getEffectiveTypeRoots:t(()=>F3,"getEffectiveTypeRoots"),getElementOrPropertyAccessArgumentExpressionOrName:t(()=>eU,"getElementOrPropertyAccessArgumentExpressionOrName"),getElementOrPropertyAccessName:t(()=>Jy,"getElementOrPropertyAccessName"),getElementsOfBindingOrAssignmentPattern:t(()=>S6,"getElementsOfBindingOrAssignmentPattern"),getEmitDeclarations:t(()=>W_,"getEmitDeclarations"),getEmitFlags:t(()=>Ya,"getEmitFlags"),getEmitHelpers:t(()=>mZ,"getEmitHelpers"),getEmitModuleDetectionKind:t(()=>Fhe,"getEmitModuleDetectionKind"),getEmitModuleFormatOfFileWorker:t(()=>Z3,"getEmitModuleFormatOfFileWorker"),getEmitModuleKind:t(()=>qf,"getEmitModuleKind"),getEmitModuleResolutionKind:t(()=>Cf,"getEmitModuleResolutionKind"),getEmitScriptTarget:t(()=>Ja,"getEmitScriptTarget"),getEmitStandardClassFields:t(()=>RX,"getEmitStandardClassFields"),getEnclosingBlockScopeContainer:t(()=>rh,"getEnclosingBlockScopeContainer"),getEnclosingContainer:t(()=>FB,"getEnclosingContainer"),getEncodedSemanticClassifications:t(()=>Ire,"getEncodedSemanticClassifications"),getEncodedSyntacticClassifications:t(()=>Ore,"getEncodedSyntacticClassifications"),getEndLinePosition:t(()=>sF,"getEndLinePosition"),getEntityNameFromTypeNode:t(()=>yF,"getEntityNameFromTypeNode"),getEntrypointsFromPackageJsonInfo:t(()=>DQ,"getEntrypointsFromPackageJsonInfo"),getErrorCountForSummary:t(()=>M$,"getErrorCountForSummary"),getErrorSpanForNode:t(()=>nC,"getErrorSpanForNode"),getErrorSummaryText:t(()=>Vee,"getErrorSummaryText"),getEscapedTextOfIdentifierOrLiteral:t(()=>j4,"getEscapedTextOfIdentifierOrLiteral"),getEscapedTextOfJsxAttributeName:t(()=>l3,"getEscapedTextOfJsxAttributeName"),getEscapedTextOfJsxNamespacedName:t(()=>Kw,"getEscapedTextOfJsxNamespacedName"),getExpandoInitializer:t(()=>zS,"getExpandoInitializer"),getExportAssignmentExpression:t(()=>GK,"getExportAssignmentExpression"),getExportInfoMap:t(()=>HL,"getExportInfoMap"),getExportNeedsImportStarHelper:t(()=>Wye,"getExportNeedsImportStarHelper"),getExpressionAssociativity:t(()=>tX,"getExpressionAssociativity"),getExpressionPrecedence:t(()=>B4,"getExpressionPrecedence"),getExternalHelpersModuleName:t(()=>O5,"getExternalHelpersModuleName"),getExternalModuleImportEqualsDeclarationExpression:t(()=>P4,"getExternalModuleImportEqualsDeclarationExpression"),getExternalModuleName:t(()=>Iw,"getExternalModuleName"),getExternalModuleNameFromDeclaration:t(()=>Qme,"getExternalModuleNameFromDeclaration"),getExternalModuleNameFromPath:t(()=>cX,"getExternalModuleNameFromPath"),getExternalModuleNameLiteral:t(()=>pD,"getExternalModuleNameLiteral"),getExternalModuleRequireArgument:t(()=>MK,"getExternalModuleRequireArgument"),getFallbackOptions:t(()=>pL,"getFallbackOptions"),getFileEmitOutput:t(()=>q1e,"getFileEmitOutput"),getFileMatcherPatterns:t(()=>BU,"getFileMatcherPatterns"),getFileNamesFromConfigSpecs:t(()=>I3,"getFileNamesFromConfigSpecs"),getFileWatcherEventKind:t(()=>DY,"getFileWatcherEventKind"),getFilesInErrorForSummary:t(()=>j$,"getFilesInErrorForSummary"),getFirstConstructorWithBody:t(()=>U0,"getFirstConstructorWithBody"),getFirstIdentifier:t(()=>s_,"getFirstIdentifier"),getFirstNonSpaceCharacterPosition:t(()=>Rbe,"getFirstNonSpaceCharacterPosition"),getFirstProjectOutput:t(()=>fee,"getFirstProjectOutput"),getFixableErrorSpanExpression:t(()=>Tre,"getFixableErrorSpanExpression"),getFormatCodeSettingsForWriting:t(()=>LJ,"getFormatCodeSettingsForWriting"),getFullWidth:t(()=>nF,"getFullWidth"),getFunctionFlags:t(()=>gl,"getFunctionFlags"),getHeritageClause:t(()=>BF,"getHeritageClause"),getHostSignatureFromJSDoc:t(()=>$S,"getHostSignatureFromJSDoc"),getIdentifierAutoGenerate:t(()=>OFe,"getIdentifierAutoGenerate"),getIdentifierGeneratedImportReference:t(()=>Age,"getIdentifierGeneratedImportReference"),getIdentifierTypeArguments:t(()=>yC,"getIdentifierTypeArguments"),getImmediatelyInvokedFunctionExpression:t(()=>HT,"getImmediatelyInvokedFunctionExpression"),getImpliedNodeFormatForEmitWorker:t(()=>MC,"getImpliedNodeFormatForEmitWorker"),getImpliedNodeFormatForFile:t(()=>mL,"getImpliedNodeFormatForFile"),getImpliedNodeFormatForFileWorker:t(()=>D$,"getImpliedNodeFormatForFileWorker"),getImportNeedsImportDefaultHelper:t(()=>KQ,"getImportNeedsImportDefaultHelper"),getImportNeedsImportStarHelper:t(()=>u$,"getImportNeedsImportStarHelper"),getIndentString:t(()=>lU,"getIndentString"),getInferredLibraryNameResolveFrom:t(()=>w$,"getInferredLibraryNameResolveFrom"),getInitializedVariables:t(()=>H4,"getInitializedVariables"),getInitializerOfBinaryExpression:t(()=>zK,"getInitializerOfBinaryExpression"),getInitializerOfBindingOrAssignmentElement:t(()=>L5,"getInitializerOfBindingOrAssignmentElement"),getInterfaceBaseTypeNodes:t(()=>R4,"getInterfaceBaseTypeNodes"),getInternalEmitFlags:t(()=>Im,"getInternalEmitFlags"),getInvokedExpression:t(()=>VB,"getInvokedExpression"),getIsFileExcluded:t(()=>Xbe,"getIsFileExcluded"),getIsolatedModules:t(()=>um,"getIsolatedModules"),getJSDocAugmentsTag:t(()=>bde,"getJSDocAugmentsTag"),getJSDocClassTag:t(()=>qY,"getJSDocClassTag"),getJSDocCommentRanges:t(()=>IK,"getJSDocCommentRanges"),getJSDocCommentsAndTags:t(()=>$K,"getJSDocCommentsAndTags"),getJSDocDeprecatedTag:t(()=>VY,"getJSDocDeprecatedTag"),getJSDocDeprecatedTagNoCache:t(()=>wde,"getJSDocDeprecatedTagNoCache"),getJSDocEnumTag:t(()=>HY,"getJSDocEnumTag"),getJSDocHost:t(()=>KT,"getJSDocHost"),getJSDocImplementsTags:t(()=>Sde,"getJSDocImplementsTags"),getJSDocOverloadTags:t(()=>WK,"getJSDocOverloadTags"),getJSDocOverrideTagNoCache:t(()=>kde,"getJSDocOverrideTagNoCache"),getJSDocParameterTags:t(()=>CA,"getJSDocParameterTags"),getJSDocParameterTagsNoCache:t(()=>hde,"getJSDocParameterTagsNoCache"),getJSDocPrivateTag:t(()=>A7e,"getJSDocPrivateTag"),getJSDocPrivateTagNoCache:t(()=>xde,"getJSDocPrivateTagNoCache"),getJSDocProtectedTag:t(()=>N7e,"getJSDocProtectedTag"),getJSDocProtectedTagNoCache:t(()=>Ede,"getJSDocProtectedTagNoCache"),getJSDocPublicTag:t(()=>P7e,"getJSDocPublicTag"),getJSDocPublicTagNoCache:t(()=>Tde,"getJSDocPublicTagNoCache"),getJSDocReadonlyTag:t(()=>I7e,"getJSDocReadonlyTag"),getJSDocReadonlyTagNoCache:t(()=>Cde,"getJSDocReadonlyTagNoCache"),getJSDocReturnTag:t(()=>Dde,"getJSDocReturnTag"),getJSDocReturnType:t(()=>W7,"getJSDocReturnType"),getJSDocRoot:t(()=>WA,"getJSDocRoot"),getJSDocSatisfiesExpressionType:t(()=>rZ,"getJSDocSatisfiesExpressionType"),getJSDocSatisfiesTag:t(()=>GY,"getJSDocSatisfiesTag"),getJSDocTags:t(()=>MS,"getJSDocTags"),getJSDocTemplateTag:t(()=>O7e,"getJSDocTemplateTag"),getJSDocThisTag:t(()=>aB,"getJSDocThisTag"),getJSDocType:t(()=>vb,"getJSDocType"),getJSDocTypeAliasName:t(()=>VZ,"getJSDocTypeAliasName"),getJSDocTypeAssertionType:t(()=>v6,"getJSDocTypeAssertionType"),getJSDocTypeParameterDeclarations:t(()=>hU,"getJSDocTypeParameterDeclarations"),getJSDocTypeParameterTags:t(()=>gde,"getJSDocTypeParameterTags"),getJSDocTypeParameterTagsNoCache:t(()=>yde,"getJSDocTypeParameterTagsNoCache"),getJSDocTypeTag:t(()=>RS,"getJSDocTypeTag"),getJSXImplicitImportBase:t(()=>a5,"getJSXImplicitImportBase"),getJSXRuntimeImport:t(()=>RU,"getJSXRuntimeImport"),getJSXTransformEnabled:t(()=>LU,"getJSXTransformEnabled"),getKeyForCompilerOptions:t(()=>xQ,"getKeyForCompilerOptions"),getLanguageVariant:t(()=>e5,"getLanguageVariant"),getLastChild:t(()=>PX,"getLastChild"),getLeadingCommentRanges:t(()=>A0,"getLeadingCommentRanges"),getLeadingCommentRangesOfNode:t(()=>NK,"getLeadingCommentRangesOfNode"),getLeftmostAccessExpression:t(()=>QA,"getLeftmostAccessExpression"),getLeftmostExpression:t(()=>e6,"getLeftmostExpression"),getLibFileNameFromLibReference:t(()=>cZ,"getLibFileNameFromLibReference"),getLibNameFromLibReference:t(()=>oZ,"getLibNameFromLibReference"),getLibraryNameFromLibFileName:t(()=>Dee,"getLibraryNameFromLibFileName"),getLineAndCharacterOfPosition:t(()=>_a,"getLineAndCharacterOfPosition"),getLineInfo:t(()=>HQ,"getLineInfo"),getLineOfLocalPosition:t(()=>z4,"getLineOfLocalPosition"),getLineStartPositionForPosition:t(()=>mm,"getLineStartPositionForPosition"),getLineStarts:t(()=>D0,"getLineStarts"),getLinesBetweenPositionAndNextNonWhitespaceCharacter:t(()=>xhe,"getLinesBetweenPositionAndNextNonWhitespaceCharacter"),getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:t(()=>The,"getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter"),getLinesBetweenPositions:t(()=>a4,"getLinesBetweenPositions"),getLinesBetweenRangeEndAndRangeStart:t(()=>EX,"getLinesBetweenRangeEndAndRangeStart"),getLinesBetweenRangeEndPositions:t(()=>lFe,"getLinesBetweenRangeEndPositions"),getLiteralText:t(()=>ame,"getLiteralText"),getLocalNameForExternalImport:t(()=>b6,"getLocalNameForExternalImport"),getLocalSymbolForExportDefault:t(()=>q4,"getLocalSymbolForExportDefault"),getLocaleSpecificMessage:t(()=>Js,"getLocaleSpecificMessage"),getLocaleTimeString:t(()=>bL,"getLocaleTimeString"),getMappedContextSpan:t(()=>cre,"getMappedContextSpan"),getMappedDocumentSpan:t(()=>TJ,"getMappedDocumentSpan"),getMappedLocation:t(()=>c8,"getMappedLocation"),getMatchedFileSpec:t(()=>Kee,"getMatchedFileSpec"),getMatchedIncludeSpec:t(()=>Xee,"getMatchedIncludeSpec"),getMeaningFromDeclaration:t(()=>tJ,"getMeaningFromDeclaration"),getMeaningFromLocation:t(()=>jC,"getMeaningFromLocation"),getMembersOfDeclaration:t(()=>Tme,"getMembersOfDeclaration"),getModeForFileReference:t(()=>z1e,"getModeForFileReference"),getModeForResolutionAtIndex:t(()=>VRe,"getModeForResolutionAtIndex"),getModeForUsageLocation:t(()=>kee,"getModeForUsageLocation"),getModifiedTime:t(()=>pw,"getModifiedTime"),getModifiers:t(()=>jT,"getModifiers"),getModuleInstanceState:t(()=>Qy,"getModuleInstanceState"),getModuleNameStringLiteralAt:t(()=>gL,"getModuleNameStringLiteralAt"),getModuleSpecifierEndingPreference:t(()=>Hhe,"getModuleSpecifierEndingPreference"),getModuleSpecifierResolverHost:t(()=>Qte,"getModuleSpecifierResolverHost"),getNameForExportedSymbol:t(()=>IJ,"getNameForExportedSymbol"),getNameFromImportAttribute:t(()=>QU,"getNameFromImportAttribute"),getNameFromIndexInfo:t(()=>dme,"getNameFromIndexInfo"),getNameFromPropertyName:t(()=>LL,"getNameFromPropertyName"),getNameOfAccessExpression:t(()=>NX,"getNameOfAccessExpression"),getNameOfCompilerOptionValue:t(()=>mQ,"getNameOfCompilerOptionValue"),getNameOfDeclaration:t(()=>Ls,"getNameOfDeclaration"),getNameOfExpando:t(()=>jK,"getNameOfExpando"),getNameOfJSDocTypedef:t(()=>mde,"getNameOfJSDocTypedef"),getNameOfScriptTarget:t(()=>OU,"getNameOfScriptTarget"),getNameOrArgument:t(()=>wF,"getNameOrArgument"),getNameTable:t(()=>mne,"getNameTable"),getNamespaceDeclarationNode:t(()=>$A,"getNamespaceDeclarationNode"),getNewLineCharacter:t(()=>Z1,"getNewLineCharacter"),getNewLineKind:t(()=>VL,"getNewLineKind"),getNewLineOrDefaultFromHost:t(()=>t1,"getNewLineOrDefaultFromHost"),getNewTargetContainer:t(()=>Nme,"getNewTargetContainer"),getNextJSDocCommentLocation:t(()=>JK,"getNextJSDocCommentLocation"),getNodeChildren:t(()=>MZ,"getNodeChildren"),getNodeForGeneratedName:t(()=>M5,"getNodeForGeneratedName"),getNodeId:t(()=>so,"getNodeId"),getNodeKind:t(()=>Cx,"getNodeKind"),getNodeModifiers:t(()=>s8,"getNodeModifiers"),getNodeModulePathParts:t(()=>KU,"getNodeModulePathParts"),getNonAssignedNameOfDeclaration:t(()=>iB,"getNonAssignedNameOfDeclaration"),getNonAssignmentOperatorForCompoundAssignment:t(()=>$3,"getNonAssignmentOperatorForCompoundAssignment"),getNonAugmentationDeclaration:t(()=>EK,"getNonAugmentationDeclaration"),getNonDecoratorTokenPosOfNode:t(()=>yK,"getNonDecoratorTokenPosOfNode"),getNonIncrementalBuildInfoRoots:t(()=>ave,"getNonIncrementalBuildInfoRoots"),getNonModifierTokenPosOfNode:t(()=>ime,"getNonModifierTokenPosOfNode"),getNormalizedAbsolutePath:t(()=>bs,"getNormalizedAbsolutePath"),getNormalizedAbsolutePathWithoutRoot:t(()=>IY,"getNormalizedAbsolutePathWithoutRoot"),getNormalizedPathComponents:t(()=>Kj,"getNormalizedPathComponents"),getObjectFlags:t(()=>Gn,"getObjectFlags"),getOperatorAssociativity:t(()=>rX,"getOperatorAssociativity"),getOperatorPrecedence:t(()=>$F,"getOperatorPrecedence"),getOptionFromName:t(()=>lQ,"getOptionFromName"),getOptionsForLibraryResolution:t(()=>EQ,"getOptionsForLibraryResolution"),getOptionsNameMap:t(()=>E6,"getOptionsNameMap"),getOptionsSyntaxByArrayElementValue:t(()=>uZ,"getOptionsSyntaxByArrayElementValue"),getOptionsSyntaxByValue:t(()=>mge,"getOptionsSyntaxByValue"),getOrCreateEmitNode:t(()=>pf,"getOrCreateEmitNode"),getOrUpdate:t(()=>JE,"getOrUpdate"),getOriginalNode:t(()=>Sc,"getOriginalNode"),getOriginalNodeId:t(()=>u_,"getOriginalNodeId"),getOutputDeclarationFileName:t(()=>O6,"getOutputDeclarationFileName"),getOutputDeclarationFileNameWorker:t(()=>lee,"getOutputDeclarationFileNameWorker"),getOutputExtension:t(()=>uL,"getOutputExtension"),getOutputFileNames:t(()=>jRe,"getOutputFileNames"),getOutputJSFileNameWorker:t(()=>uee,"getOutputJSFileNameWorker"),getOutputPathsFor:t(()=>H3,"getOutputPathsFor"),getOwnEmitOutputFilePath:t(()=>ehe,"getOwnEmitOutputFilePath"),getOwnKeys:t(()=>Rh,"getOwnKeys"),getOwnValues:t(()=>lw,"getOwnValues"),getPackageJsonTypesVersionsPaths:t(()=>Xz,"getPackageJsonTypesVersionsPaths"),getPackageNameFromTypesPackageName:t(()=>j3,"getPackageNameFromTypesPackageName"),getPackageScopeForPath:t(()=>M3,"getPackageScopeForPath"),getParameterSymbolFromJSDoc:t(()=>LF,"getParameterSymbolFromJSDoc"),getParentNodeInSpan:t(()=>ML,"getParentNodeInSpan"),getParseTreeNode:t(()=>zs,"getParseTreeNode"),getParsedCommandLineOfConfigFile:t(()=>J5,"getParsedCommandLineOfConfigFile"),getPathComponents:t(()=>uf,"getPathComponents"),getPathFromPathComponents:t(()=>FS,"getPathFromPathComponents"),getPathUpdater:t(()=>Rre,"getPathUpdater"),getPathsBasePath:t(()=>_U,"getPathsBasePath"),getPatternFromSpec:t(()=>zX,"getPatternFromSpec"),getPendingEmitKindWithSeen:t(()=>O$,"getPendingEmitKindWithSeen"),getPositionOfLineAndCharacter:t(()=>O7,"getPositionOfLineAndCharacter"),getPossibleGenericSignatures:t(()=>$te,"getPossibleGenericSignatures"),getPossibleOriginalInputExtensionForExtension:t(()=>lX,"getPossibleOriginalInputExtensionForExtension"),getPossibleOriginalInputPathWithoutChangingExt:t(()=>uX,"getPossibleOriginalInputPathWithoutChangingExt"),getPossibleTypeArgumentsInfo:t(()=>Jte,"getPossibleTypeArgumentsInfo"),getPreEmitDiagnostics:t(()=>BRe,"getPreEmitDiagnostics"),getPrecedingNonSpaceCharacterPosition:t(()=>xJ,"getPrecedingNonSpaceCharacterPosition"),getPrivateIdentifier:t(()=>eee,"getPrivateIdentifier"),getProperties:t(()=>ZQ,"getProperties"),getProperty:t(()=>Lj,"getProperty"),getPropertyAssignmentAliasLikeExpression:t(()=>Hme,"getPropertyAssignmentAliasLikeExpression"),getPropertyNameForPropertyNameNode:t(()=>fC,"getPropertyNameForPropertyNameNode"),getPropertyNameFromType:t(()=>Rd,"getPropertyNameFromType"),getPropertyNameOfBindingOrAssignmentElement:t(()=>qZ,"getPropertyNameOfBindingOrAssignmentElement"),getPropertySymbolFromBindingElement:t(()=>SJ,"getPropertySymbolFromBindingElement"),getPropertySymbolsFromContextualType:t(()=>nW,"getPropertySymbolsFromContextualType"),getQuoteFromPreference:t(()=>tre,"getQuoteFromPreference"),getQuotePreference:t(()=>gp,"getQuotePreference"),getRangesWhere:t(()=>zG,"getRangesWhere"),getRefactorContextSpan:t(()=>DD,"getRefactorContextSpan"),getReferencedFileLocation:t(()=>X3,"getReferencedFileLocation"),getRegexFromPattern:t(()=>Q1,"getRegexFromPattern"),getRegularExpressionForWildcard:t(()=>Z4,"getRegularExpressionForWildcard"),getRegularExpressionsForWildcards:t(()=>MU,"getRegularExpressionsForWildcards"),getRelativePathFromDirectory:t(()=>td,"getRelativePathFromDirectory"),getRelativePathFromFile:t(()=>SA,"getRelativePathFromFile"),getRelativePathToDirectoryOrUrl:t(()=>hw,"getRelativePathToDirectoryOrUrl"),getRenameLocation:t(()=>UL,"getRenameLocation"),getReplacementSpanForContextToken:t(()=>Hte,"getReplacementSpanForContextToken"),getResolutionDiagnostic:t(()=>Iee,"getResolutionDiagnostic"),getResolutionModeOverride:t(()=>F6,"getResolutionModeOverride"),getResolveJsonModule:t(()=>ix,"getResolveJsonModule"),getResolvePackageJsonExports:t(()=>r5,"getResolvePackageJsonExports"),getResolvePackageJsonImports:t(()=>n5,"getResolvePackageJsonImports"),getResolvedExternalModuleName:t(()=>oX,"getResolvedExternalModuleName"),getResolvedModuleFromResolution:t(()=>kw,"getResolvedModuleFromResolution"),getResolvedTypeReferenceDirectiveFromResolution:t(()=>kB,"getResolvedTypeReferenceDirectiveFromResolution"),getRestIndicatorOfBindingOrAssignmentElement:t(()=>Pz,"getRestIndicatorOfBindingOrAssignmentElement"),getRestParameterElementType:t(()=>OK,"getRestParameterElementType"),getRightMostAssignedExpression:t(()=>kF,"getRightMostAssignedExpression"),getRootDeclaration:t(()=>Vh,"getRootDeclaration"),getRootDirectoryOfResolutionCache:t(()=>_ve,"getRootDirectoryOfResolutionCache"),getRootLength:t(()=>Qm,"getRootLength"),getScriptKind:t(()=>_re,"getScriptKind"),getScriptKindFromFileName:t(()=>zU,"getScriptKindFromFileName"),getScriptTargetFeatures:t(()=>vK,"getScriptTargetFeatures"),getSelectedEffectiveModifierFlags:t(()=>jw,"getSelectedEffectiveModifierFlags"),getSelectedSyntacticModifierFlags:t(()=>che,"getSelectedSyntacticModifierFlags"),getSemanticClassifications:t(()=>Zbe,"getSemanticClassifications"),getSemanticJsxChildren:t(()=>HA,"getSemanticJsxChildren"),getSetAccessorTypeAnnotationNode:t(()=>nhe,"getSetAccessorTypeAnnotationNode"),getSetAccessorValueParameter:t(()=>$4,"getSetAccessorValueParameter"),getSetExternalModuleIndicator:t(()=>t5,"getSetExternalModuleIndicator"),getShebang:t(()=>rB,"getShebang"),getSingleVariableOfVariableStatement:t(()=>Lw,"getSingleVariableOfVariableStatement"),getSnapshotText:t(()=>wD,"getSnapshotText"),getSnippetElement:t(()=>hZ,"getSnippetElement"),getSourceFileOfModule:t(()=>iF,"getSourceFileOfModule"),getSourceFileOfNode:t(()=>Hr,"getSourceFileOfNode"),getSourceFilePathInNewDir:t(()=>dU,"getSourceFilePathInNewDir"),getSourceFileVersionAsHashFromText:t(()=>U$,"getSourceFileVersionAsHashFromText"),getSourceFilesToEmit:t(()=>pU,"getSourceFilesToEmit"),getSourceMapRange:t(()=>tv,"getSourceMapRange"),getSourceMapper:t(()=>dSe,"getSourceMapper"),getSourceTextOfNodeFromSourceFile:t(()=>JT,"getSourceTextOfNodeFromSourceFile"),getSpanOfTokenAtPosition:t(()=>zh,"getSpanOfTokenAtPosition"),getSpellingSuggestion:t(()=>MT,"getSpellingSuggestion"),getStartPositionOfLine:t(()=>wb,"getStartPositionOfLine"),getStartPositionOfRange:t(()=>V4,"getStartPositionOfRange"),getStartsOnNewLine:t(()=>_3,"getStartsOnNewLine"),getStaticPropertiesAndClassStaticBlock:t(()=>p$,"getStaticPropertiesAndClassStaticBlock"),getStrictOptionValue:t(()=>_f,"getStrictOptionValue"),getStringComparer:t(()=>hA,"getStringComparer"),getSubPatternFromSpec:t(()=>jU,"getSubPatternFromSpec"),getSuperCallFromStatement:t(()=>f$,"getSuperCallFromStatement"),getSuperContainer:t(()=>hF,"getSuperContainer"),getSupportedCodeFixes:t(()=>pne,"getSupportedCodeFixes"),getSupportedExtensions:t(()=>Q4,"getSupportedExtensions"),getSupportedExtensionsWithJsonIfResolveJsonModule:t(()=>c5,"getSupportedExtensionsWithJsonIfResolveJsonModule"),getSwitchedType:t(()=>gre,"getSwitchedType"),getSymbolId:t(()=>Da,"getSymbolId"),getSymbolNameForPrivateIdentifier:t(()=>UF,"getSymbolNameForPrivateIdentifier"),getSymbolTarget:t(()=>pre,"getSymbolTarget"),getSyntacticClassifications:t(()=>Qbe,"getSyntacticClassifications"),getSyntacticModifierFlags:t(()=>K1,"getSyntacticModifierFlags"),getSyntacticModifierFlagsNoCache:t(()=>hX,"getSyntacticModifierFlagsNoCache"),getSynthesizedDeepClone:t(()=>yo,"getSynthesizedDeepClone"),getSynthesizedDeepCloneWithReplacements:t(()=>BL,"getSynthesizedDeepCloneWithReplacements"),getSynthesizedDeepClones:t(()=>wx,"getSynthesizedDeepClones"),getSynthesizedDeepClonesWithReplacements:t(()=>dre,"getSynthesizedDeepClonesWithReplacements"),getSyntheticLeadingComments:t(()=>a6,"getSyntheticLeadingComments"),getSyntheticTrailingComments:t(()=>b5,"getSyntheticTrailingComments"),getTargetLabel:t(()=>iJ,"getTargetLabel"),getTargetOfBindingOrAssignmentElement:t(()=>Wb,"getTargetOfBindingOrAssignmentElement"),getTemporaryModuleResolutionState:t(()=>R3,"getTemporaryModuleResolutionState"),getTextOfConstantValue:t(()=>ome,"getTextOfConstantValue"),getTextOfIdentifierOrLiteral:t(()=>Nd,"getTextOfIdentifierOrLiteral"),getTextOfJSDocComment:t(()=>q7,"getTextOfJSDocComment"),getTextOfJsxAttributeName:t(()=>d5,"getTextOfJsxAttributeName"),getTextOfJsxNamespacedName:t(()=>u3,"getTextOfJsxNamespacedName"),getTextOfNode:t(()=>Cc,"getTextOfNode"),getTextOfNodeFromSourceText:t(()=>x4,"getTextOfNodeFromSourceText"),getTextOfPropertyName:t(()=>Pw,"getTextOfPropertyName"),getThisContainer:t(()=>Jf,"getThisContainer"),getThisParameter:t(()=>ex,"getThisParameter"),getTokenAtPosition:t(()=>ji,"getTokenAtPosition"),getTokenPosOfNode:t(()=>Db,"getTokenPosOfNode"),getTokenSourceMapRange:t(()=>NFe,"getTokenSourceMapRange"),getTouchingPropertyName:t(()=>N_,"getTouchingPropertyName"),getTouchingToken:t(()=>J6,"getTouchingToken"),getTrailingCommentRanges:t(()=>gb,"getTrailingCommentRanges"),getTrailingSemicolonDeferringWriter:t(()=>aX,"getTrailingSemicolonDeferringWriter"),getTransformers:t(()=>C1e,"getTransformers"),getTsBuildInfoEmitOutputFilePath:t(()=>u2,"getTsBuildInfoEmitOutputFilePath"),getTsConfigObjectLiteralExpression:t(()=>w4,"getTsConfigObjectLiteralExpression"),getTsConfigPropArrayElementValue:t(()=>zB,"getTsConfigPropArrayElementValue"),getTypeAnnotationNode:t(()=>ihe,"getTypeAnnotationNode"),getTypeArgumentOrTypeParameterList:t(()=>vbe,"getTypeArgumentOrTypeParameterList"),getTypeKeywordOfTypeOnlyImport:t(()=>ire,"getTypeKeywordOfTypeOnlyImport"),getTypeNode:t(()=>Dge,"getTypeNode"),getTypeNodeIfAccessible:t(()=>p8,"getTypeNodeIfAccessible"),getTypeParameterFromJsDoc:t(()=>zme,"getTypeParameterFromJsDoc"),getTypeParameterOwner:t(()=>C7e,"getTypeParameterOwner"),getTypesPackageName:t(()=>i$,"getTypesPackageName"),getUILocale:t(()=>b_e,"getUILocale"),getUniqueName:t(()=>zC,"getUniqueName"),getUniqueSymbolId:t(()=>Lbe,"getUniqueSymbolId"),getUseDefineForClassFields:t(()=>i5,"getUseDefineForClassFields"),getWatchErrorSummaryDiagnosticMessage:t(()=>qee,"getWatchErrorSummaryDiagnosticMessage"),getWatchFactory:t(()=>yee,"getWatchFactory"),group:t(()=>mA,"group"),groupBy:t(()=>GG,"groupBy"),guessIndentation:t(()=>Gde,"guessIndentation"),handleNoEmitOptions:t(()=>Nee,"handleNoEmitOptions"),handleWatchOptionsConfigDirTemplateSubstitution:t(()=>qz,"handleWatchOptionsConfigDirTemplateSubstitution"),hasAbstractModifier:t(()=>nx,"hasAbstractModifier"),hasAccessorModifier:t(()=>Hh,"hasAccessorModifier"),hasAmbientModifier:t(()=>mX,"hasAmbientModifier"),hasChangesInResolutions:t(()=>mK,"hasChangesInResolutions"),hasContextSensitiveParameters:t(()=>GU,"hasContextSensitiveParameters"),hasDecorators:t(()=>id,"hasDecorators"),hasDocComment:t(()=>gbe,"hasDocComment"),hasDynamicName:t(()=>Wy,"hasDynamicName"),hasEffectiveModifier:t(()=>_p,"hasEffectiveModifier"),hasEffectiveModifiers:t(()=>dX,"hasEffectiveModifiers"),hasEffectiveReadonlyModifier:t(()=>pC,"hasEffectiveReadonlyModifier"),hasExtension:t(()=>bA,"hasExtension"),hasImplementationTSFileExtension:t(()=>qhe,"hasImplementationTSFileExtension"),hasIndexSignature:t(()=>hre,"hasIndexSignature"),hasInferredType:t(()=>tz,"hasInferredType"),hasInitializer:t(()=>H1,"hasInitializer"),hasInvalidEscape:t(()=>iX,"hasInvalidEscape"),hasJSDocNodes:t(()=>Rp,"hasJSDocNodes"),hasJSDocParameterTags:t(()=>vde,"hasJSDocParameterTags"),hasJSFileExtension:t(()=>W0,"hasJSFileExtension"),hasJsonModuleEmitEnabled:t(()=>IU,"hasJsonModuleEmitEnabled"),hasOnlyExpressionInitializer:t(()=>tC,"hasOnlyExpressionInitializer"),hasOverrideModifier:t(()=>gU,"hasOverrideModifier"),hasPossibleExternalModuleReference:t(()=>_me,"hasPossibleExternalModuleReference"),hasProperty:t(()=>Ro,"hasProperty"),hasPropertyAccessExpressionWithName:t(()=>wL,"hasPropertyAccessExpressionWithName"),hasQuestionToken:t(()=>Ow,"hasQuestionToken"),hasRecordedExternalHelpers:t(()=>m0e,"hasRecordedExternalHelpers"),hasResolutionModeOverride:t(()=>cge,"hasResolutionModeOverride"),hasRestParameter:t(()=>uK,"hasRestParameter"),hasScopeMarker:t(()=>Bde,"hasScopeMarker"),hasStaticModifier:t(()=>Hl,"hasStaticModifier"),hasSyntacticModifier:t(()=>di,"hasSyntacticModifier"),hasSyntacticModifiers:t(()=>ohe,"hasSyntacticModifiers"),hasTSFileExtension:t(()=>mC,"hasTSFileExtension"),hasTabstop:t(()=>sge,"hasTabstop"),hasTrailingDirectorySeparator:t(()=>mb,"hasTrailingDirectorySeparator"),hasType:t(()=>SB,"hasType"),hasTypeArguments:t(()=>Q7e,"hasTypeArguments"),hasZeroOrOneAsteriskCharacter:t(()=>MX,"hasZeroOrOneAsteriskCharacter"),hostGetCanonicalFileName:t(()=>qy,"hostGetCanonicalFileName"),hostUsesCaseSensitiveFileNames:t(()=>_C,"hostUsesCaseSensitiveFileNames"),idText:t(()=>Xn,"idText"),identifierIsThisKeyword:t(()=>_X,"identifierIsThisKeyword"),identifierToKeywordKind:t(()=>YE,"identifierToKeywordKind"),identity:t(()=>qo,"identity"),identitySourceMapConsumer:t(()=>YQ,"identitySourceMapConsumer"),ignoreSourceNewlines:t(()=>yZ,"ignoreSourceNewlines"),ignoredPaths:t(()=>Hj,"ignoredPaths"),importFromModuleSpecifier:t(()=>I4,"importFromModuleSpecifier"),importSyntaxAffectsModuleResolution:t(()=>LX,"importSyntaxAffectsModuleResolution"),indexOfAnyCharCode:t(()=>bf,"indexOfAnyCharCode"),indexOfNode:t(()=>OA,"indexOfNode"),indicesOf:t(()=>Fj,"indicesOf"),inferredTypesContainingFile:t(()=>K3,"inferredTypesContainingFile"),injectClassNamedEvaluationHelperBlockIfMissing:t(()=>g$,"injectClassNamedEvaluationHelperBlockIfMissing"),injectClassThisAssignmentIfMissing:t(()=>Zye,"injectClassThisAssignmentIfMissing"),insertImports:t(()=>nre,"insertImports"),insertSorted:t(()=>ob,"insertSorted"),insertStatementAfterCustomPrologue:t(()=>rC,"insertStatementAfterCustomPrologue"),insertStatementAfterStandardPrologue:t(()=>V7e,"insertStatementAfterStandardPrologue"),insertStatementsAfterCustomPrologue:t(()=>hK,"insertStatementsAfterCustomPrologue"),insertStatementsAfterStandardPrologue:t(()=>R0,"insertStatementsAfterStandardPrologue"),intersperse:t(()=>Jn,"intersperse"),intrinsicTagNameToString:t(()=>nZ,"intrinsicTagNameToString"),introducesArgumentsExoticObject:t(()=>Cme,"introducesArgumentsExoticObject"),inverseJsxOptionMap:t(()=>z5,"inverseJsxOptionMap"),isAbstractConstructorSymbol:t(()=>Ehe,"isAbstractConstructorSymbol"),isAbstractModifier:t(()=>Uge,"isAbstractModifier"),isAccessExpression:t(()=>Zo,"isAccessExpression"),isAccessibilityModifier:t(()=>qte,"isAccessibilityModifier"),isAccessor:t(()=>Eb,"isAccessor"),isAccessorModifier:t(()=>$ge,"isAccessorModifier"),isAliasableExpression:t(()=>rU,"isAliasableExpression"),isAmbientModule:t(()=>$f,"isAmbientModule"),isAmbientPropertyDeclaration:t(()=>kK,"isAmbientPropertyDeclaration"),isAnyDirectorySeparator:t(()=>PY,"isAnyDirectorySeparator"),isAnyImportOrBareOrAccessedRequire:t(()=>ume,"isAnyImportOrBareOrAccessedRequire"),isAnyImportOrReExport:t(()=>cF,"isAnyImportOrReExport"),isAnyImportOrRequireStatement:t(()=>fme,"isAnyImportOrRequireStatement"),isAnyImportSyntax:t(()=>Dw,"isAnyImportSyntax"),isAnySupportedFileExtension:t(()=>xFe,"isAnySupportedFileExtension"),isApplicableVersionedTypesKey:t(()=>X5,"isApplicableVersionedTypesKey"),isArgumentExpressionOfElementAccess:t(()=>Fte,"isArgumentExpressionOfElementAccess"),isArray:t(()=>Bs,"isArray"),isArrayBindingElement:t(()=>mB,"isArrayBindingElement"),isArrayBindingOrAssignmentElement:t(()=>X7,"isArrayBindingOrAssignmentElement"),isArrayBindingOrAssignmentPattern:t(()=>iK,"isArrayBindingOrAssignmentPattern"),isArrayBindingPattern:t(()=>sv,"isArrayBindingPattern"),isArrayLiteralExpression:t(()=>Xu,"isArrayLiteralExpression"),isArrayLiteralOrObjectLiteralDestructuringPattern:t(()=>lv,"isArrayLiteralOrObjectLiteralDestructuringPattern"),isArrayTypeNode:t(()=>C5,"isArrayTypeNode"),isArrowFunction:t(()=>Qo,"isArrowFunction"),isAsExpression:t(()=>u6,"isAsExpression"),isAssertClause:t(()=>Yge,"isAssertClause"),isAssertEntry:t(()=>$Fe,"isAssertEntry"),isAssertionExpression:t(()=>$T,"isAssertionExpression"),isAssertsKeyword:t(()=>jge,"isAssertsKeyword"),isAssignmentDeclaration:t(()=>A4,"isAssignmentDeclaration"),isAssignmentExpression:t(()=>Su,"isAssignmentExpression"),isAssignmentOperator:t(()=>Vy,"isAssignmentOperator"),isAssignmentPattern:t(()=>v4,"isAssignmentPattern"),isAssignmentTarget:t(()=>Ib,"isAssignmentTarget"),isAsteriskToken:t(()=>T5,"isAsteriskToken"),isAsyncFunction:t(()=>M4,"isAsyncFunction"),isAsyncModifier:t(()=>h3,"isAsyncModifier"),isAutoAccessorPropertyDeclaration:t(()=>E_,"isAutoAccessorPropertyDeclaration"),isAwaitExpression:t(()=>$b,"isAwaitExpression"),isAwaitKeyword:t(()=>xZ,"isAwaitKeyword"),isBigIntLiteral:t(()=>m3,"isBigIntLiteral"),isBinaryExpression:t(()=>Fn,"isBinaryExpression"),isBinaryLogicalOperator:t(()=>HF,"isBinaryLogicalOperator"),isBinaryOperatorToken:t(()=>x0e,"isBinaryOperatorToken"),isBindableObjectDefinePropertyCall:t(()=>oC,"isBindableObjectDefinePropertyCall"),isBindableStaticAccessExpression:t(()=>YT,"isBindableStaticAccessExpression"),isBindableStaticElementAccessExpression:t(()=>QB,"isBindableStaticElementAccessExpression"),isBindableStaticNameExpression:t(()=>cC,"isBindableStaticNameExpression"),isBindingElement:t(()=>qa,"isBindingElement"),isBindingElementOfBareOrAccessedRequire:t(()=>Fme,"isBindingElementOfBareOrAccessedRequire"),isBindingName:t(()=>QE,"isBindingName"),isBindingOrAssignmentElement:t(()=>Lde,"isBindingOrAssignmentElement"),isBindingOrAssignmentPattern:t(()=>Y7,"isBindingOrAssignmentPattern"),isBindingPattern:t(()=>ra,"isBindingPattern"),isBlock:t(()=>Zs,"isBlock"),isBlockLike:t(()=>PD,"isBlockLike"),isBlockOrCatchScoped:t(()=>bK,"isBlockOrCatchScoped"),isBlockScope:t(()=>wK,"isBlockScope"),isBlockScopedContainerTopLevel:t(()=>lme,"isBlockScopedContainerTopLevel"),isBooleanLiteral:t(()=>y4,"isBooleanLiteral"),isBreakOrContinueStatement:t(()=>d4,"isBreakOrContinueStatement"),isBreakStatement:t(()=>BFe,"isBreakStatement"),isBuildCommand:t(()=>Fve,"isBuildCommand"),isBuildInfoFile:t(()=>k1e,"isBuildInfoFile"),isBuilderProgram:t(()=>Hee,"isBuilderProgram"),isBundle:t(()=>Qge,"isBundle"),isCallChain:t(()=>KE,"isCallChain"),isCallExpression:t(()=>la,"isCallExpression"),isCallExpressionTarget:t(()=>Dte,"isCallExpressionTarget"),isCallLikeExpression:t(()=>zT,"isCallLikeExpression"),isCallLikeOrFunctionLikeExpression:t(()=>sK,"isCallLikeOrFunctionLikeExpression"),isCallOrNewExpression:t(()=>Bh,"isCallOrNewExpression"),isCallOrNewExpressionTarget:t(()=>Pte,"isCallOrNewExpressionTarget"),isCallSignatureDeclaration:t(()=>iD,"isCallSignatureDeclaration"),isCallToHelper:t(()=>d3,"isCallToHelper"),isCaseBlock:t(()=>x3,"isCaseBlock"),isCaseClause:t(()=>d6,"isCaseClause"),isCaseKeyword:t(()=>Jge,"isCaseKeyword"),isCaseOrDefaultClause:t(()=>vB,"isCaseOrDefaultClause"),isCatchClause:t(()=>hx,"isCatchClause"),isCatchClauseVariableDeclaration:t(()=>ige,"isCatchClauseVariableDeclaration"),isCatchClauseVariableDeclarationOrBindingElement:t(()=>SK,"isCatchClauseVariableDeclarationOrBindingElement"),isCheckJsEnabledForFile:t(()=>r3,"isCheckJsEnabledForFile"),isCircularBuildOrder:t(()=>CD,"isCircularBuildOrder"),isClassDeclaration:t(()=>Bl,"isClassDeclaration"),isClassElement:t(()=>xl,"isClassElement"),isClassExpression:t(()=>jl,"isClassExpression"),isClassInstanceProperty:t(()=>Ode,"isClassInstanceProperty"),isClassLike:t(()=>yi,"isClassLike"),isClassMemberModifier:t(()=>tK,"isClassMemberModifier"),isClassNamedEvaluationHelperBlock:t(()=>TD,"isClassNamedEvaluationHelperBlock"),isClassOrTypeElement:t(()=>dB,"isClassOrTypeElement"),isClassStaticBlockDeclaration:t(()=>Xc,"isClassStaticBlockDeclaration"),isClassThisAssignmentBlock:t(()=>W3,"isClassThisAssignmentBlock"),isColonToken:t(()=>Rge,"isColonToken"),isCommaExpression:t(()=>I5,"isCommaExpression"),isCommaListExpression:t(()=>S3,"isCommaListExpression"),isCommaSequence:t(()=>D3,"isCommaSequence"),isCommaToken:t(()=>Lge,"isCommaToken"),isComment:t(()=>dJ,"isComment"),isCommonJsExportPropertyAssignment:t(()=>BB,"isCommonJsExportPropertyAssignment"),isCommonJsExportedExpression:t(()=>xme,"isCommonJsExportedExpression"),isCompoundAssignment:t(()=>z3,"isCompoundAssignment"),isComputedNonLiteralName:t(()=>lF,"isComputedNonLiteralName"),isComputedPropertyName:t(()=>Ia,"isComputedPropertyName"),isConciseBody:t(()=>gB,"isConciseBody"),isConditionalExpression:t(()=>xC,"isConditionalExpression"),isConditionalTypeNode:t(()=>ux,"isConditionalTypeNode"),isConstAssertion:t(()=>iZ,"isConstAssertion"),isConstTypeReference:t(()=>Am,"isConstTypeReference"),isConstructSignatureDeclaration:t(()=>E5,"isConstructSignatureDeclaration"),isConstructorDeclaration:t(()=>wc,"isConstructorDeclaration"),isConstructorTypeNode:t(()=>o6,"isConstructorTypeNode"),isContextualKeyword:t(()=>iU,"isContextualKeyword"),isContinueStatement:t(()=>jFe,"isContinueStatement"),isCustomPrologue:t(()=>dF,"isCustomPrologue"),isDebuggerStatement:t(()=>UFe,"isDebuggerStatement"),isDeclaration:t(()=>gu,"isDeclaration"),isDeclarationBindingElement:t(()=>G7,"isDeclarationBindingElement"),isDeclarationFileName:t(()=>uu,"isDeclarationFileName"),isDeclarationName:t(()=>Gg,"isDeclarationName"),isDeclarationNameOfEnumOrNamespace:t(()=>kX,"isDeclarationNameOfEnumOrNamespace"),isDeclarationReadonly:t(()=>fF,"isDeclarationReadonly"),isDeclarationStatement:t(()=>Jde,"isDeclarationStatement"),isDeclarationWithTypeParameterChildren:t(()=>PK,"isDeclarationWithTypeParameterChildren"),isDeclarationWithTypeParameters:t(()=>DK,"isDeclarationWithTypeParameters"),isDecorator:t(()=>ou,"isDecorator"),isDecoratorTarget:t(()=>abe,"isDecoratorTarget"),isDefaultClause:t(()=>E3,"isDefaultClause"),isDefaultImport:t(()=>lC,"isDefaultImport"),isDefaultModifier:t(()=>pz,"isDefaultModifier"),isDefaultedExpandoInitializer:t(()=>Lme,"isDefaultedExpandoInitializer"),isDeleteExpression:t(()=>qge,"isDeleteExpression"),isDeleteTarget:t(()=>VK,"isDeleteTarget"),isDeprecatedDeclaration:t(()=>OJ,"isDeprecatedDeclaration"),isDestructuringAssignment:t(()=>X1,"isDestructuringAssignment"),isDiskPathRoot:t(()=>AY,"isDiskPathRoot"),isDoStatement:t(()=>MFe,"isDoStatement"),isDocumentRegistryEntry:t(()=>GL,"isDocumentRegistryEntry"),isDotDotDotToken:t(()=>fz,"isDotDotDotToken"),isDottedName:t(()=>YF,"isDottedName"),isDynamicName:t(()=>aU,"isDynamicName"),isEffectiveExternalModule:t(()=>FA,"isEffectiveExternalModule"),isEffectiveStrictModeSourceFile:t(()=>CK,"isEffectiveStrictModeSourceFile"),isElementAccessChain:t(()=>YY,"isElementAccessChain"),isElementAccessExpression:t(()=>$o,"isElementAccessExpression"),isEmittedFileOfProgram:t(()=>O1e,"isEmittedFileOfProgram"),isEmptyArrayLiteral:t(()=>mhe,"isEmptyArrayLiteral"),isEmptyBindingElement:t(()=>_de,"isEmptyBindingElement"),isEmptyBindingPattern:t(()=>fde,"isEmptyBindingPattern"),isEmptyObjectLiteral:t(()=>SX,"isEmptyObjectLiteral"),isEmptyStatement:t(()=>kZ,"isEmptyStatement"),isEmptyStringLiteral:t(()=>RK,"isEmptyStringLiteral"),isEntityName:t(()=>n_,"isEntityName"),isEntityNameExpression:t(()=>No,"isEntityNameExpression"),isEnumConst:t(()=>BS,"isEnumConst"),isEnumDeclaration:t(()=>px,"isEnumDeclaration"),isEnumMember:t(()=>av,"isEnumMember"),isEqualityOperatorKind:t(()=>kJ,"isEqualityOperatorKind"),isEqualsGreaterThanToken:t(()=>Mge,"isEqualsGreaterThanToken"),isExclamationToken:t(()=>x5,"isExclamationToken"),isExcludedFile:t(()=>eye,"isExcludedFile"),isExclusivelyTypeOnlyImportOrExport:t(()=>Cee,"isExclusivelyTypeOnlyImportOrExport"),isExpandoPropertyDeclaration:t(()=>Xw,"isExpandoPropertyDeclaration"),isExportAssignment:t(()=>lc,"isExportAssignment"),isExportDeclaration:t(()=>yl,"isExportDeclaration"),isExportModifier:t(()=>rD,"isExportModifier"),isExportName:t(()=>wz,"isExportName"),isExportNamespaceAsDefaultDeclaration:t(()=>NB,"isExportNamespaceAsDefaultDeclaration"),isExportOrDefaultModifier:t(()=>R5,"isExportOrDefaultModifier"),isExportSpecifier:t(()=>kf,"isExportSpecifier"),isExportsIdentifier:t(()=>aC,"isExportsIdentifier"),isExportsOrModuleExportsOrAlias:t(()=>vx,"isExportsOrModuleExportsOrAlias"),isExpression:t(()=>kt,"isExpression"),isExpressionNode:t(()=>nh,"isExpressionNode"),isExpressionOfExternalModuleImportEqualsDeclaration:t(()=>lbe,"isExpressionOfExternalModuleImportEqualsDeclaration"),isExpressionOfOptionalChainRoot:t(()=>uB,"isExpressionOfOptionalChainRoot"),isExpressionStatement:t(()=>Tu,"isExpressionStatement"),isExpressionWithTypeArguments:t(()=>Ky,"isExpressionWithTypeArguments"),isExpressionWithTypeArgumentsInClassExtendsClause:t(()=>vU,"isExpressionWithTypeArgumentsInClassExtendsClause"),isExternalModule:t(()=>Gl,"isExternalModule"),isExternalModuleAugmentation:t(()=>qT,"isExternalModuleAugmentation"),isExternalModuleImportEqualsDeclaration:t(()=>US,"isExternalModuleImportEqualsDeclaration"),isExternalModuleIndicator:t(()=>Q7,"isExternalModuleIndicator"),isExternalModuleNameRelative:t(()=>mu,"isExternalModuleNameRelative"),isExternalModuleReference:t(()=>Xy,"isExternalModuleReference"),isExternalModuleSymbol:t(()=>Ew,"isExternalModuleSymbol"),isExternalOrCommonJsModule:t(()=>up,"isExternalOrCommonJsModule"),isFileLevelReservedGeneratedIdentifier:t(()=>H7,"isFileLevelReservedGeneratedIdentifier"),isFileLevelUniqueName:t(()=>PB,"isFileLevelUniqueName"),isFileProbablyExternalModule:t(()=>B5,"isFileProbablyExternalModule"),isFirstDeclarationOfSymbolParameter:t(()=>lre,"isFirstDeclarationOfSymbolParameter"),isFixablePromiseHandler:t(()=>$re,"isFixablePromiseHandler"),isForInOrOfStatement:t(()=>eC,"isForInOrOfStatement"),isForInStatement:t(()=>yz,"isForInStatement"),isForInitializer:t(()=>Dd,"isForInitializer"),isForOfStatement:t(()=>w5,"isForOfStatement"),isForStatement:t(()=>e2,"isForStatement"),isFullSourceFile:t(()=>j0,"isFullSourceFile"),isFunctionBlock:t(()=>VT,"isFunctionBlock"),isFunctionBody:t(()=>oK,"isFunctionBody"),isFunctionDeclaration:t(()=>nl,"isFunctionDeclaration"),isFunctionExpression:t(()=>Ho,"isFunctionExpression"),isFunctionExpressionOrArrowFunction:t(()=>jb,"isFunctionExpressionOrArrowFunction"),isFunctionLike:t(()=>Gs,"isFunctionLike"),isFunctionLikeDeclaration:t(()=>Uo,"isFunctionLikeDeclaration"),isFunctionLikeKind:t(()=>bw,"isFunctionLikeKind"),isFunctionLikeOrClassStaticBlockDeclaration:t(()=>PA,"isFunctionLikeOrClassStaticBlockDeclaration"),isFunctionOrConstructorTypeNode:t(()=>Fde,"isFunctionOrConstructorTypeNode"),isFunctionOrModuleBlock:t(()=>rK,"isFunctionOrModuleBlock"),isFunctionSymbol:t(()=>jme,"isFunctionSymbol"),isFunctionTypeNode:t(()=>Kg,"isFunctionTypeNode"),isGeneratedIdentifier:t(()=>_c,"isGeneratedIdentifier"),isGeneratedPrivateIdentifier:t(()=>ZE,"isGeneratedPrivateIdentifier"),isGetAccessor:t(()=>O0,"isGetAccessor"),isGetAccessorDeclaration:t(()=>Md,"isGetAccessorDeclaration"),isGetOrSetAccessorDeclaration:t(()=>V7,"isGetOrSetAccessorDeclaration"),isGlobalScopeAugmentation:t(()=>Hg,"isGlobalScopeAugmentation"),isGlobalSourceFile:t(()=>G1,"isGlobalSourceFile"),isGrammarError:t(()=>rme,"isGrammarError"),isHeritageClause:t(()=>dp,"isHeritageClause"),isHoistedFunction:t(()=>MB,"isHoistedFunction"),isHoistedVariableStatement:t(()=>jB,"isHoistedVariableStatement"),isIdentifier:t(()=>Ye,"isIdentifier"),isIdentifierANonContextualKeyword:t(()=>XK,"isIdentifierANonContextualKeyword"),isIdentifierName:t(()=>Vme,"isIdentifierName"),isIdentifierOrThisTypeNode:t(()=>v0e,"isIdentifierOrThisTypeNode"),isIdentifierPart:t(()=>By,"isIdentifierPart"),isIdentifierStart:t(()=>Jg,"isIdentifierStart"),isIdentifierText:t(()=>z_,"isIdentifierText"),isIdentifierTypePredicate:t(()=>kme,"isIdentifierTypePredicate"),isIdentifierTypeReference:t(()=>Qhe,"isIdentifierTypeReference"),isIfStatement:t(()=>QS,"isIfStatement"),isIgnoredFileFromWildCardWatching:t(()=>_L,"isIgnoredFileFromWildCardWatching"),isImplicitGlob:t(()=>UX,"isImplicitGlob"),isImportAttribute:t(()=>Kge,"isImportAttribute"),isImportAttributeName:t(()=>Ide,"isImportAttributeName"),isImportAttributes:t(()=>CC,"isImportAttributes"),isImportCall:t(()=>Mp,"isImportCall"),isImportClause:t(()=>Rm,"isImportClause"),isImportDeclaration:t(()=>Tc,"isImportDeclaration"),isImportEqualsDeclaration:t(()=>lu,"isImportEqualsDeclaration"),isImportKeyword:t(()=>y3,"isImportKeyword"),isImportMeta:t(()=>MA,"isImportMeta"),isImportOrExportSpecifier:t(()=>Tb,"isImportOrExportSpecifier"),isImportOrExportSpecifierName:t(()=>Fbe,"isImportOrExportSpecifierName"),isImportSpecifier:t(()=>Gf,"isImportSpecifier"),isImportTypeAssertionContainer:t(()=>zFe,"isImportTypeAssertionContainer"),isImportTypeNode:t(()=>Zh,"isImportTypeNode"),isImportable:t(()=>Are,"isImportable"),isInComment:t(()=>cv,"isInComment"),isInCompoundLikeAssignment:t(()=>qK,"isInCompoundLikeAssignment"),isInExpressionContext:t(()=>HB,"isInExpressionContext"),isInJSDoc:t(()=>SF,"isInJSDoc"),isInJSFile:t(()=>xn,"isInJSFile"),isInJSXText:t(()=>hbe,"isInJSXText"),isInJsonFile:t(()=>YB,"isInJsonFile"),isInNonReferenceComment:t(()=>Tbe,"isInNonReferenceComment"),isInReferenceComment:t(()=>Sbe,"isInReferenceComment"),isInRightSideOfInternalImportEqualsDeclaration:t(()=>rJ,"isInRightSideOfInternalImportEqualsDeclaration"),isInString:t(()=>kD,"isInString"),isInTemplateString:t(()=>zte,"isInTemplateString"),isInTopLevelContext:t(()=>WB,"isInTopLevelContext"),isInTypeQuery:t(()=>Mw,"isInTypeQuery"),isIncrementalBuildInfo:t(()=>yL,"isIncrementalBuildInfo"),isIncrementalBundleEmitBuildInfo:t(()=>eve,"isIncrementalBundleEmitBuildInfo"),isIncrementalCompilation:t(()=>sx,"isIncrementalCompilation"),isIndexSignatureDeclaration:t(()=>zb,"isIndexSignatureDeclaration"),isIndexedAccessTypeNode:t(()=>fx,"isIndexedAccessTypeNode"),isInferTypeNode:t(()=>bC,"isInferTypeNode"),isInfinityOrNaNString:t(()=>o3,"isInfinityOrNaNString"),isInitializedProperty:t(()=>rL,"isInitializedProperty"),isInitializedVariable:t(()=>QF,"isInitializedVariable"),isInsideJsxElement:t(()=>_J,"isInsideJsxElement"),isInsideJsxElementOrAttribute:t(()=>mbe,"isInsideJsxElementOrAttribute"),isInsideNodeModules:t(()=>JL,"isInsideNodeModules"),isInsideTemplateLiteral:t(()=>IL,"isInsideTemplateLiteral"),isInstanceOfExpression:t(()=>bU,"isInstanceOfExpression"),isInstantiatedModule:t(()=>$Q,"isInstantiatedModule"),isInterfaceDeclaration:t(()=>Zu,"isInterfaceDeclaration"),isInternalDeclaration:t(()=>Yde,"isInternalDeclaration"),isInternalModuleImportEqualsDeclaration:t(()=>sC,"isInternalModuleImportEqualsDeclaration"),isInternalName:t(()=>$Z,"isInternalName"),isIntersectionTypeNode:t(()=>oD,"isIntersectionTypeNode"),isIntrinsicJsxName:t(()=>GA,"isIntrinsicJsxName"),isIterationStatement:t(()=>Cb,"isIterationStatement"),isJSDoc:t(()=>lh,"isJSDoc"),isJSDocAllType:t(()=>r0e,"isJSDocAllType"),isJSDocAugmentsTag:t(()=>_D,"isJSDocAugmentsTag"),isJSDocAuthorTag:t(()=>VFe,"isJSDocAuthorTag"),isJSDocCallbackTag:t(()=>AZ,"isJSDocCallbackTag"),isJSDocClassTag:t(()=>i0e,"isJSDocClassTag"),isJSDocCommentContainingNode:t(()=>bB,"isJSDocCommentContainingNode"),isJSDocConstructSignature:t(()=>Fw,"isJSDocConstructSignature"),isJSDocDeprecatedTag:t(()=>LZ,"isJSDocDeprecatedTag"),isJSDocEnumTag:t(()=>P5,"isJSDocEnumTag"),isJSDocFunctionType:t(()=>h6,"isJSDocFunctionType"),isJSDocImplementsTag:t(()=>Ez,"isJSDocImplementsTag"),isJSDocImportTag:t(()=>ng,"isJSDocImportTag"),isJSDocIndexSignature:t(()=>XB,"isJSDocIndexSignature"),isJSDocLikeText:t(()=>XZ,"isJSDocLikeText"),isJSDocLink:t(()=>e0e,"isJSDocLink"),isJSDocLinkCode:t(()=>t0e,"isJSDocLinkCode"),isJSDocLinkLike:t(()=>xw,"isJSDocLinkLike"),isJSDocLinkPlain:t(()=>WFe,"isJSDocLinkPlain"),isJSDocMemberName:t(()=>n2,"isJSDocMemberName"),isJSDocNameReference:t(()=>C3,"isJSDocNameReference"),isJSDocNamepathType:t(()=>qFe,"isJSDocNamepathType"),isJSDocNamespaceBody:t(()=>B7e,"isJSDocNamespaceBody"),isJSDocNode:t(()=>AA,"isJSDocNode"),isJSDocNonNullableType:t(()=>bz,"isJSDocNonNullableType"),isJSDocNullableType:t(()=>m6,"isJSDocNullableType"),isJSDocOptionalParameter:t(()=>XU,"isJSDocOptionalParameter"),isJSDocOptionalType:t(()=>PZ,"isJSDocOptionalType"),isJSDocOverloadTag:t(()=>g6,"isJSDocOverloadTag"),isJSDocOverrideTag:t(()=>Tz,"isJSDocOverrideTag"),isJSDocParameterTag:t(()=>ad,"isJSDocParameterTag"),isJSDocPrivateTag:t(()=>IZ,"isJSDocPrivateTag"),isJSDocPropertyLikeTag:t(()=>m4,"isJSDocPropertyLikeTag"),isJSDocPropertyTag:t(()=>s0e,"isJSDocPropertyTag"),isJSDocProtectedTag:t(()=>OZ,"isJSDocProtectedTag"),isJSDocPublicTag:t(()=>NZ,"isJSDocPublicTag"),isJSDocReadonlyTag:t(()=>FZ,"isJSDocReadonlyTag"),isJSDocReturnTag:t(()=>xz,"isJSDocReturnTag"),isJSDocSatisfiesExpression:t(()=>tZ,"isJSDocSatisfiesExpression"),isJSDocSatisfiesTag:t(()=>Cz,"isJSDocSatisfiesTag"),isJSDocSeeTag:t(()=>HFe,"isJSDocSeeTag"),isJSDocSignature:t(()=>ov,"isJSDocSignature"),isJSDocTag:t(()=>NA,"isJSDocTag"),isJSDocTemplateTag:t(()=>_m,"isJSDocTemplateTag"),isJSDocThisTag:t(()=>RZ,"isJSDocThisTag"),isJSDocThrowsTag:t(()=>YFe,"isJSDocThrowsTag"),isJSDocTypeAlias:t(()=>om,"isJSDocTypeAlias"),isJSDocTypeAssertion:t(()=>gx,"isJSDocTypeAssertion"),isJSDocTypeExpression:t(()=>r2,"isJSDocTypeExpression"),isJSDocTypeLiteral:t(()=>wC,"isJSDocTypeLiteral"),isJSDocTypeTag:t(()=>k3,"isJSDocTypeTag"),isJSDocTypedefTag:t(()=>DC,"isJSDocTypedefTag"),isJSDocUnknownTag:t(()=>GFe,"isJSDocUnknownTag"),isJSDocUnknownType:t(()=>n0e,"isJSDocUnknownType"),isJSDocVariadicType:t(()=>Sz,"isJSDocVariadicType"),isJSXTagName:t(()=>UA,"isJSXTagName"),isJsonEqual:t(()=>VU,"isJsonEqual"),isJsonSourceFile:t(()=>Ad,"isJsonSourceFile"),isJsxAttribute:t(()=>rg,"isJsxAttribute"),isJsxAttributeLike:t(()=>yB,"isJsxAttributeLike"),isJsxAttributeName:t(()=>oge,"isJsxAttributeName"),isJsxAttributes:t(()=>mx,"isJsxAttributes"),isJsxCallLike:t(()=>Hde,"isJsxCallLike"),isJsxChild:t(()=>rF,"isJsxChild"),isJsxClosingElement:t(()=>dx,"isJsxClosingElement"),isJsxClosingFragment:t(()=>Zge,"isJsxClosingFragment"),isJsxElement:t(()=>tg,"isJsxElement"),isJsxExpression:t(()=>p6,"isJsxExpression"),isJsxFragment:t(()=>t2,"isJsxFragment"),isJsxNamespacedName:t(()=>ch,"isJsxNamespacedName"),isJsxOpeningElement:t(()=>oh,"isJsxOpeningElement"),isJsxOpeningFragment:t(()=>Mm,"isJsxOpeningFragment"),isJsxOpeningLikeElement:t(()=>Ef,"isJsxOpeningLikeElement"),isJsxOpeningLikeElementTagName:t(()=>obe,"isJsxOpeningLikeElementTagName"),isJsxSelfClosingElement:t(()=>kC,"isJsxSelfClosingElement"),isJsxSpreadAttribute:t(()=>fD,"isJsxSpreadAttribute"),isJsxTagNameExpression:t(()=>b4,"isJsxTagNameExpression"),isJsxText:t(()=>eD,"isJsxText"),isJumpStatementTarget:t(()=>DL,"isJumpStatementTarget"),isKeyword:t(()=>w_,"isKeyword"),isKeywordOrPunctuation:t(()=>nU,"isKeywordOrPunctuation"),isKnownSymbol:t(()=>zF,"isKnownSymbol"),isLabelName:t(()=>Ite,"isLabelName"),isLabelOfLabeledStatement:t(()=>Nte,"isLabelOfLabeledStatement"),isLabeledStatement:t(()=>Jb,"isLabeledStatement"),isLateVisibilityPaintedStatement:t(()=>OB,"isLateVisibilityPaintedStatement"),isLeftHandSideExpression:t(()=>C_,"isLeftHandSideExpression"),isLet:t(()=>RB,"isLet"),isLineBreak:t(()=>Tf,"isLineBreak"),isLiteralComputedPropertyDeclarationName:t(()=>MF,"isLiteralComputedPropertyDeclarationName"),isLiteralExpression:t(()=>XE,"isLiteralExpression"),isLiteralExpressionOfObject:t(()=>QY,"isLiteralExpressionOfObject"),isLiteralImportTypeNode:t(()=>$y,"isLiteralImportTypeNode"),isLiteralKind:t(()=>h4,"isLiteralKind"),isLiteralNameOfPropertyDeclarationOrIndexAccess:t(()=>sJ,"isLiteralNameOfPropertyDeclarationOrIndexAccess"),isLiteralTypeLiteral:t(()=>jde,"isLiteralTypeLiteral"),isLiteralTypeNode:t(()=>iv,"isLiteralTypeNode"),isLocalName:t(()=>Zy,"isLocalName"),isLogicalOperator:t(()=>_he,"isLogicalOperator"),isLogicalOrCoalescingAssignmentExpression:t(()=>gX,"isLogicalOrCoalescingAssignmentExpression"),isLogicalOrCoalescingAssignmentOperator:t(()=>J4,"isLogicalOrCoalescingAssignmentOperator"),isLogicalOrCoalescingBinaryExpression:t(()=>GF,"isLogicalOrCoalescingBinaryExpression"),isLogicalOrCoalescingBinaryOperator:t(()=>yU,"isLogicalOrCoalescingBinaryOperator"),isMappedTypeNode:t(()=>TC,"isMappedTypeNode"),isMemberName:t(()=>I0,"isMemberName"),isMetaProperty:t(()=>b3,"isMetaProperty"),isMethodDeclaration:t(()=>Jc,"isMethodDeclaration"),isMethodOrAccessor:t(()=>Sw,"isMethodOrAccessor"),isMethodSignature:t(()=>Lm,"isMethodSignature"),isMinusToken:t(()=>TZ,"isMinusToken"),isMissingDeclaration:t(()=>JFe,"isMissingDeclaration"),isMissingPackageJsonInfo:t(()=>_ye,"isMissingPackageJsonInfo"),isModifier:t(()=>wa,"isModifier"),isModifierKind:t(()=>xb,"isModifierKind"),isModifierLike:t(()=>pc,"isModifierLike"),isModuleAugmentationExternal:t(()=>xK,"isModuleAugmentationExternal"),isModuleBlock:t(()=>Qh,"isModuleBlock"),isModuleBody:t(()=>Ude,"isModuleBody"),isModuleDeclaration:t(()=>El,"isModuleDeclaration"),isModuleExportName:t(()=>vz,"isModuleExportName"),isModuleExportsAccessExpression:t(()=>B0,"isModuleExportsAccessExpression"),isModuleIdentifier:t(()=>BK,"isModuleIdentifier"),isModuleName:t(()=>T0e,"isModuleName"),isModuleOrEnumDeclaration:t(()=>eF,"isModuleOrEnumDeclaration"),isModuleReference:t(()=>qde,"isModuleReference"),isModuleSpecifierLike:t(()=>bJ,"isModuleSpecifierLike"),isModuleWithStringLiteralName:t(()=>IB,"isModuleWithStringLiteralName"),isNameOfFunctionDeclaration:t(()=>Rte,"isNameOfFunctionDeclaration"),isNameOfModuleDeclaration:t(()=>Lte,"isNameOfModuleDeclaration"),isNamedDeclaration:t(()=>hu,"isNamedDeclaration"),isNamedEvaluation:t(()=>fp,"isNamedEvaluation"),isNamedEvaluationSource:t(()=>ZK,"isNamedEvaluationSource"),isNamedExportBindings:t(()=>XY,"isNamedExportBindings"),isNamedExports:t(()=>Bd,"isNamedExports"),isNamedImportBindings:t(()=>cK,"isNamedImportBindings"),isNamedImports:t(()=>eg,"isNamedImports"),isNamedImportsOrExports:t(()=>wU,"isNamedImportsOrExports"),isNamedTupleMember:t(()=>c6,"isNamedTupleMember"),isNamespaceBody:t(()=>j7e,"isNamespaceBody"),isNamespaceExport:t(()=>Xg,"isNamespaceExport"),isNamespaceExportDeclaration:t(()=>D5,"isNamespaceExportDeclaration"),isNamespaceImport:t(()=>G0,"isNamespaceImport"),isNamespaceReexportDeclaration:t(()=>Ome,"isNamespaceReexportDeclaration"),isNewExpression:t(()=>_x,"isNewExpression"),isNewExpressionTarget:t(()=>r8,"isNewExpressionTarget"),isNewScopeNode:t(()=>dge,"isNewScopeNode"),isNoSubstitutionTemplateLiteral:t(()=>vC,"isNoSubstitutionTemplateLiteral"),isNodeArray:t(()=>BT,"isNodeArray"),isNodeArrayMultiLine:t(()=>She,"isNodeArrayMultiLine"),isNodeDescendantOf:t(()=>XT,"isNodeDescendantOf"),isNodeKind:t(()=>_B,"isNodeKind"),isNodeLikeSystem:t(()=>sY,"isNodeLikeSystem"),isNodeModulesDirectory:t(()=>Zj,"isNodeModulesDirectory"),isNodeWithPossibleHoistedDeclaration:t(()=>Wme,"isNodeWithPossibleHoistedDeclaration"),isNonContextualKeyword:t(()=>KK,"isNonContextualKeyword"),isNonGlobalAmbientModule:t(()=>TK,"isNonGlobalAmbientModule"),isNonNullAccess:t(()=>age,"isNonNullAccess"),isNonNullChain:t(()=>fB,"isNonNullChain"),isNonNullExpression:t(()=>lD,"isNonNullExpression"),isNonStaticMethodOrAccessorWithPrivateName:t(()=>qye,"isNonStaticMethodOrAccessorWithPrivateName"),isNotEmittedStatement:t(()=>Xge,"isNotEmittedStatement"),isNullishCoalesce:t(()=>KY,"isNullishCoalesce"),isNumber:t(()=>ub,"isNumber"),isNumericLiteral:t(()=>P_,"isNumericLiteral"),isNumericLiteralName:t(()=>V0,"isNumericLiteralName"),isObjectBindingElementWithoutPropertyName:t(()=>RL,"isObjectBindingElementWithoutPropertyName"),isObjectBindingOrAssignmentElement:t(()=>K7,"isObjectBindingOrAssignmentElement"),isObjectBindingOrAssignmentPattern:t(()=>nK,"isObjectBindingOrAssignmentPattern"),isObjectBindingPattern:t(()=>sd,"isObjectBindingPattern"),isObjectLiteralElement:t(()=>lK,"isObjectLiteralElement"),isObjectLiteralElementLike:t(()=>zy,"isObjectLiteralElementLike"),isObjectLiteralExpression:t(()=>ja,"isObjectLiteralExpression"),isObjectLiteralMethod:t(()=>am,"isObjectLiteralMethod"),isObjectLiteralOrClassExpressionMethodOrAccessor:t(()=>UB,"isObjectLiteralOrClassExpressionMethodOrAccessor"),isObjectTypeDeclaration:t(()=>$w,"isObjectTypeDeclaration"),isOmittedExpression:t(()=>cu,"isOmittedExpression"),isOptionalChain:t(()=>xf,"isOptionalChain"),isOptionalChainRoot:t(()=>_4,"isOptionalChainRoot"),isOptionalDeclaration:t(()=>Yw,"isOptionalDeclaration"),isOptionalJSDocPropertyLikeTag:t(()=>p5,"isOptionalJSDocPropertyLikeTag"),isOptionalTypeNode:t(()=>dz,"isOptionalTypeNode"),isOuterExpression:t(()=>Dz,"isOuterExpression"),isOutermostOptionalChain:t(()=>p4,"isOutermostOptionalChain"),isOverrideModifier:t(()=>zge,"isOverrideModifier"),isPackageJsonInfo:t(()=>Qz,"isPackageJsonInfo"),isPackedArrayLiteral:t(()=>QX,"isPackedArrayLiteral"),isParameter:t(()=>rs,"isParameter"),isParameterPropertyDeclaration:t(()=>cp,"isParameterPropertyDeclaration"),isParameterPropertyModifier:t(()=>g4,"isParameterPropertyModifier"),isParenthesizedExpression:t(()=>c_,"isParenthesizedExpression"),isParenthesizedTypeNode:t(()=>SC,"isParenthesizedTypeNode"),isParseTreeNode:t(()=>f4,"isParseTreeNode"),isPartOfParameterDeclaration:t(()=>qS,"isPartOfParameterDeclaration"),isPartOfTypeNode:t(()=>Jh,"isPartOfTypeNode"),isPartOfTypeOnlyImportOrExportDeclaration:t(()=>Nde,"isPartOfTypeOnlyImportOrExportDeclaration"),isPartOfTypeQuery:t(()=>GB,"isPartOfTypeQuery"),isPartiallyEmittedExpression:t(()=>Vge,"isPartiallyEmittedExpression"),isPatternMatch:t(()=>jj,"isPatternMatch"),isPinnedComment:t(()=>AB,"isPinnedComment"),isPlainJsFile:t(()=>T4,"isPlainJsFile"),isPlusToken:t(()=>SZ,"isPlusToken"),isPossiblyTypeArgumentPosition:t(()=>NL,"isPossiblyTypeArgumentPosition"),isPostfixUnaryExpression:t(()=>CZ,"isPostfixUnaryExpression"),isPrefixUnaryExpression:t(()=>ZS,"isPrefixUnaryExpression"),isPrimitiveLiteralValue:t(()=>ez,"isPrimitiveLiteralValue"),isPrivateIdentifier:t(()=>Qi,"isPrivateIdentifier"),isPrivateIdentifierClassElementDeclaration:t(()=>zf,"isPrivateIdentifierClassElementDeclaration"),isPrivateIdentifierPropertyAccessExpression:t(()=>DA,"isPrivateIdentifierPropertyAccessExpression"),isPrivateIdentifierSymbol:t(()=>Yme,"isPrivateIdentifierSymbol"),isProgramUptoDate:t(()=>Pee,"isProgramUptoDate"),isPrologueDirective:t(()=>$h,"isPrologueDirective"),isPropertyAccessChain:t(()=>lB,"isPropertyAccessChain"),isPropertyAccessEntityNameExpression:t(()=>KF,"isPropertyAccessEntityNameExpression"),isPropertyAccessExpression:t(()=>Hn,"isPropertyAccessExpression"),isPropertyAccessOrQualifiedName:t(()=>Z7,"isPropertyAccessOrQualifiedName"),isPropertyAccessOrQualifiedNameOrImportTypeNode:t(()=>Rde,"isPropertyAccessOrQualifiedNameOrImportTypeNode"),isPropertyAssignment:t(()=>Ul,"isPropertyAssignment"),isPropertyDeclaration:t(()=>As,"isPropertyDeclaration"),isPropertyName:t(()=>Tl,"isPropertyName"),isPropertyNameLiteral:t(()=>qh,"isPropertyNameLiteral"),isPropertySignature:t(()=>Hf,"isPropertySignature"),isPrototypeAccess:t(()=>Lb,"isPrototypeAccess"),isPrototypePropertyAssignment:t(()=>PF,"isPrototypePropertyAssignment"),isPunctuation:t(()=>YK,"isPunctuation"),isPushOrUnshiftIdentifier:t(()=>QK,"isPushOrUnshiftIdentifier"),isQualifiedName:t(()=>a_,"isQualifiedName"),isQuestionDotToken:t(()=>_z,"isQuestionDotToken"),isQuestionOrExclamationToken:t(()=>y0e,"isQuestionOrExclamationToken"),isQuestionOrPlusOrMinusToken:t(()=>S0e,"isQuestionOrPlusOrMinusToken"),isQuestionToken:t(()=>Ub,"isQuestionToken"),isReadonlyKeyword:t(()=>Bge,"isReadonlyKeyword"),isReadonlyKeywordOrPlusOrMinusToken:t(()=>b0e,"isReadonlyKeywordOrPlusOrMinusToken"),isRecognizedTripleSlashComment:t(()=>gK,"isRecognizedTripleSlashComment"),isReferenceFileLocation:t(()=>L6,"isReferenceFileLocation"),isReferencedFile:t(()=>f2,"isReferencedFile"),isRegularExpressionLiteral:t(()=>vZ,"isRegularExpressionLiteral"),isRequireCall:t(()=>k_,"isRequireCall"),isRequireVariableStatement:t(()=>xF,"isRequireVariableStatement"),isRestParameter:t(()=>qg,"isRestParameter"),isRestTypeNode:t(()=>mz,"isRestTypeNode"),isReturnStatement:t(()=>Bp,"isReturnStatement"),isReturnStatementWithFixablePromiseHandler:t(()=>zJ,"isReturnStatementWithFixablePromiseHandler"),isRightSideOfAccessExpression:t(()=>bX,"isRightSideOfAccessExpression"),isRightSideOfInstanceofExpression:t(()=>dhe,"isRightSideOfInstanceofExpression"),isRightSideOfPropertyAccess:t(()=>U6,"isRightSideOfPropertyAccess"),isRightSideOfQualifiedName:t(()=>cbe,"isRightSideOfQualifiedName"),isRightSideOfQualifiedNameOrPropertyAccess:t(()=>W4,"isRightSideOfQualifiedNameOrPropertyAccess"),isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:t(()=>phe,"isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName"),isRootedDiskPath:t(()=>op,"isRootedDiskPath"),isSameEntityName:t(()=>zA,"isSameEntityName"),isSatisfiesExpression:t(()=>f6,"isSatisfiesExpression"),isSemicolonClassElement:t(()=>Hge,"isSemicolonClassElement"),isSetAccessor:t(()=>Uh,"isSetAccessor"),isSetAccessorDeclaration:t(()=>q_,"isSetAccessorDeclaration"),isShiftOperatorOrHigher:t(()=>GZ,"isShiftOperatorOrHigher"),isShorthandAmbientModuleSymbol:t(()=>oF,"isShorthandAmbientModuleSymbol"),isShorthandPropertyAssignment:t(()=>df,"isShorthandPropertyAssignment"),isSideEffectImport:t(()=>aZ,"isSideEffectImport"),isSignedNumericLiteral:t(()=>sU,"isSignedNumericLiteral"),isSimpleCopiableExpression:t(()=>bx,"isSimpleCopiableExpression"),isSimpleInlineableExpression:t(()=>ig,"isSimpleInlineableExpression"),isSimpleParameterList:t(()=>nL,"isSimpleParameterList"),isSingleOrDoubleQuote:t(()=>EF,"isSingleOrDoubleQuote"),isSolutionConfig:t(()=>yQ,"isSolutionConfig"),isSourceElement:t(()=>lge,"isSourceElement"),isSourceFile:t(()=>Yi,"isSourceFile"),isSourceFileFromLibrary:t(()=>K6,"isSourceFileFromLibrary"),isSourceFileJS:t(()=>i_,"isSourceFileJS"),isSourceFileNotJson:t(()=>KB,"isSourceFileNotJson"),isSourceMapping:t(()=>$ye,"isSourceMapping"),isSpecialPropertyDeclaration:t(()=>Mme,"isSpecialPropertyDeclaration"),isSpreadAssignment:t(()=>Y0,"isSpreadAssignment"),isSpreadElement:t(()=>jd,"isSpreadElement"),isStatement:t(()=>$i,"isStatement"),isStatementButNotDeclaration:t(()=>tF,"isStatementButNotDeclaration"),isStatementOrBlock:t(()=>Wde,"isStatementOrBlock"),isStatementWithLocals:t(()=>tme,"isStatementWithLocals"),isStatic:t(()=>pa,"isStatic"),isStaticModifier:t(()=>nD,"isStaticModifier"),isString:t(()=>Fs,"isString"),isStringANonContextualKeyword:t(()=>Rw,"isStringANonContextualKeyword"),isStringAndEmptyAnonymousObjectIntersection:t(()=>bbe,"isStringAndEmptyAnonymousObjectIntersection"),isStringDoubleQuoted:t(()=>ZB,"isStringDoubleQuoted"),isStringLiteral:t(()=>Na,"isStringLiteral"),isStringLiteralLike:t(()=>fo,"isStringLiteralLike"),isStringLiteralOrJsxExpression:t(()=>Vde,"isStringLiteralOrJsxExpression"),isStringLiteralOrTemplate:t(()=>Ube,"isStringLiteralOrTemplate"),isStringOrNumericLiteralLike:t(()=>nd,"isStringOrNumericLiteralLike"),isStringOrRegularExpressionOrTemplateLiteral:t(()=>Wte,"isStringOrRegularExpressionOrTemplateLiteral"),isStringTextContainingNode:t(()=>eK,"isStringTextContainingNode"),isSuperCall:t(()=>iC,"isSuperCall"),isSuperKeyword:t(()=>g3,"isSuperKeyword"),isSuperProperty:t(()=>$_,"isSuperProperty"),isSupportedSourceFileName:t(()=>qX,"isSupportedSourceFileName"),isSwitchStatement:t(()=>T3,"isSwitchStatement"),isSyntaxList:t(()=>y6,"isSyntaxList"),isSyntheticExpression:t(()=>RFe,"isSyntheticExpression"),isSyntheticReference:t(()=>uD,"isSyntheticReference"),isTagName:t(()=>Ote,"isTagName"),isTaggedTemplateExpression:t(()=>XS,"isTaggedTemplateExpression"),isTaggedTemplateTag:t(()=>sbe,"isTaggedTemplateTag"),isTemplateExpression:t(()=>gz,"isTemplateExpression"),isTemplateHead:t(()=>tD,"isTemplateHead"),isTemplateLiteral:t(()=>Tw,"isTemplateLiteral"),isTemplateLiteralKind:t(()=>Sb,"isTemplateLiteralKind"),isTemplateLiteralToken:t(()=>Pde,"isTemplateLiteralToken"),isTemplateLiteralTypeNode:t(()=>Wge,"isTemplateLiteralTypeNode"),isTemplateLiteralTypeSpan:t(()=>EZ,"isTemplateLiteralTypeSpan"),isTemplateMiddle:t(()=>bZ,"isTemplateMiddle"),isTemplateMiddleOrTemplateTail:t(()=>pB,"isTemplateMiddleOrTemplateTail"),isTemplateSpan:t(()=>_6,"isTemplateSpan"),isTemplateTail:t(()=>uz,"isTemplateTail"),isTextWhiteSpaceLike:t(()=>kbe,"isTextWhiteSpaceLike"),isThis:t(()=>z6,"isThis"),isThisContainerOrFunctionBlock:t(()=>Ame,"isThisContainerOrFunctionBlock"),isThisIdentifier:t(()=>Fb,"isThisIdentifier"),isThisInTypeQuery:t(()=>tx,"isThisInTypeQuery"),isThisInitializedDeclaration:t(()=>qB,"isThisInitializedDeclaration"),isThisInitializedObjectBindingExpression:t(()=>Ime,"isThisInitializedObjectBindingExpression"),isThisProperty:t(()=>gF,"isThisProperty"),isThisTypeNode:t(()=>v3,"isThisTypeNode"),isThisTypeParameter:t(()=>c3,"isThisTypeParameter"),isThisTypePredicate:t(()=>wme,"isThisTypePredicate"),isThrowStatement:t(()=>DZ,"isThrowStatement"),isToken:t(()=>vw,"isToken"),isTokenKind:t(()=>ZY,"isTokenKind"),isTraceEnabled:t(()=>qb,"isTraceEnabled"),isTransientSymbol:t(()=>F0,"isTransientSymbol"),isTrivia:t(()=>VA,"isTrivia"),isTryStatement:t(()=>EC,"isTryStatement"),isTupleTypeNode:t(()=>aD,"isTupleTypeNode"),isTypeAlias:t(()=>OF,"isTypeAlias"),isTypeAliasDeclaration:t(()=>fm,"isTypeAliasDeclaration"),isTypeAssertionExpression:t(()=>hz,"isTypeAssertionExpression"),isTypeDeclaration:t(()=>Gw,"isTypeDeclaration"),isTypeElement:t(()=>UT,"isTypeElement"),isTypeKeyword:t(()=>a8,"isTypeKeyword"),isTypeKeywordTokenOrIdentifier:t(()=>gJ,"isTypeKeywordTokenOrIdentifier"),isTypeLiteralNode:t(()=>o_,"isTypeLiteralNode"),isTypeNode:t(()=>Ai,"isTypeNode"),isTypeNodeKind:t(()=>AX,"isTypeNodeKind"),isTypeOfExpression:t(()=>l6,"isTypeOfExpression"),isTypeOnlyExportDeclaration:t(()=>Ade,"isTypeOnlyExportDeclaration"),isTypeOnlyImportDeclaration:t(()=>wA,"isTypeOnlyImportDeclaration"),isTypeOnlyImportOrExportDeclaration:t(()=>V1,"isTypeOnlyImportOrExportDeclaration"),isTypeOperatorNode:t(()=>KS,"isTypeOperatorNode"),isTypeParameterDeclaration:t(()=>cc,"isTypeParameterDeclaration"),isTypePredicateNode:t(()=>sD,"isTypePredicateNode"),isTypeQueryNode:t(()=>lx,"isTypeQueryNode"),isTypeReferenceNode:t(()=>pp,"isTypeReferenceNode"),isTypeReferenceType:t(()=>TB,"isTypeReferenceType"),isTypeUsableAsPropertyName:t(()=>Ld,"isTypeUsableAsPropertyName"),isUMDExportSymbol:t(()=>kU,"isUMDExportSymbol"),isUnaryExpression:t(()=>aK,"isUnaryExpression"),isUnaryExpressionWithWrite:t(()=>Mde,"isUnaryExpressionWithWrite"),isUnicodeIdentifierStart:t(()=>eB,"isUnicodeIdentifierStart"),isUnionTypeNode:t(()=>nv,"isUnionTypeNode"),isUrl:t(()=>Wpe,"isUrl"),isValidBigIntString:t(()=>HU,"isValidBigIntString"),isValidESSymbolDeclaration:t(()=>Eme,"isValidESSymbolDeclaration"),isValidTypeOnlyAliasUseSite:t(()=>HS,"isValidTypeOnlyAliasUseSite"),isValueSignatureDeclaration:t(()=>uC,"isValueSignatureDeclaration"),isVarAwaitUsing:t(()=>_F,"isVarAwaitUsing"),isVarConst:t(()=>RA,"isVarConst"),isVarConstLike:t(()=>bme,"isVarConstLike"),isVarUsing:t(()=>pF,"isVarUsing"),isVariableDeclaration:t(()=>Ti,"isVariableDeclaration"),isVariableDeclarationInVariableStatement:t(()=>k4,"isVariableDeclarationInVariableStatement"),isVariableDeclarationInitializedToBareOrAccessedRequire:t(()=>GT,"isVariableDeclarationInitializedToBareOrAccessedRequire"),isVariableDeclarationInitializedToRequire:t(()=>TF,"isVariableDeclarationInitializedToRequire"),isVariableDeclarationList:t(()=>ju,"isVariableDeclarationList"),isVariableLike:t(()=>C4,"isVariableLike"),isVariableStatement:t(()=>rl,"isVariableStatement"),isVoidExpression:t(()=>cD,"isVoidExpression"),isWatchSet:t(()=>wX,"isWatchSet"),isWhileStatement:t(()=>wZ,"isWhileStatement"),isWhiteSpaceLike:t(()=>P0,"isWhiteSpaceLike"),isWhiteSpaceSingleLine:t(()=>jh,"isWhiteSpaceSingleLine"),isWithStatement:t(()=>Gge,"isWithStatement"),isWriteAccess:t(()=>zw,"isWriteAccess"),isWriteOnlyAccess:t(()=>CU,"isWriteOnlyAccess"),isYieldExpression:t(()=>k5,"isYieldExpression"),jsxModeNeedsExplicitImport:t(()=>wre,"jsxModeNeedsExplicitImport"),keywordPart:t(()=>yp,"keywordPart"),last:t(()=>za,"last"),lastOrUndefined:t(()=>nc,"lastOrUndefined"),length:t(()=>Ue,"length"),libMap:t(()=>rQ,"libMap"),libs:t(()=>Lz,"libs"),lineBreakPart:t(()=>H6,"lineBreakPart"),loadModuleFromGlobalCache:t(()=>Eye,"loadModuleFromGlobalCache"),loadWithModeAwareCache:t(()=>dL,"loadWithModeAwareCache"),makeIdentifierFromModuleName:t(()=>cme,"makeIdentifierFromModuleName"),makeImport:t(()=>Zb,"makeImport"),makeStringLiteral:t(()=>o8,"makeStringLiteral"),mangleScopedPackageName:t(()=>P6,"mangleScopedPackageName"),map:t(()=>Dr,"map"),mapAllOrFail:t(()=>qI,"mapAllOrFail"),mapDefined:t(()=>Wi,"mapDefined"),mapDefinedIterator:t(()=>Fh,"mapDefinedIterator"),mapEntries:t(()=>f_e,"mapEntries"),mapIterator:t(()=>IT,"mapIterator"),mapOneOrMany:t(()=>xre,"mapOneOrMany"),mapToDisplayParts:t(()=>d2,"mapToDisplayParts"),matchFiles:t(()=>$X,"matchFiles"),matchPatternOrExact:t(()=>HX,"matchPatternOrExact"),matchedText:t(()=>C_e,"matchedText"),matchesExclude:t(()=>Gz,"matchesExclude"),matchesExcludeWorker:t(()=>Yz,"matchesExcludeWorker"),maxBy:t(()=>XG,"maxBy"),maybeBind:t(()=>ca,"maybeBind"),maybeSetLocalizedDiagnosticMessages:t(()=>Ahe,"maybeSetLocalizedDiagnosticMessages"),memoize:t(()=>Uf,"memoize"),memoizeOne:t(()=>Mh,"memoizeOne"),min:t(()=>ZG,"min"),minAndMax:t(()=>Khe,"minAndMax"),missingFileModifiedTime:t(()=>ap,"missingFileModifiedTime"),modifierToFlag:t(()=>Bw,"modifierToFlag"),modifiersToFlags:t(()=>Gh,"modifiersToFlags"),moduleExportNameIsDefault:t(()=>Vg,"moduleExportNameIsDefault"),moduleExportNameTextEscaped:t(()=>WT,"moduleExportNameTextEscaped"),moduleExportNameTextUnescaped:t(()=>Pb,"moduleExportNameTextUnescaped"),moduleOptionDeclaration:t(()=>F0e,"moduleOptionDeclaration"),moduleResolutionIsEqualTo:t(()=>Qde,"moduleResolutionIsEqualTo"),moduleResolutionNameAndModeGetter:t(()=>C$,"moduleResolutionNameAndModeGetter"),moduleResolutionOptionDeclarations:t(()=>iQ,"moduleResolutionOptionDeclarations"),moduleResolutionSupportsPackageJsonExportsAndImports:t(()=>t6,"moduleResolutionSupportsPackageJsonExportsAndImports"),moduleResolutionUsesNodeModules:t(()=>yJ,"moduleResolutionUsesNodeModules"),moduleSpecifierToValidIdentifier:t(()=>qL,"moduleSpecifierToValidIdentifier"),moduleSpecifiers:t(()=>e1,"moduleSpecifiers"),moduleSupportsImportAttributes:t(()=>Mhe,"moduleSupportsImportAttributes"),moduleSymbolToValidIdentifier:t(()=>WL,"moduleSymbolToValidIdentifier"),moveEmitHelpers:t(()=>kge,"moveEmitHelpers"),moveRangeEnd:t(()=>xU,"moveRangeEnd"),moveRangePastDecorators:t(()=>Hy,"moveRangePastDecorators"),moveRangePastModifiers:t(()=>Yh,"moveRangePastModifiers"),moveRangePos:t(()=>VS,"moveRangePos"),moveSyntheticComments:t(()=>xge,"moveSyntheticComments"),mutateMap:t(()=>Y4,"mutateMap"),mutateMapSkippingNewValues:t(()=>z0,"mutateMapSkippingNewValues"),needsParentheses:t(()=>EJ,"needsParentheses"),needsScopeMarker:t(()=>hB,"needsScopeMarker"),newCaseClauseTracker:t(()=>RJ,"newCaseClauseTracker"),newPrivateEnvironment:t(()=>Hye,"newPrivateEnvironment"),noEmitNotification:t(()=>oL,"noEmitNotification"),noEmitSubstitution:t(()=>V3,"noEmitSubstitution"),noTransformers:t(()=>E1e,"noTransformers"),noTruncationMaximumTruncationLength:t(()=>_K,"noTruncationMaximumTruncationLength"),nodeCanBeDecorated:t(()=>vF,"nodeCanBeDecorated"),nodeCoreModules:t(()=>s6,"nodeCoreModules"),nodeHasName:t(()=>J7,"nodeHasName"),nodeIsDecorated:t(()=>BA,"nodeIsDecorated"),nodeIsMissing:t(()=>zc,"nodeIsMissing"),nodeIsPresent:t(()=>sm,"nodeIsPresent"),nodeIsSynthesized:t(()=>Mo,"nodeIsSynthesized"),nodeModuleNameResolver:t(()=>gye,"nodeModuleNameResolver"),nodeModulesPathPart:t(()=>K0,"nodeModulesPathPart"),nodeNextJsonConfigResolver:t(()=>yye,"nodeNextJsonConfigResolver"),nodeOrChildIsDecorated:t(()=>bF,"nodeOrChildIsDecorated"),nodeOverlapsWithStartEnd:t(()=>aJ,"nodeOverlapsWithStartEnd"),nodePosToString:t(()=>$7e,"nodePosToString"),nodeSeenTracker:t(()=>W6,"nodeSeenTracker"),nodeStartsNewLexicalEnvironment:t(()=>eX,"nodeStartsNewLexicalEnvironment"),noop:t(()=>go,"noop"),noopFileWatcher:t(()=>j6,"noopFileWatcher"),normalizePath:t(()=>ba,"normalizePath"),normalizeSlashes:t(()=>Ru,"normalizeSlashes"),normalizeSpans:t(()=>zY,"normalizeSpans"),not:t(()=>Uj,"not"),notImplemented:t(()=>va,"notImplemented"),notImplementedResolver:t(()=>P1e,"notImplementedResolver"),nullNodeConverters:t(()=>bge,"nullNodeConverters"),nullParenthesizerRules:t(()=>yge,"nullParenthesizerRules"),nullTransformationContext:t(()=>lL,"nullTransformationContext"),objectAllocator:t(()=>Ku,"objectAllocator"),operatorPart:t(()=>l8,"operatorPart"),optionDeclarations:t(()=>jm,"optionDeclarations"),optionMapToObject:t(()=>$z,"optionMapToObject"),optionsAffectingProgramStructure:t(()=>B0e,"optionsAffectingProgramStructure"),optionsForBuild:t(()=>aQ,"optionsForBuild"),optionsForWatch:t(()=>gD,"optionsForWatch"),optionsHaveChanges:t(()=>Cw,"optionsHaveChanges"),or:t(()=>sp,"or"),orderedRemoveItem:t(()=>HI,"orderedRemoveItem"),orderedRemoveItemAt:t(()=>db,"orderedRemoveItemAt"),packageIdToPackageName:t(()=>DB,"packageIdToPackageName"),packageIdToString:t(()=>jS,"packageIdToString"),parameterIsThisKeyword:t(()=>Ob,"parameterIsThisKeyword"),parameterNamePart:t(()=>Dbe,"parameterNamePart"),parseBaseNodeFactory:t(()=>D0e,"parseBaseNodeFactory"),parseBigInt:t(()=>Zhe,"parseBigInt"),parseBuildCommand:t(()=>H0e,"parseBuildCommand"),parseCommandLine:t(()=>q0e,"parseCommandLine"),parseCommandLineWorker:t(()=>cQ,"parseCommandLineWorker"),parseConfigFileTextToJson:t(()=>uQ,"parseConfigFileTextToJson"),parseConfigFileWithSystem:t(()=>dve,"parseConfigFileWithSystem"),parseConfigHostFromCompilerHostLike:t(()=>N$,"parseConfigHostFromCompilerHostLike"),parseCustomTypeOption:t(()=>Bz,"parseCustomTypeOption"),parseIsolatedEntityName:t(()=>hD,"parseIsolatedEntityName"),parseIsolatedJSDocComment:t(()=>A0e,"parseIsolatedJSDocComment"),parseJSDocTypeExpressionForTests:t(()=>v5e,"parseJSDocTypeExpressionForTests"),parseJsonConfigFileContent:t(()=>G5e,"parseJsonConfigFileContent"),parseJsonSourceFileConfigFileContent:t(()=>V5,"parseJsonSourceFileConfigFileContent"),parseJsonText:t(()=>U5,"parseJsonText"),parseListTypeOption:t(()=>J0e,"parseListTypeOption"),parseNodeFactory:t(()=>s2,"parseNodeFactory"),parseNodeModuleFromPath:t(()=>K5,"parseNodeModuleFromPath"),parsePackageName:t(()=>r$,"parsePackageName"),parsePseudoBigInt:t(()=>i3,"parsePseudoBigInt"),parseValidBigInt:t(()=>XX,"parseValidBigInt"),pasteEdits:t(()=>kie,"pasteEdits"),patchWriteFileEnsuringDirectory:t(()=>Jpe,"patchWriteFileEnsuringDirectory"),pathContainsNodeModules:t(()=>Hb,"pathContainsNodeModules"),pathIsAbsolute:t(()=>r4,"pathIsAbsolute"),pathIsBareSpecifier:t(()=>NY,"pathIsBareSpecifier"),pathIsRelative:t(()=>Lp,"pathIsRelative"),patternText:t(()=>E_e,"patternText"),performIncrementalCompilation:t(()=>mve,"performIncrementalCompilation"),performance:t(()=>O_e,"performance"),positionBelongsToNode:t(()=>Mte,"positionBelongsToNode"),positionIsASICandidate:t(()=>wJ,"positionIsASICandidate"),positionIsSynthesized:t(()=>sh,"positionIsSynthesized"),positionsAreOnSameLine:t(()=>Od,"positionsAreOnSameLine"),preProcessFile:t(()=>ije,"preProcessFile"),probablyUsesSemicolons:t(()=>$L,"probablyUsesSemicolons"),processCommentPragmas:t(()=>eQ,"processCommentPragmas"),processPragmasIntoFields:t(()=>tQ,"processPragmasIntoFields"),processTaggedTemplateExpression:t(()=>nee,"processTaggedTemplateExpression"),programContainsEsModules:t(()=>Ebe,"programContainsEsModules"),programContainsModules:t(()=>xbe,"programContainsModules"),projectReferenceIsEqualTo:t(()=>pK,"projectReferenceIsEqualTo"),propertyNamePart:t(()=>Pbe,"propertyNamePart"),pseudoBigIntToString:t(()=>ax,"pseudoBigIntToString"),punctuationPart:t(()=>Pf,"punctuationPart"),pushIfUnique:t(()=>Cd,"pushIfUnique"),quote:t(()=>_8,"quote"),quotePreferenceFromString:t(()=>ere,"quotePreferenceFromString"),rangeContainsPosition:t(()=>$6,"rangeContainsPosition"),rangeContainsPositionExclusive:t(()=>PL,"rangeContainsPositionExclusive"),rangeContainsRange:t(()=>D_,"rangeContainsRange"),rangeContainsRangeExclusive:t(()=>ube,"rangeContainsRangeExclusive"),rangeContainsStartEnd:t(()=>AL,"rangeContainsStartEnd"),rangeEndIsOnSameLineAsRangeStart:t(()=>ZF,"rangeEndIsOnSameLineAsRangeStart"),rangeEndPositionsAreOnSameLine:t(()=>vhe,"rangeEndPositionsAreOnSameLine"),rangeEquals:t(()=>WG,"rangeEquals"),rangeIsOnSingleLine:t(()=>dC,"rangeIsOnSingleLine"),rangeOfNode:t(()=>YX,"rangeOfNode"),rangeOfTypeParameters:t(()=>KX,"rangeOfTypeParameters"),rangeOverlapsWithStartEnd:t(()=>n8,"rangeOverlapsWithStartEnd"),rangeStartIsOnSameLineAsRangeEnd:t(()=>bhe,"rangeStartIsOnSameLineAsRangeEnd"),rangeStartPositionsAreOnSameLine:t(()=>EU,"rangeStartPositionsAreOnSameLine"),readBuilderProgram:t(()=>$$,"readBuilderProgram"),readConfigFile:t(()=>W5,"readConfigFile"),readJson:t(()=>XA,"readJson"),readJsonConfigFile:t(()=>G0e,"readJsonConfigFile"),readJsonOrUndefined:t(()=>TX,"readJsonOrUndefined"),reduceEachLeadingCommentRange:t(()=>Zpe,"reduceEachLeadingCommentRange"),reduceEachTrailingCommentRange:t(()=>Qpe,"reduceEachTrailingCommentRange"),reduceLeft:t(()=>r_,"reduceLeft"),reduceLeftIterator:t(()=>wn,"reduceLeftIterator"),reducePathComponents:t(()=>mw,"reducePathComponents"),refactor:t(()=>ND,"refactor"),regExpEscape:t(()=>gFe,"regExpEscape"),regularExpressionFlagToCharacterCode:t(()=>h7e,"regularExpressionFlagToCharacterCode"),relativeComplement:t(()=>__e,"relativeComplement"),removeAllComments:t(()=>y5,"removeAllComments"),removeEmitHelper:t(()=>IFe,"removeEmitHelper"),removeExtension:t(()=>u5,"removeExtension"),removeFileExtension:t(()=>Vf,"removeFileExtension"),removeIgnoredPath:t(()=>L$,"removeIgnoredPath"),removeMinAndVersionNumbers:t(()=>tY,"removeMinAndVersionNumbers"),removePrefix:t(()=>GI,"removePrefix"),removeSuffix:t(()=>gA,"removeSuffix"),removeTrailingDirectorySeparator:t(()=>q1,"removeTrailingDirectorySeparator"),repeatString:t(()=>FL,"repeatString"),replaceElement:t(()=>HG,"replaceElement"),replaceFirstStar:t(()=>hC,"replaceFirstStar"),resolutionExtensionIsTSOrJson:t(()=>e3,"resolutionExtensionIsTSOrJson"),resolveConfigFileProjectName:t(()=>ote,"resolveConfigFileProjectName"),resolveJSModule:t(()=>dye,"resolveJSModule"),resolveLibrary:t(()=>t$,"resolveLibrary"),resolveModuleName:t(()=>IC,"resolveModuleName"),resolveModuleNameFromCache:t(()=>ELe,"resolveModuleNameFromCache"),resolvePackageNameToPackageJson:t(()=>TQ,"resolvePackageNameToPackageJson"),resolvePath:t(()=>hb,"resolvePath"),resolveProjectReferencePath:t(()=>xD,"resolveProjectReferencePath"),resolveTripleslashReference:t(()=>bee,"resolveTripleslashReference"),resolveTypeReferenceDirective:t(()=>uye,"resolveTypeReferenceDirective"),resolvingEmptyArray:t(()=>fK,"resolvingEmptyArray"),returnFalse:t(()=>My,"returnFalse"),returnNoopFileWatcher:t(()=>Q3,"returnNoopFileWatcher"),returnTrue:t(()=>FT,"returnTrue"),returnUndefined:t(()=>LT,"returnUndefined"),returnsPromise:t(()=>zre,"returnsPromise"),rewriteModuleSpecifier:t(()=>bD,"rewriteModuleSpecifier"),sameFlatMap:t(()=>Ly,"sameFlatMap"),sameMap:t(()=>el,"sameMap"),sameMapping:t(()=>dRe,"sameMapping"),scanTokenAtPosition:t(()=>vme,"scanTokenAtPosition"),scanner:t(()=>Bu,"scanner"),semanticDiagnosticsOptionDeclarations:t(()=>R0e,"semanticDiagnosticsOptionDeclarations"),serializeCompilerOptions:t(()=>Jz,"serializeCompilerOptions"),server:t(()=>aYe,"server"),servicesVersion:t(()=>HBe,"servicesVersion"),setCommentRange:t(()=>Ml,"setCommentRange"),setConfigFileInOptions:t(()=>hQ,"setConfigFileInOptions"),setConstantValue:t(()=>Cge,"setConstantValue"),setEmitFlags:t(()=>Dn,"setEmitFlags"),setGetSourceFileAsHashVersioned:t(()=>z$,"setGetSourceFileAsHashVersioned"),setIdentifierAutoGenerate:t(()=>S5,"setIdentifierAutoGenerate"),setIdentifierGeneratedImportReference:t(()=>Pge,"setIdentifierGeneratedImportReference"),setIdentifierTypeArguments:t(()=>rv,"setIdentifierTypeArguments"),setInternalEmitFlags:t(()=>v5,"setInternalEmitFlags"),setLocalizedDiagnosticMessages:t(()=>Phe,"setLocalizedDiagnosticMessages"),setNodeChildren:t(()=>a0e,"setNodeChildren"),setNodeFlags:t(()=>tge,"setNodeFlags"),setObjectAllocator:t(()=>Dhe,"setObjectAllocator"),setOriginalNode:t(()=>Vn,"setOriginalNode"),setParent:t(()=>mo,"setParent"),setParentRecursive:t(()=>GS,"setParentRecursive"),setPrivateIdentifier:t(()=>FC,"setPrivateIdentifier"),setSnippetElement:t(()=>gZ,"setSnippetElement"),setSourceMapRange:t(()=>Wa,"setSourceMapRange"),setStackTraceLimit:t(()=>QOe,"setStackTraceLimit"),setStartsOnNewLine:t(()=>az,"setStartsOnNewLine"),setSyntheticLeadingComments:t(()=>YS,"setSyntheticLeadingComments"),setSyntheticTrailingComments:t(()=>Zw,"setSyntheticTrailingComments"),setSys:t(()=>s7e,"setSys"),setSysLog:t(()=>Upe,"setSysLog"),setTextRange:t(()=>Et,"setTextRange"),setTextRangeEnd:t(()=>i6,"setTextRangeEnd"),setTextRangePos:t(()=>s3,"setTextRangePos"),setTextRangePosEnd:t(()=>ah,"setTextRangePosEnd"),setTextRangePosWidth:t(()=>ZX,"setTextRangePosWidth"),setTokenSourceMapRange:t(()=>Tge,"setTokenSourceMapRange"),setTypeNode:t(()=>wge,"setTypeNode"),setUILocale:t(()=>S_e,"setUILocale"),setValueDeclaration:t(()=>AF,"setValueDeclaration"),shouldAllowImportingTsExtension:t(()=>A6,"shouldAllowImportingTsExtension"),shouldPreserveConstEnums:t(()=>Rb,"shouldPreserveConstEnums"),shouldRewriteModuleSpecifier:t(()=>IF,"shouldRewriteModuleSpecifier"),shouldUseUriStyleNodeCoreModules:t(()=>FJ,"shouldUseUriStyleNodeCoreModules"),showModuleSpecifier:t(()=>Che,"showModuleSpecifier"),signatureHasRestParameter:t(()=>Df,"signatureHasRestParameter"),signatureToDisplayParts:t(()=>fre,"signatureToDisplayParts"),single:t(()=>VG,"single"),singleElementArray:t(()=>_w,"singleElementArray"),singleIterator:t(()=>u_e,"singleIterator"),singleOrMany:t(()=>zg,"singleOrMany"),singleOrUndefined:t(()=>Ug,"singleOrUndefined"),skipAlias:t(()=>Yu,"skipAlias"),skipConstraint:t(()=>Xte,"skipConstraint"),skipOuterExpressions:t(()=>il,"skipOuterExpressions"),skipParentheses:t(()=>po,"skipParentheses"),skipPartiallyEmittedExpressions:t(()=>Nm,"skipPartiallyEmittedExpressions"),skipTrivia:t(()=>Ma,"skipTrivia"),skipTypeChecking:t(()=>n6,"skipTypeChecking"),skipTypeCheckingIgnoringNoCheck:t(()=>Xhe,"skipTypeCheckingIgnoringNoCheck"),skipTypeParentheses:t(()=>O4,"skipTypeParentheses"),skipWhile:t(()=>w_e,"skipWhile"),sliceAfter:t(()=>GX,"sliceAfter"),some:t(()=>xt,"some"),sortAndDeduplicate:t(()=>VI,"sortAndDeduplicate"),sortAndDeduplicateDiagnostics:t(()=>EA,"sortAndDeduplicateDiagnostics"),sourceFileAffectingCompilerOptions:t(()=>sQ,"sourceFileAffectingCompilerOptions"),sourceFileMayBeEmitted:t(()=>QT,"sourceFileMayBeEmitted"),sourceMapCommentRegExp:t(()=>qQ,"sourceMapCommentRegExp"),sourceMapCommentRegExpDontCareLineStart:t(()=>Bye,"sourceMapCommentRegExpDontCareLineStart"),spacePart:t(()=>Zc,"spacePart"),spanMap:t(()=>UG,"spanMap"),startEndContainsRange:t(()=>CX,"startEndContainsRange"),startEndOverlapsWithStartEnd:t(()=>oJ,"startEndOverlapsWithStartEnd"),startOnNewLine:t(()=>wf,"startOnNewLine"),startTracing:t(()=>M_e,"startTracing"),startsWith:t(()=>fs,"startsWith"),startsWithDirectory:t(()=>FY,"startsWithDirectory"),startsWithUnderscore:t(()=>kre,"startsWithUnderscore"),startsWithUseStrict:t(()=>p0e,"startsWithUseStrict"),stringContainsAt:t(()=>Hbe,"stringContainsAt"),stringToToken:t(()=>GE,"stringToToken"),stripQuotes:t(()=>cm,"stripQuotes"),supportedDeclarationExtensions:t(()=>JU,"supportedDeclarationExtensions"),supportedJSExtensionsFlat:t(()=>r6,"supportedJSExtensionsFlat"),supportedLocaleDirectories:t(()=>dde,"supportedLocaleDirectories"),supportedTSExtensionsFlat:t(()=>JX,"supportedTSExtensionsFlat"),supportedTSImplementationExtensions:t(()=>o5,"supportedTSImplementationExtensions"),suppressLeadingAndTrailingTrivia:t(()=>vp,"suppressLeadingAndTrailingTrivia"),suppressLeadingTrivia:t(()=>mre,"suppressLeadingTrivia"),suppressTrailingTrivia:t(()=>Mbe,"suppressTrailingTrivia"),symbolEscapedNameNoDefault:t(()=>vJ,"symbolEscapedNameNoDefault"),symbolName:t(()=>tl,"symbolName"),symbolNameNoDefault:t(()=>rre,"symbolNameNoDefault"),symbolToDisplayParts:t(()=>u8,"symbolToDisplayParts"),sys:t(()=>ru,"sys"),sysLog:t(()=>N7,"sysLog"),tagNamesAreEquivalent:t(()=>o2,"tagNamesAreEquivalent"),takeWhile:t(()=>iY,"takeWhile"),targetOptionDeclaration:t(()=>nQ,"targetOptionDeclaration"),targetToLibMap:t(()=>ede,"targetToLibMap"),testFormatSettings:t(()=>CMe,"testFormatSettings"),textChangeRangeIsUnchanged:t(()=>lde,"textChangeRangeIsUnchanged"),textChangeRangeNewSpan:t(()=>u4,"textChangeRangeNewSpan"),textChanges:t(()=>Cn,"textChanges"),textOrKeywordPart:t(()=>ure,"textOrKeywordPart"),textPart:t(()=>ud,"textPart"),textRangeContainsPositionInclusive:t(()=>B7,"textRangeContainsPositionInclusive"),textRangeContainsTextSpan:t(()=>nde,"textRangeContainsTextSpan"),textRangeIntersectsWithTextSpan:t(()=>ode,"textRangeIntersectsWithTextSpan"),textSpanContainsPosition:t(()=>BY,"textSpanContainsPosition"),textSpanContainsTextRange:t(()=>UY,"textSpanContainsTextRange"),textSpanContainsTextSpan:t(()=>rde,"textSpanContainsTextSpan"),textSpanEnd:t(()=>Fc,"textSpanEnd"),textSpanIntersection:t(()=>cde,"textSpanIntersection"),textSpanIntersectsWith:t(()=>U7,"textSpanIntersectsWith"),textSpanIntersectsWithPosition:t(()=>ade,"textSpanIntersectsWithPosition"),textSpanIntersectsWithTextSpan:t(()=>sde,"textSpanIntersectsWithTextSpan"),textSpanIsEmpty:t(()=>tde,"textSpanIsEmpty"),textSpanOverlap:t(()=>ide,"textSpanOverlap"),textSpanOverlapsWith:t(()=>E7e,"textSpanOverlapsWith"),textSpansEqual:t(()=>V6,"textSpansEqual"),textToKeywordObj:t(()=>Qj,"textToKeywordObj"),timestamp:t(()=>jo,"timestamp"),toArray:t(()=>uw,"toArray"),toBuilderFileEmit:t(()=>nve,"toBuilderFileEmit"),toBuilderStateFileInfoForMultiEmit:t(()=>rve,"toBuilderStateFileInfoForMultiEmit"),toEditorSettings:t(()=>QL,"toEditorSettings"),toFileNameLowerCase:t(()=>fb,"toFileNameLowerCase"),toPath:t(()=>Bo,"toPath"),toProgramEmitPending:t(()=>ive,"toProgramEmitPending"),toSorted:t(()=>ip,"toSorted"),tokenIsIdentifierOrKeyword:t(()=>x_,"tokenIsIdentifierOrKeyword"),tokenIsIdentifierOrKeywordOrGreaterThan:t(()=>Vpe,"tokenIsIdentifierOrKeywordOrGreaterThan"),tokenToString:t(()=>Ta,"tokenToString"),trace:t(()=>ks,"trace"),tracing:t(()=>En,"tracing"),tracingEnabled:t(()=>A7,"tracingEnabled"),transferSourceFileChildren:t(()=>o0e,"transferSourceFileChildren"),transform:t(()=>nUe,"transform"),transformClassFields:t(()=>n1e,"transformClassFields"),transformDeclarations:t(()=>oee,"transformDeclarations"),transformECMAScriptModule:t(()=>aee,"transformECMAScriptModule"),transformES2015:t(()=>g1e,"transformES2015"),transformES2016:t(()=>h1e,"transformES2016"),transformES2017:t(()=>o1e,"transformES2017"),transformES2018:t(()=>c1e,"transformES2018"),transformES2019:t(()=>l1e,"transformES2019"),transformES2020:t(()=>u1e,"transformES2020"),transformES2021:t(()=>f1e,"transformES2021"),transformESDecorators:t(()=>a1e,"transformESDecorators"),transformESNext:t(()=>_1e,"transformESNext"),transformGenerators:t(()=>y1e,"transformGenerators"),transformImpliedNodeFormatDependentModule:t(()=>b1e,"transformImpliedNodeFormatDependentModule"),transformJsx:t(()=>m1e,"transformJsx"),transformLegacyDecorators:t(()=>s1e,"transformLegacyDecorators"),transformModule:t(()=>see,"transformModule"),transformNamedEvaluation:t(()=>mp,"transformNamedEvaluation"),transformNodes:t(()=>cL,"transformNodes"),transformSystemModule:t(()=>v1e,"transformSystemModule"),transformTypeScript:t(()=>r1e,"transformTypeScript"),transpile:t(()=>pje,"transpile"),transpileDeclaration:t(()=>fje,"transpileDeclaration"),transpileModule:t(()=>hSe,"transpileModule"),transpileOptionValueCompilerOptions:t(()=>U0e,"transpileOptionValueCompilerOptions"),tryAddToSet:t(()=>Lh,"tryAddToSet"),tryAndIgnoreErrors:t(()=>AJ,"tryAndIgnoreErrors"),tryCast:t(()=>si,"tryCast"),tryDirectoryExists:t(()=>PJ,"tryDirectoryExists"),tryExtractTSExtension:t(()=>SU,"tryExtractTSExtension"),tryFileExists:t(()=>d8,"tryFileExists"),tryGetClassExtendingExpressionWithTypeArguments:t(()=>yX,"tryGetClassExtendingExpressionWithTypeArguments"),tryGetClassImplementingOrExtendingExpressionWithTypeArguments:t(()=>vX,"tryGetClassImplementingOrExtendingExpressionWithTypeArguments"),tryGetDirectories:t(()=>DJ,"tryGetDirectories"),tryGetExtensionFromPath:t(()=>q0,"tryGetExtensionFromPath"),tryGetImportFromModuleSpecifier:t(()=>NF,"tryGetImportFromModuleSpecifier"),tryGetJSDocSatisfiesTypeNode:t(()=>ZU,"tryGetJSDocSatisfiesTypeNode"),tryGetModuleNameFromFile:t(()=>F5,"tryGetModuleNameFromFile"),tryGetModuleSpecifierFromDeclaration:t(()=>Nw,"tryGetModuleSpecifierFromDeclaration"),tryGetNativePerformanceHooks:t(()=>I_e,"tryGetNativePerformanceHooks"),tryGetPropertyAccessOrIdentifierToString:t(()=>XF,"tryGetPropertyAccessOrIdentifierToString"),tryGetPropertyNameOfBindingOrAssignmentElement:t(()=>Az,"tryGetPropertyNameOfBindingOrAssignmentElement"),tryGetSourceMappingURL:t(()=>Uye,"tryGetSourceMappingURL"),tryGetTextOfPropertyName:t(()=>E4,"tryGetTextOfPropertyName"),tryParseJson:t(()=>TU,"tryParseJson"),tryParsePattern:t(()=>Hw,"tryParsePattern"),tryParsePatterns:t(()=>f5,"tryParsePatterns"),tryParseRawSourceMap:t(()=>zye,"tryParseRawSourceMap"),tryReadDirectory:t(()=>vre,"tryReadDirectory"),tryReadFile:t(()=>N3,"tryReadFile"),tryRemoveDirectoryPrefix:t(()=>BX,"tryRemoveDirectoryPrefix"),tryRemoveExtension:t(()=>Yhe,"tryRemoveExtension"),tryRemovePrefix:t(()=>nY,"tryRemovePrefix"),tryRemoveSuffix:t(()=>x_e,"tryRemoveSuffix"),tscBuildOption:t(()=>AC,"tscBuildOption"),typeAcquisitionDeclarations:t(()=>Mz,"typeAcquisitionDeclarations"),typeAliasNamePart:t(()=>Abe,"typeAliasNamePart"),typeDirectiveIsEqualTo:t(()=>eme,"typeDirectiveIsEqualTo"),typeKeywords:t(()=>Kte,"typeKeywords"),typeParameterNamePart:t(()=>Nbe,"typeParameterNamePart"),typeToDisplayParts:t(()=>jL,"typeToDisplayParts"),unchangedPollThresholds:t(()=>Vj,"unchangedPollThresholds"),unchangedTextChangeRange:t(()=>nB,"unchangedTextChangeRange"),unescapeLeadingUnderscores:t(()=>Zi,"unescapeLeadingUnderscores"),unmangleScopedPackageName:t(()=>Z5,"unmangleScopedPackageName"),unorderedRemoveItem:t(()=>fw,"unorderedRemoveItem"),unprefixedNodeCoreModules:t(()=>pge,"unprefixedNodeCoreModules"),unreachableCodeIsError:t(()=>Lhe,"unreachableCodeIsError"),unsetNodeChildren:t(()=>jZ,"unsetNodeChildren"),unusedLabelIsError:t(()=>Rhe,"unusedLabelIsError"),unwrapInnermostStatementOfLabel:t(()=>FK,"unwrapInnermostStatementOfLabel"),unwrapParenthesizedExpression:t(()=>fge,"unwrapParenthesizedExpression"),updateErrorForNoInputFiles:t(()=>Hz,"updateErrorForNoInputFiles"),updateLanguageServiceSourceFile:t(()=>dne,"updateLanguageServiceSourceFile"),updateMissingFilePathsWatch:t(()=>gee,"updateMissingFilePathsWatch"),updateResolutionField:t(()=>C6,"updateResolutionField"),updateSharedExtendedConfigFileWatcher:t(()=>S$,"updateSharedExtendedConfigFileWatcher"),updateSourceFile:t(()=>ZZ,"updateSourceFile"),updateWatchingWildcardDirectories:t(()=>fL,"updateWatchingWildcardDirectories"),usingSingleLineStringWriter:t(()=>IA,"usingSingleLineStringWriter"),utf16EncodeAsString:t(()=>l4,"utf16EncodeAsString"),validateLocaleAndSetLanguage:t(()=>JY,"validateLocaleAndSetLanguage"),version:t(()=>be,"version"),versionMajorMinor:t(()=>G,"versionMajorMinor"),visitArray:t(()=>B3,"visitArray"),visitCommaListElements:t(()=>tL,"visitCommaListElements"),visitEachChild:t(()=>Ur,"visitEachChild"),visitFunctionBody:t(()=>ld,"visitFunctionBody"),visitIterationBody:t(()=>l_,"visitIterationBody"),visitLexicalEnvironment:t(()=>WQ,"visitLexicalEnvironment"),visitNode:t(()=>ut,"visitNode"),visitNodes:t(()=>rn,"visitNodes"),visitParameterList:t(()=>Wc,"visitParameterList"),walkUpBindingElementsAndPatterns:t(()=>yw,"walkUpBindingElementsAndPatterns"),walkUpOuterExpressions:t(()=>d0e,"walkUpOuterExpressions"),walkUpParenthesizedExpressions:t(()=>Om,"walkUpParenthesizedExpressions"),walkUpParenthesizedTypes:t(()=>RF,"walkUpParenthesizedTypes"),walkUpParenthesizedTypesAndGetParentAndChild:t(()=>qme,"walkUpParenthesizedTypesAndGetParentAndChild"),whitespaceOrMapCommentRegExp:t(()=>VQ,"whitespaceOrMapCommentRegExp"),writeCommentRange:t(()=>KA,"writeCommentRange"),writeFile:t(()=>mU,"writeFile"),writeFileEnsuringDirectories:t(()=>fX,"writeFileEnsuringDirectories"),zipWith:t(()=>sn,"zipWith")}),s.exports=F(W);var G="5.8",be="5.8.2",de=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(de||{}),se=[],Xe=new Map;function Ue(e){return e!==void 0?e.length:0}t(Ue,"length");function je(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a)return a}}t(je,"forEach");function Vt(e,r){if(e!==void 0)for(let i=e.length-1;i>=0;i--){let a=r(e[i],i);if(a)return a}}t(Vt,"forEachRight");function Ut(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a!==void 0)return a}}t(Ut,"firstDefined");function Ir(e,r){for(let i of e){let a=r(i);if(a!==void 0)return a}}t(Ir,"firstDefinedIterator");function wn(e,r,i){let a=i;if(e){let c=0;for(let u of e)a=r(a,u,c),c++}return a}t(wn,"reduceLeftIterator");function sn(e,r,i){let a=[];L.assertEqual(e.length,r.length);for(let c=0;c<e.length;c++)a.push(i(e[c],r[c],c));return a}t(sn,"zipWith");function Jn(e,r){if(e.length<=1)return e;let i=[];for(let a=0,c=e.length;a<c;a++)a!==0&&i.push(r),i.push(e[a]);return i}t(Jn,"intersperse");function kr(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return!1}return!0}t(kr,"every");function yr(e,r,i){if(e!==void 0)for(let a=i??0;a<e.length;a++){let c=e[a];if(r(c,a))return c}}t(yr,"find");function xs(e,r,i){if(e!==void 0)for(let a=i??e.length-1;a>=0;a--){let c=e[a];if(r(c,a))return c}}t(xs,"findLast");function bi(e,r,i){if(e===void 0)return-1;for(let a=i??0;a<e.length;a++)if(r(e[a],a))return a;return-1}t(bi,"findIndex");function fc(e,r,i){if(e===void 0)return-1;for(let a=i??e.length-1;a>=0;a--)if(r(e[a],a))return a;return-1}t(fc,"findLastIndex");function Ci(e,r,i=_b){if(e!==void 0){for(let a=0;a<e.length;a++)if(i(e[a],r))return!0}return!1}t(Ci,"contains");function bf(e,r,i){for(let a=i??0;a<e.length;a++)if(Ci(r,e.charCodeAt(a)))return a;return-1}t(bf,"indexOfAnyCharCode");function Bf(e,r){let i=0;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a];r(c,a)&&i++}return i}t(Bf,"countWhere");function In(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;if(a<i){let c=e.slice(0,a);for(a++;a<i;){let u=e[a];r(u)&&c.push(u),a++}return c}}return e}t(In,"filter");function NT(e,r){let i=0;for(let a=0;a<e.length;a++)r(e[a],a,e)&&(e[i]=e[a],i++);e.length=i}t(NT,"filterMutate");function bu(e){e.length=0}t(bu,"clear");function Dr(e,r){let i;if(e!==void 0){i=[];for(let a=0;a<e.length;a++)i.push(r(e[a],a))}return i}t(Dr,"map");function*IT(e,r){for(let i of e)yield r(i)}t(IT,"mapIterator");function el(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i],c=r(a,i);if(a!==c){let u=e.slice(0,i);for(u.push(c),i++;i<e.length;i++)u.push(r(e[i],i));return u}}return e}t(el,"sameMap");function Sf(e){let r=[];for(let i=0;i<e.length;i++){let a=e[i];a&&(Bs(a)?Zn(r,a):r.push(a))}return r}t(Sf,"flatten");function ka(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?i=Zn(i,c):i=Kr(i,c))}return i??se}t(ka,"flatMap");function tm(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?Zn(i,c):i.push(c))}return i}t(tm,"flatMapToMutable");function*Fy(e,r){for(let i of e){let a=r(i);a&&(yield*a)}}t(Fy,"flatMapIterator");function Ly(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=r(c,a);(i||c!==u||Bs(u))&&(i||(i=e.slice(0,a)),Bs(u)?Zn(i,u):i.push(u))}return i??e}t(Ly,"sameFlatMap");function qI(e,r){let i=[];for(let a=0;a<e.length;a++){let c=r(e[a],a);if(c===void 0)return;i.push(c)}return i}t(qI,"mapAllOrFail");function Wi(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c!==void 0&&i.push(c)}return i}t(Wi,"mapDefined");function*Fh(e,r){for(let i of e){let a=r(i);a!==void 0&&(yield a)}}t(Fh,"mapDefinedIterator");function JE(e,r,i){if(e.has(r))return e.get(r);let a=i();return e.set(r,a),a}t(JE,"getOrUpdate");function Lh(e,r){return e.has(r)?!1:(e.add(r),!0)}t(Lh,"tryAddToSet");function*u_e(e){yield e}t(u_e,"singleIterator");function UG(e,r,i){let a;if(e!==void 0){a=[];let c=e.length,u,_,h=0,m=0;for(;h<c;){for(;m<c;){let T=e[m];if(_=r(T,m),m===0)u=_;else if(_!==u)break;m++}if(h<m){let T=i(e.slice(h,m),u,h,m);T&&a.push(T),h=m}u=_,m++}}return a}t(UG,"spanMap");function f_e(e,r){if(e===void 0)return;let i=new Map;return e.forEach((a,c)=>{let[u,_]=r(c,a);i.set(u,_)}),i}t(f_e,"mapEntries");function xt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return!0}else return e.length>0;return!1}t(xt,"some");function zG(e,r,i){let a;for(let c=0;c<e.length;c++)r(e[c])?a=a===void 0?c:a:a!==void 0&&(i(a,c),a=void 0);a!==void 0&&i(a,e.length)}t(zG,"getRangesWhere");function us(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}t(us,"concatenate");function USt(e,r){return r}t(USt,"selectIndex");function Fj(e){return e.map(USt)}t(Fj,"indicesOf");function zSt(e,r,i){let a=Fj(e);WSt(e,a,i);let c=e[a[0]],u=[a[0]];for(let _=1;_<a.length;_++){let h=a[_],m=e[h];r(c,m)||(u.push(h),c=m)}return u.sort(),u.map(_=>e[_])}t(zSt,"deduplicateRelational");function $St(e,r){let i=[];for(let a=0;a<e.length;a++)Cd(i,e[a],r);return i}t($St,"deduplicateEquality");function OT(e,r,i){return e.length===0?[]:e.length===1?e.slice():i?zSt(e,r,i):$St(e,r)}t(OT,"deduplicate");function JSt(e,r){if(e.length===0)return se;let i=e[0],a=[i];for(let c=1;c<e.length;c++){let u=e[c];switch(r(u,i)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}a.push(i=u)}return a}t(JSt,"deduplicateSorted");function $G(){return[]}t($G,"createSortedArray");function ob(e,r,i,a,c){if(e.length===0)return e.push(r),!0;let u=lb(e,r,qo,i);if(u<0){if(a&&!c){let _=~u;if(_>0&&a(r,e[_-1]))return!1;if(_<e.length&&a(r,e[_]))return e.splice(_,1,r),!0}return e.splice(~u,0,r),!0}return c?(e.splice(u,0,r),!0):!1}t(ob,"insertSorted");function VI(e,r,i){return JSt(ip(e,r),i??r??lf)}t(VI,"sortAndDeduplicate");function ed(e,r,i=_b){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(!i(e[a],r[a],a))return!1;return!0}t(ed,"arrayIsEqualTo");function x7(e){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i];(r??!a)&&(r??(r=e.slice(0,i)),a&&r.push(a))}return r??e}t(x7,"compact");function __e(e,r,i){if(!r||!e||r.length===0||e.length===0)return r;let a=[];e:for(let c=0,u=0;u<r.length;u++){u>0&&L.assertGreaterThanOrEqual(i(r[u],r[u-1]),0);t:for(let _=c;c<e.length;c++)switch(c>_&&L.assertGreaterThanOrEqual(i(e[c],e[c-1]),0),i(r[u],e[c])){case-1:a.push(r[u]);continue e;case 0:continue e;case 1:continue t}}return a}t(__e,"relativeComplement");function Kr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}t(Kr,"append");function ow(e,r){return e===void 0?r:r===void 0?e:Bs(e)?Bs(r)?us(e,r):Kr(e,r):Bs(r)?Kr(r,e):[e,r]}t(ow,"combine");function p_e(e,r){return r<0?e.length+r:r}t(p_e,"toOffset");function Zn(e,r,i,a){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,a);i=i===void 0?0:p_e(r,i),a=a===void 0?r.length:p_e(r,a);for(let c=i;c<a&&c<r.length;c++)r[c]!==void 0&&e.push(r[c]);return e}t(Zn,"addRange");function Cd(e,r,i){return Ci(e,r,i)?!1:(e.push(r),!0)}t(Cd,"pushIfUnique");function Ry(e,r,i){return e!==void 0?(Cd(e,r,i),e):[r]}t(Ry,"appendIfUnique");function WSt(e,r,i){r.sort((a,c)=>i(e[a],e[c])||Vo(a,c))}t(WSt,"stableSortIndices");function ip(e,r){return e.length===0?se:e.slice().sort(r)}t(ip,"toSorted");function*JG(e){for(let r=e.length-1;r>=0;r--)yield e[r]}t(JG,"arrayReverseIterator");function WG(e,r,i,a){for(;i<a;){if(e[i]!==r[i])return!1;i++}return!0}t(WG,"rangeEquals");var cb=Array.prototype.at?(e,r)=>e?.at(r):(e,r)=>{if(e!==void 0&&(r=p_e(e,r),r<e.length))return e[r]};function Fl(e){return e===void 0||e.length===0?void 0:e[0]}t(Fl,"firstOrUndefined");function E7(e){if(e!==void 0)for(let r of e)return r}t(E7,"firstOrUndefinedIterator");function Ga(e){return L.assert(e.length!==0),e[0]}t(Ga,"first");function qG(e){for(let r of e)return r;L.fail("iterator is empty")}t(qG,"firstIterator");function nc(e){return e===void 0||e.length===0?void 0:e[e.length-1]}t(nc,"lastOrUndefined");function za(e){return L.assert(e.length!==0),e[e.length-1]}t(za,"last");function Ug(e){return e!==void 0&&e.length===1?e[0]:void 0}t(Ug,"singleOrUndefined");function VG(e){return L.checkDefined(Ug(e))}t(VG,"single");function zg(e){return e!==void 0&&e.length===1?e[0]:e}t(zg,"singleOrMany");function HG(e,r,i){let a=e.slice(0);return a[r]=i,a}t(HG,"replaceElement");function lb(e,r,i,a,c){return cw(e,i(r),i,a,c)}t(lb,"binarySearch");function cw(e,r,i,a,c){if(!xt(e))return-1;let u=c??0,_=e.length-1;for(;u<=_;){let h=u+(_-u>>1),m=i(e[h],h);switch(a(m,r)){case-1:u=h+1;break;case 0:return h;case 1:_=h-1;break}}return~u}t(cw,"binarySearchKey");function r_(e,r,i,a,c){if(e&&e.length>0){let u=e.length;if(u>0){let _=a===void 0||a<0?0:a,h=c===void 0||_+c>u-1?u-1:_+c,m;for(arguments.length<=2?(m=e[_],_++):m=i;_<=h;)m=r(m,e[_],_),_++;return m}}return i}t(r_,"reduceLeft");var IS=Object.prototype.hasOwnProperty;function Ro(e,r){return IS.call(e,r)}t(Ro,"hasProperty");function Lj(e,r){return IS.call(e,r)?e[r]:void 0}t(Lj,"getProperty");function Rh(e){let r=[];for(let i in e)IS.call(e,i)&&r.push(i);return r}t(Rh,"getOwnKeys");function MOe(e){let r=[];do{let i=Object.getOwnPropertyNames(e);for(let a of i)Cd(r,a)}while(e=Object.getPrototypeOf(e));return r}t(MOe,"getAllKeys");function lw(e){let r=[];for(let i in e)IS.call(e,i)&&r.push(e[i]);return r}t(lw,"getOwnValues");function d_e(e,r){let i=new Array(e);for(let a=0;a<e;a++)i[a]=r(a);return i}t(d_e,"arrayOf");function Ps(e,r){let i=[];for(let a of e)i.push(r?r(a):a);return i}t(Ps,"arrayFrom");function WE(e,...r){for(let i of r)if(i!==void 0)for(let a in i)Ro(i,a)&&(e[a]=i[a]);return e}t(WE,"assign");function m_e(e,r,i=_b){if(e===r)return!0;if(!e||!r)return!1;for(let a in e)if(IS.call(e,a)&&(!IS.call(r,a)||!i(e[a],r[a])))return!1;for(let a in r)if(IS.call(r,a)&&!IS.call(e,a))return!1;return!0}t(m_e,"equalOwnProperties");function dA(e,r,i=qo){let a=new Map;for(let c=0;c<e.length;c++){let u=e[c],_=r(u);_!==void 0&&a.set(_,i(u))}return a}t(dA,"arrayToMap");function h_e(e,r,i=qo){let a=[];for(let c=0;c<e.length;c++){let u=e[c];a[r(u)]=i(u)}return a}t(h_e,"arrayToNumericMap");function C7(e,r,i=qo){let a=rm();for(let c=0;c<e.length;c++){let u=e[c];a.add(r(u),i(u))}return a}t(C7,"arrayToMultiMap");function mA(e,r,i=qo){return Ps(C7(e,r).values(),i)}t(mA,"group");function GG(e,r){let i={};if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=`${r(c)}`;(i[u]??(i[u]=[])).push(c)}return i}t(GG,"groupBy");function g_e(e){let r={};for(let i in e)IS.call(e,i)&&(r[i]=e[i]);return r}t(g_e,"clone");function Rj(e,r){let i={};for(let a in r)IS.call(r,a)&&(i[a]=r[a]);for(let a in e)IS.call(e,a)&&(i[a]=e[a]);return i}t(Rj,"extend");function YG(e,r){for(let i in r)IS.call(r,i)&&(e[i]=r[i])}t(YG,"copyProperties");function ca(e,r){return r?.bind(e)}t(ca,"maybeBind");function rm(){let e=new Map;return e.add=qSt,e.remove=VSt,e}t(rm,"createMultiMap");function qSt(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}t(qSt,"multiMapAdd");function VSt(e,r){let i=this.get(e);i!==void 0&&(fw(i,r),i.length||this.delete(e))}t(VSt,"multiMapRemove");function k7(e){let r=e?.slice()??[],i=0;function a(){return i===r.length}t(a,"isEmpty");function c(..._){r.push(..._)}t(c,"enqueue");function u(){if(a())throw new Error("Queue is empty");let _=r[i];if(r[i]=void 0,i++,i>100&&i>r.length>>1){let h=r.length-i;r.copyWithin(0,i),r.length=h,i=0}return _}return t(u,"dequeue"),{enqueue:c,dequeue:u,isEmpty:a}}t(k7,"createQueue");function KG(e,r){let i=new Map,a=0;function*c(){for(let _ of i.values())Bs(_)?yield*_:yield _}t(c,"getElementIterator");let u={has(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);return Bs(m)?Ci(m,_,r):r(m,_)},add(_){let h=e(_);if(i.has(h)){let m=i.get(h);if(Bs(m))Ci(m,_,r)||(m.push(_),a++);else{let T=m;r(T,_)||(i.set(h,[T,_]),a++)}}else i.set(h,_),a++;return this},delete(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);if(Bs(m)){for(let T=0;T<m.length;T++)if(r(m[T],_))return m.length===1?i.delete(h):m.length===2?i.set(h,m[1-T]):UOe(m,T),a--,!0}else if(r(m,_))return i.delete(h),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(_){for(let h of Ps(i.values()))if(Bs(h))for(let m of h)_(m,m,u);else{let m=h;_(m,m,u)}},keys(){return c()},values(){return c()},*entries(){for(let _ of c())yield[_,_]},[Symbol.iterator]:()=>c(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return u}t(KG,"createSet");function Bs(e){return Array.isArray(e)}t(Bs,"isArray");function uw(e){return Bs(e)?e:[e]}t(uw,"toArray");function Fs(e){return typeof e=="string"}t(Fs,"isString");function ub(e){return typeof e=="number"}t(ub,"isNumber");function si(e,r){return e!==void 0&&r(e)?e:void 0}t(si,"tryCast");function ha(e,r){return e!==void 0&&r(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(r)}'.`)}t(ha,"cast");function go(e){}t(go,"noop");function My(){return!1}t(My,"returnFalse");function FT(){return!0}t(FT,"returnTrue");function LT(){}t(LT,"returnUndefined");function qo(e){return e}t(qo,"identity");function HSt(e){return e.toLowerCase()}t(HSt,"toLowerCase");var jOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function fb(e){return jOe.test(e)?e.replace(jOe,HSt):e}t(fb,"toFileNameLowerCase");function va(){throw new Error("Not implemented")}t(va,"notImplemented");function Uf(e){let r;return()=>(e&&(r=e(),e=void 0),r)}t(Uf,"memoize");function Mh(e){let r=new Map;return i=>{let a=`${typeof i}:${i}`,c=r.get(a);return c===void 0&&!r.has(a)&&(c=e(i),r.set(a,c)),c}}t(Mh,"memoizeOne");var y_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(y_e||{});function _b(e,r){return e===r}t(_b,"equateValues");function pb(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}t(pb,"equateStringsCaseInsensitive");function RT(e,r){return _b(e,r)}t(RT,"equateStringsCaseSensitive");function BOe(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}t(BOe,"compareComparableValues");function Vo(e,r){return BOe(e,r)}t(Vo,"compareValues");function Mj(e,r){return Vo(e?.start,r?.start)||Vo(e?.length,r?.length)}t(Mj,"compareTextSpans");function XG(e,r,i){for(let a=0;a<e.length;a++)r=Math.max(r,i(e[a]));return r}t(XG,"maxBy");function ZG(e,r){return r_(e,(i,a)=>r(i,a)===-1?i:a)}t(ZG,"min");function w7(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toUpperCase(),r=r.toUpperCase(),e<r?-1:e>r?1:0)}t(w7,"compareStringsCaseInsensitive");function v_e(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toLowerCase(),r=r.toLowerCase(),e<r?-1:e>r?1:0)}t(v_e,"compareStringsCaseInsensitiveEslintCompatible");function lf(e,r){return BOe(e,r)}t(lf,"compareStringsCaseSensitive");function hA(e){return e?w7:lf}t(hA,"getStringComparer");var GSt=(()=>{return r;function e(i,a,c){if(i===a)return 0;if(i===void 0)return-1;if(a===void 0)return 1;let u=c(i,a);return u<0?-1:u>0?1:0}function r(i){let a=new Intl.Collator(i,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(c,u)=>e(c,u,a)}})(),QG,eY;function b_e(){return eY}t(b_e,"getUILocale");function S_e(e){eY!==e&&(eY=e,QG=void 0)}t(S_e,"setUILocale");function D7(e,r){return QG??(QG=GSt(eY)),QG(e,r)}t(D7,"compareStringsCaseSensitiveUI");function T_e(e,r,i,a){return e===r?0:e===void 0?-1:r===void 0?1:a(e[i],r[i])}t(T_e,"compareProperties");function OS(e,r){return Vo(e?1:0,r?1:0)}t(OS,"compareBooleans");function MT(e,r,i){let a=Math.max(2,Math.floor(e.length*.34)),c=Math.floor(e.length*.4)+1,u;for(let _ of r){let h=i(_);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let m=YSt(e,h,c-.1);if(m===void 0)continue;L.assert(m<c),c=m,u=_}}return u}t(MT,"getSpellingSuggestion");function YSt(e,r,i){let a=new Array(r.length+1),c=new Array(r.length+1),u=i+.01;for(let h=0;h<=r.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let m=e.charCodeAt(h-1),T=Math.ceil(h>i?h-i:1),S=Math.floor(r.length>i+h?i+h:r.length);c[0]=h;let E=h;for(let A=1;A<T;A++)c[A]=u;for(let A=T;A<=S;A++){let I=e[h-1].toLowerCase()===r[A-1].toLowerCase()?a[A-1]+.1:a[A-1]+2,R=m===r.charCodeAt(A-1)?a[A-1]:Math.min(a[A]+1,c[A-1]+1,I);c[A]=R,E=Math.min(E,R)}for(let A=S+1;A<=r.length;A++)c[A]=u;if(E>i)return;let D=a;a=c,c=D}let _=a[r.length];return _>i?void 0:_}t(YSt,"levenshteinWithMax");function ic(e,r,i){let a=e.length-r.length;return a>=0&&(i?pb(e.slice(a),r):e.indexOf(r,a)===a)}t(ic,"endsWith");function gA(e,r){return ic(e,r)?e.slice(0,e.length-r.length):e}t(gA,"removeSuffix");function x_e(e,r){return ic(e,r)?e.slice(0,e.length-r.length):void 0}t(x_e,"tryRemoveSuffix");function tY(e){let r=e.length;for(let i=r-1;i>0;i--){let a=e.charCodeAt(i);if(a>=48&&a<=57)do--i,a=e.charCodeAt(i);while(i>0&&a>=48&&a<=57);else if(i>4&&(a===110||a===78)){if(--i,a=e.charCodeAt(i),a!==105&&a!==73||(--i,a=e.charCodeAt(i),a!==109&&a!==77))break;--i,a=e.charCodeAt(i)}else break;if(a!==45&&a!==46)break;r=i}return r===e.length?e:e.slice(0,r)}t(tY,"removeMinAndVersionNumbers");function HI(e,r){for(let i=0;i<e.length;i++)if(e[i]===r)return db(e,i),!0;return!1}t(HI,"orderedRemoveItem");function db(e,r){for(let i=r;i<e.length-1;i++)e[i]=e[i+1];e.pop()}t(db,"orderedRemoveItemAt");function UOe(e,r){e[r]=e[e.length-1],e.pop()}t(UOe,"unorderedRemoveItemAt");function fw(e,r){return KSt(e,i=>i===r)}t(fw,"unorderedRemoveItem");function KSt(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return UOe(e,i),!0;return!1}t(KSt,"unorderedRemoveFirstItemWhere");function Hu(e){return e?qo:fb}t(Hu,"createGetCanonicalFileName");function E_e({prefix:e,suffix:r}){return`${e}*${r}`}t(E_e,"patternText");function C_e(e,r){return L.assert(jj(e,r)),r.substring(e.prefix.length,r.length-e.suffix.length)}t(C_e,"matchedText");function rY(e,r,i){let a,c=-1;for(let u=0;u<e.length;u++){let _=e[u],h=r(_);h.prefix.length>c&&jj(h,i)&&(c=h.prefix.length,a=_)}return a}t(rY,"findBestPatternMatch");function fs(e,r,i){return i?pb(e.slice(0,r.length),r):e.lastIndexOf(r,0)===0}t(fs,"startsWith");function GI(e,r){return fs(e,r)?e.substr(r.length):e}t(GI,"removePrefix");function nY(e,r,i=qo){return fs(i(e),i(r))?e.substring(r.length):void 0}t(nY,"tryRemovePrefix");function jj({prefix:e,suffix:r},i){return i.length>=e.length+r.length&&fs(i,e)&&ic(i,r)}t(jj,"isPatternMatch");function Bj(e,r){return i=>e(i)&&r(i)}t(Bj,"and");function sp(...e){return(...r)=>{let i;for(let a of e)if(i=a(...r),i)return i;return i}}t(sp,"or");function Uj(e){return(...r)=>!e(...r)}t(Uj,"not");function zOe(e){}t(zOe,"assertType");function _w(e){return e===void 0?void 0:[e]}t(_w,"singleElementArray");function zj(e,r,i,a,c,u){u??(u=go);let _=0,h=0,m=e.length,T=r.length,S=!1;for(;_<m&&h<T;){let E=e[_],D=r[h],A=i(E,D);A===-1?(a(E),_++,S=!0):A===1?(c(D),h++,S=!0):(u(D,E),_++,h++)}for(;_<m;)a(e[_++]),S=!0;for(;h<T;)c(r[h++]),S=!0;return S}t(zj,"enumerateInsertsAndDeletes");function k_e(e){let r=[];return $Oe(e,r,void 0,0),r}t(k_e,"cartesianProduct");function $Oe(e,r,i,a){for(let c of e[a]){let u;i?(u=i.slice(),u.push(c)):u=[c],a===e.length-1?r.push(u):$Oe(e,r,u,a+1)}}t($Oe,"cartesianProductWorker");function iY(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(0,a)}}t(iY,"takeWhile");function w_e(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(a)}}t(w_e,"skipWhile");function sY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof uo<"u"}t(sY,"isNodeLikeSystem");var D_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(D_e||{}),L;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(rt){return e.currentLogLevel<=rt}t(i,"shouldLog"),e.shouldLog=i;function a(rt,Pt){e.loggingHost&&i(rt)&&e.loggingHost.log(rt,Pt)}t(a,"logMessage");function c(rt){a(3,rt)}t(c,"log"),e.log=c,(rt=>{function Pt(fi){a(1,fi)}t(Pt,"error2"),rt.error=Pt;function br(fi){a(2,fi)}t(br,"warn"),rt.warn=br;function pn(fi){a(3,fi)}t(pn,"log2"),rt.log=pn;function pi(fi){a(4,fi)}t(pi,"trace2"),rt.trace=pi})(c=e.log||(e.log={}));let u={};function _(){return r}t(_,"getAssertionLevel"),e.getAssertionLevel=_;function h(rt){let Pt=r;if(r=rt,rt>Pt)for(let br of Rh(u)){let pn=u[br];pn!==void 0&&e[br]!==pn.assertion&&rt>=pn.level&&(e[br]=pn,u[br]=void 0)}}t(h,"setAssertionLevel"),e.setAssertionLevel=h;function m(rt){return r>=rt}t(m,"shouldAssert"),e.shouldAssert=m;function T(rt,Pt){return m(rt)?!0:(u[Pt]={level:rt,assertion:e[Pt]},e[Pt]=go,!1)}t(T,"shouldAssertFunction");function S(rt,Pt){debugger;let br=new Error(rt?`Debug Failure. ${rt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(br,Pt||S),br}t(S,"fail"),e.fail=S;function E(rt,Pt,br){return S(`${Pt||"Unexpected node."}\r
113
+ `+new Array(y).join(" ")+"^"}}return null}t(Bpt,"getErrorSource");function lhr(s){var o=Bpt(s),f=ihr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),o&&(console.error(),console.error(o)),console.error(s.stack),shr(1)}t(lhr,"printErrorAndExit");function uhr(){var s=process.emit;process.emit=function(o){if(o==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,d=this.listeners(o).length>0;if(f&&!d)return lhr(arguments[1])}return s.apply(this,arguments)}}t(uhr,"shimEmitUncaughtException");var fhr=CI.slice(0),_hr=kI.slice(0);VO.wrapCallSite=jpt;VO.getErrorSource=Bpt;VO.mapSourcePosition=_3e;VO.retrieveSourceMap=f3e;VO.install=function(s){if(s=s||{},s.environment&&(sG=s.environment,["node","browser","auto"].indexOf(sG)===-1))throw new Error("environment "+sG+" was unknown. Available options are {auto, browser, node}");if(s.retrieveFile&&(s.overrideRetrieveFile&&(CI.length=0),CI.unshift(s.retrieveFile)),s.retrieveSourceMap&&(s.overrideRetrieveSourceMap&&(kI.length=0),kI.unshift(s.retrieveSourceMap)),s.hookRequire&&!l3e()){var o=Opt(c3e,"module"),f=o.prototype._compile;f.__sourceMapSupport||(o.prototype._compile=function(x,P){return qO[P]=x,aG[P]=void 0,f.call(this,x,P)},o.prototype._compile.__sourceMapSupport=!0)}if(a3e||(a3e="emptyCacheBetweenOperations"in s?s.emptyCacheBetweenOperations:!1),Fpt||(Fpt=!0,Error.prepareStackTrace=chr),!Lpt){var d="handleUncaughtExceptions"in s?s.handleUncaughtExceptions:!0;try{var y=Opt(c3e,"worker_threads");y.isMainThread===!1&&(d=!1)}catch{}d&&rhr()&&(Lpt=!0,uhr())}};VO.resetRetrieveHandlers=function(){CI.length=0,kI.length=0,CI=fhr.slice(0),kI=_hr.slice(0),f3e=Xle(kI),u3e=Xle(CI)}});var y3e=ar((H7r,Qle)=>{var zpt={};(s=>{"use strict";var o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,x=t((e,r)=>{for(var i in r)o(e,i,{get:r[i],enumerable:!0})},"__export"),P=t((e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of d(r))!y.call(e,c)&&c!==i&&o(e,c,{get:t(()=>r[c],"get"),enumerable:!(a=f(r,c))||a.enumerable});return e},"__copyProps"),F=t(e=>e,"__toCommonJS"),W={};x(W,{ANONYMOUS:t(()=>yre,"ANONYMOUS"),AccessFlags:t(()=>cpe,"AccessFlags"),AssertionLevel:t(()=>y_e,"AssertionLevel"),AssignmentDeclarationKind:t(()=>gpe,"AssignmentDeclarationKind"),AssignmentKind:t(()=>$me,"AssignmentKind"),Associativity:t(()=>Kme,"Associativity"),BreakpointResolver:t(()=>hne,"BreakpointResolver"),BuilderFileEmit:t(()=>H1e,"BuilderFileEmit"),BuilderProgramKind:t(()=>tve,"BuilderProgramKind"),BuilderState:t(()=>fh,"BuilderState"),CallHierarchy:t(()=>ID,"CallHierarchy"),CharacterCodes:t(()=>Dpe,"CharacterCodes"),CheckFlags:t(()=>ipe,"CheckFlags"),CheckMode:t(()=>BQ,"CheckMode"),ClassificationType:t(()=>wte,"ClassificationType"),ClassificationTypeNames:t(()=>nbe,"ClassificationTypeNames"),CommentDirectiveType:t(()=>J_e,"CommentDirectiveType"),Comparison:t(()=>de,"Comparison"),CompletionInfoFlags:t(()=>Kve,"CompletionInfoFlags"),CompletionTriggerKind:t(()=>Cte,"CompletionTriggerKind"),Completions:t(()=>MD,"Completions"),ContainerFlags:t(()=>wye,"ContainerFlags"),ContextFlags:t(()=>K_e,"ContextFlags"),Debug:t(()=>L,"Debug"),DiagnosticCategory:t(()=>Wj,"DiagnosticCategory"),Diagnostics:t(()=>v,"Diagnostics"),DocumentHighlights:t(()=>UJ,"DocumentHighlights"),ElementFlags:t(()=>ope,"ElementFlags"),EmitFlags:t(()=>EY,"EmitFlags"),EmitHint:t(()=>Ipe,"EmitHint"),EmitOnly:t(()=>q_e,"EmitOnly"),EndOfLineState:t(()=>Qve,"EndOfLineState"),ExitStatus:t(()=>V_e,"ExitStatus"),ExportKind:t(()=>Ybe,"ExportKind"),Extension:t(()=>Ppe,"Extension"),ExternalEmitHelpers:t(()=>Npe,"ExternalEmitHelpers"),FileIncludeKind:t(()=>dY,"FileIncludeKind"),FilePreprocessingDiagnosticsKind:t(()=>W_e,"FilePreprocessingDiagnosticsKind"),FileSystemEntryKind:t(()=>zpe,"FileSystemEntryKind"),FileWatcherEventKind:t(()=>jpe,"FileWatcherEventKind"),FindAllReferences:t(()=>ec,"FindAllReferences"),FlattenLevel:t(()=>Yye,"FlattenLevel"),FlowFlags:t(()=>Jj,"FlowFlags"),ForegroundColorEscapeSequences:t(()=>M1e,"ForegroundColorEscapeSequences"),FunctionFlags:t(()=>Gme,"FunctionFlags"),GeneratedIdentifierFlags:t(()=>pY,"GeneratedIdentifierFlags"),GetLiteralTextFlags:t(()=>sme,"GetLiteralTextFlags"),GoToDefinition:t(()=>rN,"GoToDefinition"),HighlightSpanKind:t(()=>Gve,"HighlightSpanKind"),IdentifierNameMap:t(()=>N6,"IdentifierNameMap"),ImportKind:t(()=>Gbe,"ImportKind"),ImportsNotUsedAsValues:t(()=>xpe,"ImportsNotUsedAsValues"),IndentStyle:t(()=>Yve,"IndentStyle"),IndexFlags:t(()=>lpe,"IndexFlags"),IndexKind:t(()=>_pe,"IndexKind"),InferenceFlags:t(()=>mpe,"InferenceFlags"),InferencePriority:t(()=>dpe,"InferencePriority"),InlayHintKind:t(()=>Hve,"InlayHintKind"),InlayHints:t(()=>oie,"InlayHints"),InternalEmitFlags:t(()=>Ape,"InternalEmitFlags"),InternalNodeBuilderFlags:t(()=>Z_e,"InternalNodeBuilderFlags"),InternalSymbolName:t(()=>spe,"InternalSymbolName"),IntersectionFlags:t(()=>Y_e,"IntersectionFlags"),InvalidatedProjectKind:t(()=>Eve,"InvalidatedProjectKind"),JSDocParsingMode:t(()=>Mpe,"JSDocParsingMode"),JsDoc:t(()=>b2,"JsDoc"),JsTyping:t(()=>Xb,"JsTyping"),JsxEmit:t(()=>Tpe,"JsxEmit"),JsxFlags:t(()=>B_e,"JsxFlags"),JsxReferenceKind:t(()=>upe,"JsxReferenceKind"),LanguageFeatureMinimumTarget:t(()=>du,"LanguageFeatureMinimumTarget"),LanguageServiceMode:t(()=>qve,"LanguageServiceMode"),LanguageVariant:t(()=>kpe,"LanguageVariant"),LexicalEnvironmentFlags:t(()=>Fpe,"LexicalEnvironmentFlags"),ListFormat:t(()=>Lpe,"ListFormat"),LogLevel:t(()=>D_e,"LogLevel"),MapCode:t(()=>cie,"MapCode"),MemberOverrideStatus:t(()=>H_e,"MemberOverrideStatus"),ModifierFlags:t(()=>fY,"ModifierFlags"),ModuleDetectionKind:t(()=>ype,"ModuleDetectionKind"),ModuleInstanceState:t(()=>Cye,"ModuleInstanceState"),ModuleKind:t(()=>vA,"ModuleKind"),ModuleResolutionKind:t(()=>yA,"ModuleResolutionKind"),ModuleSpecifierEnding:t(()=>Vhe,"ModuleSpecifierEnding"),NavigateTo:t(()=>vSe,"NavigateTo"),NavigationBar:t(()=>SSe,"NavigationBar"),NewLineKind:t(()=>Epe,"NewLineKind"),NodeBuilderFlags:t(()=>X_e,"NodeBuilderFlags"),NodeCheckFlags:t(()=>gY,"NodeCheckFlags"),NodeFactoryFlags:t(()=>Sge,"NodeFactoryFlags"),NodeFlags:t(()=>uY,"NodeFlags"),NodeResolutionFeatures:t(()=>mye,"NodeResolutionFeatures"),ObjectFlags:t(()=>vY,"ObjectFlags"),OperationCanceledException:t(()=>e4,"OperationCanceledException"),OperatorPrecedence:t(()=>Xme,"OperatorPrecedence"),OrganizeImports:t(()=>S2,"OrganizeImports"),OrganizeImportsMode:t(()=>Ete,"OrganizeImportsMode"),OuterExpressionKinds:t(()=>Ope,"OuterExpressionKinds"),OutliningElementsCollector:t(()=>uie,"OutliningElementsCollector"),OutliningSpanKind:t(()=>Xve,"OutliningSpanKind"),OutputFileType:t(()=>Zve,"OutputFileType"),PackageJsonAutoImportPreference:t(()=>Wve,"PackageJsonAutoImportPreference"),PackageJsonDependencyGroup:t(()=>Jve,"PackageJsonDependencyGroup"),PatternMatchKind:t(()=>Mre,"PatternMatchKind"),PollingInterval:t(()=>CY,"PollingInterval"),PollingWatchKind:t(()=>Spe,"PollingWatchKind"),PragmaKindFlags:t(()=>Rpe,"PragmaKindFlags"),PredicateSemantics:t(()=>U_e,"PredicateSemantics"),PreparePasteEdits:t(()=>Cie,"PreparePasteEdits"),PrivateIdentifierKind:t(()=>Nge,"PrivateIdentifierKind"),ProcessLevel:t(()=>Qye,"ProcessLevel"),ProgramUpdateLevel:t(()=>I1e,"ProgramUpdateLevel"),QuotePreference:t(()=>Cbe,"QuotePreference"),RegularExpressionFlags:t(()=>z_e,"RegularExpressionFlags"),RelationComparisonResult:t(()=>_Y,"RelationComparisonResult"),Rename:t(()=>xW,"Rename"),ScriptElementKind:t(()=>tbe,"ScriptElementKind"),ScriptElementKindModifier:t(()=>rbe,"ScriptElementKindModifier"),ScriptKind:t(()=>SY,"ScriptKind"),ScriptSnapshot:t(()=>Z$,"ScriptSnapshot"),ScriptTarget:t(()=>Cpe,"ScriptTarget"),SemanticClassificationFormat:t(()=>Vve,"SemanticClassificationFormat"),SemanticMeaning:t(()=>ibe,"SemanticMeaning"),SemicolonPreference:t(()=>kte,"SemicolonPreference"),SignatureCheckMode:t(()=>UQ,"SignatureCheckMode"),SignatureFlags:t(()=>bY,"SignatureFlags"),SignatureHelp:t(()=>hR,"SignatureHelp"),SignatureInfo:t(()=>V1e,"SignatureInfo"),SignatureKind:t(()=>fpe,"SignatureKind"),SmartSelectionRange:t(()=>pie,"SmartSelectionRange"),SnippetKind:t(()=>xY,"SnippetKind"),StatisticType:t(()=>Ove,"StatisticType"),StructureIsReused:t(()=>mY,"StructureIsReused"),SymbolAccessibility:t(()=>tpe,"SymbolAccessibility"),SymbolDisplay:t(()=>pv,"SymbolDisplay"),SymbolDisplayPartKind:t(()=>eJ,"SymbolDisplayPartKind"),SymbolFlags:t(()=>hY,"SymbolFlags"),SymbolFormatFlags:t(()=>epe,"SymbolFormatFlags"),SyntaxKind:t(()=>lY,"SyntaxKind"),Ternary:t(()=>hpe,"Ternary"),ThrottledCancellationToken:t(()=>P2e,"ThrottledCancellationToken"),TokenClass:t(()=>ebe,"TokenClass"),TokenFlags:t(()=>$_e,"TokenFlags"),TransformFlags:t(()=>TY,"TransformFlags"),TypeFacts:t(()=>jQ,"TypeFacts"),TypeFlags:t(()=>yY,"TypeFlags"),TypeFormatFlags:t(()=>Q_e,"TypeFormatFlags"),TypeMapKind:t(()=>ppe,"TypeMapKind"),TypePredicateKind:t(()=>rpe,"TypePredicateKind"),TypeReferenceSerializationKind:t(()=>npe,"TypeReferenceSerializationKind"),UnionReduction:t(()=>G_e,"UnionReduction"),UpToDateStatusType:t(()=>gve,"UpToDateStatusType"),VarianceFlags:t(()=>ape,"VarianceFlags"),Version:t(()=>Zm,"Version"),VersionRange:t(()=>$j,"VersionRange"),WatchDirectoryFlags:t(()=>wpe,"WatchDirectoryFlags"),WatchDirectoryKind:t(()=>bpe,"WatchDirectoryKind"),WatchFileKind:t(()=>vpe,"WatchFileKind"),WatchLogLevel:t(()=>F1e,"WatchLogLevel"),WatchType:t(()=>xu,"WatchType"),accessPrivateIdentifier:t(()=>Gye,"accessPrivateIdentifier"),addEmitFlags:t(()=>Kh,"addEmitFlags"),addEmitHelper:t(()=>Qw,"addEmitHelper"),addEmitHelpers:t(()=>H0,"addEmitHelpers"),addInternalEmitFlags:t(()=>gC,"addInternalEmitFlags"),addNodeFactoryPatcher:t(()=>kFe,"addNodeFactoryPatcher"),addObjectAllocatorPatcher:t(()=>fFe,"addObjectAllocatorPatcher"),addRange:t(()=>Zn,"addRange"),addRelatedInfo:t(()=>da,"addRelatedInfo"),addSyntheticLeadingComment:t(()=>cx,"addSyntheticLeadingComment"),addSyntheticTrailingComment:t(()=>p3,"addSyntheticTrailingComment"),addToSeen:t(()=>lm,"addToSeen"),advancedAsyncSuperHelper:t(()=>lz,"advancedAsyncSuperHelper"),affectsDeclarationPathOptionDeclarations:t(()=>j0e,"affectsDeclarationPathOptionDeclarations"),affectsEmitOptionDeclarations:t(()=>M0e,"affectsEmitOptionDeclarations"),allKeysStartWithDot:t(()=>n$,"allKeysStartWithDot"),altDirectorySeparator:t(()=>Gj,"altDirectorySeparator"),and:t(()=>Bj,"and"),append:t(()=>Kr,"append"),appendIfUnique:t(()=>Ry,"appendIfUnique"),arrayFrom:t(()=>Ps,"arrayFrom"),arrayIsEqualTo:t(()=>ed,"arrayIsEqualTo"),arrayIsHomogeneous:t(()=>ege,"arrayIsHomogeneous"),arrayOf:t(()=>d_e,"arrayOf"),arrayReverseIterator:t(()=>JG,"arrayReverseIterator"),arrayToMap:t(()=>dA,"arrayToMap"),arrayToMultiMap:t(()=>C7,"arrayToMultiMap"),arrayToNumericMap:t(()=>h_e,"arrayToNumericMap"),assertType:t(()=>zOe,"assertType"),assign:t(()=>WE,"assign"),asyncSuperHelper:t(()=>cz,"asyncSuperHelper"),attachFileToDiagnostics:t(()=>Ww,"attachFileToDiagnostics"),base64decode:t(()=>yhe,"base64decode"),base64encode:t(()=>ghe,"base64encode"),binarySearch:t(()=>lb,"binarySearch"),binarySearchKey:t(()=>cw,"binarySearchKey"),bindSourceFile:t(()=>Dye,"bindSourceFile"),breakIntoCharacterSpans:t(()=>fSe,"breakIntoCharacterSpans"),breakIntoWordSpans:t(()=>_Se,"breakIntoWordSpans"),buildLinkParts:t(()=>Obe,"buildLinkParts"),buildOpts:t(()=>$5,"buildOpts"),buildOverload:t(()=>_Ge,"buildOverload"),bundlerModuleNameResolver:t(()=>hye,"bundlerModuleNameResolver"),canBeConvertedToAsync:t(()=>Jre,"canBeConvertedToAsync"),canHaveDecorators:t(()=>yx,"canHaveDecorators"),canHaveExportModifier:t(()=>_5,"canHaveExportModifier"),canHaveFlowNode:t(()=>JA,"canHaveFlowNode"),canHaveIllegalDecorators:t(()=>HZ,"canHaveIllegalDecorators"),canHaveIllegalModifiers:t(()=>g0e,"canHaveIllegalModifiers"),canHaveIllegalType:t(()=>ZFe,"canHaveIllegalType"),canHaveIllegalTypeParameters:t(()=>h0e,"canHaveIllegalTypeParameters"),canHaveJSDoc:t(()=>FF,"canHaveJSDoc"),canHaveLocals:t(()=>Wg,"canHaveLocals"),canHaveModifiers:t(()=>pm,"canHaveModifiers"),canHaveModuleSpecifier:t(()=>Bme,"canHaveModuleSpecifier"),canHaveSymbol:t(()=>th,"canHaveSymbol"),canIncludeBindAndCheckDiagnostics:t(()=>n3,"canIncludeBindAndCheckDiagnostics"),canJsonReportNoInputFiles:t(()=>G5,"canJsonReportNoInputFiles"),canProduceDiagnostics:t(()=>iL,"canProduceDiagnostics"),canUsePropertyAccess:t(()=>eZ,"canUsePropertyAccess"),canWatchAffectingLocation:t(()=>lve,"canWatchAffectingLocation"),canWatchAtTypes:t(()=>cve,"canWatchAtTypes"),canWatchDirectoryOrFile:t(()=>zee,"canWatchDirectoryOrFile"),canWatchDirectoryOrFilePath:t(()=>vL,"canWatchDirectoryOrFilePath"),cartesianProduct:t(()=>k_e,"cartesianProduct"),cast:t(()=>ha,"cast"),chainBundle:t(()=>uh,"chainBundle"),chainDiagnosticMessages:t(()=>qs,"chainDiagnosticMessages"),changeAnyExtension:t(()=>I7,"changeAnyExtension"),changeCompilerHostLikeToUseCache:t(()=>Y3,"changeCompilerHostLikeToUseCache"),changeExtension:t(()=>Yy,"changeExtension"),changeFullExtension:t(()=>Xj,"changeFullExtension"),changesAffectModuleResolution:t(()=>EB,"changesAffectModuleResolution"),changesAffectingProgramStructure:t(()=>Xde,"changesAffectingProgramStructure"),characterCodeToRegularExpressionFlag:t(()=>RY,"characterCodeToRegularExpressionFlag"),childIsDecorated:t(()=>D4,"childIsDecorated"),classElementOrClassElementParameterIsDecorated:t(()=>LK,"classElementOrClassElementParameterIsDecorated"),classHasClassThisAssignment:t(()=>tee,"classHasClassThisAssignment"),classHasDeclaredOrExplicitlyAssignedName:t(()=>ree,"classHasDeclaredOrExplicitlyAssignedName"),classHasExplicitlyAssignedName:t(()=>h$,"classHasExplicitlyAssignedName"),classOrConstructorParameterIsDecorated:t(()=>Y1,"classOrConstructorParameterIsDecorated"),classicNameResolver:t(()=>xye,"classicNameResolver"),classifier:t(()=>O2e,"classifier"),cleanExtendedConfigCache:t(()=>T$,"cleanExtendedConfigCache"),clear:t(()=>bu,"clear"),clearMap:t(()=>J_,"clearMap"),clearSharedExtendedConfigFileWatcher:t(()=>hee,"clearSharedExtendedConfigFileWatcher"),climbPastPropertyAccess:t(()=>nJ,"climbPastPropertyAccess"),clone:t(()=>g_e,"clone"),cloneCompilerOptions:t(()=>Vte,"cloneCompilerOptions"),closeFileWatcher:t(()=>Fm,"closeFileWatcher"),closeFileWatcherOf:t(()=>Ud,"closeFileWatcherOf"),codefix:t(()=>Af,"codefix"),collapseTextChangeRangesAcrossMultipleVersions:t(()=>ude,"collapseTextChangeRangesAcrossMultipleVersions"),collectExternalModuleInfo:t(()=>XQ,"collectExternalModuleInfo"),combine:t(()=>ow,"combine"),combinePaths:t(()=>ei,"combinePaths"),commandLineOptionOfCustomType:t(()=>z0e,"commandLineOptionOfCustomType"),commentPragmas:t(()=>qj,"commentPragmas"),commonOptionsWithBuild:t(()=>Rz,"commonOptionsWithBuild"),compact:t(()=>x7,"compact"),compareBooleans:t(()=>OS,"compareBooleans"),compareDataObjects:t(()=>DX,"compareDataObjects"),compareDiagnostics:t(()=>K4,"compareDiagnostics"),compareEmitHelpers:t(()=>Oge,"compareEmitHelpers"),compareNumberOfDirectorySeparators:t(()=>l5,"compareNumberOfDirectorySeparators"),comparePaths:t(()=>jy,"comparePaths"),comparePathsCaseInsensitive:t(()=>f7e,"comparePathsCaseInsensitive"),comparePathsCaseSensitive:t(()=>u7e,"comparePathsCaseSensitive"),comparePatternKeys:t(()=>NQ,"comparePatternKeys"),compareProperties:t(()=>T_e,"compareProperties"),compareStringsCaseInsensitive:t(()=>w7,"compareStringsCaseInsensitive"),compareStringsCaseInsensitiveEslintCompatible:t(()=>v_e,"compareStringsCaseInsensitiveEslintCompatible"),compareStringsCaseSensitive:t(()=>lf,"compareStringsCaseSensitive"),compareStringsCaseSensitiveUI:t(()=>D7,"compareStringsCaseSensitiveUI"),compareTextSpans:t(()=>Mj,"compareTextSpans"),compareValues:t(()=>Vo,"compareValues"),compilerOptionsAffectDeclarationPath:t(()=>Uhe,"compilerOptionsAffectDeclarationPath"),compilerOptionsAffectEmit:t(()=>Bhe,"compilerOptionsAffectEmit"),compilerOptionsAffectSemanticDiagnostics:t(()=>jhe,"compilerOptionsAffectSemanticDiagnostics"),compilerOptionsDidYouMeanDiagnostics:t(()=>Uz,"compilerOptionsDidYouMeanDiagnostics"),compilerOptionsIndicateEsModules:t(()=>Zte,"compilerOptionsIndicateEsModules"),computeCommonSourceDirectoryOfFilenames:t(()=>L1e,"computeCommonSourceDirectoryOfFilenames"),computeLineAndCharacterOfPosition:t(()=>TA,"computeLineAndCharacterOfPosition"),computeLineOfPosition:t(()=>s4,"computeLineOfPosition"),computeLineStarts:t(()=>gw,"computeLineStarts"),computePositionOfLineAndCharacter:t(()=>tB,"computePositionOfLineAndCharacter"),computeSignatureWithDiagnostics:t(()=>Lee,"computeSignatureWithDiagnostics"),computeSuggestionDiagnostics:t(()=>Ure,"computeSuggestionDiagnostics"),computedOptions:t(()=>X4,"computedOptions"),concatenate:t(()=>us,"concatenate"),concatenateDiagnosticMessageChains:t(()=>Nhe,"concatenateDiagnosticMessageChains"),consumesNodeCoreModules:t(()=>NJ,"consumesNodeCoreModules"),contains:t(()=>Ci,"contains"),containsIgnoredPath:t(()=>a3,"containsIgnoredPath"),containsObjectRestOrSpread:t(()=>j5,"containsObjectRestOrSpread"),containsParseError:t(()=>ww,"containsParseError"),containsPath:t(()=>wd,"containsPath"),convertCompilerOptionsForTelemetry:t(()=>nye,"convertCompilerOptionsForTelemetry"),convertCompilerOptionsFromJson:t(()=>aLe,"convertCompilerOptionsFromJson"),convertJsonOption:t(()=>NC,"convertJsonOption"),convertToBase64:t(()=>hhe,"convertToBase64"),convertToJson:t(()=>q5,"convertToJson"),convertToObject:t(()=>K0e,"convertToObject"),convertToOptionsWithAbsolutePaths:t(()=>Wz,"convertToOptionsWithAbsolutePaths"),convertToRelativePath:t(()=>n4,"convertToRelativePath"),convertToTSConfig:t(()=>dQ,"convertToTSConfig"),convertTypeAcquisitionFromJson:t(()=>oLe,"convertTypeAcquisitionFromJson"),copyComments:t(()=>UC,"copyComments"),copyEntries:t(()=>CB,"copyEntries"),copyLeadingComments:t(()=>G6,"copyLeadingComments"),copyProperties:t(()=>YG,"copyProperties"),copyTrailingAsLeadingComments:t(()=>zL,"copyTrailingAsLeadingComments"),copyTrailingComments:t(()=>f8,"copyTrailingComments"),couldStartTrivia:t(()=>Kpe,"couldStartTrivia"),countWhere:t(()=>Bf,"countWhere"),createAbstractBuilder:t(()=>p9e,"createAbstractBuilder"),createAccessorPropertyBackingField:t(()=>KZ,"createAccessorPropertyBackingField"),createAccessorPropertyGetRedirector:t(()=>C0e,"createAccessorPropertyGetRedirector"),createAccessorPropertySetRedirector:t(()=>k0e,"createAccessorPropertySetRedirector"),createBaseNodeFactory:t(()=>hge,"createBaseNodeFactory"),createBinaryExpressionTrampoline:t(()=>Nz,"createBinaryExpressionTrampoline"),createBuilderProgram:t(()=>Ree,"createBuilderProgram"),createBuilderProgramUsingIncrementalBuildInfo:t(()=>sve,"createBuilderProgramUsingIncrementalBuildInfo"),createBuilderStatusReporter:t(()=>W$,"createBuilderStatusReporter"),createCacheableExportInfoMap:t(()=>Pre,"createCacheableExportInfoMap"),createCachedDirectoryStructureHost:t(()=>b$,"createCachedDirectoryStructureHost"),createClassifier:t(()=>WMe,"createClassifier"),createCommentDirectivesMap:t(()=>nme,"createCommentDirectivesMap"),createCompilerDiagnostic:t(()=>kc,"createCompilerDiagnostic"),createCompilerDiagnosticForInvalidCustomType:t(()=>$0e,"createCompilerDiagnosticForInvalidCustomType"),createCompilerDiagnosticFromMessageChain:t(()=>PU,"createCompilerDiagnosticFromMessageChain"),createCompilerHost:t(()=>R1e,"createCompilerHost"),createCompilerHostFromProgramHost:t(()=>rte,"createCompilerHostFromProgramHost"),createCompilerHostWorker:t(()=>x$,"createCompilerHostWorker"),createDetachedDiagnostic:t(()=>Jw,"createDetachedDiagnostic"),createDiagnosticCollection:t(()=>U4,"createDiagnosticCollection"),createDiagnosticForFileFromMessageChain:t(()=>AK,"createDiagnosticForFileFromMessageChain"),createDiagnosticForNode:t(()=>Sn,"createDiagnosticForNode"),createDiagnosticForNodeArray:t(()=>LA,"createDiagnosticForNodeArray"),createDiagnosticForNodeArrayFromMessageChain:t(()=>uF,"createDiagnosticForNodeArrayFromMessageChain"),createDiagnosticForNodeFromMessageChain:t(()=>M0,"createDiagnosticForNodeFromMessageChain"),createDiagnosticForNodeInSourceFile:t(()=>Pd,"createDiagnosticForNodeInSourceFile"),createDiagnosticForRange:t(()=>gme,"createDiagnosticForRange"),createDiagnosticMessageChainFromDiagnostic:t(()=>hme,"createDiagnosticMessageChainFromDiagnostic"),createDiagnosticReporter:t(()=>ED,"createDiagnosticReporter"),createDocumentPositionMapper:t(()=>Jye,"createDocumentPositionMapper"),createDocumentRegistry:t(()=>eSe,"createDocumentRegistry"),createDocumentRegistryInternal:t(()=>Fre,"createDocumentRegistryInternal"),createEmitAndSemanticDiagnosticsBuilderProgram:t(()=>Uee,"createEmitAndSemanticDiagnosticsBuilderProgram"),createEmitHelperFactory:t(()=>Ige,"createEmitHelperFactory"),createEmptyExports:t(()=>A5,"createEmptyExports"),createEvaluator:t(()=>uge,"createEvaluator"),createExpressionForJsxElement:t(()=>u0e,"createExpressionForJsxElement"),createExpressionForJsxFragment:t(()=>f0e,"createExpressionForJsxFragment"),createExpressionForObjectLiteralElementLike:t(()=>_0e,"createExpressionForObjectLiteralElementLike"),createExpressionForPropertyName:t(()=>zZ,"createExpressionForPropertyName"),createExpressionFromEntityName:t(()=>N5,"createExpressionFromEntityName"),createExternalHelpersImportDeclarationIfNeeded:t(()=>WZ,"createExternalHelpersImportDeclarationIfNeeded"),createFileDiagnostic:t(()=>su,"createFileDiagnostic"),createFileDiagnosticFromMessageChain:t(()=>LB,"createFileDiagnosticFromMessageChain"),createFlowNode:t(()=>Qg,"createFlowNode"),createForOfBindingStatement:t(()=>UZ,"createForOfBindingStatement"),createFutureSourceFile:t(()=>MJ,"createFutureSourceFile"),createGetCanonicalFileName:t(()=>Hu,"createGetCanonicalFileName"),createGetIsolatedDeclarationErrors:t(()=>T1e,"createGetIsolatedDeclarationErrors"),createGetSourceFile:t(()=>See,"createGetSourceFile"),createGetSymbolAccessibilityDiagnosticForNode:t(()=>l2,"createGetSymbolAccessibilityDiagnosticForNode"),createGetSymbolAccessibilityDiagnosticForNodeName:t(()=>S1e,"createGetSymbolAccessibilityDiagnosticForNodeName"),createGetSymbolWalker:t(()=>Pye,"createGetSymbolWalker"),createIncrementalCompilerHost:t(()=>J$,"createIncrementalCompilerHost"),createIncrementalProgram:t(()=>hve,"createIncrementalProgram"),createJsxFactoryExpression:t(()=>BZ,"createJsxFactoryExpression"),createLanguageService:t(()=>A2e,"createLanguageService"),createLanguageServiceSourceFile:t(()=>rW,"createLanguageServiceSourceFile"),createMemberAccessForPropertyName:t(()=>PC,"createMemberAccessForPropertyName"),createModeAwareCache:t(()=>k6,"createModeAwareCache"),createModeAwareCacheKey:t(()=>L3,"createModeAwareCacheKey"),createModeMismatchDetails:t(()=>dK,"createModeMismatchDetails"),createModuleNotFoundChain:t(()=>wB,"createModuleNotFoundChain"),createModuleResolutionCache:t(()=>w6,"createModuleResolutionCache"),createModuleResolutionLoader:t(()=>wee,"createModuleResolutionLoader"),createModuleResolutionLoaderUsingGlobalCache:t(()=>pve,"createModuleResolutionLoaderUsingGlobalCache"),createModuleSpecifierResolutionHost:t(()=>p2,"createModuleSpecifierResolutionHost"),createMultiMap:t(()=>rm,"createMultiMap"),createNameResolver:t(()=>sZ,"createNameResolver"),createNodeConverters:t(()=>vge,"createNodeConverters"),createNodeFactory:t(()=>h5,"createNodeFactory"),createOptionNameMap:t(()=>jz,"createOptionNameMap"),createOverload:t(()=>wie,"createOverload"),createPackageJsonImportFilter:t(()=>Y6,"createPackageJsonImportFilter"),createPackageJsonInfo:t(()=>Sre,"createPackageJsonInfo"),createParenthesizerRules:t(()=>gge,"createParenthesizerRules"),createPatternMatcher:t(()=>sSe,"createPatternMatcher"),createPrinter:t(()=>Yb,"createPrinter"),createPrinterWithDefaults:t(()=>A1e,"createPrinterWithDefaults"),createPrinterWithRemoveComments:t(()=>Tx,"createPrinterWithRemoveComments"),createPrinterWithRemoveCommentsNeverAsciiEscape:t(()=>N1e,"createPrinterWithRemoveCommentsNeverAsciiEscape"),createPrinterWithRemoveCommentsOmitTrailingSemicolon:t(()=>mee,"createPrinterWithRemoveCommentsOmitTrailingSemicolon"),createProgram:t(()=>hL,"createProgram"),createProgramDiagnostics:t(()=>W1e,"createProgramDiagnostics"),createProgramHost:t(()=>nte,"createProgramHost"),createPropertyNameNodeForIdentifierOrLiteral:t(()=>YU,"createPropertyNameNodeForIdentifierOrLiteral"),createQueue:t(()=>k7,"createQueue"),createRange:t(()=>Id,"createRange"),createRedirectedBuilderProgram:t(()=>Bee,"createRedirectedBuilderProgram"),createResolutionCache:t(()=>Jee,"createResolutionCache"),createRuntimeTypeSerializer:t(()=>i1e,"createRuntimeTypeSerializer"),createScanner:t(()=>N0,"createScanner"),createSemanticDiagnosticsBuilderProgram:t(()=>_9e,"createSemanticDiagnosticsBuilderProgram"),createSet:t(()=>KG,"createSet"),createSolutionBuilder:t(()=>Sve,"createSolutionBuilder"),createSolutionBuilderHost:t(()=>vve,"createSolutionBuilderHost"),createSolutionBuilderWithWatch:t(()=>Tve,"createSolutionBuilderWithWatch"),createSolutionBuilderWithWatchHost:t(()=>bve,"createSolutionBuilderWithWatchHost"),createSortedArray:t(()=>$G,"createSortedArray"),createSourceFile:t(()=>mD,"createSourceFile"),createSourceMapGenerator:t(()=>jye,"createSourceMapGenerator"),createSourceMapSource:t(()=>AFe,"createSourceMapSource"),createSuperAccessVariableStatement:t(()=>y$,"createSuperAccessVariableStatement"),createSymbolTable:t(()=>ga,"createSymbolTable"),createSymlinkCache:t(()=>jX,"createSymlinkCache"),createSyntacticTypeNodeBuilder:t(()=>Uve,"createSyntacticTypeNodeBuilder"),createSystemWatchFunctions:t(()=>$pe,"createSystemWatchFunctions"),createTextChange:t(()=>OL,"createTextChange"),createTextChangeFromStartLength:t(()=>hJ,"createTextChangeFromStartLength"),createTextChangeRange:t(()=>$7,"createTextChangeRange"),createTextRangeFromNode:t(()=>Yte,"createTextRangeFromNode"),createTextRangeFromSpan:t(()=>mJ,"createTextRangeFromSpan"),createTextSpan:t(()=>Gu,"createTextSpan"),createTextSpanFromBounds:t(()=>ul,"createTextSpanFromBounds"),createTextSpanFromNode:t(()=>f_,"createTextSpanFromNode"),createTextSpanFromRange:t(()=>uv,"createTextSpanFromRange"),createTextSpanFromStringLiteralLikeContent:t(()=>Gte,"createTextSpanFromStringLiteralLikeContent"),createTextWriter:t(()=>VF,"createTextWriter"),createTokenRange:t(()=>xX,"createTokenRange"),createTypeChecker:t(()=>Rye,"createTypeChecker"),createTypeReferenceDirectiveResolutionCache:t(()=>e$,"createTypeReferenceDirectiveResolutionCache"),createTypeReferenceResolutionLoader:t(()=>k$,"createTypeReferenceResolutionLoader"),createWatchCompilerHost:t(()=>x9e,"createWatchCompilerHost"),createWatchCompilerHostOfConfigFile:t(()=>ite,"createWatchCompilerHostOfConfigFile"),createWatchCompilerHostOfFilesAndCompilerOptions:t(()=>ste,"createWatchCompilerHostOfFilesAndCompilerOptions"),createWatchFactory:t(()=>tte,"createWatchFactory"),createWatchHost:t(()=>ete,"createWatchHost"),createWatchProgram:t(()=>ate,"createWatchProgram"),createWatchStatusReporter:t(()=>Wee,"createWatchStatusReporter"),createWriteFileMeasuringIO:t(()=>Tee,"createWriteFileMeasuringIO"),declarationNameToString:t(()=>zo,"declarationNameToString"),decodeMappings:t(()=>GQ,"decodeMappings"),decodedTextSpanIntersectsWith:t(()=>z7,"decodedTextSpanIntersectsWith"),deduplicate:t(()=>OT,"deduplicate"),defaultInitCompilerOptions:t(()=>oQ,"defaultInitCompilerOptions"),defaultMaximumTruncationLength:t(()=>S4,"defaultMaximumTruncationLength"),diagnosticCategoryName:t(()=>VE,"diagnosticCategoryName"),diagnosticToString:t(()=>Dx,"diagnosticToString"),diagnosticsEqualityComparer:t(()=>AU,"diagnosticsEqualityComparer"),directoryProbablyExists:t(()=>ih,"directoryProbablyExists"),directorySeparator:t(()=>Xo,"directorySeparator"),displayPart:t(()=>V_,"displayPart"),displayPartsToString:t(()=>eR,"displayPartsToString"),disposeEmitNodes:t(()=>dZ,"disposeEmitNodes"),documentSpansEqual:t(()=>sre,"documentSpansEqual"),dumpTracingLegend:t(()=>j_e,"dumpTracingLegend"),elementAt:t(()=>cb,"elementAt"),elideNodes:t(()=>E0e,"elideNodes"),emitDetachedComments:t(()=>ahe,"emitDetachedComments"),emitFiles:t(()=>pee,"emitFiles"),emitFilesAndReportErrors:t(()=>B$,"emitFilesAndReportErrors"),emitFilesAndReportErrorsAndGetExitStatus:t(()=>Qee,"emitFilesAndReportErrorsAndGetExitStatus"),emitModuleKindIsNonNodeESM:t(()=>s5,"emitModuleKindIsNonNodeESM"),emitNewLineBeforeLeadingCommentOfPosition:t(()=>she,"emitNewLineBeforeLeadingCommentOfPosition"),emitResolverSkipsTypeChecking:t(()=>_ee,"emitResolverSkipsTypeChecking"),emitSkippedWithNoDiagnostics:t(()=>Aee,"emitSkippedWithNoDiagnostics"),emptyArray:t(()=>se,"emptyArray"),emptyFileSystemEntries:t(()=>VX,"emptyFileSystemEntries"),emptyMap:t(()=>Xe,"emptyMap"),emptyOptions:t(()=>dm,"emptyOptions"),endsWith:t(()=>ic,"endsWith"),ensurePathIsNonModuleName:t(()=>HE,"ensurePathIsNonModuleName"),ensureScriptKind:t(()=>UU,"ensureScriptKind"),ensureTrailingDirectorySeparator:t(()=>nu,"ensureTrailingDirectorySeparator"),entityNameToString:t(()=>lp,"entityNameToString"),enumerateInsertsAndDeletes:t(()=>zj,"enumerateInsertsAndDeletes"),equalOwnProperties:t(()=>m_e,"equalOwnProperties"),equateStringsCaseInsensitive:t(()=>pb,"equateStringsCaseInsensitive"),equateStringsCaseSensitive:t(()=>RT,"equateStringsCaseSensitive"),equateValues:t(()=>_b,"equateValues"),escapeJsxAttributeString:t(()=>sX,"escapeJsxAttributeString"),escapeLeadingUnderscores:t(()=>Lc,"escapeLeadingUnderscores"),escapeNonAsciiString:t(()=>cU,"escapeNonAsciiString"),escapeSnippetText:t(()=>ox,"escapeSnippetText"),escapeString:t(()=>Yg,"escapeString"),escapeTemplateSubstitution:t(()=>nX,"escapeTemplateSubstitution"),evaluatorResult:t(()=>au,"evaluatorResult"),every:t(()=>kr,"every"),exclusivelyPrefixedNodeCoreModules:t(()=>rz,"exclusivelyPrefixedNodeCoreModules"),executeCommandLine:t(()=>rMe,"executeCommandLine"),expandPreOrPostfixIncrementOrDecrementExpression:t(()=>kz,"expandPreOrPostfixIncrementOrDecrementExpression"),explainFiles:t(()=>Gee,"explainFiles"),explainIfFileIsRedirectAndImpliedFormat:t(()=>Yee,"explainIfFileIsRedirectAndImpliedFormat"),exportAssignmentIsAlias:t(()=>jF,"exportAssignmentIsAlias"),expressionResultIsUnused:t(()=>rge,"expressionResultIsUnused"),extend:t(()=>Rj,"extend"),extensionFromPath:t(()=>t3,"extensionFromPath"),extensionIsTS:t(()=>qU,"extensionIsTS"),extensionsNotSupportingExtensionlessResolution:t(()=>WU,"extensionsNotSupportingExtensionlessResolution"),externalHelpersModuleNameText:t(()=>kb,"externalHelpersModuleNameText"),factory:t(()=>B,"factory"),fileExtensionIs:t(()=>bc,"fileExtensionIs"),fileExtensionIsOneOf:t(()=>ll,"fileExtensionIsOneOf"),fileIncludeReasonToDiagnostics:t(()=>Zee,"fileIncludeReasonToDiagnostics"),fileShouldUseJavaScriptRequire:t(()=>Dre,"fileShouldUseJavaScriptRequire"),filter:t(()=>In,"filter"),filterMutate:t(()=>NT,"filterMutate"),filterSemanticDiagnostics:t(()=>A$,"filterSemanticDiagnostics"),find:t(()=>yr,"find"),findAncestor:t(()=>Ar,"findAncestor"),findBestPatternMatch:t(()=>rY,"findBestPatternMatch"),findChildOfKind:t(()=>Po,"findChildOfKind"),findComputedPropertyNameCacheAssignment:t(()=>Iz,"findComputedPropertyNameCacheAssignment"),findConfigFile:t(()=>vee,"findConfigFile"),findConstructorDeclaration:t(()=>m5,"findConstructorDeclaration"),findContainingList:t(()=>cJ,"findContainingList"),findDiagnosticForNode:t(()=>qbe,"findDiagnosticForNode"),findFirstNonJsxWhitespaceToken:t(()=>_be,"findFirstNonJsxWhitespaceToken"),findIndex:t(()=>bi,"findIndex"),findLast:t(()=>xs,"findLast"),findLastIndex:t(()=>fc,"findLastIndex"),findListItemInfo:t(()=>fbe,"findListItemInfo"),findModifier:t(()=>q6,"findModifier"),findNextToken:t(()=>kx,"findNextToken"),findPackageJson:t(()=>Wbe,"findPackageJson"),findPackageJsons:t(()=>bre,"findPackageJsons"),findPrecedingMatchingToken:t(()=>pJ,"findPrecedingMatchingToken"),findPrecedingToken:t(()=>Yl,"findPrecedingToken"),findSuperStatementIndexPath:t(()=>_$,"findSuperStatementIndexPath"),findTokenOnLeftOfPosition:t(()=>i8,"findTokenOnLeftOfPosition"),findUseStrictPrologue:t(()=>JZ,"findUseStrictPrologue"),first:t(()=>Ga,"first"),firstDefined:t(()=>Ut,"firstDefined"),firstDefinedIterator:t(()=>Ir,"firstDefinedIterator"),firstIterator:t(()=>qG,"firstIterator"),firstOrOnly:t(()=>Ere,"firstOrOnly"),firstOrUndefined:t(()=>Fl,"firstOrUndefined"),firstOrUndefinedIterator:t(()=>E7,"firstOrUndefinedIterator"),fixupCompilerOptions:t(()=>Wre,"fixupCompilerOptions"),flatMap:t(()=>ka,"flatMap"),flatMapIterator:t(()=>Fy,"flatMapIterator"),flatMapToMutable:t(()=>tm,"flatMapToMutable"),flatten:t(()=>Sf,"flatten"),flattenCommaList:t(()=>w0e,"flattenCommaList"),flattenDestructuringAssignment:t(()=>LC,"flattenDestructuringAssignment"),flattenDestructuringBinding:t(()=>Sx,"flattenDestructuringBinding"),flattenDiagnosticMessageText:t(()=>sg,"flattenDiagnosticMessageText"),forEach:t(()=>je,"forEach"),forEachAncestor:t(()=>Zde,"forEachAncestor"),forEachAncestorDirectory:t(()=>i4,"forEachAncestorDirectory"),forEachAncestorDirectoryStoppingAtGlobalCache:t(()=>Zg,"forEachAncestorDirectoryStoppingAtGlobalCache"),forEachChild:t(()=>Hs,"forEachChild"),forEachChildRecursively:t(()=>dD,"forEachChildRecursively"),forEachDynamicImportOrRequireCall:t(()=>nz,"forEachDynamicImportOrRequireCall"),forEachEmittedFile:t(()=>cee,"forEachEmittedFile"),forEachEnclosingBlockScopeContainer:t(()=>pme,"forEachEnclosingBlockScopeContainer"),forEachEntry:t(()=>iu,"forEachEntry"),forEachExternalModuleToImportFrom:t(()=>Nre,"forEachExternalModuleToImportFrom"),forEachImportClauseDeclaration:t(()=>Ume,"forEachImportClauseDeclaration"),forEachKey:t(()=>L0,"forEachKey"),forEachLeadingCommentRange:t(()=>L7,"forEachLeadingCommentRange"),forEachNameInAccessChainWalkingLeft:t(()=>khe,"forEachNameInAccessChainWalkingLeft"),forEachNameOfDefaultExport:t(()=>BJ,"forEachNameOfDefaultExport"),forEachOptionsSyntaxByName:t(()=>fZ,"forEachOptionsSyntaxByName"),forEachProjectReference:t(()=>f3,"forEachProjectReference"),forEachPropertyAssignment:t(()=>jA,"forEachPropertyAssignment"),forEachResolvedProjectReference:t(()=>lZ,"forEachResolvedProjectReference"),forEachReturnStatement:t(()=>Ab,"forEachReturnStatement"),forEachRight:t(()=>Vt,"forEachRight"),forEachTrailingCommentRange:t(()=>R7,"forEachTrailingCommentRange"),forEachTsConfigPropArray:t(()=>mF,"forEachTsConfigPropArray"),forEachUnique:t(()=>ore,"forEachUnique"),forEachYieldExpression:t(()=>Sme,"forEachYieldExpression"),formatColorAndReset:t(()=>xx,"formatColorAndReset"),formatDiagnostic:t(()=>xee,"formatDiagnostic"),formatDiagnostics:t(()=>URe,"formatDiagnostics"),formatDiagnosticsWithColorAndContext:t(()=>U1e,"formatDiagnosticsWithColorAndContext"),formatGeneratedName:t(()=>i2,"formatGeneratedName"),formatGeneratedNamePart:t(()=>T6,"formatGeneratedNamePart"),formatLocation:t(()=>Eee,"formatLocation"),formatMessage:t(()=>qw,"formatMessage"),formatStringFromArgs:t(()=>$0,"formatStringFromArgs"),formatting:t(()=>zl,"formatting"),generateDjb2Hash:t(()=>t4,"generateDjb2Hash"),generateTSConfig:t(()=>Z0e,"generateTSConfig"),getAdjustedReferenceLocation:t(()=>Ute,"getAdjustedReferenceLocation"),getAdjustedRenameLocation:t(()=>uJ,"getAdjustedRenameLocation"),getAliasDeclarationFromName:t(()=>HK,"getAliasDeclarationFromName"),getAllAccessorDeclarations:t(()=>rx,"getAllAccessorDeclarations"),getAllDecoratorsOfClass:t(()=>QQ,"getAllDecoratorsOfClass"),getAllDecoratorsOfClassElement:t(()=>d$,"getAllDecoratorsOfClassElement"),getAllJSDocTags:t(()=>cB,"getAllJSDocTags"),getAllJSDocTagsOfKind:t(()=>F7e,"getAllJSDocTagsOfKind"),getAllKeys:t(()=>MOe,"getAllKeys"),getAllProjectOutputs:t(()=>v$,"getAllProjectOutputs"),getAllSuperTypeNodes:t(()=>L4,"getAllSuperTypeNodes"),getAllowImportingTsExtensions:t(()=>Ohe,"getAllowImportingTsExtensions"),getAllowJSCompilerOption:t(()=>Mb,"getAllowJSCompilerOption"),getAllowSyntheticDefaultImports:t(()=>Vw,"getAllowSyntheticDefaultImports"),getAncestor:t(()=>WS,"getAncestor"),getAnyExtensionFromPath:t(()=>dw,"getAnyExtensionFromPath"),getAreDeclarationMapsEnabled:t(()=>NU,"getAreDeclarationMapsEnabled"),getAssignedExpandoInitializer:t(()=>Aw,"getAssignedExpandoInitializer"),getAssignedName:t(()=>sB,"getAssignedName"),getAssignmentDeclarationKind:t(()=>fl,"getAssignmentDeclarationKind"),getAssignmentDeclarationPropertyAccessKind:t(()=>DF,"getAssignmentDeclarationPropertyAccessKind"),getAssignmentTargetKind:t(()=>Nb,"getAssignmentTargetKind"),getAutomaticTypeDirectiveNames:t(()=>Zz,"getAutomaticTypeDirectiveNames"),getBaseFileName:t(()=>Ll,"getBaseFileName"),getBinaryOperatorPrecedence:t(()=>JF,"getBinaryOperatorPrecedence"),getBuildInfo:t(()=>dee,"getBuildInfo"),getBuildInfoFileVersionMap:t(()=>jee,"getBuildInfoFileVersionMap"),getBuildInfoText:t(()=>D1e,"getBuildInfoText"),getBuildOrderFromAnyBuildOrder:t(()=>SL,"getBuildOrderFromAnyBuildOrder"),getBuilderCreationParameters:t(()=>F$,"getBuilderCreationParameters"),getBuilderFileEmit:t(()=>Kb,"getBuilderFileEmit"),getCanonicalDiagnostic:t(()=>yme,"getCanonicalDiagnostic"),getCheckFlags:t(()=>$c,"getCheckFlags"),getClassExtendsHeritageElement:t(()=>ZT,"getClassExtendsHeritageElement"),getClassLikeDeclarationOfSymbol:t(()=>Gy,"getClassLikeDeclarationOfSymbol"),getCombinedLocalAndExportSymbolFlags:t(()=>ZA,"getCombinedLocalAndExportSymbolFlags"),getCombinedModifierFlags:t(()=>LS,"getCombinedModifierFlags"),getCombinedNodeFlags:t(()=>Uy,"getCombinedNodeFlags"),getCombinedNodeFlagsAlwaysIncludeJSDoc:t(()=>$Y,"getCombinedNodeFlagsAlwaysIncludeJSDoc"),getCommentRange:t(()=>Xh,"getCommentRange"),getCommonSourceDirectory:t(()=>G3,"getCommonSourceDirectory"),getCommonSourceDirectoryOfConfig:t(()=>RC,"getCommonSourceDirectoryOfConfig"),getCompilerOptionValue:t(()=>FU,"getCompilerOptionValue"),getCompilerOptionsDiffValue:t(()=>X0e,"getCompilerOptionsDiffValue"),getConditions:t(()=>Vb,"getConditions"),getConfigFileParsingDiagnostics:t(()=>Ex,"getConfigFileParsingDiagnostics"),getConstantValue:t(()=>Ege,"getConstantValue"),getContainerFlags:t(()=>OQ,"getContainerFlags"),getContainerNode:t(()=>BC,"getContainerNode"),getContainingClass:t(()=>Mu,"getContainingClass"),getContainingClassExcludingClassDecorators:t(()=>JB,"getContainingClassExcludingClassDecorators"),getContainingClassStaticBlock:t(()=>Pme,"getContainingClassStaticBlock"),getContainingFunction:t(()=>rd,"getContainingFunction"),getContainingFunctionDeclaration:t(()=>Dme,"getContainingFunctionDeclaration"),getContainingFunctionOrClassStaticBlock:t(()=>$B,"getContainingFunctionOrClassStaticBlock"),getContainingNodeArray:t(()=>nge,"getContainingNodeArray"),getContainingObjectLiteralElement:t(()=>tR,"getContainingObjectLiteralElement"),getContextualTypeFromParent:t(()=>CJ,"getContextualTypeFromParent"),getContextualTypeFromParentOrAncestorTypeNode:t(()=>lJ,"getContextualTypeFromParentOrAncestorTypeNode"),getDeclarationDiagnostics:t(()=>x1e,"getDeclarationDiagnostics"),getDeclarationEmitExtensionForPath:t(()=>fU,"getDeclarationEmitExtensionForPath"),getDeclarationEmitOutputFilePath:t(()=>the,"getDeclarationEmitOutputFilePath"),getDeclarationEmitOutputFilePathWorker:t(()=>uU,"getDeclarationEmitOutputFilePathWorker"),getDeclarationFileExtension:t(()=>Fz,"getDeclarationFileExtension"),getDeclarationFromName:t(()=>F4,"getDeclarationFromName"),getDeclarationModifierFlagsFromSymbol:t(()=>Fd,"getDeclarationModifierFlagsFromSymbol"),getDeclarationOfKind:t(()=>dc,"getDeclarationOfKind"),getDeclarationsOfKind:t(()=>Kde,"getDeclarationsOfKind"),getDeclaredExpandoInitializer:t(()=>N4,"getDeclaredExpandoInitializer"),getDecorators:t(()=>yb,"getDecorators"),getDefaultCompilerOptions:t(()=>tW,"getDefaultCompilerOptions"),getDefaultFormatCodeSettings:t(()=>Q$,"getDefaultFormatCodeSettings"),getDefaultLibFileName:t(()=>j7,"getDefaultLibFileName"),getDefaultLibFilePath:t(()=>N2e,"getDefaultLibFilePath"),getDefaultLikeExportInfo:t(()=>jJ,"getDefaultLikeExportInfo"),getDefaultLikeExportNameFromDeclaration:t(()=>Cre,"getDefaultLikeExportNameFromDeclaration"),getDefaultResolutionModeForFileWorker:t(()=>P$,"getDefaultResolutionModeForFileWorker"),getDiagnosticText:t(()=>A_,"getDiagnosticText"),getDiagnosticsWithinSpan:t(()=>Vbe,"getDiagnosticsWithinSpan"),getDirectoryPath:t(()=>_i,"getDirectoryPath"),getDirectoryToWatchFailedLookupLocation:t(()=>$ee,"getDirectoryToWatchFailedLookupLocation"),getDirectoryToWatchFailedLookupLocationFromTypeRoot:t(()=>fve,"getDirectoryToWatchFailedLookupLocationFromTypeRoot"),getDocumentPositionMapper:t(()=>Bre,"getDocumentPositionMapper"),getDocumentSpansEqualityComparer:t(()=>are,"getDocumentSpansEqualityComparer"),getESModuleInterop:t(()=>J0,"getESModuleInterop"),getEditsForFileRename:t(()=>rSe,"getEditsForFileRename"),getEffectiveBaseTypeNode:t(()=>Wh,"getEffectiveBaseTypeNode"),getEffectiveConstraintOfTypeParameter:t(()=>kA,"getEffectiveConstraintOfTypeParameter"),getEffectiveContainerForJSDocTemplateTag:t(()=>tU,"getEffectiveContainerForJSDocTemplateTag"),getEffectiveImplementsTypeNodes:t(()=>qA,"getEffectiveImplementsTypeNodes"),getEffectiveInitializer:t(()=>CF,"getEffectiveInitializer"),getEffectiveJSDocHost:t(()=>JS,"getEffectiveJSDocHost"),getEffectiveModifierFlags:t(()=>Wf,"getEffectiveModifierFlags"),getEffectiveModifierFlagsAlwaysIncludeJSDoc:t(()=>uhe,"getEffectiveModifierFlagsAlwaysIncludeJSDoc"),getEffectiveModifierFlagsNoCache:t(()=>fhe,"getEffectiveModifierFlagsNoCache"),getEffectiveReturnTypeNode:t(()=>jp,"getEffectiveReturnTypeNode"),getEffectiveSetAccessorTypeAnnotationNode:t(()=>pX,"getEffectiveSetAccessorTypeAnnotationNode"),getEffectiveTypeAnnotationNode:t(()=>Rl,"getEffectiveTypeAnnotationNode"),getEffectiveTypeParameterDeclarations:t(()=>bb,"getEffectiveTypeParameterDeclarations"),getEffectiveTypeRoots:t(()=>F3,"getEffectiveTypeRoots"),getElementOrPropertyAccessArgumentExpressionOrName:t(()=>eU,"getElementOrPropertyAccessArgumentExpressionOrName"),getElementOrPropertyAccessName:t(()=>Jy,"getElementOrPropertyAccessName"),getElementsOfBindingOrAssignmentPattern:t(()=>S6,"getElementsOfBindingOrAssignmentPattern"),getEmitDeclarations:t(()=>W_,"getEmitDeclarations"),getEmitFlags:t(()=>Ya,"getEmitFlags"),getEmitHelpers:t(()=>mZ,"getEmitHelpers"),getEmitModuleDetectionKind:t(()=>Fhe,"getEmitModuleDetectionKind"),getEmitModuleFormatOfFileWorker:t(()=>Z3,"getEmitModuleFormatOfFileWorker"),getEmitModuleKind:t(()=>qf,"getEmitModuleKind"),getEmitModuleResolutionKind:t(()=>Cf,"getEmitModuleResolutionKind"),getEmitScriptTarget:t(()=>Ja,"getEmitScriptTarget"),getEmitStandardClassFields:t(()=>RX,"getEmitStandardClassFields"),getEnclosingBlockScopeContainer:t(()=>rh,"getEnclosingBlockScopeContainer"),getEnclosingContainer:t(()=>FB,"getEnclosingContainer"),getEncodedSemanticClassifications:t(()=>Ire,"getEncodedSemanticClassifications"),getEncodedSyntacticClassifications:t(()=>Ore,"getEncodedSyntacticClassifications"),getEndLinePosition:t(()=>sF,"getEndLinePosition"),getEntityNameFromTypeNode:t(()=>yF,"getEntityNameFromTypeNode"),getEntrypointsFromPackageJsonInfo:t(()=>DQ,"getEntrypointsFromPackageJsonInfo"),getErrorCountForSummary:t(()=>M$,"getErrorCountForSummary"),getErrorSpanForNode:t(()=>nC,"getErrorSpanForNode"),getErrorSummaryText:t(()=>Vee,"getErrorSummaryText"),getEscapedTextOfIdentifierOrLiteral:t(()=>j4,"getEscapedTextOfIdentifierOrLiteral"),getEscapedTextOfJsxAttributeName:t(()=>l3,"getEscapedTextOfJsxAttributeName"),getEscapedTextOfJsxNamespacedName:t(()=>Kw,"getEscapedTextOfJsxNamespacedName"),getExpandoInitializer:t(()=>zS,"getExpandoInitializer"),getExportAssignmentExpression:t(()=>GK,"getExportAssignmentExpression"),getExportInfoMap:t(()=>HL,"getExportInfoMap"),getExportNeedsImportStarHelper:t(()=>Wye,"getExportNeedsImportStarHelper"),getExpressionAssociativity:t(()=>tX,"getExpressionAssociativity"),getExpressionPrecedence:t(()=>B4,"getExpressionPrecedence"),getExternalHelpersModuleName:t(()=>O5,"getExternalHelpersModuleName"),getExternalModuleImportEqualsDeclarationExpression:t(()=>P4,"getExternalModuleImportEqualsDeclarationExpression"),getExternalModuleName:t(()=>Iw,"getExternalModuleName"),getExternalModuleNameFromDeclaration:t(()=>Qme,"getExternalModuleNameFromDeclaration"),getExternalModuleNameFromPath:t(()=>cX,"getExternalModuleNameFromPath"),getExternalModuleNameLiteral:t(()=>pD,"getExternalModuleNameLiteral"),getExternalModuleRequireArgument:t(()=>MK,"getExternalModuleRequireArgument"),getFallbackOptions:t(()=>pL,"getFallbackOptions"),getFileEmitOutput:t(()=>q1e,"getFileEmitOutput"),getFileMatcherPatterns:t(()=>BU,"getFileMatcherPatterns"),getFileNamesFromConfigSpecs:t(()=>I3,"getFileNamesFromConfigSpecs"),getFileWatcherEventKind:t(()=>DY,"getFileWatcherEventKind"),getFilesInErrorForSummary:t(()=>j$,"getFilesInErrorForSummary"),getFirstConstructorWithBody:t(()=>U0,"getFirstConstructorWithBody"),getFirstIdentifier:t(()=>s_,"getFirstIdentifier"),getFirstNonSpaceCharacterPosition:t(()=>Rbe,"getFirstNonSpaceCharacterPosition"),getFirstProjectOutput:t(()=>fee,"getFirstProjectOutput"),getFixableErrorSpanExpression:t(()=>Tre,"getFixableErrorSpanExpression"),getFormatCodeSettingsForWriting:t(()=>LJ,"getFormatCodeSettingsForWriting"),getFullWidth:t(()=>nF,"getFullWidth"),getFunctionFlags:t(()=>gl,"getFunctionFlags"),getHeritageClause:t(()=>BF,"getHeritageClause"),getHostSignatureFromJSDoc:t(()=>$S,"getHostSignatureFromJSDoc"),getIdentifierAutoGenerate:t(()=>OFe,"getIdentifierAutoGenerate"),getIdentifierGeneratedImportReference:t(()=>Age,"getIdentifierGeneratedImportReference"),getIdentifierTypeArguments:t(()=>yC,"getIdentifierTypeArguments"),getImmediatelyInvokedFunctionExpression:t(()=>HT,"getImmediatelyInvokedFunctionExpression"),getImpliedNodeFormatForEmitWorker:t(()=>MC,"getImpliedNodeFormatForEmitWorker"),getImpliedNodeFormatForFile:t(()=>mL,"getImpliedNodeFormatForFile"),getImpliedNodeFormatForFileWorker:t(()=>D$,"getImpliedNodeFormatForFileWorker"),getImportNeedsImportDefaultHelper:t(()=>KQ,"getImportNeedsImportDefaultHelper"),getImportNeedsImportStarHelper:t(()=>u$,"getImportNeedsImportStarHelper"),getIndentString:t(()=>lU,"getIndentString"),getInferredLibraryNameResolveFrom:t(()=>w$,"getInferredLibraryNameResolveFrom"),getInitializedVariables:t(()=>H4,"getInitializedVariables"),getInitializerOfBinaryExpression:t(()=>zK,"getInitializerOfBinaryExpression"),getInitializerOfBindingOrAssignmentElement:t(()=>L5,"getInitializerOfBindingOrAssignmentElement"),getInterfaceBaseTypeNodes:t(()=>R4,"getInterfaceBaseTypeNodes"),getInternalEmitFlags:t(()=>Im,"getInternalEmitFlags"),getInvokedExpression:t(()=>VB,"getInvokedExpression"),getIsFileExcluded:t(()=>Xbe,"getIsFileExcluded"),getIsolatedModules:t(()=>um,"getIsolatedModules"),getJSDocAugmentsTag:t(()=>bde,"getJSDocAugmentsTag"),getJSDocClassTag:t(()=>qY,"getJSDocClassTag"),getJSDocCommentRanges:t(()=>IK,"getJSDocCommentRanges"),getJSDocCommentsAndTags:t(()=>$K,"getJSDocCommentsAndTags"),getJSDocDeprecatedTag:t(()=>VY,"getJSDocDeprecatedTag"),getJSDocDeprecatedTagNoCache:t(()=>wde,"getJSDocDeprecatedTagNoCache"),getJSDocEnumTag:t(()=>HY,"getJSDocEnumTag"),getJSDocHost:t(()=>KT,"getJSDocHost"),getJSDocImplementsTags:t(()=>Sde,"getJSDocImplementsTags"),getJSDocOverloadTags:t(()=>WK,"getJSDocOverloadTags"),getJSDocOverrideTagNoCache:t(()=>kde,"getJSDocOverrideTagNoCache"),getJSDocParameterTags:t(()=>CA,"getJSDocParameterTags"),getJSDocParameterTagsNoCache:t(()=>hde,"getJSDocParameterTagsNoCache"),getJSDocPrivateTag:t(()=>A7e,"getJSDocPrivateTag"),getJSDocPrivateTagNoCache:t(()=>xde,"getJSDocPrivateTagNoCache"),getJSDocProtectedTag:t(()=>N7e,"getJSDocProtectedTag"),getJSDocProtectedTagNoCache:t(()=>Ede,"getJSDocProtectedTagNoCache"),getJSDocPublicTag:t(()=>P7e,"getJSDocPublicTag"),getJSDocPublicTagNoCache:t(()=>Tde,"getJSDocPublicTagNoCache"),getJSDocReadonlyTag:t(()=>I7e,"getJSDocReadonlyTag"),getJSDocReadonlyTagNoCache:t(()=>Cde,"getJSDocReadonlyTagNoCache"),getJSDocReturnTag:t(()=>Dde,"getJSDocReturnTag"),getJSDocReturnType:t(()=>W7,"getJSDocReturnType"),getJSDocRoot:t(()=>WA,"getJSDocRoot"),getJSDocSatisfiesExpressionType:t(()=>rZ,"getJSDocSatisfiesExpressionType"),getJSDocSatisfiesTag:t(()=>GY,"getJSDocSatisfiesTag"),getJSDocTags:t(()=>MS,"getJSDocTags"),getJSDocTemplateTag:t(()=>O7e,"getJSDocTemplateTag"),getJSDocThisTag:t(()=>aB,"getJSDocThisTag"),getJSDocType:t(()=>vb,"getJSDocType"),getJSDocTypeAliasName:t(()=>VZ,"getJSDocTypeAliasName"),getJSDocTypeAssertionType:t(()=>v6,"getJSDocTypeAssertionType"),getJSDocTypeParameterDeclarations:t(()=>hU,"getJSDocTypeParameterDeclarations"),getJSDocTypeParameterTags:t(()=>gde,"getJSDocTypeParameterTags"),getJSDocTypeParameterTagsNoCache:t(()=>yde,"getJSDocTypeParameterTagsNoCache"),getJSDocTypeTag:t(()=>RS,"getJSDocTypeTag"),getJSXImplicitImportBase:t(()=>a5,"getJSXImplicitImportBase"),getJSXRuntimeImport:t(()=>RU,"getJSXRuntimeImport"),getJSXTransformEnabled:t(()=>LU,"getJSXTransformEnabled"),getKeyForCompilerOptions:t(()=>xQ,"getKeyForCompilerOptions"),getLanguageVariant:t(()=>e5,"getLanguageVariant"),getLastChild:t(()=>PX,"getLastChild"),getLeadingCommentRanges:t(()=>A0,"getLeadingCommentRanges"),getLeadingCommentRangesOfNode:t(()=>NK,"getLeadingCommentRangesOfNode"),getLeftmostAccessExpression:t(()=>QA,"getLeftmostAccessExpression"),getLeftmostExpression:t(()=>e6,"getLeftmostExpression"),getLibFileNameFromLibReference:t(()=>cZ,"getLibFileNameFromLibReference"),getLibNameFromLibReference:t(()=>oZ,"getLibNameFromLibReference"),getLibraryNameFromLibFileName:t(()=>Dee,"getLibraryNameFromLibFileName"),getLineAndCharacterOfPosition:t(()=>_a,"getLineAndCharacterOfPosition"),getLineInfo:t(()=>HQ,"getLineInfo"),getLineOfLocalPosition:t(()=>z4,"getLineOfLocalPosition"),getLineStartPositionForPosition:t(()=>mm,"getLineStartPositionForPosition"),getLineStarts:t(()=>D0,"getLineStarts"),getLinesBetweenPositionAndNextNonWhitespaceCharacter:t(()=>xhe,"getLinesBetweenPositionAndNextNonWhitespaceCharacter"),getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:t(()=>The,"getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter"),getLinesBetweenPositions:t(()=>a4,"getLinesBetweenPositions"),getLinesBetweenRangeEndAndRangeStart:t(()=>EX,"getLinesBetweenRangeEndAndRangeStart"),getLinesBetweenRangeEndPositions:t(()=>lFe,"getLinesBetweenRangeEndPositions"),getLiteralText:t(()=>ame,"getLiteralText"),getLocalNameForExternalImport:t(()=>b6,"getLocalNameForExternalImport"),getLocalSymbolForExportDefault:t(()=>q4,"getLocalSymbolForExportDefault"),getLocaleSpecificMessage:t(()=>Js,"getLocaleSpecificMessage"),getLocaleTimeString:t(()=>bL,"getLocaleTimeString"),getMappedContextSpan:t(()=>cre,"getMappedContextSpan"),getMappedDocumentSpan:t(()=>TJ,"getMappedDocumentSpan"),getMappedLocation:t(()=>c8,"getMappedLocation"),getMatchedFileSpec:t(()=>Kee,"getMatchedFileSpec"),getMatchedIncludeSpec:t(()=>Xee,"getMatchedIncludeSpec"),getMeaningFromDeclaration:t(()=>tJ,"getMeaningFromDeclaration"),getMeaningFromLocation:t(()=>jC,"getMeaningFromLocation"),getMembersOfDeclaration:t(()=>Tme,"getMembersOfDeclaration"),getModeForFileReference:t(()=>z1e,"getModeForFileReference"),getModeForResolutionAtIndex:t(()=>VRe,"getModeForResolutionAtIndex"),getModeForUsageLocation:t(()=>kee,"getModeForUsageLocation"),getModifiedTime:t(()=>pw,"getModifiedTime"),getModifiers:t(()=>jT,"getModifiers"),getModuleInstanceState:t(()=>Qy,"getModuleInstanceState"),getModuleNameStringLiteralAt:t(()=>gL,"getModuleNameStringLiteralAt"),getModuleSpecifierEndingPreference:t(()=>Hhe,"getModuleSpecifierEndingPreference"),getModuleSpecifierResolverHost:t(()=>Qte,"getModuleSpecifierResolverHost"),getNameForExportedSymbol:t(()=>IJ,"getNameForExportedSymbol"),getNameFromImportAttribute:t(()=>QU,"getNameFromImportAttribute"),getNameFromIndexInfo:t(()=>dme,"getNameFromIndexInfo"),getNameFromPropertyName:t(()=>LL,"getNameFromPropertyName"),getNameOfAccessExpression:t(()=>NX,"getNameOfAccessExpression"),getNameOfCompilerOptionValue:t(()=>mQ,"getNameOfCompilerOptionValue"),getNameOfDeclaration:t(()=>Ls,"getNameOfDeclaration"),getNameOfExpando:t(()=>jK,"getNameOfExpando"),getNameOfJSDocTypedef:t(()=>mde,"getNameOfJSDocTypedef"),getNameOfScriptTarget:t(()=>OU,"getNameOfScriptTarget"),getNameOrArgument:t(()=>wF,"getNameOrArgument"),getNameTable:t(()=>mne,"getNameTable"),getNamespaceDeclarationNode:t(()=>$A,"getNamespaceDeclarationNode"),getNewLineCharacter:t(()=>Z1,"getNewLineCharacter"),getNewLineKind:t(()=>VL,"getNewLineKind"),getNewLineOrDefaultFromHost:t(()=>t1,"getNewLineOrDefaultFromHost"),getNewTargetContainer:t(()=>Nme,"getNewTargetContainer"),getNextJSDocCommentLocation:t(()=>JK,"getNextJSDocCommentLocation"),getNodeChildren:t(()=>MZ,"getNodeChildren"),getNodeForGeneratedName:t(()=>M5,"getNodeForGeneratedName"),getNodeId:t(()=>so,"getNodeId"),getNodeKind:t(()=>Cx,"getNodeKind"),getNodeModifiers:t(()=>s8,"getNodeModifiers"),getNodeModulePathParts:t(()=>KU,"getNodeModulePathParts"),getNonAssignedNameOfDeclaration:t(()=>iB,"getNonAssignedNameOfDeclaration"),getNonAssignmentOperatorForCompoundAssignment:t(()=>$3,"getNonAssignmentOperatorForCompoundAssignment"),getNonAugmentationDeclaration:t(()=>EK,"getNonAugmentationDeclaration"),getNonDecoratorTokenPosOfNode:t(()=>yK,"getNonDecoratorTokenPosOfNode"),getNonIncrementalBuildInfoRoots:t(()=>ave,"getNonIncrementalBuildInfoRoots"),getNonModifierTokenPosOfNode:t(()=>ime,"getNonModifierTokenPosOfNode"),getNormalizedAbsolutePath:t(()=>bs,"getNormalizedAbsolutePath"),getNormalizedAbsolutePathWithoutRoot:t(()=>IY,"getNormalizedAbsolutePathWithoutRoot"),getNormalizedPathComponents:t(()=>Kj,"getNormalizedPathComponents"),getObjectFlags:t(()=>Gn,"getObjectFlags"),getOperatorAssociativity:t(()=>rX,"getOperatorAssociativity"),getOperatorPrecedence:t(()=>$F,"getOperatorPrecedence"),getOptionFromName:t(()=>lQ,"getOptionFromName"),getOptionsForLibraryResolution:t(()=>EQ,"getOptionsForLibraryResolution"),getOptionsNameMap:t(()=>E6,"getOptionsNameMap"),getOptionsSyntaxByArrayElementValue:t(()=>uZ,"getOptionsSyntaxByArrayElementValue"),getOptionsSyntaxByValue:t(()=>mge,"getOptionsSyntaxByValue"),getOrCreateEmitNode:t(()=>pf,"getOrCreateEmitNode"),getOrUpdate:t(()=>JE,"getOrUpdate"),getOriginalNode:t(()=>Sc,"getOriginalNode"),getOriginalNodeId:t(()=>u_,"getOriginalNodeId"),getOutputDeclarationFileName:t(()=>O6,"getOutputDeclarationFileName"),getOutputDeclarationFileNameWorker:t(()=>lee,"getOutputDeclarationFileNameWorker"),getOutputExtension:t(()=>uL,"getOutputExtension"),getOutputFileNames:t(()=>jRe,"getOutputFileNames"),getOutputJSFileNameWorker:t(()=>uee,"getOutputJSFileNameWorker"),getOutputPathsFor:t(()=>H3,"getOutputPathsFor"),getOwnEmitOutputFilePath:t(()=>ehe,"getOwnEmitOutputFilePath"),getOwnKeys:t(()=>Rh,"getOwnKeys"),getOwnValues:t(()=>lw,"getOwnValues"),getPackageJsonTypesVersionsPaths:t(()=>Xz,"getPackageJsonTypesVersionsPaths"),getPackageNameFromTypesPackageName:t(()=>j3,"getPackageNameFromTypesPackageName"),getPackageScopeForPath:t(()=>M3,"getPackageScopeForPath"),getParameterSymbolFromJSDoc:t(()=>LF,"getParameterSymbolFromJSDoc"),getParentNodeInSpan:t(()=>ML,"getParentNodeInSpan"),getParseTreeNode:t(()=>zs,"getParseTreeNode"),getParsedCommandLineOfConfigFile:t(()=>J5,"getParsedCommandLineOfConfigFile"),getPathComponents:t(()=>uf,"getPathComponents"),getPathFromPathComponents:t(()=>FS,"getPathFromPathComponents"),getPathUpdater:t(()=>Rre,"getPathUpdater"),getPathsBasePath:t(()=>_U,"getPathsBasePath"),getPatternFromSpec:t(()=>zX,"getPatternFromSpec"),getPendingEmitKindWithSeen:t(()=>O$,"getPendingEmitKindWithSeen"),getPositionOfLineAndCharacter:t(()=>O7,"getPositionOfLineAndCharacter"),getPossibleGenericSignatures:t(()=>$te,"getPossibleGenericSignatures"),getPossibleOriginalInputExtensionForExtension:t(()=>lX,"getPossibleOriginalInputExtensionForExtension"),getPossibleOriginalInputPathWithoutChangingExt:t(()=>uX,"getPossibleOriginalInputPathWithoutChangingExt"),getPossibleTypeArgumentsInfo:t(()=>Jte,"getPossibleTypeArgumentsInfo"),getPreEmitDiagnostics:t(()=>BRe,"getPreEmitDiagnostics"),getPrecedingNonSpaceCharacterPosition:t(()=>xJ,"getPrecedingNonSpaceCharacterPosition"),getPrivateIdentifier:t(()=>eee,"getPrivateIdentifier"),getProperties:t(()=>ZQ,"getProperties"),getProperty:t(()=>Lj,"getProperty"),getPropertyAssignmentAliasLikeExpression:t(()=>Hme,"getPropertyAssignmentAliasLikeExpression"),getPropertyNameForPropertyNameNode:t(()=>fC,"getPropertyNameForPropertyNameNode"),getPropertyNameFromType:t(()=>Rd,"getPropertyNameFromType"),getPropertyNameOfBindingOrAssignmentElement:t(()=>qZ,"getPropertyNameOfBindingOrAssignmentElement"),getPropertySymbolFromBindingElement:t(()=>SJ,"getPropertySymbolFromBindingElement"),getPropertySymbolsFromContextualType:t(()=>nW,"getPropertySymbolsFromContextualType"),getQuoteFromPreference:t(()=>tre,"getQuoteFromPreference"),getQuotePreference:t(()=>gp,"getQuotePreference"),getRangesWhere:t(()=>zG,"getRangesWhere"),getRefactorContextSpan:t(()=>DD,"getRefactorContextSpan"),getReferencedFileLocation:t(()=>X3,"getReferencedFileLocation"),getRegexFromPattern:t(()=>Q1,"getRegexFromPattern"),getRegularExpressionForWildcard:t(()=>Z4,"getRegularExpressionForWildcard"),getRegularExpressionsForWildcards:t(()=>MU,"getRegularExpressionsForWildcards"),getRelativePathFromDirectory:t(()=>td,"getRelativePathFromDirectory"),getRelativePathFromFile:t(()=>SA,"getRelativePathFromFile"),getRelativePathToDirectoryOrUrl:t(()=>hw,"getRelativePathToDirectoryOrUrl"),getRenameLocation:t(()=>UL,"getRenameLocation"),getReplacementSpanForContextToken:t(()=>Hte,"getReplacementSpanForContextToken"),getResolutionDiagnostic:t(()=>Iee,"getResolutionDiagnostic"),getResolutionModeOverride:t(()=>F6,"getResolutionModeOverride"),getResolveJsonModule:t(()=>ix,"getResolveJsonModule"),getResolvePackageJsonExports:t(()=>r5,"getResolvePackageJsonExports"),getResolvePackageJsonImports:t(()=>n5,"getResolvePackageJsonImports"),getResolvedExternalModuleName:t(()=>oX,"getResolvedExternalModuleName"),getResolvedModuleFromResolution:t(()=>kw,"getResolvedModuleFromResolution"),getResolvedTypeReferenceDirectiveFromResolution:t(()=>kB,"getResolvedTypeReferenceDirectiveFromResolution"),getRestIndicatorOfBindingOrAssignmentElement:t(()=>Pz,"getRestIndicatorOfBindingOrAssignmentElement"),getRestParameterElementType:t(()=>OK,"getRestParameterElementType"),getRightMostAssignedExpression:t(()=>kF,"getRightMostAssignedExpression"),getRootDeclaration:t(()=>Vh,"getRootDeclaration"),getRootDirectoryOfResolutionCache:t(()=>_ve,"getRootDirectoryOfResolutionCache"),getRootLength:t(()=>Qm,"getRootLength"),getScriptKind:t(()=>_re,"getScriptKind"),getScriptKindFromFileName:t(()=>zU,"getScriptKindFromFileName"),getScriptTargetFeatures:t(()=>vK,"getScriptTargetFeatures"),getSelectedEffectiveModifierFlags:t(()=>jw,"getSelectedEffectiveModifierFlags"),getSelectedSyntacticModifierFlags:t(()=>che,"getSelectedSyntacticModifierFlags"),getSemanticClassifications:t(()=>Zbe,"getSemanticClassifications"),getSemanticJsxChildren:t(()=>HA,"getSemanticJsxChildren"),getSetAccessorTypeAnnotationNode:t(()=>nhe,"getSetAccessorTypeAnnotationNode"),getSetAccessorValueParameter:t(()=>$4,"getSetAccessorValueParameter"),getSetExternalModuleIndicator:t(()=>t5,"getSetExternalModuleIndicator"),getShebang:t(()=>rB,"getShebang"),getSingleVariableOfVariableStatement:t(()=>Lw,"getSingleVariableOfVariableStatement"),getSnapshotText:t(()=>wD,"getSnapshotText"),getSnippetElement:t(()=>hZ,"getSnippetElement"),getSourceFileOfModule:t(()=>iF,"getSourceFileOfModule"),getSourceFileOfNode:t(()=>Hr,"getSourceFileOfNode"),getSourceFilePathInNewDir:t(()=>dU,"getSourceFilePathInNewDir"),getSourceFileVersionAsHashFromText:t(()=>U$,"getSourceFileVersionAsHashFromText"),getSourceFilesToEmit:t(()=>pU,"getSourceFilesToEmit"),getSourceMapRange:t(()=>tv,"getSourceMapRange"),getSourceMapper:t(()=>dSe,"getSourceMapper"),getSourceTextOfNodeFromSourceFile:t(()=>JT,"getSourceTextOfNodeFromSourceFile"),getSpanOfTokenAtPosition:t(()=>zh,"getSpanOfTokenAtPosition"),getSpellingSuggestion:t(()=>MT,"getSpellingSuggestion"),getStartPositionOfLine:t(()=>wb,"getStartPositionOfLine"),getStartPositionOfRange:t(()=>V4,"getStartPositionOfRange"),getStartsOnNewLine:t(()=>_3,"getStartsOnNewLine"),getStaticPropertiesAndClassStaticBlock:t(()=>p$,"getStaticPropertiesAndClassStaticBlock"),getStrictOptionValue:t(()=>_f,"getStrictOptionValue"),getStringComparer:t(()=>hA,"getStringComparer"),getSubPatternFromSpec:t(()=>jU,"getSubPatternFromSpec"),getSuperCallFromStatement:t(()=>f$,"getSuperCallFromStatement"),getSuperContainer:t(()=>hF,"getSuperContainer"),getSupportedCodeFixes:t(()=>pne,"getSupportedCodeFixes"),getSupportedExtensions:t(()=>Q4,"getSupportedExtensions"),getSupportedExtensionsWithJsonIfResolveJsonModule:t(()=>c5,"getSupportedExtensionsWithJsonIfResolveJsonModule"),getSwitchedType:t(()=>gre,"getSwitchedType"),getSymbolId:t(()=>Da,"getSymbolId"),getSymbolNameForPrivateIdentifier:t(()=>UF,"getSymbolNameForPrivateIdentifier"),getSymbolTarget:t(()=>pre,"getSymbolTarget"),getSyntacticClassifications:t(()=>Qbe,"getSyntacticClassifications"),getSyntacticModifierFlags:t(()=>K1,"getSyntacticModifierFlags"),getSyntacticModifierFlagsNoCache:t(()=>hX,"getSyntacticModifierFlagsNoCache"),getSynthesizedDeepClone:t(()=>yo,"getSynthesizedDeepClone"),getSynthesizedDeepCloneWithReplacements:t(()=>BL,"getSynthesizedDeepCloneWithReplacements"),getSynthesizedDeepClones:t(()=>wx,"getSynthesizedDeepClones"),getSynthesizedDeepClonesWithReplacements:t(()=>dre,"getSynthesizedDeepClonesWithReplacements"),getSyntheticLeadingComments:t(()=>a6,"getSyntheticLeadingComments"),getSyntheticTrailingComments:t(()=>b5,"getSyntheticTrailingComments"),getTargetLabel:t(()=>iJ,"getTargetLabel"),getTargetOfBindingOrAssignmentElement:t(()=>Wb,"getTargetOfBindingOrAssignmentElement"),getTemporaryModuleResolutionState:t(()=>R3,"getTemporaryModuleResolutionState"),getTextOfConstantValue:t(()=>ome,"getTextOfConstantValue"),getTextOfIdentifierOrLiteral:t(()=>Nd,"getTextOfIdentifierOrLiteral"),getTextOfJSDocComment:t(()=>q7,"getTextOfJSDocComment"),getTextOfJsxAttributeName:t(()=>d5,"getTextOfJsxAttributeName"),getTextOfJsxNamespacedName:t(()=>u3,"getTextOfJsxNamespacedName"),getTextOfNode:t(()=>Cc,"getTextOfNode"),getTextOfNodeFromSourceText:t(()=>x4,"getTextOfNodeFromSourceText"),getTextOfPropertyName:t(()=>Pw,"getTextOfPropertyName"),getThisContainer:t(()=>Jf,"getThisContainer"),getThisParameter:t(()=>ex,"getThisParameter"),getTokenAtPosition:t(()=>ji,"getTokenAtPosition"),getTokenPosOfNode:t(()=>Db,"getTokenPosOfNode"),getTokenSourceMapRange:t(()=>NFe,"getTokenSourceMapRange"),getTouchingPropertyName:t(()=>N_,"getTouchingPropertyName"),getTouchingToken:t(()=>J6,"getTouchingToken"),getTrailingCommentRanges:t(()=>gb,"getTrailingCommentRanges"),getTrailingSemicolonDeferringWriter:t(()=>aX,"getTrailingSemicolonDeferringWriter"),getTransformers:t(()=>C1e,"getTransformers"),getTsBuildInfoEmitOutputFilePath:t(()=>u2,"getTsBuildInfoEmitOutputFilePath"),getTsConfigObjectLiteralExpression:t(()=>w4,"getTsConfigObjectLiteralExpression"),getTsConfigPropArrayElementValue:t(()=>zB,"getTsConfigPropArrayElementValue"),getTypeAnnotationNode:t(()=>ihe,"getTypeAnnotationNode"),getTypeArgumentOrTypeParameterList:t(()=>vbe,"getTypeArgumentOrTypeParameterList"),getTypeKeywordOfTypeOnlyImport:t(()=>ire,"getTypeKeywordOfTypeOnlyImport"),getTypeNode:t(()=>Dge,"getTypeNode"),getTypeNodeIfAccessible:t(()=>p8,"getTypeNodeIfAccessible"),getTypeParameterFromJsDoc:t(()=>zme,"getTypeParameterFromJsDoc"),getTypeParameterOwner:t(()=>C7e,"getTypeParameterOwner"),getTypesPackageName:t(()=>i$,"getTypesPackageName"),getUILocale:t(()=>b_e,"getUILocale"),getUniqueName:t(()=>zC,"getUniqueName"),getUniqueSymbolId:t(()=>Lbe,"getUniqueSymbolId"),getUseDefineForClassFields:t(()=>i5,"getUseDefineForClassFields"),getWatchErrorSummaryDiagnosticMessage:t(()=>qee,"getWatchErrorSummaryDiagnosticMessage"),getWatchFactory:t(()=>yee,"getWatchFactory"),group:t(()=>mA,"group"),groupBy:t(()=>GG,"groupBy"),guessIndentation:t(()=>Gde,"guessIndentation"),handleNoEmitOptions:t(()=>Nee,"handleNoEmitOptions"),handleWatchOptionsConfigDirTemplateSubstitution:t(()=>qz,"handleWatchOptionsConfigDirTemplateSubstitution"),hasAbstractModifier:t(()=>nx,"hasAbstractModifier"),hasAccessorModifier:t(()=>Hh,"hasAccessorModifier"),hasAmbientModifier:t(()=>mX,"hasAmbientModifier"),hasChangesInResolutions:t(()=>mK,"hasChangesInResolutions"),hasContextSensitiveParameters:t(()=>GU,"hasContextSensitiveParameters"),hasDecorators:t(()=>id,"hasDecorators"),hasDocComment:t(()=>gbe,"hasDocComment"),hasDynamicName:t(()=>Wy,"hasDynamicName"),hasEffectiveModifier:t(()=>_p,"hasEffectiveModifier"),hasEffectiveModifiers:t(()=>dX,"hasEffectiveModifiers"),hasEffectiveReadonlyModifier:t(()=>pC,"hasEffectiveReadonlyModifier"),hasExtension:t(()=>bA,"hasExtension"),hasImplementationTSFileExtension:t(()=>qhe,"hasImplementationTSFileExtension"),hasIndexSignature:t(()=>hre,"hasIndexSignature"),hasInferredType:t(()=>tz,"hasInferredType"),hasInitializer:t(()=>H1,"hasInitializer"),hasInvalidEscape:t(()=>iX,"hasInvalidEscape"),hasJSDocNodes:t(()=>Rp,"hasJSDocNodes"),hasJSDocParameterTags:t(()=>vde,"hasJSDocParameterTags"),hasJSFileExtension:t(()=>W0,"hasJSFileExtension"),hasJsonModuleEmitEnabled:t(()=>IU,"hasJsonModuleEmitEnabled"),hasOnlyExpressionInitializer:t(()=>tC,"hasOnlyExpressionInitializer"),hasOverrideModifier:t(()=>gU,"hasOverrideModifier"),hasPossibleExternalModuleReference:t(()=>_me,"hasPossibleExternalModuleReference"),hasProperty:t(()=>Ro,"hasProperty"),hasPropertyAccessExpressionWithName:t(()=>wL,"hasPropertyAccessExpressionWithName"),hasQuestionToken:t(()=>Ow,"hasQuestionToken"),hasRecordedExternalHelpers:t(()=>m0e,"hasRecordedExternalHelpers"),hasResolutionModeOverride:t(()=>cge,"hasResolutionModeOverride"),hasRestParameter:t(()=>uK,"hasRestParameter"),hasScopeMarker:t(()=>Bde,"hasScopeMarker"),hasStaticModifier:t(()=>Hl,"hasStaticModifier"),hasSyntacticModifier:t(()=>di,"hasSyntacticModifier"),hasSyntacticModifiers:t(()=>ohe,"hasSyntacticModifiers"),hasTSFileExtension:t(()=>mC,"hasTSFileExtension"),hasTabstop:t(()=>sge,"hasTabstop"),hasTrailingDirectorySeparator:t(()=>mb,"hasTrailingDirectorySeparator"),hasType:t(()=>SB,"hasType"),hasTypeArguments:t(()=>Q7e,"hasTypeArguments"),hasZeroOrOneAsteriskCharacter:t(()=>MX,"hasZeroOrOneAsteriskCharacter"),hostGetCanonicalFileName:t(()=>qy,"hostGetCanonicalFileName"),hostUsesCaseSensitiveFileNames:t(()=>_C,"hostUsesCaseSensitiveFileNames"),idText:t(()=>Xn,"idText"),identifierIsThisKeyword:t(()=>_X,"identifierIsThisKeyword"),identifierToKeywordKind:t(()=>YE,"identifierToKeywordKind"),identity:t(()=>qo,"identity"),identitySourceMapConsumer:t(()=>YQ,"identitySourceMapConsumer"),ignoreSourceNewlines:t(()=>yZ,"ignoreSourceNewlines"),ignoredPaths:t(()=>Hj,"ignoredPaths"),importFromModuleSpecifier:t(()=>I4,"importFromModuleSpecifier"),importSyntaxAffectsModuleResolution:t(()=>LX,"importSyntaxAffectsModuleResolution"),indexOfAnyCharCode:t(()=>bf,"indexOfAnyCharCode"),indexOfNode:t(()=>OA,"indexOfNode"),indicesOf:t(()=>Fj,"indicesOf"),inferredTypesContainingFile:t(()=>K3,"inferredTypesContainingFile"),injectClassNamedEvaluationHelperBlockIfMissing:t(()=>g$,"injectClassNamedEvaluationHelperBlockIfMissing"),injectClassThisAssignmentIfMissing:t(()=>Zye,"injectClassThisAssignmentIfMissing"),insertImports:t(()=>nre,"insertImports"),insertSorted:t(()=>ob,"insertSorted"),insertStatementAfterCustomPrologue:t(()=>rC,"insertStatementAfterCustomPrologue"),insertStatementAfterStandardPrologue:t(()=>V7e,"insertStatementAfterStandardPrologue"),insertStatementsAfterCustomPrologue:t(()=>hK,"insertStatementsAfterCustomPrologue"),insertStatementsAfterStandardPrologue:t(()=>R0,"insertStatementsAfterStandardPrologue"),intersperse:t(()=>Jn,"intersperse"),intrinsicTagNameToString:t(()=>nZ,"intrinsicTagNameToString"),introducesArgumentsExoticObject:t(()=>Cme,"introducesArgumentsExoticObject"),inverseJsxOptionMap:t(()=>z5,"inverseJsxOptionMap"),isAbstractConstructorSymbol:t(()=>Ehe,"isAbstractConstructorSymbol"),isAbstractModifier:t(()=>Uge,"isAbstractModifier"),isAccessExpression:t(()=>Zo,"isAccessExpression"),isAccessibilityModifier:t(()=>qte,"isAccessibilityModifier"),isAccessor:t(()=>Eb,"isAccessor"),isAccessorModifier:t(()=>$ge,"isAccessorModifier"),isAliasableExpression:t(()=>rU,"isAliasableExpression"),isAmbientModule:t(()=>$f,"isAmbientModule"),isAmbientPropertyDeclaration:t(()=>kK,"isAmbientPropertyDeclaration"),isAnyDirectorySeparator:t(()=>PY,"isAnyDirectorySeparator"),isAnyImportOrBareOrAccessedRequire:t(()=>ume,"isAnyImportOrBareOrAccessedRequire"),isAnyImportOrReExport:t(()=>cF,"isAnyImportOrReExport"),isAnyImportOrRequireStatement:t(()=>fme,"isAnyImportOrRequireStatement"),isAnyImportSyntax:t(()=>Dw,"isAnyImportSyntax"),isAnySupportedFileExtension:t(()=>xFe,"isAnySupportedFileExtension"),isApplicableVersionedTypesKey:t(()=>X5,"isApplicableVersionedTypesKey"),isArgumentExpressionOfElementAccess:t(()=>Fte,"isArgumentExpressionOfElementAccess"),isArray:t(()=>Bs,"isArray"),isArrayBindingElement:t(()=>mB,"isArrayBindingElement"),isArrayBindingOrAssignmentElement:t(()=>X7,"isArrayBindingOrAssignmentElement"),isArrayBindingOrAssignmentPattern:t(()=>iK,"isArrayBindingOrAssignmentPattern"),isArrayBindingPattern:t(()=>sv,"isArrayBindingPattern"),isArrayLiteralExpression:t(()=>Xu,"isArrayLiteralExpression"),isArrayLiteralOrObjectLiteralDestructuringPattern:t(()=>lv,"isArrayLiteralOrObjectLiteralDestructuringPattern"),isArrayTypeNode:t(()=>C5,"isArrayTypeNode"),isArrowFunction:t(()=>Qo,"isArrowFunction"),isAsExpression:t(()=>u6,"isAsExpression"),isAssertClause:t(()=>Yge,"isAssertClause"),isAssertEntry:t(()=>$Fe,"isAssertEntry"),isAssertionExpression:t(()=>$T,"isAssertionExpression"),isAssertsKeyword:t(()=>jge,"isAssertsKeyword"),isAssignmentDeclaration:t(()=>A4,"isAssignmentDeclaration"),isAssignmentExpression:t(()=>Su,"isAssignmentExpression"),isAssignmentOperator:t(()=>Vy,"isAssignmentOperator"),isAssignmentPattern:t(()=>v4,"isAssignmentPattern"),isAssignmentTarget:t(()=>Ib,"isAssignmentTarget"),isAsteriskToken:t(()=>T5,"isAsteriskToken"),isAsyncFunction:t(()=>M4,"isAsyncFunction"),isAsyncModifier:t(()=>h3,"isAsyncModifier"),isAutoAccessorPropertyDeclaration:t(()=>E_,"isAutoAccessorPropertyDeclaration"),isAwaitExpression:t(()=>$b,"isAwaitExpression"),isAwaitKeyword:t(()=>xZ,"isAwaitKeyword"),isBigIntLiteral:t(()=>m3,"isBigIntLiteral"),isBinaryExpression:t(()=>Fn,"isBinaryExpression"),isBinaryLogicalOperator:t(()=>HF,"isBinaryLogicalOperator"),isBinaryOperatorToken:t(()=>x0e,"isBinaryOperatorToken"),isBindableObjectDefinePropertyCall:t(()=>oC,"isBindableObjectDefinePropertyCall"),isBindableStaticAccessExpression:t(()=>YT,"isBindableStaticAccessExpression"),isBindableStaticElementAccessExpression:t(()=>QB,"isBindableStaticElementAccessExpression"),isBindableStaticNameExpression:t(()=>cC,"isBindableStaticNameExpression"),isBindingElement:t(()=>qa,"isBindingElement"),isBindingElementOfBareOrAccessedRequire:t(()=>Fme,"isBindingElementOfBareOrAccessedRequire"),isBindingName:t(()=>QE,"isBindingName"),isBindingOrAssignmentElement:t(()=>Lde,"isBindingOrAssignmentElement"),isBindingOrAssignmentPattern:t(()=>Y7,"isBindingOrAssignmentPattern"),isBindingPattern:t(()=>ra,"isBindingPattern"),isBlock:t(()=>Zs,"isBlock"),isBlockLike:t(()=>PD,"isBlockLike"),isBlockOrCatchScoped:t(()=>bK,"isBlockOrCatchScoped"),isBlockScope:t(()=>wK,"isBlockScope"),isBlockScopedContainerTopLevel:t(()=>lme,"isBlockScopedContainerTopLevel"),isBooleanLiteral:t(()=>y4,"isBooleanLiteral"),isBreakOrContinueStatement:t(()=>d4,"isBreakOrContinueStatement"),isBreakStatement:t(()=>BFe,"isBreakStatement"),isBuildCommand:t(()=>Fve,"isBuildCommand"),isBuildInfoFile:t(()=>k1e,"isBuildInfoFile"),isBuilderProgram:t(()=>Hee,"isBuilderProgram"),isBundle:t(()=>Qge,"isBundle"),isCallChain:t(()=>KE,"isCallChain"),isCallExpression:t(()=>la,"isCallExpression"),isCallExpressionTarget:t(()=>Dte,"isCallExpressionTarget"),isCallLikeExpression:t(()=>zT,"isCallLikeExpression"),isCallLikeOrFunctionLikeExpression:t(()=>sK,"isCallLikeOrFunctionLikeExpression"),isCallOrNewExpression:t(()=>Bh,"isCallOrNewExpression"),isCallOrNewExpressionTarget:t(()=>Pte,"isCallOrNewExpressionTarget"),isCallSignatureDeclaration:t(()=>iD,"isCallSignatureDeclaration"),isCallToHelper:t(()=>d3,"isCallToHelper"),isCaseBlock:t(()=>x3,"isCaseBlock"),isCaseClause:t(()=>d6,"isCaseClause"),isCaseKeyword:t(()=>Jge,"isCaseKeyword"),isCaseOrDefaultClause:t(()=>vB,"isCaseOrDefaultClause"),isCatchClause:t(()=>hx,"isCatchClause"),isCatchClauseVariableDeclaration:t(()=>ige,"isCatchClauseVariableDeclaration"),isCatchClauseVariableDeclarationOrBindingElement:t(()=>SK,"isCatchClauseVariableDeclarationOrBindingElement"),isCheckJsEnabledForFile:t(()=>r3,"isCheckJsEnabledForFile"),isCircularBuildOrder:t(()=>CD,"isCircularBuildOrder"),isClassDeclaration:t(()=>Bl,"isClassDeclaration"),isClassElement:t(()=>xl,"isClassElement"),isClassExpression:t(()=>jl,"isClassExpression"),isClassInstanceProperty:t(()=>Ode,"isClassInstanceProperty"),isClassLike:t(()=>yi,"isClassLike"),isClassMemberModifier:t(()=>tK,"isClassMemberModifier"),isClassNamedEvaluationHelperBlock:t(()=>TD,"isClassNamedEvaluationHelperBlock"),isClassOrTypeElement:t(()=>dB,"isClassOrTypeElement"),isClassStaticBlockDeclaration:t(()=>Xc,"isClassStaticBlockDeclaration"),isClassThisAssignmentBlock:t(()=>W3,"isClassThisAssignmentBlock"),isColonToken:t(()=>Rge,"isColonToken"),isCommaExpression:t(()=>I5,"isCommaExpression"),isCommaListExpression:t(()=>S3,"isCommaListExpression"),isCommaSequence:t(()=>D3,"isCommaSequence"),isCommaToken:t(()=>Lge,"isCommaToken"),isComment:t(()=>dJ,"isComment"),isCommonJsExportPropertyAssignment:t(()=>BB,"isCommonJsExportPropertyAssignment"),isCommonJsExportedExpression:t(()=>xme,"isCommonJsExportedExpression"),isCompoundAssignment:t(()=>z3,"isCompoundAssignment"),isComputedNonLiteralName:t(()=>lF,"isComputedNonLiteralName"),isComputedPropertyName:t(()=>Ia,"isComputedPropertyName"),isConciseBody:t(()=>gB,"isConciseBody"),isConditionalExpression:t(()=>xC,"isConditionalExpression"),isConditionalTypeNode:t(()=>ux,"isConditionalTypeNode"),isConstAssertion:t(()=>iZ,"isConstAssertion"),isConstTypeReference:t(()=>Am,"isConstTypeReference"),isConstructSignatureDeclaration:t(()=>E5,"isConstructSignatureDeclaration"),isConstructorDeclaration:t(()=>wc,"isConstructorDeclaration"),isConstructorTypeNode:t(()=>o6,"isConstructorTypeNode"),isContextualKeyword:t(()=>iU,"isContextualKeyword"),isContinueStatement:t(()=>jFe,"isContinueStatement"),isCustomPrologue:t(()=>dF,"isCustomPrologue"),isDebuggerStatement:t(()=>UFe,"isDebuggerStatement"),isDeclaration:t(()=>gu,"isDeclaration"),isDeclarationBindingElement:t(()=>G7,"isDeclarationBindingElement"),isDeclarationFileName:t(()=>uu,"isDeclarationFileName"),isDeclarationName:t(()=>Gg,"isDeclarationName"),isDeclarationNameOfEnumOrNamespace:t(()=>kX,"isDeclarationNameOfEnumOrNamespace"),isDeclarationReadonly:t(()=>fF,"isDeclarationReadonly"),isDeclarationStatement:t(()=>Jde,"isDeclarationStatement"),isDeclarationWithTypeParameterChildren:t(()=>PK,"isDeclarationWithTypeParameterChildren"),isDeclarationWithTypeParameters:t(()=>DK,"isDeclarationWithTypeParameters"),isDecorator:t(()=>ou,"isDecorator"),isDecoratorTarget:t(()=>abe,"isDecoratorTarget"),isDefaultClause:t(()=>E3,"isDefaultClause"),isDefaultImport:t(()=>lC,"isDefaultImport"),isDefaultModifier:t(()=>pz,"isDefaultModifier"),isDefaultedExpandoInitializer:t(()=>Lme,"isDefaultedExpandoInitializer"),isDeleteExpression:t(()=>qge,"isDeleteExpression"),isDeleteTarget:t(()=>VK,"isDeleteTarget"),isDeprecatedDeclaration:t(()=>OJ,"isDeprecatedDeclaration"),isDestructuringAssignment:t(()=>X1,"isDestructuringAssignment"),isDiskPathRoot:t(()=>AY,"isDiskPathRoot"),isDoStatement:t(()=>MFe,"isDoStatement"),isDocumentRegistryEntry:t(()=>GL,"isDocumentRegistryEntry"),isDotDotDotToken:t(()=>fz,"isDotDotDotToken"),isDottedName:t(()=>YF,"isDottedName"),isDynamicName:t(()=>aU,"isDynamicName"),isEffectiveExternalModule:t(()=>FA,"isEffectiveExternalModule"),isEffectiveStrictModeSourceFile:t(()=>CK,"isEffectiveStrictModeSourceFile"),isElementAccessChain:t(()=>YY,"isElementAccessChain"),isElementAccessExpression:t(()=>$o,"isElementAccessExpression"),isEmittedFileOfProgram:t(()=>O1e,"isEmittedFileOfProgram"),isEmptyArrayLiteral:t(()=>mhe,"isEmptyArrayLiteral"),isEmptyBindingElement:t(()=>_de,"isEmptyBindingElement"),isEmptyBindingPattern:t(()=>fde,"isEmptyBindingPattern"),isEmptyObjectLiteral:t(()=>SX,"isEmptyObjectLiteral"),isEmptyStatement:t(()=>kZ,"isEmptyStatement"),isEmptyStringLiteral:t(()=>RK,"isEmptyStringLiteral"),isEntityName:t(()=>n_,"isEntityName"),isEntityNameExpression:t(()=>No,"isEntityNameExpression"),isEnumConst:t(()=>BS,"isEnumConst"),isEnumDeclaration:t(()=>px,"isEnumDeclaration"),isEnumMember:t(()=>av,"isEnumMember"),isEqualityOperatorKind:t(()=>kJ,"isEqualityOperatorKind"),isEqualsGreaterThanToken:t(()=>Mge,"isEqualsGreaterThanToken"),isExclamationToken:t(()=>x5,"isExclamationToken"),isExcludedFile:t(()=>eye,"isExcludedFile"),isExclusivelyTypeOnlyImportOrExport:t(()=>Cee,"isExclusivelyTypeOnlyImportOrExport"),isExpandoPropertyDeclaration:t(()=>Xw,"isExpandoPropertyDeclaration"),isExportAssignment:t(()=>lc,"isExportAssignment"),isExportDeclaration:t(()=>yl,"isExportDeclaration"),isExportModifier:t(()=>rD,"isExportModifier"),isExportName:t(()=>wz,"isExportName"),isExportNamespaceAsDefaultDeclaration:t(()=>NB,"isExportNamespaceAsDefaultDeclaration"),isExportOrDefaultModifier:t(()=>R5,"isExportOrDefaultModifier"),isExportSpecifier:t(()=>kf,"isExportSpecifier"),isExportsIdentifier:t(()=>aC,"isExportsIdentifier"),isExportsOrModuleExportsOrAlias:t(()=>vx,"isExportsOrModuleExportsOrAlias"),isExpression:t(()=>kt,"isExpression"),isExpressionNode:t(()=>nh,"isExpressionNode"),isExpressionOfExternalModuleImportEqualsDeclaration:t(()=>lbe,"isExpressionOfExternalModuleImportEqualsDeclaration"),isExpressionOfOptionalChainRoot:t(()=>uB,"isExpressionOfOptionalChainRoot"),isExpressionStatement:t(()=>Tu,"isExpressionStatement"),isExpressionWithTypeArguments:t(()=>Ky,"isExpressionWithTypeArguments"),isExpressionWithTypeArgumentsInClassExtendsClause:t(()=>vU,"isExpressionWithTypeArgumentsInClassExtendsClause"),isExternalModule:t(()=>Gl,"isExternalModule"),isExternalModuleAugmentation:t(()=>qT,"isExternalModuleAugmentation"),isExternalModuleImportEqualsDeclaration:t(()=>US,"isExternalModuleImportEqualsDeclaration"),isExternalModuleIndicator:t(()=>Q7,"isExternalModuleIndicator"),isExternalModuleNameRelative:t(()=>mu,"isExternalModuleNameRelative"),isExternalModuleReference:t(()=>Xy,"isExternalModuleReference"),isExternalModuleSymbol:t(()=>Ew,"isExternalModuleSymbol"),isExternalOrCommonJsModule:t(()=>up,"isExternalOrCommonJsModule"),isFileLevelReservedGeneratedIdentifier:t(()=>H7,"isFileLevelReservedGeneratedIdentifier"),isFileLevelUniqueName:t(()=>PB,"isFileLevelUniqueName"),isFileProbablyExternalModule:t(()=>B5,"isFileProbablyExternalModule"),isFirstDeclarationOfSymbolParameter:t(()=>lre,"isFirstDeclarationOfSymbolParameter"),isFixablePromiseHandler:t(()=>$re,"isFixablePromiseHandler"),isForInOrOfStatement:t(()=>eC,"isForInOrOfStatement"),isForInStatement:t(()=>yz,"isForInStatement"),isForInitializer:t(()=>Dd,"isForInitializer"),isForOfStatement:t(()=>w5,"isForOfStatement"),isForStatement:t(()=>e2,"isForStatement"),isFullSourceFile:t(()=>j0,"isFullSourceFile"),isFunctionBlock:t(()=>VT,"isFunctionBlock"),isFunctionBody:t(()=>oK,"isFunctionBody"),isFunctionDeclaration:t(()=>nl,"isFunctionDeclaration"),isFunctionExpression:t(()=>Ho,"isFunctionExpression"),isFunctionExpressionOrArrowFunction:t(()=>jb,"isFunctionExpressionOrArrowFunction"),isFunctionLike:t(()=>Gs,"isFunctionLike"),isFunctionLikeDeclaration:t(()=>Uo,"isFunctionLikeDeclaration"),isFunctionLikeKind:t(()=>bw,"isFunctionLikeKind"),isFunctionLikeOrClassStaticBlockDeclaration:t(()=>PA,"isFunctionLikeOrClassStaticBlockDeclaration"),isFunctionOrConstructorTypeNode:t(()=>Fde,"isFunctionOrConstructorTypeNode"),isFunctionOrModuleBlock:t(()=>rK,"isFunctionOrModuleBlock"),isFunctionSymbol:t(()=>jme,"isFunctionSymbol"),isFunctionTypeNode:t(()=>Kg,"isFunctionTypeNode"),isGeneratedIdentifier:t(()=>_c,"isGeneratedIdentifier"),isGeneratedPrivateIdentifier:t(()=>ZE,"isGeneratedPrivateIdentifier"),isGetAccessor:t(()=>O0,"isGetAccessor"),isGetAccessorDeclaration:t(()=>Md,"isGetAccessorDeclaration"),isGetOrSetAccessorDeclaration:t(()=>V7,"isGetOrSetAccessorDeclaration"),isGlobalScopeAugmentation:t(()=>Hg,"isGlobalScopeAugmentation"),isGlobalSourceFile:t(()=>G1,"isGlobalSourceFile"),isGrammarError:t(()=>rme,"isGrammarError"),isHeritageClause:t(()=>dp,"isHeritageClause"),isHoistedFunction:t(()=>MB,"isHoistedFunction"),isHoistedVariableStatement:t(()=>jB,"isHoistedVariableStatement"),isIdentifier:t(()=>Ye,"isIdentifier"),isIdentifierANonContextualKeyword:t(()=>XK,"isIdentifierANonContextualKeyword"),isIdentifierName:t(()=>Vme,"isIdentifierName"),isIdentifierOrThisTypeNode:t(()=>v0e,"isIdentifierOrThisTypeNode"),isIdentifierPart:t(()=>By,"isIdentifierPart"),isIdentifierStart:t(()=>Jg,"isIdentifierStart"),isIdentifierText:t(()=>z_,"isIdentifierText"),isIdentifierTypePredicate:t(()=>kme,"isIdentifierTypePredicate"),isIdentifierTypeReference:t(()=>Qhe,"isIdentifierTypeReference"),isIfStatement:t(()=>QS,"isIfStatement"),isIgnoredFileFromWildCardWatching:t(()=>_L,"isIgnoredFileFromWildCardWatching"),isImplicitGlob:t(()=>UX,"isImplicitGlob"),isImportAttribute:t(()=>Kge,"isImportAttribute"),isImportAttributeName:t(()=>Ide,"isImportAttributeName"),isImportAttributes:t(()=>CC,"isImportAttributes"),isImportCall:t(()=>Mp,"isImportCall"),isImportClause:t(()=>Rm,"isImportClause"),isImportDeclaration:t(()=>Tc,"isImportDeclaration"),isImportEqualsDeclaration:t(()=>lu,"isImportEqualsDeclaration"),isImportKeyword:t(()=>y3,"isImportKeyword"),isImportMeta:t(()=>MA,"isImportMeta"),isImportOrExportSpecifier:t(()=>Tb,"isImportOrExportSpecifier"),isImportOrExportSpecifierName:t(()=>Fbe,"isImportOrExportSpecifierName"),isImportSpecifier:t(()=>Gf,"isImportSpecifier"),isImportTypeAssertionContainer:t(()=>zFe,"isImportTypeAssertionContainer"),isImportTypeNode:t(()=>Zh,"isImportTypeNode"),isImportable:t(()=>Are,"isImportable"),isInComment:t(()=>cv,"isInComment"),isInCompoundLikeAssignment:t(()=>qK,"isInCompoundLikeAssignment"),isInExpressionContext:t(()=>HB,"isInExpressionContext"),isInJSDoc:t(()=>SF,"isInJSDoc"),isInJSFile:t(()=>xn,"isInJSFile"),isInJSXText:t(()=>hbe,"isInJSXText"),isInJsonFile:t(()=>YB,"isInJsonFile"),isInNonReferenceComment:t(()=>Tbe,"isInNonReferenceComment"),isInReferenceComment:t(()=>Sbe,"isInReferenceComment"),isInRightSideOfInternalImportEqualsDeclaration:t(()=>rJ,"isInRightSideOfInternalImportEqualsDeclaration"),isInString:t(()=>kD,"isInString"),isInTemplateString:t(()=>zte,"isInTemplateString"),isInTopLevelContext:t(()=>WB,"isInTopLevelContext"),isInTypeQuery:t(()=>Mw,"isInTypeQuery"),isIncrementalBuildInfo:t(()=>yL,"isIncrementalBuildInfo"),isIncrementalBundleEmitBuildInfo:t(()=>eve,"isIncrementalBundleEmitBuildInfo"),isIncrementalCompilation:t(()=>sx,"isIncrementalCompilation"),isIndexSignatureDeclaration:t(()=>zb,"isIndexSignatureDeclaration"),isIndexedAccessTypeNode:t(()=>fx,"isIndexedAccessTypeNode"),isInferTypeNode:t(()=>bC,"isInferTypeNode"),isInfinityOrNaNString:t(()=>o3,"isInfinityOrNaNString"),isInitializedProperty:t(()=>rL,"isInitializedProperty"),isInitializedVariable:t(()=>QF,"isInitializedVariable"),isInsideJsxElement:t(()=>_J,"isInsideJsxElement"),isInsideJsxElementOrAttribute:t(()=>mbe,"isInsideJsxElementOrAttribute"),isInsideNodeModules:t(()=>JL,"isInsideNodeModules"),isInsideTemplateLiteral:t(()=>IL,"isInsideTemplateLiteral"),isInstanceOfExpression:t(()=>bU,"isInstanceOfExpression"),isInstantiatedModule:t(()=>$Q,"isInstantiatedModule"),isInterfaceDeclaration:t(()=>Zu,"isInterfaceDeclaration"),isInternalDeclaration:t(()=>Yde,"isInternalDeclaration"),isInternalModuleImportEqualsDeclaration:t(()=>sC,"isInternalModuleImportEqualsDeclaration"),isInternalName:t(()=>$Z,"isInternalName"),isIntersectionTypeNode:t(()=>oD,"isIntersectionTypeNode"),isIntrinsicJsxName:t(()=>GA,"isIntrinsicJsxName"),isIterationStatement:t(()=>Cb,"isIterationStatement"),isJSDoc:t(()=>lh,"isJSDoc"),isJSDocAllType:t(()=>r0e,"isJSDocAllType"),isJSDocAugmentsTag:t(()=>_D,"isJSDocAugmentsTag"),isJSDocAuthorTag:t(()=>VFe,"isJSDocAuthorTag"),isJSDocCallbackTag:t(()=>AZ,"isJSDocCallbackTag"),isJSDocClassTag:t(()=>i0e,"isJSDocClassTag"),isJSDocCommentContainingNode:t(()=>bB,"isJSDocCommentContainingNode"),isJSDocConstructSignature:t(()=>Fw,"isJSDocConstructSignature"),isJSDocDeprecatedTag:t(()=>LZ,"isJSDocDeprecatedTag"),isJSDocEnumTag:t(()=>P5,"isJSDocEnumTag"),isJSDocFunctionType:t(()=>h6,"isJSDocFunctionType"),isJSDocImplementsTag:t(()=>Ez,"isJSDocImplementsTag"),isJSDocImportTag:t(()=>ng,"isJSDocImportTag"),isJSDocIndexSignature:t(()=>XB,"isJSDocIndexSignature"),isJSDocLikeText:t(()=>XZ,"isJSDocLikeText"),isJSDocLink:t(()=>e0e,"isJSDocLink"),isJSDocLinkCode:t(()=>t0e,"isJSDocLinkCode"),isJSDocLinkLike:t(()=>xw,"isJSDocLinkLike"),isJSDocLinkPlain:t(()=>WFe,"isJSDocLinkPlain"),isJSDocMemberName:t(()=>n2,"isJSDocMemberName"),isJSDocNameReference:t(()=>C3,"isJSDocNameReference"),isJSDocNamepathType:t(()=>qFe,"isJSDocNamepathType"),isJSDocNamespaceBody:t(()=>B7e,"isJSDocNamespaceBody"),isJSDocNode:t(()=>AA,"isJSDocNode"),isJSDocNonNullableType:t(()=>bz,"isJSDocNonNullableType"),isJSDocNullableType:t(()=>m6,"isJSDocNullableType"),isJSDocOptionalParameter:t(()=>XU,"isJSDocOptionalParameter"),isJSDocOptionalType:t(()=>PZ,"isJSDocOptionalType"),isJSDocOverloadTag:t(()=>g6,"isJSDocOverloadTag"),isJSDocOverrideTag:t(()=>Tz,"isJSDocOverrideTag"),isJSDocParameterTag:t(()=>ad,"isJSDocParameterTag"),isJSDocPrivateTag:t(()=>IZ,"isJSDocPrivateTag"),isJSDocPropertyLikeTag:t(()=>m4,"isJSDocPropertyLikeTag"),isJSDocPropertyTag:t(()=>s0e,"isJSDocPropertyTag"),isJSDocProtectedTag:t(()=>OZ,"isJSDocProtectedTag"),isJSDocPublicTag:t(()=>NZ,"isJSDocPublicTag"),isJSDocReadonlyTag:t(()=>FZ,"isJSDocReadonlyTag"),isJSDocReturnTag:t(()=>xz,"isJSDocReturnTag"),isJSDocSatisfiesExpression:t(()=>tZ,"isJSDocSatisfiesExpression"),isJSDocSatisfiesTag:t(()=>Cz,"isJSDocSatisfiesTag"),isJSDocSeeTag:t(()=>HFe,"isJSDocSeeTag"),isJSDocSignature:t(()=>ov,"isJSDocSignature"),isJSDocTag:t(()=>NA,"isJSDocTag"),isJSDocTemplateTag:t(()=>_m,"isJSDocTemplateTag"),isJSDocThisTag:t(()=>RZ,"isJSDocThisTag"),isJSDocThrowsTag:t(()=>YFe,"isJSDocThrowsTag"),isJSDocTypeAlias:t(()=>om,"isJSDocTypeAlias"),isJSDocTypeAssertion:t(()=>gx,"isJSDocTypeAssertion"),isJSDocTypeExpression:t(()=>r2,"isJSDocTypeExpression"),isJSDocTypeLiteral:t(()=>wC,"isJSDocTypeLiteral"),isJSDocTypeTag:t(()=>k3,"isJSDocTypeTag"),isJSDocTypedefTag:t(()=>DC,"isJSDocTypedefTag"),isJSDocUnknownTag:t(()=>GFe,"isJSDocUnknownTag"),isJSDocUnknownType:t(()=>n0e,"isJSDocUnknownType"),isJSDocVariadicType:t(()=>Sz,"isJSDocVariadicType"),isJSXTagName:t(()=>UA,"isJSXTagName"),isJsonEqual:t(()=>VU,"isJsonEqual"),isJsonSourceFile:t(()=>Ad,"isJsonSourceFile"),isJsxAttribute:t(()=>rg,"isJsxAttribute"),isJsxAttributeLike:t(()=>yB,"isJsxAttributeLike"),isJsxAttributeName:t(()=>oge,"isJsxAttributeName"),isJsxAttributes:t(()=>mx,"isJsxAttributes"),isJsxCallLike:t(()=>Hde,"isJsxCallLike"),isJsxChild:t(()=>rF,"isJsxChild"),isJsxClosingElement:t(()=>dx,"isJsxClosingElement"),isJsxClosingFragment:t(()=>Zge,"isJsxClosingFragment"),isJsxElement:t(()=>tg,"isJsxElement"),isJsxExpression:t(()=>p6,"isJsxExpression"),isJsxFragment:t(()=>t2,"isJsxFragment"),isJsxNamespacedName:t(()=>ch,"isJsxNamespacedName"),isJsxOpeningElement:t(()=>oh,"isJsxOpeningElement"),isJsxOpeningFragment:t(()=>Mm,"isJsxOpeningFragment"),isJsxOpeningLikeElement:t(()=>Ef,"isJsxOpeningLikeElement"),isJsxOpeningLikeElementTagName:t(()=>obe,"isJsxOpeningLikeElementTagName"),isJsxSelfClosingElement:t(()=>kC,"isJsxSelfClosingElement"),isJsxSpreadAttribute:t(()=>fD,"isJsxSpreadAttribute"),isJsxTagNameExpression:t(()=>b4,"isJsxTagNameExpression"),isJsxText:t(()=>eD,"isJsxText"),isJumpStatementTarget:t(()=>DL,"isJumpStatementTarget"),isKeyword:t(()=>w_,"isKeyword"),isKeywordOrPunctuation:t(()=>nU,"isKeywordOrPunctuation"),isKnownSymbol:t(()=>zF,"isKnownSymbol"),isLabelName:t(()=>Ite,"isLabelName"),isLabelOfLabeledStatement:t(()=>Nte,"isLabelOfLabeledStatement"),isLabeledStatement:t(()=>Jb,"isLabeledStatement"),isLateVisibilityPaintedStatement:t(()=>OB,"isLateVisibilityPaintedStatement"),isLeftHandSideExpression:t(()=>C_,"isLeftHandSideExpression"),isLet:t(()=>RB,"isLet"),isLineBreak:t(()=>Tf,"isLineBreak"),isLiteralComputedPropertyDeclarationName:t(()=>MF,"isLiteralComputedPropertyDeclarationName"),isLiteralExpression:t(()=>XE,"isLiteralExpression"),isLiteralExpressionOfObject:t(()=>QY,"isLiteralExpressionOfObject"),isLiteralImportTypeNode:t(()=>$y,"isLiteralImportTypeNode"),isLiteralKind:t(()=>h4,"isLiteralKind"),isLiteralNameOfPropertyDeclarationOrIndexAccess:t(()=>sJ,"isLiteralNameOfPropertyDeclarationOrIndexAccess"),isLiteralTypeLiteral:t(()=>jde,"isLiteralTypeLiteral"),isLiteralTypeNode:t(()=>iv,"isLiteralTypeNode"),isLocalName:t(()=>Zy,"isLocalName"),isLogicalOperator:t(()=>_he,"isLogicalOperator"),isLogicalOrCoalescingAssignmentExpression:t(()=>gX,"isLogicalOrCoalescingAssignmentExpression"),isLogicalOrCoalescingAssignmentOperator:t(()=>J4,"isLogicalOrCoalescingAssignmentOperator"),isLogicalOrCoalescingBinaryExpression:t(()=>GF,"isLogicalOrCoalescingBinaryExpression"),isLogicalOrCoalescingBinaryOperator:t(()=>yU,"isLogicalOrCoalescingBinaryOperator"),isMappedTypeNode:t(()=>TC,"isMappedTypeNode"),isMemberName:t(()=>I0,"isMemberName"),isMetaProperty:t(()=>b3,"isMetaProperty"),isMethodDeclaration:t(()=>Jc,"isMethodDeclaration"),isMethodOrAccessor:t(()=>Sw,"isMethodOrAccessor"),isMethodSignature:t(()=>Lm,"isMethodSignature"),isMinusToken:t(()=>TZ,"isMinusToken"),isMissingDeclaration:t(()=>JFe,"isMissingDeclaration"),isMissingPackageJsonInfo:t(()=>_ye,"isMissingPackageJsonInfo"),isModifier:t(()=>wa,"isModifier"),isModifierKind:t(()=>xb,"isModifierKind"),isModifierLike:t(()=>pc,"isModifierLike"),isModuleAugmentationExternal:t(()=>xK,"isModuleAugmentationExternal"),isModuleBlock:t(()=>Qh,"isModuleBlock"),isModuleBody:t(()=>Ude,"isModuleBody"),isModuleDeclaration:t(()=>El,"isModuleDeclaration"),isModuleExportName:t(()=>vz,"isModuleExportName"),isModuleExportsAccessExpression:t(()=>B0,"isModuleExportsAccessExpression"),isModuleIdentifier:t(()=>BK,"isModuleIdentifier"),isModuleName:t(()=>T0e,"isModuleName"),isModuleOrEnumDeclaration:t(()=>eF,"isModuleOrEnumDeclaration"),isModuleReference:t(()=>qde,"isModuleReference"),isModuleSpecifierLike:t(()=>bJ,"isModuleSpecifierLike"),isModuleWithStringLiteralName:t(()=>IB,"isModuleWithStringLiteralName"),isNameOfFunctionDeclaration:t(()=>Rte,"isNameOfFunctionDeclaration"),isNameOfModuleDeclaration:t(()=>Lte,"isNameOfModuleDeclaration"),isNamedDeclaration:t(()=>hu,"isNamedDeclaration"),isNamedEvaluation:t(()=>fp,"isNamedEvaluation"),isNamedEvaluationSource:t(()=>ZK,"isNamedEvaluationSource"),isNamedExportBindings:t(()=>XY,"isNamedExportBindings"),isNamedExports:t(()=>Bd,"isNamedExports"),isNamedImportBindings:t(()=>cK,"isNamedImportBindings"),isNamedImports:t(()=>eg,"isNamedImports"),isNamedImportsOrExports:t(()=>wU,"isNamedImportsOrExports"),isNamedTupleMember:t(()=>c6,"isNamedTupleMember"),isNamespaceBody:t(()=>j7e,"isNamespaceBody"),isNamespaceExport:t(()=>Xg,"isNamespaceExport"),isNamespaceExportDeclaration:t(()=>D5,"isNamespaceExportDeclaration"),isNamespaceImport:t(()=>G0,"isNamespaceImport"),isNamespaceReexportDeclaration:t(()=>Ome,"isNamespaceReexportDeclaration"),isNewExpression:t(()=>_x,"isNewExpression"),isNewExpressionTarget:t(()=>r8,"isNewExpressionTarget"),isNewScopeNode:t(()=>dge,"isNewScopeNode"),isNoSubstitutionTemplateLiteral:t(()=>vC,"isNoSubstitutionTemplateLiteral"),isNodeArray:t(()=>BT,"isNodeArray"),isNodeArrayMultiLine:t(()=>She,"isNodeArrayMultiLine"),isNodeDescendantOf:t(()=>XT,"isNodeDescendantOf"),isNodeKind:t(()=>_B,"isNodeKind"),isNodeLikeSystem:t(()=>sY,"isNodeLikeSystem"),isNodeModulesDirectory:t(()=>Zj,"isNodeModulesDirectory"),isNodeWithPossibleHoistedDeclaration:t(()=>Wme,"isNodeWithPossibleHoistedDeclaration"),isNonContextualKeyword:t(()=>KK,"isNonContextualKeyword"),isNonGlobalAmbientModule:t(()=>TK,"isNonGlobalAmbientModule"),isNonNullAccess:t(()=>age,"isNonNullAccess"),isNonNullChain:t(()=>fB,"isNonNullChain"),isNonNullExpression:t(()=>lD,"isNonNullExpression"),isNonStaticMethodOrAccessorWithPrivateName:t(()=>qye,"isNonStaticMethodOrAccessorWithPrivateName"),isNotEmittedStatement:t(()=>Xge,"isNotEmittedStatement"),isNullishCoalesce:t(()=>KY,"isNullishCoalesce"),isNumber:t(()=>ub,"isNumber"),isNumericLiteral:t(()=>P_,"isNumericLiteral"),isNumericLiteralName:t(()=>V0,"isNumericLiteralName"),isObjectBindingElementWithoutPropertyName:t(()=>RL,"isObjectBindingElementWithoutPropertyName"),isObjectBindingOrAssignmentElement:t(()=>K7,"isObjectBindingOrAssignmentElement"),isObjectBindingOrAssignmentPattern:t(()=>nK,"isObjectBindingOrAssignmentPattern"),isObjectBindingPattern:t(()=>sd,"isObjectBindingPattern"),isObjectLiteralElement:t(()=>lK,"isObjectLiteralElement"),isObjectLiteralElementLike:t(()=>zy,"isObjectLiteralElementLike"),isObjectLiteralExpression:t(()=>ja,"isObjectLiteralExpression"),isObjectLiteralMethod:t(()=>am,"isObjectLiteralMethod"),isObjectLiteralOrClassExpressionMethodOrAccessor:t(()=>UB,"isObjectLiteralOrClassExpressionMethodOrAccessor"),isObjectTypeDeclaration:t(()=>$w,"isObjectTypeDeclaration"),isOmittedExpression:t(()=>cu,"isOmittedExpression"),isOptionalChain:t(()=>xf,"isOptionalChain"),isOptionalChainRoot:t(()=>_4,"isOptionalChainRoot"),isOptionalDeclaration:t(()=>Yw,"isOptionalDeclaration"),isOptionalJSDocPropertyLikeTag:t(()=>p5,"isOptionalJSDocPropertyLikeTag"),isOptionalTypeNode:t(()=>dz,"isOptionalTypeNode"),isOuterExpression:t(()=>Dz,"isOuterExpression"),isOutermostOptionalChain:t(()=>p4,"isOutermostOptionalChain"),isOverrideModifier:t(()=>zge,"isOverrideModifier"),isPackageJsonInfo:t(()=>Qz,"isPackageJsonInfo"),isPackedArrayLiteral:t(()=>QX,"isPackedArrayLiteral"),isParameter:t(()=>rs,"isParameter"),isParameterPropertyDeclaration:t(()=>cp,"isParameterPropertyDeclaration"),isParameterPropertyModifier:t(()=>g4,"isParameterPropertyModifier"),isParenthesizedExpression:t(()=>c_,"isParenthesizedExpression"),isParenthesizedTypeNode:t(()=>SC,"isParenthesizedTypeNode"),isParseTreeNode:t(()=>f4,"isParseTreeNode"),isPartOfParameterDeclaration:t(()=>qS,"isPartOfParameterDeclaration"),isPartOfTypeNode:t(()=>Jh,"isPartOfTypeNode"),isPartOfTypeOnlyImportOrExportDeclaration:t(()=>Nde,"isPartOfTypeOnlyImportOrExportDeclaration"),isPartOfTypeQuery:t(()=>GB,"isPartOfTypeQuery"),isPartiallyEmittedExpression:t(()=>Vge,"isPartiallyEmittedExpression"),isPatternMatch:t(()=>jj,"isPatternMatch"),isPinnedComment:t(()=>AB,"isPinnedComment"),isPlainJsFile:t(()=>T4,"isPlainJsFile"),isPlusToken:t(()=>SZ,"isPlusToken"),isPossiblyTypeArgumentPosition:t(()=>NL,"isPossiblyTypeArgumentPosition"),isPostfixUnaryExpression:t(()=>CZ,"isPostfixUnaryExpression"),isPrefixUnaryExpression:t(()=>ZS,"isPrefixUnaryExpression"),isPrimitiveLiteralValue:t(()=>ez,"isPrimitiveLiteralValue"),isPrivateIdentifier:t(()=>Qi,"isPrivateIdentifier"),isPrivateIdentifierClassElementDeclaration:t(()=>zf,"isPrivateIdentifierClassElementDeclaration"),isPrivateIdentifierPropertyAccessExpression:t(()=>DA,"isPrivateIdentifierPropertyAccessExpression"),isPrivateIdentifierSymbol:t(()=>Yme,"isPrivateIdentifierSymbol"),isProgramUptoDate:t(()=>Pee,"isProgramUptoDate"),isPrologueDirective:t(()=>$h,"isPrologueDirective"),isPropertyAccessChain:t(()=>lB,"isPropertyAccessChain"),isPropertyAccessEntityNameExpression:t(()=>KF,"isPropertyAccessEntityNameExpression"),isPropertyAccessExpression:t(()=>Hn,"isPropertyAccessExpression"),isPropertyAccessOrQualifiedName:t(()=>Z7,"isPropertyAccessOrQualifiedName"),isPropertyAccessOrQualifiedNameOrImportTypeNode:t(()=>Rde,"isPropertyAccessOrQualifiedNameOrImportTypeNode"),isPropertyAssignment:t(()=>Ul,"isPropertyAssignment"),isPropertyDeclaration:t(()=>As,"isPropertyDeclaration"),isPropertyName:t(()=>Tl,"isPropertyName"),isPropertyNameLiteral:t(()=>qh,"isPropertyNameLiteral"),isPropertySignature:t(()=>Hf,"isPropertySignature"),isPrototypeAccess:t(()=>Lb,"isPrototypeAccess"),isPrototypePropertyAssignment:t(()=>PF,"isPrototypePropertyAssignment"),isPunctuation:t(()=>YK,"isPunctuation"),isPushOrUnshiftIdentifier:t(()=>QK,"isPushOrUnshiftIdentifier"),isQualifiedName:t(()=>a_,"isQualifiedName"),isQuestionDotToken:t(()=>_z,"isQuestionDotToken"),isQuestionOrExclamationToken:t(()=>y0e,"isQuestionOrExclamationToken"),isQuestionOrPlusOrMinusToken:t(()=>S0e,"isQuestionOrPlusOrMinusToken"),isQuestionToken:t(()=>Ub,"isQuestionToken"),isReadonlyKeyword:t(()=>Bge,"isReadonlyKeyword"),isReadonlyKeywordOrPlusOrMinusToken:t(()=>b0e,"isReadonlyKeywordOrPlusOrMinusToken"),isRecognizedTripleSlashComment:t(()=>gK,"isRecognizedTripleSlashComment"),isReferenceFileLocation:t(()=>L6,"isReferenceFileLocation"),isReferencedFile:t(()=>f2,"isReferencedFile"),isRegularExpressionLiteral:t(()=>vZ,"isRegularExpressionLiteral"),isRequireCall:t(()=>k_,"isRequireCall"),isRequireVariableStatement:t(()=>xF,"isRequireVariableStatement"),isRestParameter:t(()=>qg,"isRestParameter"),isRestTypeNode:t(()=>mz,"isRestTypeNode"),isReturnStatement:t(()=>Bp,"isReturnStatement"),isReturnStatementWithFixablePromiseHandler:t(()=>zJ,"isReturnStatementWithFixablePromiseHandler"),isRightSideOfAccessExpression:t(()=>bX,"isRightSideOfAccessExpression"),isRightSideOfInstanceofExpression:t(()=>dhe,"isRightSideOfInstanceofExpression"),isRightSideOfPropertyAccess:t(()=>U6,"isRightSideOfPropertyAccess"),isRightSideOfQualifiedName:t(()=>cbe,"isRightSideOfQualifiedName"),isRightSideOfQualifiedNameOrPropertyAccess:t(()=>W4,"isRightSideOfQualifiedNameOrPropertyAccess"),isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:t(()=>phe,"isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName"),isRootedDiskPath:t(()=>op,"isRootedDiskPath"),isSameEntityName:t(()=>zA,"isSameEntityName"),isSatisfiesExpression:t(()=>f6,"isSatisfiesExpression"),isSemicolonClassElement:t(()=>Hge,"isSemicolonClassElement"),isSetAccessor:t(()=>Uh,"isSetAccessor"),isSetAccessorDeclaration:t(()=>q_,"isSetAccessorDeclaration"),isShiftOperatorOrHigher:t(()=>GZ,"isShiftOperatorOrHigher"),isShorthandAmbientModuleSymbol:t(()=>oF,"isShorthandAmbientModuleSymbol"),isShorthandPropertyAssignment:t(()=>df,"isShorthandPropertyAssignment"),isSideEffectImport:t(()=>aZ,"isSideEffectImport"),isSignedNumericLiteral:t(()=>sU,"isSignedNumericLiteral"),isSimpleCopiableExpression:t(()=>bx,"isSimpleCopiableExpression"),isSimpleInlineableExpression:t(()=>ig,"isSimpleInlineableExpression"),isSimpleParameterList:t(()=>nL,"isSimpleParameterList"),isSingleOrDoubleQuote:t(()=>EF,"isSingleOrDoubleQuote"),isSolutionConfig:t(()=>yQ,"isSolutionConfig"),isSourceElement:t(()=>lge,"isSourceElement"),isSourceFile:t(()=>Yi,"isSourceFile"),isSourceFileFromLibrary:t(()=>K6,"isSourceFileFromLibrary"),isSourceFileJS:t(()=>i_,"isSourceFileJS"),isSourceFileNotJson:t(()=>KB,"isSourceFileNotJson"),isSourceMapping:t(()=>$ye,"isSourceMapping"),isSpecialPropertyDeclaration:t(()=>Mme,"isSpecialPropertyDeclaration"),isSpreadAssignment:t(()=>Y0,"isSpreadAssignment"),isSpreadElement:t(()=>jd,"isSpreadElement"),isStatement:t(()=>$i,"isStatement"),isStatementButNotDeclaration:t(()=>tF,"isStatementButNotDeclaration"),isStatementOrBlock:t(()=>Wde,"isStatementOrBlock"),isStatementWithLocals:t(()=>tme,"isStatementWithLocals"),isStatic:t(()=>pa,"isStatic"),isStaticModifier:t(()=>nD,"isStaticModifier"),isString:t(()=>Fs,"isString"),isStringANonContextualKeyword:t(()=>Rw,"isStringANonContextualKeyword"),isStringAndEmptyAnonymousObjectIntersection:t(()=>bbe,"isStringAndEmptyAnonymousObjectIntersection"),isStringDoubleQuoted:t(()=>ZB,"isStringDoubleQuoted"),isStringLiteral:t(()=>Na,"isStringLiteral"),isStringLiteralLike:t(()=>fo,"isStringLiteralLike"),isStringLiteralOrJsxExpression:t(()=>Vde,"isStringLiteralOrJsxExpression"),isStringLiteralOrTemplate:t(()=>Ube,"isStringLiteralOrTemplate"),isStringOrNumericLiteralLike:t(()=>nd,"isStringOrNumericLiteralLike"),isStringOrRegularExpressionOrTemplateLiteral:t(()=>Wte,"isStringOrRegularExpressionOrTemplateLiteral"),isStringTextContainingNode:t(()=>eK,"isStringTextContainingNode"),isSuperCall:t(()=>iC,"isSuperCall"),isSuperKeyword:t(()=>g3,"isSuperKeyword"),isSuperProperty:t(()=>$_,"isSuperProperty"),isSupportedSourceFileName:t(()=>qX,"isSupportedSourceFileName"),isSwitchStatement:t(()=>T3,"isSwitchStatement"),isSyntaxList:t(()=>y6,"isSyntaxList"),isSyntheticExpression:t(()=>RFe,"isSyntheticExpression"),isSyntheticReference:t(()=>uD,"isSyntheticReference"),isTagName:t(()=>Ote,"isTagName"),isTaggedTemplateExpression:t(()=>XS,"isTaggedTemplateExpression"),isTaggedTemplateTag:t(()=>sbe,"isTaggedTemplateTag"),isTemplateExpression:t(()=>gz,"isTemplateExpression"),isTemplateHead:t(()=>tD,"isTemplateHead"),isTemplateLiteral:t(()=>Tw,"isTemplateLiteral"),isTemplateLiteralKind:t(()=>Sb,"isTemplateLiteralKind"),isTemplateLiteralToken:t(()=>Pde,"isTemplateLiteralToken"),isTemplateLiteralTypeNode:t(()=>Wge,"isTemplateLiteralTypeNode"),isTemplateLiteralTypeSpan:t(()=>EZ,"isTemplateLiteralTypeSpan"),isTemplateMiddle:t(()=>bZ,"isTemplateMiddle"),isTemplateMiddleOrTemplateTail:t(()=>pB,"isTemplateMiddleOrTemplateTail"),isTemplateSpan:t(()=>_6,"isTemplateSpan"),isTemplateTail:t(()=>uz,"isTemplateTail"),isTextWhiteSpaceLike:t(()=>kbe,"isTextWhiteSpaceLike"),isThis:t(()=>z6,"isThis"),isThisContainerOrFunctionBlock:t(()=>Ame,"isThisContainerOrFunctionBlock"),isThisIdentifier:t(()=>Fb,"isThisIdentifier"),isThisInTypeQuery:t(()=>tx,"isThisInTypeQuery"),isThisInitializedDeclaration:t(()=>qB,"isThisInitializedDeclaration"),isThisInitializedObjectBindingExpression:t(()=>Ime,"isThisInitializedObjectBindingExpression"),isThisProperty:t(()=>gF,"isThisProperty"),isThisTypeNode:t(()=>v3,"isThisTypeNode"),isThisTypeParameter:t(()=>c3,"isThisTypeParameter"),isThisTypePredicate:t(()=>wme,"isThisTypePredicate"),isThrowStatement:t(()=>DZ,"isThrowStatement"),isToken:t(()=>vw,"isToken"),isTokenKind:t(()=>ZY,"isTokenKind"),isTraceEnabled:t(()=>qb,"isTraceEnabled"),isTransientSymbol:t(()=>F0,"isTransientSymbol"),isTrivia:t(()=>VA,"isTrivia"),isTryStatement:t(()=>EC,"isTryStatement"),isTupleTypeNode:t(()=>aD,"isTupleTypeNode"),isTypeAlias:t(()=>OF,"isTypeAlias"),isTypeAliasDeclaration:t(()=>fm,"isTypeAliasDeclaration"),isTypeAssertionExpression:t(()=>hz,"isTypeAssertionExpression"),isTypeDeclaration:t(()=>Gw,"isTypeDeclaration"),isTypeElement:t(()=>UT,"isTypeElement"),isTypeKeyword:t(()=>a8,"isTypeKeyword"),isTypeKeywordTokenOrIdentifier:t(()=>gJ,"isTypeKeywordTokenOrIdentifier"),isTypeLiteralNode:t(()=>o_,"isTypeLiteralNode"),isTypeNode:t(()=>Ai,"isTypeNode"),isTypeNodeKind:t(()=>AX,"isTypeNodeKind"),isTypeOfExpression:t(()=>l6,"isTypeOfExpression"),isTypeOnlyExportDeclaration:t(()=>Ade,"isTypeOnlyExportDeclaration"),isTypeOnlyImportDeclaration:t(()=>wA,"isTypeOnlyImportDeclaration"),isTypeOnlyImportOrExportDeclaration:t(()=>V1,"isTypeOnlyImportOrExportDeclaration"),isTypeOperatorNode:t(()=>KS,"isTypeOperatorNode"),isTypeParameterDeclaration:t(()=>cc,"isTypeParameterDeclaration"),isTypePredicateNode:t(()=>sD,"isTypePredicateNode"),isTypeQueryNode:t(()=>lx,"isTypeQueryNode"),isTypeReferenceNode:t(()=>pp,"isTypeReferenceNode"),isTypeReferenceType:t(()=>TB,"isTypeReferenceType"),isTypeUsableAsPropertyName:t(()=>Ld,"isTypeUsableAsPropertyName"),isUMDExportSymbol:t(()=>kU,"isUMDExportSymbol"),isUnaryExpression:t(()=>aK,"isUnaryExpression"),isUnaryExpressionWithWrite:t(()=>Mde,"isUnaryExpressionWithWrite"),isUnicodeIdentifierStart:t(()=>eB,"isUnicodeIdentifierStart"),isUnionTypeNode:t(()=>nv,"isUnionTypeNode"),isUrl:t(()=>Wpe,"isUrl"),isValidBigIntString:t(()=>HU,"isValidBigIntString"),isValidESSymbolDeclaration:t(()=>Eme,"isValidESSymbolDeclaration"),isValidTypeOnlyAliasUseSite:t(()=>HS,"isValidTypeOnlyAliasUseSite"),isValueSignatureDeclaration:t(()=>uC,"isValueSignatureDeclaration"),isVarAwaitUsing:t(()=>_F,"isVarAwaitUsing"),isVarConst:t(()=>RA,"isVarConst"),isVarConstLike:t(()=>bme,"isVarConstLike"),isVarUsing:t(()=>pF,"isVarUsing"),isVariableDeclaration:t(()=>Ti,"isVariableDeclaration"),isVariableDeclarationInVariableStatement:t(()=>k4,"isVariableDeclarationInVariableStatement"),isVariableDeclarationInitializedToBareOrAccessedRequire:t(()=>GT,"isVariableDeclarationInitializedToBareOrAccessedRequire"),isVariableDeclarationInitializedToRequire:t(()=>TF,"isVariableDeclarationInitializedToRequire"),isVariableDeclarationList:t(()=>ju,"isVariableDeclarationList"),isVariableLike:t(()=>C4,"isVariableLike"),isVariableStatement:t(()=>rl,"isVariableStatement"),isVoidExpression:t(()=>cD,"isVoidExpression"),isWatchSet:t(()=>wX,"isWatchSet"),isWhileStatement:t(()=>wZ,"isWhileStatement"),isWhiteSpaceLike:t(()=>P0,"isWhiteSpaceLike"),isWhiteSpaceSingleLine:t(()=>jh,"isWhiteSpaceSingleLine"),isWithStatement:t(()=>Gge,"isWithStatement"),isWriteAccess:t(()=>zw,"isWriteAccess"),isWriteOnlyAccess:t(()=>CU,"isWriteOnlyAccess"),isYieldExpression:t(()=>k5,"isYieldExpression"),jsxModeNeedsExplicitImport:t(()=>wre,"jsxModeNeedsExplicitImport"),keywordPart:t(()=>yp,"keywordPart"),last:t(()=>za,"last"),lastOrUndefined:t(()=>nc,"lastOrUndefined"),length:t(()=>Ue,"length"),libMap:t(()=>rQ,"libMap"),libs:t(()=>Lz,"libs"),lineBreakPart:t(()=>H6,"lineBreakPart"),loadModuleFromGlobalCache:t(()=>Eye,"loadModuleFromGlobalCache"),loadWithModeAwareCache:t(()=>dL,"loadWithModeAwareCache"),makeIdentifierFromModuleName:t(()=>cme,"makeIdentifierFromModuleName"),makeImport:t(()=>Zb,"makeImport"),makeStringLiteral:t(()=>o8,"makeStringLiteral"),mangleScopedPackageName:t(()=>P6,"mangleScopedPackageName"),map:t(()=>Dr,"map"),mapAllOrFail:t(()=>qI,"mapAllOrFail"),mapDefined:t(()=>Wi,"mapDefined"),mapDefinedIterator:t(()=>Fh,"mapDefinedIterator"),mapEntries:t(()=>f_e,"mapEntries"),mapIterator:t(()=>IT,"mapIterator"),mapOneOrMany:t(()=>xre,"mapOneOrMany"),mapToDisplayParts:t(()=>d2,"mapToDisplayParts"),matchFiles:t(()=>$X,"matchFiles"),matchPatternOrExact:t(()=>HX,"matchPatternOrExact"),matchedText:t(()=>C_e,"matchedText"),matchesExclude:t(()=>Gz,"matchesExclude"),matchesExcludeWorker:t(()=>Yz,"matchesExcludeWorker"),maxBy:t(()=>XG,"maxBy"),maybeBind:t(()=>ca,"maybeBind"),maybeSetLocalizedDiagnosticMessages:t(()=>Ahe,"maybeSetLocalizedDiagnosticMessages"),memoize:t(()=>Uf,"memoize"),memoizeOne:t(()=>Mh,"memoizeOne"),min:t(()=>ZG,"min"),minAndMax:t(()=>Khe,"minAndMax"),missingFileModifiedTime:t(()=>ap,"missingFileModifiedTime"),modifierToFlag:t(()=>Bw,"modifierToFlag"),modifiersToFlags:t(()=>Gh,"modifiersToFlags"),moduleExportNameIsDefault:t(()=>Vg,"moduleExportNameIsDefault"),moduleExportNameTextEscaped:t(()=>WT,"moduleExportNameTextEscaped"),moduleExportNameTextUnescaped:t(()=>Pb,"moduleExportNameTextUnescaped"),moduleOptionDeclaration:t(()=>F0e,"moduleOptionDeclaration"),moduleResolutionIsEqualTo:t(()=>Qde,"moduleResolutionIsEqualTo"),moduleResolutionNameAndModeGetter:t(()=>C$,"moduleResolutionNameAndModeGetter"),moduleResolutionOptionDeclarations:t(()=>iQ,"moduleResolutionOptionDeclarations"),moduleResolutionSupportsPackageJsonExportsAndImports:t(()=>t6,"moduleResolutionSupportsPackageJsonExportsAndImports"),moduleResolutionUsesNodeModules:t(()=>yJ,"moduleResolutionUsesNodeModules"),moduleSpecifierToValidIdentifier:t(()=>qL,"moduleSpecifierToValidIdentifier"),moduleSpecifiers:t(()=>e1,"moduleSpecifiers"),moduleSupportsImportAttributes:t(()=>Mhe,"moduleSupportsImportAttributes"),moduleSymbolToValidIdentifier:t(()=>WL,"moduleSymbolToValidIdentifier"),moveEmitHelpers:t(()=>kge,"moveEmitHelpers"),moveRangeEnd:t(()=>xU,"moveRangeEnd"),moveRangePastDecorators:t(()=>Hy,"moveRangePastDecorators"),moveRangePastModifiers:t(()=>Yh,"moveRangePastModifiers"),moveRangePos:t(()=>VS,"moveRangePos"),moveSyntheticComments:t(()=>xge,"moveSyntheticComments"),mutateMap:t(()=>Y4,"mutateMap"),mutateMapSkippingNewValues:t(()=>z0,"mutateMapSkippingNewValues"),needsParentheses:t(()=>EJ,"needsParentheses"),needsScopeMarker:t(()=>hB,"needsScopeMarker"),newCaseClauseTracker:t(()=>RJ,"newCaseClauseTracker"),newPrivateEnvironment:t(()=>Hye,"newPrivateEnvironment"),noEmitNotification:t(()=>oL,"noEmitNotification"),noEmitSubstitution:t(()=>V3,"noEmitSubstitution"),noTransformers:t(()=>E1e,"noTransformers"),noTruncationMaximumTruncationLength:t(()=>_K,"noTruncationMaximumTruncationLength"),nodeCanBeDecorated:t(()=>vF,"nodeCanBeDecorated"),nodeCoreModules:t(()=>s6,"nodeCoreModules"),nodeHasName:t(()=>J7,"nodeHasName"),nodeIsDecorated:t(()=>BA,"nodeIsDecorated"),nodeIsMissing:t(()=>zc,"nodeIsMissing"),nodeIsPresent:t(()=>sm,"nodeIsPresent"),nodeIsSynthesized:t(()=>Mo,"nodeIsSynthesized"),nodeModuleNameResolver:t(()=>gye,"nodeModuleNameResolver"),nodeModulesPathPart:t(()=>K0,"nodeModulesPathPart"),nodeNextJsonConfigResolver:t(()=>yye,"nodeNextJsonConfigResolver"),nodeOrChildIsDecorated:t(()=>bF,"nodeOrChildIsDecorated"),nodeOverlapsWithStartEnd:t(()=>aJ,"nodeOverlapsWithStartEnd"),nodePosToString:t(()=>$7e,"nodePosToString"),nodeSeenTracker:t(()=>W6,"nodeSeenTracker"),nodeStartsNewLexicalEnvironment:t(()=>eX,"nodeStartsNewLexicalEnvironment"),noop:t(()=>go,"noop"),noopFileWatcher:t(()=>j6,"noopFileWatcher"),normalizePath:t(()=>ba,"normalizePath"),normalizeSlashes:t(()=>Ru,"normalizeSlashes"),normalizeSpans:t(()=>zY,"normalizeSpans"),not:t(()=>Uj,"not"),notImplemented:t(()=>va,"notImplemented"),notImplementedResolver:t(()=>P1e,"notImplementedResolver"),nullNodeConverters:t(()=>bge,"nullNodeConverters"),nullParenthesizerRules:t(()=>yge,"nullParenthesizerRules"),nullTransformationContext:t(()=>lL,"nullTransformationContext"),objectAllocator:t(()=>Ku,"objectAllocator"),operatorPart:t(()=>l8,"operatorPart"),optionDeclarations:t(()=>jm,"optionDeclarations"),optionMapToObject:t(()=>$z,"optionMapToObject"),optionsAffectingProgramStructure:t(()=>B0e,"optionsAffectingProgramStructure"),optionsForBuild:t(()=>aQ,"optionsForBuild"),optionsForWatch:t(()=>gD,"optionsForWatch"),optionsHaveChanges:t(()=>Cw,"optionsHaveChanges"),or:t(()=>sp,"or"),orderedRemoveItem:t(()=>HI,"orderedRemoveItem"),orderedRemoveItemAt:t(()=>db,"orderedRemoveItemAt"),packageIdToPackageName:t(()=>DB,"packageIdToPackageName"),packageIdToString:t(()=>jS,"packageIdToString"),parameterIsThisKeyword:t(()=>Ob,"parameterIsThisKeyword"),parameterNamePart:t(()=>Dbe,"parameterNamePart"),parseBaseNodeFactory:t(()=>D0e,"parseBaseNodeFactory"),parseBigInt:t(()=>Zhe,"parseBigInt"),parseBuildCommand:t(()=>H0e,"parseBuildCommand"),parseCommandLine:t(()=>q0e,"parseCommandLine"),parseCommandLineWorker:t(()=>cQ,"parseCommandLineWorker"),parseConfigFileTextToJson:t(()=>uQ,"parseConfigFileTextToJson"),parseConfigFileWithSystem:t(()=>dve,"parseConfigFileWithSystem"),parseConfigHostFromCompilerHostLike:t(()=>N$,"parseConfigHostFromCompilerHostLike"),parseCustomTypeOption:t(()=>Bz,"parseCustomTypeOption"),parseIsolatedEntityName:t(()=>hD,"parseIsolatedEntityName"),parseIsolatedJSDocComment:t(()=>A0e,"parseIsolatedJSDocComment"),parseJSDocTypeExpressionForTests:t(()=>v5e,"parseJSDocTypeExpressionForTests"),parseJsonConfigFileContent:t(()=>G5e,"parseJsonConfigFileContent"),parseJsonSourceFileConfigFileContent:t(()=>V5,"parseJsonSourceFileConfigFileContent"),parseJsonText:t(()=>U5,"parseJsonText"),parseListTypeOption:t(()=>J0e,"parseListTypeOption"),parseNodeFactory:t(()=>s2,"parseNodeFactory"),parseNodeModuleFromPath:t(()=>K5,"parseNodeModuleFromPath"),parsePackageName:t(()=>r$,"parsePackageName"),parsePseudoBigInt:t(()=>i3,"parsePseudoBigInt"),parseValidBigInt:t(()=>XX,"parseValidBigInt"),pasteEdits:t(()=>kie,"pasteEdits"),patchWriteFileEnsuringDirectory:t(()=>Jpe,"patchWriteFileEnsuringDirectory"),pathContainsNodeModules:t(()=>Hb,"pathContainsNodeModules"),pathIsAbsolute:t(()=>r4,"pathIsAbsolute"),pathIsBareSpecifier:t(()=>NY,"pathIsBareSpecifier"),pathIsRelative:t(()=>Lp,"pathIsRelative"),patternText:t(()=>E_e,"patternText"),performIncrementalCompilation:t(()=>mve,"performIncrementalCompilation"),performance:t(()=>O_e,"performance"),positionBelongsToNode:t(()=>Mte,"positionBelongsToNode"),positionIsASICandidate:t(()=>wJ,"positionIsASICandidate"),positionIsSynthesized:t(()=>sh,"positionIsSynthesized"),positionsAreOnSameLine:t(()=>Od,"positionsAreOnSameLine"),preProcessFile:t(()=>ije,"preProcessFile"),probablyUsesSemicolons:t(()=>$L,"probablyUsesSemicolons"),processCommentPragmas:t(()=>eQ,"processCommentPragmas"),processPragmasIntoFields:t(()=>tQ,"processPragmasIntoFields"),processTaggedTemplateExpression:t(()=>nee,"processTaggedTemplateExpression"),programContainsEsModules:t(()=>Ebe,"programContainsEsModules"),programContainsModules:t(()=>xbe,"programContainsModules"),projectReferenceIsEqualTo:t(()=>pK,"projectReferenceIsEqualTo"),propertyNamePart:t(()=>Pbe,"propertyNamePart"),pseudoBigIntToString:t(()=>ax,"pseudoBigIntToString"),punctuationPart:t(()=>Pf,"punctuationPart"),pushIfUnique:t(()=>Cd,"pushIfUnique"),quote:t(()=>_8,"quote"),quotePreferenceFromString:t(()=>ere,"quotePreferenceFromString"),rangeContainsPosition:t(()=>$6,"rangeContainsPosition"),rangeContainsPositionExclusive:t(()=>PL,"rangeContainsPositionExclusive"),rangeContainsRange:t(()=>D_,"rangeContainsRange"),rangeContainsRangeExclusive:t(()=>ube,"rangeContainsRangeExclusive"),rangeContainsStartEnd:t(()=>AL,"rangeContainsStartEnd"),rangeEndIsOnSameLineAsRangeStart:t(()=>ZF,"rangeEndIsOnSameLineAsRangeStart"),rangeEndPositionsAreOnSameLine:t(()=>vhe,"rangeEndPositionsAreOnSameLine"),rangeEquals:t(()=>WG,"rangeEquals"),rangeIsOnSingleLine:t(()=>dC,"rangeIsOnSingleLine"),rangeOfNode:t(()=>YX,"rangeOfNode"),rangeOfTypeParameters:t(()=>KX,"rangeOfTypeParameters"),rangeOverlapsWithStartEnd:t(()=>n8,"rangeOverlapsWithStartEnd"),rangeStartIsOnSameLineAsRangeEnd:t(()=>bhe,"rangeStartIsOnSameLineAsRangeEnd"),rangeStartPositionsAreOnSameLine:t(()=>EU,"rangeStartPositionsAreOnSameLine"),readBuilderProgram:t(()=>$$,"readBuilderProgram"),readConfigFile:t(()=>W5,"readConfigFile"),readJson:t(()=>XA,"readJson"),readJsonConfigFile:t(()=>G0e,"readJsonConfigFile"),readJsonOrUndefined:t(()=>TX,"readJsonOrUndefined"),reduceEachLeadingCommentRange:t(()=>Zpe,"reduceEachLeadingCommentRange"),reduceEachTrailingCommentRange:t(()=>Qpe,"reduceEachTrailingCommentRange"),reduceLeft:t(()=>r_,"reduceLeft"),reduceLeftIterator:t(()=>wn,"reduceLeftIterator"),reducePathComponents:t(()=>mw,"reducePathComponents"),refactor:t(()=>ND,"refactor"),regExpEscape:t(()=>gFe,"regExpEscape"),regularExpressionFlagToCharacterCode:t(()=>h7e,"regularExpressionFlagToCharacterCode"),relativeComplement:t(()=>__e,"relativeComplement"),removeAllComments:t(()=>y5,"removeAllComments"),removeEmitHelper:t(()=>IFe,"removeEmitHelper"),removeExtension:t(()=>u5,"removeExtension"),removeFileExtension:t(()=>Vf,"removeFileExtension"),removeIgnoredPath:t(()=>L$,"removeIgnoredPath"),removeMinAndVersionNumbers:t(()=>tY,"removeMinAndVersionNumbers"),removePrefix:t(()=>GI,"removePrefix"),removeSuffix:t(()=>gA,"removeSuffix"),removeTrailingDirectorySeparator:t(()=>q1,"removeTrailingDirectorySeparator"),repeatString:t(()=>FL,"repeatString"),replaceElement:t(()=>HG,"replaceElement"),replaceFirstStar:t(()=>hC,"replaceFirstStar"),resolutionExtensionIsTSOrJson:t(()=>e3,"resolutionExtensionIsTSOrJson"),resolveConfigFileProjectName:t(()=>ote,"resolveConfigFileProjectName"),resolveJSModule:t(()=>dye,"resolveJSModule"),resolveLibrary:t(()=>t$,"resolveLibrary"),resolveModuleName:t(()=>IC,"resolveModuleName"),resolveModuleNameFromCache:t(()=>ELe,"resolveModuleNameFromCache"),resolvePackageNameToPackageJson:t(()=>TQ,"resolvePackageNameToPackageJson"),resolvePath:t(()=>hb,"resolvePath"),resolveProjectReferencePath:t(()=>xD,"resolveProjectReferencePath"),resolveTripleslashReference:t(()=>bee,"resolveTripleslashReference"),resolveTypeReferenceDirective:t(()=>uye,"resolveTypeReferenceDirective"),resolvingEmptyArray:t(()=>fK,"resolvingEmptyArray"),returnFalse:t(()=>My,"returnFalse"),returnNoopFileWatcher:t(()=>Q3,"returnNoopFileWatcher"),returnTrue:t(()=>FT,"returnTrue"),returnUndefined:t(()=>LT,"returnUndefined"),returnsPromise:t(()=>zre,"returnsPromise"),rewriteModuleSpecifier:t(()=>bD,"rewriteModuleSpecifier"),sameFlatMap:t(()=>Ly,"sameFlatMap"),sameMap:t(()=>el,"sameMap"),sameMapping:t(()=>dRe,"sameMapping"),scanTokenAtPosition:t(()=>vme,"scanTokenAtPosition"),scanner:t(()=>Bu,"scanner"),semanticDiagnosticsOptionDeclarations:t(()=>R0e,"semanticDiagnosticsOptionDeclarations"),serializeCompilerOptions:t(()=>Jz,"serializeCompilerOptions"),server:t(()=>aYe,"server"),servicesVersion:t(()=>HBe,"servicesVersion"),setCommentRange:t(()=>Ml,"setCommentRange"),setConfigFileInOptions:t(()=>hQ,"setConfigFileInOptions"),setConstantValue:t(()=>Cge,"setConstantValue"),setEmitFlags:t(()=>Dn,"setEmitFlags"),setGetSourceFileAsHashVersioned:t(()=>z$,"setGetSourceFileAsHashVersioned"),setIdentifierAutoGenerate:t(()=>S5,"setIdentifierAutoGenerate"),setIdentifierGeneratedImportReference:t(()=>Pge,"setIdentifierGeneratedImportReference"),setIdentifierTypeArguments:t(()=>rv,"setIdentifierTypeArguments"),setInternalEmitFlags:t(()=>v5,"setInternalEmitFlags"),setLocalizedDiagnosticMessages:t(()=>Phe,"setLocalizedDiagnosticMessages"),setNodeChildren:t(()=>a0e,"setNodeChildren"),setNodeFlags:t(()=>tge,"setNodeFlags"),setObjectAllocator:t(()=>Dhe,"setObjectAllocator"),setOriginalNode:t(()=>Vn,"setOriginalNode"),setParent:t(()=>mo,"setParent"),setParentRecursive:t(()=>GS,"setParentRecursive"),setPrivateIdentifier:t(()=>FC,"setPrivateIdentifier"),setSnippetElement:t(()=>gZ,"setSnippetElement"),setSourceMapRange:t(()=>Wa,"setSourceMapRange"),setStackTraceLimit:t(()=>QOe,"setStackTraceLimit"),setStartsOnNewLine:t(()=>az,"setStartsOnNewLine"),setSyntheticLeadingComments:t(()=>YS,"setSyntheticLeadingComments"),setSyntheticTrailingComments:t(()=>Zw,"setSyntheticTrailingComments"),setSys:t(()=>s7e,"setSys"),setSysLog:t(()=>Upe,"setSysLog"),setTextRange:t(()=>Et,"setTextRange"),setTextRangeEnd:t(()=>i6,"setTextRangeEnd"),setTextRangePos:t(()=>s3,"setTextRangePos"),setTextRangePosEnd:t(()=>ah,"setTextRangePosEnd"),setTextRangePosWidth:t(()=>ZX,"setTextRangePosWidth"),setTokenSourceMapRange:t(()=>Tge,"setTokenSourceMapRange"),setTypeNode:t(()=>wge,"setTypeNode"),setUILocale:t(()=>S_e,"setUILocale"),setValueDeclaration:t(()=>AF,"setValueDeclaration"),shouldAllowImportingTsExtension:t(()=>A6,"shouldAllowImportingTsExtension"),shouldPreserveConstEnums:t(()=>Rb,"shouldPreserveConstEnums"),shouldRewriteModuleSpecifier:t(()=>IF,"shouldRewriteModuleSpecifier"),shouldUseUriStyleNodeCoreModules:t(()=>FJ,"shouldUseUriStyleNodeCoreModules"),showModuleSpecifier:t(()=>Che,"showModuleSpecifier"),signatureHasRestParameter:t(()=>Df,"signatureHasRestParameter"),signatureToDisplayParts:t(()=>fre,"signatureToDisplayParts"),single:t(()=>VG,"single"),singleElementArray:t(()=>_w,"singleElementArray"),singleIterator:t(()=>u_e,"singleIterator"),singleOrMany:t(()=>zg,"singleOrMany"),singleOrUndefined:t(()=>Ug,"singleOrUndefined"),skipAlias:t(()=>Yu,"skipAlias"),skipConstraint:t(()=>Xte,"skipConstraint"),skipOuterExpressions:t(()=>il,"skipOuterExpressions"),skipParentheses:t(()=>po,"skipParentheses"),skipPartiallyEmittedExpressions:t(()=>Nm,"skipPartiallyEmittedExpressions"),skipTrivia:t(()=>Ma,"skipTrivia"),skipTypeChecking:t(()=>n6,"skipTypeChecking"),skipTypeCheckingIgnoringNoCheck:t(()=>Xhe,"skipTypeCheckingIgnoringNoCheck"),skipTypeParentheses:t(()=>O4,"skipTypeParentheses"),skipWhile:t(()=>w_e,"skipWhile"),sliceAfter:t(()=>GX,"sliceAfter"),some:t(()=>xt,"some"),sortAndDeduplicate:t(()=>VI,"sortAndDeduplicate"),sortAndDeduplicateDiagnostics:t(()=>EA,"sortAndDeduplicateDiagnostics"),sourceFileAffectingCompilerOptions:t(()=>sQ,"sourceFileAffectingCompilerOptions"),sourceFileMayBeEmitted:t(()=>QT,"sourceFileMayBeEmitted"),sourceMapCommentRegExp:t(()=>qQ,"sourceMapCommentRegExp"),sourceMapCommentRegExpDontCareLineStart:t(()=>Bye,"sourceMapCommentRegExpDontCareLineStart"),spacePart:t(()=>Zc,"spacePart"),spanMap:t(()=>UG,"spanMap"),startEndContainsRange:t(()=>CX,"startEndContainsRange"),startEndOverlapsWithStartEnd:t(()=>oJ,"startEndOverlapsWithStartEnd"),startOnNewLine:t(()=>wf,"startOnNewLine"),startTracing:t(()=>M_e,"startTracing"),startsWith:t(()=>fs,"startsWith"),startsWithDirectory:t(()=>FY,"startsWithDirectory"),startsWithUnderscore:t(()=>kre,"startsWithUnderscore"),startsWithUseStrict:t(()=>p0e,"startsWithUseStrict"),stringContainsAt:t(()=>Hbe,"stringContainsAt"),stringToToken:t(()=>GE,"stringToToken"),stripQuotes:t(()=>cm,"stripQuotes"),supportedDeclarationExtensions:t(()=>JU,"supportedDeclarationExtensions"),supportedJSExtensionsFlat:t(()=>r6,"supportedJSExtensionsFlat"),supportedLocaleDirectories:t(()=>dde,"supportedLocaleDirectories"),supportedTSExtensionsFlat:t(()=>JX,"supportedTSExtensionsFlat"),supportedTSImplementationExtensions:t(()=>o5,"supportedTSImplementationExtensions"),suppressLeadingAndTrailingTrivia:t(()=>vp,"suppressLeadingAndTrailingTrivia"),suppressLeadingTrivia:t(()=>mre,"suppressLeadingTrivia"),suppressTrailingTrivia:t(()=>Mbe,"suppressTrailingTrivia"),symbolEscapedNameNoDefault:t(()=>vJ,"symbolEscapedNameNoDefault"),symbolName:t(()=>tl,"symbolName"),symbolNameNoDefault:t(()=>rre,"symbolNameNoDefault"),symbolToDisplayParts:t(()=>u8,"symbolToDisplayParts"),sys:t(()=>ru,"sys"),sysLog:t(()=>N7,"sysLog"),tagNamesAreEquivalent:t(()=>o2,"tagNamesAreEquivalent"),takeWhile:t(()=>iY,"takeWhile"),targetOptionDeclaration:t(()=>nQ,"targetOptionDeclaration"),targetToLibMap:t(()=>ede,"targetToLibMap"),testFormatSettings:t(()=>CMe,"testFormatSettings"),textChangeRangeIsUnchanged:t(()=>lde,"textChangeRangeIsUnchanged"),textChangeRangeNewSpan:t(()=>u4,"textChangeRangeNewSpan"),textChanges:t(()=>Cn,"textChanges"),textOrKeywordPart:t(()=>ure,"textOrKeywordPart"),textPart:t(()=>ud,"textPart"),textRangeContainsPositionInclusive:t(()=>B7,"textRangeContainsPositionInclusive"),textRangeContainsTextSpan:t(()=>nde,"textRangeContainsTextSpan"),textRangeIntersectsWithTextSpan:t(()=>ode,"textRangeIntersectsWithTextSpan"),textSpanContainsPosition:t(()=>BY,"textSpanContainsPosition"),textSpanContainsTextRange:t(()=>UY,"textSpanContainsTextRange"),textSpanContainsTextSpan:t(()=>rde,"textSpanContainsTextSpan"),textSpanEnd:t(()=>Fc,"textSpanEnd"),textSpanIntersection:t(()=>cde,"textSpanIntersection"),textSpanIntersectsWith:t(()=>U7,"textSpanIntersectsWith"),textSpanIntersectsWithPosition:t(()=>ade,"textSpanIntersectsWithPosition"),textSpanIntersectsWithTextSpan:t(()=>sde,"textSpanIntersectsWithTextSpan"),textSpanIsEmpty:t(()=>tde,"textSpanIsEmpty"),textSpanOverlap:t(()=>ide,"textSpanOverlap"),textSpanOverlapsWith:t(()=>E7e,"textSpanOverlapsWith"),textSpansEqual:t(()=>V6,"textSpansEqual"),textToKeywordObj:t(()=>Qj,"textToKeywordObj"),timestamp:t(()=>jo,"timestamp"),toArray:t(()=>uw,"toArray"),toBuilderFileEmit:t(()=>nve,"toBuilderFileEmit"),toBuilderStateFileInfoForMultiEmit:t(()=>rve,"toBuilderStateFileInfoForMultiEmit"),toEditorSettings:t(()=>QL,"toEditorSettings"),toFileNameLowerCase:t(()=>fb,"toFileNameLowerCase"),toPath:t(()=>Bo,"toPath"),toProgramEmitPending:t(()=>ive,"toProgramEmitPending"),toSorted:t(()=>ip,"toSorted"),tokenIsIdentifierOrKeyword:t(()=>x_,"tokenIsIdentifierOrKeyword"),tokenIsIdentifierOrKeywordOrGreaterThan:t(()=>Vpe,"tokenIsIdentifierOrKeywordOrGreaterThan"),tokenToString:t(()=>Ta,"tokenToString"),trace:t(()=>ks,"trace"),tracing:t(()=>En,"tracing"),tracingEnabled:t(()=>A7,"tracingEnabled"),transferSourceFileChildren:t(()=>o0e,"transferSourceFileChildren"),transform:t(()=>nUe,"transform"),transformClassFields:t(()=>n1e,"transformClassFields"),transformDeclarations:t(()=>oee,"transformDeclarations"),transformECMAScriptModule:t(()=>aee,"transformECMAScriptModule"),transformES2015:t(()=>g1e,"transformES2015"),transformES2016:t(()=>h1e,"transformES2016"),transformES2017:t(()=>o1e,"transformES2017"),transformES2018:t(()=>c1e,"transformES2018"),transformES2019:t(()=>l1e,"transformES2019"),transformES2020:t(()=>u1e,"transformES2020"),transformES2021:t(()=>f1e,"transformES2021"),transformESDecorators:t(()=>a1e,"transformESDecorators"),transformESNext:t(()=>_1e,"transformESNext"),transformGenerators:t(()=>y1e,"transformGenerators"),transformImpliedNodeFormatDependentModule:t(()=>b1e,"transformImpliedNodeFormatDependentModule"),transformJsx:t(()=>m1e,"transformJsx"),transformLegacyDecorators:t(()=>s1e,"transformLegacyDecorators"),transformModule:t(()=>see,"transformModule"),transformNamedEvaluation:t(()=>mp,"transformNamedEvaluation"),transformNodes:t(()=>cL,"transformNodes"),transformSystemModule:t(()=>v1e,"transformSystemModule"),transformTypeScript:t(()=>r1e,"transformTypeScript"),transpile:t(()=>pje,"transpile"),transpileDeclaration:t(()=>fje,"transpileDeclaration"),transpileModule:t(()=>hSe,"transpileModule"),transpileOptionValueCompilerOptions:t(()=>U0e,"transpileOptionValueCompilerOptions"),tryAddToSet:t(()=>Lh,"tryAddToSet"),tryAndIgnoreErrors:t(()=>AJ,"tryAndIgnoreErrors"),tryCast:t(()=>si,"tryCast"),tryDirectoryExists:t(()=>PJ,"tryDirectoryExists"),tryExtractTSExtension:t(()=>SU,"tryExtractTSExtension"),tryFileExists:t(()=>d8,"tryFileExists"),tryGetClassExtendingExpressionWithTypeArguments:t(()=>yX,"tryGetClassExtendingExpressionWithTypeArguments"),tryGetClassImplementingOrExtendingExpressionWithTypeArguments:t(()=>vX,"tryGetClassImplementingOrExtendingExpressionWithTypeArguments"),tryGetDirectories:t(()=>DJ,"tryGetDirectories"),tryGetExtensionFromPath:t(()=>q0,"tryGetExtensionFromPath"),tryGetImportFromModuleSpecifier:t(()=>NF,"tryGetImportFromModuleSpecifier"),tryGetJSDocSatisfiesTypeNode:t(()=>ZU,"tryGetJSDocSatisfiesTypeNode"),tryGetModuleNameFromFile:t(()=>F5,"tryGetModuleNameFromFile"),tryGetModuleSpecifierFromDeclaration:t(()=>Nw,"tryGetModuleSpecifierFromDeclaration"),tryGetNativePerformanceHooks:t(()=>I_e,"tryGetNativePerformanceHooks"),tryGetPropertyAccessOrIdentifierToString:t(()=>XF,"tryGetPropertyAccessOrIdentifierToString"),tryGetPropertyNameOfBindingOrAssignmentElement:t(()=>Az,"tryGetPropertyNameOfBindingOrAssignmentElement"),tryGetSourceMappingURL:t(()=>Uye,"tryGetSourceMappingURL"),tryGetTextOfPropertyName:t(()=>E4,"tryGetTextOfPropertyName"),tryParseJson:t(()=>TU,"tryParseJson"),tryParsePattern:t(()=>Hw,"tryParsePattern"),tryParsePatterns:t(()=>f5,"tryParsePatterns"),tryParseRawSourceMap:t(()=>zye,"tryParseRawSourceMap"),tryReadDirectory:t(()=>vre,"tryReadDirectory"),tryReadFile:t(()=>N3,"tryReadFile"),tryRemoveDirectoryPrefix:t(()=>BX,"tryRemoveDirectoryPrefix"),tryRemoveExtension:t(()=>Yhe,"tryRemoveExtension"),tryRemovePrefix:t(()=>nY,"tryRemovePrefix"),tryRemoveSuffix:t(()=>x_e,"tryRemoveSuffix"),tscBuildOption:t(()=>AC,"tscBuildOption"),typeAcquisitionDeclarations:t(()=>Mz,"typeAcquisitionDeclarations"),typeAliasNamePart:t(()=>Abe,"typeAliasNamePart"),typeDirectiveIsEqualTo:t(()=>eme,"typeDirectiveIsEqualTo"),typeKeywords:t(()=>Kte,"typeKeywords"),typeParameterNamePart:t(()=>Nbe,"typeParameterNamePart"),typeToDisplayParts:t(()=>jL,"typeToDisplayParts"),unchangedPollThresholds:t(()=>Vj,"unchangedPollThresholds"),unchangedTextChangeRange:t(()=>nB,"unchangedTextChangeRange"),unescapeLeadingUnderscores:t(()=>Zi,"unescapeLeadingUnderscores"),unmangleScopedPackageName:t(()=>Z5,"unmangleScopedPackageName"),unorderedRemoveItem:t(()=>fw,"unorderedRemoveItem"),unprefixedNodeCoreModules:t(()=>pge,"unprefixedNodeCoreModules"),unreachableCodeIsError:t(()=>Lhe,"unreachableCodeIsError"),unsetNodeChildren:t(()=>jZ,"unsetNodeChildren"),unusedLabelIsError:t(()=>Rhe,"unusedLabelIsError"),unwrapInnermostStatementOfLabel:t(()=>FK,"unwrapInnermostStatementOfLabel"),unwrapParenthesizedExpression:t(()=>fge,"unwrapParenthesizedExpression"),updateErrorForNoInputFiles:t(()=>Hz,"updateErrorForNoInputFiles"),updateLanguageServiceSourceFile:t(()=>dne,"updateLanguageServiceSourceFile"),updateMissingFilePathsWatch:t(()=>gee,"updateMissingFilePathsWatch"),updateResolutionField:t(()=>C6,"updateResolutionField"),updateSharedExtendedConfigFileWatcher:t(()=>S$,"updateSharedExtendedConfigFileWatcher"),updateSourceFile:t(()=>ZZ,"updateSourceFile"),updateWatchingWildcardDirectories:t(()=>fL,"updateWatchingWildcardDirectories"),usingSingleLineStringWriter:t(()=>IA,"usingSingleLineStringWriter"),utf16EncodeAsString:t(()=>l4,"utf16EncodeAsString"),validateLocaleAndSetLanguage:t(()=>JY,"validateLocaleAndSetLanguage"),version:t(()=>be,"version"),versionMajorMinor:t(()=>G,"versionMajorMinor"),visitArray:t(()=>B3,"visitArray"),visitCommaListElements:t(()=>tL,"visitCommaListElements"),visitEachChild:t(()=>Ur,"visitEachChild"),visitFunctionBody:t(()=>ld,"visitFunctionBody"),visitIterationBody:t(()=>l_,"visitIterationBody"),visitLexicalEnvironment:t(()=>WQ,"visitLexicalEnvironment"),visitNode:t(()=>ut,"visitNode"),visitNodes:t(()=>rn,"visitNodes"),visitParameterList:t(()=>Wc,"visitParameterList"),walkUpBindingElementsAndPatterns:t(()=>yw,"walkUpBindingElementsAndPatterns"),walkUpOuterExpressions:t(()=>d0e,"walkUpOuterExpressions"),walkUpParenthesizedExpressions:t(()=>Om,"walkUpParenthesizedExpressions"),walkUpParenthesizedTypes:t(()=>RF,"walkUpParenthesizedTypes"),walkUpParenthesizedTypesAndGetParentAndChild:t(()=>qme,"walkUpParenthesizedTypesAndGetParentAndChild"),whitespaceOrMapCommentRegExp:t(()=>VQ,"whitespaceOrMapCommentRegExp"),writeCommentRange:t(()=>KA,"writeCommentRange"),writeFile:t(()=>mU,"writeFile"),writeFileEnsuringDirectories:t(()=>fX,"writeFileEnsuringDirectories"),zipWith:t(()=>sn,"zipWith")}),s.exports=F(W);var G="5.8",be="5.8.2",de=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(de||{}),se=[],Xe=new Map;function Ue(e){return e!==void 0?e.length:0}t(Ue,"length");function je(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a)return a}}t(je,"forEach");function Vt(e,r){if(e!==void 0)for(let i=e.length-1;i>=0;i--){let a=r(e[i],i);if(a)return a}}t(Vt,"forEachRight");function Ut(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a!==void 0)return a}}t(Ut,"firstDefined");function Ir(e,r){for(let i of e){let a=r(i);if(a!==void 0)return a}}t(Ir,"firstDefinedIterator");function wn(e,r,i){let a=i;if(e){let c=0;for(let u of e)a=r(a,u,c),c++}return a}t(wn,"reduceLeftIterator");function sn(e,r,i){let a=[];L.assertEqual(e.length,r.length);for(let c=0;c<e.length;c++)a.push(i(e[c],r[c],c));return a}t(sn,"zipWith");function Jn(e,r){if(e.length<=1)return e;let i=[];for(let a=0,c=e.length;a<c;a++)a!==0&&i.push(r),i.push(e[a]);return i}t(Jn,"intersperse");function kr(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return!1}return!0}t(kr,"every");function yr(e,r,i){if(e!==void 0)for(let a=i??0;a<e.length;a++){let c=e[a];if(r(c,a))return c}}t(yr,"find");function xs(e,r,i){if(e!==void 0)for(let a=i??e.length-1;a>=0;a--){let c=e[a];if(r(c,a))return c}}t(xs,"findLast");function bi(e,r,i){if(e===void 0)return-1;for(let a=i??0;a<e.length;a++)if(r(e[a],a))return a;return-1}t(bi,"findIndex");function fc(e,r,i){if(e===void 0)return-1;for(let a=i??e.length-1;a>=0;a--)if(r(e[a],a))return a;return-1}t(fc,"findLastIndex");function Ci(e,r,i=_b){if(e!==void 0){for(let a=0;a<e.length;a++)if(i(e[a],r))return!0}return!1}t(Ci,"contains");function bf(e,r,i){for(let a=i??0;a<e.length;a++)if(Ci(r,e.charCodeAt(a)))return a;return-1}t(bf,"indexOfAnyCharCode");function Bf(e,r){let i=0;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a];r(c,a)&&i++}return i}t(Bf,"countWhere");function In(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;if(a<i){let c=e.slice(0,a);for(a++;a<i;){let u=e[a];r(u)&&c.push(u),a++}return c}}return e}t(In,"filter");function NT(e,r){let i=0;for(let a=0;a<e.length;a++)r(e[a],a,e)&&(e[i]=e[a],i++);e.length=i}t(NT,"filterMutate");function bu(e){e.length=0}t(bu,"clear");function Dr(e,r){let i;if(e!==void 0){i=[];for(let a=0;a<e.length;a++)i.push(r(e[a],a))}return i}t(Dr,"map");function*IT(e,r){for(let i of e)yield r(i)}t(IT,"mapIterator");function el(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i],c=r(a,i);if(a!==c){let u=e.slice(0,i);for(u.push(c),i++;i<e.length;i++)u.push(r(e[i],i));return u}}return e}t(el,"sameMap");function Sf(e){let r=[];for(let i=0;i<e.length;i++){let a=e[i];a&&(Bs(a)?Zn(r,a):r.push(a))}return r}t(Sf,"flatten");function ka(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?i=Zn(i,c):i=Kr(i,c))}return i??se}t(ka,"flatMap");function tm(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?Zn(i,c):i.push(c))}return i}t(tm,"flatMapToMutable");function*Fy(e,r){for(let i of e){let a=r(i);a&&(yield*a)}}t(Fy,"flatMapIterator");function Ly(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=r(c,a);(i||c!==u||Bs(u))&&(i||(i=e.slice(0,a)),Bs(u)?Zn(i,u):i.push(u))}return i??e}t(Ly,"sameFlatMap");function qI(e,r){let i=[];for(let a=0;a<e.length;a++){let c=r(e[a],a);if(c===void 0)return;i.push(c)}return i}t(qI,"mapAllOrFail");function Wi(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c!==void 0&&i.push(c)}return i}t(Wi,"mapDefined");function*Fh(e,r){for(let i of e){let a=r(i);a!==void 0&&(yield a)}}t(Fh,"mapDefinedIterator");function JE(e,r,i){if(e.has(r))return e.get(r);let a=i();return e.set(r,a),a}t(JE,"getOrUpdate");function Lh(e,r){return e.has(r)?!1:(e.add(r),!0)}t(Lh,"tryAddToSet");function*u_e(e){yield e}t(u_e,"singleIterator");function UG(e,r,i){let a;if(e!==void 0){a=[];let c=e.length,u,_,h=0,m=0;for(;h<c;){for(;m<c;){let T=e[m];if(_=r(T,m),m===0)u=_;else if(_!==u)break;m++}if(h<m){let T=i(e.slice(h,m),u,h,m);T&&a.push(T),h=m}u=_,m++}}return a}t(UG,"spanMap");function f_e(e,r){if(e===void 0)return;let i=new Map;return e.forEach((a,c)=>{let[u,_]=r(c,a);i.set(u,_)}),i}t(f_e,"mapEntries");function xt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return!0}else return e.length>0;return!1}t(xt,"some");function zG(e,r,i){let a;for(let c=0;c<e.length;c++)r(e[c])?a=a===void 0?c:a:a!==void 0&&(i(a,c),a=void 0);a!==void 0&&i(a,e.length)}t(zG,"getRangesWhere");function us(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}t(us,"concatenate");function USt(e,r){return r}t(USt,"selectIndex");function Fj(e){return e.map(USt)}t(Fj,"indicesOf");function zSt(e,r,i){let a=Fj(e);WSt(e,a,i);let c=e[a[0]],u=[a[0]];for(let _=1;_<a.length;_++){let h=a[_],m=e[h];r(c,m)||(u.push(h),c=m)}return u.sort(),u.map(_=>e[_])}t(zSt,"deduplicateRelational");function $St(e,r){let i=[];for(let a=0;a<e.length;a++)Cd(i,e[a],r);return i}t($St,"deduplicateEquality");function OT(e,r,i){return e.length===0?[]:e.length===1?e.slice():i?zSt(e,r,i):$St(e,r)}t(OT,"deduplicate");function JSt(e,r){if(e.length===0)return se;let i=e[0],a=[i];for(let c=1;c<e.length;c++){let u=e[c];switch(r(u,i)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}a.push(i=u)}return a}t(JSt,"deduplicateSorted");function $G(){return[]}t($G,"createSortedArray");function ob(e,r,i,a,c){if(e.length===0)return e.push(r),!0;let u=lb(e,r,qo,i);if(u<0){if(a&&!c){let _=~u;if(_>0&&a(r,e[_-1]))return!1;if(_<e.length&&a(r,e[_]))return e.splice(_,1,r),!0}return e.splice(~u,0,r),!0}return c?(e.splice(u,0,r),!0):!1}t(ob,"insertSorted");function VI(e,r,i){return JSt(ip(e,r),i??r??lf)}t(VI,"sortAndDeduplicate");function ed(e,r,i=_b){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(!i(e[a],r[a],a))return!1;return!0}t(ed,"arrayIsEqualTo");function x7(e){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i];(r??!a)&&(r??(r=e.slice(0,i)),a&&r.push(a))}return r??e}t(x7,"compact");function __e(e,r,i){if(!r||!e||r.length===0||e.length===0)return r;let a=[];e:for(let c=0,u=0;u<r.length;u++){u>0&&L.assertGreaterThanOrEqual(i(r[u],r[u-1]),0);t:for(let _=c;c<e.length;c++)switch(c>_&&L.assertGreaterThanOrEqual(i(e[c],e[c-1]),0),i(r[u],e[c])){case-1:a.push(r[u]);continue e;case 0:continue e;case 1:continue t}}return a}t(__e,"relativeComplement");function Kr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}t(Kr,"append");function ow(e,r){return e===void 0?r:r===void 0?e:Bs(e)?Bs(r)?us(e,r):Kr(e,r):Bs(r)?Kr(r,e):[e,r]}t(ow,"combine");function p_e(e,r){return r<0?e.length+r:r}t(p_e,"toOffset");function Zn(e,r,i,a){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,a);i=i===void 0?0:p_e(r,i),a=a===void 0?r.length:p_e(r,a);for(let c=i;c<a&&c<r.length;c++)r[c]!==void 0&&e.push(r[c]);return e}t(Zn,"addRange");function Cd(e,r,i){return Ci(e,r,i)?!1:(e.push(r),!0)}t(Cd,"pushIfUnique");function Ry(e,r,i){return e!==void 0?(Cd(e,r,i),e):[r]}t(Ry,"appendIfUnique");function WSt(e,r,i){r.sort((a,c)=>i(e[a],e[c])||Vo(a,c))}t(WSt,"stableSortIndices");function ip(e,r){return e.length===0?se:e.slice().sort(r)}t(ip,"toSorted");function*JG(e){for(let r=e.length-1;r>=0;r--)yield e[r]}t(JG,"arrayReverseIterator");function WG(e,r,i,a){for(;i<a;){if(e[i]!==r[i])return!1;i++}return!0}t(WG,"rangeEquals");var cb=Array.prototype.at?(e,r)=>e?.at(r):(e,r)=>{if(e!==void 0&&(r=p_e(e,r),r<e.length))return e[r]};function Fl(e){return e===void 0||e.length===0?void 0:e[0]}t(Fl,"firstOrUndefined");function E7(e){if(e!==void 0)for(let r of e)return r}t(E7,"firstOrUndefinedIterator");function Ga(e){return L.assert(e.length!==0),e[0]}t(Ga,"first");function qG(e){for(let r of e)return r;L.fail("iterator is empty")}t(qG,"firstIterator");function nc(e){return e===void 0||e.length===0?void 0:e[e.length-1]}t(nc,"lastOrUndefined");function za(e){return L.assert(e.length!==0),e[e.length-1]}t(za,"last");function Ug(e){return e!==void 0&&e.length===1?e[0]:void 0}t(Ug,"singleOrUndefined");function VG(e){return L.checkDefined(Ug(e))}t(VG,"single");function zg(e){return e!==void 0&&e.length===1?e[0]:e}t(zg,"singleOrMany");function HG(e,r,i){let a=e.slice(0);return a[r]=i,a}t(HG,"replaceElement");function lb(e,r,i,a,c){return cw(e,i(r),i,a,c)}t(lb,"binarySearch");function cw(e,r,i,a,c){if(!xt(e))return-1;let u=c??0,_=e.length-1;for(;u<=_;){let h=u+(_-u>>1),m=i(e[h],h);switch(a(m,r)){case-1:u=h+1;break;case 0:return h;case 1:_=h-1;break}}return~u}t(cw,"binarySearchKey");function r_(e,r,i,a,c){if(e&&e.length>0){let u=e.length;if(u>0){let _=a===void 0||a<0?0:a,h=c===void 0||_+c>u-1?u-1:_+c,m;for(arguments.length<=2?(m=e[_],_++):m=i;_<=h;)m=r(m,e[_],_),_++;return m}}return i}t(r_,"reduceLeft");var IS=Object.prototype.hasOwnProperty;function Ro(e,r){return IS.call(e,r)}t(Ro,"hasProperty");function Lj(e,r){return IS.call(e,r)?e[r]:void 0}t(Lj,"getProperty");function Rh(e){let r=[];for(let i in e)IS.call(e,i)&&r.push(i);return r}t(Rh,"getOwnKeys");function MOe(e){let r=[];do{let i=Object.getOwnPropertyNames(e);for(let a of i)Cd(r,a)}while(e=Object.getPrototypeOf(e));return r}t(MOe,"getAllKeys");function lw(e){let r=[];for(let i in e)IS.call(e,i)&&r.push(e[i]);return r}t(lw,"getOwnValues");function d_e(e,r){let i=new Array(e);for(let a=0;a<e;a++)i[a]=r(a);return i}t(d_e,"arrayOf");function Ps(e,r){let i=[];for(let a of e)i.push(r?r(a):a);return i}t(Ps,"arrayFrom");function WE(e,...r){for(let i of r)if(i!==void 0)for(let a in i)Ro(i,a)&&(e[a]=i[a]);return e}t(WE,"assign");function m_e(e,r,i=_b){if(e===r)return!0;if(!e||!r)return!1;for(let a in e)if(IS.call(e,a)&&(!IS.call(r,a)||!i(e[a],r[a])))return!1;for(let a in r)if(IS.call(r,a)&&!IS.call(e,a))return!1;return!0}t(m_e,"equalOwnProperties");function dA(e,r,i=qo){let a=new Map;for(let c=0;c<e.length;c++){let u=e[c],_=r(u);_!==void 0&&a.set(_,i(u))}return a}t(dA,"arrayToMap");function h_e(e,r,i=qo){let a=[];for(let c=0;c<e.length;c++){let u=e[c];a[r(u)]=i(u)}return a}t(h_e,"arrayToNumericMap");function C7(e,r,i=qo){let a=rm();for(let c=0;c<e.length;c++){let u=e[c];a.add(r(u),i(u))}return a}t(C7,"arrayToMultiMap");function mA(e,r,i=qo){return Ps(C7(e,r).values(),i)}t(mA,"group");function GG(e,r){let i={};if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=`${r(c)}`;(i[u]??(i[u]=[])).push(c)}return i}t(GG,"groupBy");function g_e(e){let r={};for(let i in e)IS.call(e,i)&&(r[i]=e[i]);return r}t(g_e,"clone");function Rj(e,r){let i={};for(let a in r)IS.call(r,a)&&(i[a]=r[a]);for(let a in e)IS.call(e,a)&&(i[a]=e[a]);return i}t(Rj,"extend");function YG(e,r){for(let i in r)IS.call(r,i)&&(e[i]=r[i])}t(YG,"copyProperties");function ca(e,r){return r?.bind(e)}t(ca,"maybeBind");function rm(){let e=new Map;return e.add=qSt,e.remove=VSt,e}t(rm,"createMultiMap");function qSt(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}t(qSt,"multiMapAdd");function VSt(e,r){let i=this.get(e);i!==void 0&&(fw(i,r),i.length||this.delete(e))}t(VSt,"multiMapRemove");function k7(e){let r=e?.slice()??[],i=0;function a(){return i===r.length}t(a,"isEmpty");function c(..._){r.push(..._)}t(c,"enqueue");function u(){if(a())throw new Error("Queue is empty");let _=r[i];if(r[i]=void 0,i++,i>100&&i>r.length>>1){let h=r.length-i;r.copyWithin(0,i),r.length=h,i=0}return _}return t(u,"dequeue"),{enqueue:c,dequeue:u,isEmpty:a}}t(k7,"createQueue");function KG(e,r){let i=new Map,a=0;function*c(){for(let _ of i.values())Bs(_)?yield*_:yield _}t(c,"getElementIterator");let u={has(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);return Bs(m)?Ci(m,_,r):r(m,_)},add(_){let h=e(_);if(i.has(h)){let m=i.get(h);if(Bs(m))Ci(m,_,r)||(m.push(_),a++);else{let T=m;r(T,_)||(i.set(h,[T,_]),a++)}}else i.set(h,_),a++;return this},delete(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);if(Bs(m)){for(let T=0;T<m.length;T++)if(r(m[T],_))return m.length===1?i.delete(h):m.length===2?i.set(h,m[1-T]):UOe(m,T),a--,!0}else if(r(m,_))return i.delete(h),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(_){for(let h of Ps(i.values()))if(Bs(h))for(let m of h)_(m,m,u);else{let m=h;_(m,m,u)}},keys(){return c()},values(){return c()},*entries(){for(let _ of c())yield[_,_]},[Symbol.iterator]:()=>c(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return u}t(KG,"createSet");function Bs(e){return Array.isArray(e)}t(Bs,"isArray");function uw(e){return Bs(e)?e:[e]}t(uw,"toArray");function Fs(e){return typeof e=="string"}t(Fs,"isString");function ub(e){return typeof e=="number"}t(ub,"isNumber");function si(e,r){return e!==void 0&&r(e)?e:void 0}t(si,"tryCast");function ha(e,r){return e!==void 0&&r(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(r)}'.`)}t(ha,"cast");function go(e){}t(go,"noop");function My(){return!1}t(My,"returnFalse");function FT(){return!0}t(FT,"returnTrue");function LT(){}t(LT,"returnUndefined");function qo(e){return e}t(qo,"identity");function HSt(e){return e.toLowerCase()}t(HSt,"toLowerCase");var jOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function fb(e){return jOe.test(e)?e.replace(jOe,HSt):e}t(fb,"toFileNameLowerCase");function va(){throw new Error("Not implemented")}t(va,"notImplemented");function Uf(e){let r;return()=>(e&&(r=e(),e=void 0),r)}t(Uf,"memoize");function Mh(e){let r=new Map;return i=>{let a=`${typeof i}:${i}`,c=r.get(a);return c===void 0&&!r.has(a)&&(c=e(i),r.set(a,c)),c}}t(Mh,"memoizeOne");var y_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(y_e||{});function _b(e,r){return e===r}t(_b,"equateValues");function pb(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}t(pb,"equateStringsCaseInsensitive");function RT(e,r){return _b(e,r)}t(RT,"equateStringsCaseSensitive");function BOe(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}t(BOe,"compareComparableValues");function Vo(e,r){return BOe(e,r)}t(Vo,"compareValues");function Mj(e,r){return Vo(e?.start,r?.start)||Vo(e?.length,r?.length)}t(Mj,"compareTextSpans");function XG(e,r,i){for(let a=0;a<e.length;a++)r=Math.max(r,i(e[a]));return r}t(XG,"maxBy");function ZG(e,r){return r_(e,(i,a)=>r(i,a)===-1?i:a)}t(ZG,"min");function w7(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toUpperCase(),r=r.toUpperCase(),e<r?-1:e>r?1:0)}t(w7,"compareStringsCaseInsensitive");function v_e(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toLowerCase(),r=r.toLowerCase(),e<r?-1:e>r?1:0)}t(v_e,"compareStringsCaseInsensitiveEslintCompatible");function lf(e,r){return BOe(e,r)}t(lf,"compareStringsCaseSensitive");function hA(e){return e?w7:lf}t(hA,"getStringComparer");var GSt=(()=>{return r;function e(i,a,c){if(i===a)return 0;if(i===void 0)return-1;if(a===void 0)return 1;let u=c(i,a);return u<0?-1:u>0?1:0}function r(i){let a=new Intl.Collator(i,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(c,u)=>e(c,u,a)}})(),QG,eY;function b_e(){return eY}t(b_e,"getUILocale");function S_e(e){eY!==e&&(eY=e,QG=void 0)}t(S_e,"setUILocale");function D7(e,r){return QG??(QG=GSt(eY)),QG(e,r)}t(D7,"compareStringsCaseSensitiveUI");function T_e(e,r,i,a){return e===r?0:e===void 0?-1:r===void 0?1:a(e[i],r[i])}t(T_e,"compareProperties");function OS(e,r){return Vo(e?1:0,r?1:0)}t(OS,"compareBooleans");function MT(e,r,i){let a=Math.max(2,Math.floor(e.length*.34)),c=Math.floor(e.length*.4)+1,u;for(let _ of r){let h=i(_);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let m=YSt(e,h,c-.1);if(m===void 0)continue;L.assert(m<c),c=m,u=_}}return u}t(MT,"getSpellingSuggestion");function YSt(e,r,i){let a=new Array(r.length+1),c=new Array(r.length+1),u=i+.01;for(let h=0;h<=r.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let m=e.charCodeAt(h-1),T=Math.ceil(h>i?h-i:1),S=Math.floor(r.length>i+h?i+h:r.length);c[0]=h;let E=h;for(let A=1;A<T;A++)c[A]=u;for(let A=T;A<=S;A++){let I=e[h-1].toLowerCase()===r[A-1].toLowerCase()?a[A-1]+.1:a[A-1]+2,R=m===r.charCodeAt(A-1)?a[A-1]:Math.min(a[A]+1,c[A-1]+1,I);c[A]=R,E=Math.min(E,R)}for(let A=S+1;A<=r.length;A++)c[A]=u;if(E>i)return;let D=a;a=c,c=D}let _=a[r.length];return _>i?void 0:_}t(YSt,"levenshteinWithMax");function ic(e,r,i){let a=e.length-r.length;return a>=0&&(i?pb(e.slice(a),r):e.indexOf(r,a)===a)}t(ic,"endsWith");function gA(e,r){return ic(e,r)?e.slice(0,e.length-r.length):e}t(gA,"removeSuffix");function x_e(e,r){return ic(e,r)?e.slice(0,e.length-r.length):void 0}t(x_e,"tryRemoveSuffix");function tY(e){let r=e.length;for(let i=r-1;i>0;i--){let a=e.charCodeAt(i);if(a>=48&&a<=57)do--i,a=e.charCodeAt(i);while(i>0&&a>=48&&a<=57);else if(i>4&&(a===110||a===78)){if(--i,a=e.charCodeAt(i),a!==105&&a!==73||(--i,a=e.charCodeAt(i),a!==109&&a!==77))break;--i,a=e.charCodeAt(i)}else break;if(a!==45&&a!==46)break;r=i}return r===e.length?e:e.slice(0,r)}t(tY,"removeMinAndVersionNumbers");function HI(e,r){for(let i=0;i<e.length;i++)if(e[i]===r)return db(e,i),!0;return!1}t(HI,"orderedRemoveItem");function db(e,r){for(let i=r;i<e.length-1;i++)e[i]=e[i+1];e.pop()}t(db,"orderedRemoveItemAt");function UOe(e,r){e[r]=e[e.length-1],e.pop()}t(UOe,"unorderedRemoveItemAt");function fw(e,r){return KSt(e,i=>i===r)}t(fw,"unorderedRemoveItem");function KSt(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return UOe(e,i),!0;return!1}t(KSt,"unorderedRemoveFirstItemWhere");function Hu(e){return e?qo:fb}t(Hu,"createGetCanonicalFileName");function E_e({prefix:e,suffix:r}){return`${e}*${r}`}t(E_e,"patternText");function C_e(e,r){return L.assert(jj(e,r)),r.substring(e.prefix.length,r.length-e.suffix.length)}t(C_e,"matchedText");function rY(e,r,i){let a,c=-1;for(let u=0;u<e.length;u++){let _=e[u],h=r(_);h.prefix.length>c&&jj(h,i)&&(c=h.prefix.length,a=_)}return a}t(rY,"findBestPatternMatch");function fs(e,r,i){return i?pb(e.slice(0,r.length),r):e.lastIndexOf(r,0)===0}t(fs,"startsWith");function GI(e,r){return fs(e,r)?e.substr(r.length):e}t(GI,"removePrefix");function nY(e,r,i=qo){return fs(i(e),i(r))?e.substring(r.length):void 0}t(nY,"tryRemovePrefix");function jj({prefix:e,suffix:r},i){return i.length>=e.length+r.length&&fs(i,e)&&ic(i,r)}t(jj,"isPatternMatch");function Bj(e,r){return i=>e(i)&&r(i)}t(Bj,"and");function sp(...e){return(...r)=>{let i;for(let a of e)if(i=a(...r),i)return i;return i}}t(sp,"or");function Uj(e){return(...r)=>!e(...r)}t(Uj,"not");function zOe(e){}t(zOe,"assertType");function _w(e){return e===void 0?void 0:[e]}t(_w,"singleElementArray");function zj(e,r,i,a,c,u){u??(u=go);let _=0,h=0,m=e.length,T=r.length,S=!1;for(;_<m&&h<T;){let E=e[_],D=r[h],A=i(E,D);A===-1?(a(E),_++,S=!0):A===1?(c(D),h++,S=!0):(u(D,E),_++,h++)}for(;_<m;)a(e[_++]),S=!0;for(;h<T;)c(r[h++]),S=!0;return S}t(zj,"enumerateInsertsAndDeletes");function k_e(e){let r=[];return $Oe(e,r,void 0,0),r}t(k_e,"cartesianProduct");function $Oe(e,r,i,a){for(let c of e[a]){let u;i?(u=i.slice(),u.push(c)):u=[c],a===e.length-1?r.push(u):$Oe(e,r,u,a+1)}}t($Oe,"cartesianProductWorker");function iY(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(0,a)}}t(iY,"takeWhile");function w_e(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(a)}}t(w_e,"skipWhile");function sY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof uo<"u"}t(sY,"isNodeLikeSystem");var D_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(D_e||{}),L;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(rt){return e.currentLogLevel<=rt}t(i,"shouldLog"),e.shouldLog=i;function a(rt,Pt){e.loggingHost&&i(rt)&&e.loggingHost.log(rt,Pt)}t(a,"logMessage");function c(rt){a(3,rt)}t(c,"log"),e.log=c,(rt=>{function Pt(fi){a(1,fi)}t(Pt,"error2"),rt.error=Pt;function br(fi){a(2,fi)}t(br,"warn"),rt.warn=br;function pn(fi){a(3,fi)}t(pn,"log2"),rt.log=pn;function pi(fi){a(4,fi)}t(pi,"trace2"),rt.trace=pi})(c=e.log||(e.log={}));let u={};function _(){return r}t(_,"getAssertionLevel"),e.getAssertionLevel=_;function h(rt){let Pt=r;if(r=rt,rt>Pt)for(let br of Rh(u)){let pn=u[br];pn!==void 0&&e[br]!==pn.assertion&&rt>=pn.level&&(e[br]=pn,u[br]=void 0)}}t(h,"setAssertionLevel"),e.setAssertionLevel=h;function m(rt){return r>=rt}t(m,"shouldAssert"),e.shouldAssert=m;function T(rt,Pt){return m(rt)?!0:(u[Pt]={level:rt,assertion:e[Pt]},e[Pt]=go,!1)}t(T,"shouldAssertFunction");function S(rt,Pt){debugger;let br=new Error(rt?`Debug Failure. ${rt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(br,Pt||S),br}t(S,"fail"),e.fail=S;function E(rt,Pt,br){return S(`${Pt||"Unexpected node."}\r
114
114
  Node ${Ne(rt.kind)} was unexpected.`,br||E)}t(E,"failBadSyntaxKind"),e.failBadSyntaxKind=E;function D(rt,Pt,br,pn){rt||(Pt=Pt?`False expression: ${Pt}`:"False expression.",br&&(Pt+=`\r
115
115
  Verbose Debug Information: `+(typeof br=="string"?br:br())),S(Pt,pn||D))}t(D,"assert"),e.assert=D;function A(rt,Pt,br,pn,pi){if(rt!==Pt){let fi=br?pn?`${br} ${pn}`:br:"";S(`Expected ${rt} === ${Pt}. ${fi}`,pi||A)}}t(A,"assertEqual"),e.assertEqual=A;function I(rt,Pt,br,pn){rt>=Pt&&S(`Expected ${rt} < ${Pt}. ${br||""}`,pn||I)}t(I,"assertLessThan"),e.assertLessThan=I;function R(rt,Pt,br){rt>Pt&&S(`Expected ${rt} <= ${Pt}`,br||R)}t(R,"assertLessThanOrEqual"),e.assertLessThanOrEqual=R;function M(rt,Pt,br){rt<Pt&&S(`Expected ${rt} >= ${Pt}`,br||M)}t(M,"assertGreaterThanOrEqual"),e.assertGreaterThanOrEqual=M;function U(rt,Pt,br){rt==null&&S(Pt,br||U)}t(U,"assertIsDefined"),e.assertIsDefined=U;function q(rt,Pt,br){return U(rt,Pt,br||q),rt}t(q,"checkDefined"),e.checkDefined=q;function J(rt,Pt,br){for(let pn of rt)U(pn,Pt,br||J)}t(J,"assertEachIsDefined"),e.assertEachIsDefined=J;function K(rt,Pt,br){return J(rt,Pt,br||K),rt}t(K,"checkEachDefined"),e.checkEachDefined=K;function Q(rt,Pt="Illegal value:",br){let pn=typeof rt=="object"&&Ro(rt,"kind")&&Ro(rt,"pos")?"SyntaxKind: "+Ne(rt.kind):JSON.stringify(rt);return S(`${Pt} ${pn}`,br||Q)}t(Q,"assertNever"),e.assertNever=Q;function ne(rt,Pt,br,pn){T(1,"assertEachNode")&&D(Pt===void 0||kr(rt,Pt),br||"Unexpected node.",()=>`Node array did not pass test '${he(Pt)}'.`,pn||ne)}t(ne,"assertEachNode"),e.assertEachNode=ne;function oe(rt,Pt,br,pn){T(1,"assertNode")&&D(rt!==void 0&&(Pt===void 0||Pt(rt)),br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} did not pass test '${he(Pt)}'.`,pn||oe)}t(oe,"assertNode"),e.assertNode=oe;function ee(rt,Pt,br,pn){T(1,"assertNotNode")&&D(rt===void 0||Pt===void 0||!Pt(rt),br||"Unexpected node.",()=>`Node ${Ne(rt.kind)} should not have passed test '${he(Pt)}'.`,pn||ee)}t(ee,"assertNotNode"),e.assertNotNode=ee;function De(rt,Pt,br,pn){T(1,"assertOptionalNode")&&D(Pt===void 0||rt===void 0||Pt(rt),br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} did not pass test '${he(Pt)}'.`,pn||De)}t(De,"assertOptionalNode"),e.assertOptionalNode=De;function fe(rt,Pt,br,pn){T(1,"assertOptionalToken")&&D(Pt===void 0||rt===void 0||rt.kind===Pt,br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} was not a '${Ne(Pt)}' token.`,pn||fe)}t(fe,"assertOptionalToken"),e.assertOptionalToken=fe;function te(rt,Pt,br){T(1,"assertMissingNode")&&D(rt===void 0,Pt||"Unexpected node.",()=>`Node ${Ne(rt.kind)} was unexpected'.`,br||te)}t(te,"assertMissingNode"),e.assertMissingNode=te;function me(rt){}t(me,"type"),e.type=me;function he(rt){if(typeof rt!="function")return"";if(Ro(rt,"name"))return rt.name;{let Pt=Function.prototype.toString.call(rt),br=/^function\s+([\w$]+)\s*\(/.exec(Pt);return br?br[1]:""}}t(he,"getFunctionName"),e.getFunctionName=he;function ve(rt){return`{ name: ${Zi(rt.escapedName)}; flags: ${Te(rt.flags)}; declarations: ${Dr(rt.declarations,Pt=>Ne(Pt.kind))} }`}t(ve,"formatSymbol"),e.formatSymbol=ve;function we(rt=0,Pt,br){let pn=ie(Pt);if(rt===0)return pn.length>0&&pn[0][0]===0?pn[0][1]:"0";if(br){let pi=[],fi=rt;for(let[qi,Ys]of pn){if(qi>rt)break;qi!==0&&qi&rt&&(pi.push(Ys),fi&=~qi)}if(fi===0)return pi.join("|")}else for(let[pi,fi]of pn)if(pi===rt)return fi;return rt.toString()}t(we,"formatEnum"),e.formatEnum=we;let Ae=new Map;function ie(rt){let Pt=Ae.get(rt);if(Pt)return Pt;let br=[];for(let pi in rt){let fi=rt[pi];typeof fi=="number"&&br.push([fi,pi])}let pn=ip(br,(pi,fi)=>Vo(pi[0],fi[0]));return Ae.set(rt,pn),pn}t(ie,"getEnumMembers");function Ne(rt){return we(rt,lY,!1)}t(Ne,"formatSyntaxKind"),e.formatSyntaxKind=Ne;function tt(rt){return we(rt,xY,!1)}t(tt,"formatSnippetKind"),e.formatSnippetKind=tt;function ze(rt){return we(rt,SY,!1)}t(ze,"formatScriptKind"),e.formatScriptKind=ze;function ge(rt){return we(rt,uY,!0)}t(ge,"formatNodeFlags"),e.formatNodeFlags=ge;function Le(rt){return we(rt,gY,!0)}t(Le,"formatNodeCheckFlags"),e.formatNodeCheckFlags=Le;function Ee(rt){return we(rt,fY,!0)}t(Ee,"formatModifierFlags"),e.formatModifierFlags=Ee;function _t(rt){return we(rt,TY,!0)}t(_t,"formatTransformFlags"),e.formatTransformFlags=_t;function yt(rt){return we(rt,EY,!0)}t(yt,"formatEmitFlags"),e.formatEmitFlags=yt;function Te(rt){return we(rt,hY,!0)}t(Te,"formatSymbolFlags"),e.formatSymbolFlags=Te;function et(rt){return we(rt,yY,!0)}t(et,"formatTypeFlags"),e.formatTypeFlags=et;function _e(rt){return we(rt,bY,!0)}t(_e,"formatSignatureFlags"),e.formatSignatureFlags=_e;function qe(rt){return we(rt,vY,!0)}t(qe,"formatObjectFlags"),e.formatObjectFlags=qe;function Be(rt){return we(rt,Jj,!0)}t(Be,"formatFlowFlags"),e.formatFlowFlags=Be;function Re(rt){return we(rt,_Y,!0)}t(Re,"formatRelationComparisonResult"),e.formatRelationComparisonResult=Re;function nt(rt){return we(rt,BQ,!0)}t(nt,"formatCheckMode"),e.formatCheckMode=nt;function It(rt){return we(rt,UQ,!0)}t(It,"formatSignatureCheckMode"),e.formatSignatureCheckMode=It;function Qt(rt){return we(rt,jQ,!0)}t(Qt,"formatTypeFacts"),e.formatTypeFacts=Qt;let xr=!1,Gr;function St(rt){"__debugFlowFlags"in rt||Object.defineProperties(rt,{__tsDebuggerDisplay:{value(){let Pt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",br=this.flags&-2048;return`${Pt}${br?` (${Be(br)})`:""}`}},__debugFlowFlags:{get(){return we(this.flags,Jj,!0)}},__debugToString:{value(){return ki(this)}}})}t(St,"attachFlowNodeDebugInfoWorker");function sr(rt){return xr&&(typeof Object.setPrototypeOf=="function"?(Gr||(Gr=Object.create(Object.prototype),St(Gr)),Object.setPrototypeOf(rt,Gr)):St(rt)),rt}t(sr,"attachFlowNodeDebugInfo"),e.attachFlowNodeDebugInfo=sr;let cn;function Ii(rt){"__tsDebuggerDisplay"in rt||Object.defineProperties(rt,{__tsDebuggerDisplay:{value(Pt){return Pt=String(Pt).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${Pt}`}}})}t(Ii,"attachNodeArrayDebugInfoWorker");function ws(rt){xr&&(typeof Object.setPrototypeOf=="function"?(cn||(cn=Object.create(Array.prototype),Ii(cn)),Object.setPrototypeOf(rt,cn)):Ii(rt))}t(ws,"attachNodeArrayDebugInfo"),e.attachNodeArrayDebugInfo=ws;function zt(){if(xr)return;let rt=new WeakMap,Pt=new WeakMap;Object.defineProperties(Ku.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let pn=this.flags&33554432?"TransientSymbol":"Symbol",pi=this.flags&-33554433;return`${pn} '${tl(this)}'${pi?` (${Te(pi)})`:""}`}},__debugFlags:{get(){return Te(this.flags)}}}),Object.defineProperties(Ku.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let pn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",pi=this.flags&524288?this.objectFlags&-1344:0;return`${pn}${this.symbol?` '${tl(this.symbol)}'`:""}${pi?` (${qe(pi)})`:""}`}},__debugFlags:{get(){return et(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?qe(this.objectFlags):""}},__debugTypeToString:{value(){let pn=rt.get(this);return pn===void 0&&(pn=this.checker.typeToString(this),rt.set(this,pn)),pn}}}),Object.defineProperties(Ku.getSignatureConstructor().prototype,{__debugFlags:{get(){return _e(this.flags)}},__debugSignatureToString:{value(){var pn;return(pn=this.checker)==null?void 0:pn.signatureToString(this)}}});let br=[Ku.getNodeConstructor(),Ku.getIdentifierConstructor(),Ku.getTokenConstructor(),Ku.getSourceFileConstructor()];for(let pn of br)Ro(pn.prototype,"__debugKind")||Object.defineProperties(pn.prototype,{__tsDebuggerDisplay:{value(){return`${_c(this)?"GeneratedIdentifier":Ye(this)?`Identifier '${Xn(this)}'`:Qi(this)?`PrivateIdentifier '${Xn(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:P_(this)?`NumericLiteral ${this.text}`:m3(this)?`BigIntLiteral ${this.text}n`:cc(this)?"TypeParameterDeclaration":rs(this)?"ParameterDeclaration":wc(this)?"ConstructorDeclaration":Md(this)?"GetAccessorDeclaration":q_(this)?"SetAccessorDeclaration":iD(this)?"CallSignatureDeclaration":E5(this)?"ConstructSignatureDeclaration":zb(this)?"IndexSignatureDeclaration":sD(this)?"TypePredicateNode":pp(this)?"TypeReferenceNode":Kg(this)?"FunctionTypeNode":o6(this)?"ConstructorTypeNode":lx(this)?"TypeQueryNode":o_(this)?"TypeLiteralNode":C5(this)?"ArrayTypeNode":aD(this)?"TupleTypeNode":dz(this)?"OptionalTypeNode":mz(this)?"RestTypeNode":nv(this)?"UnionTypeNode":oD(this)?"IntersectionTypeNode":ux(this)?"ConditionalTypeNode":bC(this)?"InferTypeNode":SC(this)?"ParenthesizedTypeNode":v3(this)?"ThisTypeNode":KS(this)?"TypeOperatorNode":fx(this)?"IndexedAccessTypeNode":TC(this)?"MappedTypeNode":iv(this)?"LiteralTypeNode":c6(this)?"NamedTupleMember":Zh(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${ge(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return ge(this.flags)}},__debugModifierFlags:{get(){return Ee(fhe(this))}},__debugTransformFlags:{get(){return _t(this.transformFlags)}},__debugIsParseTreeNode:{get(){return f4(this)}},__debugEmitFlags:{get(){return yt(Ya(this))}},__debugGetText:{value(pi){if(Mo(this))return"";let fi=Pt.get(this);if(fi===void 0){let qi=zs(this),Ys=qi&&Hr(qi);fi=Ys?JT(Ys,qi,pi):"",Pt.set(this,fi)}return fi}}});xr=!0}t(zt,"enableDebugInfo"),e.enableDebugInfo=zt;function ti(rt){let Pt=rt&7,br=Pt===0?"in out":Pt===3?"[bivariant]":Pt===2?"in":Pt===1?"out":Pt===4?"[independent]":"";return rt&8?br+=" (unmeasurable)":rt&16&&(br+=" (unreliable)"),br}t(ti,"formatVariance"),e.formatVariance=ti;class hs{static{t(this,"DebugTypeMapper")}__debugToString(){var Pt;switch(this.kind){case 3:return((Pt=this.debugInfo)==null?void 0:Pt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return sn(this.sources,this.targets||Dr(this.sources,()=>"any"),(br,pn)=>`${br.__debugTypeToString()} -> ${typeof pn=="string"?pn:pn.__debugTypeToString()}`).join(", ");case 2:return sn(this.sources,this.targets,(br,pn)=>`${br.__debugTypeToString()} -> ${pn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
116
116
  `).join(`
@@ -542,11 +542,11 @@ Project '${h.projectName}' (${A8[h.projectKind]}) ${u}
542
542
  `,u++},"addProjectInfo");this.projectService.externalProjects.forEach(_),this.projectService.configuredProjects.forEach(_),this.projectService.inferredProjects.forEach(_)}}this.logger.msg(c,"Err")}send(r){if(r.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${_2(r)}`);return}this.writeMessage(r)}writeMessage(r){let i=kCe(r,this.logger,this.byteLength,this.host.newLine);this.host.write(i)}event(r,i){this.send(wCe(i,r))}doOutput(r,i,a,c,u,_){let h={seq:0,type:"response",command:i,request_seq:a,success:c,performanceData:u&&eYe(u)};if(c){let m;if(Bs(r))h.body=r,m=r.metadata,delete r.metadata;else if(typeof r=="object")if(r.metadata){let{metadata:T,...S}=r;h.body=S,m=T}else h.body=r;else h.body=r;m&&(h.metadata=m)}else L.assert(r===void 0);_&&(h.message=_),this.send(h)}semanticCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"semanticCheck",{file:r,configFilePath:i.canonicalConfigFilePath});let _=JGe(i,r)?fu:i.getLanguageService().getSemanticDiagnostics(r).filter(h=>!!h.file);this.sendDiagnosticsEvent(r,i,_,"semanticDiag",u),(c=En)==null||c.pop()}syntacticCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"syntacticCheck",{file:r,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(r,i,i.getLanguageService().getSyntacticDiagnostics(r),"syntaxDiag",u),(c=En)==null||c.pop()}suggestionCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"suggestionCheck",{file:r,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(r,i,i.getLanguageService().getSuggestionDiagnostics(r),"suggestionDiag",u),(c=En)==null||c.pop()}regionSemanticCheck(r,i,a){var c,u,_;let h=jo();(c=En)==null||c.push(En.Phase.Session,"regionSemanticCheck",{file:r,configFilePath:i.canonicalConfigFilePath});let m;if(!this.shouldDoRegionCheck(r)||!(m=i.getLanguageService().getRegionSemanticDiagnostics(r,a))){(u=En)==null||u.pop();return}this.sendDiagnosticsEvent(r,i,m.diagnostics,"regionSemanticDiag",h,m.spans),(_=En)==null||_.pop()}shouldDoRegionCheck(r){var i;let a=(i=this.projectService.getScriptInfoForNormalizedPath(r))==null?void 0:i.textStorage.getLineInfo().getLineCount();return!!(a&&a>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(r,i,a,c,u,_){try{let h=L.checkDefined(i.getScriptInfo(r)),m=jo()-u,T={file:r,diagnostics:a.map(S=>WGe(r,i,S)),spans:_?.map(S=>ug(S,h))};this.event(T,c),this.addDiagnosticsPerformanceData(r,c,m)}catch(h){this.logError(h,c)}}updateErrorCheck(r,i,a,c=!0){if(i.length===0)return;L.assert(!this.suppressDiagnosticEvents);let u=this.changeSeq,_=Math.min(a,200),h=0,m=t(()=>{if(h++,i.length>h)return r.delay("checkOne",_,S)},"goNext"),T=t((E,D)=>{if(this.semanticCheck(E,D),this.changeSeq===u){if(this.getPreferences(E).disableSuggestions)return m();r.immediate("suggestionCheck",()=>{this.suggestionCheck(E,D),m()})}},"doSemanticCheck"),S=t(()=>{if(this.changeSeq!==u)return;let E,D=i[h];if(Fs(D)?D=this.toPendingErrorCheck(D):"ranges"in D&&(E=D.ranges,D=this.toPendingErrorCheck(D.file)),!D)return m();let{fileName:A,project:I}=D;if(hm(I),!!I.containsFile(A,c)&&(this.syntacticCheck(A,I),this.changeSeq===u)){if(I.projectService.serverMode!==0)return m();if(E)return r.immediate("regionSemanticCheck",()=>{let R=this.projectService.getScriptInfoForNormalizedPath(A);R&&this.regionSemanticCheck(A,I,E.map(M=>this.getRange({file:A,...M},R))),this.changeSeq===u&&r.immediate("semanticCheck",()=>T(A,I))});r.immediate("semanticCheck",()=>T(A,I))}},"checkOne");i.length>h&&this.changeSeq===u&&r.delay("checkOne",a,S)}cleanProjects(r,i){if(i){this.logger.info(`cleaning ${r}`);for(let a of i)a.getLanguageService(!1).cleanupSemanticCache(),a.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ps(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r);return a.getEncodedSyntacticClassifications(i,r)}getEncodedSemanticClassifications(r){let{file:i,project:a}=this.getFileAndProject(r),c=r.format==="2020"?"2020":"original";return a.getLanguageService().getEncodedSemanticClassifications(i,r,c)}getProject(r){return r===void 0?void 0:this.projectService.findProject(r)}getConfigFileAndProject(r){let i=this.getProject(r.projectFileName),a=Io(r.file);return{configFile:i&&i.hasConfigFile(a)?a:void 0,project:i}}getConfigFileDiagnostics(r,i,a){let c=i.getAllProjectErrors(),u=i.getLanguageService().getCompilerOptionsDiagnostics(),_=In(us(c,u),h=>!!h.file&&h.file.fileName===r);return a?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(_):Dr(_,h=>AR(h,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(r){return r.map(i=>({message:sg(i.messageText,this.host.newLine),start:i.start,length:i.length,category:VE(i),code:i.code,source:i.source,startLocation:i.file&&oN(_a(i.file,i.start)),endLocation:i.file&&oN(_a(i.file,i.start+i.length)),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Dr(i.relatedInformation,Gie)}))}getCompilerOptionsDiagnostics(r){let i=this.getProject(r.projectFileName);return this.convertToDiagnosticsWithLinePosition(In(i.getLanguageService().getCompilerOptionsDiagnostics(),a=>!a.file),void 0)}convertToDiagnosticsWithLinePosition(r,i){return r.map(a=>({message:sg(a.messageText,this.host.newLine),start:a.start,length:a.length,category:VE(a),code:a.code,source:a.source,startLocation:i&&i.positionToLineOffset(a.start),endLocation:i&&i.positionToLineOffset(a.start+a.length),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:Dr(a.relatedInformation,Gie)}))}getDiagnosticsWorker(r,i,a,c){let{project:u,file:_}=this.getFileAndProject(r);if(i&&JGe(u,_))return fu;let h=u.getScriptInfoForNormalizedPath(_),m=a(u,_);return c?this.convertToDiagnosticsWithLinePosition(m,h):m.map(T=>WGe(_,u,T))}getDefinition(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=this.mapDefinitionInfoLocations(c.getLanguageService().getDefinitionAtPosition(a,u)||fu,c);return i?this.mapDefinitionInfo(_,c):_.map(Zle.mapToOriginalLocation)}mapDefinitionInfoLocations(r,i){return r.map(a=>{let c=XGe(a,i);return c?{...c,containerKind:a.containerKind,containerName:a.containerName,kind:a.kind,name:a.name,failedAliasResolution:a.failedAliasResolution,...a.unverified&&{unverified:a.unverified}}:a})}getDefinitionAndBoundSpan(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=L.checkDefined(c.getScriptInfo(a)),h=c.getLanguageService().getDefinitionAndBoundSpan(a,u);if(!h||!h.definitions)return{definitions:fu,textSpan:void 0};let m=this.mapDefinitionInfoLocations(h.definitions,c),{textSpan:T}=h;return i?{definitions:this.mapDefinitionInfo(m,c),textSpan:ug(T,_)}:{definitions:m.map(Zle.mapToOriginalLocation),textSpan:T}}findSourceDefinition(r){var i;let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=c.getLanguageService().getDefinitionAtPosition(a,u),h=this.mapDefinitionInfoLocations(_||fu,c).slice();if(this.projectService.serverMode===0&&(!xt(h,A=>Io(A.fileName)!==a&&!A.isAmbient)||xt(h,A=>!!A.failedAliasResolution))){let A=KG(U=>U.textSpan.start,are(this.host.useCaseSensitiveFileNames));h?.forEach(U=>A.add(U));let I=c.getNoDtsResolutionProject(a),R=I.getLanguageService(),M=(i=R.getDefinitionAtPosition(a,u,!0,!1))==null?void 0:i.filter(U=>Io(U.fileName)!==a);if(xt(M))for(let U of M){if(U.unverified){let q=E(U,c.getLanguageService().getProgram(),R.getProgram());if(xt(q)){for(let J of q)A.add(J);continue}}A.add(U)}else{let U=h.filter(q=>Io(q.fileName)!==a&&q.isAmbient);for(let q of xt(U)?U:S()){let J=T(q.fileName,a,I);if(!J)continue;let K=this.projectService.getOrCreateScriptInfoNotOpenedByClient(J,I.currentDirectory,I.directoryStructureHost,!1);if(!K)continue;I.containsScriptInfo(K)||(I.addRoot(K),I.updateGraph());let Q=R.getProgram(),ne=L.checkDefined(Q.getSourceFile(J));for(let oe of D(q.name,ne,Q))A.add(oe)}}h=Ps(A.values())}return h=h.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(h,c);function T(A,I,R){var M,U,q;let J=KU(A);if(J&&A.lastIndexOf(K0)===J.topLevelNodeModulesIndex){let K=A.substring(0,J.packageRootIndex),Q=(M=c.getModuleResolutionCache())==null?void 0:M.getPackageJsonInfoCache(),ne=c.getCompilationSettings(),oe=M3(bs(K,c.getCurrentDirectory()),R3(Q,c,ne));if(!oe)return;let ee=DQ(oe,{moduleResolution:2},c,c.getModuleResolutionCache()),De=A.substring(J.topLevelPackageNameIndex+1,J.packageRootIndex),fe=j3(Z5(De)),te=c.toPath(A);if(ee&&xt(ee,me=>c.toPath(me)===te))return(U=R.resolutionCache.resolveSingleModuleNameWithoutWatching(fe,I).resolvedModule)==null?void 0:U.resolvedFileName;{let me=A.substring(J.packageRootIndex+1),he=`${fe}/${Vf(me)}`;return(q=R.resolutionCache.resolveSingleModuleNameWithoutWatching(he,I).resolvedModule)==null?void 0:q.resolvedFileName}}}t(T,"findImplementationFileFromDtsFileName");function S(){let A=c.getLanguageService(),I=A.getProgram(),R=N_(I.getSourceFile(a),u);return(fo(R)||Ye(R))&&Zo(R.parent)&&khe(R,M=>{var U;if(M===R)return;let q=(U=A.getDefinitionAtPosition(a,M.getStart(),!0,!1))==null?void 0:U.filter(J=>Io(J.fileName)!==a&&J.isAmbient).map(J=>({fileName:J.fileName,name:Nd(R)}));if(xt(q))return q})||fu}t(S,"getAmbientCandidatesByClimbingAccessChain");function E(A,I,R){var M;let U=R.getSourceFile(A.fileName);if(!U)return;let q=N_(I.getSourceFile(a),u),J=I.getTypeChecker().getSymbolAtLocation(q),K=J&&dc(J,276);if(!K)return;let Q=((M=K.propertyName)==null?void 0:M.text)||K.name.text;return D(Q,U,R)}t(E,"tryRefineDefinition");function D(A,I,R){let M=ec.Core.getTopMostDeclarationNamesInFile(A,I);return Wi(M,U=>{let q=R.getTypeChecker().getSymbolAtLocation(U),J=F4(U);if(q&&J)return rN.createDefinitionInfo(J,R.getTypeChecker(),q,J,!0)})}t(D,"searchForDeclaration")}getEmitOutput(r){let{file:i,project:a}=this.getFileAndProject(r);if(!a.shouldEmitFile(a.getScriptInfo(i)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let c=a.getLanguageService().getEmitOutput(i);return r.richResponse?{...c,diagnostics:r.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c.diagnostics):c.diagnostics.map(u=>AR(u,!0))}:c}mapJSDocTagInfo(r,i,a){return r?r.map(c=>{var u;return{...c,text:a?this.mapDisplayParts(c.text,i):(u=c.text)==null?void 0:u.map(_=>_.text).join("")}}):[]}mapDisplayParts(r,i){return r?r.map(a=>a.kind!=="linkName"?a:{...a,target:this.toFileSpan(a.target.fileName,a.target.textSpan,i)}):[]}mapSignatureHelpItems(r,i,a){return r.map(c=>({...c,documentation:this.mapDisplayParts(c.documentation,i),parameters:c.parameters.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,i)})),tags:this.mapJSDocTagInfo(c.tags,i,a)}))}mapDefinitionInfo(r,i){return r.map(a=>({...this.toFileSpanWithContext(a.fileName,a.textSpan,a.contextSpan,i),...a.unverified&&{unverified:a.unverified}}))}static mapToOriginalLocation(r){return r.originalFileName?(L.assert(r.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...r,fileName:r.originalFileName,textSpan:r.originalTextSpan,targetFileName:r.fileName,targetTextSpan:r.textSpan,contextSpan:r.originalContextSpan,targetContextSpan:r.contextSpan}):r}toFileSpan(r,i,a){let c=a.getLanguageService(),u=c.toLineColumnOffset(r,i.start),_=c.toLineColumnOffset(r,Fc(i));return{file:r,start:{line:u.line+1,offset:u.character+1},end:{line:_.line+1,offset:_.character+1}}}toFileSpanWithContext(r,i,a,c){let u=this.toFileSpan(r,i,c),_=a&&this.toFileSpan(r,a,c);return _?{...u,contextStart:_.start,contextEnd:_.end}:u}getTypeDefinition(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getPositionInFile(r,i),u=this.mapDefinitionInfoLocations(a.getLanguageService().getTypeDefinitionAtPosition(i,c)||fu,a);return this.mapDefinitionInfo(u,a)}mapImplementationLocations(r,i){return r.map(a=>{let c=XGe(a,i);return c?{...c,kind:a.kind,displayParts:a.displayParts}:a})}getImplementation(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=this.mapImplementationLocations(c.getLanguageService().getImplementationAtPosition(a,u)||fu,c);return i?_.map(({fileName:h,textSpan:m,contextSpan:T})=>this.toFileSpanWithContext(h,m,T,c)):_.map(Zle.mapToOriginalLocation)}getSyntacticDiagnosticsSync(r){let{configFile:i}=this.getConfigFileAndProject(r);return i?fu:this.getDiagnosticsWorker(r,!1,(a,c)=>a.getLanguageService().getSyntacticDiagnostics(c),!!r.includeLinePosition)}getSemanticDiagnosticsSync(r){let{configFile:i,project:a}=this.getConfigFileAndProject(r);return i?this.getConfigFileDiagnostics(i,a,!!r.includeLinePosition):this.getDiagnosticsWorker(r,!0,(c,u)=>c.getLanguageService().getSemanticDiagnostics(u).filter(_=>!!_.file),!!r.includeLinePosition)}getSuggestionDiagnosticsSync(r){let{configFile:i}=this.getConfigFileAndProject(r);return i?fu:this.getDiagnosticsWorker(r,!0,(a,c)=>a.getLanguageService().getSuggestionDiagnostics(c),!!r.includeLinePosition)}getJsxClosingTag(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=a.getJsxClosingTagAtPosition(i,c);return u===void 0?void 0:{newText:u.newText,caretOffset:0}}getLinkedEditingRange(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=a.getLinkedEditingRangeAtPosition(i,c),_=this.projectService.getScriptInfoForNormalizedPath(i);if(!(_===void 0||u===void 0))return KRt(u,_)}getDocumentHighlights(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=c.getLanguageService().getDocumentHighlights(a,u,r.filesToSearch);return _?i?_.map(({fileName:h,highlightSpans:m})=>{let T=c.getScriptInfo(h);return{file:h,highlightSpans:m.map(({textSpan:S,kind:E,contextSpan:D})=>({...PCe(S,D,T),kind:E}))}}):_:fu}provideInlayHints(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.projectService.getScriptInfoForNormalizedPath(i);return a.getLanguageService().provideInlayHints(i,r,this.getPreferences(i)).map(_=>{let{position:h,displayParts:m}=_;return{..._,position:c.positionToLineOffset(h),displayParts:m?.map(({text:T,span:S,file:E})=>{if(S){L.assertIsDefined(E,"Target file should be defined together with its span.");let D=this.projectService.getScriptInfo(E);return{text:T,span:{start:D.positionToLineOffset(S.start),end:D.positionToLineOffset(S.start+S.length),file:E}}}else return{text:T}})}})}mapCode(r){var i;let a=this.getHostFormatOptions(),c=this.getHostPreferences(),{file:u,languageService:_}=this.getFileAndLanguageServiceForSyntacticOperation(r),h=this.projectService.getScriptInfoForNormalizedPath(u),m=(i=r.mapping.focusLocations)==null?void 0:i.map(S=>S.map(E=>{let D=h.lineOffsetToPosition(E.start.line,E.start.offset),A=h.lineOffsetToPosition(E.end.line,E.end.offset);return{start:D,length:A-D}})),T=_.mapCode(u,r.mapping.contents,m,a,c);return this.mapTextChangesToCodeEdits(T)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(r){this.projectService.setCompilerOptionsForInferredProjects(r.options,r.projectRootPath)}getProjectInfo(r){return this.getProjectInfoWorker(r.file,r.projectFileName,r.needFileNameList,r.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(r,i,a,c,u){let{project:_}=this.getFileAndProjectWorker(r,i);return hm(_),{configFileName:_.getProjectName(),languageServiceDisabled:!_.languageServiceEnabled,fileNames:a?_.getFileNames(!1,u):void 0,configuredProjectInfo:c?this.getDefaultConfiguredProjectInfo(r):void 0}}getDefaultConfiguredProjectInfo(r){var i;let a=this.projectService.getScriptInfo(r);if(!a)return;let c=this.projectService.findDefaultConfiguredProjectWorker(a,3);if(!c)return;let u,_;return c.seenProjects.forEach((h,m)=>{m!==c.defaultProject&&(h!==3?(u??(u=[])).push(Io(m.getConfigFilePath())):(_??(_=[])).push(Io(m.getConfigFilePath())))}),(i=c.seenConfigs)==null||i.forEach(h=>(u??(u=[])).push(h)),{notMatchedByConfig:u,notInProject:_,defaultProject:c.defaultProject&&Io(c.defaultProject.getConfigFilePath())}}getRenameInfo(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getPositionInFile(r,i),u=this.getPreferences(i);return a.getLanguageService().getRenameInfo(i,c,u)}getProjects(r,i,a){let c,u;if(r.projectFileName){let _=this.getProject(r.projectFileName);_&&(c=[_])}else{let _=i?this.projectService.getScriptInfoEnsuringProjectsUptoDate(r.file):this.projectService.getScriptInfo(r.file);if(_)i||this.projectService.ensureDefaultProjectForFile(_);else return a?fu:(this.projectService.logErrorForScriptInfoNotFound(r.file),s1.ThrowNoProject());c=_.containingProjects,u=this.projectService.getSymlinkedProjects(_)}return c=In(c,_=>_.languageServiceEnabled&&!_.isOrphan()),!a&&(!c||!c.length)&&!u?(this.projectService.logErrorForScriptInfoNotFound(r.file??r.projectFileName),s1.ThrowNoProject()):u?{projects:c,symLinkedProjects:u}:c}getDefaultProject(r){if(r.projectFileName){let a=this.getProject(r.projectFileName);if(a)return a;if(!r.file)return s1.ThrowNoProject()}return this.projectService.getScriptInfo(r.file).getDefaultProject()}getRenameLocations(r,i){let a=Io(r.file),c=this.getPositionInFile(r,a),u=this.getProjects(r),_=this.getDefaultProject(r),h=this.getPreferences(a),m=this.mapRenameInfo(_.getLanguageService().getRenameInfo(a,c,h),L.checkDefined(this.projectService.getScriptInfo(a)));if(!m.canRename)return i?{info:m,locs:[]}:[];let T=WRt(u,_,{fileName:r.file,pos:c},!!r.findInStrings,!!r.findInComments,h,this.host.useCaseSensitiveFileNames);return i?{info:m,locs:this.toSpanGroups(T)}:T}mapRenameInfo(r,i){if(r.canRename){let{canRename:a,fileToRename:c,displayName:u,fullDisplayName:_,kind:h,kindModifiers:m,triggerSpan:T}=r;return{canRename:a,fileToRename:c,displayName:u,fullDisplayName:_,kind:h,kindModifiers:m,triggerSpan:ug(T,i)}}else return r}toSpanGroups(r){let i=new Map;for(let{fileName:a,textSpan:c,contextSpan:u,originalContextSpan:_,originalTextSpan:h,originalFileName:m,...T}of r){let S=i.get(a);S||i.set(a,S={file:a,locs:[]});let E=L.checkDefined(this.projectService.getScriptInfo(a));S.locs.push({...PCe(c,u,E),...T})}return Ps(i.values())}getReferences(r,i){let a=Io(r.file),c=this.getProjects(r),u=this.getPositionInFile(r,a),_=qRt(c,this.getDefaultProject(r),{fileName:r.file,pos:u},this.host.useCaseSensitiveFileNames,this.logger);if(!i)return _;let h=this.getPreferences(a),m=this.getDefaultProject(r),T=m.getScriptInfoForNormalizedPath(a),S=m.getLanguageService().getQuickInfoAtPosition(a,u),E=S?eR(S.displayParts):"",D=S&&S.textSpan,A=D?T.positionToLineOffset(D.start).offset:0,I=D?T.getSnapshot().getText(D.start,Fc(D)):"";return{refs:ka(_,M=>M.references.map(U=>rYe(this.projectService,U,h))),symbolName:I,symbolStartOffset:A,symbolDisplayString:E}}getFileReferences(r,i){let a=this.getProjects(r),c=Io(r.file),u=this.getPreferences(c),_={fileName:c,pos:0},h=DCe(a,this.getDefaultProject(r),_,_,GGe,S=>(this.logger.info(`Finding references to file ${c} in project ${S.getProjectName()}`),S.getLanguageService().getFileReferences(c))),m;if(Bs(h))m=h;else{m=[];let S=Yie(this.host.useCaseSensitiveFileNames);h.forEach(E=>{for(let D of E)S.has(D)||(m.push(D),S.add(D))})}return i?{refs:m.map(S=>rYe(this.projectService,S,u)),symbolName:`"${r.file}"`}:m}openClientFile(r,i,a,c){this.projectService.openClientFileWithNormalizedPath(r,i,a,!1,c)}getPosition(r,i){return r.position!==void 0?r.position:i.lineOffsetToPosition(r.line,r.offset)}getPositionInFile(r,i){let a=this.projectService.getScriptInfoForNormalizedPath(i);return this.getPosition(r,a)}getFileAndProject(r){return this.getFileAndProjectWorker(r.file,r.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(r){let{file:i,project:a}=this.getFileAndProject(r);return{file:i,languageService:a.getLanguageService(!1)}}getFileAndProjectWorker(r,i){let a=Io(r),c=this.getProject(i)||this.projectService.ensureDefaultProjectForFile(a);return{file:a,project:c}}getOutliningSpans(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getOutliningSpans(a);if(i){let _=this.projectService.getScriptInfoForNormalizedPath(a);return u.map(h=>({textSpan:ug(h.textSpan,_),hintSpan:ug(h.hintSpan,_),bannerText:h.bannerText,autoCollapse:h.autoCollapse,kind:h.kind}))}else return u}getTodoComments(r){let{file:i,project:a}=this.getFileAndProject(r);return a.getLanguageService().getTodoComments(i,r.descriptors)}getDocCommentTemplate(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getDocCommentTemplateAtPosition(i,c,this.getPreferences(i),this.getFormatOptions(i))}getSpanOfEnclosingComment(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.onlyMultiLine,u=this.getPositionInFile(r,i);return a.getSpanOfEnclosingComment(i,u,c)}getIndentation(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=r.options?aN(r.options):this.getFormatOptions(i),_=a.getIndentationAtPosition(i,c,u);return{position:c,indentation:_}}getBreakpointStatement(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getBreakpointStatementAtPosition(i,c)}getNameOrDottedNameSpan(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getNameOrDottedNameSpan(i,c,c)}isValidBraceCompletion(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.isValidBraceCompletionAtPosition(i,c,r.openingBrace.charCodeAt(0))}getQuickInfoWorker(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=c.getLanguageService().getQuickInfoAtPosition(a,this.getPosition(r,u));if(!_)return;let h=!!this.getPreferences(a).displayPartsForJSDoc;if(i){let m=eR(_.displayParts);return{kind:_.kind,kindModifiers:_.kindModifiers,start:u.positionToLineOffset(_.textSpan.start),end:u.positionToLineOffset(Fc(_.textSpan)),displayString:m,documentation:h?this.mapDisplayParts(_.documentation,c):eR(_.documentation),tags:this.mapJSDocTagInfo(_.tags,c,h)}}else return h?_:{..._,tags:this.mapJSDocTagInfo(_.tags,c,!1)}}getFormattingEditsForRange(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.projectService.getScriptInfoForNormalizedPath(i),u=c.lineOffsetToPosition(r.line,r.offset),_=c.lineOffsetToPosition(r.endLine,r.endOffset),h=a.getFormattingEditsForRange(i,u,_,this.getFormatOptions(i));if(h)return h.map(m=>this.convertTextChangeToCodeEdit(m,c))}getFormattingEditsForRangeFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?aN(r.options):this.getFormatOptions(i);return a.getFormattingEditsForRange(i,r.position,r.endPosition,c)}getFormattingEditsForDocumentFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?aN(r.options):this.getFormatOptions(i);return a.getFormattingEditsForDocument(i,c)}getFormattingEditsAfterKeystrokeFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?aN(r.options):this.getFormatOptions(i);return a.getFormattingEditsAfterKeystroke(i,r.position,r.key,c)}getFormattingEditsAfterKeystroke(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.projectService.getScriptInfoForNormalizedPath(i),u=c.lineOffsetToPosition(r.line,r.offset),_=this.getFormatOptions(i),h=a.getFormattingEditsAfterKeystroke(i,u,r.key,_);if(r.key===`
543
543
  `&&(!h||h.length===0||zRt(h,u))){let{lineText:m,absolutePosition:T}=c.textStorage.getAbsolutePositionAndLineText(r.line);if(m&&m.search("\\S")<0){let S=a.getIndentationAtPosition(i,u,_),E=0,D,A;for(D=0,A=m.length;D<A;D++)if(m.charAt(D)===" ")E++;else if(m.charAt(D)===" ")E+=_.tabSize;else break;if(S!==E){let I=T+D;h.push({span:ul(T,I),newText:zl.getIndentationString(S,_)})}}}if(h)return h.map(m=>({start:c.positionToLineOffset(m.span.start),end:c.positionToLineOffset(Fc(m.span)),newText:m.newText?m.newText:""}))}getCompletions(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getLanguageService().getCompletionsAtPosition(a,_,{...uCe(this.getPreferences(a)),triggerCharacter:r.triggerCharacter,triggerKind:r.triggerKind,includeExternalModuleExports:r.includeExternalModuleExports,includeInsertTextCompletions:r.includeInsertTextCompletions},c.projectService.getFormatCodeOptions(a));if(h===void 0)return;if(i==="completions-full")return h;let m=r.prefix||"",T=Wi(h.entries,E=>{if(h.isMemberCompletion||fs(E.name.toLowerCase(),m.toLowerCase())){let D=E.replacementSpan?ug(E.replacementSpan,u):void 0;return{...E,replacementSpan:D,hasAction:E.hasAction||void 0,symbol:void 0}}});return i==="completions"?(h.metadata&&(T.metadata=h.metadata),T):{...h,optionalReplacementSpan:h.optionalReplacementSpan&&ug(h.optionalReplacementSpan,u),entries:T}}getCompletionEntryDetails(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.projectService.getFormatCodeOptions(a),m=!!this.getPreferences(a).displayPartsForJSDoc,T=Wi(r.entryNames,S=>{let{name:E,source:D,data:A}=typeof S=="string"?{name:S,source:void 0,data:void 0}:S;return c.getLanguageService().getCompletionEntryDetails(a,_,E,h,D,this.getPreferences(a),A?ha(A,t9t):void 0)});return i?m?T:T.map(S=>({...S,tags:this.mapJSDocTagInfo(S.tags,c,!1)})):T.map(S=>({...S,codeActions:Dr(S.codeActions,E=>this.mapCodeAction(E)),documentation:this.mapDisplayParts(S.documentation,c),tags:this.mapJSDocTagInfo(S.tags,c,m)}))}getCompileOnSaveAffectedFileList(r){let i=this.getProjects(r,!0,!0),a=this.projectService.getScriptInfo(r.file);return a?JRt(a,c=>this.projectService.getScriptInfoForPath(c),i,(c,u)=>{if(!c.compileOnSaveEnabled||!c.languageServiceEnabled||c.isOrphan())return;let _=c.getCompilationSettings();if(!(_.noEmit||uu(u.fileName)&&!URt(_)))return{projectFileName:c.getProjectName(),fileNames:c.getCompileOnSaveAffectedFileList(u),projectUsesOutFile:!!_.outFile}}):fu}emitFile(r){let{file:i,project:a}=this.getFileAndProject(r);if(a||s1.ThrowNoProject(),!a.languageServiceEnabled)return r.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let c=a.getScriptInfo(i),{emitSkipped:u,diagnostics:_}=a.emitFile(c,(h,m,T)=>this.host.writeFile(h,m,T));return r.richResponse?{emitSkipped:u,diagnostics:r.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(_):_.map(h=>AR(h,!0))}:!u}getSignatureHelpItems(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getLanguageService().getSignatureHelpItems(a,_,r),m=!!this.getPreferences(a).displayPartsForJSDoc;if(h&&i){let T=h.applicableSpan;return{...h,applicableSpan:{start:u.positionToLineOffset(T.start),end:u.positionToLineOffset(T.start+T.length)},items:this.mapSignatureHelpItems(h.items,c,m)}}else return m||!h?h:{...h,items:h.items.map(T=>({...T,tags:this.mapJSDocTagInfo(T.tags,c,!1)}))}}toPendingErrorCheck(r){let i=Io(r),a=this.projectService.tryGetDefaultProjectForFile(i);return a&&{fileName:i,project:a}}getDiagnostics(r,i,a){this.suppressDiagnosticEvents||a.length>0&&this.updateErrorCheck(r,a,i)}change(r){let i=this.projectService.getScriptInfo(r.file);L.assert(!!i),i.textStorage.switchToScriptVersionCache();let a=i.lineOffsetToPosition(r.line,r.offset),c=i.lineOffsetToPosition(r.endLine,r.endOffset);a>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(i,u_e({span:{start:a,length:c-a},newText:r.insertString})))}reload(r){let i=Io(r.file),a=r.tmpfile===void 0?void 0:Io(r.tmpfile),c=this.projectService.getScriptInfoForNormalizedPath(i);c&&(this.changeSeq++,c.reloadFromFile(a))}saveToTmp(r,i){let a=this.projectService.getScriptInfo(r);a&&a.saveTo(i)}closeClientFile(r){if(!r)return;let i=ba(r);this.projectService.closeClientFile(i)}mapLocationNavigationBarItems(r,i){return Dr(r,a=>({text:a.text,kind:a.kind,kindModifiers:a.kindModifiers,spans:a.spans.map(c=>ug(c,i)),childItems:this.mapLocationNavigationBarItems(a.childItems,i),indent:a.indent}))}getNavigationBarItems(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getNavigationBarItems(a);return u?i?this.mapLocationNavigationBarItems(u,this.projectService.getScriptInfoForNormalizedPath(a)):u:void 0}toLocationNavigationTree(r,i){return{text:r.text,kind:r.kind,kindModifiers:r.kindModifiers,spans:r.spans.map(a=>ug(a,i)),nameSpan:r.nameSpan&&ug(r.nameSpan,i),childItems:Dr(r.childItems,a=>this.toLocationNavigationTree(a,i))}}getNavigationTree(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getNavigationTree(a);return u?i?this.toLocationNavigationTree(u,this.projectService.getScriptInfoForNormalizedPath(a)):u:void 0}getNavigateToItems(r,i){let a=this.getFullNavigateToItems(r);return i?ka(a,({project:c,navigateToItems:u})=>u.map(_=>{let h=c.getScriptInfo(_.fileName),m={name:_.name,kind:_.kind,kindModifiers:_.kindModifiers,isCaseSensitive:_.isCaseSensitive,matchKind:_.matchKind,file:_.fileName,start:h.positionToLineOffset(_.textSpan.start),end:h.positionToLineOffset(Fc(_.textSpan))};return _.kindModifiers&&_.kindModifiers!==""&&(m.kindModifiers=_.kindModifiers),_.containerName&&_.containerName.length>0&&(m.containerName=_.containerName),_.containerKind&&_.containerKind.length>0&&(m.containerKind=_.containerKind),m})):ka(a,({navigateToItems:c})=>c)}getFullNavigateToItems(r){let{currentFileOnly:i,searchValue:a,maxResultCount:c,projectFileName:u}=r;if(i){L.assertIsDefined(r.file);let{file:D,project:A}=this.getFileAndProject(r);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(a,c,D)}]}let _=this.getHostPreferences(),h=[],m=new Map;if(!r.file&&!u)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(D=>T(D));else{let D=this.getProjects(r);HGe(D,void 0,A=>T(A))}return h;function T(D){let A=D.getLanguageService().getNavigateToItems(a,c,void 0,D.isNonTsProject(),_.excludeLibrarySymbolsInNavTo),I=In(A,R=>S(R)&&!Kie(N8(R),D));I.length&&h.push({project:D,navigateToItems:I})}function S(D){let A=D.name;if(!m.has(A))return m.set(A,[D]),!0;let I=m.get(A);for(let R of I)if(E(R,D))return!1;return I.push(D),!0}function E(D,A){return D===A?!0:!D||!A?!1:D.containerKind===A.containerKind&&D.containerName===A.containerName&&D.fileName===A.fileName&&D.isCaseSensitive===A.isCaseSensitive&&D.kind===A.kind&&D.kindModifiers===A.kindModifiers&&D.matchKind===A.matchKind&&D.name===A.name&&D.textSpan.start===A.textSpan.start&&D.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(r){if(!r)return pne();if(r.file){let{file:a,project:c}=this.getFileAndProject(r);return c.getLanguageService().getSupportedCodeFixes(a)}let i=this.getProject(r.projectFileName);return i||s1.ThrowNoProject(),i.getLanguageService().getSupportedCodeFixes()}isLocation(r){return r.line!==void 0}extractPositionOrRange(r,i){let a,c;return this.isLocation(r)?a=u(r):c=this.getRange(r,i),L.checkDefined(a===void 0?c:a);function u(_){return _.position!==void 0?_.position:i.lineOffsetToPosition(_.line,_.offset)}t(u,"getPosition")}getRange(r,i){let{startPosition:a,endPosition:c}=this.getStartAndEndPosition(r,i);return{pos:a,end:c}}getApplicableRefactors(r){let{file:i,project:a}=this.getFileAndProject(r),c=a.getScriptInfoForNormalizedPath(i);return a.getLanguageService().getApplicableRefactors(i,this.extractPositionOrRange(r,c),this.getPreferences(i),r.triggerReason,r.kind,r.includeInteractiveActions).map(_=>({..._,actions:_.actions.map(h=>({...h,range:h.range?{start:oN({line:h.range.start.line,character:h.range.start.offset}),end:oN({line:h.range.end.line,character:h.range.end.offset})}:void 0}))}))}getEditsForRefactor(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=c.getScriptInfoForNormalizedPath(a),_=c.getLanguageService().getEditsForRefactor(a,this.getFormatOptions(a),this.extractPositionOrRange(r,u),r.refactor,r.action,this.getPreferences(a),r.interactiveRefactorArguments);if(_===void 0)return{edits:[]};if(i){let{renameFilename:h,renameLocation:m,edits:T}=_,S;if(h!==void 0&&m!==void 0){let E=c.getScriptInfoForNormalizedPath(Io(h));S=ACe(wD(E.getSnapshot()),h,m,T)}return{renameLocation:S,renameFilename:h,edits:this.mapTextChangesToCodeEdits(T),notApplicableReason:_.notApplicableReason}}return _}getMoveToRefactoringFileSuggestions(r){let{file:i,project:a}=this.getFileAndProject(r),c=a.getScriptInfoForNormalizedPath(i);return a.getLanguageService().getMoveToRefactoringFileSuggestions(i,this.extractPositionOrRange(r,c),this.getPreferences(i))}preparePasteEdits(r){let{file:i,project:a}=this.getFileAndProject(r);return a.getLanguageService().preparePasteEditsForFile(i,r.copiedTextSpan.map(c=>this.getRange({file:i,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},this.projectService.getScriptInfoForNormalizedPath(i))))}getPasteEdits(r){let{file:i,project:a}=this.getFileAndProject(r);if(P8(i))return;let c=r.copiedFrom?{file:r.copiedFrom.file,range:r.copiedFrom.spans.map(_=>this.getRange({file:r.copiedFrom.file,startLine:_.start.line,startOffset:_.start.offset,endLine:_.end.line,endOffset:_.end.offset},a.getScriptInfoForNormalizedPath(Io(r.copiedFrom.file))))}:void 0,u=a.getLanguageService().getPasteEdits({targetFile:i,pastedText:r.pastedText,pasteLocations:r.pasteLocations.map(_=>this.getRange({file:i,startLine:_.start.line,startOffset:_.start.offset,endLine:_.end.line,endOffset:_.end.offset},a.getScriptInfoForNormalizedPath(i))),copiedFrom:c,preferences:this.getPreferences(i)},this.getFormatOptions(i));return u&&this.mapPasteEditsAction(u)}organizeImports(r,i){L.assert(r.scope.type==="file");let{file:a,project:c}=this.getFileAndProject(r.scope.args),u=c.getLanguageService().organizeImports({fileName:a,mode:r.mode??(r.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(a),this.getPreferences(a));return i?this.mapTextChangesToCodeEdits(u):u}getEditsForFileRename(r,i){let a=Io(r.oldFilePath),c=Io(r.newFilePath),u=this.getHostFormatOptions(),_=this.getHostPreferences(),h=new Set,m=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>{let S=T.getLanguageService().getEditsForFileRename(a,c,u,_),E=[];for(let D of S)h.has(D.fileName)||(m.push(D),E.push(D.fileName));for(let D of E)h.add(D)}),i?m.map(T=>this.mapTextChangeToCodeEdit(T)):m}getCodeFixes(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=c.getScriptInfoForNormalizedPath(a),{startPosition:_,endPosition:h}=this.getStartAndEndPosition(r,u),m;try{m=c.getLanguageService().getCodeFixesAtPosition(a,_,h,r.errorCodes,this.getFormatOptions(a),this.getPreferences(a))}catch(T){let S=T instanceof Error?T:new Error(T),E=c.getLanguageService(),D=[...E.getSyntacticDiagnostics(a),...E.getSemanticDiagnostics(a),...E.getSuggestionDiagnostics(a)].filter(I=>z7(_,h-_,I.start,I.length)).map(I=>I.code),A=r.errorCodes.find(I=>!D.includes(I));throw A!==void 0&&(S.message+=`
544
544
  Additional information: BADCLIENT: Bad error code, ${A} not found in range ${_}..${h} (found: ${D.join(", ")})`),S}return i?m.map(T=>this.mapCodeFixAction(T)):m}getCombinedCodeFix({scope:r,fixId:i},a){L.assert(r.type==="file");let{file:c,project:u}=this.getFileAndProject(r.args),_=u.getLanguageService().getCombinedCodeFix({type:"file",fileName:c},i,this.getFormatOptions(c),this.getPreferences(c));return a?{changes:this.mapTextChangesToCodeEdits(_.changes),commands:_.commands}:_}applyCodeActionCommand(r){let i=r.command;for(let a of uw(i)){let{file:c,project:u}=this.getFileAndProject(a);u.getLanguageService().applyCodeActionCommand(a,this.getFormatOptions(c)).then(_=>{},_=>{})}return{}}getStartAndEndPosition(r,i){let a,c;return r.startPosition!==void 0?a=r.startPosition:(a=i.lineOffsetToPosition(r.startLine,r.startOffset),r.startPosition=a),r.endPosition!==void 0?c=r.endPosition:(c=i.lineOffsetToPosition(r.endLine,r.endOffset),r.endPosition=c),{startPosition:a,endPosition:c}}mapCodeAction({description:r,changes:i,commands:a}){return{description:r,changes:this.mapTextChangesToCodeEdits(i),commands:a}}mapCodeFixAction({fixName:r,description:i,changes:a,commands:c,fixId:u,fixAllDescription:_}){return{fixName:r,description:i,changes:this.mapTextChangesToCodeEdits(a),commands:c,fixId:u,fixAllDescription:_}}mapPasteEditsAction({edits:r,fixId:i}){return{edits:this.mapTextChangesToCodeEdits(r),fixId:i}}mapTextChangesToCodeEdits(r){return r.map(i=>this.mapTextChangeToCodeEdit(i))}mapTextChangeToCodeEdit(r){let i=this.projectService.getScriptInfoOrConfig(r.fileName);return!!r.isNewFile==!!i&&(i||this.projectService.logErrorForScriptInfoNotFound(r.fileName),L.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!r.isNewFile,hasScriptInfo:!!i}))),i?{fileName:r.fileName,textChanges:r.textChanges.map(a=>YRt(a,i))}:ZRt(r)}convertTextChangeToCodeEdit(r,i){return{start:i.positionToLineOffset(r.span.start),end:i.positionToLineOffset(r.span.start+r.span.length),newText:r.newText?r.newText:""}}getBraceMatching(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getBraceMatchingAtPosition(a,_);return h?i?h.map(m=>ug(m,u)):h:void 0}getDiagnosticsForProject(r,i,a){if(this.suppressDiagnosticEvents)return;let{fileNames:c,languageServiceDisabled:u}=this.getProjectInfoWorker(a,void 0,!0,void 0,!0);if(u)return;let _=c.filter(R=>!R.includes("lib.d.ts"));if(_.length===0)return;let h=[],m=[],T=[],S=[],E=Io(a),D=this.projectService.ensureDefaultProjectForFile(E);for(let R of _)this.getCanonicalFileName(R)===this.getCanonicalFileName(a)?h.push(R):this.projectService.getScriptInfo(R).isScriptOpen()?m.push(R):uu(R)?S.push(R):T.push(R);let I=[...h,...m,...T,...S].map(R=>({fileName:R,project:D}));this.updateErrorCheck(r,I,i,!1)}configurePlugin(r){this.projectService.configurePlugin(r)}getSmartSelectionRange(r,i){let{locations:a}=r,{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(r),_=L.checkDefined(this.projectService.getScriptInfo(c));return Dr(a,h=>{let m=this.getPosition(h,_),T=u.getSmartSelectionRange(c,m);return i?this.mapSelectionRange(T,_):T})}toggleLineComment(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfo(a),_=this.getRange(r,u),h=c.toggleLineComment(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}toggleMultilineComment(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.toggleMultilineComment(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}commentSelection(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.commentSelection(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}uncommentSelection(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.uncommentSelection(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}mapSelectionRange(r,i){let a={textSpan:ug(r.textSpan,i)};return r.parent&&(a.parent=this.mapSelectionRange(r.parent,i)),a}getScriptInfoFromProjectService(r){let i=Io(r),a=this.projectService.getScriptInfoForNormalizedPath(i);return a||(this.projectService.logErrorForScriptInfoNotFound(i),s1.ThrowNoProject())}toProtocolCallHierarchyItem(r){let i=this.getScriptInfoFromProjectService(r.file);return{name:r.name,kind:r.kind,kindModifiers:r.kindModifiers,file:r.file,containerName:r.containerName,span:ug(r.span,i),selectionSpan:ug(r.selectionSpan,i)}}toProtocolCallHierarchyIncomingCall(r){let i=this.getScriptInfoFromProjectService(r.from.file);return{from:this.toProtocolCallHierarchyItem(r.from),fromSpans:r.fromSpans.map(a=>ug(a,i))}}toProtocolCallHierarchyOutgoingCall(r,i){return{to:this.toProtocolCallHierarchyItem(r.to),fromSpans:r.fromSpans.map(a=>ug(a,i))}}prepareCallHierarchy(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.projectService.getScriptInfoForNormalizedPath(i);if(c){let u=this.getPosition(r,c),_=a.getLanguageService().prepareCallHierarchy(i,u);return _&&xre(_,h=>this.toProtocolCallHierarchyItem(h))}}provideCallHierarchyIncomingCalls(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getScriptInfoFromProjectService(i);return a.getLanguageService().provideCallHierarchyIncomingCalls(i,this.getPosition(r,c)).map(_=>this.toProtocolCallHierarchyIncomingCall(_))}provideCallHierarchyOutgoingCalls(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getScriptInfoFromProjectService(i);return a.getLanguageService().provideCallHierarchyOutgoingCalls(i,this.getPosition(r,c)).map(_=>this.toProtocolCallHierarchyOutgoingCall(_,c))}getCanonicalFileName(r){let i=this.host.useCaseSensitiveFileNames?r:fb(r);return ba(i)}exit(){}notRequired(r){return r&&this.doOutput(void 0,r.command,r.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(r){return{response:r,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(r,i){if(this.handlers.has(r))throw new Error(`Protocol handler already exists for command "${r}"`);this.handlers.set(r,i)}setCurrentRequest(r){L.assert(this.currentRequestId===void 0),this.currentRequestId=r,this.cancellationToken.setRequest(r)}resetCurrentRequest(r){L.assert(this.currentRequestId===r),this.currentRequestId=void 0,this.cancellationToken.resetRequest(r)}executeWithRequestId(r,i,a){let c=this.performanceData;try{return this.performanceData=a,this.setCurrentRequest(r),i()}finally{this.resetCurrentRequest(r),this.performanceData=c}}executeCommand(r){let i=this.handlers.get(r.command);if(i){let a=this.executeWithRequestId(r.seq,()=>i(r),void 0);return this.projectService.enableRequestedPlugins(),a}else return this.logger.msg(`Unrecognized JSON command:${_2(r)}`,"Err"),this.doOutput(void 0,"unknown",r.seq,!1,void 0,`Unrecognized JSON command: ${r.command}`),{responseRequired:!1}}onMessage(r){var i,a,c,u,_,h,m;this.gcTimer.scheduleCollect();let T,S=this.performanceData;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${t8(this.toStringMessage(r))}`));let E,D;try{E=this.parseMessage(r),D=E.arguments&&E.arguments.file?E.arguments:void 0,(i=En)==null||i.instant(En.Phase.Session,"request",{seq:E.seq,command:E.command}),(a=En)==null||a.push(En.Phase.Session,"executeCommand",{seq:E.seq,command:E.command},!0);let{response:A,responseRequired:I,performanceData:R}=this.executeCommand(E);if((c=En)==null||c.pop(),this.logger.hasLevel(2)){let M=BRt(this.hrtime(T)).toFixed(4);I?this.logger.perftrc(`${E.seq}::${E.command}: elapsed time (in milliseconds) ${M}`):this.logger.perftrc(`${E.seq}::${E.command}: async elapsed time (in milliseconds) ${M}`)}(u=En)==null||u.instant(En.Phase.Session,"response",{seq:E.seq,command:E.command,success:!!A}),A?this.doOutput(A,E.command,E.seq,!0,R):I&&this.doOutput(void 0,E.command,E.seq,!1,R,"No content available.")}catch(A){if((_=En)==null||_.popAll(),A instanceof e4){(h=En)==null||h.instant(En.Phase.Session,"commandCanceled",{seq:E?.seq,command:E?.command}),this.doOutput({canceled:!0},E.command,E.seq,!0,this.performanceData);return}this.logErrorWorker(A,this.toStringMessage(r),D),(m=En)==null||m.instant(En.Phase.Session,"commandError",{seq:E?.seq,command:E?.command,message:A.message}),this.doOutput(void 0,E?E.command:"unknown",E?E.seq:0,!1,this.performanceData,"Error processing request. "+A.message+`
545
- `+A.stack)}finally{this.performanceData=S}}parseMessage(r){return JSON.parse(r)}toStringMessage(r){return r}getFormatOptions(r){return this.projectService.getFormatCodeOptions(r)}getPreferences(r){return this.projectService.getPreferences(r)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function eYe(e){let r=e.diagnosticsDuration&&Ps(e.diagnosticsDuration,([i,a])=>({...a,file:i}));return{...e,diagnosticsDuration:r}}t(eYe,"toProtocolPerformanceData");function ug(e,r){return{start:r.positionToLineOffset(e.start),end:r.positionToLineOffset(Fc(e))}}t(ug,"toProtocolTextSpan");function PCe(e,r,i){let a=ug(e,i),c=r&&ug(r,i);return c?{...a,contextStart:c.start,contextEnd:c.end}:a}t(PCe,"toProtocolTextSpanWithContext");function YRt(e,r){return{start:tYe(r,e.span.start),end:tYe(r,Fc(e.span)),newText:e.newText}}t(YRt,"convertTextChangeToCodeEdit");function tYe(e,r){return TCe(e)?XRt(e.getLineAndCharacterOfPosition(r)):e.positionToLineOffset(r)}t(tYe,"positionToLineOffset");function KRt(e,r){let i=e.ranges.map(a=>({start:r.positionToLineOffset(a.start),end:r.positionToLineOffset(a.start+a.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}t(KRt,"convertLinkedEditInfoToRanges");function XRt(e){return{line:e.line+1,offset:e.character+1}}t(XRt,"locationFromLineAndCharacter");function ZRt(e){L.assert(e.textChanges.length===1);let r=Ga(e.textChanges);return L.assert(r.span.start===0&&r.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:r.newText}]}}t(ZRt,"convertNewFileTextChangeToCodeEdit");function ACe(e,r,i,a){let c=QRt(e,r,a),{line:u,character:_}=TA(gw(c),i);return{line:u+1,offset:_+1}}t(ACe,"getLocationInNewDocument");function QRt(e,r,i){for(let{fileName:a,textChanges:c}of i)if(a===r)for(let u=c.length-1;u>=0;u--){let{newText:_,span:{start:h,length:m}}=c[u];e=e.slice(0,h)+_+e.slice(h+m)}return e}t(QRt,"applyEdits");function rYe(e,{fileName:r,textSpan:i,contextSpan:a,isWriteAccess:c,isDefinition:u},{disableLineTextInReferences:_}){let h=L.checkDefined(e.getScriptInfo(r)),m=PCe(i,a,h),T=_?void 0:e9t(h,m);return{file:r,...m,lineText:T,isWriteAccess:c,isDefinition:u}}t(rYe,"referenceEntryToReferencesResponseItem");function e9t(e,r){let i=e.lineToTextSpan(r.start.line-1);return e.getSnapshot().getText(i.start,Fc(i)).replace(/\r|\n/g,"")}t(e9t,"getLineText");function t9t(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}t(t9t,"isCompletionEntryData");var cN=4,NCe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(NCe||{}),r9t=class{static{t(this,"EditWalker")}constructor(){this.goSubtree=!0,this.lineIndex=new NR,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new lN,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,r){r&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let a=NR.linesFromText(e).lines;a.length>1&&a[a.length-1]===""&&a.pop();let c,u;for(let h=this.endBranch.length-1;h>=0;h--)this.endBranch[h].updateCounts(),this.endBranch[h].charCount()===0&&(u=this.endBranch[h],h>0?c=this.endBranch[h-1]:c=this.branchNode);u&&c.remove(u);let _=this.startPath[this.startPath.length-1];if(a.length>0)if(_.text=a[0],a.length>1){let h=new Array(a.length-1),m=_;for(let E=1;E<a.length;E++)h[E-1]=new IW(a[E]);let T=this.startPath.length-2;for(;T>=0;){let E=this.startPath[T];h=E.insertAt(m,h),T--,m=E}let S=h.length;for(;S>0;){let E=new lN;E.add(this.lineIndex.root),h=E.insertAt(this.lineIndex.root,h),S=h.length,this.lineIndex.root=E}this.lineIndex.root.updateCounts()}else for(let h=this.startPath.length-2;h>=0;h--)this.startPath[h].updateCounts();else{this.startPath[this.startPath.length-2].remove(_);for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts()}return this.lineIndex}post(e,r,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,r,i,a,c){let u=this.stack[this.stack.length-1];this.state===2&&c===1&&(this.state=1,this.branchNode=u,this.lineCollectionAtBranch=i);let _;function h(m){return m.isLeaf()?new IW(""):new lN}switch(t(h,"fresh"),c){case 0:this.goSubtree=!1,this.state!==4&&u.add(i);break;case 1:this.state===4?this.goSubtree=!1:(_=h(i),u.add(_),this.startPath.push(_));break;case 2:this.state!==4?(_=h(i),u.add(_),this.startPath.push(_)):i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 5:this.goSubtree=!1,this.state!==1&&u.add(i);break}this.goSubtree&&this.stack.push(_)}leaf(e,r,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+r)):this.trailingText=i.text.substring(e+r)}},n9t=class{static{t(this,"TextChange9")}constructor(e,r,i){this.pos=e,this.deleteLen=r,this.insertedText=i}getTextChangeRange(){return $7(Gu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xie=class Xk{static{t(this,"_ScriptVersionCache")}constructor(){this.changes=[],this.versions=new Array(Xk.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(r){if(!(r<this.minVersion||r>this.currentVersion))return r%Xk.maxVersions}currentVersionToIndex(){return this.currentVersion%Xk.maxVersions}edit(r,i,a){this.changes.push(new n9t(r,i,a)),(this.changes.length>Xk.changeNumberThreshold||i>Xk.changeLengthThreshold||a&&a.length>Xk.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let r=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=r.index;for(let a of this.changes)i=i.edit(a.pos,a.deleteLen,a.insertedText);r=new nYe(this.currentVersion+1,this,i,this.changes),this.currentVersion=r.version,this.versions[this.currentVersionToIndex()]=r,this.changes=[],this.currentVersion-this.minVersion>=Xk.maxVersions&&(this.minVersion=this.currentVersion-Xk.maxVersions+1)}return r}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(r){return this._getSnapshot().index.lineNumberToInfo(r)}lineOffsetToPosition(r,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(r)+(i-1)}positionToLineOffset(r){return this._getSnapshot().index.positionToLineOffset(r)}lineToTextSpan(r){let i=this._getSnapshot().index,{lineText:a,absolutePosition:c}=i.lineNumberToInfo(r+1),u=a!==void 0?a.length:i.absolutePositionOfStartOfLine(r+2)-c;return Gu(c,u)}getTextChangesBetweenVersions(r,i){if(r<i)if(r>=this.minVersion){let a=[];for(let c=r+1;c<=i;c++){let u=this.versions[this.versionToIndex(c)];for(let _ of u.changesSincePreviousVersion)a.push(_.getTextChangeRange())}return ude(a)}else return;else return nB}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(r){let i=new Xk,a=new nYe(0,i,new NR);i.versions[i.currentVersion]=a;let c=NR.linesFromText(r);return a.index.load(c.lines),i}};Xie.changeNumberThreshold=8,Xie.changeLengthThreshold=256,Xie.maxVersions=8;var Zie=Xie,nYe=class Hpt{static{t(this,"_LineIndexSnapshot")}constructor(r,i,a,c=fu){this.version=r,this.cache=i,this.index=a,this.changesSincePreviousVersion=c}getText(r,i){return this.index.getText(r,i-r)}getLength(){return this.index.getLength()}getChangeRange(r){if(r instanceof Hpt&&this.cache===r.cache)return this.version<=r.version?nB:this.cache.getTextChangesBetweenVersions(r.version,this.version)}},NR=class h3e{static{t(this,"_LineIndex")}constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(r){return this.lineNumberToInfo(r).absolutePosition}positionToLineOffset(r){let{oneBasedLine:i,zeroBasedColumn:a}=this.root.charOffsetToLineInfo(1,r);return{line:i,offset:a+1}}positionToColumnAndLineText(r){return this.root.charOffsetToLineInfo(1,r)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(r){let i=this.getLineCount();if(r<=i){let{position:a,leaf:c}=this.root.lineNumberToInfo(r,0);return{absolutePosition:a,lineText:c&&c.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(r){if(r.length>0){let i=[];for(let a=0;a<r.length;a++)i[a]=new IW(r[a]);this.root=h3e.buildTreeFromBottom(i)}else this.root=new lN}walk(r,i,a){this.root.walk(r,i,a)}getText(r,i){let a="";return i>0&&r<this.root.charCount()&&this.walk(r,i,{goSubtree:!0,done:!1,leaf:t((c,u,_)=>{a=a.concat(_.text.substring(c,c+u))},"leaf")}),a}getLength(){return this.root.charCount()}every(r,i,a){a||(a=this.root.charCount());let c={goSubtree:!0,done:!1,leaf(u,_,h){r(h,u,_)||(this.done=!0)}};return this.walk(i,a-i,c),!c.done}edit(r,i,a){if(this.root.charCount()===0)return L.assert(i===0),a!==void 0?(this.load(h3e.linesFromText(a).lines),this):void 0;{let c;if(this.checkEdits){let h=this.getText(0,this.root.charCount());c=h.slice(0,r)+a+h.slice(r+i)}let u=new r9t,_=!1;if(r>=this.root.charCount()){r=this.root.charCount()-1;let h=this.getText(r,1);a?a=h+a:a=h,i=0,_=!0}else if(i>0){let h=r+i,{zeroBasedColumn:m,lineText:T}=this.positionToColumnAndLineText(h);m===0&&(i+=T.length,a=a?a+T:T)}if(this.root.walk(r,i,u),u.insertLines(a,_),this.checkEdits){let h=u.lineIndex.getText(0,u.lineIndex.getLength());L.assert(c===h,"buffer edit mismatch")}return u.lineIndex}}static buildTreeFromBottom(r){if(r.length<cN)return new lN(r);let i=new Array(Math.ceil(r.length/cN)),a=0;for(let c=0;c<i.length;c++){let u=Math.min(a+cN,r.length);i[c]=new lN(r.slice(a,u)),a=u}return this.buildTreeFromBottom(i)}static linesFromText(r){let i=gw(r);if(i.length===0)return{lines:[],lineMap:i};let a=new Array(i.length),c=i.length-1;for(let _=0;_<c;_++)a[_]=r.substring(i[_],i[_+1]);let u=r.substring(i[c]);return u.length>0?a[c]=u:a.pop(),{lines:a,lineMap:i}}},lN=class g3e{static{t(this,"_LineNode")}constructor(r=[]){this.children=r,this.totalChars=0,this.totalLines=0,r.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let r of this.children)this.totalChars+=r.charCount(),this.totalLines+=r.lineCount()}execWalk(r,i,a,c,u){return a.pre&&a.pre(r,i,this.children[c],this,u),a.goSubtree?(this.children[c].walk(r,i,a),a.post&&a.post(r,i,this.children[c],this,u)):a.goSubtree=!0,a.done}skipChild(r,i,a,c,u){c.pre&&!c.done&&(c.pre(r,i,this.children[a],this,u),c.goSubtree=!0)}walk(r,i,a){if(this.children.length===0)return;let c=0,u=this.children[c].charCount(),_=r;for(;_>=u;)this.skipChild(_,i,c,a,0),_-=u,c++,u=this.children[c].charCount();if(_+i<=u){if(this.execWalk(_,i,a,c,2))return}else{if(this.execWalk(_,u-_,a,c,1))return;let h=i-(u-_);for(c++,u=this.children[c].charCount();h>u;){if(this.execWalk(0,u,a,c,3))return;h-=u,c++,u=this.children[c].charCount()}if(h>0&&this.execWalk(0,h,a,c,4))return}if(a.pre){let h=this.children.length;if(c<h-1)for(let m=c+1;m<h;m++)this.skipChild(0,0,m,a,5)}}charOffsetToLineInfo(r,i){if(this.children.length===0)return{oneBasedLine:r,zeroBasedColumn:i,lineText:void 0};for(let u of this.children){if(u.charCount()>i)return u.isLeaf()?{oneBasedLine:r,zeroBasedColumn:i,lineText:u.text}:u.charOffsetToLineInfo(r,i);i-=u.charCount(),r+=u.lineCount()}let a=this.lineCount();if(a===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let c=L.checkDefined(this.lineNumberToInfo(a,0).leaf);return{oneBasedLine:a,zeroBasedColumn:c.charCount(),lineText:void 0}}lineNumberToInfo(r,i){for(let a of this.children){let c=a.lineCount();if(c>=r)return a.isLeaf()?{position:i,leaf:a}:a.lineNumberToInfo(r,i);r-=c,i+=a.charCount()}return{position:i,leaf:void 0}}splitAfter(r){let i,a=this.children.length;r++;let c=r;if(r<a){for(i=new g3e;r<a;)i.add(this.children[r]),r++;i.updateCounts()}return this.children.length=c,i}remove(r){let i=this.findChildIndex(r),a=this.children.length;if(i<a-1)for(let c=i;c<a-1;c++)this.children[c]=this.children[c+1];this.children.pop()}findChildIndex(r){let i=this.children.indexOf(r);return L.assert(i!==-1),i}insertAt(r,i){let a=this.findChildIndex(r),c=this.children.length,u=i.length;if(c<cN&&a===c-1&&u===1)return this.add(i[0]),this.updateCounts(),[];{let _=this.splitAfter(a),h=0;for(a++;a<cN&&h<u;)this.children[a]=i[h],a++,h++;let m=[],T=0;if(h<u){T=Math.ceil((u-h)/cN),m=new Array(T);let S=0;for(let D=0;D<T;D++)m[D]=new g3e;let E=m[0];for(;h<u;)E.add(i[h]),h++,E.children.length===cN&&(S++,E=m[S]);for(let D=m.length-1;D>=0;D--)m[D].children.length===0&&m.pop()}_&&m.push(_),this.updateCounts();for(let S=0;S<T;S++)m[S].updateCounts();return m}}add(r){this.children.push(r),L.assert(this.children.length<=cN)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},IW=class{static{t(this,"LineLeaf")}constructor(e){this.text=e}isLeaf(){return!0}walk(e,r,i){i.leaf(e,r,this)}charCount(){return this.text.length}lineCount(){return 1}},iYe=class Gpt{static{t(this,"_TypingsInstallerAdapter")}constructor(r,i,a,c,u,_){this.telemetryEnabled=r,this.logger=i,this.host=a,this.globalTypingsCacheLocation=c,this.event=u,this.maxActiveRequestCount=_,this.activeRequestCount=0,this.requestQueue=k7(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(r){var i;return Xb.validatePackageName(r)!==Xb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((i=this.typesRegistryCache)!=null&&i.has(r)))}installPackage(r){this.packageInstallId++;let i={kind:"installPackage",...r,id:this.packageInstallId},a=new Promise((c,u)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:c,reject:u})});return this.installer.send(i),a}attach(r){this.projectService=r,this.installer=this.createInstallerProcess()}onProjectClosed(r){this.installer.send({projectName:r.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(r,i,a){let c=jEe(r,i,a);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${_2(c)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(c):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${c.projectName}`),this.requestQueue.enqueue(c),this.requestMap.set(c.projectName,c))}handleMessage(r){var i,a;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${_2(r)}`),r.kind){case bte:this.typesRegistryCache=new Map(Object.entries(r.typesRegistry));break;case X$:{let c=(i=this.packageInstalledPromise)==null?void 0:i.get(r.id);L.assertIsDefined(c,"Should find the promise for package install"),(a=this.packageInstalledPromise)==null||a.delete(r.id),r.success?c.resolve({successMessage:r.message}):c.reject(r.message),this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case zve:{let c={message:r.message};this.event(c,"typesInstallerInitializationFailed");break}case Ste:{let c={eventId:r.eventId,packages:r.packagesToInstall};this.event(c,"beginInstallTypes");break}case Tte:{if(this.telemetryEnabled){let _={telemetryEventName:"typingsInstalled",payload:{installedPackages:r.packagesToInstall.join(","),installSuccess:r.installSuccess,typingsInstallerVersion:r.typingsInstallerVersion}};this.event(_,"telemetry")}let c={eventId:r.eventId,packages:r.packagesToInstall,success:r.installSuccess};this.event(c,"endInstallTypes");break}case K$:{this.projectService.updateTypingsForProject(r);break}case Y$:{for(this.activeRequestCount>0?this.activeRequestCount--:L.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let c=this.requestQueue.dequeue();if(this.requestMap.get(c.projectName)===c){this.requestMap.delete(c.projectName),this.scheduleRequest(c);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${c.projectName}`)}this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case CL:this.projectService.watchTypingLocations(r);break;default:}}scheduleRequest(r){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${r.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${_2(r)}`),this.installer.send(r)},Gpt.requestDelayMillis,`${r.projectName}::${r.kind}`)}};iYe.requestDelayMillis=100;var sYe=iYe,aYe={};x(aYe,{ActionInvalidate:t(()=>K$,"ActionInvalidate"),ActionPackageInstalled:t(()=>X$,"ActionPackageInstalled"),ActionSet:t(()=>Y$,"ActionSet"),ActionWatchTypingLocations:t(()=>CL,"ActionWatchTypingLocations"),Arguments:t(()=>xte,"Arguments"),AutoImportProviderProject:t(()=>sCe,"AutoImportProviderProject"),AuxiliaryProject:t(()=>nCe,"AuxiliaryProject"),CharRangeSection:t(()=>NCe,"CharRangeSection"),CloseFileWatcherEvent:t(()=>Uie,"CloseFileWatcherEvent"),CommandNames:t(()=>qGe,"CommandNames"),ConfigFileDiagEvent:t(()=>Lie,"ConfigFileDiagEvent"),ConfiguredProject:t(()=>aCe,"ConfiguredProject"),ConfiguredProjectLoadKind:t(()=>_Ce,"ConfiguredProjectLoadKind"),CreateDirectoryWatcherEvent:t(()=>Bie,"CreateDirectoryWatcherEvent"),CreateFileWatcherEvent:t(()=>jie,"CreateFileWatcherEvent"),Errors:t(()=>s1,"Errors"),EventBeginInstallTypes:t(()=>Ste,"EventBeginInstallTypes"),EventEndInstallTypes:t(()=>Tte,"EventEndInstallTypes"),EventInitializationFailed:t(()=>zve,"EventInitializationFailed"),EventTypesRegistry:t(()=>bte,"EventTypesRegistry"),ExternalProject:t(()=>Pie,"ExternalProject"),GcTimer:t(()=>qEe,"GcTimer"),InferredProject:t(()=>rCe,"InferredProject"),LargeFileReferencedEvent:t(()=>Fie,"LargeFileReferencedEvent"),LineIndex:t(()=>NR,"LineIndex"),LineLeaf:t(()=>IW,"LineLeaf"),LineNode:t(()=>lN,"LineNode"),LogLevel:t(()=>REe,"LogLevel"),Msg:t(()=>MEe,"Msg"),OpenFileInfoTelemetryEvent:t(()=>oCe,"OpenFileInfoTelemetryEvent"),Project:t(()=>zD,"Project"),ProjectInfoTelemetryEvent:t(()=>Mie,"ProjectInfoTelemetryEvent"),ProjectKind:t(()=>A8,"ProjectKind"),ProjectLanguageServiceStateEvent:t(()=>Rie,"ProjectLanguageServiceStateEvent"),ProjectLoadingFinishEvent:t(()=>Oie,"ProjectLoadingFinishEvent"),ProjectLoadingStartEvent:t(()=>Iie,"ProjectLoadingStartEvent"),ProjectService:t(()=>SCe,"ProjectService"),ProjectsUpdatedInBackgroundEvent:t(()=>PW,"ProjectsUpdatedInBackgroundEvent"),ScriptInfo:t(()=>YEe,"ScriptInfo"),ScriptVersionCache:t(()=>Zie,"ScriptVersionCache"),Session:t(()=>QGe,"Session"),TextStorage:t(()=>GEe,"TextStorage"),ThrottledOperations:t(()=>WEe,"ThrottledOperations"),TypingsInstallerAdapter:t(()=>sYe,"TypingsInstallerAdapter"),allFilesAreJsOrDts:t(()=>QEe,"allFilesAreJsOrDts"),allRootFilesAreJsOrDts:t(()=>ZEe,"allRootFilesAreJsOrDts"),asNormalizedPath:t(()=>gGe,"asNormalizedPath"),convertCompilerOptions:t(()=>AW,"convertCompilerOptions"),convertFormatOptions:t(()=>aN,"convertFormatOptions"),convertScriptKindName:t(()=>$ie,"convertScriptKindName"),convertTypeAcquisition:t(()=>lCe,"convertTypeAcquisition"),convertUserPreferences:t(()=>uCe,"convertUserPreferences"),convertWatchOptions:t(()=>PR,"convertWatchOptions"),countEachFileTypes:t(()=>CR,"countEachFileTypes"),createInstallTypingsRequest:t(()=>jEe,"createInstallTypingsRequest"),createModuleSpecifierCache:t(()=>ECe,"createModuleSpecifierCache"),createNormalizedPathMap:t(()=>yGe,"createNormalizedPathMap"),createPackageJsonCache:t(()=>CCe,"createPackageJsonCache"),createSortedArray:t(()=>JEe,"createSortedArray"),emptyArray:t(()=>fu,"emptyArray"),findArgument:t(()=>gMe,"findArgument"),formatDiagnosticToProtocol:t(()=>AR,"formatDiagnosticToProtocol"),formatMessage:t(()=>kCe,"formatMessage"),getBaseConfigFileName:t(()=>Die,"getBaseConfigFileName"),getDetailWatchInfo:t(()=>Vie,"getDetailWatchInfo"),getLocationInNewDocument:t(()=>ACe,"getLocationInNewDocument"),hasArgument:t(()=>hMe,"hasArgument"),hasNoTypeScriptSource:t(()=>eCe,"hasNoTypeScriptSource"),indent:t(()=>t8,"indent"),isBackgroundProject:t(()=>wR,"isBackgroundProject"),isConfigFile:t(()=>TCe,"isConfigFile"),isConfiguredProject:t(()=>dv,"isConfiguredProject"),isDynamicFileName:t(()=>P8,"isDynamicFileName"),isExternalProject:t(()=>kR,"isExternalProject"),isInferredProject:t(()=>sN,"isInferredProject"),isInferredProjectName:t(()=>BEe,"isInferredProjectName"),isProjectDeferredClose:t(()=>DR,"isProjectDeferredClose"),makeAutoImportProviderProjectName:t(()=>zEe,"makeAutoImportProviderProjectName"),makeAuxiliaryProjectName:t(()=>$Ee,"makeAuxiliaryProjectName"),makeInferredProjectName:t(()=>UEe,"makeInferredProjectName"),maxFileSize:t(()=>Nie,"maxFileSize"),maxProgramSizeForNonTsFiles:t(()=>Aie,"maxProgramSizeForNonTsFiles"),normalizedPathToPath:t(()=>iN,"normalizedPathToPath"),nowString:t(()=>yMe,"nowString"),nullCancellationToken:t(()=>$Ge,"nullCancellationToken"),nullTypingsInstaller:t(()=>NW,"nullTypingsInstaller"),protocol:t(()=>VEe,"protocol"),scriptInfoIsContainedByBackgroundProject:t(()=>KEe,"scriptInfoIsContainedByBackgroundProject"),scriptInfoIsContainedByDeferredClosedProject:t(()=>XEe,"scriptInfoIsContainedByDeferredClosedProject"),stringifyIndented:t(()=>_2,"stringifyIndented"),toEvent:t(()=>wCe,"toEvent"),toNormalizedPath:t(()=>Io,"toNormalizedPath"),tryConvertScriptKindName:t(()=>zie,"tryConvertScriptKindName"),typingsInstaller:t(()=>LEe,"typingsInstaller"),updateProjectIfDirty:t(()=>hm,"updateProjectIfDirty")}),typeof console<"u"&&(L.loggingHost={log(e,r){switch(e){case 1:return console.error(r);case 2:return console.warn(r);case 3:return console.log(r);case 4:return console.log(r)}}})})({get exports(){return zpt},set exports(s){zpt=s,typeof Qle<"u"&&Qle.exports&&(Qle.exports=s)}})});var tdt=ar(cG=>{"use strict";var bhr=cG&&cG.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(cG,"__esModule",{value:!0});cG.attachChildCleanup=whr;var Shr=bhr(uo("node:os")),Thr=["SIGINT","SIGTERM","SIGHUP"],tue=new Set,rue=new Map,VM;function edt(){for(let s of tue)if(!(s.exitCode!==null||s.signalCode!==null))try{s.kill("SIGKILL")}catch{}}t(edt,"killAllChildren");function xhr(s){let o=Shr.default.constants.signals[s];return typeof o=="number"?128+o:1}t(xhr,"reRaiseExitCode");function Ehr(s){return()=>{if(edt(),process.listenerCount(s)<=1){let o=rue.get(s);o&&process.off(s,o);try{process.kill(process.pid,s)}catch{process.exit(xhr(s))}}}}t(Ehr,"makeSignalListener");function Chr(){if(!VM){VM=t(()=>{edt()},"exitListener"),process.on("exit",VM);for(let s of Thr){let o=Ehr(s);rue.set(s,o),process.on(s,o)}}}t(Chr,"installProcessListeners");function khr(){if(VM){process.off("exit",VM),VM=void 0;for(let[s,o]of rue)process.off(s,o);rue.clear()}}t(khr,"uninstallProcessListeners");function whr(s){tue.add(s),Chr();let o=!1,f=t(()=>{o||(o=!0,tue.delete(s),tue.size===0&&khr())},"detach");return s.once("exit",f),f}t(whr,"attachChildCleanup")});var Fu={};Ytt(Fu,{__addDisposableResource:()=>kdt,__assign:()=>nue,__asyncDelegator:()=>ydt,__asyncGenerator:()=>gdt,__asyncValues:()=>vdt,__await:()=>HM,__awaiter:()=>fdt,__classPrivateFieldGet:()=>xdt,__classPrivateFieldIn:()=>Cdt,__classPrivateFieldSet:()=>Edt,__createBinding:()=>sue,__decorate:()=>idt,__disposeResources:()=>wdt,__esDecorate:()=>adt,__exportStar:()=>pdt,__extends:()=>rdt,__generator:()=>_dt,__importDefault:()=>Tdt,__importStar:()=>Sdt,__makeTemplateObject:()=>bdt,__metadata:()=>udt,__param:()=>sdt,__propKey:()=>cdt,__read:()=>x3e,__rest:()=>ndt,__rewriteRelativeImportExtension:()=>Ddt,__runInitializers:()=>odt,__setFunctionName:()=>ldt,__spread:()=>ddt,__spreadArray:()=>hdt,__spreadArrays:()=>mdt,__values:()=>iue,default:()=>Ahr});function rdt(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");S3e(s,o);function f(){this.constructor=s}t(f,"__"),s.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}function ndt(s,o){var f={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&o.indexOf(d)<0&&(f[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(s);y<d.length;y++)o.indexOf(d[y])<0&&Object.prototype.propertyIsEnumerable.call(s,d[y])&&(f[d[y]]=s[d[y]]);return f}function idt(s,o,f,d){var y=arguments.length,x=y<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,f):d,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(s,o,f,d);else for(var F=s.length-1;F>=0;F--)(P=s[F])&&(x=(y<3?P(x):y>3?P(o,f,x):P(o,f))||x);return y>3&&x&&Object.defineProperty(o,f,x),x}function sdt(s,o){return function(f,d){o(f,d,s)}}function adt(s,o,f,d,y,x){function P(Ut){if(Ut!==void 0&&typeof Ut!="function")throw new TypeError("Function expected");return Ut}t(P,"accept");for(var F=d.kind,W=F==="getter"?"get":F==="setter"?"set":"value",G=!o&&s?d.static?s:s.prototype:null,be=o||(G?Object.getOwnPropertyDescriptor(G,d.name):{}),de,se=!1,Xe=f.length-1;Xe>=0;Xe--){var Ue={};for(var je in d)Ue[je]=je==="access"?{}:d[je];for(var je in d.access)Ue.access[je]=d.access[je];Ue.addInitializer=function(Ut){if(se)throw new TypeError("Cannot add initializers after decoration has completed");x.push(P(Ut||null))};var Vt=(0,f[Xe])(F==="accessor"?{get:be.get,set:be.set}:be[W],Ue);if(F==="accessor"){if(Vt===void 0)continue;if(Vt===null||typeof Vt!="object")throw new TypeError("Object expected");(de=P(Vt.get))&&(be.get=de),(de=P(Vt.set))&&(be.set=de),(de=P(Vt.init))&&y.unshift(de)}else(de=P(Vt))&&(F==="field"?y.unshift(de):be[W]=de)}G&&Object.defineProperty(G,d.name,be),se=!0}function odt(s,o,f){for(var d=arguments.length>2,y=0;y<o.length;y++)f=d?o[y].call(s,f):o[y].call(s);return d?f:void 0}function cdt(s){return typeof s=="symbol"?s:"".concat(s)}function ldt(s,o,f){return typeof o=="symbol"&&(o=o.description?"[".concat(o.description,"]"):""),Object.defineProperty(s,"name",{configurable:!0,value:f?"".concat(f," ",o):o})}function udt(s,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,o)}function fdt(s,o,f,d){function y(x){return x instanceof f?x:new f(function(P){P(x)})}return t(y,"adopt"),new(f||(f=Promise))(function(x,P){function F(be){try{G(d.next(be))}catch(de){P(de)}}t(F,"fulfilled");function W(be){try{G(d.throw(be))}catch(de){P(de)}}t(W,"rejected");function G(be){be.done?x(be.value):y(be.value).then(F,W)}t(G,"step"),G((d=d.apply(s,o||[])).next())})}function _dt(s,o){var f={label:0,sent:t(function(){if(x[0]&1)throw x[1];return x[1]},"sent"),trys:[],ops:[]},d,y,x,P=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return P.next=F(0),P.throw=F(1),P.return=F(2),typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function F(G){return function(be){return W([G,be])}}function W(G){if(d)throw new TypeError("Generator is already executing.");for(;P&&(P=0,G[0]&&(f=0)),f;)try{if(d=1,y&&(x=G[0]&2?y.return:G[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,G[1])).done)return x;switch(y=0,x&&(G=[G[0]&2,x.value]),G[0]){case 0:case 1:x=G;break;case 4:return f.label++,{value:G[1],done:!1};case 5:f.label++,y=G[1],G=[0];continue;case 7:G=f.ops.pop(),f.trys.pop();continue;default:if(x=f.trys,!(x=x.length>0&&x[x.length-1])&&(G[0]===6||G[0]===2)){f=0;continue}if(G[0]===3&&(!x||G[1]>x[0]&&G[1]<x[3])){f.label=G[1];break}if(G[0]===6&&f.label<x[1]){f.label=x[1],x=G;break}if(x&&f.label<x[2]){f.label=x[2],f.ops.push(G);break}x[2]&&f.ops.pop(),f.trys.pop();continue}G=o.call(s,f)}catch(be){G=[6,be],y=0}finally{d=x=0}if(G[0]&5)throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}}function pdt(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&sue(o,s,f)}function iue(s){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&s[o],d=0;if(f)return f.call(s);if(s&&typeof s.length=="number")return{next:t(function(){return s&&d>=s.length&&(s=void 0),{value:s&&s[d++],done:!s}},"next")};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function x3e(s,o){var f=typeof Symbol=="function"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),y,x=[],P;try{for(;(o===void 0||o-- >0)&&!(y=d.next()).done;)x.push(y.value)}catch(F){P={error:F}}finally{try{y&&!y.done&&(f=d.return)&&f.call(d)}finally{if(P)throw P.error}}return x}function ddt(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(x3e(arguments[o]));return s}function mdt(){for(var s=0,o=0,f=arguments.length;o<f;o++)s+=arguments[o].length;for(var d=Array(s),y=0,o=0;o<f;o++)for(var x=arguments[o],P=0,F=x.length;P<F;P++,y++)d[y]=x[P];return d}function hdt(s,o,f){if(f||arguments.length===2)for(var d=0,y=o.length,x;d<y;d++)(x||!(d in o))&&(x||(x=Array.prototype.slice.call(o,0,d)),x[d]=o[d]);return s.concat(x||Array.prototype.slice.call(o))}function HM(s){return this instanceof HM?(this.v=s,this):new HM(s)}function gdt(s,o,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=f.apply(s,o||[]),y,x=[];return y=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),F("next"),F("throw"),F("return",P),y[Symbol.asyncIterator]=function(){return this},y;function P(Xe){return function(Ue){return Promise.resolve(Ue).then(Xe,de)}}function F(Xe,Ue){d[Xe]&&(y[Xe]=function(je){return new Promise(function(Vt,Ut){x.push([Xe,je,Vt,Ut])>1||W(Xe,je)})},Ue&&(y[Xe]=Ue(y[Xe])))}function W(Xe,Ue){try{G(d[Xe](Ue))}catch(je){se(x[0][3],je)}}function G(Xe){Xe.value instanceof HM?Promise.resolve(Xe.value.v).then(be,de):se(x[0][2],Xe)}function be(Xe){W("next",Xe)}function de(Xe){W("throw",Xe)}function se(Xe,Ue){Xe(Ue),x.shift(),x.length&&W(x[0][0],x[0][1])}}function ydt(s){var o,f;return o={},d("next"),d("throw",function(y){throw y}),d("return"),o[Symbol.iterator]=function(){return this},o;function d(y,x){o[y]=s[y]?function(P){return(f=!f)?{value:HM(s[y](P)),done:!1}:x?x(P):P}:x}}function vdt(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],f;return o?o.call(s):(s=typeof iue=="function"?iue(s):s[Symbol.iterator](),f={},d("next"),d("throw"),d("return"),f[Symbol.asyncIterator]=function(){return this},f);function d(x){f[x]=s[x]&&function(P){return new Promise(function(F,W){P=s[x](P),y(F,W,P.done,P.value)})}}function y(x,P,F,W){Promise.resolve(W).then(function(G){x({value:G,done:F})},P)}}function bdt(s,o){return Object.defineProperty?Object.defineProperty(s,"raw",{value:o}):s.raw=o,s}function Sdt(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f=T3e(s),d=0;d<f.length;d++)f[d]!=="default"&&sue(o,s,f[d]);return Dhr(o,s),o}function Tdt(s){return s&&s.__esModule?s:{default:s}}function xdt(s,o,f,d){if(f==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?s!==o||!d:!o.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?d:f==="a"?d.call(s):d?d.value:o.get(s)}function Edt(s,o,f,d,y){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?s!==o||!y:!o.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?y.call(s,f):y?y.value=f:o.set(s,f),f}function Cdt(s,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof s=="function"?o===s:s.has(o)}function kdt(s,o,f){if(o!=null){if(typeof o!="object"&&typeof o!="function")throw new TypeError("Object expected.");var d,y;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");d=o[Symbol.asyncDispose]}if(d===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");d=o[Symbol.dispose],f&&(y=d)}if(typeof d!="function")throw new TypeError("Object not disposable.");y&&(d=t(function(){try{y.call(this)}catch(x){return Promise.reject(x)}},"dispose")),s.stack.push({value:o,dispose:d,async:f})}else f&&s.stack.push({async:!0});return o}function wdt(s){function o(x){s.error=s.hasError?new Phr(x,s.error,"An error was suppressed during disposal."):x,s.hasError=!0}t(o,"fail");var f,d=0;function y(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(y);if(f.dispose){var x=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(x).then(y,function(P){return o(P),y()})}else d|=1}catch(P){o(P)}if(d===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return t(y,"next"),y()}function Ddt(s,o){return typeof s=="string"&&/^\.\.?\//.test(s)?s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,d,y,x,P){return d?o?".jsx":".js":y&&(!x||!P)?f:y+x+"."+P.toLowerCase()+"js"}):s}var S3e,nue,sue,Dhr,T3e,Phr,Ahr,Lu=zGt(()=>{S3e=t(function(s,o){return S3e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(f[y]=d[y])},S3e(s,o)},"extendStatics");t(rdt,"__extends");nue=t(function(){return nue=Object.assign||t(function(o){for(var f,d=1,y=arguments.length;d<y;d++){f=arguments[d];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(o[x]=f[x])}return o},"__assign"),nue.apply(this,arguments)},"__assign");t(ndt,"__rest");t(idt,"__decorate");t(sdt,"__param");t(adt,"__esDecorate");t(odt,"__runInitializers");t(cdt,"__propKey");t(ldt,"__setFunctionName");t(udt,"__metadata");t(fdt,"__awaiter");t(_dt,"__generator");sue=Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]});t(pdt,"__exportStar");t(iue,"__values");t(x3e,"__read");t(ddt,"__spread");t(mdt,"__spreadArrays");t(hdt,"__spreadArray");t(HM,"__await");t(gdt,"__asyncGenerator");t(ydt,"__asyncDelegator");t(vdt,"__asyncValues");t(bdt,"__makeTemplateObject");Dhr=Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o},T3e=t(function(s){return T3e=Object.getOwnPropertyNames||function(o){var f=[];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(f[f.length]=d);return f},T3e(s)},"ownKeys");t(Sdt,"__importStar");t(Tdt,"__importDefault");t(xdt,"__classPrivateFieldGet");t(Edt,"__classPrivateFieldSet");t(Cdt,"__classPrivateFieldIn");t(kdt,"__addDisposableResource");Phr=typeof SuppressedError=="function"?SuppressedError:function(s,o,f){var d=new Error(f);return d.name="SuppressedError",d.error=s,d.suppressed=o,d};t(wdt,"__disposeResources");t(Ddt,"__rewriteRelativeImportExtension");Ahr={__extends:rdt,__assign:nue,__rest:ndt,__decorate:idt,__param:sdt,__esDecorate:adt,__runInitializers:odt,__propKey:cdt,__setFunctionName:ldt,__metadata:udt,__awaiter:fdt,__generator:_dt,__createBinding:sue,__exportStar:pdt,__values:iue,__read:x3e,__spread:ddt,__spreadArrays:mdt,__spreadArray:hdt,__await:HM,__asyncGenerator:gdt,__asyncDelegator:ydt,__asyncValues:vdt,__makeTemplateObject:bdt,__importStar:Sdt,__importDefault:Tdt,__classPrivateFieldGet:xdt,__classPrivateFieldSet:Edt,__classPrivateFieldIn:Cdt,__addDisposableResource:kdt,__disposeResources:wdt,__rewriteRelativeImportExtension:Ddt}});var Adt=ar((d5r,Pdt)=>{var GM=1e3,YM=GM*60,KM=YM*60,YO=KM*24,Nhr=YO*7,Ihr=YO*365.25;Pdt.exports=function(s,o){o=o||{};var f=typeof s;if(f==="string"&&s.length>0)return Ohr(s);if(f==="number"&&isFinite(s))return o.long?Lhr(s):Fhr(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function Ohr(s){if(s=String(s),!(s.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(o){var f=parseFloat(o[1]),d=(o[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return f*Ihr;case"weeks":case"week":case"w":return f*Nhr;case"days":case"day":case"d":return f*YO;case"hours":case"hour":case"hrs":case"hr":case"h":return f*KM;case"minutes":case"minute":case"mins":case"min":case"m":return f*YM;case"seconds":case"second":case"secs":case"sec":case"s":return f*GM;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}t(Ohr,"parse");function Fhr(s){var o=Math.abs(s);return o>=YO?Math.round(s/YO)+"d":o>=KM?Math.round(s/KM)+"h":o>=YM?Math.round(s/YM)+"m":o>=GM?Math.round(s/GM)+"s":s+"ms"}t(Fhr,"fmtShort");function Lhr(s){var o=Math.abs(s);return o>=YO?aue(s,o,YO,"day"):o>=KM?aue(s,o,KM,"hour"):o>=YM?aue(s,o,YM,"minute"):o>=GM?aue(s,o,GM,"second"):s+" ms"}t(Lhr,"fmtLong");function aue(s,o,f,d){var y=o>=f*1.5;return Math.round(s/f)+" "+d+(y?"s":"")}t(aue,"plural")});var E3e=ar((h5r,Ndt)=>{function Rhr(s){f.debug=f,f.default=f,f.coerce=W,f.disable=P,f.enable=y,f.enabled=F,f.humanize=Adt(),f.destroy=G,Object.keys(s).forEach(be=>{f[be]=s[be]}),f.names=[],f.skips=[],f.formatters={};function o(be){let de=0;for(let se=0;se<be.length;se++)de=(de<<5)-de+be.charCodeAt(se),de|=0;return f.colors[Math.abs(de)%f.colors.length]}t(o,"selectColor"),f.selectColor=o;function f(be){let de,se=null,Xe,Ue;function je(...Vt){if(!je.enabled)return;let Ut=je,Ir=Number(new Date),wn=Ir-(de||Ir);Ut.diff=wn,Ut.prev=de,Ut.curr=Ir,de=Ir,Vt[0]=f.coerce(Vt[0]),typeof Vt[0]!="string"&&Vt.unshift("%O");let sn=0;Vt[0]=Vt[0].replace(/%([a-zA-Z%])/g,(kr,yr)=>{if(kr==="%%")return"%";sn++;let xs=f.formatters[yr];if(typeof xs=="function"){let bi=Vt[sn];kr=xs.call(Ut,bi),Vt.splice(sn,1),sn--}return kr}),f.formatArgs.call(Ut,Vt),(Ut.log||f.log).apply(Ut,Vt)}return t(je,"debug"),je.namespace=be,je.useColors=f.useColors(),je.color=f.selectColor(be),je.extend=d,je.destroy=f.destroy,Object.defineProperty(je,"enabled",{enumerable:!0,configurable:!1,get:t(()=>se!==null?se:(Xe!==f.namespaces&&(Xe=f.namespaces,Ue=f.enabled(be)),Ue),"get"),set:t(Vt=>{se=Vt},"set")}),typeof f.init=="function"&&f.init(je),je}t(f,"createDebug");function d(be,de){let se=f(this.namespace+(typeof de>"u"?":":de)+be);return se.log=this.log,se}t(d,"extend");function y(be){f.save(be),f.namespaces=be,f.names=[],f.skips=[];let de=(typeof be=="string"?be:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let se of de)se[0]==="-"?f.skips.push(se.slice(1)):f.names.push(se)}t(y,"enable");function x(be,de){let se=0,Xe=0,Ue=-1,je=0;for(;se<be.length;)if(Xe<de.length&&(de[Xe]===be[se]||de[Xe]==="*"))de[Xe]==="*"?(Ue=Xe,je=se,Xe++):(se++,Xe++);else if(Ue!==-1)Xe=Ue+1,je++,se=je;else return!1;for(;Xe<de.length&&de[Xe]==="*";)Xe++;return Xe===de.length}t(x,"matchesTemplate");function P(){let be=[...f.names,...f.skips.map(de=>"-"+de)].join(",");return f.enable(""),be}t(P,"disable");function F(be){for(let de of f.skips)if(x(be,de))return!1;for(let de of f.names)if(x(be,de))return!0;return!1}t(F,"enabled");function W(be){return be instanceof Error?be.stack||be.message:be}t(W,"coerce");function G(){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 t(G,"destroy"),f.enable(f.load()),f}t(Rhr,"setup");Ndt.exports=Rhr});var Idt=ar((eb,oue)=>{eb.formatArgs=jhr;eb.save=Bhr;eb.load=Uhr;eb.useColors=Mhr;eb.storage=zhr();eb.destroy=(()=>{let s=!1;return()=>{s||(s=!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`."))}})();eb.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 Mhr(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t(Mhr,"useColors");function jhr(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+oue.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;s.splice(1,0,o,"color: inherit");let f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(f++,y==="%c"&&(d=f))}),s.splice(d,0,o)}t(jhr,"formatArgs");eb.log=console.debug||console.log||(()=>{});function Bhr(s){try{s?eb.storage.setItem("debug",s):eb.storage.removeItem("debug")}catch{}}t(Bhr,"save");function Uhr(){let s;try{s=eb.storage.getItem("debug")||eb.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}t(Uhr,"load");function zhr(){try{return localStorage}catch{}}t(zhr,"localstorage");oue.exports=E3e()(eb);var{formatters:$hr}=oue.exports;$hr.j=function(s){try{return JSON.stringify(s)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var Fdt=ar((v5r,Odt)=>{"use strict";Odt.exports=(s,o=process.argv)=>{let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}});var Mdt=ar((b5r,Rdt)=>{"use strict";var Jhr=uo("os"),Ldt=uo("tty"),CT=Fdt(),{env:Mg}=process,cue;CT("no-color")||CT("no-colors")||CT("color=false")||CT("color=never")?cue=0:(CT("color")||CT("colors")||CT("color=true")||CT("color=always"))&&(cue=1);function Whr(){if("FORCE_COLOR"in Mg)return Mg.FORCE_COLOR==="true"?1:Mg.FORCE_COLOR==="false"?0:Mg.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Mg.FORCE_COLOR,10),3)}t(Whr,"envForceColor");function qhr(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(qhr,"translateLevel");function Vhr(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=Whr();d!==void 0&&(cue=d);let y=f?cue:d;if(y===0)return 0;if(f){if(CT("color=16m")||CT("color=full")||CT("color=truecolor"))return 3;if(CT("color=256"))return 2}if(s&&!o&&y===void 0)return 0;let x=y||0;if(Mg.TERM==="dumb")return x;if(process.platform==="win32"){let P=Jhr.release().split(".");return Number(P[0])>=10&&Number(P[2])>=10586?Number(P[2])>=14931?3:2:1}if("CI"in Mg)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(P=>P in Mg)||Mg.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Mg)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Mg.TEAMCITY_VERSION)?1:0;if(Mg.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Mg){let P=Number.parseInt((Mg.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Mg.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Mg.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Mg.TERM)||"COLORTERM"in Mg?1:x}t(Vhr,"supportsColor");function C3e(s,o={}){let f=Vhr(s,{streamIsTTY:s&&s.isTTY,...o});return qhr(f)}t(C3e,"getSupportLevel");Rdt.exports={supportsColor:C3e,stdout:C3e({isTTY:Ldt.isatty(1)}),stderr:C3e({isTTY:Ldt.isatty(2)})}});var Bdt=ar((jg,uue)=>{var Hhr=uo("tty"),lue=uo("util");jg.init=egr;jg.log=Xhr;jg.formatArgs=Yhr;jg.save=Zhr;jg.load=Qhr;jg.useColors=Ghr;jg.destroy=lue.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");jg.colors=[6,2,3,4,5,1];try{let s=Mdt();s&&(s.stderr||s).level>=2&&(jg.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{}jg.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,o)=>{let f=o.substring(6).toLowerCase().replace(/_([a-z])/g,(y,x)=>x.toUpperCase()),d=process.env[o];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),s[f]=d,s},{});function Ghr(){return"colors"in jg.inspectOpts?!!jg.inspectOpts.colors:Hhr.isatty(process.stderr.fd)}t(Ghr,"useColors");function Yhr(s){let{namespace:o,useColors:f}=this;if(f){let d=this.color,y="\x1B[3"+(d<8?d:"8;5;"+d),x=` ${y};1m${o} \x1B[0m`;s[0]=x+s[0].split(`
545
+ `+A.stack)}finally{this.performanceData=S}}parseMessage(r){return JSON.parse(r)}toStringMessage(r){return r}getFormatOptions(r){return this.projectService.getFormatCodeOptions(r)}getPreferences(r){return this.projectService.getPreferences(r)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function eYe(e){let r=e.diagnosticsDuration&&Ps(e.diagnosticsDuration,([i,a])=>({...a,file:i}));return{...e,diagnosticsDuration:r}}t(eYe,"toProtocolPerformanceData");function ug(e,r){return{start:r.positionToLineOffset(e.start),end:r.positionToLineOffset(Fc(e))}}t(ug,"toProtocolTextSpan");function PCe(e,r,i){let a=ug(e,i),c=r&&ug(r,i);return c?{...a,contextStart:c.start,contextEnd:c.end}:a}t(PCe,"toProtocolTextSpanWithContext");function YRt(e,r){return{start:tYe(r,e.span.start),end:tYe(r,Fc(e.span)),newText:e.newText}}t(YRt,"convertTextChangeToCodeEdit");function tYe(e,r){return TCe(e)?XRt(e.getLineAndCharacterOfPosition(r)):e.positionToLineOffset(r)}t(tYe,"positionToLineOffset");function KRt(e,r){let i=e.ranges.map(a=>({start:r.positionToLineOffset(a.start),end:r.positionToLineOffset(a.start+a.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}t(KRt,"convertLinkedEditInfoToRanges");function XRt(e){return{line:e.line+1,offset:e.character+1}}t(XRt,"locationFromLineAndCharacter");function ZRt(e){L.assert(e.textChanges.length===1);let r=Ga(e.textChanges);return L.assert(r.span.start===0&&r.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:r.newText}]}}t(ZRt,"convertNewFileTextChangeToCodeEdit");function ACe(e,r,i,a){let c=QRt(e,r,a),{line:u,character:_}=TA(gw(c),i);return{line:u+1,offset:_+1}}t(ACe,"getLocationInNewDocument");function QRt(e,r,i){for(let{fileName:a,textChanges:c}of i)if(a===r)for(let u=c.length-1;u>=0;u--){let{newText:_,span:{start:h,length:m}}=c[u];e=e.slice(0,h)+_+e.slice(h+m)}return e}t(QRt,"applyEdits");function rYe(e,{fileName:r,textSpan:i,contextSpan:a,isWriteAccess:c,isDefinition:u},{disableLineTextInReferences:_}){let h=L.checkDefined(e.getScriptInfo(r)),m=PCe(i,a,h),T=_?void 0:e9t(h,m);return{file:r,...m,lineText:T,isWriteAccess:c,isDefinition:u}}t(rYe,"referenceEntryToReferencesResponseItem");function e9t(e,r){let i=e.lineToTextSpan(r.start.line-1);return e.getSnapshot().getText(i.start,Fc(i)).replace(/\r|\n/g,"")}t(e9t,"getLineText");function t9t(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}t(t9t,"isCompletionEntryData");var cN=4,NCe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(NCe||{}),r9t=class{static{t(this,"EditWalker")}constructor(){this.goSubtree=!0,this.lineIndex=new NR,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new lN,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,r){r&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let a=NR.linesFromText(e).lines;a.length>1&&a[a.length-1]===""&&a.pop();let c,u;for(let h=this.endBranch.length-1;h>=0;h--)this.endBranch[h].updateCounts(),this.endBranch[h].charCount()===0&&(u=this.endBranch[h],h>0?c=this.endBranch[h-1]:c=this.branchNode);u&&c.remove(u);let _=this.startPath[this.startPath.length-1];if(a.length>0)if(_.text=a[0],a.length>1){let h=new Array(a.length-1),m=_;for(let E=1;E<a.length;E++)h[E-1]=new IW(a[E]);let T=this.startPath.length-2;for(;T>=0;){let E=this.startPath[T];h=E.insertAt(m,h),T--,m=E}let S=h.length;for(;S>0;){let E=new lN;E.add(this.lineIndex.root),h=E.insertAt(this.lineIndex.root,h),S=h.length,this.lineIndex.root=E}this.lineIndex.root.updateCounts()}else for(let h=this.startPath.length-2;h>=0;h--)this.startPath[h].updateCounts();else{this.startPath[this.startPath.length-2].remove(_);for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts()}return this.lineIndex}post(e,r,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,r,i,a,c){let u=this.stack[this.stack.length-1];this.state===2&&c===1&&(this.state=1,this.branchNode=u,this.lineCollectionAtBranch=i);let _;function h(m){return m.isLeaf()?new IW(""):new lN}switch(t(h,"fresh"),c){case 0:this.goSubtree=!1,this.state!==4&&u.add(i);break;case 1:this.state===4?this.goSubtree=!1:(_=h(i),u.add(_),this.startPath.push(_));break;case 2:this.state!==4?(_=h(i),u.add(_),this.startPath.push(_)):i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 5:this.goSubtree=!1,this.state!==1&&u.add(i);break}this.goSubtree&&this.stack.push(_)}leaf(e,r,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+r)):this.trailingText=i.text.substring(e+r)}},n9t=class{static{t(this,"TextChange9")}constructor(e,r,i){this.pos=e,this.deleteLen=r,this.insertedText=i}getTextChangeRange(){return $7(Gu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xie=class Xk{static{t(this,"_ScriptVersionCache")}constructor(){this.changes=[],this.versions=new Array(Xk.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(r){if(!(r<this.minVersion||r>this.currentVersion))return r%Xk.maxVersions}currentVersionToIndex(){return this.currentVersion%Xk.maxVersions}edit(r,i,a){this.changes.push(new n9t(r,i,a)),(this.changes.length>Xk.changeNumberThreshold||i>Xk.changeLengthThreshold||a&&a.length>Xk.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let r=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=r.index;for(let a of this.changes)i=i.edit(a.pos,a.deleteLen,a.insertedText);r=new nYe(this.currentVersion+1,this,i,this.changes),this.currentVersion=r.version,this.versions[this.currentVersionToIndex()]=r,this.changes=[],this.currentVersion-this.minVersion>=Xk.maxVersions&&(this.minVersion=this.currentVersion-Xk.maxVersions+1)}return r}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(r){return this._getSnapshot().index.lineNumberToInfo(r)}lineOffsetToPosition(r,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(r)+(i-1)}positionToLineOffset(r){return this._getSnapshot().index.positionToLineOffset(r)}lineToTextSpan(r){let i=this._getSnapshot().index,{lineText:a,absolutePosition:c}=i.lineNumberToInfo(r+1),u=a!==void 0?a.length:i.absolutePositionOfStartOfLine(r+2)-c;return Gu(c,u)}getTextChangesBetweenVersions(r,i){if(r<i)if(r>=this.minVersion){let a=[];for(let c=r+1;c<=i;c++){let u=this.versions[this.versionToIndex(c)];for(let _ of u.changesSincePreviousVersion)a.push(_.getTextChangeRange())}return ude(a)}else return;else return nB}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(r){let i=new Xk,a=new nYe(0,i,new NR);i.versions[i.currentVersion]=a;let c=NR.linesFromText(r);return a.index.load(c.lines),i}};Xie.changeNumberThreshold=8,Xie.changeLengthThreshold=256,Xie.maxVersions=8;var Zie=Xie,nYe=class Hpt{static{t(this,"_LineIndexSnapshot")}constructor(r,i,a,c=fu){this.version=r,this.cache=i,this.index=a,this.changesSincePreviousVersion=c}getText(r,i){return this.index.getText(r,i-r)}getLength(){return this.index.getLength()}getChangeRange(r){if(r instanceof Hpt&&this.cache===r.cache)return this.version<=r.version?nB:this.cache.getTextChangesBetweenVersions(r.version,this.version)}},NR=class h3e{static{t(this,"_LineIndex")}constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(r){return this.lineNumberToInfo(r).absolutePosition}positionToLineOffset(r){let{oneBasedLine:i,zeroBasedColumn:a}=this.root.charOffsetToLineInfo(1,r);return{line:i,offset:a+1}}positionToColumnAndLineText(r){return this.root.charOffsetToLineInfo(1,r)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(r){let i=this.getLineCount();if(r<=i){let{position:a,leaf:c}=this.root.lineNumberToInfo(r,0);return{absolutePosition:a,lineText:c&&c.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(r){if(r.length>0){let i=[];for(let a=0;a<r.length;a++)i[a]=new IW(r[a]);this.root=h3e.buildTreeFromBottom(i)}else this.root=new lN}walk(r,i,a){this.root.walk(r,i,a)}getText(r,i){let a="";return i>0&&r<this.root.charCount()&&this.walk(r,i,{goSubtree:!0,done:!1,leaf:t((c,u,_)=>{a=a.concat(_.text.substring(c,c+u))},"leaf")}),a}getLength(){return this.root.charCount()}every(r,i,a){a||(a=this.root.charCount());let c={goSubtree:!0,done:!1,leaf(u,_,h){r(h,u,_)||(this.done=!0)}};return this.walk(i,a-i,c),!c.done}edit(r,i,a){if(this.root.charCount()===0)return L.assert(i===0),a!==void 0?(this.load(h3e.linesFromText(a).lines),this):void 0;{let c;if(this.checkEdits){let h=this.getText(0,this.root.charCount());c=h.slice(0,r)+a+h.slice(r+i)}let u=new r9t,_=!1;if(r>=this.root.charCount()){r=this.root.charCount()-1;let h=this.getText(r,1);a?a=h+a:a=h,i=0,_=!0}else if(i>0){let h=r+i,{zeroBasedColumn:m,lineText:T}=this.positionToColumnAndLineText(h);m===0&&(i+=T.length,a=a?a+T:T)}if(this.root.walk(r,i,u),u.insertLines(a,_),this.checkEdits){let h=u.lineIndex.getText(0,u.lineIndex.getLength());L.assert(c===h,"buffer edit mismatch")}return u.lineIndex}}static buildTreeFromBottom(r){if(r.length<cN)return new lN(r);let i=new Array(Math.ceil(r.length/cN)),a=0;for(let c=0;c<i.length;c++){let u=Math.min(a+cN,r.length);i[c]=new lN(r.slice(a,u)),a=u}return this.buildTreeFromBottom(i)}static linesFromText(r){let i=gw(r);if(i.length===0)return{lines:[],lineMap:i};let a=new Array(i.length),c=i.length-1;for(let _=0;_<c;_++)a[_]=r.substring(i[_],i[_+1]);let u=r.substring(i[c]);return u.length>0?a[c]=u:a.pop(),{lines:a,lineMap:i}}},lN=class g3e{static{t(this,"_LineNode")}constructor(r=[]){this.children=r,this.totalChars=0,this.totalLines=0,r.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let r of this.children)this.totalChars+=r.charCount(),this.totalLines+=r.lineCount()}execWalk(r,i,a,c,u){return a.pre&&a.pre(r,i,this.children[c],this,u),a.goSubtree?(this.children[c].walk(r,i,a),a.post&&a.post(r,i,this.children[c],this,u)):a.goSubtree=!0,a.done}skipChild(r,i,a,c,u){c.pre&&!c.done&&(c.pre(r,i,this.children[a],this,u),c.goSubtree=!0)}walk(r,i,a){if(this.children.length===0)return;let c=0,u=this.children[c].charCount(),_=r;for(;_>=u;)this.skipChild(_,i,c,a,0),_-=u,c++,u=this.children[c].charCount();if(_+i<=u){if(this.execWalk(_,i,a,c,2))return}else{if(this.execWalk(_,u-_,a,c,1))return;let h=i-(u-_);for(c++,u=this.children[c].charCount();h>u;){if(this.execWalk(0,u,a,c,3))return;h-=u,c++,u=this.children[c].charCount()}if(h>0&&this.execWalk(0,h,a,c,4))return}if(a.pre){let h=this.children.length;if(c<h-1)for(let m=c+1;m<h;m++)this.skipChild(0,0,m,a,5)}}charOffsetToLineInfo(r,i){if(this.children.length===0)return{oneBasedLine:r,zeroBasedColumn:i,lineText:void 0};for(let u of this.children){if(u.charCount()>i)return u.isLeaf()?{oneBasedLine:r,zeroBasedColumn:i,lineText:u.text}:u.charOffsetToLineInfo(r,i);i-=u.charCount(),r+=u.lineCount()}let a=this.lineCount();if(a===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let c=L.checkDefined(this.lineNumberToInfo(a,0).leaf);return{oneBasedLine:a,zeroBasedColumn:c.charCount(),lineText:void 0}}lineNumberToInfo(r,i){for(let a of this.children){let c=a.lineCount();if(c>=r)return a.isLeaf()?{position:i,leaf:a}:a.lineNumberToInfo(r,i);r-=c,i+=a.charCount()}return{position:i,leaf:void 0}}splitAfter(r){let i,a=this.children.length;r++;let c=r;if(r<a){for(i=new g3e;r<a;)i.add(this.children[r]),r++;i.updateCounts()}return this.children.length=c,i}remove(r){let i=this.findChildIndex(r),a=this.children.length;if(i<a-1)for(let c=i;c<a-1;c++)this.children[c]=this.children[c+1];this.children.pop()}findChildIndex(r){let i=this.children.indexOf(r);return L.assert(i!==-1),i}insertAt(r,i){let a=this.findChildIndex(r),c=this.children.length,u=i.length;if(c<cN&&a===c-1&&u===1)return this.add(i[0]),this.updateCounts(),[];{let _=this.splitAfter(a),h=0;for(a++;a<cN&&h<u;)this.children[a]=i[h],a++,h++;let m=[],T=0;if(h<u){T=Math.ceil((u-h)/cN),m=new Array(T);let S=0;for(let D=0;D<T;D++)m[D]=new g3e;let E=m[0];for(;h<u;)E.add(i[h]),h++,E.children.length===cN&&(S++,E=m[S]);for(let D=m.length-1;D>=0;D--)m[D].children.length===0&&m.pop()}_&&m.push(_),this.updateCounts();for(let S=0;S<T;S++)m[S].updateCounts();return m}}add(r){this.children.push(r),L.assert(this.children.length<=cN)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},IW=class{static{t(this,"LineLeaf")}constructor(e){this.text=e}isLeaf(){return!0}walk(e,r,i){i.leaf(e,r,this)}charCount(){return this.text.length}lineCount(){return 1}},iYe=class Gpt{static{t(this,"_TypingsInstallerAdapter")}constructor(r,i,a,c,u,_){this.telemetryEnabled=r,this.logger=i,this.host=a,this.globalTypingsCacheLocation=c,this.event=u,this.maxActiveRequestCount=_,this.activeRequestCount=0,this.requestQueue=k7(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(r){var i;return Xb.validatePackageName(r)!==Xb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((i=this.typesRegistryCache)!=null&&i.has(r)))}installPackage(r){this.packageInstallId++;let i={kind:"installPackage",...r,id:this.packageInstallId},a=new Promise((c,u)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:c,reject:u})});return this.installer.send(i),a}attach(r){this.projectService=r,this.installer=this.createInstallerProcess()}onProjectClosed(r){this.installer.send({projectName:r.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(r,i,a){let c=jEe(r,i,a);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${_2(c)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(c):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${c.projectName}`),this.requestQueue.enqueue(c),this.requestMap.set(c.projectName,c))}handleMessage(r){var i,a;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${_2(r)}`),r.kind){case bte:this.typesRegistryCache=new Map(Object.entries(r.typesRegistry));break;case X$:{let c=(i=this.packageInstalledPromise)==null?void 0:i.get(r.id);L.assertIsDefined(c,"Should find the promise for package install"),(a=this.packageInstalledPromise)==null||a.delete(r.id),r.success?c.resolve({successMessage:r.message}):c.reject(r.message),this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case zve:{let c={message:r.message};this.event(c,"typesInstallerInitializationFailed");break}case Ste:{let c={eventId:r.eventId,packages:r.packagesToInstall};this.event(c,"beginInstallTypes");break}case Tte:{if(this.telemetryEnabled){let _={telemetryEventName:"typingsInstalled",payload:{installedPackages:r.packagesToInstall.join(","),installSuccess:r.installSuccess,typingsInstallerVersion:r.typingsInstallerVersion}};this.event(_,"telemetry")}let c={eventId:r.eventId,packages:r.packagesToInstall,success:r.installSuccess};this.event(c,"endInstallTypes");break}case K$:{this.projectService.updateTypingsForProject(r);break}case Y$:{for(this.activeRequestCount>0?this.activeRequestCount--:L.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let c=this.requestQueue.dequeue();if(this.requestMap.get(c.projectName)===c){this.requestMap.delete(c.projectName),this.scheduleRequest(c);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${c.projectName}`)}this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case CL:this.projectService.watchTypingLocations(r);break;default:}}scheduleRequest(r){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${r.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${_2(r)}`),this.installer.send(r)},Gpt.requestDelayMillis,`${r.projectName}::${r.kind}`)}};iYe.requestDelayMillis=100;var sYe=iYe,aYe={};x(aYe,{ActionInvalidate:t(()=>K$,"ActionInvalidate"),ActionPackageInstalled:t(()=>X$,"ActionPackageInstalled"),ActionSet:t(()=>Y$,"ActionSet"),ActionWatchTypingLocations:t(()=>CL,"ActionWatchTypingLocations"),Arguments:t(()=>xte,"Arguments"),AutoImportProviderProject:t(()=>sCe,"AutoImportProviderProject"),AuxiliaryProject:t(()=>nCe,"AuxiliaryProject"),CharRangeSection:t(()=>NCe,"CharRangeSection"),CloseFileWatcherEvent:t(()=>Uie,"CloseFileWatcherEvent"),CommandNames:t(()=>qGe,"CommandNames"),ConfigFileDiagEvent:t(()=>Lie,"ConfigFileDiagEvent"),ConfiguredProject:t(()=>aCe,"ConfiguredProject"),ConfiguredProjectLoadKind:t(()=>_Ce,"ConfiguredProjectLoadKind"),CreateDirectoryWatcherEvent:t(()=>Bie,"CreateDirectoryWatcherEvent"),CreateFileWatcherEvent:t(()=>jie,"CreateFileWatcherEvent"),Errors:t(()=>s1,"Errors"),EventBeginInstallTypes:t(()=>Ste,"EventBeginInstallTypes"),EventEndInstallTypes:t(()=>Tte,"EventEndInstallTypes"),EventInitializationFailed:t(()=>zve,"EventInitializationFailed"),EventTypesRegistry:t(()=>bte,"EventTypesRegistry"),ExternalProject:t(()=>Pie,"ExternalProject"),GcTimer:t(()=>qEe,"GcTimer"),InferredProject:t(()=>rCe,"InferredProject"),LargeFileReferencedEvent:t(()=>Fie,"LargeFileReferencedEvent"),LineIndex:t(()=>NR,"LineIndex"),LineLeaf:t(()=>IW,"LineLeaf"),LineNode:t(()=>lN,"LineNode"),LogLevel:t(()=>REe,"LogLevel"),Msg:t(()=>MEe,"Msg"),OpenFileInfoTelemetryEvent:t(()=>oCe,"OpenFileInfoTelemetryEvent"),Project:t(()=>zD,"Project"),ProjectInfoTelemetryEvent:t(()=>Mie,"ProjectInfoTelemetryEvent"),ProjectKind:t(()=>A8,"ProjectKind"),ProjectLanguageServiceStateEvent:t(()=>Rie,"ProjectLanguageServiceStateEvent"),ProjectLoadingFinishEvent:t(()=>Oie,"ProjectLoadingFinishEvent"),ProjectLoadingStartEvent:t(()=>Iie,"ProjectLoadingStartEvent"),ProjectService:t(()=>SCe,"ProjectService"),ProjectsUpdatedInBackgroundEvent:t(()=>PW,"ProjectsUpdatedInBackgroundEvent"),ScriptInfo:t(()=>YEe,"ScriptInfo"),ScriptVersionCache:t(()=>Zie,"ScriptVersionCache"),Session:t(()=>QGe,"Session"),TextStorage:t(()=>GEe,"TextStorage"),ThrottledOperations:t(()=>WEe,"ThrottledOperations"),TypingsInstallerAdapter:t(()=>sYe,"TypingsInstallerAdapter"),allFilesAreJsOrDts:t(()=>QEe,"allFilesAreJsOrDts"),allRootFilesAreJsOrDts:t(()=>ZEe,"allRootFilesAreJsOrDts"),asNormalizedPath:t(()=>gGe,"asNormalizedPath"),convertCompilerOptions:t(()=>AW,"convertCompilerOptions"),convertFormatOptions:t(()=>aN,"convertFormatOptions"),convertScriptKindName:t(()=>$ie,"convertScriptKindName"),convertTypeAcquisition:t(()=>lCe,"convertTypeAcquisition"),convertUserPreferences:t(()=>uCe,"convertUserPreferences"),convertWatchOptions:t(()=>PR,"convertWatchOptions"),countEachFileTypes:t(()=>CR,"countEachFileTypes"),createInstallTypingsRequest:t(()=>jEe,"createInstallTypingsRequest"),createModuleSpecifierCache:t(()=>ECe,"createModuleSpecifierCache"),createNormalizedPathMap:t(()=>yGe,"createNormalizedPathMap"),createPackageJsonCache:t(()=>CCe,"createPackageJsonCache"),createSortedArray:t(()=>JEe,"createSortedArray"),emptyArray:t(()=>fu,"emptyArray"),findArgument:t(()=>gMe,"findArgument"),formatDiagnosticToProtocol:t(()=>AR,"formatDiagnosticToProtocol"),formatMessage:t(()=>kCe,"formatMessage"),getBaseConfigFileName:t(()=>Die,"getBaseConfigFileName"),getDetailWatchInfo:t(()=>Vie,"getDetailWatchInfo"),getLocationInNewDocument:t(()=>ACe,"getLocationInNewDocument"),hasArgument:t(()=>hMe,"hasArgument"),hasNoTypeScriptSource:t(()=>eCe,"hasNoTypeScriptSource"),indent:t(()=>t8,"indent"),isBackgroundProject:t(()=>wR,"isBackgroundProject"),isConfigFile:t(()=>TCe,"isConfigFile"),isConfiguredProject:t(()=>dv,"isConfiguredProject"),isDynamicFileName:t(()=>P8,"isDynamicFileName"),isExternalProject:t(()=>kR,"isExternalProject"),isInferredProject:t(()=>sN,"isInferredProject"),isInferredProjectName:t(()=>BEe,"isInferredProjectName"),isProjectDeferredClose:t(()=>DR,"isProjectDeferredClose"),makeAutoImportProviderProjectName:t(()=>zEe,"makeAutoImportProviderProjectName"),makeAuxiliaryProjectName:t(()=>$Ee,"makeAuxiliaryProjectName"),makeInferredProjectName:t(()=>UEe,"makeInferredProjectName"),maxFileSize:t(()=>Nie,"maxFileSize"),maxProgramSizeForNonTsFiles:t(()=>Aie,"maxProgramSizeForNonTsFiles"),normalizedPathToPath:t(()=>iN,"normalizedPathToPath"),nowString:t(()=>yMe,"nowString"),nullCancellationToken:t(()=>$Ge,"nullCancellationToken"),nullTypingsInstaller:t(()=>NW,"nullTypingsInstaller"),protocol:t(()=>VEe,"protocol"),scriptInfoIsContainedByBackgroundProject:t(()=>KEe,"scriptInfoIsContainedByBackgroundProject"),scriptInfoIsContainedByDeferredClosedProject:t(()=>XEe,"scriptInfoIsContainedByDeferredClosedProject"),stringifyIndented:t(()=>_2,"stringifyIndented"),toEvent:t(()=>wCe,"toEvent"),toNormalizedPath:t(()=>Io,"toNormalizedPath"),tryConvertScriptKindName:t(()=>zie,"tryConvertScriptKindName"),typingsInstaller:t(()=>LEe,"typingsInstaller"),updateProjectIfDirty:t(()=>hm,"updateProjectIfDirty")}),typeof console<"u"&&(L.loggingHost={log(e,r){switch(e){case 1:return console.error(r);case 2:return console.warn(r);case 3:return console.log(r);case 4:return console.log(r)}}})})({get exports(){return zpt},set exports(s){zpt=s,typeof Qle<"u"&&Qle.exports&&(Qle.exports=s)}})});var tdt=ar(cG=>{"use strict";var bhr=cG&&cG.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(cG,"__esModule",{value:!0});cG.attachChildCleanup=whr;var Shr=bhr(uo("node:os")),Thr=["SIGINT","SIGTERM","SIGHUP"],tue=new Set,rue=new Map,VM;function edt(){for(let s of tue)if(!(s.exitCode!==null||s.signalCode!==null))try{s.kill("SIGKILL")}catch{}}t(edt,"killAllChildren");function xhr(s){let o=Shr.default.constants.signals[s];return typeof o=="number"?128+o:1}t(xhr,"reRaiseExitCode");function Ehr(s){return()=>{if(edt(),process.listenerCount(s)<=1){let o=rue.get(s);o&&process.off(s,o);try{process.kill(process.pid,s)}catch{process.exit(xhr(s))}}}}t(Ehr,"makeSignalListener");function Chr(){if(!VM){VM=t(()=>{edt()},"exitListener"),process.on("exit",VM);for(let s of Thr){let o=Ehr(s);rue.set(s,o),process.on(s,o)}}}t(Chr,"installProcessListeners");function khr(){if(VM){process.off("exit",VM),VM=void 0;for(let[s,o]of rue)process.off(s,o);rue.clear()}}t(khr,"uninstallProcessListeners");function whr(s){tue.add(s),Chr();let o=!1,f=t(()=>{o||(o=!0,tue.delete(s),tue.size===0&&khr())},"detach");return s.once("exit",f),f}t(whr,"attachChildCleanup")});var Fu={};Ytt(Fu,{__addDisposableResource:()=>kdt,__assign:()=>nue,__asyncDelegator:()=>ydt,__asyncGenerator:()=>gdt,__asyncValues:()=>vdt,__await:()=>HM,__awaiter:()=>fdt,__classPrivateFieldGet:()=>xdt,__classPrivateFieldIn:()=>Cdt,__classPrivateFieldSet:()=>Edt,__createBinding:()=>sue,__decorate:()=>idt,__disposeResources:()=>wdt,__esDecorate:()=>adt,__exportStar:()=>pdt,__extends:()=>rdt,__generator:()=>_dt,__importDefault:()=>Tdt,__importStar:()=>Sdt,__makeTemplateObject:()=>bdt,__metadata:()=>udt,__param:()=>sdt,__propKey:()=>cdt,__read:()=>x3e,__rest:()=>ndt,__rewriteRelativeImportExtension:()=>Ddt,__runInitializers:()=>odt,__setFunctionName:()=>ldt,__spread:()=>ddt,__spreadArray:()=>hdt,__spreadArrays:()=>mdt,__values:()=>iue,default:()=>Ahr});function rdt(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");S3e(s,o);function f(){this.constructor=s}t(f,"__"),s.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}function ndt(s,o){var f={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&o.indexOf(d)<0&&(f[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(s);y<d.length;y++)o.indexOf(d[y])<0&&Object.prototype.propertyIsEnumerable.call(s,d[y])&&(f[d[y]]=s[d[y]]);return f}function idt(s,o,f,d){var y=arguments.length,x=y<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,f):d,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(s,o,f,d);else for(var F=s.length-1;F>=0;F--)(P=s[F])&&(x=(y<3?P(x):y>3?P(o,f,x):P(o,f))||x);return y>3&&x&&Object.defineProperty(o,f,x),x}function sdt(s,o){return function(f,d){o(f,d,s)}}function adt(s,o,f,d,y,x){function P(Ut){if(Ut!==void 0&&typeof Ut!="function")throw new TypeError("Function expected");return Ut}t(P,"accept");for(var F=d.kind,W=F==="getter"?"get":F==="setter"?"set":"value",G=!o&&s?d.static?s:s.prototype:null,be=o||(G?Object.getOwnPropertyDescriptor(G,d.name):{}),de,se=!1,Xe=f.length-1;Xe>=0;Xe--){var Ue={};for(var je in d)Ue[je]=je==="access"?{}:d[je];for(var je in d.access)Ue.access[je]=d.access[je];Ue.addInitializer=function(Ut){if(se)throw new TypeError("Cannot add initializers after decoration has completed");x.push(P(Ut||null))};var Vt=(0,f[Xe])(F==="accessor"?{get:be.get,set:be.set}:be[W],Ue);if(F==="accessor"){if(Vt===void 0)continue;if(Vt===null||typeof Vt!="object")throw new TypeError("Object expected");(de=P(Vt.get))&&(be.get=de),(de=P(Vt.set))&&(be.set=de),(de=P(Vt.init))&&y.unshift(de)}else(de=P(Vt))&&(F==="field"?y.unshift(de):be[W]=de)}G&&Object.defineProperty(G,d.name,be),se=!0}function odt(s,o,f){for(var d=arguments.length>2,y=0;y<o.length;y++)f=d?o[y].call(s,f):o[y].call(s);return d?f:void 0}function cdt(s){return typeof s=="symbol"?s:"".concat(s)}function ldt(s,o,f){return typeof o=="symbol"&&(o=o.description?"[".concat(o.description,"]"):""),Object.defineProperty(s,"name",{configurable:!0,value:f?"".concat(f," ",o):o})}function udt(s,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,o)}function fdt(s,o,f,d){function y(x){return x instanceof f?x:new f(function(P){P(x)})}return t(y,"adopt"),new(f||(f=Promise))(function(x,P){function F(be){try{G(d.next(be))}catch(de){P(de)}}t(F,"fulfilled");function W(be){try{G(d.throw(be))}catch(de){P(de)}}t(W,"rejected");function G(be){be.done?x(be.value):y(be.value).then(F,W)}t(G,"step"),G((d=d.apply(s,o||[])).next())})}function _dt(s,o){var f={label:0,sent:t(function(){if(x[0]&1)throw x[1];return x[1]},"sent"),trys:[],ops:[]},d,y,x,P=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return P.next=F(0),P.throw=F(1),P.return=F(2),typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function F(G){return function(be){return W([G,be])}}function W(G){if(d)throw new TypeError("Generator is already executing.");for(;P&&(P=0,G[0]&&(f=0)),f;)try{if(d=1,y&&(x=G[0]&2?y.return:G[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,G[1])).done)return x;switch(y=0,x&&(G=[G[0]&2,x.value]),G[0]){case 0:case 1:x=G;break;case 4:return f.label++,{value:G[1],done:!1};case 5:f.label++,y=G[1],G=[0];continue;case 7:G=f.ops.pop(),f.trys.pop();continue;default:if(x=f.trys,!(x=x.length>0&&x[x.length-1])&&(G[0]===6||G[0]===2)){f=0;continue}if(G[0]===3&&(!x||G[1]>x[0]&&G[1]<x[3])){f.label=G[1];break}if(G[0]===6&&f.label<x[1]){f.label=x[1],x=G;break}if(x&&f.label<x[2]){f.label=x[2],f.ops.push(G);break}x[2]&&f.ops.pop(),f.trys.pop();continue}G=o.call(s,f)}catch(be){G=[6,be],y=0}finally{d=x=0}if(G[0]&5)throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}}function pdt(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&sue(o,s,f)}function iue(s){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&s[o],d=0;if(f)return f.call(s);if(s&&typeof s.length=="number")return{next:t(function(){return s&&d>=s.length&&(s=void 0),{value:s&&s[d++],done:!s}},"next")};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function x3e(s,o){var f=typeof Symbol=="function"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),y,x=[],P;try{for(;(o===void 0||o-- >0)&&!(y=d.next()).done;)x.push(y.value)}catch(F){P={error:F}}finally{try{y&&!y.done&&(f=d.return)&&f.call(d)}finally{if(P)throw P.error}}return x}function ddt(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(x3e(arguments[o]));return s}function mdt(){for(var s=0,o=0,f=arguments.length;o<f;o++)s+=arguments[o].length;for(var d=Array(s),y=0,o=0;o<f;o++)for(var x=arguments[o],P=0,F=x.length;P<F;P++,y++)d[y]=x[P];return d}function hdt(s,o,f){if(f||arguments.length===2)for(var d=0,y=o.length,x;d<y;d++)(x||!(d in o))&&(x||(x=Array.prototype.slice.call(o,0,d)),x[d]=o[d]);return s.concat(x||Array.prototype.slice.call(o))}function HM(s){return this instanceof HM?(this.v=s,this):new HM(s)}function gdt(s,o,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=f.apply(s,o||[]),y,x=[];return y=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),F("next"),F("throw"),F("return",P),y[Symbol.asyncIterator]=function(){return this},y;function P(Xe){return function(Ue){return Promise.resolve(Ue).then(Xe,de)}}function F(Xe,Ue){d[Xe]&&(y[Xe]=function(je){return new Promise(function(Vt,Ut){x.push([Xe,je,Vt,Ut])>1||W(Xe,je)})},Ue&&(y[Xe]=Ue(y[Xe])))}function W(Xe,Ue){try{G(d[Xe](Ue))}catch(je){se(x[0][3],je)}}function G(Xe){Xe.value instanceof HM?Promise.resolve(Xe.value.v).then(be,de):se(x[0][2],Xe)}function be(Xe){W("next",Xe)}function de(Xe){W("throw",Xe)}function se(Xe,Ue){Xe(Ue),x.shift(),x.length&&W(x[0][0],x[0][1])}}function ydt(s){var o,f;return o={},d("next"),d("throw",function(y){throw y}),d("return"),o[Symbol.iterator]=function(){return this},o;function d(y,x){o[y]=s[y]?function(P){return(f=!f)?{value:HM(s[y](P)),done:!1}:x?x(P):P}:x}}function vdt(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],f;return o?o.call(s):(s=typeof iue=="function"?iue(s):s[Symbol.iterator](),f={},d("next"),d("throw"),d("return"),f[Symbol.asyncIterator]=function(){return this},f);function d(x){f[x]=s[x]&&function(P){return new Promise(function(F,W){P=s[x](P),y(F,W,P.done,P.value)})}}function y(x,P,F,W){Promise.resolve(W).then(function(G){x({value:G,done:F})},P)}}function bdt(s,o){return Object.defineProperty?Object.defineProperty(s,"raw",{value:o}):s.raw=o,s}function Sdt(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f=T3e(s),d=0;d<f.length;d++)f[d]!=="default"&&sue(o,s,f[d]);return Dhr(o,s),o}function Tdt(s){return s&&s.__esModule?s:{default:s}}function xdt(s,o,f,d){if(f==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?s!==o||!d:!o.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?d:f==="a"?d.call(s):d?d.value:o.get(s)}function Edt(s,o,f,d,y){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?s!==o||!y:!o.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?y.call(s,f):y?y.value=f:o.set(s,f),f}function Cdt(s,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof s=="function"?o===s:s.has(o)}function kdt(s,o,f){if(o!=null){if(typeof o!="object"&&typeof o!="function")throw new TypeError("Object expected.");var d,y;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");d=o[Symbol.asyncDispose]}if(d===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");d=o[Symbol.dispose],f&&(y=d)}if(typeof d!="function")throw new TypeError("Object not disposable.");y&&(d=t(function(){try{y.call(this)}catch(x){return Promise.reject(x)}},"dispose")),s.stack.push({value:o,dispose:d,async:f})}else f&&s.stack.push({async:!0});return o}function wdt(s){function o(x){s.error=s.hasError?new Phr(x,s.error,"An error was suppressed during disposal."):x,s.hasError=!0}t(o,"fail");var f,d=0;function y(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(y);if(f.dispose){var x=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(x).then(y,function(P){return o(P),y()})}else d|=1}catch(P){o(P)}if(d===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return t(y,"next"),y()}function Ddt(s,o){return typeof s=="string"&&/^\.\.?\//.test(s)?s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,d,y,x,P){return d?o?".jsx":".js":y&&(!x||!P)?f:y+x+"."+P.toLowerCase()+"js"}):s}var S3e,nue,sue,Dhr,T3e,Phr,Ahr,Lu=zGt(()=>{S3e=t(function(s,o){return S3e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(f[y]=d[y])},S3e(s,o)},"extendStatics");t(rdt,"__extends");nue=t(function(){return nue=Object.assign||t(function(o){for(var f,d=1,y=arguments.length;d<y;d++){f=arguments[d];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(o[x]=f[x])}return o},"__assign"),nue.apply(this,arguments)},"__assign");t(ndt,"__rest");t(idt,"__decorate");t(sdt,"__param");t(adt,"__esDecorate");t(odt,"__runInitializers");t(cdt,"__propKey");t(ldt,"__setFunctionName");t(udt,"__metadata");t(fdt,"__awaiter");t(_dt,"__generator");sue=Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]});t(pdt,"__exportStar");t(iue,"__values");t(x3e,"__read");t(ddt,"__spread");t(mdt,"__spreadArrays");t(hdt,"__spreadArray");t(HM,"__await");t(gdt,"__asyncGenerator");t(ydt,"__asyncDelegator");t(vdt,"__asyncValues");t(bdt,"__makeTemplateObject");Dhr=Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o},T3e=t(function(s){return T3e=Object.getOwnPropertyNames||function(o){var f=[];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(f[f.length]=d);return f},T3e(s)},"ownKeys");t(Sdt,"__importStar");t(Tdt,"__importDefault");t(xdt,"__classPrivateFieldGet");t(Edt,"__classPrivateFieldSet");t(Cdt,"__classPrivateFieldIn");t(kdt,"__addDisposableResource");Phr=typeof SuppressedError=="function"?SuppressedError:function(s,o,f){var d=new Error(f);return d.name="SuppressedError",d.error=s,d.suppressed=o,d};t(wdt,"__disposeResources");t(Ddt,"__rewriteRelativeImportExtension");Ahr={__extends:rdt,__assign:nue,__rest:ndt,__decorate:idt,__param:sdt,__esDecorate:adt,__runInitializers:odt,__propKey:cdt,__setFunctionName:ldt,__metadata:udt,__awaiter:fdt,__generator:_dt,__createBinding:sue,__exportStar:pdt,__values:iue,__read:x3e,__spread:ddt,__spreadArrays:mdt,__spreadArray:hdt,__await:HM,__asyncGenerator:gdt,__asyncDelegator:ydt,__asyncValues:vdt,__makeTemplateObject:bdt,__importStar:Sdt,__importDefault:Tdt,__classPrivateFieldGet:xdt,__classPrivateFieldSet:Edt,__classPrivateFieldIn:Cdt,__addDisposableResource:kdt,__disposeResources:wdt,__rewriteRelativeImportExtension:Ddt}});var Adt=ar((m5r,Pdt)=>{var GM=1e3,YM=GM*60,KM=YM*60,YO=KM*24,Nhr=YO*7,Ihr=YO*365.25;Pdt.exports=function(s,o){o=o||{};var f=typeof s;if(f==="string"&&s.length>0)return Ohr(s);if(f==="number"&&isFinite(s))return o.long?Lhr(s):Fhr(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function Ohr(s){if(s=String(s),!(s.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(o){var f=parseFloat(o[1]),d=(o[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return f*Ihr;case"weeks":case"week":case"w":return f*Nhr;case"days":case"day":case"d":return f*YO;case"hours":case"hour":case"hrs":case"hr":case"h":return f*KM;case"minutes":case"minute":case"mins":case"min":case"m":return f*YM;case"seconds":case"second":case"secs":case"sec":case"s":return f*GM;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}t(Ohr,"parse");function Fhr(s){var o=Math.abs(s);return o>=YO?Math.round(s/YO)+"d":o>=KM?Math.round(s/KM)+"h":o>=YM?Math.round(s/YM)+"m":o>=GM?Math.round(s/GM)+"s":s+"ms"}t(Fhr,"fmtShort");function Lhr(s){var o=Math.abs(s);return o>=YO?aue(s,o,YO,"day"):o>=KM?aue(s,o,KM,"hour"):o>=YM?aue(s,o,YM,"minute"):o>=GM?aue(s,o,GM,"second"):s+" ms"}t(Lhr,"fmtLong");function aue(s,o,f,d){var y=o>=f*1.5;return Math.round(s/f)+" "+d+(y?"s":"")}t(aue,"plural")});var E3e=ar((g5r,Ndt)=>{function Rhr(s){f.debug=f,f.default=f,f.coerce=W,f.disable=P,f.enable=y,f.enabled=F,f.humanize=Adt(),f.destroy=G,Object.keys(s).forEach(be=>{f[be]=s[be]}),f.names=[],f.skips=[],f.formatters={};function o(be){let de=0;for(let se=0;se<be.length;se++)de=(de<<5)-de+be.charCodeAt(se),de|=0;return f.colors[Math.abs(de)%f.colors.length]}t(o,"selectColor"),f.selectColor=o;function f(be){let de,se=null,Xe,Ue;function je(...Vt){if(!je.enabled)return;let Ut=je,Ir=Number(new Date),wn=Ir-(de||Ir);Ut.diff=wn,Ut.prev=de,Ut.curr=Ir,de=Ir,Vt[0]=f.coerce(Vt[0]),typeof Vt[0]!="string"&&Vt.unshift("%O");let sn=0;Vt[0]=Vt[0].replace(/%([a-zA-Z%])/g,(kr,yr)=>{if(kr==="%%")return"%";sn++;let xs=f.formatters[yr];if(typeof xs=="function"){let bi=Vt[sn];kr=xs.call(Ut,bi),Vt.splice(sn,1),sn--}return kr}),f.formatArgs.call(Ut,Vt),(Ut.log||f.log).apply(Ut,Vt)}return t(je,"debug"),je.namespace=be,je.useColors=f.useColors(),je.color=f.selectColor(be),je.extend=d,je.destroy=f.destroy,Object.defineProperty(je,"enabled",{enumerable:!0,configurable:!1,get:t(()=>se!==null?se:(Xe!==f.namespaces&&(Xe=f.namespaces,Ue=f.enabled(be)),Ue),"get"),set:t(Vt=>{se=Vt},"set")}),typeof f.init=="function"&&f.init(je),je}t(f,"createDebug");function d(be,de){let se=f(this.namespace+(typeof de>"u"?":":de)+be);return se.log=this.log,se}t(d,"extend");function y(be){f.save(be),f.namespaces=be,f.names=[],f.skips=[];let de=(typeof be=="string"?be:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let se of de)se[0]==="-"?f.skips.push(se.slice(1)):f.names.push(se)}t(y,"enable");function x(be,de){let se=0,Xe=0,Ue=-1,je=0;for(;se<be.length;)if(Xe<de.length&&(de[Xe]===be[se]||de[Xe]==="*"))de[Xe]==="*"?(Ue=Xe,je=se,Xe++):(se++,Xe++);else if(Ue!==-1)Xe=Ue+1,je++,se=je;else return!1;for(;Xe<de.length&&de[Xe]==="*";)Xe++;return Xe===de.length}t(x,"matchesTemplate");function P(){let be=[...f.names,...f.skips.map(de=>"-"+de)].join(",");return f.enable(""),be}t(P,"disable");function F(be){for(let de of f.skips)if(x(be,de))return!1;for(let de of f.names)if(x(be,de))return!0;return!1}t(F,"enabled");function W(be){return be instanceof Error?be.stack||be.message:be}t(W,"coerce");function G(){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 t(G,"destroy"),f.enable(f.load()),f}t(Rhr,"setup");Ndt.exports=Rhr});var Idt=ar((eb,oue)=>{eb.formatArgs=jhr;eb.save=Bhr;eb.load=Uhr;eb.useColors=Mhr;eb.storage=zhr();eb.destroy=(()=>{let s=!1;return()=>{s||(s=!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`."))}})();eb.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 Mhr(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t(Mhr,"useColors");function jhr(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+oue.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;s.splice(1,0,o,"color: inherit");let f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(f++,y==="%c"&&(d=f))}),s.splice(d,0,o)}t(jhr,"formatArgs");eb.log=console.debug||console.log||(()=>{});function Bhr(s){try{s?eb.storage.setItem("debug",s):eb.storage.removeItem("debug")}catch{}}t(Bhr,"save");function Uhr(){let s;try{s=eb.storage.getItem("debug")||eb.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}t(Uhr,"load");function zhr(){try{return localStorage}catch{}}t(zhr,"localstorage");oue.exports=E3e()(eb);var{formatters:$hr}=oue.exports;$hr.j=function(s){try{return JSON.stringify(s)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var Fdt=ar((b5r,Odt)=>{"use strict";Odt.exports=(s,o=process.argv)=>{let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}});var Mdt=ar((S5r,Rdt)=>{"use strict";var Jhr=uo("os"),Ldt=uo("tty"),CT=Fdt(),{env:Mg}=process,cue;CT("no-color")||CT("no-colors")||CT("color=false")||CT("color=never")?cue=0:(CT("color")||CT("colors")||CT("color=true")||CT("color=always"))&&(cue=1);function Whr(){if("FORCE_COLOR"in Mg)return Mg.FORCE_COLOR==="true"?1:Mg.FORCE_COLOR==="false"?0:Mg.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Mg.FORCE_COLOR,10),3)}t(Whr,"envForceColor");function qhr(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(qhr,"translateLevel");function Vhr(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=Whr();d!==void 0&&(cue=d);let y=f?cue:d;if(y===0)return 0;if(f){if(CT("color=16m")||CT("color=full")||CT("color=truecolor"))return 3;if(CT("color=256"))return 2}if(s&&!o&&y===void 0)return 0;let x=y||0;if(Mg.TERM==="dumb")return x;if(process.platform==="win32"){let P=Jhr.release().split(".");return Number(P[0])>=10&&Number(P[2])>=10586?Number(P[2])>=14931?3:2:1}if("CI"in Mg)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(P=>P in Mg)||Mg.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Mg)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Mg.TEAMCITY_VERSION)?1:0;if(Mg.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Mg){let P=Number.parseInt((Mg.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Mg.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Mg.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Mg.TERM)||"COLORTERM"in Mg?1:x}t(Vhr,"supportsColor");function C3e(s,o={}){let f=Vhr(s,{streamIsTTY:s&&s.isTTY,...o});return qhr(f)}t(C3e,"getSupportLevel");Rdt.exports={supportsColor:C3e,stdout:C3e({isTTY:Ldt.isatty(1)}),stderr:C3e({isTTY:Ldt.isatty(2)})}});var Bdt=ar((jg,uue)=>{var Hhr=uo("tty"),lue=uo("util");jg.init=egr;jg.log=Xhr;jg.formatArgs=Yhr;jg.save=Zhr;jg.load=Qhr;jg.useColors=Ghr;jg.destroy=lue.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");jg.colors=[6,2,3,4,5,1];try{let s=Mdt();s&&(s.stderr||s).level>=2&&(jg.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{}jg.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,o)=>{let f=o.substring(6).toLowerCase().replace(/_([a-z])/g,(y,x)=>x.toUpperCase()),d=process.env[o];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),s[f]=d,s},{});function Ghr(){return"colors"in jg.inspectOpts?!!jg.inspectOpts.colors:Hhr.isatty(process.stderr.fd)}t(Ghr,"useColors");function Yhr(s){let{namespace:o,useColors:f}=this;if(f){let d=this.color,y="\x1B[3"+(d<8?d:"8;5;"+d),x=` ${y};1m${o} \x1B[0m`;s[0]=x+s[0].split(`
546
546
  `).join(`
547
547
  `+x),s.push(y+"m+"+uue.exports.humanize(this.diff)+"\x1B[0m")}else s[0]=Khr()+o+" "+s[0]}t(Yhr,"formatArgs");function Khr(){return jg.inspectOpts.hideDate?"":new Date().toISOString()+" "}t(Khr,"getDate");function Xhr(...s){return process.stderr.write(lue.formatWithOptions(jg.inspectOpts,...s)+`
548
548
  `)}t(Xhr,"log");function Zhr(s){s?process.env.DEBUG=s:delete process.env.DEBUG}t(Zhr,"save");function Qhr(){return process.env.DEBUG}t(Qhr,"load");function egr(s){s.inspectOpts={};let o=Object.keys(jg.inspectOpts);for(let f=0;f<o.length;f++)s.inspectOpts[o[f]]=jg.inspectOpts[o[f]]}t(egr,"init");uue.exports=E3e()(jg);var{formatters:jdt}=uue.exports;jdt.o=function(s){return this.inspectOpts.colors=this.useColors,lue.inspect(s,this.inspectOpts).split(`
549
- `).map(o=>o.trim()).join(" ")};jdt.O=function(s){return this.inspectOpts.colors=this.useColors,lue.inspect(s,this.inspectOpts)}});var Vu=ar((x5r,k3e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?k3e.exports=Idt():k3e.exports=Bdt()});var AS=ar(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.MAX_SEGMENT_LENGTH=Ic.MAX_DEPTH=Ic.VAL32=Ic.POINTER_TYPE_MASK=Ic.POINTER_DOUBLE_FAR_MASK=Ic.POINTER_COPY_LIMIT=Ic.PACK_SPAN_THRESHOLD=Ic.NATIVE_LITTLE_ENDIAN=Ic.MIN_SINGLE_SEGMENT_GROWTH=Ic.MIN_SAFE_INTEGER=Ic.MAX_STREAM_SEGMENTS=Ic.MAX_SAFE_INTEGER=Ic.MAX_UINT32=Ic.MAX_INT32=Ic.MAX_BUFFER_DUMP_BYTES=Ic.LIST_SIZE_MASK=Ic.GROWTH_FACTOR=Ic.DEFAULT_TRAVERSE_LIMIT=Ic.DEFAULT_DEPTH_LIMIT=Ic.DEFAULT_DECODE_LIMIT=Ic.DEFAULT_BUFFER_SIZE=void 0;var Udt=new DataView(new ArrayBuffer(8));new Uint16Array(Udt.buffer)[0]=258;Ic.DEFAULT_BUFFER_SIZE=4096;Ic.DEFAULT_DECODE_LIMIT=64<<20;Ic.DEFAULT_DEPTH_LIMIT=64;Ic.DEFAULT_TRAVERSE_LIMIT=64<<20;Ic.GROWTH_FACTOR=1.5;Ic.LIST_SIZE_MASK=7;Ic.MAX_BUFFER_DUMP_BYTES=8192;Ic.MAX_INT32=2147483647;Ic.MAX_UINT32=4294967295;Ic.MAX_SAFE_INTEGER=9007199254740991;Ic.MAX_STREAM_SEGMENTS=512;Ic.MIN_SAFE_INTEGER=-9007199254740991;Ic.MIN_SINGLE_SEGMENT_GROWTH=4096;Ic.NATIVE_LITTLE_ENDIAN=Udt.getUint8(0)===2;Ic.PACK_SPAN_THRESHOLD=2;Ic.POINTER_COPY_LIMIT=32;Ic.POINTER_DOUBLE_FAR_MASK=4;Ic.POINTER_TYPE_MASK=3;Ic.VAL32=4294967296;Ic.MAX_DEPTH=Ic.MAX_INT32;Ic.MAX_SEGMENT_LENGTH=Ic.MAX_UINT32});var B1=ar(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.PTR_WRITE_CONST_STRUCT=Ts.PTR_WRITE_CONST_LIST=Ts.TYPE_SET_GENERIC_LIST=Ts.TYPE_GET_GENERIC_LIST=Ts.TYPE_COMPOSITE_SIZE_UNDEFINED=Ts.SEG_SIZE_OVERFLOW=Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL=Ts.SEG_NOT_WORD_ALIGNED=Ts.SEG_ID_OUT_OF_BOUNDS=Ts.SEG_GET_NON_ZERO_SINGLE=Ts.SEG_BUFFER_NOT_ALLOCATED=Ts.RANGE_UINT32_OVERFLOW=Ts.RANGE_SIZE_OVERFLOW=Ts.RANGE_INVALID_UTF8=Ts.RANGE_INT64_UNDERFLOW=Ts.RANGE_INT32_OVERFLOW=Ts.PTR_WRONG_STRUCT_PTR_SIZE=Ts.PTR_WRONG_STRUCT_DATA_SIZE=Ts.PTR_WRONG_COMPOSITE_PTR_SIZE=Ts.PTR_WRONG_COMPOSITE_DATA_SIZE=Ts.PTR_WRONG_POINTER_TYPE=Ts.PTR_WRONG_LIST_TYPE=Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED=Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS=Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS=Ts.PTR_OFFSET_OUT_OF_BOUNDS=Ts.PTR_INVALID_UNION_ACCESS=Ts.PTR_INVALID_POINTER_TYPE=Ts.PTR_INVALID_LIST_SIZE=Ts.PTR_INVALID_FAR_TARGET=Ts.PTR_INIT_NON_GROUP=Ts.PTR_INIT_COMPOSITE_STRUCT=Ts.PTR_DISOWN_COMPOSITE_STRUCT=Ts.PTR_DEPTH_LIMIT_EXCEEDED=Ts.PTR_COMPOSITE_SIZE_UNDEFINED=Ts.PTR_ALREADY_ADOPTED=Ts.PTR_ADOPT_WRONG_MESSAGE=Ts.PTR_ADOPT_COMPOSITE_STRUCT=Ts.NOT_IMPLEMENTED=Ts.MSG_SEGMENT_TOO_SMALL=Ts.MSG_SEGMENT_OUT_OF_BOUNDS=Ts.MSG_PACK_NOT_WORD_ALIGNED=Ts.MSG_NO_SEGMENTS_IN_ARENA=Ts.MSG_INVALID_FRAME_HEADER=Ts.assertNever=Ts.INVARIANT_UNREACHABLE_CODE=void 0;var tgr=(Lu(),Wu(Fu)),rgr=tgr.__importDefault(Vu()),zdt=AS(),ngr=rgr.default("capnp:errors");ngr("load");Ts.INVARIANT_UNREACHABLE_CODE="CAPNP-TS000 Unreachable code detected.";function igr(s){throw new Error(Ts.INVARIANT_UNREACHABLE_CODE+` (never block hit with: ${s})`)}t(igr,"assertNever");Ts.assertNever=igr;Ts.MSG_INVALID_FRAME_HEADER="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?";Ts.MSG_NO_SEGMENTS_IN_ARENA="CAPNP-TS002 Attempted to preallocate a message with no segments in the arena.";Ts.MSG_PACK_NOT_WORD_ALIGNED="CAPNP-TS003 Attempted to pack a message that was not word-aligned.";Ts.MSG_SEGMENT_OUT_OF_BOUNDS="CAPNP-TS004 Segment ID %X is out of bounds for message %s.";Ts.MSG_SEGMENT_TOO_SMALL="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";Ts.NOT_IMPLEMENTED="CAPNP-TS006 %s is not implemented.";Ts.PTR_ADOPT_COMPOSITE_STRUCT="CAPNP-TS007 Attempted to adopt a struct into a composite list (%s).";Ts.PTR_ADOPT_WRONG_MESSAGE="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.";Ts.PTR_ALREADY_ADOPTED="CAPNP-TS009 Attempted to adopt %s more than once.";Ts.PTR_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.";Ts.PTR_DEPTH_LIMIT_EXCEEDED="CAPNP-TS011 Nesting depth limit exceeded for %s.";Ts.PTR_DISOWN_COMPOSITE_STRUCT="CAPNP-TS012 Attempted to disown a struct member from a composite list (%s).";Ts.PTR_INIT_COMPOSITE_STRUCT="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).";Ts.PTR_INIT_NON_GROUP="CAPNP-TS014 Attempted to initialize a group field with a non-group struct class.";Ts.PTR_INVALID_FAR_TARGET="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.";Ts.PTR_INVALID_LIST_SIZE="CAPNP-TS016 Invalid list element size: %x.";Ts.PTR_INVALID_POINTER_TYPE="CAPNP-TS017 Invalid pointer type: %x.";Ts.PTR_INVALID_UNION_ACCESS="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).";Ts.PTR_OFFSET_OUT_OF_BOUNDS="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.";Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).";Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).";Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED="CAPNP-TS022 Traversal limit exceeded! Slow down! %s";Ts.PTR_WRONG_LIST_TYPE="CAPNP-TS023 Cannot convert %s to a %s list.";Ts.PTR_WRONG_POINTER_TYPE="CAPNP-TS024 Attempted to convert pointer %s to a %s type.";Ts.PTR_WRONG_COMPOSITE_DATA_SIZE="CAPNP-TS025 Attempted to convert %s to a composite list with the wrong data size (found: %d).";Ts.PTR_WRONG_COMPOSITE_PTR_SIZE="CAPNP-TS026 Attempted to convert %s to a composite list with the wrong pointer size (found: %d).";Ts.PTR_WRONG_STRUCT_DATA_SIZE="CAPNP-TS027 Attempted to convert %s to a struct with the wrong data size (found: %d).";Ts.PTR_WRONG_STRUCT_PTR_SIZE="CAPNP-TS028 Attempted to convert %s to a struct with the wrong pointer size (found: %d).";Ts.RANGE_INT32_OVERFLOW="CAPNP-TS029 32-bit signed integer overflow detected.";Ts.RANGE_INT64_UNDERFLOW="CAPNP-TS030 Buffer is not large enough to hold a word.";Ts.RANGE_INVALID_UTF8="CAPNP-TS031 Invalid UTF-8 code sequence detected.";Ts.RANGE_SIZE_OVERFLOW=`CAPNP-TS032 Size %x exceeds maximum ${zdt.MAX_SEGMENT_LENGTH.toString(16)}.`;Ts.RANGE_UINT32_OVERFLOW="CAPNP-TS033 32-bit unsigned integer overflow detected.";Ts.SEG_BUFFER_NOT_ALLOCATED="CAPNP-TS034 allocate() needs to be called at least once before getting a buffer.";Ts.SEG_GET_NON_ZERO_SINGLE="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.";Ts.SEG_ID_OUT_OF_BOUNDS="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).";Ts.SEG_NOT_WORD_ALIGNED="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.";Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.";Ts.SEG_SIZE_OVERFLOW=`CAPNP-TS039 Requested size %x exceeds maximum value (${zdt.MAX_SEGMENT_LENGTH}).`;Ts.TYPE_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS040 Must provide a composite element size for composite list pointers.";Ts.TYPE_GET_GENERIC_LIST="CAPNP-TS041 Attempted to call get() on a generic list.";Ts.TYPE_SET_GENERIC_LIST="CAPNP-TS042 Attempted to call set() on a generic list.";Ts.PTR_WRITE_CONST_LIST="CAPNP-TS043 Attempted to write to a const list.";Ts.PTR_WRITE_CONST_STRUCT="CAPNP-TS044 Attempted to write to a const struct."});var $dt=ar(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getVoidMask=rp.getUint64Mask=rp.getInt64Mask=rp.getBitMask=rp.getUint8Mask=rp.getUint32Mask=rp.getUint16Mask=rp.getInt8Mask=rp.getInt32Mask=rp.getInt16Mask=rp.getFloat64Mask=rp.getFloat32Mask=void 0;var sgr=B1();function DI(s,o){return f=>{let d=new DataView(new ArrayBuffer(s));return o.call(d,0,f,!0),d}}t(DI,"_makePrimitiveMaskFn");rp.getFloat32Mask=DI(4,DataView.prototype.setFloat32);rp.getFloat64Mask=DI(8,DataView.prototype.setFloat64);rp.getInt16Mask=DI(2,DataView.prototype.setInt16);rp.getInt32Mask=DI(4,DataView.prototype.setInt32);rp.getInt8Mask=DI(1,DataView.prototype.setInt8);rp.getUint16Mask=DI(2,DataView.prototype.setUint16);rp.getUint32Mask=DI(4,DataView.prototype.setUint32);rp.getUint8Mask=DI(1,DataView.prototype.setUint8);function agr(s,o){let f=new DataView(new ArrayBuffer(1));return s&&f.setUint8(0,1<<o%8),f}t(agr,"getBitMask");rp.getBitMask=agr;function ogr(s){return s.toDataView()}t(ogr,"getInt64Mask");rp.getInt64Mask=ogr;function cgr(s){return s.toDataView()}t(cgr,"getUint64Mask");rp.getUint64Mask=cgr;function lgr(){throw new Error(sgr.INVARIANT_UNREACHABLE_CODE)}t(lgr,"getVoidMask");rp.getVoidMask=lgr});var em=ar(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0});KO.ListElementOffset=KO.ListElementSize=void 0;var ugr;(function(s){s[s.VOID=0]="VOID",s[s.BIT=1]="BIT",s[s.BYTE=2]="BYTE",s[s.BYTE_2=3]="BYTE_2",s[s.BYTE_4=4]="BYTE_4",s[s.BYTE_8=5]="BYTE_8",s[s.POINTER=6]="POINTER",s[s.COMPOSITE=7]="COMPOSITE"})(ugr=KO.ListElementSize||(KO.ListElementSize={}));KO.ListElementOffset=[0,.125,1,2,4,8,8,NaN]});var tb=ar(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.repeat=Yp.padToWord=Yp.pad=Yp.identity=Yp.format=Yp.encodeUtf8=Yp.dumpBuffer=Yp.decodeUtf8=Yp.checkUint32=Yp.checkInt32=Yp.bufferToHex=void 0;var fgr=(Lu(),Wu(Fu)),lG=fgr.__importDefault(Vu()),fue=AS(),PI=B1(),_gr=lG.default("capnp:util");_gr("load");function pgr(s){let o=new Uint8Array(s),f=[];for(let d=0;d<o.byteLength;d++)f.push(XM(o[d].toString(16),2));return`[${f.join(" ")}]`}t(pgr,"bufferToHex");Yp.bufferToHex=pgr;function dgr(s){if(s>fue.MAX_INT32||s<-fue.MAX_INT32)throw new RangeError(PI.RANGE_INT32_OVERFLOW);return s}t(dgr,"checkInt32");Yp.checkInt32=dgr;function mgr(s){if(s<0||s>fue.MAX_UINT32)throw new RangeError(PI.RANGE_UINT32_OVERFLOW);return s}t(mgr,"checkUint32");Yp.checkUint32=mgr;function hgr(s){let o=s.byteLength,f="",d=0,y=0,x=0,P=0,F=0,W=0;for(;d<o;){if(x=s[d++],(x&128)===0)y=x;else if((x&224)===192){if(d>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],y=(x&31)<<6|P&63}else if((x&240)===224){if(d+1>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],F=s[d++],y=(x&15)<<12|(P&63)<<6|F&63}else if((x&248)===240){if(d+2>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],F=s[d++],W=s[d++],y=(x&7)<<18|(P&63)<<12|(F&63)<<6|W&63}else throw new RangeError(PI.RANGE_INVALID_UTF8);if(y<=55295||y>=57344&&y<=65535)f+=String.fromCharCode(y);else{y-=65536;let G=(y>>>10)+55296,be=(y&1023)+56320;if(G<55296||G>56319)throw new RangeError(PI.RANGE_INVALID_UTF8);f+=String.fromCharCode(G,be)}}return f}t(hgr,"decodeUtf8");Yp.decodeUtf8=hgr;function ggr(s){let o=s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength),f=Math.min(o.byteLength,fue.MAX_BUFFER_DUMP_BYTES),d=w3e(`
549
+ `).map(o=>o.trim()).join(" ")};jdt.O=function(s){return this.inspectOpts.colors=this.useColors,lue.inspect(s,this.inspectOpts)}});var Vu=ar((E5r,k3e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?k3e.exports=Idt():k3e.exports=Bdt()});var AS=ar(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.MAX_SEGMENT_LENGTH=Ic.MAX_DEPTH=Ic.VAL32=Ic.POINTER_TYPE_MASK=Ic.POINTER_DOUBLE_FAR_MASK=Ic.POINTER_COPY_LIMIT=Ic.PACK_SPAN_THRESHOLD=Ic.NATIVE_LITTLE_ENDIAN=Ic.MIN_SINGLE_SEGMENT_GROWTH=Ic.MIN_SAFE_INTEGER=Ic.MAX_STREAM_SEGMENTS=Ic.MAX_SAFE_INTEGER=Ic.MAX_UINT32=Ic.MAX_INT32=Ic.MAX_BUFFER_DUMP_BYTES=Ic.LIST_SIZE_MASK=Ic.GROWTH_FACTOR=Ic.DEFAULT_TRAVERSE_LIMIT=Ic.DEFAULT_DEPTH_LIMIT=Ic.DEFAULT_DECODE_LIMIT=Ic.DEFAULT_BUFFER_SIZE=void 0;var Udt=new DataView(new ArrayBuffer(8));new Uint16Array(Udt.buffer)[0]=258;Ic.DEFAULT_BUFFER_SIZE=4096;Ic.DEFAULT_DECODE_LIMIT=64<<20;Ic.DEFAULT_DEPTH_LIMIT=64;Ic.DEFAULT_TRAVERSE_LIMIT=64<<20;Ic.GROWTH_FACTOR=1.5;Ic.LIST_SIZE_MASK=7;Ic.MAX_BUFFER_DUMP_BYTES=8192;Ic.MAX_INT32=2147483647;Ic.MAX_UINT32=4294967295;Ic.MAX_SAFE_INTEGER=9007199254740991;Ic.MAX_STREAM_SEGMENTS=512;Ic.MIN_SAFE_INTEGER=-9007199254740991;Ic.MIN_SINGLE_SEGMENT_GROWTH=4096;Ic.NATIVE_LITTLE_ENDIAN=Udt.getUint8(0)===2;Ic.PACK_SPAN_THRESHOLD=2;Ic.POINTER_COPY_LIMIT=32;Ic.POINTER_DOUBLE_FAR_MASK=4;Ic.POINTER_TYPE_MASK=3;Ic.VAL32=4294967296;Ic.MAX_DEPTH=Ic.MAX_INT32;Ic.MAX_SEGMENT_LENGTH=Ic.MAX_UINT32});var B1=ar(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.PTR_WRITE_CONST_STRUCT=Ts.PTR_WRITE_CONST_LIST=Ts.TYPE_SET_GENERIC_LIST=Ts.TYPE_GET_GENERIC_LIST=Ts.TYPE_COMPOSITE_SIZE_UNDEFINED=Ts.SEG_SIZE_OVERFLOW=Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL=Ts.SEG_NOT_WORD_ALIGNED=Ts.SEG_ID_OUT_OF_BOUNDS=Ts.SEG_GET_NON_ZERO_SINGLE=Ts.SEG_BUFFER_NOT_ALLOCATED=Ts.RANGE_UINT32_OVERFLOW=Ts.RANGE_SIZE_OVERFLOW=Ts.RANGE_INVALID_UTF8=Ts.RANGE_INT64_UNDERFLOW=Ts.RANGE_INT32_OVERFLOW=Ts.PTR_WRONG_STRUCT_PTR_SIZE=Ts.PTR_WRONG_STRUCT_DATA_SIZE=Ts.PTR_WRONG_COMPOSITE_PTR_SIZE=Ts.PTR_WRONG_COMPOSITE_DATA_SIZE=Ts.PTR_WRONG_POINTER_TYPE=Ts.PTR_WRONG_LIST_TYPE=Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED=Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS=Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS=Ts.PTR_OFFSET_OUT_OF_BOUNDS=Ts.PTR_INVALID_UNION_ACCESS=Ts.PTR_INVALID_POINTER_TYPE=Ts.PTR_INVALID_LIST_SIZE=Ts.PTR_INVALID_FAR_TARGET=Ts.PTR_INIT_NON_GROUP=Ts.PTR_INIT_COMPOSITE_STRUCT=Ts.PTR_DISOWN_COMPOSITE_STRUCT=Ts.PTR_DEPTH_LIMIT_EXCEEDED=Ts.PTR_COMPOSITE_SIZE_UNDEFINED=Ts.PTR_ALREADY_ADOPTED=Ts.PTR_ADOPT_WRONG_MESSAGE=Ts.PTR_ADOPT_COMPOSITE_STRUCT=Ts.NOT_IMPLEMENTED=Ts.MSG_SEGMENT_TOO_SMALL=Ts.MSG_SEGMENT_OUT_OF_BOUNDS=Ts.MSG_PACK_NOT_WORD_ALIGNED=Ts.MSG_NO_SEGMENTS_IN_ARENA=Ts.MSG_INVALID_FRAME_HEADER=Ts.assertNever=Ts.INVARIANT_UNREACHABLE_CODE=void 0;var tgr=(Lu(),Wu(Fu)),rgr=tgr.__importDefault(Vu()),zdt=AS(),ngr=rgr.default("capnp:errors");ngr("load");Ts.INVARIANT_UNREACHABLE_CODE="CAPNP-TS000 Unreachable code detected.";function igr(s){throw new Error(Ts.INVARIANT_UNREACHABLE_CODE+` (never block hit with: ${s})`)}t(igr,"assertNever");Ts.assertNever=igr;Ts.MSG_INVALID_FRAME_HEADER="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?";Ts.MSG_NO_SEGMENTS_IN_ARENA="CAPNP-TS002 Attempted to preallocate a message with no segments in the arena.";Ts.MSG_PACK_NOT_WORD_ALIGNED="CAPNP-TS003 Attempted to pack a message that was not word-aligned.";Ts.MSG_SEGMENT_OUT_OF_BOUNDS="CAPNP-TS004 Segment ID %X is out of bounds for message %s.";Ts.MSG_SEGMENT_TOO_SMALL="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";Ts.NOT_IMPLEMENTED="CAPNP-TS006 %s is not implemented.";Ts.PTR_ADOPT_COMPOSITE_STRUCT="CAPNP-TS007 Attempted to adopt a struct into a composite list (%s).";Ts.PTR_ADOPT_WRONG_MESSAGE="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.";Ts.PTR_ALREADY_ADOPTED="CAPNP-TS009 Attempted to adopt %s more than once.";Ts.PTR_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.";Ts.PTR_DEPTH_LIMIT_EXCEEDED="CAPNP-TS011 Nesting depth limit exceeded for %s.";Ts.PTR_DISOWN_COMPOSITE_STRUCT="CAPNP-TS012 Attempted to disown a struct member from a composite list (%s).";Ts.PTR_INIT_COMPOSITE_STRUCT="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).";Ts.PTR_INIT_NON_GROUP="CAPNP-TS014 Attempted to initialize a group field with a non-group struct class.";Ts.PTR_INVALID_FAR_TARGET="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.";Ts.PTR_INVALID_LIST_SIZE="CAPNP-TS016 Invalid list element size: %x.";Ts.PTR_INVALID_POINTER_TYPE="CAPNP-TS017 Invalid pointer type: %x.";Ts.PTR_INVALID_UNION_ACCESS="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).";Ts.PTR_OFFSET_OUT_OF_BOUNDS="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.";Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).";Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).";Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED="CAPNP-TS022 Traversal limit exceeded! Slow down! %s";Ts.PTR_WRONG_LIST_TYPE="CAPNP-TS023 Cannot convert %s to a %s list.";Ts.PTR_WRONG_POINTER_TYPE="CAPNP-TS024 Attempted to convert pointer %s to a %s type.";Ts.PTR_WRONG_COMPOSITE_DATA_SIZE="CAPNP-TS025 Attempted to convert %s to a composite list with the wrong data size (found: %d).";Ts.PTR_WRONG_COMPOSITE_PTR_SIZE="CAPNP-TS026 Attempted to convert %s to a composite list with the wrong pointer size (found: %d).";Ts.PTR_WRONG_STRUCT_DATA_SIZE="CAPNP-TS027 Attempted to convert %s to a struct with the wrong data size (found: %d).";Ts.PTR_WRONG_STRUCT_PTR_SIZE="CAPNP-TS028 Attempted to convert %s to a struct with the wrong pointer size (found: %d).";Ts.RANGE_INT32_OVERFLOW="CAPNP-TS029 32-bit signed integer overflow detected.";Ts.RANGE_INT64_UNDERFLOW="CAPNP-TS030 Buffer is not large enough to hold a word.";Ts.RANGE_INVALID_UTF8="CAPNP-TS031 Invalid UTF-8 code sequence detected.";Ts.RANGE_SIZE_OVERFLOW=`CAPNP-TS032 Size %x exceeds maximum ${zdt.MAX_SEGMENT_LENGTH.toString(16)}.`;Ts.RANGE_UINT32_OVERFLOW="CAPNP-TS033 32-bit unsigned integer overflow detected.";Ts.SEG_BUFFER_NOT_ALLOCATED="CAPNP-TS034 allocate() needs to be called at least once before getting a buffer.";Ts.SEG_GET_NON_ZERO_SINGLE="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.";Ts.SEG_ID_OUT_OF_BOUNDS="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).";Ts.SEG_NOT_WORD_ALIGNED="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.";Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.";Ts.SEG_SIZE_OVERFLOW=`CAPNP-TS039 Requested size %x exceeds maximum value (${zdt.MAX_SEGMENT_LENGTH}).`;Ts.TYPE_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS040 Must provide a composite element size for composite list pointers.";Ts.TYPE_GET_GENERIC_LIST="CAPNP-TS041 Attempted to call get() on a generic list.";Ts.TYPE_SET_GENERIC_LIST="CAPNP-TS042 Attempted to call set() on a generic list.";Ts.PTR_WRITE_CONST_LIST="CAPNP-TS043 Attempted to write to a const list.";Ts.PTR_WRITE_CONST_STRUCT="CAPNP-TS044 Attempted to write to a const struct."});var $dt=ar(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getVoidMask=rp.getUint64Mask=rp.getInt64Mask=rp.getBitMask=rp.getUint8Mask=rp.getUint32Mask=rp.getUint16Mask=rp.getInt8Mask=rp.getInt32Mask=rp.getInt16Mask=rp.getFloat64Mask=rp.getFloat32Mask=void 0;var sgr=B1();function DI(s,o){return f=>{let d=new DataView(new ArrayBuffer(s));return o.call(d,0,f,!0),d}}t(DI,"_makePrimitiveMaskFn");rp.getFloat32Mask=DI(4,DataView.prototype.setFloat32);rp.getFloat64Mask=DI(8,DataView.prototype.setFloat64);rp.getInt16Mask=DI(2,DataView.prototype.setInt16);rp.getInt32Mask=DI(4,DataView.prototype.setInt32);rp.getInt8Mask=DI(1,DataView.prototype.setInt8);rp.getUint16Mask=DI(2,DataView.prototype.setUint16);rp.getUint32Mask=DI(4,DataView.prototype.setUint32);rp.getUint8Mask=DI(1,DataView.prototype.setUint8);function agr(s,o){let f=new DataView(new ArrayBuffer(1));return s&&f.setUint8(0,1<<o%8),f}t(agr,"getBitMask");rp.getBitMask=agr;function ogr(s){return s.toDataView()}t(ogr,"getInt64Mask");rp.getInt64Mask=ogr;function cgr(s){return s.toDataView()}t(cgr,"getUint64Mask");rp.getUint64Mask=cgr;function lgr(){throw new Error(sgr.INVARIANT_UNREACHABLE_CODE)}t(lgr,"getVoidMask");rp.getVoidMask=lgr});var em=ar(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0});KO.ListElementOffset=KO.ListElementSize=void 0;var ugr;(function(s){s[s.VOID=0]="VOID",s[s.BIT=1]="BIT",s[s.BYTE=2]="BYTE",s[s.BYTE_2=3]="BYTE_2",s[s.BYTE_4=4]="BYTE_4",s[s.BYTE_8=5]="BYTE_8",s[s.POINTER=6]="POINTER",s[s.COMPOSITE=7]="COMPOSITE"})(ugr=KO.ListElementSize||(KO.ListElementSize={}));KO.ListElementOffset=[0,.125,1,2,4,8,8,NaN]});var tb=ar(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.repeat=Yp.padToWord=Yp.pad=Yp.identity=Yp.format=Yp.encodeUtf8=Yp.dumpBuffer=Yp.decodeUtf8=Yp.checkUint32=Yp.checkInt32=Yp.bufferToHex=void 0;var fgr=(Lu(),Wu(Fu)),lG=fgr.__importDefault(Vu()),fue=AS(),PI=B1(),_gr=lG.default("capnp:util");_gr("load");function pgr(s){let o=new Uint8Array(s),f=[];for(let d=0;d<o.byteLength;d++)f.push(XM(o[d].toString(16),2));return`[${f.join(" ")}]`}t(pgr,"bufferToHex");Yp.bufferToHex=pgr;function dgr(s){if(s>fue.MAX_INT32||s<-fue.MAX_INT32)throw new RangeError(PI.RANGE_INT32_OVERFLOW);return s}t(dgr,"checkInt32");Yp.checkInt32=dgr;function mgr(s){if(s<0||s>fue.MAX_UINT32)throw new RangeError(PI.RANGE_UINT32_OVERFLOW);return s}t(mgr,"checkUint32");Yp.checkUint32=mgr;function hgr(s){let o=s.byteLength,f="",d=0,y=0,x=0,P=0,F=0,W=0;for(;d<o;){if(x=s[d++],(x&128)===0)y=x;else if((x&224)===192){if(d>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],y=(x&31)<<6|P&63}else if((x&240)===224){if(d+1>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],F=s[d++],y=(x&15)<<12|(P&63)<<6|F&63}else if((x&248)===240){if(d+2>=o)throw new RangeError(PI.RANGE_INVALID_UTF8);P=s[d++],F=s[d++],W=s[d++],y=(x&7)<<18|(P&63)<<12|(F&63)<<6|W&63}else throw new RangeError(PI.RANGE_INVALID_UTF8);if(y<=55295||y>=57344&&y<=65535)f+=String.fromCharCode(y);else{y-=65536;let G=(y>>>10)+55296,be=(y&1023)+56320;if(G<55296||G>56319)throw new RangeError(PI.RANGE_INVALID_UTF8);f+=String.fromCharCode(G,be)}}return f}t(hgr,"decodeUtf8");Yp.decodeUtf8=hgr;function ggr(s){let o=s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength),f=Math.min(o.byteLength,fue.MAX_BUFFER_DUMP_BYTES),d=w3e(`
550
550
  === buffer[%d] ===`,f);for(let y=0;y<f;y+=16){d+=`
551
551
  ${XM(y.toString(16),8)}: `;let x="",P;for(P=0;P<16&&y+P<o.byteLength;P++){let F=o[y+P];d+=`${XM(F.toString(16),2)} `,x+=F>31&&F<255?String.fromCharCode(F):"\xB7",P===7&&(d+=" ")}d+=`${Jdt((17-P)*3," ")}${x}`}return d+=`
552
552
  `,f!==o.byteLength&&(d+=w3e(`=== (truncated %d bytes) ===
@@ -558,21 +558,21 @@ Segment #${f}
558
558
  ================
559
559
  `;let{buffer:d,byteLength:y}=s._capnp.segments[f],x=new Uint8Array(d,0,y);o+=pj.dumpBuffer(x)}return o}t(p8e,"dump");Mf.dump=p8e;function d8e(s,o){let f=new s(o.getSegment(0),0);egt.validate(Sfe.PointerType.STRUCT,f);let d=egt.getTargetStructSize(f);return(d.dataByteLength<s._capnp.size.dataByteLength||d.pointerLength<s._capnp.size.pointerLength)&&(nw("need to resize root struct %s",f),tgt.resize(s._capnp.size,f)),f}t(d8e,"getRoot");Mf.getRoot=d8e;function xfe(s,o){let f=o._capnp.segments.length;if(s===0&&f===0){if(OI.Arena.getNumSegments(o._capnp.arena)===0?Tfe(SG.DEFAULT_BUFFER_SIZE,o):o._capnp.segments[0]=new _8e.Segment(0,o,OI.Arena.getBuffer(0,o._capnp.arena)),!o._capnp.segments[0].hasCapacity(8))throw new Error(_j.MSG_SEGMENT_TOO_SMALL);return o._capnp.segments[0].allocate(8),o._capnp.segments[0]}if(s<0||s>=f)throw new Error(pj.format(_j.MSG_SEGMENT_OUT_OF_BOUNDS,s,o));return o._capnp.segments[s]}t(xfe,"getSegment");Mf.getSegment=xfe;function m8e(s,o){let f=new s(o.getSegment(0),0);return tgt.initStruct(s._capnp.size,f),nw("Initialized root pointer %s for %s.",f,o),f}t(m8e,"initRoot");Mf.initRoot=m8e;function agt(s){return new Sfe.Pointer(new wT(s).getSegment(0),0)}t(agt,"readRawPointer");Mf.readRawPointer=agt;function ogt(s,o){Sfe.Pointer.copyFrom(s,new Sfe.Pointer(o.getSegment(0),0))}t(ogt,"setRoot");Mf.setRoot=ogt;function h8e(s){let o=y8e(s);s._capnp.segments.length===0&&xfe(0,s);let f=s._capnp.segments,d=o.byteLength+f.reduce((P,F)=>P+pj.padToWord(F.byteLength),0),y=new Uint8Array(new ArrayBuffer(d)),x=o.byteLength;return y.set(new Uint8Array(o)),f.forEach(P=>{let F=pj.padToWord(P.byteLength);y.set(new Uint8Array(P.buffer,0,F),x),x+=F}),y.buffer}t(h8e,"toArrayBuffer");Mf.toArrayBuffer=h8e;function g8e(s){let o=f8e.pack(y8e(s));s._capnp.segments.length===0&&s.getSegment(0);let f=s._capnp.segments.map(P=>f8e.pack(P.buffer,0,pj.padToWord(P.byteLength))),d=o.byteLength+f.reduce((P,F)=>P+F.byteLength,0),y=new Uint8Array(new ArrayBuffer(d)),x=o.byteLength;return y.set(new Uint8Array(o)),f.forEach(P=>{y.set(new Uint8Array(P),x),x+=P.byteLength}),y.buffer}t(g8e,"toPackedArrayBuffer");Mf.toPackedArrayBuffer=g8e;function y8e(s){let o=s._capnp.segments.length;if(o===0)return new Float64Array(1).buffer;let f=4+o*4+(1-o%2)*4,d=new DataView(new ArrayBuffer(f));return nw("Writing message stream frame with segment count: %d.",o),d.setUint32(0,o-1,!0),s._capnp.segments.forEach((y,x)=>{nw("Message segment %d word count: %d.",y.id,y.byteLength/8),d.setUint32(x*4+4,y.byteLength/8,!0)}),d.buffer}t(y8e,"getStreamFrame");Mf.getStreamFrame=y8e});var fgt=ar(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.ObjectSize=DT.readRawPointer=DT.Message=DT.ListElementSize=void 0;var lgt=(Lu(),Wu(Fu));lgt.__exportStar($dt(),DT);var K1r=em();Object.defineProperty(DT,"ListElementSize",{enumerable:!0,get:t(function(){return K1r.ListElementSize},"get")});var ugt=cgt();Object.defineProperty(DT,"Message",{enumerable:!0,get:t(function(){return ugt.Message},"get")});Object.defineProperty(DT,"readRawPointer",{enumerable:!0,get:t(function(){return ugt.readRawPointer},"get")});var X1r=XO();Object.defineProperty(DT,"ObjectSize",{enumerable:!0,get:t(function(){return X1r.ObjectSize},"get")});lgt.__exportStar(vfe(),DT)});var Efe=ar(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.Uint64=Rs.Int64=Rs.getUint8Mask=Rs.getUint64Mask=Rs.getUint32Mask=Rs.getUint16Mask=Rs.getInt8Mask=Rs.getInt64Mask=Rs.getInt32Mask=Rs.getInt16Mask=Rs.getFloat64Mask=Rs.getFloat32Mask=Rs.getBitMask=Rs.Void=Rs.VoidList=Rs.Uint8List=Rs.Uint64List=Rs.Uint32List=Rs.Uint16List=Rs.TextList=Rs.Text=Rs.Struct=Rs.Pointer=Rs.PointerType=Rs.PointerList=Rs.Orphan=Rs.List=Rs.InterfaceList=Rs.Interface=Rs.Int8List=Rs.Int64List=Rs.Int32List=Rs.Int16List=Rs.Float64List=Rs.Float32List=Rs.DataList=Rs.Data=Rs.CompositeList=Rs.BoolList=Rs.AnyPointerList=Rs.readRawPointer=Rs.ObjectSize=Rs.Message=Rs.ListElementSize=void 0;var cl=fgt();Object.defineProperty(Rs,"ListElementSize",{enumerable:!0,get:t(function(){return cl.ListElementSize},"get")});Object.defineProperty(Rs,"Message",{enumerable:!0,get:t(function(){return cl.Message},"get")});Object.defineProperty(Rs,"ObjectSize",{enumerable:!0,get:t(function(){return cl.ObjectSize},"get")});Object.defineProperty(Rs,"readRawPointer",{enumerable:!0,get:t(function(){return cl.readRawPointer},"get")});Object.defineProperty(Rs,"AnyPointerList",{enumerable:!0,get:t(function(){return cl.AnyPointerList},"get")});Object.defineProperty(Rs,"BoolList",{enumerable:!0,get:t(function(){return cl.BoolList},"get")});Object.defineProperty(Rs,"CompositeList",{enumerable:!0,get:t(function(){return cl.CompositeList},"get")});Object.defineProperty(Rs,"Data",{enumerable:!0,get:t(function(){return cl.Data},"get")});Object.defineProperty(Rs,"DataList",{enumerable:!0,get:t(function(){return cl.DataList},"get")});Object.defineProperty(Rs,"Float32List",{enumerable:!0,get:t(function(){return cl.Float32List},"get")});Object.defineProperty(Rs,"Float64List",{enumerable:!0,get:t(function(){return cl.Float64List},"get")});Object.defineProperty(Rs,"Int16List",{enumerable:!0,get:t(function(){return cl.Int16List},"get")});Object.defineProperty(Rs,"Int32List",{enumerable:!0,get:t(function(){return cl.Int32List},"get")});Object.defineProperty(Rs,"Int64List",{enumerable:!0,get:t(function(){return cl.Int64List},"get")});Object.defineProperty(Rs,"Int8List",{enumerable:!0,get:t(function(){return cl.Int8List},"get")});Object.defineProperty(Rs,"Interface",{enumerable:!0,get:t(function(){return cl.Interface},"get")});Object.defineProperty(Rs,"InterfaceList",{enumerable:!0,get:t(function(){return cl.InterfaceList},"get")});Object.defineProperty(Rs,"List",{enumerable:!0,get:t(function(){return cl.List},"get")});Object.defineProperty(Rs,"Orphan",{enumerable:!0,get:t(function(){return cl.Orphan},"get")});Object.defineProperty(Rs,"PointerList",{enumerable:!0,get:t(function(){return cl.PointerList},"get")});Object.defineProperty(Rs,"PointerType",{enumerable:!0,get:t(function(){return cl.PointerType},"get")});Object.defineProperty(Rs,"Pointer",{enumerable:!0,get:t(function(){return cl.Pointer},"get")});Object.defineProperty(Rs,"Struct",{enumerable:!0,get:t(function(){return cl.Struct},"get")});Object.defineProperty(Rs,"Text",{enumerable:!0,get:t(function(){return cl.Text},"get")});Object.defineProperty(Rs,"TextList",{enumerable:!0,get:t(function(){return cl.TextList},"get")});Object.defineProperty(Rs,"Uint16List",{enumerable:!0,get:t(function(){return cl.Uint16List},"get")});Object.defineProperty(Rs,"Uint32List",{enumerable:!0,get:t(function(){return cl.Uint32List},"get")});Object.defineProperty(Rs,"Uint64List",{enumerable:!0,get:t(function(){return cl.Uint64List},"get")});Object.defineProperty(Rs,"Uint8List",{enumerable:!0,get:t(function(){return cl.Uint8List},"get")});Object.defineProperty(Rs,"VoidList",{enumerable:!0,get:t(function(){return cl.VoidList},"get")});Object.defineProperty(Rs,"Void",{enumerable:!0,get:t(function(){return cl.Void},"get")});Object.defineProperty(Rs,"getBitMask",{enumerable:!0,get:t(function(){return cl.getBitMask},"get")});Object.defineProperty(Rs,"getFloat32Mask",{enumerable:!0,get:t(function(){return cl.getFloat32Mask},"get")});Object.defineProperty(Rs,"getFloat64Mask",{enumerable:!0,get:t(function(){return cl.getFloat64Mask},"get")});Object.defineProperty(Rs,"getInt16Mask",{enumerable:!0,get:t(function(){return cl.getInt16Mask},"get")});Object.defineProperty(Rs,"getInt32Mask",{enumerable:!0,get:t(function(){return cl.getInt32Mask},"get")});Object.defineProperty(Rs,"getInt64Mask",{enumerable:!0,get:t(function(){return cl.getInt64Mask},"get")});Object.defineProperty(Rs,"getInt8Mask",{enumerable:!0,get:t(function(){return cl.getInt8Mask},"get")});Object.defineProperty(Rs,"getUint16Mask",{enumerable:!0,get:t(function(){return cl.getUint16Mask},"get")});Object.defineProperty(Rs,"getUint32Mask",{enumerable:!0,get:t(function(){return cl.getUint32Mask},"get")});Object.defineProperty(Rs,"getUint64Mask",{enumerable:!0,get:t(function(){return cl.getUint64Mask},"get")});Object.defineProperty(Rs,"getUint8Mask",{enumerable:!0,get:t(function(){return cl.getUint8Mask},"get")});var _gt=Xue();Object.defineProperty(Rs,"Int64",{enumerable:!0,get:t(function(){return _gt.Int64},"get")});Object.defineProperty(Rs,"Uint64",{enumerable:!0,get:t(function(){return _gt.Uint64},"get")})});var T8e=ar(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.Extension=ts.Extension_Module=ts.TlsOptions=ts.TlsOptions_Version=ts.TlsOptions_Keypair=ts.HttpOptions=ts.HttpOptions_Header=ts.HttpOptions_Style=ts.DiskDirectory=ts.Network=ts.ExternalServer=ts.ExternalServer_Which=ts.ExternalServer_Tcp=ts.ExternalServer_Https=ts.Worker=ts.Worker_Which=ts.Worker_DurableObjectStorage=ts.Worker_DurableObjectStorage_Which=ts.Worker_DurableObjectNamespace=ts.Worker_DurableObjectNamespace_Which=ts.Worker_Binding=ts.Worker_Binding_Which=ts.Worker_Binding_MemoryCache=ts.Worker_Binding_Hyperdrive=ts.Worker_Binding_Parameter=ts.Worker_Binding_WrappedBinding=ts.Worker_Binding_MemoryCacheLimits=ts.Worker_Binding_CryptoKey=ts.Worker_Binding_CryptoKey_Which=ts.Worker_Binding_CryptoKey_Algorithm=ts.Worker_Binding_CryptoKey_Algorithm_Which=ts.Worker_Binding_CryptoKey_Usage=ts.Worker_Binding_DurableObjectNamespaceDesignator=ts.Worker_Binding_Type=ts.Worker_Binding_Type_Which=ts.Worker_Module=ts.Worker_Module_Which=ts.ServiceDesignator=ts.Service=ts.Service_Which=ts.Socket=ts.Socket_Which=ts.Socket_Https=ts.Config=ts._capnpFileId=void 0;var ql=Efe(),ae=Efe();ts._capnpFileId="e6afd26682091c01";var o7=class s extends ae.Struct{static{t(this,"Config")}adoptServices(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownServices(){return ae.Struct.disown(this.getServices())}getServices(){return ae.Struct.getList(0,s._Services,this)}hasServices(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initServices(o){return ae.Struct.initList(0,s._Services,o,this)}setServices(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}adoptSockets(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownSockets(){return ae.Struct.disown(this.getSockets())}getSockets(){return ae.Struct.getList(1,s._Sockets,this)}hasSockets(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initSockets(o){return ae.Struct.initList(1,s._Sockets,o,this)}setSockets(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptV8Flags(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownV8Flags(){return ae.Struct.disown(this.getV8Flags())}getV8Flags(){return ae.Struct.getList(2,ql.TextList,this)}hasV8Flags(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initV8Flags(o){return ae.Struct.initList(2,ql.TextList,o,this)}setV8Flags(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptExtensions(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownExtensions(){return ae.Struct.disown(this.getExtensions())}getExtensions(){return ae.Struct.getList(3,s._Extensions,this)}hasExtensions(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initExtensions(o){return ae.Struct.initList(3,s._Extensions,o,this)}setExtensions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}adoptAutogates(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownAutogates(){return ae.Struct.disown(this.getAutogates())}getAutogates(){return ae.Struct.getList(4,ql.TextList,this)}hasAutogates(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initAutogates(o){return ae.Struct.initList(4,ql.TextList,o,this)}setAutogates(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}toString(){return"Config_"+super.toString()}};ts.Config=o7;o7._capnp={displayName:"Config",id:"8794486c76aaa7d6",size:new ae.ObjectSize(0,5)};var dj=class extends ae.Struct{static{t(this,"Socket_Https")}adoptOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownOptions(){return ae.Struct.disown(this.getOptions())}getOptions(){return ae.Struct.getStruct(2,Ny,this)}hasOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initOptions(){return ae.Struct.initStructAt(2,Ny,this)}setOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(3,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initTlsOptions(){return ae.Struct.initStructAt(3,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}toString(){return"Socket_Https_"+super.toString()}};ts.Socket_Https=dj;dj._capnp={displayName:"https",id:"de123876383cbbdc",size:new ae.ObjectSize(8,5)};var v8e;(function(s){s[s.HTTP=0]="HTTP",s[s.HTTPS=1]="HTTPS"})(v8e=ts.Socket_Which||(ts.Socket_Which={}));var c7=class extends ae.Struct{static{t(this,"Socket")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getAddress(){return ae.Struct.getText(1,this)}setAddress(o){ae.Struct.setText(1,o,this)}adoptHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownHttp(){return ae.Struct.disown(this.getHttp())}getHttp(){return ae.Struct.testWhich("http",ae.Struct.getUint16(0,this),0,this),ae.Struct.getStruct(2,Ny,this)}hasHttp(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initHttp(){return ae.Struct.setUint16(0,0,this),ae.Struct.initStructAt(2,Ny,this)}isHttp(){return ae.Struct.getUint16(0,this)===0}setHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}getHttps(){return ae.Struct.testWhich("https",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(dj,this)}initHttps(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(dj,this)}isHttps(){return ae.Struct.getUint16(0,this)===1}setHttps(){ae.Struct.setUint16(0,1,this)}adoptService(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownService(){return ae.Struct.disown(this.getService())}getService(){return ae.Struct.getStruct(4,Xp,this)}hasService(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initService(){return ae.Struct.initStructAt(4,Xp,this)}setService(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}toString(){return"Socket_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Socket=c7;c7.HTTP=v8e.HTTP;c7.HTTPS=v8e.HTTPS;c7._capnp={displayName:"Socket",id:"9a0eba45530ee79f",size:new ae.ObjectSize(8,5)};var xj;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.WORKER=1]="WORKER",s[s.NETWORK=2]="NETWORK",s[s.EXTERNAL=3]="EXTERNAL",s[s.DISK=4]="DISK"})(xj=ts.Service_Which||(ts.Service_Which={}));var iw=class extends ae.Struct{static{t(this,"Service")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}adoptWorker(o){ae.Struct.setUint16(0,1,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWorker(){return ae.Struct.disown(this.getWorker())}getWorker(){return ae.Struct.testWhich("worker",ae.Struct.getUint16(0,this),1,this),ae.Struct.getStruct(1,$1,this)}hasWorker(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWorker(){return ae.Struct.setUint16(0,1,this),ae.Struct.initStructAt(1,$1,this)}isWorker(){return ae.Struct.getUint16(0,this)===1}setWorker(o){ae.Struct.setUint16(0,1,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptNetwork(o){ae.Struct.setUint16(0,2,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownNetwork(){return ae.Struct.disown(this.getNetwork())}getNetwork(){return ae.Struct.testWhich("network",ae.Struct.getUint16(0,this),2,this),ae.Struct.getStruct(1,bj,this)}hasNetwork(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initNetwork(){return ae.Struct.setUint16(0,2,this),ae.Struct.initStructAt(1,bj,this)}isNetwork(){return ae.Struct.getUint16(0,this)===2}setNetwork(o){ae.Struct.setUint16(0,2,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptExternal(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownExternal(){return ae.Struct.disown(this.getExternal())}getExternal(){return ae.Struct.testWhich("external",ae.Struct.getUint16(0,this),3,this),ae.Struct.getStruct(1,uA,this)}hasExternal(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initExternal(){return ae.Struct.setUint16(0,3,this),ae.Struct.initStructAt(1,uA,this)}isExternal(){return ae.Struct.getUint16(0,this)===3}setExternal(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptDisk(o){ae.Struct.setUint16(0,4,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDisk(){return ae.Struct.disown(this.getDisk())}getDisk(){return ae.Struct.testWhich("disk",ae.Struct.getUint16(0,this),4,this),ae.Struct.getStruct(1,Sj,this)}hasDisk(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDisk(){return ae.Struct.setUint16(0,4,this),ae.Struct.initStructAt(1,Sj,this)}isDisk(){return ae.Struct.getUint16(0,this)===4}setDisk(o){ae.Struct.setUint16(0,4,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}toString(){return"Service_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Service=iw;iw.UNSPECIFIED=xj.UNSPECIFIED;iw.WORKER=xj.WORKER;iw.NETWORK=xj.NETWORK;iw.EXTERNAL=xj.EXTERNAL;iw.DISK=xj.DISK;iw._capnp={displayName:"Service",id:"e5c88e8bb7bcb6b9",size:new ae.ObjectSize(8,2)};var Xp=class extends ae.Struct{static{t(this,"ServiceDesignator")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getEntrypoint(){return ae.Struct.getText(1,this)}setEntrypoint(o){ae.Struct.setText(1,o,this)}toString(){return"ServiceDesignator_"+super.toString()}};ts.ServiceDesignator=Xp;Xp._capnp={displayName:"ServiceDesignator",id:"ae8ec91cee724450",size:new ae.ObjectSize(0,2)};var sw;(function(s){s[s.ES_MODULE=0]="ES_MODULE",s[s.COMMON_JS_MODULE=1]="COMMON_JS_MODULE",s[s.TEXT=2]="TEXT",s[s.DATA=3]="DATA",s[s.WASM=4]="WASM",s[s.JSON=5]="JSON",s[s.NODE_JS_COMPAT_MODULE=6]="NODE_JS_COMPAT_MODULE",s[s.PYTHON_MODULE=7]="PYTHON_MODULE",s[s.PYTHON_REQUIREMENT=8]="PYTHON_REQUIREMENT"})(sw=ts.Worker_Module_Which||(ts.Worker_Module_Which={}));var z1=class extends ae.Struct{static{t(this,"Worker_Module")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getEsModule(){return ae.Struct.testWhich("esModule",ae.Struct.getUint16(0,this),0,this),ae.Struct.getText(1,this)}isEsModule(){return ae.Struct.getUint16(0,this)===0}setEsModule(o){ae.Struct.setUint16(0,0,this),ae.Struct.setText(1,o,this)}getCommonJsModule(){return ae.Struct.testWhich("commonJsModule",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(1,this)}isCommonJsModule(){return ae.Struct.getUint16(0,this)===1}setCommonJsModule(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(1,o,this)}getText(){return ae.Struct.testWhich("text",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(1,this)}isText(){return ae.Struct.getUint16(0,this)===2}setText(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(1,o,this)}adoptData(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownData(){return ae.Struct.disown(this.getData())}getData(){return ae.Struct.testWhich("data",ae.Struct.getUint16(0,this),3,this),ae.Struct.getData(1,this)}hasData(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initData(o){return ae.Struct.setUint16(0,3,this),ae.Struct.initData(1,o,this)}isData(){return ae.Struct.getUint16(0,this)===3}setData(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptWasm(o){ae.Struct.setUint16(0,4,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWasm(){return ae.Struct.disown(this.getWasm())}getWasm(){return ae.Struct.testWhich("wasm",ae.Struct.getUint16(0,this),4,this),ae.Struct.getData(1,this)}hasWasm(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWasm(o){return ae.Struct.setUint16(0,4,this),ae.Struct.initData(1,o,this)}isWasm(){return ae.Struct.getUint16(0,this)===4}setWasm(o){ae.Struct.setUint16(0,4,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(0,this),5,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(0,this)===5}setJson(o){ae.Struct.setUint16(0,5,this),ae.Struct.setText(1,o,this)}getNodeJsCompatModule(){return ae.Struct.testWhich("nodeJsCompatModule",ae.Struct.getUint16(0,this),6,this),ae.Struct.getText(1,this)}isNodeJsCompatModule(){return ae.Struct.getUint16(0,this)===6}setNodeJsCompatModule(o){ae.Struct.setUint16(0,6,this),ae.Struct.setText(1,o,this)}getPythonModule(){return ae.Struct.testWhich("pythonModule",ae.Struct.getUint16(0,this),7,this),ae.Struct.getText(1,this)}isPythonModule(){return ae.Struct.getUint16(0,this)===7}setPythonModule(o){ae.Struct.setUint16(0,7,this),ae.Struct.setText(1,o,this)}getPythonRequirement(){return ae.Struct.testWhich("pythonRequirement",ae.Struct.getUint16(0,this),8,this),ae.Struct.getText(1,this)}isPythonRequirement(){return ae.Struct.getUint16(0,this)===8}setPythonRequirement(o){ae.Struct.setUint16(0,8,this),ae.Struct.setText(1,o,this)}adoptNamedExports(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownNamedExports(){return ae.Struct.disown(this.getNamedExports())}getNamedExports(){return ae.Struct.getList(2,ql.TextList,this)}hasNamedExports(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initNamedExports(o){return ae.Struct.initList(2,ql.TextList,o,this)}setNamedExports(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Module_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Module=z1;z1.ES_MODULE=sw.ES_MODULE;z1.COMMON_JS_MODULE=sw.COMMON_JS_MODULE;z1.TEXT=sw.TEXT;z1.DATA=sw.DATA;z1.WASM=sw.WASM;z1.JSON=sw.JSON;z1.NODE_JS_COMPAT_MODULE=sw.NODE_JS_COMPAT_MODULE;z1.PYTHON_MODULE=sw.PYTHON_MODULE;z1.PYTHON_REQUIREMENT=sw.PYTHON_REQUIREMENT;z1._capnp={displayName:"Module",id:"d9d87a63770a12f3",size:new ae.ObjectSize(8,3)};var J1;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.TEXT=1]="TEXT",s[s.DATA=2]="DATA",s[s.JSON=3]="JSON",s[s.WASM=4]="WASM",s[s.CRYPTO_KEY=5]="CRYPTO_KEY",s[s.SERVICE=6]="SERVICE",s[s.DURABLE_OBJECT_NAMESPACE=7]="DURABLE_OBJECT_NAMESPACE",s[s.KV_NAMESPACE=8]="KV_NAMESPACE",s[s.R2BUCKET=9]="R2BUCKET",s[s.R2ADMIN=10]="R2ADMIN",s[s.QUEUE=11]="QUEUE",s[s.ANALYTICS_ENGINE=12]="ANALYTICS_ENGINE",s[s.HYPERDRIVE=13]="HYPERDRIVE"})(J1=ts.Worker_Binding_Type_Which||(ts.Worker_Binding_Type_Which={}));var Pm=class extends ae.Struct{static{t(this,"Worker_Binding_Type")}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}isText(){return ae.Struct.getUint16(0,this)===1}setText(){ae.Struct.setUint16(0,1,this)}isData(){return ae.Struct.getUint16(0,this)===2}setData(){ae.Struct.setUint16(0,2,this)}isJson(){return ae.Struct.getUint16(0,this)===3}setJson(){ae.Struct.setUint16(0,3,this)}isWasm(){return ae.Struct.getUint16(0,this)===4}setWasm(){ae.Struct.setUint16(0,4,this)}adoptCryptoKey(o){ae.Struct.setUint16(0,5,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownCryptoKey(){return ae.Struct.disown(this.getCryptoKey())}getCryptoKey(){return ae.Struct.testWhich("cryptoKey",ae.Struct.getUint16(0,this),5,this),ae.Struct.getList(0,ql.Uint16List,this)}hasCryptoKey(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initCryptoKey(o){return ae.Struct.setUint16(0,5,this),ae.Struct.initList(0,ql.Uint16List,o,this)}isCryptoKey(){return ae.Struct.getUint16(0,this)===5}setCryptoKey(o){ae.Struct.setUint16(0,5,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}isService(){return ae.Struct.getUint16(0,this)===6}setService(){ae.Struct.setUint16(0,6,this)}isDurableObjectNamespace(){return ae.Struct.getUint16(0,this)===7}setDurableObjectNamespace(){ae.Struct.setUint16(0,7,this)}isKvNamespace(){return ae.Struct.getUint16(0,this)===8}setKvNamespace(){ae.Struct.setUint16(0,8,this)}isR2Bucket(){return ae.Struct.getUint16(0,this)===9}setR2Bucket(){ae.Struct.setUint16(0,9,this)}isR2Admin(){return ae.Struct.getUint16(0,this)===10}setR2Admin(){ae.Struct.setUint16(0,10,this)}isQueue(){return ae.Struct.getUint16(0,this)===11}setQueue(){ae.Struct.setUint16(0,11,this)}isAnalyticsEngine(){return ae.Struct.getUint16(0,this)===12}setAnalyticsEngine(){ae.Struct.setUint16(0,12,this)}isHyperdrive(){return ae.Struct.getUint16(0,this)===13}setHyperdrive(){ae.Struct.setUint16(0,13,this)}toString(){return"Worker_Binding_Type_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding_Type=Pm;Pm.UNSPECIFIED=J1.UNSPECIFIED;Pm.TEXT=J1.TEXT;Pm.DATA=J1.DATA;Pm.JSON=J1.JSON;Pm.WASM=J1.WASM;Pm.CRYPTO_KEY=J1.CRYPTO_KEY;Pm.SERVICE=J1.SERVICE;Pm.DURABLE_OBJECT_NAMESPACE=J1.DURABLE_OBJECT_NAMESPACE;Pm.KV_NAMESPACE=J1.KV_NAMESPACE;Pm.R2BUCKET=J1.R2BUCKET;Pm.R2ADMIN=J1.R2ADMIN;Pm.QUEUE=J1.QUEUE;Pm.ANALYTICS_ENGINE=J1.ANALYTICS_ENGINE;Pm.HYPERDRIVE=J1.HYPERDRIVE;Pm._capnp={displayName:"Type",id:"8906a1296519bf8a",size:new ae.ObjectSize(8,1)};var l7=class extends ae.Struct{static{t(this,"Worker_Binding_DurableObjectNamespaceDesignator")}getClassName(){return ae.Struct.getText(0,this)}setClassName(o){ae.Struct.setText(0,o,this)}getServiceName(){return ae.Struct.getText(1,this)}setServiceName(o){ae.Struct.setText(1,o,this)}toString(){return"Worker_Binding_DurableObjectNamespaceDesignator_"+super.toString()}};ts.Worker_Binding_DurableObjectNamespaceDesignator=l7;l7._capnp={displayName:"DurableObjectNamespaceDesignator",id:"804f144ff477aac7",size:new ae.ObjectSize(0,2)};var pgt;(function(s){s[s.ENCRYPT=0]="ENCRYPT",s[s.DECRYPT=1]="DECRYPT",s[s.SIGN=2]="SIGN",s[s.VERIFY=3]="VERIFY",s[s.DERIVE_KEY=4]="DERIVE_KEY",s[s.DERIVE_BITS=5]="DERIVE_BITS",s[s.WRAP_KEY=6]="WRAP_KEY",s[s.UNWRAP_KEY=7]="UNWRAP_KEY"})(pgt=ts.Worker_Binding_CryptoKey_Usage||(ts.Worker_Binding_CryptoKey_Usage={}));var b8e;(function(s){s[s.NAME=0]="NAME",s[s.JSON=1]="JSON"})(b8e=ts.Worker_Binding_CryptoKey_Algorithm_Which||(ts.Worker_Binding_CryptoKey_Algorithm_Which={}));var FI=class extends ae.Struct{static{t(this,"Worker_Binding_CryptoKey_Algorithm")}getName(){return ae.Struct.testWhich("name",ae.Struct.getUint16(2,this),0,this),ae.Struct.getText(1,this)}isName(){return ae.Struct.getUint16(2,this)===0}setName(o){ae.Struct.setUint16(2,0,this),ae.Struct.setText(1,o,this)}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(2,this),1,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(2,this)===1}setJson(o){ae.Struct.setUint16(2,1,this),ae.Struct.setText(1,o,this)}toString(){return"Worker_Binding_CryptoKey_Algorithm_"+super.toString()}which(){return ae.Struct.getUint16(2,this)}};ts.Worker_Binding_CryptoKey_Algorithm=FI;FI.NAME=b8e.NAME;FI.JSON=b8e.JSON;FI._capnp={displayName:"algorithm",id:"a1a040c5e00d7021",size:new ae.ObjectSize(8,3)};var d7;(function(s){s[s.RAW=0]="RAW",s[s.HEX=1]="HEX",s[s.BASE64=2]="BASE64",s[s.PKCS8=3]="PKCS8",s[s.SPKI=4]="SPKI",s[s.JWK=5]="JWK"})(d7=ts.Worker_Binding_CryptoKey_Which||(ts.Worker_Binding_CryptoKey_Which={}));var sb=class s extends ae.Struct{static{t(this,"Worker_Binding_CryptoKey")}adoptRaw(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownRaw(){return ae.Struct.disown(this.getRaw())}getRaw(){return ae.Struct.testWhich("raw",ae.Struct.getUint16(0,this),0,this),ae.Struct.getData(0,this)}hasRaw(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initRaw(o){return ae.Struct.setUint16(0,0,this),ae.Struct.initData(0,o,this)}isRaw(){return ae.Struct.getUint16(0,this)===0}setRaw(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getHex(){return ae.Struct.testWhich("hex",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(0,this)}isHex(){return ae.Struct.getUint16(0,this)===1}setHex(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(0,o,this)}getBase64(){return ae.Struct.testWhich("base64",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(0,this)}isBase64(){return ae.Struct.getUint16(0,this)===2}setBase64(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(0,o,this)}getPkcs8(){return ae.Struct.testWhich("pkcs8",ae.Struct.getUint16(0,this),3,this),ae.Struct.getText(0,this)}isPkcs8(){return ae.Struct.getUint16(0,this)===3}setPkcs8(o){ae.Struct.setUint16(0,3,this),ae.Struct.setText(0,o,this)}getSpki(){return ae.Struct.testWhich("spki",ae.Struct.getUint16(0,this),4,this),ae.Struct.getText(0,this)}isSpki(){return ae.Struct.getUint16(0,this)===4}setSpki(o){ae.Struct.setUint16(0,4,this),ae.Struct.setText(0,o,this)}getJwk(){return ae.Struct.testWhich("jwk",ae.Struct.getUint16(0,this),5,this),ae.Struct.getText(0,this)}isJwk(){return ae.Struct.getUint16(0,this)===5}setJwk(o){ae.Struct.setUint16(0,5,this),ae.Struct.setText(0,o,this)}getAlgorithm(){return ae.Struct.getAs(FI,this)}initAlgorithm(){return ae.Struct.getAs(FI,this)}getExtractable(){return ae.Struct.getBit(32,this,s._capnp.defaultExtractable)}setExtractable(o){ae.Struct.setBit(32,o,this)}adoptUsages(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownUsages(){return ae.Struct.disown(this.getUsages())}getUsages(){return ae.Struct.getList(2,ql.Uint16List,this)}hasUsages(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initUsages(o){return ae.Struct.initList(2,ql.Uint16List,o,this)}setUsages(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_CryptoKey_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding_CryptoKey=sb;sb.RAW=d7.RAW;sb.HEX=d7.HEX;sb.BASE64=d7.BASE64;sb.PKCS8=d7.PKCS8;sb.SPKI=d7.SPKI;sb.JWK=d7.JWK;sb.Usage=pgt;sb._capnp={displayName:"CryptoKey",id:"b5e1bff0e57d6eb0",size:new ae.ObjectSize(8,3),defaultExtractable:ql.getBitMask(!1,0)};var u7=class extends ae.Struct{static{t(this,"Worker_Binding_MemoryCacheLimits")}getMaxKeys(){return ae.Struct.getUint32(0,this)}setMaxKeys(o){ae.Struct.setUint32(0,o,this)}getMaxValueSize(){return ae.Struct.getUint32(4,this)}setMaxValueSize(o){ae.Struct.setUint32(4,o,this)}getMaxTotalValueSize(){return ae.Struct.getUint64(8,this)}setMaxTotalValueSize(o){ae.Struct.setUint64(8,o,this)}toString(){return"Worker_Binding_MemoryCacheLimits_"+super.toString()}};ts.Worker_Binding_MemoryCacheLimits=u7;u7._capnp={displayName:"MemoryCacheLimits",id:"8d66725b0867e634",size:new ae.ObjectSize(16,0)};var LI=class s extends ae.Struct{static{t(this,"Worker_Binding_WrappedBinding")}getModuleName(){return ae.Struct.getText(0,this)}setModuleName(o){ae.Struct.setText(0,o,this)}getEntrypoint(){return ae.Struct.getText(1,this,s._capnp.defaultEntrypoint)}setEntrypoint(o){ae.Struct.setText(1,o,this)}adoptInnerBindings(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownInnerBindings(){return ae.Struct.disown(this.getInnerBindings())}getInnerBindings(){return ae.Struct.getList(2,s._InnerBindings,this)}hasInnerBindings(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initInnerBindings(o){return ae.Struct.initList(2,s._InnerBindings,o,this)}setInnerBindings(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_WrappedBinding_"+super.toString()}};ts.Worker_Binding_WrappedBinding=LI;LI._capnp={displayName:"WrappedBinding",id:"e6f066b75f0ea113",size:new ae.ObjectSize(0,3),defaultEntrypoint:"default"};var mj=class extends ae.Struct{static{t(this,"Worker_Binding_Parameter")}adoptType(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownType(){return ae.Struct.disown(this.getType())}getType(){return ae.Struct.getStruct(1,Pm,this)}hasType(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initType(){return ae.Struct.initStructAt(1,Pm,this)}setType(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getOptional(){return ae.Struct.getBit(16,this)}setOptional(o){ae.Struct.setBit(16,o,this)}toString(){return"Worker_Binding_Parameter_"+super.toString()}};ts.Worker_Binding_Parameter=mj;mj._capnp={displayName:"parameter",id:"dc57e1258d26d152",size:new ae.ObjectSize(8,6)};var hj=class extends ae.Struct{static{t(this,"Worker_Binding_Hyperdrive")}adoptDesignator(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDesignator(){return ae.Struct.disown(this.getDesignator())}getDesignator(){return ae.Struct.getStruct(1,Xp,this)}hasDesignator(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDesignator(){return ae.Struct.initStructAt(1,Xp,this)}setDesignator(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getDatabase(){return ae.Struct.getText(2,this)}setDatabase(o){ae.Struct.setText(2,o,this)}getUser(){return ae.Struct.getText(3,this)}setUser(o){ae.Struct.setText(3,o,this)}getPassword(){return ae.Struct.getText(4,this)}setPassword(o){ae.Struct.setText(4,o,this)}getScheme(){return ae.Struct.getText(5,this)}setScheme(o){ae.Struct.setText(5,o,this)}toString(){return"Worker_Binding_Hyperdrive_"+super.toString()}};ts.Worker_Binding_Hyperdrive=hj;hj._capnp={displayName:"hyperdrive",id:"ad6c391cd55f3134",size:new ae.ObjectSize(8,6)};var gj=class extends ae.Struct{static{t(this,"Worker_Binding_MemoryCache")}getId(){return ae.Struct.getText(1,this)}setId(o){ae.Struct.setText(1,o,this)}adoptLimits(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownLimits(){return ae.Struct.disown(this.getLimits())}getLimits(){return ae.Struct.getStruct(2,u7,this)}hasLimits(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initLimits(){return ae.Struct.initStructAt(2,u7,this)}setLimits(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_MemoryCache_"+super.toString()}};ts.Worker_Binding_MemoryCache=gj;gj._capnp={displayName:"memoryCache",id:"aed5760c349869da",size:new ae.ObjectSize(8,6)};var Km;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.PARAMETER=1]="PARAMETER",s[s.TEXT=2]="TEXT",s[s.DATA=3]="DATA",s[s.JSON=4]="JSON",s[s.WASM_MODULE=5]="WASM_MODULE",s[s.CRYPTO_KEY=6]="CRYPTO_KEY",s[s.SERVICE=7]="SERVICE",s[s.DURABLE_OBJECT_NAMESPACE=8]="DURABLE_OBJECT_NAMESPACE",s[s.KV_NAMESPACE=9]="KV_NAMESPACE",s[s.R2BUCKET=10]="R2BUCKET",s[s.R2ADMIN=11]="R2ADMIN",s[s.WRAPPED=12]="WRAPPED",s[s.QUEUE=13]="QUEUE",s[s.FROM_ENVIRONMENT=14]="FROM_ENVIRONMENT",s[s.ANALYTICS_ENGINE=15]="ANALYTICS_ENGINE",s[s.HYPERDRIVE=16]="HYPERDRIVE",s[s.UNSAFE_EVAL=17]="UNSAFE_EVAL",s[s.MEMORY_CACHE=18]="MEMORY_CACHE"})(Km=ts.Worker_Binding_Which||(ts.Worker_Binding_Which={}));var vf=class extends ae.Struct{static{t(this,"Worker_Binding")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}getParameter(){return ae.Struct.testWhich("parameter",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(mj,this)}initParameter(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(mj,this)}isParameter(){return ae.Struct.getUint16(0,this)===1}setParameter(){ae.Struct.setUint16(0,1,this)}getText(){return ae.Struct.testWhich("text",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(1,this)}isText(){return ae.Struct.getUint16(0,this)===2}setText(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(1,o,this)}adoptData(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownData(){return ae.Struct.disown(this.getData())}getData(){return ae.Struct.testWhich("data",ae.Struct.getUint16(0,this),3,this),ae.Struct.getData(1,this)}hasData(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initData(o){return ae.Struct.setUint16(0,3,this),ae.Struct.initData(1,o,this)}isData(){return ae.Struct.getUint16(0,this)===3}setData(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(0,this),4,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(0,this)===4}setJson(o){ae.Struct.setUint16(0,4,this),ae.Struct.setText(1,o,this)}adoptWasmModule(o){ae.Struct.setUint16(0,5,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWasmModule(){return ae.Struct.disown(this.getWasmModule())}getWasmModule(){return ae.Struct.testWhich("wasmModule",ae.Struct.getUint16(0,this),5,this),ae.Struct.getData(1,this)}hasWasmModule(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWasmModule(o){return ae.Struct.setUint16(0,5,this),ae.Struct.initData(1,o,this)}isWasmModule(){return ae.Struct.getUint16(0,this)===5}setWasmModule(o){ae.Struct.setUint16(0,5,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptCryptoKey(o){ae.Struct.setUint16(0,6,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownCryptoKey(){return ae.Struct.disown(this.getCryptoKey())}getCryptoKey(){return ae.Struct.testWhich("cryptoKey",ae.Struct.getUint16(0,this),6,this),ae.Struct.getStruct(1,sb,this)}hasCryptoKey(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initCryptoKey(){return ae.Struct.setUint16(0,6,this),ae.Struct.initStructAt(1,sb,this)}isCryptoKey(){return ae.Struct.getUint16(0,this)===6}setCryptoKey(o){ae.Struct.setUint16(0,6,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptService(o){ae.Struct.setUint16(0,7,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownService(){return ae.Struct.disown(this.getService())}getService(){return ae.Struct.testWhich("service",ae.Struct.getUint16(0,this),7,this),ae.Struct.getStruct(1,Xp,this)}hasService(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initService(){return ae.Struct.setUint16(0,7,this),ae.Struct.initStructAt(1,Xp,this)}isService(){return ae.Struct.getUint16(0,this)===7}setService(o){ae.Struct.setUint16(0,7,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptDurableObjectNamespace(o){ae.Struct.setUint16(0,8,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDurableObjectNamespace(){return ae.Struct.disown(this.getDurableObjectNamespace())}getDurableObjectNamespace(){return ae.Struct.testWhich("durableObjectNamespace",ae.Struct.getUint16(0,this),8,this),ae.Struct.getStruct(1,l7,this)}hasDurableObjectNamespace(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDurableObjectNamespace(){return ae.Struct.setUint16(0,8,this),ae.Struct.initStructAt(1,l7,this)}isDurableObjectNamespace(){return ae.Struct.getUint16(0,this)===8}setDurableObjectNamespace(o){ae.Struct.setUint16(0,8,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptKvNamespace(o){ae.Struct.setUint16(0,9,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownKvNamespace(){return ae.Struct.disown(this.getKvNamespace())}getKvNamespace(){return ae.Struct.testWhich("kvNamespace",ae.Struct.getUint16(0,this),9,this),ae.Struct.getStruct(1,Xp,this)}hasKvNamespace(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initKvNamespace(){return ae.Struct.setUint16(0,9,this),ae.Struct.initStructAt(1,Xp,this)}isKvNamespace(){return ae.Struct.getUint16(0,this)===9}setKvNamespace(o){ae.Struct.setUint16(0,9,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptR2Bucket(o){ae.Struct.setUint16(0,10,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownR2Bucket(){return ae.Struct.disown(this.getR2Bucket())}getR2Bucket(){return ae.Struct.testWhich("r2Bucket",ae.Struct.getUint16(0,this),10,this),ae.Struct.getStruct(1,Xp,this)}hasR2Bucket(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initR2Bucket(){return ae.Struct.setUint16(0,10,this),ae.Struct.initStructAt(1,Xp,this)}isR2Bucket(){return ae.Struct.getUint16(0,this)===10}setR2Bucket(o){ae.Struct.setUint16(0,10,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptR2Admin(o){ae.Struct.setUint16(0,11,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownR2Admin(){return ae.Struct.disown(this.getR2Admin())}getR2Admin(){return ae.Struct.testWhich("r2Admin",ae.Struct.getUint16(0,this),11,this),ae.Struct.getStruct(1,Xp,this)}hasR2Admin(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initR2Admin(){return ae.Struct.setUint16(0,11,this),ae.Struct.initStructAt(1,Xp,this)}isR2Admin(){return ae.Struct.getUint16(0,this)===11}setR2Admin(o){ae.Struct.setUint16(0,11,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptWrapped(o){ae.Struct.setUint16(0,12,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWrapped(){return ae.Struct.disown(this.getWrapped())}getWrapped(){return ae.Struct.testWhich("wrapped",ae.Struct.getUint16(0,this),12,this),ae.Struct.getStruct(1,LI,this)}hasWrapped(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWrapped(){return ae.Struct.setUint16(0,12,this),ae.Struct.initStructAt(1,LI,this)}isWrapped(){return ae.Struct.getUint16(0,this)===12}setWrapped(o){ae.Struct.setUint16(0,12,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptQueue(o){ae.Struct.setUint16(0,13,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownQueue(){return ae.Struct.disown(this.getQueue())}getQueue(){return ae.Struct.testWhich("queue",ae.Struct.getUint16(0,this),13,this),ae.Struct.getStruct(1,Xp,this)}hasQueue(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initQueue(){return ae.Struct.setUint16(0,13,this),ae.Struct.initStructAt(1,Xp,this)}isQueue(){return ae.Struct.getUint16(0,this)===13}setQueue(o){ae.Struct.setUint16(0,13,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getFromEnvironment(){return ae.Struct.testWhich("fromEnvironment",ae.Struct.getUint16(0,this),14,this),ae.Struct.getText(1,this)}isFromEnvironment(){return ae.Struct.getUint16(0,this)===14}setFromEnvironment(o){ae.Struct.setUint16(0,14,this),ae.Struct.setText(1,o,this)}adoptAnalyticsEngine(o){ae.Struct.setUint16(0,15,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownAnalyticsEngine(){return ae.Struct.disown(this.getAnalyticsEngine())}getAnalyticsEngine(){return ae.Struct.testWhich("analyticsEngine",ae.Struct.getUint16(0,this),15,this),ae.Struct.getStruct(1,Xp,this)}hasAnalyticsEngine(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initAnalyticsEngine(){return ae.Struct.setUint16(0,15,this),ae.Struct.initStructAt(1,Xp,this)}isAnalyticsEngine(){return ae.Struct.getUint16(0,this)===15}setAnalyticsEngine(o){ae.Struct.setUint16(0,15,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getHyperdrive(){return ae.Struct.testWhich("hyperdrive",ae.Struct.getUint16(0,this),16,this),ae.Struct.getAs(hj,this)}initHyperdrive(){return ae.Struct.setUint16(0,16,this),ae.Struct.getAs(hj,this)}isHyperdrive(){return ae.Struct.getUint16(0,this)===16}setHyperdrive(){ae.Struct.setUint16(0,16,this)}isUnsafeEval(){return ae.Struct.getUint16(0,this)===17}setUnsafeEval(){ae.Struct.setUint16(0,17,this)}getMemoryCache(){return ae.Struct.testWhich("memoryCache",ae.Struct.getUint16(0,this),18,this),ae.Struct.getAs(gj,this)}initMemoryCache(){return ae.Struct.setUint16(0,18,this),ae.Struct.getAs(gj,this)}isMemoryCache(){return ae.Struct.getUint16(0,this)===18}setMemoryCache(){ae.Struct.setUint16(0,18,this)}toString(){return"Worker_Binding_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding=vf;vf.UNSPECIFIED=Km.UNSPECIFIED;vf.PARAMETER=Km.PARAMETER;vf.TEXT=Km.TEXT;vf.DATA=Km.DATA;vf.JSON=Km.JSON;vf.WASM_MODULE=Km.WASM_MODULE;vf.CRYPTO_KEY=Km.CRYPTO_KEY;vf.SERVICE=Km.SERVICE;vf.DURABLE_OBJECT_NAMESPACE=Km.DURABLE_OBJECT_NAMESPACE;vf.KV_NAMESPACE=Km.KV_NAMESPACE;vf.R2BUCKET=Km.R2BUCKET;vf.R2ADMIN=Km.R2ADMIN;vf.WRAPPED=Km.WRAPPED;vf.QUEUE=Km.QUEUE;vf.FROM_ENVIRONMENT=Km.FROM_ENVIRONMENT;vf.ANALYTICS_ENGINE=Km.ANALYTICS_ENGINE;vf.HYPERDRIVE=Km.HYPERDRIVE;vf.UNSAFE_EVAL=Km.UNSAFE_EVAL;vf.MEMORY_CACHE=Km.MEMORY_CACHE;vf.Type=Pm;vf.DurableObjectNamespaceDesignator=l7;vf.CryptoKey=sb;vf.MemoryCacheLimits=u7;vf.WrappedBinding=LI;vf._capnp={displayName:"Binding",id:"8e7e492fd7e35f3e",size:new ae.ObjectSize(8,6)};var S8e;(function(s){s[s.UNIQUE_KEY=0]="UNIQUE_KEY",s[s.EPHEMERAL_LOCAL=1]="EPHEMERAL_LOCAL"})(S8e=ts.Worker_DurableObjectNamespace_Which||(ts.Worker_DurableObjectNamespace_Which={}));var RI=class extends ae.Struct{static{t(this,"Worker_DurableObjectNamespace")}getClassName(){return ae.Struct.getText(0,this)}setClassName(o){ae.Struct.setText(0,o,this)}getUniqueKey(){return ae.Struct.testWhich("uniqueKey",ae.Struct.getUint16(0,this),0,this),ae.Struct.getText(1,this)}isUniqueKey(){return ae.Struct.getUint16(0,this)===0}setUniqueKey(o){ae.Struct.setUint16(0,0,this),ae.Struct.setText(1,o,this)}isEphemeralLocal(){return ae.Struct.getUint16(0,this)===1}setEphemeralLocal(){ae.Struct.setUint16(0,1,this)}getPreventEviction(){return ae.Struct.getBit(16,this)}setPreventEviction(o){ae.Struct.setBit(16,o,this)}getEnableSql(){return ae.Struct.getBit(17,this)}setEnableSql(o){ae.Struct.setBit(17,o,this)}toString(){return"Worker_DurableObjectNamespace_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_DurableObjectNamespace=RI;RI.UNIQUE_KEY=S8e.UNIQUE_KEY;RI.EPHEMERAL_LOCAL=S8e.EPHEMERAL_LOCAL;RI._capnp={displayName:"DurableObjectNamespace",id:"b429dd547d15747d",size:new ae.ObjectSize(8,2)};var Cfe;(function(s){s[s.NONE=0]="NONE",s[s.IN_MEMORY=1]="IN_MEMORY",s[s.LOCAL_DISK=2]="LOCAL_DISK"})(Cfe=ts.Worker_DurableObjectStorage_Which||(ts.Worker_DurableObjectStorage_Which={}));var lA=class extends ae.Struct{static{t(this,"Worker_DurableObjectStorage")}isNone(){return ae.Struct.getUint16(2,this)===0}setNone(){ae.Struct.setUint16(2,0,this)}isInMemory(){return ae.Struct.getUint16(2,this)===1}setInMemory(){ae.Struct.setUint16(2,1,this)}getLocalDisk(){return ae.Struct.testWhich("localDisk",ae.Struct.getUint16(2,this),2,this),ae.Struct.getText(8,this)}isLocalDisk(){return ae.Struct.getUint16(2,this)===2}setLocalDisk(o){ae.Struct.setUint16(2,2,this),ae.Struct.setText(8,o,this)}toString(){return"Worker_DurableObjectStorage_"+super.toString()}which(){return ae.Struct.getUint16(2,this)}};ts.Worker_DurableObjectStorage=lA;lA.NONE=Cfe.NONE;lA.IN_MEMORY=Cfe.IN_MEMORY;lA.LOCAL_DISK=Cfe.LOCAL_DISK;lA._capnp={displayName:"durableObjectStorage",id:"cc72b3faa57827d4",size:new ae.ObjectSize(8,10)};var kfe;(function(s){s[s.MODULES=0]="MODULES",s[s.SERVICE_WORKER_SCRIPT=1]="SERVICE_WORKER_SCRIPT",s[s.INHERIT=2]="INHERIT"})(kfe=ts.Worker_Which||(ts.Worker_Which={}));var $1=class s extends ae.Struct{static{t(this,"Worker")}adoptModules(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownModules(){return ae.Struct.disown(this.getModules())}getModules(){return ae.Struct.testWhich("modules",ae.Struct.getUint16(0,this),0,this),ae.Struct.getList(0,s._Modules,this)}hasModules(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initModules(o){return ae.Struct.setUint16(0,0,this),ae.Struct.initList(0,s._Modules,o,this)}isModules(){return ae.Struct.getUint16(0,this)===0}setModules(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getServiceWorkerScript(){return ae.Struct.testWhich("serviceWorkerScript",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(0,this)}isServiceWorkerScript(){return ae.Struct.getUint16(0,this)===1}setServiceWorkerScript(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(0,o,this)}getInherit(){return ae.Struct.testWhich("inherit",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(0,this)}isInherit(){return ae.Struct.getUint16(0,this)===2}setInherit(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(0,o,this)}getCompatibilityDate(){return ae.Struct.getText(1,this)}setCompatibilityDate(o){ae.Struct.setText(1,o,this)}adoptCompatibilityFlags(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownCompatibilityFlags(){return ae.Struct.disown(this.getCompatibilityFlags())}getCompatibilityFlags(){return ae.Struct.getList(2,ql.TextList,this)}hasCompatibilityFlags(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initCompatibilityFlags(o){return ae.Struct.initList(2,ql.TextList,o,this)}setCompatibilityFlags(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptBindings(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownBindings(){return ae.Struct.disown(this.getBindings())}getBindings(){return ae.Struct.getList(3,s._Bindings,this)}hasBindings(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initBindings(o){return ae.Struct.initList(3,s._Bindings,o,this)}setBindings(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}adoptGlobalOutbound(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownGlobalOutbound(){return ae.Struct.disown(this.getGlobalOutbound())}getGlobalOutbound(){return ae.Struct.getStruct(4,Xp,this,s._capnp.defaultGlobalOutbound)}hasGlobalOutbound(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initGlobalOutbound(){return ae.Struct.initStructAt(4,Xp,this)}setGlobalOutbound(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}adoptCacheApiOutbound(o){ae.Struct.adopt(o,ae.Struct.getPointer(7,this))}disownCacheApiOutbound(){return ae.Struct.disown(this.getCacheApiOutbound())}getCacheApiOutbound(){return ae.Struct.getStruct(7,Xp,this)}hasCacheApiOutbound(){return!ae.Struct.isNull(ae.Struct.getPointer(7,this))}initCacheApiOutbound(){return ae.Struct.initStructAt(7,Xp,this)}setCacheApiOutbound(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(7,this))}adoptDurableObjectNamespaces(o){ae.Struct.adopt(o,ae.Struct.getPointer(5,this))}disownDurableObjectNamespaces(){return ae.Struct.disown(this.getDurableObjectNamespaces())}getDurableObjectNamespaces(){return ae.Struct.getList(5,s._DurableObjectNamespaces,this)}hasDurableObjectNamespaces(){return!ae.Struct.isNull(ae.Struct.getPointer(5,this))}initDurableObjectNamespaces(o){return ae.Struct.initList(5,s._DurableObjectNamespaces,o,this)}setDurableObjectNamespaces(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(5,this))}getDurableObjectUniqueKeyModifier(){return ae.Struct.getText(6,this)}setDurableObjectUniqueKeyModifier(o){ae.Struct.setText(6,o,this)}getDurableObjectStorage(){return ae.Struct.getAs(lA,this)}initDurableObjectStorage(){return ae.Struct.getAs(lA,this)}getModuleFallback(){return ae.Struct.getText(9,this)}setModuleFallback(o){ae.Struct.setText(9,o,this)}toString(){return"Worker_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker=$1;$1.MODULES=kfe.MODULES;$1.SERVICE_WORKER_SCRIPT=kfe.SERVICE_WORKER_SCRIPT;$1.INHERIT=kfe.INHERIT;$1.Module=z1;$1.Binding=vf;$1.DurableObjectNamespace=RI;$1._capnp={displayName:"Worker",id:"acfa77e88fd97d1c",size:new ae.ObjectSize(8,10),defaultGlobalOutbound:ql.readRawPointer(new Uint8Array([16,5,64,2,17,5,74,0,0,255,105,110,116,101,114,110,101,116,0,0,0]).buffer)};var yj=class extends ae.Struct{static{t(this,"ExternalServer_Https")}adoptOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownOptions(){return ae.Struct.disown(this.getOptions())}getOptions(){return ae.Struct.getStruct(1,Ny,this)}hasOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initOptions(){return ae.Struct.initStructAt(1,Ny,this)}setOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(2,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initTlsOptions(){return ae.Struct.initStructAt(2,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}getCertificateHost(){return ae.Struct.getText(3,this)}setCertificateHost(o){ae.Struct.setText(3,o,this)}toString(){return"ExternalServer_Https_"+super.toString()}};ts.ExternalServer_Https=yj;yj._capnp={displayName:"https",id:"ac37e02afd3dc6db",size:new ae.ObjectSize(8,4)};var vj=class extends ae.Struct{static{t(this,"ExternalServer_Tcp")}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(1,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initTlsOptions(){return ae.Struct.initStructAt(1,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getCertificateHost(){return ae.Struct.getText(2,this)}setCertificateHost(o){ae.Struct.setText(2,o,this)}toString(){return"ExternalServer_Tcp_"+super.toString()}};ts.ExternalServer_Tcp=vj;vj._capnp={displayName:"tcp",id:"d941637df0fb39f1",size:new ae.ObjectSize(8,4)};var wfe;(function(s){s[s.HTTP=0]="HTTP",s[s.HTTPS=1]="HTTPS",s[s.TCP=2]="TCP"})(wfe=ts.ExternalServer_Which||(ts.ExternalServer_Which={}));var uA=class extends ae.Struct{static{t(this,"ExternalServer")}getAddress(){return ae.Struct.getText(0,this)}setAddress(o){ae.Struct.setText(0,o,this)}adoptHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownHttp(){return ae.Struct.disown(this.getHttp())}getHttp(){return ae.Struct.testWhich("http",ae.Struct.getUint16(0,this),0,this),ae.Struct.getStruct(1,Ny,this)}hasHttp(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initHttp(){return ae.Struct.setUint16(0,0,this),ae.Struct.initStructAt(1,Ny,this)}isHttp(){return ae.Struct.getUint16(0,this)===0}setHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getHttps(){return ae.Struct.testWhich("https",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(yj,this)}initHttps(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(yj,this)}isHttps(){return ae.Struct.getUint16(0,this)===1}setHttps(){ae.Struct.setUint16(0,1,this)}getTcp(){return ae.Struct.testWhich("tcp",ae.Struct.getUint16(0,this),2,this),ae.Struct.getAs(vj,this)}initTcp(){return ae.Struct.setUint16(0,2,this),ae.Struct.getAs(vj,this)}isTcp(){return ae.Struct.getUint16(0,this)===2}setTcp(){ae.Struct.setUint16(0,2,this)}toString(){return"ExternalServer_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.ExternalServer=uA;uA.HTTP=wfe.HTTP;uA.HTTPS=wfe.HTTPS;uA.TCP=wfe.TCP;uA._capnp={displayName:"ExternalServer",id:"ff209f9aa352f5a4",size:new ae.ObjectSize(8,4)};var bj=class s extends ae.Struct{static{t(this,"Network")}adoptAllow(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownAllow(){return ae.Struct.disown(this.getAllow())}getAllow(){return ae.Struct.getList(0,ql.TextList,this,s._capnp.defaultAllow)}hasAllow(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initAllow(o){return ae.Struct.initList(0,ql.TextList,o,this)}setAllow(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}adoptDeny(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDeny(){return ae.Struct.disown(this.getDeny())}getDeny(){return ae.Struct.getList(1,ql.TextList,this)}hasDeny(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDeny(o){return ae.Struct.initList(1,ql.TextList,o,this)}setDeny(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(2,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initTlsOptions(){return ae.Struct.initStructAt(2,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Network_"+super.toString()}};ts.Network=bj;bj._capnp={displayName:"Network",id:"fa42244f950c9b9c",size:new ae.ObjectSize(0,3),defaultAllow:ql.readRawPointer(new Uint8Array([16,3,17,1,14,17,1,58,63,112,117,98,108,105,99]).buffer)};var Sj=class s extends ae.Struct{static{t(this,"DiskDirectory")}getPath(){return ae.Struct.getText(0,this)}setPath(o){ae.Struct.setText(0,o,this)}getWritable(){return ae.Struct.getBit(0,this,s._capnp.defaultWritable)}setWritable(o){ae.Struct.setBit(0,o,this)}getAllowDotfiles(){return ae.Struct.getBit(1,this,s._capnp.defaultAllowDotfiles)}setAllowDotfiles(o){ae.Struct.setBit(1,o,this)}toString(){return"DiskDirectory_"+super.toString()}};ts.DiskDirectory=Sj;Sj._capnp={displayName:"DiskDirectory",id:"9048ab22835f51c3",size:new ae.ObjectSize(8,1),defaultWritable:ql.getBitMask(!1,0),defaultAllowDotfiles:ql.getBitMask(!1,1)};var dgt;(function(s){s[s.HOST=0]="HOST",s[s.PROXY=1]="PROXY"})(dgt=ts.HttpOptions_Style||(ts.HttpOptions_Style={}));var f7=class extends ae.Struct{static{t(this,"HttpOptions_Header")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getValue(){return ae.Struct.getText(1,this)}setValue(o){ae.Struct.setText(1,o,this)}toString(){return"HttpOptions_Header_"+super.toString()}};ts.HttpOptions_Header=f7;f7._capnp={displayName:"Header",id:"dc0394b5a6f3417e",size:new ae.ObjectSize(0,2)};var Ny=class s extends ae.Struct{static{t(this,"HttpOptions")}getStyle(){return ae.Struct.getUint16(0,this,s._capnp.defaultStyle)}setStyle(o){ae.Struct.setUint16(0,o,this)}getForwardedProtoHeader(){return ae.Struct.getText(0,this)}setForwardedProtoHeader(o){ae.Struct.setText(0,o,this)}getCfBlobHeader(){return ae.Struct.getText(1,this)}setCfBlobHeader(o){ae.Struct.setText(1,o,this)}adoptInjectRequestHeaders(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownInjectRequestHeaders(){return ae.Struct.disown(this.getInjectRequestHeaders())}getInjectRequestHeaders(){return ae.Struct.getList(2,s._InjectRequestHeaders,this)}hasInjectRequestHeaders(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initInjectRequestHeaders(o){return ae.Struct.initList(2,s._InjectRequestHeaders,o,this)}setInjectRequestHeaders(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptInjectResponseHeaders(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownInjectResponseHeaders(){return ae.Struct.disown(this.getInjectResponseHeaders())}getInjectResponseHeaders(){return ae.Struct.getList(3,s._InjectResponseHeaders,this)}hasInjectResponseHeaders(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initInjectResponseHeaders(o){return ae.Struct.initList(3,s._InjectResponseHeaders,o,this)}setInjectResponseHeaders(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}getCapnpConnectHost(){return ae.Struct.getText(4,this)}setCapnpConnectHost(o){ae.Struct.setText(4,o,this)}toString(){return"HttpOptions_"+super.toString()}};ts.HttpOptions=Ny;Ny.Style=dgt;Ny.Header=f7;Ny._capnp={displayName:"HttpOptions",id:"aa8dc6885da78f19",size:new ae.ObjectSize(8,5),defaultStyle:ql.getUint16Mask(0)};var _7=class extends ae.Struct{static{t(this,"TlsOptions_Keypair")}getPrivateKey(){return ae.Struct.getText(0,this)}setPrivateKey(o){ae.Struct.setText(0,o,this)}getCertificateChain(){return ae.Struct.getText(1,this)}setCertificateChain(o){ae.Struct.setText(1,o,this)}toString(){return"TlsOptions_Keypair_"+super.toString()}};ts.TlsOptions_Keypair=_7;_7._capnp={displayName:"Keypair",id:"f546bf2d5d8bd13e",size:new ae.ObjectSize(0,2)};var mgt;(function(s){s[s.GOOD_DEFAULT=0]="GOOD_DEFAULT",s[s.SSL3=1]="SSL3",s[s.TLS1DOT0=2]="TLS1DOT0",s[s.TLS1DOT1=3]="TLS1DOT1",s[s.TLS1DOT2=4]="TLS1DOT2",s[s.TLS1DOT3=5]="TLS1DOT3"})(mgt=ts.TlsOptions_Version||(ts.TlsOptions_Version={}));var ab=class s extends ae.Struct{static{t(this,"TlsOptions")}adoptKeypair(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownKeypair(){return ae.Struct.disown(this.getKeypair())}getKeypair(){return ae.Struct.getStruct(0,_7,this)}hasKeypair(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initKeypair(){return ae.Struct.initStructAt(0,_7,this)}setKeypair(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getRequireClientCerts(){return ae.Struct.getBit(0,this,s._capnp.defaultRequireClientCerts)}setRequireClientCerts(o){ae.Struct.setBit(0,o,this)}getTrustBrowserCas(){return ae.Struct.getBit(1,this,s._capnp.defaultTrustBrowserCas)}setTrustBrowserCas(o){ae.Struct.setBit(1,o,this)}adoptTrustedCertificates(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownTrustedCertificates(){return ae.Struct.disown(this.getTrustedCertificates())}getTrustedCertificates(){return ae.Struct.getList(1,ql.TextList,this)}hasTrustedCertificates(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initTrustedCertificates(o){return ae.Struct.initList(1,ql.TextList,o,this)}setTrustedCertificates(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getMinVersion(){return ae.Struct.getUint16(2,this,s._capnp.defaultMinVersion)}setMinVersion(o){ae.Struct.setUint16(2,o,this)}getCipherList(){return ae.Struct.getText(2,this)}setCipherList(o){ae.Struct.setText(2,o,this)}toString(){return"TlsOptions_"+super.toString()}};ts.TlsOptions=ab;ab.Keypair=_7;ab.Version=mgt;ab._capnp={displayName:"TlsOptions",id:"aabb3c3778ac4311",size:new ae.ObjectSize(8,3),defaultRequireClientCerts:ql.getBitMask(!1,0),defaultTrustBrowserCas:ql.getBitMask(!1,1),defaultMinVersion:ql.getUint16Mask(0)};var Tj=class s extends ae.Struct{static{t(this,"Extension_Module")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getInternal(){return ae.Struct.getBit(0,this,s._capnp.defaultInternal)}setInternal(o){ae.Struct.setBit(0,o,this)}getEsModule(){return ae.Struct.getText(1,this)}setEsModule(o){ae.Struct.setText(1,o,this)}toString(){return"Extension_Module_"+super.toString()}};ts.Extension_Module=Tj;Tj._capnp={displayName:"Module",id:"d5d16e76fdedc37d",size:new ae.ObjectSize(8,2),defaultInternal:ql.getBitMask(!1,0)};var p7=class s extends ae.Struct{static{t(this,"Extension")}adoptModules(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownModules(){return ae.Struct.disown(this.getModules())}getModules(){return ae.Struct.getList(0,s._Modules,this)}hasModules(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initModules(o){return ae.Struct.initList(0,s._Modules,o,this)}setModules(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}toString(){return"Extension_"+super.toString()}};ts.Extension=p7;p7.Module=Tj;p7._capnp={displayName:"Extension",id:"e390128a861973a6",size:new ae.ObjectSize(0,1)};o7._Services=ql.CompositeList(iw);o7._Sockets=ql.CompositeList(c7);o7._Extensions=ql.CompositeList(p7);LI._InnerBindings=ql.CompositeList(vf);$1._Modules=ql.CompositeList(z1);$1._Bindings=ql.CompositeList(vf);$1._DurableObjectNamespaces=ql.CompositeList(RI);Ny._InjectRequestHeaders=ql.CompositeList(f7);Ny._InjectResponseHeaders=ql.CompositeList(f7);p7._Modules=ql.CompositeList(Tj)});var E8e=ar(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.kVoid=aw.Worker_Binding_CryptoKey_Usage=aw.TlsOptions_Version=aw.HttpOptions_Style=void 0;var x8e=T8e();Object.defineProperty(aw,"HttpOptions_Style",{enumerable:!0,get:t(function(){return x8e.HttpOptions_Style},"get")});Object.defineProperty(aw,"TlsOptions_Version",{enumerable:!0,get:t(function(){return x8e.TlsOptions_Version},"get")});Object.defineProperty(aw,"Worker_Binding_CryptoKey_Usage",{enumerable:!0,get:t(function(){return x8e.Worker_Binding_CryptoKey_Usage},"get")});aw.kVoid=Symbol("kVoid")});var k8e=ar(MI=>{"use strict";var Z1r=MI&&MI.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Q1r=MI&&MI.__exportStar||function(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&Z1r(o,s,f)};Object.defineProperty(MI,"__esModule",{value:!0});MI.serializeConfig=ivr;var evr=Efe(),tvr=E8e(),rvr=T8e();function nvr(s){return s.length>0?s[0].toUpperCase()+s.substring(1):s}t(nvr,"capitalize");function C8e(s,o){let f=o;for(let[d,y]of Object.entries(s)){let x=nvr(d);if(y instanceof Uint8Array)f[`init${x}`](y.byteLength).copyBuffer(y);else if(Array.isArray(y)){let P=f[`init${x}`](y.length);for(let F=0;F<y.length;F++)typeof y[F]=="object"?C8e(y[F],P.get(F)):P.set(F,y[F])}else if(typeof y=="object"){let P=f[`init${x}`]();C8e(y,P)}else y===tvr.kVoid?f[`set${x}`]():y!==void 0&&f[`set${x}`](y)}}t(C8e,"encodeCapnpStruct");function ivr(s){let o=new evr.Message,f=o.initRoot(rvr.Config);return C8e(s,f),Buffer.from(o.toArrayBuffer())}t(ivr,"serializeConfig");Q1r(E8e(),MI)});var xgt=ar(Xm=>{"use strict";var Sgt=Xm&&Xm.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),svr=Xm&&Xm.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),avr=Xm&&Xm.__importStar||(function(){var s=t(function(o){return s=Object.getOwnPropertyNames||function(f){var d=[];for(var y in f)Object.prototype.hasOwnProperty.call(f,y)&&(d[d.length]=y);return d},s(o)},"ownKeys");return function(o){if(o&&o.__esModule)return o;var f={};if(o!=null)for(var d=s(o),y=0;y<d.length;y++)d[y]!=="default"&&Sgt(f,o,d[y]);return svr(f,o),f}})(),ovr=Xm&&Xm.__exportStar||function(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&Sgt(o,s,f)},A8e=Xm&&Xm.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.supportedCompatibilityDate=Xm.Runtime=Xm.kInspectorSocket=void 0;var cvr=A8e(uo("node:assert")),hgt=A8e(uo("node:child_process")),w8e=uo("node:events"),ggt=uo("node:fs"),D8e=A8e(uo("node:readline")),lvr=uo("node:stream"),Tgt=avr(uo("workerd"));Object.defineProperty(Xm,"supportedCompatibilityDate",{enumerable:!0,get:t(function(){return Tgt.compatibilityDate},"get")});var ygt=tdt();Xm.kInspectorSocket=Symbol("kInspectorSocket");async function uvr(s,o){if(o?.signal?.aborted)return;let f=D8e.default.createInterface(s),d=t(()=>f.close(),"abortListener");o?.signal?.addEventListener("abort",d,{once:!0});let y=Array.from(o.requiredSockets),x=new Map;try{for await(let P of f){let F=JSON.parse(P),W=F.event==="listen-inspector"?Xm.kInspectorSocket:F.socket,G=y.indexOf(W);if(G!==-1&&(x.set(W,F.port),y.splice(G,1),y.length===0))return x}}finally{o?.signal?.removeEventListener("abort",d)}}t(uvr,"waitForPorts");function vgt(s){return new Promise(o=>{s.once("exit",()=>o())})}t(vgt,"waitForExit");function fvr(s,o){D8e.default.createInterface(s).on("line",f=>console.log(f)),D8e.default.createInterface(o).on("line",f=>console.error(f))}t(fvr,"pipeOutput");function bgt(){return Tgt.default}t(bgt,"getRuntimeCommand");function _vr(s){let o=["serve","--binary","--experimental","--control-fd=3","-"];return s.inspectorAddress!==void 0&&o.push(`--inspector-addr=localhost:${s.inspectorAddress}`),s.verbose&&o.push("--verbose"),o}t(_vr,"getServeArgs");function pvr(s){let o=["compile","--binary","-"];return s.verbose&&o.push("--verbose"),o}t(pvr,"getCompileArgs");var P8e=class{static{t(this,"Runtime")}process;processExitPromise;detachParentCleanup;async updateConfig(o,f){await this.dispose();let d=bgt(),y=_vr(f),P=hgt.default.spawn(d,y,{stdio:["pipe","pipe","pipe","pipe"],env:{...process.env,FORCE_COLOR:"1"}});this.process=P,this.processExitPromise=vgt(P),this.detachParentCleanup?.(),this.detachParentCleanup=(0,ygt.attachChildCleanup)(P),(f.handleRuntimeStdio??fvr)(P.stdout,P.stderr);let W=P.stdio[3];return(0,cvr.default)(W instanceof lvr.Readable),P.stdin.write(o),P.stdin.end(),await(0,w8e.once)(P.stdin,"finish"),uvr(W,f)}async compileBinary(o,f){await this.dispose();let d=bgt(),y=pvr(f),x=hgt.default.spawn(d,y,{stdio:["pipe","pipe","pipe"],env:{...process.env}});this.process=x,this.processExitPromise=vgt(x),this.detachParentCleanup?.(),this.detachParentCleanup=(0,ygt.attachChildCleanup)(x),x.stdin.write(o),x.stdin.end(),await(0,w8e.once)(x.stdin,"finish");let P=(0,ggt.createWriteStream)(f.binaryPath);x.stdout.pipe(P),await(0,w8e.once)(x.stdout,"finish"),(0,ggt.chmodSync)(f.binaryPath,493),await this.dispose()}dispose(){return this.detachParentCleanup?.(),this.detachParentCleanup=void 0,this.process?.kill("SIGKILL"),this.processExitPromise}};Xm.Runtime=P8e;ovr(k8e(),Xm)});var Egt=ar(Dfe=>{"use strict";Object.defineProperty(Dfe,"__esModule",{value:!0});Dfe.ZUPLO_CACHE_EXTENSION=void 0;Dfe.ZUPLO_CACHE_EXTENSION='var D=Object.defineProperty;var s=(e,t)=>D(e,"name",{value:t,configurable:!0});import{Buffer as B}from"node:buffer";var f={AGE:"age",NAMESPACE:"cf-cache-namespace",STATUS:"cf-cache-status"};import{connect as k}from"cloudflare:sockets";var U="*",_="$",G=U.charCodeAt(0),v=124,M=40,W=33,$=35,j=_.charCodeAt(0),K=44,Z=45,V=58,J=37,Y=95,Q=62,z=126,q=43,ee=61,g=new TextEncoder,E=new TextDecoder,S=`\\r\n`,x=g.encode(S),m=class{static{s(this,"MinimalRedisClient")}socket;reader;writer;constructor(t){this.socket=k({hostname:t.redisHost,port:t.redisPort},{secureTransport:"starttls",allowHalfOpen:!0}),this.reader=this.socket.readable.getReader(),this.writer=this.socket.writable.getWriter()}async sendCommand(t,n=!1){return await ye(this.reader,this.writer,t,n)}};function L(e){let t=0;for(let a of e)t+=a.length;let n=new Uint8Array(t),r=0;for(let a of e)n.set(a,r),r+=a.length;return n}s(L,"concat");function te(e){let t=[g.encode(U+e.length+S)];for(let n of e){let r=n instanceof Uint8Array?n:g.encode(n.toString());t.push(g.encode(_+r.byteLength+S)),t.push(r),t.push(x)}return L(t)}s(te,"createRequest");async function ne(e,t){let n=te(t);await e.write(n)}s(ne,"writeCommand");function A(e){return E.decode(e.slice(1))}s(A,"removePrefix");function re(e){return Object.fromEntries(fe(e,2))}s(re,"toObject");async function O(e,t,n=!1){let r=[];for(let a=0;a<e;a++)r.push(await P(t,n));return r}s(O,"readNReplies");async function H(e,t){let n=I(e);return n===-1?null:await O(n,t)}s(H,"readArray");async function ae(e,t,n=!1){return await N(e,t),await P(t,n)}s(ae,"readAttribute");function se(e){return BigInt(A(e))}s(se,"readBigNumber");async function oe(e){let{value:t}=await e.next();return await Promise.reject(E.decode(t))}s(oe,"readBlobError");function ce(e){return A(e)==="t"}s(ce,"readBoolean");async function ie(e,t,n=!1){if(I(e)===-1)return null;let{value:r}=await t.next();return n?r:E.decode(r)}s(ie,"readBulkOrVerbatimString");async function ue(e){return await Promise.reject(A(e))}s(ue,"readError");async function N(e,t){let n=I(e)*2,r=await O(n,t);return re(r)}s(N,"readMap");function I(e){let t=A(e);switch(t){case"inf":return 1/0;case"-inf":return-1/0;default:return Number(t)}}s(I,"readNumberOrDouble");async function le(e,t){return new Set(await H(e,t))}s(le,"readSet");function de(e){return A(e)}s(de,"readSimpleString");async function P(e,t=!1){let{value:n}=await e.next();if(n.length===0)return await Promise.reject(new TypeError("No reply received"));switch(n[0]){case G:case Q:return await H(n,e);case v:return await ae(n,e);case M:return se(n);case W:return oe(e);case $:return ce(n);case j:case ee:return await ie(n,e,t);case K:case V:return I(n);case Z:return ue(n);case J:return await N(n,e);case Y:return null;case z:return await le(n,e);case q:return de(n);default:return E.decode(n)}}s(P,"readReply");async function ye(e,t,n,r=!1){return await ne(t,n),await P(he(e,x),r)}s(ye,"sendCommand");function fe(e,t){if(t<=0||!Number.isInteger(t))throw new Error(`Expected size to be an integer greater than 0 but found ${t}`);if(e.length===0)return[];let n=Array.from({length:Math.ceil(e.length/t)}),r=0,a=0;for(;r<e.length;)n[a]=e.slice(r,r+t),a+=1,r+=t;return n}s(fe,"chunk");function Re(e){let t=new Uint8Array(e.length);t[0]=0;let n=0,r=1;for(;r<t.length;)e[r]===e[n]?(n++,t[r]=n,r++):n===0?(t[r]=0,r++):n=t[n-1];return t}s(Re,"createLPS");async function*he(e,t){let n=t.length,r=Re(t),a=new Uint8Array,o=0,c=0;for(;;){let{value:i,done:d}=await e.read();if(d){yield a;return}a=L([a,i]);let l=0;for(;o<a.length;)if(i[l]===t[c]){if(o++,l++,c++,c===n){let y=o-n;yield a.slice(0,y),a=a.slice(o),o=0,c=0}}else c===0?(o++,l++):c=r[c-1]}}s(he,"readDelim");var F=13,X=10,me=/^HTTP\\/\\d(?:\\.\\d)? (?<rawStatusCode>\\d+) (?<statusText>.*)$/;async function Ae(e){let t=B.alloc(0),n=-1;for await(let h of e.values({preventCancel:!0}))if(t=B.concat([t,h]),n=t.findIndex((b,w)=>t[w]===F&&t[w+1]===X&&t[w+2]===F&&t[w+3]===X),n!==-1)break;let r=t.subarray(0,n).toString(),[a,...o]=r.split(`\\r\n`),c=a.match(me),{rawStatusCode:i,statusText:d}=c.groups,l=parseInt(i,10),y=o.map(h=>{let b=h.indexOf(":");return[h.substring(0,b),h.substring(b+1).trim()]}),u=t.subarray(n+4),{readable:p,writable:R}=new IdentityTransformStream,C=R.getWriter();return C.write(u).then(()=>(C.releaseLock(),e.pipeTo(R))).catch(h=>{}),new Response(p,{status:l,statusText:d,headers:y})}s(Ae,"parseHttpResponse");function T(e){let t=e.headers.get(f.NAMESPACE)??"default";return e.cf?.cacheKey?`${t}:${String(e.cf?.cacheKey)}`:`${t}:${e.url}`}s(T,"getCacheKey");function pe(e){let t={};return e&&e.split(",").forEach(r=>{let[a,o]=r.trim().split("=");t[a.toLowerCase()]=o?o.trim():!0}),t}s(pe,"parseHeaderValue");function we(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}s(we,"objectifyHeaders");async function ge(e){let t=await e.arrayBuffer(),n=new Uint8Array(t),r="";for(let a=0;a<n.length;a++)r+=String.fromCharCode(n[a]);return btoa(r)}s(ge,"serializeResponseBody");function Ee(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r}s(Ee,"deserializeResponseBody");async function Ie(e){return e.method==="GET"?new Response(null,{status:504,headers:{[f.STATUS]:"MISS"}}):e.method==="PUT"?(await e.body?.pipeTo(new WritableStream),new Response(null,{status:204})):e.method==="PURGE"?new Response(null,{status:404}):new Response(null,{status:405})}s(Ie,"handleWithNoOp");async function be(e,t){let n=t.ZUPLO_CACHE_REDIS_HOSTNAME,r=parseInt(t.ZUPLO_CACHE_REDIS_PORT,10);if(e.method==="GET")try{let a=T(e),o=new m({redisHost:n,redisPort:r});await o.sendCommand(["HELLO",3]);let c=await o.sendCommand(["TTL",a]);if(c===-2)return new Response(null,{status:504,headers:{[f.STATUS]:"MISS"}});if(c<2)return new Response(null,{status:504,headers:{[f.STATUS]:"EXPIRE"}});{let i=await o.sendCommand(["HGETALL",a]),d=parseInt(i.maxage,10),l=i.status,y=i.status,u=new Headers(JSON.parse(i.headers));return u.set(f.AGE,`${d-c}`),u.set(f.STATUS,"HIT"),new Response(Ee(i.body),{status:l,statusText:y,headers:u})}}catch(a){return new Response(`Error on GET from cache: ${a}`,{status:500})}else if(e.method==="PUT")try{let o=await Ae(e.body),c=pe(o.headers.get("cache-control")),i=parseInt(c["s-maxage"],10),d=parseInt(c["max-age"],10),l=c["no-store"],y=c["no-cache"],u=i||d||0;if(u===0&&!l&&!y&&(u=3600,o.headers.append("cache-control","s-maxage=3600")),u>0){let p=T(e),R=new m({redisHost:n,redisPort:r});return await R.sendCommand(["HELLO",3]),await R.sendCommand(["HSET",p,"maxage",u,"status",o.status,"statusText",o.statusText,"headers",JSON.stringify(we(o.headers)),"body",await ge(o)]),await R.sendCommand(["EXPIRE",p,u]),new Response(null,{status:204})}else return new Response(null,{status:413})}catch(a){return new Response(`Error on PUT to cache: ${a}`,{status:413})}else if(e.method==="PURGE")try{let a=T(e);return await new m({redisHost:n,redisPort:r}).sendCommand(["DEL",a])===1?new Response(null,{status:200}):new Response(null,{status:404})}catch(a){return new Response(`Error on PURGE to cache: ${a}`,{status:404})}else return new Response(null,{status:405})}s(be,"handleWithRedis");var Oe={async fetch(e,t){return t.ZUPLO_CACHE_REDIS_HOSTNAME&&t.ZUPLO_CACHE_REDIS_PORT?be(e,t):Ie(e)}};export{Oe as default};\n'});var I8e=ar(Ej=>{"use strict";var dvr=Ej&&Ej.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ej,"__esModule",{value:!0});Ej.ZuploWorkerd=void 0;var mvr=uo("node:fs"),hvr=dvr(uo("node:path")),gvr=uo("node:url"),yvr=xgt(),Cgt=k8e(),vvr=Egt(),kgt="2024-12-30",N8e=class{static{t(this,"ZuploWorkerd")}options;runtime;constructor(o){this.options=o,this.runtime=new yvr.Runtime}async serve(){let o=await this.configure(),f=(0,Cgt.serializeConfig)(o),d={requiredSockets:["http"],inspectorAddress:this.options.inspectorPort,handleRuntimeStdio:this.options.handleRuntimeStdio};await this.runtime.updateConfig(f,d)}async compileBinary(o){let f=await this.configure({embedVariables:!1}),d=(0,Cgt.serializeConfig)(f);await this.runtime.compileBinary(d,o)}async dispose(){await this.runtime.dispose()}withSourceURL(o,f){if(o.lastIndexOf("//# sourceURL=")!==-1)return o;let y=`
560
560
  //# sourceURL=${(0,gvr.pathToFileURL)(f)}
561
- `;return o+y}async configure(o={embedVariables:!0}){let f=this.options.compatibilityDate??"2024-09-02";if(new Date(f)>new Date(kgt)&&(f=kgt),this.options.modules.length===0)throw new Error("No modules provided. Cannot run local dev server.");let d=this.options.modules.filter(P=>!P.endsWith(".js.map")).map(P=>{let F=hvr.default.join(this.options.scriptDirectory,P),W=(0,mvr.readFileSync)(F,"utf8"),G=this.withSourceURL(W,F);return{name:P,esModule:G}}).sort(P=>P.name==="./worker.js"?-1:1),y;o.embedVariables?y=Object.entries(this.options.bindings).map(([P,F])=>({name:P,json:JSON.stringify(F)})):y=Object.entries(this.options.bindings).map(([P])=>({name:P,fromEnvironment:P}));let x;return o.embedVariables?x=Object.entries(this.options.bindings).filter(([P])=>P.startsWith("ZUPLO_CACHE")).map(([P,F])=>({name:P,json:JSON.stringify(F)})):x=Object.entries(this.options.bindings).filter(([P])=>P.startsWith("ZUPLO_CACHE")).map(([P])=>({name:P,fromEnvironment:P})),{services:[{name:"zuplo-entry",worker:{modules:d,compatibilityDate:f,compatibilityFlags:["nodejs_compat"],bindings:y,cacheApiOutbound:{name:"zuplo-cache-extension"}}},{name:"zuplo-cache-extension",worker:{modules:[{name:"zuplo-cache-extension.js",esModule:vvr.ZUPLO_CACHE_EXTENSION}],bindings:x,compatibilityDate:f,compatibilityFlags:["nodejs_compat"]}},{name:"internet",network:{allow:["public","private"],deny:[],tlsOptions:{trustBrowserCas:!0,trustedCertificates:[]}}}],sockets:[{name:"http",address:`*:${this.options.port}`,http:{},service:{name:"zuplo-entry"}}]}}};Ej.ZuploWorkerd=N8e});var Ngt=ar((vRr,Agt)=>{Agt.exports=Pgt;Pgt.sync=Svr;var wgt=uo("fs");function bvr(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var d=0;d<f.length;d++){var y=f[d].toLowerCase();if(y&&s.substr(-y.length).toLowerCase()===y)return!0}return!1}t(bvr,"checkPathExt");function Dgt(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:bvr(o,f)}t(Dgt,"checkStat");function Pgt(s,o,f){wgt.stat(s,function(d,y){f(d,d?!1:Dgt(y,s,o))})}t(Pgt,"isexe");function Svr(s,o){return Dgt(wgt.statSync(s),s,o)}t(Svr,"sync")});var Rgt=ar((SRr,Lgt)=>{Lgt.exports=Ogt;Ogt.sync=Tvr;var Igt=uo("fs");function Ogt(s,o,f){Igt.stat(s,function(d,y){f(d,d?!1:Fgt(y,o))})}t(Ogt,"isexe");function Tvr(s,o){return Fgt(Igt.statSync(s),o)}t(Tvr,"sync");function Fgt(s,o){return s.isFile()&&xvr(s,o)}t(Fgt,"checkStat");function xvr(s,o){var f=s.mode,d=s.uid,y=s.gid,x=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),P=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),F=parseInt("100",8),W=parseInt("010",8),G=parseInt("001",8),be=F|W,de=f&G||f&W&&y===P||f&F&&d===x||f&be&&x===0;return de}t(xvr,"checkMode")});var jgt=ar((ERr,Mgt)=>{var xRr=uo("fs"),Pfe;process.platform==="win32"||global.TESTING_WINDOWS?Pfe=Ngt():Pfe=Rgt();Mgt.exports=O8e;O8e.sync=Evr;function O8e(s,o,f){if(typeof o=="function"&&(f=o,o={}),!f){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(d,y){O8e(s,o||{},function(x,P){x?y(x):d(P)})})}Pfe(s,o||{},function(d,y){d&&(d.code==="EACCES"||o&&o.ignoreErrors)&&(d=null,y=!1),f(d,y)})}t(O8e,"isexe");function Evr(s,o){try{return Pfe.sync(s,o||{})}catch(f){if(o&&o.ignoreErrors||f.code==="EACCES")return!1;throw f}}t(Evr,"sync")});var qgt=ar((kRr,Wgt)=>{var Cj=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Bgt=uo("path"),Cvr=Cj?";":":",Ugt=jgt(),zgt=t(s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),"getNotFoundError"),$gt=t((s,o)=>{let f=o.colon||Cvr,d=s.match(/\//)||Cj&&s.match(/\\/)?[""]:[...Cj?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(f)],y=Cj?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",x=Cj?y.split(f):[""];return Cj&&s.indexOf(".")!==-1&&x[0]!==""&&x.unshift(""),{pathEnv:d,pathExt:x,pathExtExe:y}},"getPathInfo"),Jgt=t((s,o,f)=>{typeof o=="function"&&(f=o,o={}),o||(o={});let{pathEnv:d,pathExt:y,pathExtExe:x}=$gt(s,o),P=[],F=t(G=>new Promise((be,de)=>{if(G===d.length)return o.all&&P.length?be(P):de(zgt(s));let se=d[G],Xe=/^".*"$/.test(se)?se.slice(1,-1):se,Ue=Bgt.join(Xe,s),je=!Xe&&/^\.[\\\/]/.test(s)?s.slice(0,2)+Ue:Ue;be(W(je,G,0))}),"step"),W=t((G,be,de)=>new Promise((se,Xe)=>{if(de===y.length)return se(F(be+1));let Ue=y[de];Ugt(G+Ue,{pathExt:x},(je,Vt)=>{if(!je&&Vt)if(o.all)P.push(G+Ue);else return se(G+Ue);return se(W(G,be,de+1))})}),"subStep");return f?F(0).then(G=>f(null,G),f):F(0)},"which"),kvr=t((s,o)=>{o=o||{};let{pathEnv:f,pathExt:d,pathExtExe:y}=$gt(s,o),x=[];for(let P=0;P<f.length;P++){let F=f[P],W=/^".*"$/.test(F)?F.slice(1,-1):F,G=Bgt.join(W,s),be=!W&&/^\.[\\\/]/.test(s)?s.slice(0,2)+G:G;for(let de=0;de<d.length;de++){let se=be+d[de];try{if(Ugt.sync(se,{pathExt:y}))if(o.all)x.push(se);else return se}catch{}}}if(o.all&&x.length)return x;if(o.nothrow)return null;throw zgt(s)},"whichSync");Wgt.exports=Jgt;Jgt.sync=kvr});var Hgt=ar((DRr,F8e)=>{"use strict";var Vgt=t((s={})=>{let o=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"},"pathKey");F8e.exports=Vgt;F8e.exports.default=Vgt});var Xgt=ar((ARr,Kgt)=>{"use strict";var Ggt=uo("path"),wvr=qgt(),Dvr=Hgt();function Ygt(s,o){let f=s.options.env||process.env,d=process.cwd(),y=s.options.cwd!=null,x=y&&process.chdir!==void 0&&!process.chdir.disabled;if(x)try{process.chdir(s.options.cwd)}catch{}let P;try{P=wvr.sync(s.command,{path:f[Dvr({env:f})],pathExt:o?Ggt.delimiter:void 0})}catch{}finally{x&&process.chdir(d)}return P&&(P=Ggt.resolve(y?s.options.cwd:"",P)),P}t(Ygt,"resolveCommandAttempt");function Pvr(s){return Ygt(s)||Ygt(s,!0)}t(Pvr,"resolveCommand");Kgt.exports=Pvr});var Zgt=ar((IRr,R8e)=>{"use strict";var L8e=/([()\][%!^"`<>&|;, *?])/g;function Avr(s){return s=s.replace(L8e,"^$1"),s}t(Avr,"escapeCommand");function Nvr(s,o){return s=`${s}`,s=s.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),s=s.replace(/(?=(\\+?)?)\1$/,"$1$1"),s=`"${s}"`,s=s.replace(L8e,"^$1"),o&&(s=s.replace(L8e,"^$1")),s}t(Nvr,"escapeArgument");R8e.exports.command=Avr;R8e.exports.argument=Nvr});var e0t=ar((FRr,Qgt)=>{"use strict";Qgt.exports=/^#!(.*)/});var r0t=ar((LRr,t0t)=>{"use strict";var Ivr=e0t();t0t.exports=(s="")=>{let o=s.match(Ivr);if(!o)return null;let[f,d]=o[0].replace(/#! ?/,"").split(" "),y=f.split("/").pop();return y==="env"?d:d?`${y} ${d}`:y}});var i0t=ar((RRr,n0t)=>{"use strict";var M8e=uo("fs"),Ovr=r0t();function Fvr(s){let f=Buffer.alloc(150),d;try{d=M8e.openSync(s,"r"),M8e.readSync(d,f,0,150,0),M8e.closeSync(d)}catch{}return Ovr(f.toString())}t(Fvr,"readShebang");n0t.exports=Fvr});var c0t=ar((jRr,o0t)=>{"use strict";var Lvr=uo("path"),s0t=Xgt(),a0t=Zgt(),Rvr=i0t(),Mvr=process.platform==="win32",jvr=/\.(?:com|exe)$/i,Bvr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Uvr(s){s.file=s0t(s);let o=s.file&&Rvr(s.file);return o?(s.args.unshift(s.file),s.command=o,s0t(s)):s.file}t(Uvr,"detectShebang");function zvr(s){if(!Mvr)return s;let o=Uvr(s),f=!jvr.test(o);if(s.options.forceShell||f){let d=Bvr.test(o);s.command=Lvr.normalize(s.command),s.command=a0t.command(s.command),s.args=s.args.map(x=>a0t.argument(x,d));let y=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${y}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}t(zvr,"parseNonShell");function $vr(s,o,f){o&&!Array.isArray(o)&&(f=o,o=null),o=o?o.slice(0):[],f=Object.assign({},f);let d={command:s,args:o,options:f,file:void 0,original:{command:s,args:o}};return f.shell?d:zvr(d)}t($vr,"parse");o0t.exports=$vr});var f0t=ar((URr,u0t)=>{"use strict";var j8e=process.platform==="win32";function B8e(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}t(B8e,"notFoundError");function Jvr(s,o){if(!j8e)return;let f=s.emit;s.emit=function(d,y){if(d==="exit"){let x=l0t(y,o);if(x)return f.call(s,"error",x)}return f.apply(s,arguments)}}t(Jvr,"hookChildProcess");function l0t(s,o){return j8e&&s===1&&!o.file?B8e(o.original,"spawn"):null}t(l0t,"verifyENOENT");function Wvr(s,o){return j8e&&s===1&&!o.file?B8e(o.original,"spawnSync"):null}t(Wvr,"verifyENOENTSync");u0t.exports={hookChildProcess:Jvr,verifyENOENT:l0t,verifyENOENTSync:Wvr,notFoundError:B8e}});var d0t=ar(($Rr,kj)=>{"use strict";var _0t=uo("child_process"),U8e=c0t(),z8e=f0t();function p0t(s,o,f){let d=U8e(s,o,f),y=_0t.spawn(d.command,d.args,d.options);return z8e.hookChildProcess(y,d),y}t(p0t,"spawn");function qvr(s,o,f){let d=U8e(s,o,f),y=_0t.spawnSync(d.command,d.args,d.options);return y.error=y.error||z8e.verifyENOENTSync(y.status,d),y}t(qvr,"spawnSync");kj.exports=p0t;kj.exports.spawn=p0t;kj.exports.sync=qvr;kj.exports._parse=U8e;kj.exports._enoent=z8e});var E0t=ar((E9r,Ffe)=>{Ffe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ffe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ffe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var P0t=ar((C9r,Pj)=>{var Zp=global.process,m7=t(function(s){return s&&typeof s=="object"&&typeof s.removeListener=="function"&&typeof s.emit=="function"&&typeof s.reallyExit=="function"&&typeof s.listeners=="function"&&typeof s.kill=="function"&&typeof s.pid=="number"&&typeof s.on=="function"},"processOk");m7(Zp)?(C0t=uo("assert"),wj=E0t(),k0t=/^win/i.test(Zp.platform),xG=uo("events"),typeof xG!="function"&&(xG=xG.EventEmitter),Zp.__signal_exit_emitter__?Bg=Zp.__signal_exit_emitter__:(Bg=Zp.__signal_exit_emitter__=new xG,Bg.count=0,Bg.emitted={}),Bg.infinite||(Bg.setMaxListeners(1/0),Bg.infinite=!0),Pj.exports=function(s,o){if(!m7(global.process))return function(){};C0t.equal(typeof s,"function","a callback must be provided for exit handler"),Dj===!1&&H8e();var f="exit";o&&o.alwaysLast&&(f="afterexit");var d=t(function(){Bg.removeListener(f,s),Bg.listeners("exit").length===0&&Bg.listeners("afterexit").length===0&&Lfe()},"remove");return Bg.on(f,s),d},Lfe=t(function(){!Dj||!m7(global.process)||(Dj=!1,wj.forEach(function(o){try{Zp.removeListener(o,Rfe[o])}catch{}}),Zp.emit=Mfe,Zp.reallyExit=G8e,Bg.count-=1)},"unload"),Pj.exports.unload=Lfe,h7=t(function(o,f,d){Bg.emitted[o]||(Bg.emitted[o]=!0,Bg.emit(o,f,d))},"emit"),Rfe={},wj.forEach(function(s){Rfe[s]=t(function(){if(m7(global.process)){var f=Zp.listeners(s);f.length===Bg.count&&(Lfe(),h7("exit",null,s),h7("afterexit",null,s),k0t&&s==="SIGHUP"&&(s="SIGINT"),Zp.kill(Zp.pid,s))}},"listener")}),Pj.exports.signals=function(){return wj},Dj=!1,H8e=t(function(){Dj||!m7(global.process)||(Dj=!0,Bg.count+=1,wj=wj.filter(function(o){try{return Zp.on(o,Rfe[o]),!0}catch{return!1}}),Zp.emit=D0t,Zp.reallyExit=w0t)},"load"),Pj.exports.load=H8e,G8e=Zp.reallyExit,w0t=t(function(o){m7(global.process)&&(Zp.exitCode=o||0,h7("exit",Zp.exitCode,null),h7("afterexit",Zp.exitCode,null),G8e.call(Zp,Zp.exitCode))},"processReallyExit"),Mfe=Zp.emit,D0t=t(function(o,f){if(o==="exit"&&m7(global.process)){f!==void 0&&(Zp.exitCode=f);var d=Mfe.apply(this,arguments);return h7("exit",Zp.exitCode,null),h7("afterexit",Zp.exitCode,null),d}else return Mfe.apply(this,arguments)},"processEmit")):Pj.exports=function(){return function(){}};var C0t,wj,k0t,xG,Bg,Lfe,h7,Rfe,Dj,H8e,G8e,w0t,Mfe,D0t});var j0t=ar((I9r,M0t)=>{"use strict";var{PassThrough:bbr}=uo("stream");M0t.exports=s=>{s={...s};let{array:o}=s,{encoding:f}=s,d=f==="buffer",y=!1;o?y=!(f||d):f=f||"utf8",d&&(f=null);let x=new bbr({objectMode:y});f&&x.setEncoding(f);let P=0,F=[];return x.on("data",W=>{F.push(W),y?P=F.length:P+=W.length}),x.getBufferedValue=()=>o?F:d?Buffer.concat(F,P):F.join(""),x.getBufferedLength=()=>P,x}});var B0t=ar((O9r,EG)=>{"use strict";var{constants:Sbr}=uo("buffer"),Tbr=uo("stream"),{promisify:xbr}=uo("util"),Ebr=j0t(),Cbr=xbr(Tbr.pipeline),jfe=class extends Error{static{t(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Y8e(s,o){if(!s)throw new Error("Expected a stream");o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,d=Ebr(o);return await new Promise((y,x)=>{let P=t(F=>{F&&d.getBufferedLength()<=Sbr.MAX_LENGTH&&(F.bufferedData=d.getBufferedValue()),x(F)},"rejectPromise");(async()=>{try{await Cbr(s,d),y()}catch(F){P(F)}})(),d.on("data",()=>{d.getBufferedLength()>f&&P(new jfe)})}),d.getBufferedValue()}t(Y8e,"getStream");EG.exports=Y8e;EG.exports.buffer=(s,o)=>Y8e(s,{...o,encoding:"buffer"});EG.exports.array=(s,o)=>Y8e(s,{...o,array:!0});EG.exports.MaxBufferError=jfe});var z0t=ar((L9r,U0t)=>{"use strict";var{PassThrough:kbr}=uo("stream");U0t.exports=function(){var s=[],o=new kbr({objectMode:!0});return o.setMaxListeners(0),o.add=f,o.isEmpty=d,o.on("unpipe",y),Array.prototype.slice.call(arguments).forEach(f),o;function f(x){return Array.isArray(x)?(x.forEach(f),this):(s.push(x),x.once("end",y.bind(null,x)),x.once("error",o.emit.bind(o,"error")),x.pipe(o,{end:!1}),this)}t(f,"add");function d(){return s.length==0}t(d,"isEmpty");function y(x){s=s.filter(function(P){return P!==x}),!s.length&&o.readable&&o.end()}t(y,"remove")}});var mSt=ar(l_e=>{"use strict";Object.defineProperty(l_e,"__esModule",{value:!0});l_e.parse=xxr;l_e.serialize=Exr;var gxr=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,yxr=/^[\u0021-\u003A\u003C-\u007E]*$/,vxr=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,bxr=/^[\u0020-\u003A\u003D-\u007E]*$/,Sxr=Object.prototype.toString,Txr=(()=>{let s=t(function(){},"C");return s.prototype=Object.create(null),s})();function xxr(s,o){let f=new Txr,d=s.length;if(d<2)return f;let y=o?.decode||Cxr,x=0;do{let P=s.indexOf("=",x);if(P===-1)break;let F=s.indexOf(";",x),W=F===-1?d:F;if(P>W){x=s.lastIndexOf(";",P-1)+1;continue}let G=pSt(s,x,P),be=dSt(s,P,G),de=s.slice(G,be);if(f[de]===void 0){let se=pSt(s,P+1,W),Xe=dSt(s,W,se),Ue=y(s.slice(se,Xe));f[de]=Ue}x=W+1}while(x<d);return f}t(xxr,"parse");function pSt(s,o,f){do{let d=s.charCodeAt(o);if(d!==32&&d!==9)return o}while(++o<f);return f}t(pSt,"startIndex");function dSt(s,o,f){for(;o>f;){let d=s.charCodeAt(--o);if(d!==32&&d!==9)return o+1}return f}t(dSt,"endIndex");function Exr(s,o,f){let d=f?.encode||encodeURIComponent;if(!gxr.test(s))throw new TypeError(`argument name is invalid: ${s}`);let y=d(o);if(!yxr.test(y))throw new TypeError(`argument val is invalid: ${o}`);let x=s+"="+y;if(!f)return x;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);x+="; Max-Age="+f.maxAge}if(f.domain){if(!vxr.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);x+="; Domain="+f.domain}if(f.path){if(!bxr.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);x+="; Path="+f.path}if(f.expires){if(!kxr(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);x+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(x+="; HttpOnly"),f.secure&&(x+="; Secure"),f.partitioned&&(x+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":x+="; Priority=Low";break;case"medium":x+="; Priority=Medium";break;case"high":x+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":x+="; SameSite=Strict";break;case"lax":x+="; SameSite=Lax";break;case"none":x+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return x}t(Exr,"serialize");function Cxr(s){if(s.indexOf("%")===-1)return s;try{return decodeURIComponent(s)}catch{return s}}t(Cxr,"decode");function kxr(s){return Sxr.call(s)==="[object Date]"}t(kxr,"isDate")});var LSt=ar((WUr,FSt)=>{"use strict";function zxr(s){return s>=55296&&s<=56319}t(zxr,"isHighSurrogate");function $xr(s){return s>=56320&&s<=57343}t($xr,"isLowSurrogate");FSt.exports=t(function(o,f,d){if(typeof f!="string")throw new Error("Input must be string");for(var y=f.length,x=0,P,F,W=0;W<y;W+=1){if(P=f.charCodeAt(W),F=f[W],zxr(P)&&$xr(f.charCodeAt(W+1))&&(W+=1,F+=f[W]),x+=o(F),x===d)return f.slice(0,W+1);if(x>d)return f.slice(0,W-F.length+1)}return f},"truncate")});var MSt=ar((VUr,RSt)=>{"use strict";var Jxr=LSt(),Wxr=Buffer.byteLength.bind(Buffer);RSt.exports=Jxr.bind(null,Wxr)});var BSt=B_(noe(),1);import{readFileSync as hhr}from"node:fs";import eue from"node:path";function ioe(s,o){return{...o}}t(ioe,"getBuildFlags");var jP="Good",hPe="Warnings",j9="Failed",gPe="error",soe="warning",P1=class extends Error{static{t(this,"BuildIssueError")}issue;pluginName;constructor(o,f){super(o.message),this.issue=o,this.pluginName=f}};var yPe=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});var B9=Object.freeze(["2023-03-14","2024-01-15","2024-03-14","2024-09-02","2025-02-06","2026-03-01"]);var rrt="x-zuplo",uEr=`${rrt}-path`,fEr=`${rrt}-route`,U9="x-internal";var{toString:pEr}=Object.prototype,{propertyIsEnumerable:dEr}=Object.prototype;function nrt(s){return typeof s=="string"}t(nrt,"isString");function irt(s){return s===!0||s===!1}t(irt,"isBoolean");function aoe(s,o=!1){if(irt(s))return s;if(nrt(s)){if(s.toLowerCase()==="true")return!0;if(s.toLowerCase()==="false")return!1;if(o)throw new TypeError(`Attempted to parse string to boolean, but received ${s} which cannot be parsed.`)}if(o)throw new TypeError(`Expected type of boolean, received type '${typeof s}'`);return!1}t(aoe,"parseValueToBoolean");var srt=t((s=0)=>o=>`\x1B[${o+s}m`,"wrapAnsi16"),art=t((s=0)=>o=>`\x1B[${38+s};5;${o}m`,"wrapAnsi256"),ort=t((s=0)=>(o,f,d)=>`\x1B[${38+s};2;${o};${f};${d}m`,"wrapAnsi16m"),Gp={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},UEr=Object.keys(Gp.modifier),rYt=Object.keys(Gp.color),nYt=Object.keys(Gp.bgColor),zEr=[...rYt,...nYt];function iYt(){let s=new Map;for(let[o,f]of Object.entries(Gp)){for(let[d,y]of Object.entries(f))Gp[d]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},f[d]=Gp[d],s.set(y[0],y[1]);Object.defineProperty(Gp,o,{value:f,enumerable:!1})}return Object.defineProperty(Gp,"codes",{value:s,enumerable:!1}),Gp.color.close="\x1B[39m",Gp.bgColor.close="\x1B[49m",Gp.color.ansi=srt(),Gp.color.ansi256=art(),Gp.color.ansi16m=ort(),Gp.bgColor.ansi=srt(10),Gp.bgColor.ansi256=art(10),Gp.bgColor.ansi16m=ort(10),Object.defineProperties(Gp,{rgbToAnsi256:{value(o,f,d){return o===f&&f===d?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},enumerable:!1},hexToRgb:{value(o){let f=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!f)return[0,0,0];let[d]=f;d.length===3&&(d=[...d].map(x=>x+x).join(""));let y=Number.parseInt(d,16);return[y>>16&255,y>>8&255,y&255]},enumerable:!1},hexToAnsi256:{value:t(o=>Gp.rgbToAnsi256(...Gp.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let f,d,y;if(o>=232)f=((o-232)*10+8)/255,d=f,y=f;else{o-=16;let F=o%36;f=Math.floor(o/36)/5,d=Math.floor(F/6)/5,y=F%6/5}let x=Math.max(f,d,y)*2;if(x===0)return 30;let P=30+(Math.round(y)<<2|Math.round(d)<<1|Math.round(f));return x===2&&(P+=60),P},enumerable:!1},rgbToAnsi:{value:t((o,f,d)=>Gp.ansi256ToAnsi(Gp.rgbToAnsi256(o,f,d)),"value"),enumerable:!1},hexToAnsi:{value:t(o=>Gp.ansi256ToAnsi(Gp.hexToAnsi256(o)),"value"),enumerable:!1}}),Gp}t(iYt,"assembleStyles");var sYt=iYt(),yE=sYt;import vPe from"node:process";import aYt from"node:os";import crt from"node:tty";function sT(s,o=globalThis.Deno?globalThis.Deno.args:vPe.argv){let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}t(sT,"hasFlag");var{env:Xd}=vPe,ooe;sT("no-color")||sT("no-colors")||sT("color=false")||sT("color=never")?ooe=0:(sT("color")||sT("colors")||sT("color=true")||sT("color=always"))&&(ooe=1);function oYt(){if("FORCE_COLOR"in Xd)return Xd.FORCE_COLOR==="true"?1:Xd.FORCE_COLOR==="false"?0:Xd.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Xd.FORCE_COLOR,10),3)}t(oYt,"envForceColor");function cYt(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(cYt,"translateLevel");function lYt(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=oYt();d!==void 0&&(ooe=d);let y=f?ooe:d;if(y===0)return 0;if(f){if(sT("color=16m")||sT("color=full")||sT("color=truecolor"))return 3;if(sT("color=256"))return 2}if("TF_BUILD"in Xd&&"AGENT_NAME"in Xd)return 1;if(s&&!o&&y===void 0)return 0;let x=y||0;if(Xd.TERM==="dumb")return x;if(vPe.platform==="win32"){let P=aYt.release().split(".");return Number(P[0])>=10&&Number(P[2])>=10586?Number(P[2])>=14931?3:2:1}if("CI"in Xd)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(P=>P in Xd)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(P=>P in Xd)||Xd.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Xd)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xd.TEAMCITY_VERSION)?1:0;if(Xd.COLORTERM==="truecolor"||Xd.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Xd){let P=Number.parseInt((Xd.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xd.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xd.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xd.TERM)||"COLORTERM"in Xd?1:x}t(lYt,"_supportsColor");function lrt(s,o={}){let f=lYt(s,{streamIsTTY:s&&s.isTTY,...o});return cYt(f)}t(lrt,"createSupportsColor");var uYt={stdout:lrt({isTTY:crt.isatty(1)}),stderr:lrt({isTTY:crt.isatty(2)})},urt=uYt;function frt(s,o,f){let d=s.indexOf(o);if(d===-1)return s;let y=o.length,x=0,P="";do P+=s.slice(x,d)+o+f,x=d+y,d=s.indexOf(o,x);while(d!==-1);return P+=s.slice(x),P}t(frt,"stringReplaceAll");function _rt(s,o,f,d){let y=0,x="";do{let P=s[d-1]==="\r";x+=s.slice(y,P?d-1:d)+o+(P?`\r
561
+ `;return o+y}async configure(o={embedVariables:!0}){let f=this.options.compatibilityDate??"2024-09-02";if(new Date(f)>new Date(kgt)&&(f=kgt),this.options.modules.length===0)throw new Error("No modules provided. Cannot run local dev server.");let d=this.options.modules.filter(P=>!P.endsWith(".js.map")).map(P=>{let F=hvr.default.join(this.options.scriptDirectory,P),W=(0,mvr.readFileSync)(F,"utf8"),G=this.withSourceURL(W,F);return{name:P,esModule:G}}).sort(P=>P.name==="./worker.js"?-1:1),y;o.embedVariables?y=Object.entries(this.options.bindings).map(([P,F])=>({name:P,json:JSON.stringify(F)})):y=Object.entries(this.options.bindings).map(([P])=>({name:P,fromEnvironment:P}));let x;return o.embedVariables?x=Object.entries(this.options.bindings).filter(([P])=>P.startsWith("ZUPLO_CACHE")).map(([P,F])=>({name:P,json:JSON.stringify(F)})):x=Object.entries(this.options.bindings).filter(([P])=>P.startsWith("ZUPLO_CACHE")).map(([P])=>({name:P,fromEnvironment:P})),{services:[{name:"zuplo-entry",worker:{modules:d,compatibilityDate:f,compatibilityFlags:["nodejs_compat"],bindings:y,cacheApiOutbound:{name:"zuplo-cache-extension"}}},{name:"zuplo-cache-extension",worker:{modules:[{name:"zuplo-cache-extension.js",esModule:vvr.ZUPLO_CACHE_EXTENSION}],bindings:x,compatibilityDate:f,compatibilityFlags:["nodejs_compat"]}},{name:"internet",network:{allow:["public","private"],deny:[],tlsOptions:{trustBrowserCas:!0,trustedCertificates:[]}}}],sockets:[{name:"http",address:`*:${this.options.port}`,http:{},service:{name:"zuplo-entry"}}]}}};Ej.ZuploWorkerd=N8e});var Ngt=ar((bRr,Agt)=>{Agt.exports=Pgt;Pgt.sync=Svr;var wgt=uo("fs");function bvr(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var d=0;d<f.length;d++){var y=f[d].toLowerCase();if(y&&s.substr(-y.length).toLowerCase()===y)return!0}return!1}t(bvr,"checkPathExt");function Dgt(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:bvr(o,f)}t(Dgt,"checkStat");function Pgt(s,o,f){wgt.stat(s,function(d,y){f(d,d?!1:Dgt(y,s,o))})}t(Pgt,"isexe");function Svr(s,o){return Dgt(wgt.statSync(s),s,o)}t(Svr,"sync")});var Rgt=ar((TRr,Lgt)=>{Lgt.exports=Ogt;Ogt.sync=Tvr;var Igt=uo("fs");function Ogt(s,o,f){Igt.stat(s,function(d,y){f(d,d?!1:Fgt(y,o))})}t(Ogt,"isexe");function Tvr(s,o){return Fgt(Igt.statSync(s),o)}t(Tvr,"sync");function Fgt(s,o){return s.isFile()&&xvr(s,o)}t(Fgt,"checkStat");function xvr(s,o){var f=s.mode,d=s.uid,y=s.gid,x=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),P=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),F=parseInt("100",8),W=parseInt("010",8),G=parseInt("001",8),be=F|W,de=f&G||f&W&&y===P||f&F&&d===x||f&be&&x===0;return de}t(xvr,"checkMode")});var jgt=ar((CRr,Mgt)=>{var ERr=uo("fs"),Pfe;process.platform==="win32"||global.TESTING_WINDOWS?Pfe=Ngt():Pfe=Rgt();Mgt.exports=O8e;O8e.sync=Evr;function O8e(s,o,f){if(typeof o=="function"&&(f=o,o={}),!f){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(d,y){O8e(s,o||{},function(x,P){x?y(x):d(P)})})}Pfe(s,o||{},function(d,y){d&&(d.code==="EACCES"||o&&o.ignoreErrors)&&(d=null,y=!1),f(d,y)})}t(O8e,"isexe");function Evr(s,o){try{return Pfe.sync(s,o||{})}catch(f){if(o&&o.ignoreErrors||f.code==="EACCES")return!1;throw f}}t(Evr,"sync")});var qgt=ar((wRr,Wgt)=>{var Cj=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Bgt=uo("path"),Cvr=Cj?";":":",Ugt=jgt(),zgt=t(s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),"getNotFoundError"),$gt=t((s,o)=>{let f=o.colon||Cvr,d=s.match(/\//)||Cj&&s.match(/\\/)?[""]:[...Cj?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(f)],y=Cj?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",x=Cj?y.split(f):[""];return Cj&&s.indexOf(".")!==-1&&x[0]!==""&&x.unshift(""),{pathEnv:d,pathExt:x,pathExtExe:y}},"getPathInfo"),Jgt=t((s,o,f)=>{typeof o=="function"&&(f=o,o={}),o||(o={});let{pathEnv:d,pathExt:y,pathExtExe:x}=$gt(s,o),P=[],F=t(G=>new Promise((be,de)=>{if(G===d.length)return o.all&&P.length?be(P):de(zgt(s));let se=d[G],Xe=/^".*"$/.test(se)?se.slice(1,-1):se,Ue=Bgt.join(Xe,s),je=!Xe&&/^\.[\\\/]/.test(s)?s.slice(0,2)+Ue:Ue;be(W(je,G,0))}),"step"),W=t((G,be,de)=>new Promise((se,Xe)=>{if(de===y.length)return se(F(be+1));let Ue=y[de];Ugt(G+Ue,{pathExt:x},(je,Vt)=>{if(!je&&Vt)if(o.all)P.push(G+Ue);else return se(G+Ue);return se(W(G,be,de+1))})}),"subStep");return f?F(0).then(G=>f(null,G),f):F(0)},"which"),kvr=t((s,o)=>{o=o||{};let{pathEnv:f,pathExt:d,pathExtExe:y}=$gt(s,o),x=[];for(let P=0;P<f.length;P++){let F=f[P],W=/^".*"$/.test(F)?F.slice(1,-1):F,G=Bgt.join(W,s),be=!W&&/^\.[\\\/]/.test(s)?s.slice(0,2)+G:G;for(let de=0;de<d.length;de++){let se=be+d[de];try{if(Ugt.sync(se,{pathExt:y}))if(o.all)x.push(se);else return se}catch{}}}if(o.all&&x.length)return x;if(o.nothrow)return null;throw zgt(s)},"whichSync");Wgt.exports=Jgt;Jgt.sync=kvr});var Hgt=ar((PRr,F8e)=>{"use strict";var Vgt=t((s={})=>{let o=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"},"pathKey");F8e.exports=Vgt;F8e.exports.default=Vgt});var Xgt=ar((NRr,Kgt)=>{"use strict";var Ggt=uo("path"),wvr=qgt(),Dvr=Hgt();function Ygt(s,o){let f=s.options.env||process.env,d=process.cwd(),y=s.options.cwd!=null,x=y&&process.chdir!==void 0&&!process.chdir.disabled;if(x)try{process.chdir(s.options.cwd)}catch{}let P;try{P=wvr.sync(s.command,{path:f[Dvr({env:f})],pathExt:o?Ggt.delimiter:void 0})}catch{}finally{x&&process.chdir(d)}return P&&(P=Ggt.resolve(y?s.options.cwd:"",P)),P}t(Ygt,"resolveCommandAttempt");function Pvr(s){return Ygt(s)||Ygt(s,!0)}t(Pvr,"resolveCommand");Kgt.exports=Pvr});var Zgt=ar((ORr,R8e)=>{"use strict";var L8e=/([()\][%!^"`<>&|;, *?])/g;function Avr(s){return s=s.replace(L8e,"^$1"),s}t(Avr,"escapeCommand");function Nvr(s,o){return s=`${s}`,s=s.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),s=s.replace(/(?=(\\+?)?)\1$/,"$1$1"),s=`"${s}"`,s=s.replace(L8e,"^$1"),o&&(s=s.replace(L8e,"^$1")),s}t(Nvr,"escapeArgument");R8e.exports.command=Avr;R8e.exports.argument=Nvr});var e0t=ar((LRr,Qgt)=>{"use strict";Qgt.exports=/^#!(.*)/});var r0t=ar((RRr,t0t)=>{"use strict";var Ivr=e0t();t0t.exports=(s="")=>{let o=s.match(Ivr);if(!o)return null;let[f,d]=o[0].replace(/#! ?/,"").split(" "),y=f.split("/").pop();return y==="env"?d:d?`${y} ${d}`:y}});var i0t=ar((MRr,n0t)=>{"use strict";var M8e=uo("fs"),Ovr=r0t();function Fvr(s){let f=Buffer.alloc(150),d;try{d=M8e.openSync(s,"r"),M8e.readSync(d,f,0,150,0),M8e.closeSync(d)}catch{}return Ovr(f.toString())}t(Fvr,"readShebang");n0t.exports=Fvr});var c0t=ar((BRr,o0t)=>{"use strict";var Lvr=uo("path"),s0t=Xgt(),a0t=Zgt(),Rvr=i0t(),Mvr=process.platform==="win32",jvr=/\.(?:com|exe)$/i,Bvr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Uvr(s){s.file=s0t(s);let o=s.file&&Rvr(s.file);return o?(s.args.unshift(s.file),s.command=o,s0t(s)):s.file}t(Uvr,"detectShebang");function zvr(s){if(!Mvr)return s;let o=Uvr(s),f=!jvr.test(o);if(s.options.forceShell||f){let d=Bvr.test(o);s.command=Lvr.normalize(s.command),s.command=a0t.command(s.command),s.args=s.args.map(x=>a0t.argument(x,d));let y=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${y}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}t(zvr,"parseNonShell");function $vr(s,o,f){o&&!Array.isArray(o)&&(f=o,o=null),o=o?o.slice(0):[],f=Object.assign({},f);let d={command:s,args:o,options:f,file:void 0,original:{command:s,args:o}};return f.shell?d:zvr(d)}t($vr,"parse");o0t.exports=$vr});var f0t=ar((zRr,u0t)=>{"use strict";var j8e=process.platform==="win32";function B8e(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}t(B8e,"notFoundError");function Jvr(s,o){if(!j8e)return;let f=s.emit;s.emit=function(d,y){if(d==="exit"){let x=l0t(y,o);if(x)return f.call(s,"error",x)}return f.apply(s,arguments)}}t(Jvr,"hookChildProcess");function l0t(s,o){return j8e&&s===1&&!o.file?B8e(o.original,"spawn"):null}t(l0t,"verifyENOENT");function Wvr(s,o){return j8e&&s===1&&!o.file?B8e(o.original,"spawnSync"):null}t(Wvr,"verifyENOENTSync");u0t.exports={hookChildProcess:Jvr,verifyENOENT:l0t,verifyENOENTSync:Wvr,notFoundError:B8e}});var d0t=ar((JRr,kj)=>{"use strict";var _0t=uo("child_process"),U8e=c0t(),z8e=f0t();function p0t(s,o,f){let d=U8e(s,o,f),y=_0t.spawn(d.command,d.args,d.options);return z8e.hookChildProcess(y,d),y}t(p0t,"spawn");function qvr(s,o,f){let d=U8e(s,o,f),y=_0t.spawnSync(d.command,d.args,d.options);return y.error=y.error||z8e.verifyENOENTSync(y.status,d),y}t(qvr,"spawnSync");kj.exports=p0t;kj.exports.spawn=p0t;kj.exports.sync=qvr;kj.exports._parse=U8e;kj.exports._enoent=z8e});var E0t=ar((C9r,Ffe)=>{Ffe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ffe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ffe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var P0t=ar((k9r,Pj)=>{var Zp=global.process,m7=t(function(s){return s&&typeof s=="object"&&typeof s.removeListener=="function"&&typeof s.emit=="function"&&typeof s.reallyExit=="function"&&typeof s.listeners=="function"&&typeof s.kill=="function"&&typeof s.pid=="number"&&typeof s.on=="function"},"processOk");m7(Zp)?(C0t=uo("assert"),wj=E0t(),k0t=/^win/i.test(Zp.platform),xG=uo("events"),typeof xG!="function"&&(xG=xG.EventEmitter),Zp.__signal_exit_emitter__?Bg=Zp.__signal_exit_emitter__:(Bg=Zp.__signal_exit_emitter__=new xG,Bg.count=0,Bg.emitted={}),Bg.infinite||(Bg.setMaxListeners(1/0),Bg.infinite=!0),Pj.exports=function(s,o){if(!m7(global.process))return function(){};C0t.equal(typeof s,"function","a callback must be provided for exit handler"),Dj===!1&&H8e();var f="exit";o&&o.alwaysLast&&(f="afterexit");var d=t(function(){Bg.removeListener(f,s),Bg.listeners("exit").length===0&&Bg.listeners("afterexit").length===0&&Lfe()},"remove");return Bg.on(f,s),d},Lfe=t(function(){!Dj||!m7(global.process)||(Dj=!1,wj.forEach(function(o){try{Zp.removeListener(o,Rfe[o])}catch{}}),Zp.emit=Mfe,Zp.reallyExit=G8e,Bg.count-=1)},"unload"),Pj.exports.unload=Lfe,h7=t(function(o,f,d){Bg.emitted[o]||(Bg.emitted[o]=!0,Bg.emit(o,f,d))},"emit"),Rfe={},wj.forEach(function(s){Rfe[s]=t(function(){if(m7(global.process)){var f=Zp.listeners(s);f.length===Bg.count&&(Lfe(),h7("exit",null,s),h7("afterexit",null,s),k0t&&s==="SIGHUP"&&(s="SIGINT"),Zp.kill(Zp.pid,s))}},"listener")}),Pj.exports.signals=function(){return wj},Dj=!1,H8e=t(function(){Dj||!m7(global.process)||(Dj=!0,Bg.count+=1,wj=wj.filter(function(o){try{return Zp.on(o,Rfe[o]),!0}catch{return!1}}),Zp.emit=D0t,Zp.reallyExit=w0t)},"load"),Pj.exports.load=H8e,G8e=Zp.reallyExit,w0t=t(function(o){m7(global.process)&&(Zp.exitCode=o||0,h7("exit",Zp.exitCode,null),h7("afterexit",Zp.exitCode,null),G8e.call(Zp,Zp.exitCode))},"processReallyExit"),Mfe=Zp.emit,D0t=t(function(o,f){if(o==="exit"&&m7(global.process)){f!==void 0&&(Zp.exitCode=f);var d=Mfe.apply(this,arguments);return h7("exit",Zp.exitCode,null),h7("afterexit",Zp.exitCode,null),d}else return Mfe.apply(this,arguments)},"processEmit")):Pj.exports=function(){return function(){}};var C0t,wj,k0t,xG,Bg,Lfe,h7,Rfe,Dj,H8e,G8e,w0t,Mfe,D0t});var j0t=ar((O9r,M0t)=>{"use strict";var{PassThrough:bbr}=uo("stream");M0t.exports=s=>{s={...s};let{array:o}=s,{encoding:f}=s,d=f==="buffer",y=!1;o?y=!(f||d):f=f||"utf8",d&&(f=null);let x=new bbr({objectMode:y});f&&x.setEncoding(f);let P=0,F=[];return x.on("data",W=>{F.push(W),y?P=F.length:P+=W.length}),x.getBufferedValue=()=>o?F:d?Buffer.concat(F,P):F.join(""),x.getBufferedLength=()=>P,x}});var B0t=ar((F9r,EG)=>{"use strict";var{constants:Sbr}=uo("buffer"),Tbr=uo("stream"),{promisify:xbr}=uo("util"),Ebr=j0t(),Cbr=xbr(Tbr.pipeline),jfe=class extends Error{static{t(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Y8e(s,o){if(!s)throw new Error("Expected a stream");o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,d=Ebr(o);return await new Promise((y,x)=>{let P=t(F=>{F&&d.getBufferedLength()<=Sbr.MAX_LENGTH&&(F.bufferedData=d.getBufferedValue()),x(F)},"rejectPromise");(async()=>{try{await Cbr(s,d),y()}catch(F){P(F)}})(),d.on("data",()=>{d.getBufferedLength()>f&&P(new jfe)})}),d.getBufferedValue()}t(Y8e,"getStream");EG.exports=Y8e;EG.exports.buffer=(s,o)=>Y8e(s,{...o,encoding:"buffer"});EG.exports.array=(s,o)=>Y8e(s,{...o,array:!0});EG.exports.MaxBufferError=jfe});var z0t=ar((R9r,U0t)=>{"use strict";var{PassThrough:kbr}=uo("stream");U0t.exports=function(){var s=[],o=new kbr({objectMode:!0});return o.setMaxListeners(0),o.add=f,o.isEmpty=d,o.on("unpipe",y),Array.prototype.slice.call(arguments).forEach(f),o;function f(x){return Array.isArray(x)?(x.forEach(f),this):(s.push(x),x.once("end",y.bind(null,x)),x.once("error",o.emit.bind(o,"error")),x.pipe(o,{end:!1}),this)}t(f,"add");function d(){return s.length==0}t(d,"isEmpty");function y(x){s=s.filter(function(P){return P!==x}),!s.length&&o.readable&&o.end()}t(y,"remove")}});var mSt=ar(l_e=>{"use strict";Object.defineProperty(l_e,"__esModule",{value:!0});l_e.parse=xxr;l_e.serialize=Exr;var gxr=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,yxr=/^[\u0021-\u003A\u003C-\u007E]*$/,vxr=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,bxr=/^[\u0020-\u003A\u003D-\u007E]*$/,Sxr=Object.prototype.toString,Txr=(()=>{let s=t(function(){},"C");return s.prototype=Object.create(null),s})();function xxr(s,o){let f=new Txr,d=s.length;if(d<2)return f;let y=o?.decode||Cxr,x=0;do{let P=s.indexOf("=",x);if(P===-1)break;let F=s.indexOf(";",x),W=F===-1?d:F;if(P>W){x=s.lastIndexOf(";",P-1)+1;continue}let G=pSt(s,x,P),be=dSt(s,P,G),de=s.slice(G,be);if(f[de]===void 0){let se=pSt(s,P+1,W),Xe=dSt(s,W,se),Ue=y(s.slice(se,Xe));f[de]=Ue}x=W+1}while(x<d);return f}t(xxr,"parse");function pSt(s,o,f){do{let d=s.charCodeAt(o);if(d!==32&&d!==9)return o}while(++o<f);return f}t(pSt,"startIndex");function dSt(s,o,f){for(;o>f;){let d=s.charCodeAt(--o);if(d!==32&&d!==9)return o+1}return f}t(dSt,"endIndex");function Exr(s,o,f){let d=f?.encode||encodeURIComponent;if(!gxr.test(s))throw new TypeError(`argument name is invalid: ${s}`);let y=d(o);if(!yxr.test(y))throw new TypeError(`argument val is invalid: ${o}`);let x=s+"="+y;if(!f)return x;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);x+="; Max-Age="+f.maxAge}if(f.domain){if(!vxr.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);x+="; Domain="+f.domain}if(f.path){if(!bxr.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);x+="; Path="+f.path}if(f.expires){if(!kxr(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);x+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(x+="; HttpOnly"),f.secure&&(x+="; Secure"),f.partitioned&&(x+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":x+="; Priority=Low";break;case"medium":x+="; Priority=Medium";break;case"high":x+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":x+="; SameSite=Strict";break;case"lax":x+="; SameSite=Lax";break;case"none":x+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return x}t(Exr,"serialize");function Cxr(s){if(s.indexOf("%")===-1)return s;try{return decodeURIComponent(s)}catch{return s}}t(Cxr,"decode");function kxr(s){return Sxr.call(s)==="[object Date]"}t(kxr,"isDate")});var LSt=ar((qUr,FSt)=>{"use strict";function zxr(s){return s>=55296&&s<=56319}t(zxr,"isHighSurrogate");function $xr(s){return s>=56320&&s<=57343}t($xr,"isLowSurrogate");FSt.exports=t(function(o,f,d){if(typeof f!="string")throw new Error("Input must be string");for(var y=f.length,x=0,P,F,W=0;W<y;W+=1){if(P=f.charCodeAt(W),F=f[W],zxr(P)&&$xr(f.charCodeAt(W+1))&&(W+=1,F+=f[W]),x+=o(F),x===d)return f.slice(0,W+1);if(x>d)return f.slice(0,W-F.length+1)}return f},"truncate")});var MSt=ar((HUr,RSt)=>{"use strict";var Jxr=LSt(),Wxr=Buffer.byteLength.bind(Buffer);RSt.exports=Jxr.bind(null,Wxr)});var BSt=B_(noe(),1);import{readFileSync as hhr}from"node:fs";import eue from"node:path";function ioe(s,o){return{...o}}t(ioe,"getBuildFlags");var jP="Good",hPe="Warnings",j9="Failed",gPe="error",soe="warning",P1=class extends Error{static{t(this,"BuildIssueError")}issue;pluginName;constructor(o,f){super(o.message),this.issue=o,this.pluginName=f}};var yPe=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});var B9=Object.freeze(["2023-03-14","2024-01-15","2024-03-14","2024-09-02","2025-02-06","2026-03-01"]);var rrt="x-zuplo",uEr=`${rrt}-path`,fEr=`${rrt}-route`,U9="x-internal";var{toString:pEr}=Object.prototype,{propertyIsEnumerable:dEr}=Object.prototype;function nrt(s){return typeof s=="string"}t(nrt,"isString");function irt(s){return s===!0||s===!1}t(irt,"isBoolean");function aoe(s,o=!1){if(irt(s))return s;if(nrt(s)){if(s.toLowerCase()==="true")return!0;if(s.toLowerCase()==="false")return!1;if(o)throw new TypeError(`Attempted to parse string to boolean, but received ${s} which cannot be parsed.`)}if(o)throw new TypeError(`Expected type of boolean, received type '${typeof s}'`);return!1}t(aoe,"parseValueToBoolean");var srt=t((s=0)=>o=>`\x1B[${o+s}m`,"wrapAnsi16"),art=t((s=0)=>o=>`\x1B[${38+s};5;${o}m`,"wrapAnsi256"),ort=t((s=0)=>(o,f,d)=>`\x1B[${38+s};2;${o};${f};${d}m`,"wrapAnsi16m"),Gp={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},zEr=Object.keys(Gp.modifier),rYt=Object.keys(Gp.color),nYt=Object.keys(Gp.bgColor),$Er=[...rYt,...nYt];function iYt(){let s=new Map;for(let[o,f]of Object.entries(Gp)){for(let[d,y]of Object.entries(f))Gp[d]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},f[d]=Gp[d],s.set(y[0],y[1]);Object.defineProperty(Gp,o,{value:f,enumerable:!1})}return Object.defineProperty(Gp,"codes",{value:s,enumerable:!1}),Gp.color.close="\x1B[39m",Gp.bgColor.close="\x1B[49m",Gp.color.ansi=srt(),Gp.color.ansi256=art(),Gp.color.ansi16m=ort(),Gp.bgColor.ansi=srt(10),Gp.bgColor.ansi256=art(10),Gp.bgColor.ansi16m=ort(10),Object.defineProperties(Gp,{rgbToAnsi256:{value(o,f,d){return o===f&&f===d?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},enumerable:!1},hexToRgb:{value(o){let f=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!f)return[0,0,0];let[d]=f;d.length===3&&(d=[...d].map(x=>x+x).join(""));let y=Number.parseInt(d,16);return[y>>16&255,y>>8&255,y&255]},enumerable:!1},hexToAnsi256:{value:t(o=>Gp.rgbToAnsi256(...Gp.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let f,d,y;if(o>=232)f=((o-232)*10+8)/255,d=f,y=f;else{o-=16;let F=o%36;f=Math.floor(o/36)/5,d=Math.floor(F/6)/5,y=F%6/5}let x=Math.max(f,d,y)*2;if(x===0)return 30;let P=30+(Math.round(y)<<2|Math.round(d)<<1|Math.round(f));return x===2&&(P+=60),P},enumerable:!1},rgbToAnsi:{value:t((o,f,d)=>Gp.ansi256ToAnsi(Gp.rgbToAnsi256(o,f,d)),"value"),enumerable:!1},hexToAnsi:{value:t(o=>Gp.ansi256ToAnsi(Gp.hexToAnsi256(o)),"value"),enumerable:!1}}),Gp}t(iYt,"assembleStyles");var sYt=iYt(),yE=sYt;import vPe from"node:process";import aYt from"node:os";import crt from"node:tty";function sT(s,o=globalThis.Deno?globalThis.Deno.args:vPe.argv){let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}t(sT,"hasFlag");var{env:Xd}=vPe,ooe;sT("no-color")||sT("no-colors")||sT("color=false")||sT("color=never")?ooe=0:(sT("color")||sT("colors")||sT("color=true")||sT("color=always"))&&(ooe=1);function oYt(){if("FORCE_COLOR"in Xd)return Xd.FORCE_COLOR==="true"?1:Xd.FORCE_COLOR==="false"?0:Xd.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Xd.FORCE_COLOR,10),3)}t(oYt,"envForceColor");function cYt(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(cYt,"translateLevel");function lYt(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=oYt();d!==void 0&&(ooe=d);let y=f?ooe:d;if(y===0)return 0;if(f){if(sT("color=16m")||sT("color=full")||sT("color=truecolor"))return 3;if(sT("color=256"))return 2}if("TF_BUILD"in Xd&&"AGENT_NAME"in Xd)return 1;if(s&&!o&&y===void 0)return 0;let x=y||0;if(Xd.TERM==="dumb")return x;if(vPe.platform==="win32"){let P=aYt.release().split(".");return Number(P[0])>=10&&Number(P[2])>=10586?Number(P[2])>=14931?3:2:1}if("CI"in Xd)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(P=>P in Xd)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(P=>P in Xd)||Xd.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Xd)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xd.TEAMCITY_VERSION)?1:0;if(Xd.COLORTERM==="truecolor"||Xd.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Xd){let P=Number.parseInt((Xd.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xd.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xd.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xd.TERM)||"COLORTERM"in Xd?1:x}t(lYt,"_supportsColor");function lrt(s,o={}){let f=lYt(s,{streamIsTTY:s&&s.isTTY,...o});return cYt(f)}t(lrt,"createSupportsColor");var uYt={stdout:lrt({isTTY:crt.isatty(1)}),stderr:lrt({isTTY:crt.isatty(2)})},urt=uYt;function frt(s,o,f){let d=s.indexOf(o);if(d===-1)return s;let y=o.length,x=0,P="";do P+=s.slice(x,d)+o+f,x=d+y,d=s.indexOf(o,x);while(d!==-1);return P+=s.slice(x),P}t(frt,"stringReplaceAll");function _rt(s,o,f,d){let y=0,x="";do{let P=s[d-1]==="\r";x+=s.slice(y,P?d-1:d)+o+(P?`\r
562
562
  `:`
563
563
  `)+f,y=d+1,d=s.indexOf(`
564
564
  `,y)}while(d!==-1);return x+=s.slice(y),x}t(_rt,"stringEncaseCRLFWithFirstIndex");var{stdout:prt,stderr:drt}=urt,bPe=Symbol("GENERATOR"),z9=Symbol("STYLER"),uV=Symbol("IS_EMPTY"),mrt=["ansi","ansi","ansi256","ansi16m"],$9=Object.create(null),fYt=t((s,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let f=prt?prt.level:0;s.level=o.level===void 0?f:o.level},"applyOptions"),coe=class{static{t(this,"Chalk")}constructor(o){return hrt(o)}},hrt=t(s=>{let o=t((...f)=>f.join(" "),"chalk");return fYt(o,s),Object.setPrototypeOf(o,fV.prototype),o},"chalkFactory");function fV(s){return hrt(s)}t(fV,"createChalk");Object.setPrototypeOf(fV.prototype,Function.prototype);for(let[s,o]of Object.entries(yE))$9[s]={get(){let f=loe(this,TPe(o.open,o.close,this[z9]),this[uV]);return Object.defineProperty(this,s,{value:f}),f}};$9.visible={get(){let s=loe(this,this[z9],!0);return Object.defineProperty(this,"visible",{value:s}),s}};var SPe=t((s,o,f,...d)=>s==="rgb"?o==="ansi16m"?yE[f].ansi16m(...d):o==="ansi256"?yE[f].ansi256(yE.rgbToAnsi256(...d)):yE[f].ansi(yE.rgbToAnsi(...d)):s==="hex"?SPe("rgb",o,f,...yE.hexToRgb(...d)):yE[f][s](...d),"getModelAnsi"),_Yt=["rgb","hex","ansi256"];for(let s of _Yt){$9[s]={get(){let{level:f}=this;return function(...d){let y=TPe(SPe(s,mrt[f],"color",...d),yE.color.close,this[z9]);return loe(this,y,this[uV])}}};let o="bg"+s[0].toUpperCase()+s.slice(1);$9[o]={get(){let{level:f}=this;return function(...d){let y=TPe(SPe(s,mrt[f],"bgColor",...d),yE.bgColor.close,this[z9]);return loe(this,y,this[uV])}}}}var pYt=Object.defineProperties(()=>{},{...$9,level:{enumerable:!0,get(){return this[bPe].level},set(s){this[bPe].level=s}}}),TPe=t((s,o,f)=>{let d,y;return f===void 0?(d=s,y=o):(d=f.openAll+s,y=o+f.closeAll),{open:s,close:o,openAll:d,closeAll:y,parent:f}},"createStyler"),loe=t((s,o,f)=>{let d=t((...y)=>dYt(d,y.length===1?""+y[0]:y.join(" ")),"builder");return Object.setPrototypeOf(d,pYt),d[bPe]=s,d[z9]=o,d[uV]=f,d},"createBuilder"),dYt=t((s,o)=>{if(s.level<=0||!o)return s[uV]?"":o;let f=s[z9];if(f===void 0)return o;let{openAll:d,closeAll:y}=f;if(o.includes("\x1B"))for(;f!==void 0;)o=frt(o,f.close,f.open),f=f.parent;let x=o.indexOf(`
565
- `);return x!==-1&&(o=_rt(o,y,d,x)),d+o+y},"applyStyle");Object.defineProperties(fV.prototype,$9);var mYt=fV(),eCr=fV({level:drt?drt.level:0});var v_=mYt;var grt="modules";var xy="config",_V="schemas",yrt="assets";var uoe="policies.json",vrt="dev-portal.json",hYt="dev-portal";var gYt=".oas.json";var xPe="zuplo.jsonc",EPe="zuplo.json";var _O="dist",Og=".zuplo",foe="build.json";var _oe="worker.ts",yYt="worker.js",vYt="worker.js.map";var ypt=B_(Jrt(),1);import{readFile as kmr}from"node:fs/promises";import wmr from"node:path";import Gle from"node:fs";import t3e from"node:path";import{fileURLToPath as $Kt}from"node:url";import{posix as VKt,win32 as UPe}from"node:path";import{fileURLToPath as HKt}from"node:url";import{lstatSync as GKt,readdir as YKt,readdirSync as KKt,readlinkSync as XKt,realpathSync as ZKt}from"fs";import*as QKt from"node:fs";import{lstat as eXt,readdir as tXt,readlink as rXt,realpath as nXt}from"node:fs/promises";import{EventEmitter as JPe}from"node:events";import Dnt from"node:stream";import{StringDecoder as iXt}from"node:string_decoder";var _nt=t((s,o,f)=>{let d=s instanceof RegExp?Wrt(s,f):s,y=o instanceof RegExp?Wrt(o,f):o,x=d!==null&&y!=null&&UYt(d,y,f);return x&&{start:x[0],end:x[1],pre:f.slice(0,x[0]),body:f.slice(x[0]+d.length,x[1]),post:f.slice(x[1]+y.length)}},"Gt"),Wrt=t((s,o)=>{let f=o.match(s);return f?f[0]:null},"ce"),UYt=t((s,o,f)=>{let d,y,x,P,F,W=f.indexOf(s),G=f.indexOf(o,W+1),be=W;if(W>=0&&G>0){if(s===o)return[W,G];for(d=[],x=f.length;be>=0&&!F;){if(be===W)d.push(be),W=f.indexOf(s,be+1);else if(d.length===1){let de=d.pop();de!==void 0&&(F=[de,G])}else y=d.pop(),y!==void 0&&y<x&&(x=y,P=G),G=f.indexOf(o,be+1);be=W<G&&W>=0?W:G}d.length&&P!==void 0&&(F=[x,P])}return F},"ss"),pnt="\0SLASH"+Math.random()+"\0",dnt="\0OPEN"+Math.random()+"\0",zPe="\0CLOSE"+Math.random()+"\0",mnt="\0COMMA"+Math.random()+"\0",hnt="\0PERIOD"+Math.random()+"\0",zYt=new RegExp(pnt,"g"),$Yt=new RegExp(dnt,"g"),JYt=new RegExp(zPe,"g"),WYt=new RegExp(mnt,"g"),qYt=new RegExp(hnt,"g"),VYt=/\\\\/g,HYt=/\\{/g,GYt=/\\}/g,YYt=/\\,/g,KYt=/\\./g,XYt=1e5;function NPe(s){return isNaN(s)?s.charCodeAt(0):parseInt(s,10)}t(NPe,"Ht");function ZYt(s){return s.replace(VYt,pnt).replace(HYt,dnt).replace(GYt,zPe).replace(YYt,mnt).replace(KYt,hnt)}t(ZYt,"ps");function QYt(s){return s.replace(zYt,"\\").replace($Yt,"{").replace(JYt,"}").replace(WYt,",").replace(qYt,".")}t(QYt,"ms");function gnt(s){if(!s)return[""];let o=[],f=_nt("{","}",s);if(!f)return s.split(",");let{pre:d,body:y,post:x}=f,P=d.split(",");P[P.length-1]+="{"+y+"}";let F=gnt(x);return x.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),o.push.apply(o,P),o}t(gnt,"me");function eKt(s,o={}){if(!s)return[];let{max:f=XYt}=o;return s.slice(0,2)==="{}"&&(s="\\{\\}"+s.slice(2)),TV(ZYt(s),f,!0).map(QYt)}t(eKt,"ge");function tKt(s){return"{"+s+"}"}t(tKt,"gs");function rKt(s){return/^-?0\d/.test(s)}t(rKt,"ws");function nKt(s,o){return s<=o}t(nKt,"ys");function iKt(s,o){return s>=o}t(iKt,"bs");function TV(s,o,f){let d=[],y=_nt("{","}",s);if(!y)return[s];let x=y.pre,P=y.post.length?TV(y.post,o,!1):[""];if(/\$$/.test(y.pre))for(let F=0;F<P.length&&F<o;F++){let W=x+"{"+y.body+"}"+P[F];d.push(W)}else{let F=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),G=F||W,be=y.body.indexOf(",")>=0;if(!G&&!be)return y.post.match(/,(?!,).*\}/)?(s=y.pre+"{"+y.body+zPe+y.post,TV(s,o,!0)):[s];let de;if(G)de=y.body.split(/\.\./);else if(de=gnt(y.body),de.length===1&&de[0]!==void 0&&(de=TV(de[0],o,!1).map(tKt),de.length===1))return P.map(Xe=>y.pre+de[0]+Xe);let se;if(G&&de[0]!==void 0&&de[1]!==void 0){let Xe=NPe(de[0]),Ue=NPe(de[1]),je=Math.max(de[0].length,de[1].length),Vt=de.length===3&&de[2]!==void 0?Math.abs(NPe(de[2])):1,Ut=nKt;Ue<Xe&&(Vt*=-1,Ut=iKt);let Ir=de.some(rKt);se=[];for(let wn=Xe;Ut(wn,Ue);wn+=Vt){let sn;if(W)sn=String.fromCharCode(wn),sn==="\\"&&(sn="");else if(sn=String(wn),Ir){let Jn=je-sn.length;if(Jn>0){let kr=new Array(Jn+1).join("0");wn<0?sn="-"+kr+sn.slice(1):sn=kr+sn}}se.push(sn)}}else{se=[];for(let Xe=0;Xe<de.length;Xe++)se.push.apply(se,TV(de[Xe],o,!1))}for(let Xe=0;Xe<se.length;Xe++)for(let Ue=0;Ue<P.length&&d.length<o;Ue++){let je=x+se[Xe]+P[Ue];(!f||G||je)&&d.push(je)}}return d}t(TV,"ht");var koe=t(s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>65536)throw new TypeError("pattern is too long")},"at"),sKt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hV=t(s=>s.replace(/[[\]\\-]/g,"\\$&"),"lt"),aKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"Es"),qrt=t(s=>s.join(""),"we"),oKt=t((s,o)=>{let f=o;if(s.charAt(f)!=="[")throw new Error("not in a brace expression");let d=[],y=[],x=f+1,P=!1,F=!1,W=!1,G=!1,be=f,de="";e:for(;x<s.length;){let Ue=s.charAt(x);if((Ue==="!"||Ue==="^")&&x===f+1){G=!0,x++;continue}if(Ue==="]"&&P&&!W){be=x+1;break}if(P=!0,Ue==="\\"&&!W){W=!0,x++;continue}if(Ue==="["&&!W){for(let[je,[Vt,Ut,Ir]]of Object.entries(sKt))if(s.startsWith(je,x)){if(de)return["$.",!1,s.length-f,!0];x+=je.length,Ir?y.push(Vt):d.push(Vt),F=F||Ut;continue e}}if(W=!1,de){Ue>de?d.push(hV(de)+"-"+hV(Ue)):Ue===de&&d.push(hV(Ue)),de="",x++;continue}if(s.startsWith("-]",x+1)){d.push(hV(Ue+"-")),x+=2;continue}if(s.startsWith("-",x+1)){de=Ue,x+=2;continue}d.push(hV(Ue)),x++}if(be<x)return["",!1,0,!1];if(!d.length&&!y.length)return["$.",!1,s.length-f,!0];if(y.length===0&&d.length===1&&/^\\?.$/.test(d[0])&&!G){let Ue=d[0].length===2?d[0].slice(-1):d[0];return[aKt(Ue),!1,be-f,!1]}let se="["+(G?"^":"")+qrt(d)+"]",Xe="["+(G?"":"^")+qrt(y)+"]";return[d.length&&y.length?"("+se+"|"+Xe+")":d.length?se:Xe,F,be-f,!0]},"ye"),q9=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!0}={})=>f?o?s.replace(/\[([^\/\\])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):o?s.replace(/\[([^\/\\{}])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),"W"),cKt=new Set(["!","?","+","*","@"]),Vrt=t(s=>cKt.has(s),"be"),lKt="(?!(?:^|/)\\.\\.?(?:$|/))",hoe="(?!\\.)",uKt=new Set(["[","."]),fKt=new Set(["..","."]),_Kt=new Set("().*{}+?[]^$\\!"),pKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ks"),$Pe="[^/]",Hrt=$Pe+"*?",Grt=$Pe+"+?",ynt=class kS{static{t(this,"n")}type;#e;#n;#t=!1;#r=[];#s;#m;#c;#u=!1;#f;#p;#a=!1;constructor(o,f,d={}){this.type=o,o&&(this.#n=!0),this.#s=f,this.#e=this.#s?this.#s.#e:this,this.#f=this.#e===this?d:this.#e.#f,this.#c=this.#e===this?[]:this.#e.#c,o==="!"&&!this.#e.#u&&this.#c.push(this),this.#m=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let o of this.#r)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#r.map(o=>String(o)).join("|")+")":this.#p=this.#r.map(o=>String(o)).join("")}#i(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let o;for(;o=this.#c.pop();){if(o.type!=="!")continue;let f=o,d=f.#s;for(;d;){for(let y=f.#m+1;!d.type&&y<d.#r.length;y++)for(let x of o.#r){if(typeof x=="string")throw new Error("string part in extglob AST??");x.copyIn(d.#r[y])}f=d,d=f.#s}}return this}push(...o){for(let f of o)if(f!==""){if(typeof f!="string"&&!(f instanceof kS&&f.#s===this))throw new Error("invalid part: "+f);this.#r.push(f)}}toJSON(){let o=this.type===null?this.#r.slice().map(f=>typeof f=="string"?f:f.toJSON()):[this.type,...this.#r.map(f=>f.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#s?.type==="!")&&o.push({}),o}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#m===0)return!0;let o=this.#s;for(let f=0;f<this.#m;f++){let d=o.#r[f];if(!(d instanceof kS&&d.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let o=this.#s?this.#s.#r.length:0;return this.#m===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let f=new kS(this.type,o);for(let d of this.#r)f.copyIn(d);return f}static#o(o,f,d,y){let x=!1,P=!1,F=-1,W=!1;if(f.type===null){let Xe=d,Ue="";for(;Xe<o.length;){let je=o.charAt(Xe++);if(x||je==="\\"){x=!x,Ue+=je;continue}if(P){Xe===F+1?(je==="^"||je==="!")&&(W=!0):je==="]"&&!(Xe===F+2&&W)&&(P=!1),Ue+=je;continue}else if(je==="["){P=!0,F=Xe,W=!1,Ue+=je;continue}if(!y.noext&&Vrt(je)&&o.charAt(Xe)==="("){f.push(Ue),Ue="";let Vt=new kS(je,f);Xe=kS.#o(o,Vt,Xe,y),f.push(Vt);continue}Ue+=je}return f.push(Ue),Xe}let G=d+1,be=new kS(null,f),de=[],se="";for(;G<o.length;){let Xe=o.charAt(G++);if(x||Xe==="\\"){x=!x,se+=Xe;continue}if(P){G===F+1?(Xe==="^"||Xe==="!")&&(W=!0):Xe==="]"&&!(G===F+2&&W)&&(P=!1),se+=Xe;continue}else if(Xe==="["){P=!0,F=G,W=!1,se+=Xe;continue}if(Vrt(Xe)&&o.charAt(G)==="("){be.push(se),se="";let Ue=new kS(Xe,be);be.push(Ue),G=kS.#o(o,Ue,G,y);continue}if(Xe==="|"){be.push(se),se="",de.push(be),be=new kS(null,f);continue}if(Xe===")")return se===""&&f.#r.length===0&&(f.#a=!0),be.push(se),se="",f.push(...de,be),G;se+=Xe}return f.type=null,f.#n=void 0,f.#r=[o.substring(d-1)],G}static fromGlob(o,f={}){let d=new kS(null,void 0,f);return kS.#o(o,d,0,f),d}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let o=this.toString(),[f,d,y,x]=this.toRegExpSource();if(!(y||this.#n||this.#f.nocase&&!this.#f.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return d;let P=(this.#f.nocase?"i":"")+(x?"u":"");return Object.assign(new RegExp(`^${f}$`,P),{_src:f,_glob:o})}get options(){return this.#f}toRegExpSource(o){let f=o??!!this.#f.dot;if(this.#e===this&&this.#i(),!this.type){let W=this.isStart()&&this.isEnd()&&!this.#r.some(se=>typeof se!="string"),G=this.#r.map(se=>{let[Xe,Ue,je,Vt]=typeof se=="string"?kS.#d(se,this.#n,W):se.toRegExpSource(o);return this.#n=this.#n||je,this.#t=this.#t||Vt,Xe}).join(""),be="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&fKt.has(this.#r[0]))){let se=uKt,Xe=f&&se.has(G.charAt(0))||G.startsWith("\\.")&&se.has(G.charAt(2))||G.startsWith("\\.\\.")&&se.has(G.charAt(4)),Ue=!f&&!o&&se.has(G.charAt(0));be=Xe?lKt:Ue?hoe:""}let de="";return this.isEnd()&&this.#e.#u&&this.#s?.type==="!"&&(de="(?:$|\\/)"),[be+G+de,q9(G),this.#n=!!this.#n,this.#t]}let d=this.type==="*"||this.type==="+",y=this.type==="!"?"(?:(?!(?:":"(?:",x=this.#h(f);if(this.isStart()&&this.isEnd()&&!x&&this.type!=="!"){let W=this.toString();return this.#r=[W],this.type=null,this.#n=void 0,[W,q9(this.toString()),!1,!1]}let P=!d||o||f||!hoe?"":this.#h(!0);P===x&&(P=""),P&&(x=`(?:${x})(?:${P})*?`);let F="";if(this.type==="!"&&this.#a)F=(this.isStart()&&!f?hoe:"")+Grt;else{let W=this.type==="!"?"))"+(this.isStart()&&!f&&!o?hoe:"")+Hrt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&P?")":this.type==="*"&&P?")?":`)${this.type}`;F=y+x+W}return[F,q9(x),this.#n=!!this.#n,this.#t]}#h(o){return this.#r.map(f=>{if(typeof f=="string")throw new Error("string type in extglob ast??");let[d,y,x,P]=f.toRegExpSource(o);return this.#t=this.#t||P,d}).filter(f=>!(this.isStart()&&this.isEnd())||!!f).join("|")}static#d(o,f,d=!1){let y=!1,x="",P=!1,F=!1;for(let W=0;W<o.length;W++){let G=o.charAt(W);if(y){y=!1,x+=(_Kt.has(G)?"\\":"")+G;continue}if(G==="*"){if(F)continue;F=!0,x+=d&&/^[*]+$/.test(o)?Grt:Hrt,f=!0;continue}else F=!1;if(G==="\\"){W===o.length-1?x+="\\\\":y=!0;continue}if(G==="["){let[be,de,se,Xe]=oKt(o,W);if(se){x+=be,P=P||de,W+=se-1,f=f||Xe;continue}}if(G==="?"){x+=$Pe,f=!0;continue}x+=pKt(G)}return[x,q9(o),!!f,P]}},vnt=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!1}={})=>f?o?s.replace(/[?*()[\]{}]/g,"[$&]"):s.replace(/[?*()[\]\\{}]/g,"\\$&"):o?s.replace(/[?*()[\]]/g,"[$&]"):s.replace(/[?*()[\]\\]/g,"\\$&"),"tt"),I1=t((s,o,f={})=>(koe(o),!f.nocomment&&o.charAt(0)==="#"?!1:new XN(o,f).match(s)),"O"),dKt=/^\*+([^+@!?\*\[\(]*)$/,mKt=t(s=>o=>!o.startsWith(".")&&o.endsWith(s),"Os"),hKt=t(s=>o=>o.endsWith(s),"Fs"),gKt=t(s=>(s=s.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(s)),"Ds"),yKt=t(s=>(s=s.toLowerCase(),o=>o.toLowerCase().endsWith(s)),"Ms"),vKt=/^\*+\.\*+$/,bKt=t(s=>!s.startsWith(".")&&s.includes("."),"_s"),SKt=t(s=>s!=="."&&s!==".."&&s.includes("."),"Ls"),TKt=/^\.\*+$/,xKt=t(s=>s!=="."&&s!==".."&&s.startsWith("."),"Ps"),EKt=/^\*+$/,CKt=t(s=>s.length!==0&&!s.startsWith("."),"Is"),kKt=t(s=>s.length!==0&&s!=="."&&s!=="..","zs"),wKt=/^\?+([^+@!?\*\[\(]*)?$/,DKt=t(([s,o=""])=>{let f=bnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"Us"),PKt=t(([s,o=""])=>{let f=Snt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"$s"),AKt=t(([s,o=""])=>{let f=Snt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Gs"),NKt=t(([s,o=""])=>{let f=bnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Hs"),bnt=t(([s])=>{let o=s.length;return f=>f.length===o&&!f.startsWith(".")},"Ce"),Snt=t(([s])=>{let o=s.length;return f=>f.length===o&&f!=="."&&f!==".."},"Te"),Tnt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Yrt={win32:{sep:"\\"},posix:{sep:"/"}},IKt=Tnt==="win32"?Yrt.win32.sep:Yrt.posix.sep;I1.sep=IKt;var N1=Symbol("globstar **");I1.GLOBSTAR=N1;var OKt="[^/]",FKt=OKt+"*?",LKt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",RKt="(?:(?!(?:\\/|^)\\.).)*?",MKt=t((s,o={})=>f=>I1(f,s,o),"Js");I1.filter=MKt;var aT=t((s,o={})=>Object.assign({},s,o),"N"),jKt=t(s=>{if(!s||typeof s!="object"||!Object.keys(s).length)return I1;let o=I1;return Object.assign((f,d,y={})=>o(f,d,aT(s,y)),{Minimatch:class extends o.Minimatch{static{t(this,"Minimatch")}constructor(f,d={}){super(f,aT(s,d))}static defaults(f){return o.defaults(aT(s,f)).Minimatch}},AST:class extends o.AST{static{t(this,"AST")}constructor(f,d,y={}){super(f,d,aT(s,y))}static fromGlob(f,d={}){return o.AST.fromGlob(f,aT(s,d))}},unescape:t((f,d={})=>o.unescape(f,aT(s,d)),"unescape"),escape:t((f,d={})=>o.escape(f,aT(s,d)),"escape"),filter:t((f,d={})=>o.filter(f,aT(s,d)),"filter"),defaults:t(f=>o.defaults(aT(s,f)),"defaults"),makeRe:t((f,d={})=>o.makeRe(f,aT(s,d)),"makeRe"),braceExpand:t((f,d={})=>o.braceExpand(f,aT(s,d)),"braceExpand"),match:t((f,d,y={})=>o.match(f,d,aT(s,y)),"match"),sep:o.sep,GLOBSTAR:N1})},"Zs");I1.defaults=jKt;var xnt=t((s,o={})=>(koe(s),o.nobrace||!/\{(?:(?!\{).)*\}/.test(s)?[s]:eKt(s,{max:o.braceExpandMax})),"ke");I1.braceExpand=xnt;var BKt=t((s,o={})=>new XN(s,o).makeRe(),"Qs");I1.makeRe=BKt;var UKt=t((s,o,f={})=>{let d=new XN(o,f);return s=s.filter(y=>d.match(y)),d.options.nonull&&!s.length&&s.push(o),s},"ti");I1.match=UKt;var Krt=/[?*]|[+@!]\(.*?\)|\[|\]/,zKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ei"),XN=class{static{t(this,"D")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(s,o={}){koe(s),o=o||{},this.options=o,this.pattern=s,this.platform=o.platform||Tnt,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!o.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!o.nonegate,this.comment=!1,this.empty=!1,this.partial=!!o.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=o.windowsNoMagicRoot!==void 0?o.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let s of this.set)for(let o of s)if(typeof o!="string")return!0;return!1}debug(...s){}make(){let s=this.pattern,o=this.options;if(!o.nocomment&&s.charAt(0)==="#"){this.comment=!0;return}if(!s){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],o.debug&&(this.debug=(...y)=>console.error(...y)),this.debug(this.pattern,this.globSet);let f=this.globSet.map(y=>this.slashSplit(y));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let d=this.globParts.map((y,x,P)=>{if(this.isWindows&&this.windowsNoMagicRoot){let F=y[0]===""&&y[1]===""&&(y[2]==="?"||!Krt.test(y[2]))&&!Krt.test(y[3]),W=/^[a-z]:/i.test(y[0]);if(F)return[...y.slice(0,4),...y.slice(4).map(G=>this.parse(G))];if(W)return[y[0],...y.slice(1).map(G=>this.parse(G))]}return y.map(F=>this.parse(F))});if(this.debug(this.pattern,d),this.set=d.filter(y=>y.indexOf(!1)===-1),this.isWindows)for(let y=0;y<this.set.length;y++){let x=this.set[y];x[0]===""&&x[1]===""&&this.globParts[y][2]==="?"&&typeof x[3]=="string"&&/^[a-z]:$/i.test(x[3])&&(x[2]="?")}this.debug(this.pattern,this.set)}preprocess(s){if(this.options.noglobstar)for(let f=0;f<s.length;f++)for(let d=0;d<s[f].length;d++)s[f][d]==="**"&&(s[f][d]="*");let{optimizationLevel:o=1}=this.options;return o>=2?(s=this.firstPhasePreProcess(s),s=this.secondPhasePreProcess(s)):o>=1?s=this.levelOneOptimize(s):s=this.adjascentGlobstarOptimize(s),s}adjascentGlobstarOptimize(s){return s.map(o=>{let f=-1;for(;(f=o.indexOf("**",f+1))!==-1;){let d=f;for(;o[d+1]==="**";)d++;d!==f&&o.splice(f,d-f)}return o})}levelOneOptimize(s){return s.map(o=>(o=o.reduce((f,d)=>{let y=f[f.length-1];return d==="**"&&y==="**"?f:d===".."&&y&&y!==".."&&y!=="."&&y!=="**"?(f.pop(),f):(f.push(d),f)},[]),o.length===0?[""]:o))}levelTwoFileOptimize(s){Array.isArray(s)||(s=this.slashSplit(s));let o=!1;do{if(o=!1,!this.preserveMultipleSlashes){for(let d=1;d<s.length-1;d++){let y=s[d];d===1&&y===""&&s[0]===""||(y==="."||y==="")&&(o=!0,s.splice(d,1),d--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(o=!0,s.pop())}let f=0;for(;(f=s.indexOf("..",f+1))!==-1;){let d=s[f-1];d&&d!=="."&&d!==".."&&d!=="**"&&(o=!0,s.splice(f-1,2),f-=2)}}while(o);return s.length===0?[""]:s}firstPhasePreProcess(s){let o=!1;do{o=!1;for(let f of s){let d=-1;for(;(d=f.indexOf("**",d+1))!==-1;){let x=d;for(;f[x+1]==="**";)x++;x>d&&f.splice(d+1,x-d);let P=f[d+1],F=f[d+2],W=f[d+3];if(P!==".."||!F||F==="."||F===".."||!W||W==="."||W==="..")continue;o=!0,f.splice(d,1);let G=f.slice(0);G[d]="**",s.push(G),d--}if(!this.preserveMultipleSlashes){for(let x=1;x<f.length-1;x++){let P=f[x];x===1&&P===""&&f[0]===""||(P==="."||P==="")&&(o=!0,f.splice(x,1),x--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(o=!0,f.pop())}let y=0;for(;(y=f.indexOf("..",y+1))!==-1;){let x=f[y-1];if(x&&x!=="."&&x!==".."&&x!=="**"){o=!0;let P=y===1&&f[y+1]==="**"?["."]:[];f.splice(y-1,2,...P),f.length===0&&f.push(""),y-=2}}}}while(o);return s}secondPhasePreProcess(s){for(let o=0;o<s.length-1;o++)for(let f=o+1;f<s.length;f++){let d=this.partsMatch(s[o],s[f],!this.preserveMultipleSlashes);if(d){s[o]=[],s[f]=d;break}}return s.filter(o=>o.length)}partsMatch(s,o,f=!1){let d=0,y=0,x=[],P="";for(;d<s.length&&y<o.length;)if(s[d]===o[y])x.push(P==="b"?o[y]:s[d]),d++,y++;else if(f&&s[d]==="**"&&o[y]===s[d+1])x.push(s[d]),d++;else if(f&&o[y]==="**"&&s[d]===o[y+1])x.push(o[y]),y++;else if(s[d]==="*"&&o[y]&&(this.options.dot||!o[y].startsWith("."))&&o[y]!=="**"){if(P==="b")return!1;P="a",x.push(s[d]),d++,y++}else if(o[y]==="*"&&s[d]&&(this.options.dot||!s[d].startsWith("."))&&s[d]!=="**"){if(P==="a")return!1;P="b",x.push(o[y]),d++,y++}else return!1;return s.length===o.length&&x}parseNegate(){if(this.nonegate)return;let s=this.pattern,o=!1,f=0;for(let d=0;d<s.length&&s.charAt(d)==="!";d++)o=!o,f++;f&&(this.pattern=s.slice(f)),this.negate=o}matchOne(s,o,f=!1){let d=this.options;if(this.isWindows){let Ue=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),je=!Ue&&s[0]===""&&s[1]===""&&s[2]==="?"&&/^[a-z]:$/i.test(s[3]),Vt=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),Ut=!Vt&&o[0]===""&&o[1]===""&&o[2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3]),Ir=je?3:Ue?0:void 0,wn=Ut?3:Vt?0:void 0;if(typeof Ir=="number"&&typeof wn=="number"){let[sn,Jn]=[s[Ir],o[wn]];sn.toLowerCase()===Jn.toLowerCase()&&(o[wn]=sn,wn>Ir?o=o.slice(wn):Ir>wn&&(s=s.slice(Ir)))}}let{optimizationLevel:y=1}=this.options;y>=2&&(s=this.levelTwoFileOptimize(s)),this.debug("matchOne",this,{file:s,pattern:o}),this.debug("matchOne",s.length,o.length);for(var x=0,P=0,F=s.length,W=o.length;x<F&&P<W;x++,P++){this.debug("matchOne loop");var G=o[P],be=s[x];if(this.debug(o,G,be),G===!1)return!1;if(G===N1){this.debug("GLOBSTAR",[o,G,be]);var de=x,se=P+1;if(se===W){for(this.debug("** at the end");x<F;x++)if(s[x]==="."||s[x]===".."||!d.dot&&s[x].charAt(0)===".")return!1;return!0}for(;de<F;){var Xe=s[de];if(this.debug(`
565
+ `);return x!==-1&&(o=_rt(o,y,d,x)),d+o+y},"applyStyle");Object.defineProperties(fV.prototype,$9);var mYt=fV(),tCr=fV({level:drt?drt.level:0});var v_=mYt;var grt="modules";var xy="config",_V="schemas",yrt="assets";var uoe="policies.json",vrt="dev-portal.json",hYt="dev-portal";var gYt=".oas.json";var xPe="zuplo.jsonc",EPe="zuplo.json";var _O="dist",Og=".zuplo",foe="build.json";var _oe="worker.ts",yYt="worker.js",vYt="worker.js.map";var ypt=B_(Jrt(),1);import{readFile as kmr}from"node:fs/promises";import wmr from"node:path";import Gle from"node:fs";import t3e from"node:path";import{fileURLToPath as $Kt}from"node:url";import{posix as VKt,win32 as UPe}from"node:path";import{fileURLToPath as HKt}from"node:url";import{lstatSync as GKt,readdir as YKt,readdirSync as KKt,readlinkSync as XKt,realpathSync as ZKt}from"fs";import*as QKt from"node:fs";import{lstat as eXt,readdir as tXt,readlink as rXt,realpath as nXt}from"node:fs/promises";import{EventEmitter as JPe}from"node:events";import Dnt from"node:stream";import{StringDecoder as iXt}from"node:string_decoder";var _nt=t((s,o,f)=>{let d=s instanceof RegExp?Wrt(s,f):s,y=o instanceof RegExp?Wrt(o,f):o,x=d!==null&&y!=null&&UYt(d,y,f);return x&&{start:x[0],end:x[1],pre:f.slice(0,x[0]),body:f.slice(x[0]+d.length,x[1]),post:f.slice(x[1]+y.length)}},"Gt"),Wrt=t((s,o)=>{let f=o.match(s);return f?f[0]:null},"ce"),UYt=t((s,o,f)=>{let d,y,x,P,F,W=f.indexOf(s),G=f.indexOf(o,W+1),be=W;if(W>=0&&G>0){if(s===o)return[W,G];for(d=[],x=f.length;be>=0&&!F;){if(be===W)d.push(be),W=f.indexOf(s,be+1);else if(d.length===1){let de=d.pop();de!==void 0&&(F=[de,G])}else y=d.pop(),y!==void 0&&y<x&&(x=y,P=G),G=f.indexOf(o,be+1);be=W<G&&W>=0?W:G}d.length&&P!==void 0&&(F=[x,P])}return F},"ss"),pnt="\0SLASH"+Math.random()+"\0",dnt="\0OPEN"+Math.random()+"\0",zPe="\0CLOSE"+Math.random()+"\0",mnt="\0COMMA"+Math.random()+"\0",hnt="\0PERIOD"+Math.random()+"\0",zYt=new RegExp(pnt,"g"),$Yt=new RegExp(dnt,"g"),JYt=new RegExp(zPe,"g"),WYt=new RegExp(mnt,"g"),qYt=new RegExp(hnt,"g"),VYt=/\\\\/g,HYt=/\\{/g,GYt=/\\}/g,YYt=/\\,/g,KYt=/\\./g,XYt=1e5;function NPe(s){return isNaN(s)?s.charCodeAt(0):parseInt(s,10)}t(NPe,"Ht");function ZYt(s){return s.replace(VYt,pnt).replace(HYt,dnt).replace(GYt,zPe).replace(YYt,mnt).replace(KYt,hnt)}t(ZYt,"ps");function QYt(s){return s.replace(zYt,"\\").replace($Yt,"{").replace(JYt,"}").replace(WYt,",").replace(qYt,".")}t(QYt,"ms");function gnt(s){if(!s)return[""];let o=[],f=_nt("{","}",s);if(!f)return s.split(",");let{pre:d,body:y,post:x}=f,P=d.split(",");P[P.length-1]+="{"+y+"}";let F=gnt(x);return x.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),o.push.apply(o,P),o}t(gnt,"me");function eKt(s,o={}){if(!s)return[];let{max:f=XYt}=o;return s.slice(0,2)==="{}"&&(s="\\{\\}"+s.slice(2)),TV(ZYt(s),f,!0).map(QYt)}t(eKt,"ge");function tKt(s){return"{"+s+"}"}t(tKt,"gs");function rKt(s){return/^-?0\d/.test(s)}t(rKt,"ws");function nKt(s,o){return s<=o}t(nKt,"ys");function iKt(s,o){return s>=o}t(iKt,"bs");function TV(s,o,f){let d=[],y=_nt("{","}",s);if(!y)return[s];let x=y.pre,P=y.post.length?TV(y.post,o,!1):[""];if(/\$$/.test(y.pre))for(let F=0;F<P.length&&F<o;F++){let W=x+"{"+y.body+"}"+P[F];d.push(W)}else{let F=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),G=F||W,be=y.body.indexOf(",")>=0;if(!G&&!be)return y.post.match(/,(?!,).*\}/)?(s=y.pre+"{"+y.body+zPe+y.post,TV(s,o,!0)):[s];let de;if(G)de=y.body.split(/\.\./);else if(de=gnt(y.body),de.length===1&&de[0]!==void 0&&(de=TV(de[0],o,!1).map(tKt),de.length===1))return P.map(Xe=>y.pre+de[0]+Xe);let se;if(G&&de[0]!==void 0&&de[1]!==void 0){let Xe=NPe(de[0]),Ue=NPe(de[1]),je=Math.max(de[0].length,de[1].length),Vt=de.length===3&&de[2]!==void 0?Math.abs(NPe(de[2])):1,Ut=nKt;Ue<Xe&&(Vt*=-1,Ut=iKt);let Ir=de.some(rKt);se=[];for(let wn=Xe;Ut(wn,Ue);wn+=Vt){let sn;if(W)sn=String.fromCharCode(wn),sn==="\\"&&(sn="");else if(sn=String(wn),Ir){let Jn=je-sn.length;if(Jn>0){let kr=new Array(Jn+1).join("0");wn<0?sn="-"+kr+sn.slice(1):sn=kr+sn}}se.push(sn)}}else{se=[];for(let Xe=0;Xe<de.length;Xe++)se.push.apply(se,TV(de[Xe],o,!1))}for(let Xe=0;Xe<se.length;Xe++)for(let Ue=0;Ue<P.length&&d.length<o;Ue++){let je=x+se[Xe]+P[Ue];(!f||G||je)&&d.push(je)}}return d}t(TV,"ht");var koe=t(s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>65536)throw new TypeError("pattern is too long")},"at"),sKt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hV=t(s=>s.replace(/[[\]\\-]/g,"\\$&"),"lt"),aKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"Es"),qrt=t(s=>s.join(""),"we"),oKt=t((s,o)=>{let f=o;if(s.charAt(f)!=="[")throw new Error("not in a brace expression");let d=[],y=[],x=f+1,P=!1,F=!1,W=!1,G=!1,be=f,de="";e:for(;x<s.length;){let Ue=s.charAt(x);if((Ue==="!"||Ue==="^")&&x===f+1){G=!0,x++;continue}if(Ue==="]"&&P&&!W){be=x+1;break}if(P=!0,Ue==="\\"&&!W){W=!0,x++;continue}if(Ue==="["&&!W){for(let[je,[Vt,Ut,Ir]]of Object.entries(sKt))if(s.startsWith(je,x)){if(de)return["$.",!1,s.length-f,!0];x+=je.length,Ir?y.push(Vt):d.push(Vt),F=F||Ut;continue e}}if(W=!1,de){Ue>de?d.push(hV(de)+"-"+hV(Ue)):Ue===de&&d.push(hV(Ue)),de="",x++;continue}if(s.startsWith("-]",x+1)){d.push(hV(Ue+"-")),x+=2;continue}if(s.startsWith("-",x+1)){de=Ue,x+=2;continue}d.push(hV(Ue)),x++}if(be<x)return["",!1,0,!1];if(!d.length&&!y.length)return["$.",!1,s.length-f,!0];if(y.length===0&&d.length===1&&/^\\?.$/.test(d[0])&&!G){let Ue=d[0].length===2?d[0].slice(-1):d[0];return[aKt(Ue),!1,be-f,!1]}let se="["+(G?"^":"")+qrt(d)+"]",Xe="["+(G?"":"^")+qrt(y)+"]";return[d.length&&y.length?"("+se+"|"+Xe+")":d.length?se:Xe,F,be-f,!0]},"ye"),q9=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!0}={})=>f?o?s.replace(/\[([^\/\\])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):o?s.replace(/\[([^\/\\{}])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),"W"),cKt=new Set(["!","?","+","*","@"]),Vrt=t(s=>cKt.has(s),"be"),lKt="(?!(?:^|/)\\.\\.?(?:$|/))",hoe="(?!\\.)",uKt=new Set(["[","."]),fKt=new Set(["..","."]),_Kt=new Set("().*{}+?[]^$\\!"),pKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ks"),$Pe="[^/]",Hrt=$Pe+"*?",Grt=$Pe+"+?",ynt=class kS{static{t(this,"n")}type;#e;#n;#t=!1;#r=[];#s;#m;#c;#u=!1;#f;#p;#a=!1;constructor(o,f,d={}){this.type=o,o&&(this.#n=!0),this.#s=f,this.#e=this.#s?this.#s.#e:this,this.#f=this.#e===this?d:this.#e.#f,this.#c=this.#e===this?[]:this.#e.#c,o==="!"&&!this.#e.#u&&this.#c.push(this),this.#m=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let o of this.#r)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#r.map(o=>String(o)).join("|")+")":this.#p=this.#r.map(o=>String(o)).join("")}#i(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let o;for(;o=this.#c.pop();){if(o.type!=="!")continue;let f=o,d=f.#s;for(;d;){for(let y=f.#m+1;!d.type&&y<d.#r.length;y++)for(let x of o.#r){if(typeof x=="string")throw new Error("string part in extglob AST??");x.copyIn(d.#r[y])}f=d,d=f.#s}}return this}push(...o){for(let f of o)if(f!==""){if(typeof f!="string"&&!(f instanceof kS&&f.#s===this))throw new Error("invalid part: "+f);this.#r.push(f)}}toJSON(){let o=this.type===null?this.#r.slice().map(f=>typeof f=="string"?f:f.toJSON()):[this.type,...this.#r.map(f=>f.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#s?.type==="!")&&o.push({}),o}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#m===0)return!0;let o=this.#s;for(let f=0;f<this.#m;f++){let d=o.#r[f];if(!(d instanceof kS&&d.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let o=this.#s?this.#s.#r.length:0;return this.#m===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let f=new kS(this.type,o);for(let d of this.#r)f.copyIn(d);return f}static#o(o,f,d,y){let x=!1,P=!1,F=-1,W=!1;if(f.type===null){let Xe=d,Ue="";for(;Xe<o.length;){let je=o.charAt(Xe++);if(x||je==="\\"){x=!x,Ue+=je;continue}if(P){Xe===F+1?(je==="^"||je==="!")&&(W=!0):je==="]"&&!(Xe===F+2&&W)&&(P=!1),Ue+=je;continue}else if(je==="["){P=!0,F=Xe,W=!1,Ue+=je;continue}if(!y.noext&&Vrt(je)&&o.charAt(Xe)==="("){f.push(Ue),Ue="";let Vt=new kS(je,f);Xe=kS.#o(o,Vt,Xe,y),f.push(Vt);continue}Ue+=je}return f.push(Ue),Xe}let G=d+1,be=new kS(null,f),de=[],se="";for(;G<o.length;){let Xe=o.charAt(G++);if(x||Xe==="\\"){x=!x,se+=Xe;continue}if(P){G===F+1?(Xe==="^"||Xe==="!")&&(W=!0):Xe==="]"&&!(G===F+2&&W)&&(P=!1),se+=Xe;continue}else if(Xe==="["){P=!0,F=G,W=!1,se+=Xe;continue}if(Vrt(Xe)&&o.charAt(G)==="("){be.push(se),se="";let Ue=new kS(Xe,be);be.push(Ue),G=kS.#o(o,Ue,G,y);continue}if(Xe==="|"){be.push(se),se="",de.push(be),be=new kS(null,f);continue}if(Xe===")")return se===""&&f.#r.length===0&&(f.#a=!0),be.push(se),se="",f.push(...de,be),G;se+=Xe}return f.type=null,f.#n=void 0,f.#r=[o.substring(d-1)],G}static fromGlob(o,f={}){let d=new kS(null,void 0,f);return kS.#o(o,d,0,f),d}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let o=this.toString(),[f,d,y,x]=this.toRegExpSource();if(!(y||this.#n||this.#f.nocase&&!this.#f.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return d;let P=(this.#f.nocase?"i":"")+(x?"u":"");return Object.assign(new RegExp(`^${f}$`,P),{_src:f,_glob:o})}get options(){return this.#f}toRegExpSource(o){let f=o??!!this.#f.dot;if(this.#e===this&&this.#i(),!this.type){let W=this.isStart()&&this.isEnd()&&!this.#r.some(se=>typeof se!="string"),G=this.#r.map(se=>{let[Xe,Ue,je,Vt]=typeof se=="string"?kS.#d(se,this.#n,W):se.toRegExpSource(o);return this.#n=this.#n||je,this.#t=this.#t||Vt,Xe}).join(""),be="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&fKt.has(this.#r[0]))){let se=uKt,Xe=f&&se.has(G.charAt(0))||G.startsWith("\\.")&&se.has(G.charAt(2))||G.startsWith("\\.\\.")&&se.has(G.charAt(4)),Ue=!f&&!o&&se.has(G.charAt(0));be=Xe?lKt:Ue?hoe:""}let de="";return this.isEnd()&&this.#e.#u&&this.#s?.type==="!"&&(de="(?:$|\\/)"),[be+G+de,q9(G),this.#n=!!this.#n,this.#t]}let d=this.type==="*"||this.type==="+",y=this.type==="!"?"(?:(?!(?:":"(?:",x=this.#h(f);if(this.isStart()&&this.isEnd()&&!x&&this.type!=="!"){let W=this.toString();return this.#r=[W],this.type=null,this.#n=void 0,[W,q9(this.toString()),!1,!1]}let P=!d||o||f||!hoe?"":this.#h(!0);P===x&&(P=""),P&&(x=`(?:${x})(?:${P})*?`);let F="";if(this.type==="!"&&this.#a)F=(this.isStart()&&!f?hoe:"")+Grt;else{let W=this.type==="!"?"))"+(this.isStart()&&!f&&!o?hoe:"")+Hrt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&P?")":this.type==="*"&&P?")?":`)${this.type}`;F=y+x+W}return[F,q9(x),this.#n=!!this.#n,this.#t]}#h(o){return this.#r.map(f=>{if(typeof f=="string")throw new Error("string type in extglob ast??");let[d,y,x,P]=f.toRegExpSource(o);return this.#t=this.#t||P,d}).filter(f=>!(this.isStart()&&this.isEnd())||!!f).join("|")}static#d(o,f,d=!1){let y=!1,x="",P=!1,F=!1;for(let W=0;W<o.length;W++){let G=o.charAt(W);if(y){y=!1,x+=(_Kt.has(G)?"\\":"")+G;continue}if(G==="*"){if(F)continue;F=!0,x+=d&&/^[*]+$/.test(o)?Grt:Hrt,f=!0;continue}else F=!1;if(G==="\\"){W===o.length-1?x+="\\\\":y=!0;continue}if(G==="["){let[be,de,se,Xe]=oKt(o,W);if(se){x+=be,P=P||de,W+=se-1,f=f||Xe;continue}}if(G==="?"){x+=$Pe,f=!0;continue}x+=pKt(G)}return[x,q9(o),!!f,P]}},vnt=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!1}={})=>f?o?s.replace(/[?*()[\]{}]/g,"[$&]"):s.replace(/[?*()[\]\\{}]/g,"\\$&"):o?s.replace(/[?*()[\]]/g,"[$&]"):s.replace(/[?*()[\]\\]/g,"\\$&"),"tt"),I1=t((s,o,f={})=>(koe(o),!f.nocomment&&o.charAt(0)==="#"?!1:new XN(o,f).match(s)),"O"),dKt=/^\*+([^+@!?\*\[\(]*)$/,mKt=t(s=>o=>!o.startsWith(".")&&o.endsWith(s),"Os"),hKt=t(s=>o=>o.endsWith(s),"Fs"),gKt=t(s=>(s=s.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(s)),"Ds"),yKt=t(s=>(s=s.toLowerCase(),o=>o.toLowerCase().endsWith(s)),"Ms"),vKt=/^\*+\.\*+$/,bKt=t(s=>!s.startsWith(".")&&s.includes("."),"_s"),SKt=t(s=>s!=="."&&s!==".."&&s.includes("."),"Ls"),TKt=/^\.\*+$/,xKt=t(s=>s!=="."&&s!==".."&&s.startsWith("."),"Ps"),EKt=/^\*+$/,CKt=t(s=>s.length!==0&&!s.startsWith("."),"Is"),kKt=t(s=>s.length!==0&&s!=="."&&s!=="..","zs"),wKt=/^\?+([^+@!?\*\[\(]*)?$/,DKt=t(([s,o=""])=>{let f=bnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"Us"),PKt=t(([s,o=""])=>{let f=Snt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"$s"),AKt=t(([s,o=""])=>{let f=Snt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Gs"),NKt=t(([s,o=""])=>{let f=bnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Hs"),bnt=t(([s])=>{let o=s.length;return f=>f.length===o&&!f.startsWith(".")},"Ce"),Snt=t(([s])=>{let o=s.length;return f=>f.length===o&&f!=="."&&f!==".."},"Te"),Tnt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Yrt={win32:{sep:"\\"},posix:{sep:"/"}},IKt=Tnt==="win32"?Yrt.win32.sep:Yrt.posix.sep;I1.sep=IKt;var N1=Symbol("globstar **");I1.GLOBSTAR=N1;var OKt="[^/]",FKt=OKt+"*?",LKt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",RKt="(?:(?!(?:\\/|^)\\.).)*?",MKt=t((s,o={})=>f=>I1(f,s,o),"Js");I1.filter=MKt;var aT=t((s,o={})=>Object.assign({},s,o),"N"),jKt=t(s=>{if(!s||typeof s!="object"||!Object.keys(s).length)return I1;let o=I1;return Object.assign((f,d,y={})=>o(f,d,aT(s,y)),{Minimatch:class extends o.Minimatch{static{t(this,"Minimatch")}constructor(f,d={}){super(f,aT(s,d))}static defaults(f){return o.defaults(aT(s,f)).Minimatch}},AST:class extends o.AST{static{t(this,"AST")}constructor(f,d,y={}){super(f,d,aT(s,y))}static fromGlob(f,d={}){return o.AST.fromGlob(f,aT(s,d))}},unescape:t((f,d={})=>o.unescape(f,aT(s,d)),"unescape"),escape:t((f,d={})=>o.escape(f,aT(s,d)),"escape"),filter:t((f,d={})=>o.filter(f,aT(s,d)),"filter"),defaults:t(f=>o.defaults(aT(s,f)),"defaults"),makeRe:t((f,d={})=>o.makeRe(f,aT(s,d)),"makeRe"),braceExpand:t((f,d={})=>o.braceExpand(f,aT(s,d)),"braceExpand"),match:t((f,d,y={})=>o.match(f,d,aT(s,y)),"match"),sep:o.sep,GLOBSTAR:N1})},"Zs");I1.defaults=jKt;var xnt=t((s,o={})=>(koe(s),o.nobrace||!/\{(?:(?!\{).)*\}/.test(s)?[s]:eKt(s,{max:o.braceExpandMax})),"ke");I1.braceExpand=xnt;var BKt=t((s,o={})=>new XN(s,o).makeRe(),"Qs");I1.makeRe=BKt;var UKt=t((s,o,f={})=>{let d=new XN(o,f);return s=s.filter(y=>d.match(y)),d.options.nonull&&!s.length&&s.push(o),s},"ti");I1.match=UKt;var Krt=/[?*]|[+@!]\(.*?\)|\[|\]/,zKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ei"),XN=class{static{t(this,"D")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(s,o={}){koe(s),o=o||{},this.options=o,this.pattern=s,this.platform=o.platform||Tnt,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!o.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!o.nonegate,this.comment=!1,this.empty=!1,this.partial=!!o.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=o.windowsNoMagicRoot!==void 0?o.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let s of this.set)for(let o of s)if(typeof o!="string")return!0;return!1}debug(...s){}make(){let s=this.pattern,o=this.options;if(!o.nocomment&&s.charAt(0)==="#"){this.comment=!0;return}if(!s){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],o.debug&&(this.debug=(...y)=>console.error(...y)),this.debug(this.pattern,this.globSet);let f=this.globSet.map(y=>this.slashSplit(y));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let d=this.globParts.map((y,x,P)=>{if(this.isWindows&&this.windowsNoMagicRoot){let F=y[0]===""&&y[1]===""&&(y[2]==="?"||!Krt.test(y[2]))&&!Krt.test(y[3]),W=/^[a-z]:/i.test(y[0]);if(F)return[...y.slice(0,4),...y.slice(4).map(G=>this.parse(G))];if(W)return[y[0],...y.slice(1).map(G=>this.parse(G))]}return y.map(F=>this.parse(F))});if(this.debug(this.pattern,d),this.set=d.filter(y=>y.indexOf(!1)===-1),this.isWindows)for(let y=0;y<this.set.length;y++){let x=this.set[y];x[0]===""&&x[1]===""&&this.globParts[y][2]==="?"&&typeof x[3]=="string"&&/^[a-z]:$/i.test(x[3])&&(x[2]="?")}this.debug(this.pattern,this.set)}preprocess(s){if(this.options.noglobstar)for(let f=0;f<s.length;f++)for(let d=0;d<s[f].length;d++)s[f][d]==="**"&&(s[f][d]="*");let{optimizationLevel:o=1}=this.options;return o>=2?(s=this.firstPhasePreProcess(s),s=this.secondPhasePreProcess(s)):o>=1?s=this.levelOneOptimize(s):s=this.adjascentGlobstarOptimize(s),s}adjascentGlobstarOptimize(s){return s.map(o=>{let f=-1;for(;(f=o.indexOf("**",f+1))!==-1;){let d=f;for(;o[d+1]==="**";)d++;d!==f&&o.splice(f,d-f)}return o})}levelOneOptimize(s){return s.map(o=>(o=o.reduce((f,d)=>{let y=f[f.length-1];return d==="**"&&y==="**"?f:d===".."&&y&&y!==".."&&y!=="."&&y!=="**"?(f.pop(),f):(f.push(d),f)},[]),o.length===0?[""]:o))}levelTwoFileOptimize(s){Array.isArray(s)||(s=this.slashSplit(s));let o=!1;do{if(o=!1,!this.preserveMultipleSlashes){for(let d=1;d<s.length-1;d++){let y=s[d];d===1&&y===""&&s[0]===""||(y==="."||y==="")&&(o=!0,s.splice(d,1),d--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(o=!0,s.pop())}let f=0;for(;(f=s.indexOf("..",f+1))!==-1;){let d=s[f-1];d&&d!=="."&&d!==".."&&d!=="**"&&(o=!0,s.splice(f-1,2),f-=2)}}while(o);return s.length===0?[""]:s}firstPhasePreProcess(s){let o=!1;do{o=!1;for(let f of s){let d=-1;for(;(d=f.indexOf("**",d+1))!==-1;){let x=d;for(;f[x+1]==="**";)x++;x>d&&f.splice(d+1,x-d);let P=f[d+1],F=f[d+2],W=f[d+3];if(P!==".."||!F||F==="."||F===".."||!W||W==="."||W==="..")continue;o=!0,f.splice(d,1);let G=f.slice(0);G[d]="**",s.push(G),d--}if(!this.preserveMultipleSlashes){for(let x=1;x<f.length-1;x++){let P=f[x];x===1&&P===""&&f[0]===""||(P==="."||P==="")&&(o=!0,f.splice(x,1),x--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(o=!0,f.pop())}let y=0;for(;(y=f.indexOf("..",y+1))!==-1;){let x=f[y-1];if(x&&x!=="."&&x!==".."&&x!=="**"){o=!0;let P=y===1&&f[y+1]==="**"?["."]:[];f.splice(y-1,2,...P),f.length===0&&f.push(""),y-=2}}}}while(o);return s}secondPhasePreProcess(s){for(let o=0;o<s.length-1;o++)for(let f=o+1;f<s.length;f++){let d=this.partsMatch(s[o],s[f],!this.preserveMultipleSlashes);if(d){s[o]=[],s[f]=d;break}}return s.filter(o=>o.length)}partsMatch(s,o,f=!1){let d=0,y=0,x=[],P="";for(;d<s.length&&y<o.length;)if(s[d]===o[y])x.push(P==="b"?o[y]:s[d]),d++,y++;else if(f&&s[d]==="**"&&o[y]===s[d+1])x.push(s[d]),d++;else if(f&&o[y]==="**"&&s[d]===o[y+1])x.push(o[y]),y++;else if(s[d]==="*"&&o[y]&&(this.options.dot||!o[y].startsWith("."))&&o[y]!=="**"){if(P==="b")return!1;P="a",x.push(s[d]),d++,y++}else if(o[y]==="*"&&s[d]&&(this.options.dot||!s[d].startsWith("."))&&s[d]!=="**"){if(P==="a")return!1;P="b",x.push(o[y]),d++,y++}else return!1;return s.length===o.length&&x}parseNegate(){if(this.nonegate)return;let s=this.pattern,o=!1,f=0;for(let d=0;d<s.length&&s.charAt(d)==="!";d++)o=!o,f++;f&&(this.pattern=s.slice(f)),this.negate=o}matchOne(s,o,f=!1){let d=this.options;if(this.isWindows){let Ue=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),je=!Ue&&s[0]===""&&s[1]===""&&s[2]==="?"&&/^[a-z]:$/i.test(s[3]),Vt=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),Ut=!Vt&&o[0]===""&&o[1]===""&&o[2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3]),Ir=je?3:Ue?0:void 0,wn=Ut?3:Vt?0:void 0;if(typeof Ir=="number"&&typeof wn=="number"){let[sn,Jn]=[s[Ir],o[wn]];sn.toLowerCase()===Jn.toLowerCase()&&(o[wn]=sn,wn>Ir?o=o.slice(wn):Ir>wn&&(s=s.slice(Ir)))}}let{optimizationLevel:y=1}=this.options;y>=2&&(s=this.levelTwoFileOptimize(s)),this.debug("matchOne",this,{file:s,pattern:o}),this.debug("matchOne",s.length,o.length);for(var x=0,P=0,F=s.length,W=o.length;x<F&&P<W;x++,P++){this.debug("matchOne loop");var G=o[P],be=s[x];if(this.debug(o,G,be),G===!1)return!1;if(G===N1){this.debug("GLOBSTAR",[o,G,be]);var de=x,se=P+1;if(se===W){for(this.debug("** at the end");x<F;x++)if(s[x]==="."||s[x]===".."||!d.dot&&s[x].charAt(0)===".")return!1;return!0}for(;de<F;){var Xe=s[de];if(this.debug(`
566
566
  globstar while`,s,de,o,se,Xe),this.matchOne(s.slice(de),o.slice(se),f))return this.debug("globstar found match!",de,F,Xe),!0;if(Xe==="."||Xe===".."||!d.dot&&Xe.charAt(0)==="."){this.debug("dot detected!",s,de,o,se);break}this.debug("globstar swallow a segment, and continue"),de++}return!!(f&&(this.debug(`
567
- >>> no match, partial?`,s,de,o,se),de===F))}let Ue;if(typeof G=="string"?(Ue=be===G,this.debug("string match",G,be,Ue)):(Ue=G.test(be),this.debug("pattern match",G,be,Ue)),!Ue)return!1}if(x===F&&P===W)return!0;if(x===F)return f;if(P===W)return x===F-1&&s[x]==="";throw new Error("wtf?")}braceExpand(){return xnt(this.pattern,this.options)}parse(s){koe(s);let o=this.options;if(s==="**")return N1;if(s==="")return"";let f,d=null;(f=s.match(EKt))?d=o.dot?kKt:CKt:(f=s.match(dKt))?d=(o.nocase?o.dot?yKt:gKt:o.dot?hKt:mKt)(f[1]):(f=s.match(wKt))?d=(o.nocase?o.dot?PKt:DKt:o.dot?AKt:NKt)(f):(f=s.match(vKt))?d=o.dot?SKt:bKt:(f=s.match(TKt))&&(d=xKt);let y=ynt.fromGlob(s,this.options).toMMPattern();return d&&typeof y=="object"&&Reflect.defineProperty(y,"test",{value:d}),y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let s=this.set;if(!s.length)return this.regexp=!1,this.regexp;let o=this.options,f=o.noglobstar?FKt:o.dot?LKt:RKt,d=new Set(o.nocase?["i"]:[]),y=s.map(F=>{let W=F.map(be=>{if(be instanceof RegExp)for(let de of be.flags.split(""))d.add(de);return typeof be=="string"?zKt(be):be===N1?N1:be._src});W.forEach((be,de)=>{let se=W[de+1],Xe=W[de-1];be!==N1||Xe===N1||(Xe===void 0?se!==void 0&&se!==N1?W[de+1]="(?:\\/|"+f+"\\/)?"+se:W[de]=f:se===void 0?W[de-1]=Xe+"(?:\\/|\\/"+f+")?":se!==N1&&(W[de-1]=Xe+"(?:\\/|\\/"+f+"\\/)"+se,W[de+1]=N1))});let G=W.filter(be=>be!==N1);if(this.partial&&G.length>=1){let be=[];for(let de=1;de<=G.length;de++)be.push(G.slice(0,de).join("/"));return"(?:"+be.join("|")+")"}return G.join("/")}).join("|"),[x,P]=s.length>1?["(?:",")"]:["",""];y="^"+x+y+P+"$",this.partial&&(y="^(?:\\/|"+x+y.slice(1,-1)+P+")$"),this.negate&&(y="^(?!"+y+").+$");try{this.regexp=new RegExp(y,[...d].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(s){return this.preserveMultipleSlashes?s.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(s)?["",...s.split(/\/+/)]:s.split(/\/+/)}match(s,o=this.partial){if(this.debug("match",s,this.pattern),this.comment)return!1;if(this.empty)return s==="";if(s==="/"&&o)return!0;let f=this.options;this.isWindows&&(s=s.split("\\").join("/"));let d=this.slashSplit(s);this.debug(this.pattern,"split",d);let y=this.set;this.debug(this.pattern,"set",y);let x=d[d.length-1];if(!x)for(let P=d.length-2;!x&&P>=0;P--)x=d[P];for(let P=0;P<y.length;P++){let F=y[P],W=d;if(f.matchBase&&F.length===1&&(W=[x]),this.matchOne(W,F,o))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(s){return I1.defaults(s).Minimatch}};I1.AST=ynt;I1.Minimatch=XN;I1.escape=vnt;I1.unescape=q9;var JKt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ent=new Set,BPe=typeof process=="object"&&process?process:{},Cnt=t((s,o,f,d)=>{typeof BPe.emitWarning=="function"?BPe.emitWarning(s,o,f,d):console.error(`[${f}] ${o}: ${s}`)},"Fe"),woe=globalThis.AbortController,Xrt=globalThis.AbortSignal;if(typeof woe>"u"){Xrt=class{static{t(this,"Re")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,d){this._onabort.push(d)}},woe=class{static{t(this,"At")}constructor(){o()}signal=new Xrt;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let d of this.signal._onabort)d(f);this.signal.onabort?.(f)}}};let s=BPe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=t(()=>{s&&(s=!1,Cnt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))},"t")}var WKt=t(s=>!Ent.has(s),"ii"),KN=t(s=>s&&s===Math.floor(s)&&s>0&&isFinite(s),"q"),knt=t(s=>KN(s)?s<=Math.pow(2,8)?Uint8Array:s<=Math.pow(2,16)?Uint16Array:s<=Math.pow(2,32)?Uint32Array:s<=Number.MAX_SAFE_INTEGER?Eoe:null:null,"De"),Eoe=class extends Array{static{t(this,"Tt")}constructor(s){super(s),this.fill(0)}},qKt=class xV{static{t(this,"ct")}heap;length;static#e=!1;static create(o){let f=knt(o);if(!f)return[];xV.#e=!0;let d=new xV(o,f);return xV.#e=!1,d}constructor(o,f){if(!xV.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Poe=class wnt{static{t(this,"Me")}#e;#n;#t;#r;#s;#m;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#f;#p;#a;#i;#o;#h;#d;#_;#y;#b;#v;#C;#k;#S;#E;#g;#A;#l;#O;static unsafeExposeInternals(o){return{starts:o.#k,ttls:o.#S,autopurgeTimers:o.#E,sizes:o.#C,keyMap:o.#a,keyList:o.#i,valList:o.#o,next:o.#h,prev:o.#d,get head(){return o.#_},get tail(){return o.#y},free:o.#b,isBackgroundFetch:t(f=>o.#T(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>o.#W(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>o.#j(f),"moveToTail"),indexes:t(f=>o.#R(f),"indexes"),rindexes:t(f=>o.#L(f),"rindexes"),isStale:t(f=>o.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#p}get size(){return this.#f}get fetchMethod(){return this.#m}get memoMethod(){return this.#c}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:W,dispose:G,onInsert:be,disposeAfter:de,noDisposeOnSet:se,noUpdateTTL:Xe,maxSize:Ue=0,maxEntrySize:je=0,sizeCalculation:Vt,fetchMethod:Ut,memoMethod:Ir,noDeleteOnFetchRejection:wn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Jn,allowStaleOnFetchAbort:kr,ignoreFetchAbort:yr,perf:xs}=o;if(xs!==void 0&&typeof xs?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=xs??JKt,f!==0&&!KN(f))throw new TypeError("max option must be a nonnegative integer");let bi=f?knt(f):Array;if(!bi)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ue,this.maxEntrySize=je||this.#n,this.sizeCalculation=Vt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ir!==void 0&&typeof Ir!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=Ir,Ut!==void 0&&typeof Ut!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#m=Ut,this.#A=!!Ut,this.#a=new Map,this.#i=new Array(f).fill(void 0),this.#o=new Array(f).fill(void 0),this.#h=new bi(f),this.#d=new bi(f),this.#_=0,this.#y=0,this.#b=qKt.create(f),this.#f=0,this.#p=0,typeof G=="function"&&(this.#t=G),typeof be=="function"&&(this.#r=be),typeof de=="function"?(this.#s=de,this.#v=[]):(this.#s=void 0,this.#v=void 0),this.#g=!!this.#t,this.#O=!!this.#r,this.#l=!!this.#s,this.noDisposeOnSet=!!se,this.noUpdateTTL=!!Xe,this.noDeleteOnFetchRejection=!!wn,this.allowStaleOnFetchRejection=!!Jn,this.allowStaleOnFetchAbort=!!kr,this.ignoreFetchAbort=!!yr,this.maxEntrySize!==0){if(this.#n!==0&&!KN(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!KN(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!W,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=KN(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!KN(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let fc="LRU_CACHE_UNBOUNDED";WKt(fc)&&(Ent.add(fc),Cnt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",fc,wnt))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#N(){let o=new Eoe(this.#e),f=new Eoe(this.#e);this.#S=o,this.#k=f;let d=this.ttlAutopurge?new Array(this.#e):void 0;this.#E=d,this.#$=(P,F,W=this.#u.now())=>{if(f[P]=F!==0?W:0,o[P]=F,d?.[P]&&(clearTimeout(d[P]),d[P]=void 0),F!==0&&d){let G=setTimeout(()=>{this.#P(P)&&this.#B(this.#i[P],"expire")},F+1);G.unref&&G.unref(),d[P]=G}},this.#w=P=>{f[P]=o[P]!==0?this.#u.now():0},this.#D=(P,F)=>{if(o[F]){let W=o[F],G=f[F];if(!W||!G)return;P.ttl=W,P.start=G,P.now=y||x();let be=P.now-G;P.remainingTTL=W-be}};let y=0,x=t(()=>{let P=this.#u.now();if(this.ttlResolution>0){y=P;let F=setTimeout(()=>y=0,this.ttlResolution);F.unref&&F.unref()}return P},"r");this.getRemainingTTL=P=>{let F=this.#a.get(P);if(F===void 0)return 0;let W=o[F],G=f[F];if(!W||!G)return 1/0;let be=(y||x())-G;return W-be},this.#P=P=>{let F=f[P],W=o[P];return!!W&&!!F&&(y||x())-F>W}}#w=t(()=>{},"#k");#D=t(()=>{},"#N");#$=t(()=>{},"#j");#P=t(()=>!1,"#v");#J(){let o=new Eoe(this.#e);this.#p=0,this.#C=o,this.#U=f=>{this.#p-=o[f],o[f]=0},this.#F=(f,d,y,x)=>{if(this.#T(d))return 0;if(!KN(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!KN(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#I=(f,d,y)=>{if(o[f]=d,this.#n){let x=this.#n-o[f];for(;this.#p>x;)this.#x(!0)}this.#p+=o[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#p)}}#U=t(o=>{},"#P");#I=t((o,f,d)=>{},"#L");#F=t((o,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#I");*#R({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#y;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#_));)f=this.#d[f]}*#L({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#_;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#y));)f=this.#h[f]}#z(o){return o!==void 0&&this.#a.get(this.#i[o])===o}*entries(){for(let o of this.#R())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*rentries(){for(let o of this.#L())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*keys(){for(let o of this.#R()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*rkeys(){for(let o of this.#L()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*values(){for(let o of this.#R())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}*rvalues(){for(let o of this.#L())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,f={}){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;if(x!==void 0&&o(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(o,f=this){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}rforEach(o,f=this){for(let d of this.#L()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}purgeStale(){let o=!1;for(let f of this.#L({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),o=!0);return o}info(o){let f=this.#a.get(o);if(f===void 0)return;let d=this.#o[f],y=this.#T(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#S&&this.#k){let P=this.#S[f],F=this.#k[f];if(P&&F){let W=P-(this.#u.now()-F);x.ttl=W,x.start=Date.now()}}return this.#C&&(x.size=this.#C[f]),x}dump(){let o=[];for(let f of this.#R({allowStale:!0})){let d=this.#i[f],y=this.#o[f],x=this.#T(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#S&&this.#k){P.ttl=this.#S[f];let F=this.#u.now()-this.#k[f];P.start=Math.floor(Date.now()-F)}this.#C&&(P.size=this.#C[f]),o.unshift([d,P])}return o}load(o){this.clear();for(let[f,d]of o){if(d.start){let y=Date.now()-d.start;d.start=this.#u.now()-y}this.set(f,d.value,d)}}set(o,f,d={}){if(f===void 0)return this.delete(o),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:W}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,be=this.#F(o,f,d.size||0,F);if(this.maxEntrySize&&be>this.maxEntrySize)return W&&(W.set="miss",W.maxEntrySizeExceeded=!0),this.#B(o,"set"),this;let de=this.#f===0?void 0:this.#a.get(o);if(de===void 0)de=this.#f===0?this.#y:this.#b.length!==0?this.#b.pop():this.#f===this.#e?this.#x(!1):this.#f,this.#i[de]=o,this.#o[de]=f,this.#a.set(o,de),this.#h[this.#y]=de,this.#d[de]=this.#y,this.#y=de,this.#f++,this.#I(de,be,W),W&&(W.set="add"),G=!1,this.#O&&this.#r?.(f,o,"add");else{this.#j(de);let se=this.#o[de];if(f!==se){if(this.#A&&this.#T(se)){se.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=se;Xe!==void 0&&!P&&(this.#g&&this.#t?.(Xe,o,"set"),this.#l&&this.#v?.push([Xe,o,"set"]))}else P||(this.#g&&this.#t?.(se,o,"set"),this.#l&&this.#v?.push([se,o,"set"]));if(this.#U(de),this.#I(de,be,W),this.#o[de]=f,W){W.set="replace";let Xe=se&&this.#T(se)?se.__staleWhileFetching:se;Xe!==void 0&&(W.oldValue=Xe)}}else W&&(W.set="update");this.#O&&this.onInsert?.(f,o,f===se?"update":"replace")}if(y!==0&&!this.#S&&this.#N(),this.#S&&(G||this.#$(de,y,x),W&&this.#D(W,de)),!P&&this.#l&&this.#v){let se=this.#v,Xe;for(;Xe=se?.shift();)this.#s?.(...Xe)}return this}pop(){try{for(;this.#f;){let o=this.#o[this.#_];if(this.#x(!0),this.#T(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#l&&this.#v){let o=this.#v,f;for(;f=o?.shift();)this.#s?.(...f)}}}#x(o){let f=this.#_,d=this.#i[f],y=this.#o[f];return this.#A&&this.#T(y)?y.__abortController.abort(new Error("evicted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(y,d,"evict"),this.#l&&this.#v?.push([y,d,"evict"])),this.#U(f),this.#E?.[f]&&(clearTimeout(this.#E[f]),this.#E[f]=void 0),o&&(this.#i[f]=void 0,this.#o[f]=void 0,this.#b.push(f)),this.#f===1?(this.#_=this.#y=0,this.#b.length=0):this.#_=this.#h[f],this.#a.delete(d),this.#f--,f}has(o,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#a.get(o);if(x!==void 0){let P=this.#o[x];if(this.#T(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#D(y,x));else return d&&this.#w(x),y&&(y.has="hit",this.#D(y,x)),!0}else y&&(y.has="miss");return!1}peek(o,f={}){let{allowStale:d=this.allowStale}=f,y=this.#a.get(o);if(y===void 0||!d&&this.#P(y))return;let x=this.#o[y];return this.#T(x)?x.__staleWhileFetching:x}#W(o,f,d,y){let x=f===void 0?void 0:this.#o[f];if(this.#T(x))return x;let P=new woe,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let W={signal:P.signal,options:d,context:y},G=t((je,Vt=!1)=>{let{aborted:Ut}=P.signal,Ir=d.ignoreFetchAbort&&je!==void 0,wn=d.ignoreFetchAbort||!!(d.allowStaleOnFetchAbort&&je!==void 0);if(d.status&&(Ut&&!Vt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Ir&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),Ut&&!Ir&&!Vt)return de(P.signal.reason,wn);let sn=Xe,Jn=this.#o[f];return(Jn===Xe||Ir&&Vt&&Jn===void 0)&&(je===void 0?sn.__staleWhileFetching!==void 0?this.#o[f]=sn.__staleWhileFetching:this.#B(o,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(o,je,W.options))),je},"l"),be=t(je=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=je),de(je,!1)),"u"),de=t((je,Vt)=>{let{aborted:Ut}=P.signal,Ir=Ut&&d.allowStaleOnFetchAbort,wn=Ir||d.allowStaleOnFetchRejection,sn=wn||d.noDeleteOnFetchRejection,Jn=Xe;if(this.#o[f]===Xe&&(!sn||!Vt&&Jn.__staleWhileFetching===void 0?this.#B(o,"fetch"):Ir||(this.#o[f]=Jn.__staleWhileFetching)),wn)return d.status&&Jn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),Jn.__staleWhileFetching;if(Jn.__returned===Jn)throw je},"c"),se=t((je,Vt)=>{let Ut=this.#m?.(o,x,W);Ut&&Ut instanceof Promise&&Ut.then(Ir=>je(Ir===void 0?void 0:Ir),Vt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(je(void 0),d.allowStaleOnFetchAbort&&(je=t(Ir=>G(Ir,!0),"p")))})},"d");d.status&&(d.status.fetchDispatched=!0);let Xe=new Promise(se).then(G,be),Ue=Object.assign(Xe,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(o,Ue,{...W.options,status:void 0}),f=this.#a.get(o)):this.#o[f]=Ue,Ue}#T(o){if(!this.#A)return!1;let f=o;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof woe}async fetch(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:W=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:be=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:se=this.allowStaleOnFetchRejection,ignoreFetchAbort:Xe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ue=this.allowStaleOnFetchAbort,context:je,forceRefresh:Vt=!1,status:Ut,signal:Ir}=f;if(!this.#A)return Ut&&(Ut.fetch="get"),this.get(o,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:Ut});let wn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:W,sizeCalculation:G,noUpdateTTL:be,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:se,allowStaleOnFetchAbort:Ue,ignoreFetchAbort:Xe,status:Ut,signal:Ir},sn=this.#a.get(o);if(sn===void 0){Ut&&(Ut.fetch="miss");let Jn=this.#W(o,sn,wn,je);return Jn.__returned=Jn}else{let Jn=this.#o[sn];if(this.#T(Jn)){let bi=d&&Jn.__staleWhileFetching!==void 0;return Ut&&(Ut.fetch="inflight",bi&&(Ut.returnedStale=!0)),bi?Jn.__staleWhileFetching:Jn.__returned=Jn}let kr=this.#P(sn);if(!Vt&&!kr)return Ut&&(Ut.fetch="hit"),this.#j(sn),y&&this.#w(sn),Ut&&this.#D(Ut,sn),Jn;let yr=this.#W(o,sn,wn,je),xs=yr.__staleWhileFetching!==void 0&&d;return Ut&&(Ut.fetch=kr?"stale":"refresh",xs&&kr&&(Ut.returnedStale=!0)),xs?yr.__staleWhileFetching:yr.__returned=yr}}async forceFetch(o,f={}){let d=await this.fetch(o,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(o,f={}){let d=this.#c;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(o,P);if(!x&&F!==void 0)return F;let W=d(o,F,{options:P,context:y});return this.set(o,W,P),W}get(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#a.get(o);if(F!==void 0){let W=this.#o[F],G=this.#T(W);return P&&this.#D(P,F),this.#P(F)?(P&&(P.get="stale"),G?(P&&d&&W.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?W.__staleWhileFetching:void 0):(x||this.#B(o,"expire"),P&&d&&(P.returnedStale=!0),d?W:void 0)):(P&&(P.get="hit"),G?W.__staleWhileFetching:(this.#j(F),y&&this.#w(F),W))}else P&&(P.get="miss")}#M(o,f){this.#d[f]=o,this.#h[o]=f}#j(o){o!==this.#y&&(o===this.#_?this.#_=this.#h[o]:this.#M(this.#d[o],this.#h[o]),this.#M(this.#y,o),this.#y=o)}delete(o){return this.#B(o,"delete")}#B(o,f){let d=!1;if(this.#f!==0){let y=this.#a.get(o);if(y!==void 0)if(this.#E?.[y]&&(clearTimeout(this.#E?.[y]),this.#E[y]=void 0),d=!0,this.#f===1)this.#q(f);else{this.#U(y);let x=this.#o[y];if(this.#T(x)?x.__abortController.abort(new Error("deleted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(x,o,f),this.#l&&this.#v?.push([x,o,f])),this.#a.delete(o),this.#i[y]=void 0,this.#o[y]=void 0,y===this.#y)this.#y=this.#d[y];else if(y===this.#_)this.#_=this.#h[y];else{let P=this.#d[y];this.#h[P]=this.#h[y];let F=this.#h[y];this.#d[F]=this.#d[y]}this.#f--,this.#b.push(y)}}if(this.#l&&this.#v?.length){let y=this.#v,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#q("delete")}#q(o){for(let f of this.#L({allowStale:!0})){let d=this.#o[f];if(this.#T(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#g&&this.#t?.(d,y,o),this.#l&&this.#v?.push([d,y,o])}}if(this.#a.clear(),this.#o.fill(void 0),this.#i.fill(void 0),this.#S&&this.#k){this.#S.fill(0),this.#k.fill(0);for(let f of this.#E??[])f!==void 0&&clearTimeout(f);this.#E?.fill(void 0)}if(this.#C&&this.#C.fill(0),this.#_=0,this.#y=0,this.#b.length=0,this.#p=0,this.#f=0,this.#l&&this.#v){let f=this.#v,d;for(;d=f?.shift();)this.#s?.(...d)}}},Zrt=typeof process=="object"&&process?process:{stdout:null,stderr:null},sXt=t(s=>!!s&&typeof s=="object"&&(s instanceof Doe||s instanceof Dnt||aXt(s)||oXt(s)),"oi"),aXt=t(s=>!!s&&typeof s=="object"&&s instanceof JPe&&typeof s.pipe=="function"&&s.pipe!==Dnt.Writable.prototype.pipe,"hi"),oXt=t(s=>!!s&&typeof s=="object"&&s instanceof JPe&&typeof s.write=="function"&&typeof s.end=="function","ai"),BP=Symbol("EOF"),UP=Symbol("maybeEmitEnd"),YN=Symbol("emittedEnd"),goe=Symbol("emittingEnd"),gV=Symbol("emittedError"),yoe=Symbol("closed"),Qrt=Symbol("read"),voe=Symbol("flush"),ent=Symbol("flushChunk"),vE=Symbol("encoding"),J9=Symbol("decoder"),Fg=Symbol("flowing"),yV=Symbol("paused"),W9=Symbol("resume"),Lg=Symbol("buffer"),A1=Symbol("pipes"),Rg=Symbol("bufferLength"),IPe=Symbol("bufferPush"),boe=Symbol("bufferShift"),Ey=Symbol("objectMode"),Em=Symbol("destroyed"),OPe=Symbol("error"),FPe=Symbol("emitData"),tnt=Symbol("emitEnd"),LPe=Symbol("emitEnd2"),Ik=Symbol("async"),RPe=Symbol("abort"),Soe=Symbol("aborted"),vV=Symbol("signal"),dO=Symbol("dataListeners"),CS=Symbol("discarded"),bV=t(s=>Promise.resolve().then(s),"mt"),cXt=t(s=>s(),"li"),lXt=t(s=>s==="end"||s==="finish"||s==="prefinish","ci"),uXt=t(s=>s instanceof ArrayBuffer||!!s&&typeof s=="object"&&s.constructor&&s.constructor.name==="ArrayBuffer"&&s.byteLength>=0,"fi"),fXt=t(s=>!Buffer.isBuffer(s)&&ArrayBuffer.isView(s),"ui"),Pnt=class{static{t(this,"Mt")}src;dest;opts;ondrain;constructor(s,o,f){this.src=s,this.dest=o,this.opts=f,this.ondrain=()=>s[W9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(s){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},_Xt=class extends Pnt{static{t(this,"te")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(s,o,f){super(s,o,f),this.proxyErrors=d=>this.dest.emit("error",d),s.on("error",this.proxyErrors)}},pXt=t(s=>!!s.objectMode,"di"),dXt=t(s=>!s.objectMode&&!!s.encoding&&s.encoding!=="buffer","pi"),Doe=class extends JPe{static{t(this,"V")}[Fg]=!1;[yV]=!1;[A1]=[];[Lg]=[];[Ey];[vE];[Ik];[J9];[BP]=!1;[YN]=!1;[goe]=!1;[yoe]=!1;[gV]=null;[Rg]=0;[Em]=!1;[vV];[Soe]=!1;[dO]=0;[CS]=!1;writable=!0;readable=!0;constructor(...s){let o=s[0]||{};if(super(),o.objectMode&&typeof o.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");pXt(o)?(this[Ey]=!0,this[vE]=null):dXt(o)?(this[vE]=o.encoding,this[Ey]=!1):(this[Ey]=!1,this[vE]=null),this[Ik]=!!o.async,this[J9]=this[vE]?new iXt(this[vE]):null,o&&o.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:t(()=>this[Lg],"get")}),o&&o.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:t(()=>this[A1],"get")});let{signal:f}=o;f&&(this[vV]=f,f.aborted?this[RPe]():f.addEventListener("abort",()=>this[RPe]()))}get bufferLength(){return this[Rg]}get encoding(){return this[vE]}set encoding(s){throw new Error("Encoding must be set at instantiation time")}setEncoding(s){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ey]}set objectMode(s){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ik]}set async(s){this[Ik]=this[Ik]||!!s}[RPe](){this[Soe]=!0,this.emit("abort",this[vV]?.reason),this.destroy(this[vV]?.reason)}get aborted(){return this[Soe]}set aborted(s){}write(s,o,f){if(this[Soe])return!1;if(this[BP])throw new Error("write after end");if(this[Em])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof o=="function"&&(f=o,o="utf8"),o||(o="utf8");let d=this[Ik]?bV:cXt;if(!this[Ey]&&!Buffer.isBuffer(s)){if(fXt(s))s=Buffer.from(s.buffer,s.byteOffset,s.byteLength);else if(uXt(s))s=Buffer.from(s);else if(typeof s!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ey]?(this[Fg]&&this[Rg]!==0&&this[voe](!0),this[Fg]?this.emit("data",s):this[IPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):s.length?(typeof s=="string"&&!(o===this[vE]&&!this[J9]?.lastNeed)&&(s=Buffer.from(s,o)),Buffer.isBuffer(s)&&this[vE]&&(s=this[J9].write(s)),this[Fg]&&this[Rg]!==0&&this[voe](!0),this[Fg]?this.emit("data",s):this[IPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):(this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg])}read(s){if(this[Em])return null;if(this[CS]=!1,this[Rg]===0||s===0||s&&s>this[Rg])return this[UP](),null;this[Ey]&&(s=null),this[Lg].length>1&&!this[Ey]&&(this[Lg]=[this[vE]?this[Lg].join(""):Buffer.concat(this[Lg],this[Rg])]);let o=this[Qrt](s||null,this[Lg][0]);return this[UP](),o}[Qrt](s,o){if(this[Ey])this[boe]();else{let f=o;s===f.length||s===null?this[boe]():typeof f=="string"?(this[Lg][0]=f.slice(s),o=f.slice(0,s),this[Rg]-=s):(this[Lg][0]=f.subarray(s),o=f.subarray(0,s),this[Rg]-=s)}return this.emit("data",o),!this[Lg].length&&!this[BP]&&this.emit("drain"),o}end(s,o,f){return typeof s=="function"&&(f=s,s=void 0),typeof o=="function"&&(f=o,o="utf8"),s!==void 0&&this.write(s,o),f&&this.once("end",f),this[BP]=!0,this.writable=!1,(this[Fg]||!this[yV])&&this[UP](),this}[W9](){this[Em]||(!this[dO]&&!this[A1].length&&(this[CS]=!0),this[yV]=!1,this[Fg]=!0,this.emit("resume"),this[Lg].length?this[voe]():this[BP]?this[UP]():this.emit("drain"))}resume(){return this[W9]()}pause(){this[Fg]=!1,this[yV]=!0,this[CS]=!1}get destroyed(){return this[Em]}get flowing(){return this[Fg]}get paused(){return this[yV]}[IPe](s){this[Ey]?this[Rg]+=1:this[Rg]+=s.length,this[Lg].push(s)}[boe](){return this[Ey]?this[Rg]-=1:this[Rg]-=this[Lg][0].length,this[Lg].shift()}[voe](s=!1){do;while(this[ent](this[boe]())&&this[Lg].length);!s&&!this[Lg].length&&!this[BP]&&this.emit("drain")}[ent](s){return this.emit("data",s),this[Fg]}pipe(s,o){if(this[Em])return s;this[CS]=!1;let f=this[YN];return o=o||{},s===Zrt.stdout||s===Zrt.stderr?o.end=!1:o.end=o.end!==!1,o.proxyErrors=!!o.proxyErrors,f?o.end&&s.end():(this[A1].push(o.proxyErrors?new _Xt(this,s,o):new Pnt(this,s,o)),this[Ik]?bV(()=>this[W9]()):this[W9]()),s}unpipe(s){let o=this[A1].find(f=>f.dest===s);o&&(this[A1].length===1?(this[Fg]&&this[dO]===0&&(this[Fg]=!1),this[A1]=[]):this[A1].splice(this[A1].indexOf(o),1),o.unpipe())}addListener(s,o){return this.on(s,o)}on(s,o){let f=super.on(s,o);if(s==="data")this[CS]=!1,this[dO]++,!this[A1].length&&!this[Fg]&&this[W9]();else if(s==="readable"&&this[Rg]!==0)super.emit("readable");else if(lXt(s)&&this[YN])super.emit(s),this.removeAllListeners(s);else if(s==="error"&&this[gV]){let d=o;this[Ik]?bV(()=>d.call(this,this[gV])):d.call(this,this[gV])}return f}removeListener(s,o){return this.off(s,o)}off(s,o){let f=super.off(s,o);return s==="data"&&(this[dO]=this.listeners("data").length,this[dO]===0&&!this[CS]&&!this[A1].length&&(this[Fg]=!1)),f}removeAllListeners(s){let o=super.removeAllListeners(s);return(s==="data"||s===void 0)&&(this[dO]=0,!this[CS]&&!this[A1].length&&(this[Fg]=!1)),o}get emittedEnd(){return this[YN]}[UP](){!this[goe]&&!this[YN]&&!this[Em]&&this[Lg].length===0&&this[BP]&&(this[goe]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yoe]&&this.emit("close"),this[goe]=!1)}emit(s,...o){let f=o[0];if(s!=="error"&&s!=="close"&&s!==Em&&this[Em])return!1;if(s==="data")return!this[Ey]&&!f?!1:this[Ik]?(bV(()=>this[FPe](f)),!0):this[FPe](f);if(s==="end")return this[tnt]();if(s==="close"){if(this[yoe]=!0,!this[YN]&&!this[Em])return!1;let y=super.emit("close");return this.removeAllListeners("close"),y}else if(s==="error"){this[gV]=f,super.emit(OPe,f);let y=!this[vV]||this.listeners("error").length?super.emit("error",f):!1;return this[UP](),y}else if(s==="resume"){let y=super.emit("resume");return this[UP](),y}else if(s==="finish"||s==="prefinish"){let y=super.emit(s);return this.removeAllListeners(s),y}let d=super.emit(s,...o);return this[UP](),d}[FPe](s){for(let f of this[A1])f.dest.write(s)===!1&&this.pause();let o=this[CS]?!1:super.emit("data",s);return this[UP](),o}[tnt](){return this[YN]?!1:(this[YN]=!0,this.readable=!1,this[Ik]?(bV(()=>this[LPe]()),!0):this[LPe]())}[LPe](){if(this[J9]){let o=this[J9].end();if(o){for(let f of this[A1])f.dest.write(o);this[CS]||super.emit("data",o)}}for(let o of this[A1])o.end();let s=super.emit("end");return this.removeAllListeners("end"),s}async collect(){let s=Object.assign([],{dataLength:0});this[Ey]||(s.dataLength=0);let o=this.promise();return this.on("data",f=>{s.push(f),this[Ey]||(s.dataLength+=f.length)}),await o,s}async concat(){if(this[Ey])throw new Error("cannot concat in objectMode");let s=await this.collect();return this[vE]?s.join(""):Buffer.concat(s,s.dataLength)}async promise(){return new Promise((s,o)=>{this.on(Em,()=>o(new Error("stream destroyed"))),this.on("error",f=>o(f)),this.on("end",()=>s())})}[Symbol.asyncIterator](){this[CS]=!1;let s=!1,o=t(async()=>(this.pause(),s=!0,{value:void 0,done:!0}),"e");return{next:t(()=>{if(s)return o();let f=this.read();if(f!==null)return Promise.resolve({done:!1,value:f});if(this[BP])return o();let d,y,x=t(G=>{this.off("data",P),this.off("end",F),this.off(Em,W),o(),y(G)},"h"),P=t(G=>{this.off("error",x),this.off("end",F),this.off(Em,W),this.pause(),d({value:G,done:!!this[BP]})},"a"),F=t(()=>{this.off("error",x),this.off("data",P),this.off(Em,W),o(),d({done:!0,value:void 0})},"l"),W=t(()=>x(new Error("stream destroyed")),"u");return new Promise((G,be)=>{y=be,d=G,this.once(Em,W),this.once("error",x),this.once("end",F),this.once("data",P)})},"next"),throw:o,return:o,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[CS]=!1;let s=!1,o=t(()=>(this.pause(),this.off(OPe,o),this.off(Em,o),this.off("end",o),s=!0,{done:!0,value:void 0}),"e"),f=t(()=>{if(s)return o();let d=this.read();return d===null?o():{done:!1,value:d}},"s");return this.once("end",o),this.once(OPe,o),this.once(Em,o),{next:f,throw:o,return:o,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(s){if(this[Em])return s?this.emit("error",s):this.emit(Em),this;this[Em]=!0,this[CS]=!0,this[Lg].length=0,this[Rg]=0;let o=this;return typeof o.close=="function"&&!this[yoe]&&o.close(),s?this.emit("error",s):this.emit(Em),this}static get isStream(){return sXt}},mXt=ZKt.native,EV={lstatSync:GKt,readdir:YKt,readdirSync:KKt,readlinkSync:XKt,realpathSync:mXt,promises:{lstat:eXt,readdir:tXt,readlink:rXt,realpath:nXt}},Ant=t(s=>!s||s===EV||s===QKt?EV:{...EV,...s,promises:{...EV.promises,...s.promises||{}}},"Ue"),Nnt=/^\\\\\?\\([a-z]:)\\?$/i,hXt=t(s=>s.replace(/\//g,"\\").replace(Nnt,"$1\\"),"Ri"),gXt=/[\\\/]/,cT=0,Int=1,Ont=2,Ok=4,Fnt=6,Lnt=8,mO=10,Rnt=12,oT=15,SV=~oT,MPe=16,rnt=32,CV=64,bE=128,Toe=256,Coe=512,nnt=CV|bE|Coe,yXt=1023,jPe=t(s=>s.isFile()?Lnt:s.isDirectory()?Ok:s.isSymbolicLink()?mO:s.isCharacterDevice()?Ont:s.isBlockDevice()?Fnt:s.isSocket()?Rnt:s.isFIFO()?Int:cT,"ie"),int=new Poe({max:2**12}),kV=t(s=>{let o=int.get(s);if(o)return o;let f=s.normalize("NFKD");return int.set(s,f),f},"bt"),snt=new Poe({max:2**12}),xoe=t(s=>{let o=snt.get(s);if(o)return o;let f=kV(s.toLowerCase());return snt.set(s,f),f},"_t"),ant=class extends Poe{static{t(this,"Wt")}constructor(){super({max:256})}},vXt=class extends Poe{static{t(this,"ne")}constructor(s=16*1024){super({maxSize:s,sizeCalculation:t(o=>o.length+1,"sizeCalculation")})}},Mnt=Symbol("PathScurry setAsCwd"),Gv=class{static{t(this,"R")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#m;get gid(){return this.#m}#c;get rdev(){return this.#c}#u;get blksize(){return this.#u}#f;get ino(){return this.#f}#p;get size(){return this.#p}#a;get blocks(){return this.#a}#i;get atimeMs(){return this.#i}#o;get mtimeMs(){return this.#o}#h;get ctimeMs(){return this.#h}#d;get birthtimeMs(){return this.#d}#_;get atime(){return this.#_}#y;get mtime(){return this.#y}#b;get ctime(){return this.#b}#v;get birthtime(){return this.#v}#C;#k;#S;#E;#g;#A;#l;#O;#N;#w;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(s,o=cT,f,d,y,x,P){this.name=s,this.#C=y?xoe(s):kV(s),this.#l=o&yXt,this.nocase=y,this.roots=d,this.root=f||this,this.#O=x,this.#S=P.fullpath,this.#g=P.relative,this.#A=P.relativePosix,this.parent=P.parent,this.parent?this.#e=this.parent.#e:this.#e=Ant(P.fs)}depth(){return this.#k!==void 0?this.#k:this.parent?this.#k=this.parent.depth()+1:this.#k=0}childrenCache(){return this.#O}resolve(s){if(!s)return this;let o=this.getRootString(s),f=s.substring(o.length).split(this.splitSep);return o?this.getRoot(o).#D(f):this.#D(f)}#D(s){let o=this;for(let f of s)o=o.child(f);return o}children(){let s=this.#O.get(this);if(s)return s;let o=Object.assign([],{provisional:0});return this.#O.set(this,o),this.#l&=~MPe,o}child(s,o){if(s===""||s===".")return this;if(s==="..")return this.parent||this;let f=this.children(),d=this.nocase?xoe(s):kV(s);for(let F of f)if(F.#C===d)return F;let y=this.parent?this.sep:"",x=this.#S?this.#S+y+s:void 0,P=this.newChild(s,cT,{...o,parent:this,fullpath:x});return this.canReaddir()||(P.#l|=bE),f.push(P),P}relative(){if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let s=this.name,o=this.parent;if(!o)return this.#g=this.name;let f=o.relative();return f+(!f||!o.parent?"":this.sep)+s}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let s=this.name,o=this.parent;if(!o)return this.#A=this.fullpathPosix();let f=o.relativePosix();return f+(!f||!o.parent?"":"/")+s}fullpath(){if(this.#S!==void 0)return this.#S;let s=this.name,o=this.parent;if(!o)return this.#S=this.name;let f=o.fullpath()+(o.parent?this.sep:"")+s;return this.#S=f}fullpathPosix(){if(this.#E!==void 0)return this.#E;if(this.sep==="/")return this.#E=this.fullpath();if(!this.parent){let d=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(d)?this.#E=`//?/${d}`:this.#E=d}let s=this.parent,o=s.fullpathPosix(),f=o+(!o||!s.parent?"":"/")+this.name;return this.#E=f}isUnknown(){return(this.#l&oT)===cT}isType(s){return this[`is${s}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#l&oT)===Lnt}isDirectory(){return(this.#l&oT)===Ok}isCharacterDevice(){return(this.#l&oT)===Ont}isBlockDevice(){return(this.#l&oT)===Fnt}isFIFO(){return(this.#l&oT)===Int}isSocket(){return(this.#l&oT)===Rnt}isSymbolicLink(){return(this.#l&mO)===mO}lstatCached(){return this.#l&rnt?this:void 0}readlinkCached(){return this.#N}realpathCached(){return this.#w}readdirCached(){let s=this.children();return s.slice(0,s.provisional)}canReadlink(){if(this.#N)return!0;if(!this.parent)return!1;let s=this.#l&oT;return!(s!==cT&&s!==mO||this.#l&Toe||this.#l&bE)}calledReaddir(){return!!(this.#l&MPe)}isENOENT(){return!!(this.#l&bE)}isNamed(s){return this.nocase?this.#C===xoe(s):this.#C===kV(s)}async readlink(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=await this.#e.promises.readlink(this.fullpath()),f=(await this.parent.realpath())?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}readlinkSync(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=this.#e.readlinkSync(this.fullpath()),f=this.parent.realpathSync()?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}#$(s){this.#l|=MPe;for(let o=s.provisional;o<s.length;o++){let f=s[o];f&&f.#P()}}#P(){this.#l&bE||(this.#l=(this.#l|bE)&SV,this.#J())}#J(){let s=this.children();s.provisional=0;for(let o of s)o.#P()}#U(){this.#l|=Coe,this.#I()}#I(){if(this.#l&CV)return;let s=this.#l;(s&oT)===Ok&&(s&=SV),this.#l=s|CV,this.#J()}#F(s=""){s==="ENOTDIR"||s==="EPERM"?this.#I():s==="ENOENT"?this.#P():this.children().provisional=0}#R(s=""){s==="ENOTDIR"?this.parent.#I():s==="ENOENT"&&this.#P()}#L(s=""){let o=this.#l;o|=Toe,s==="ENOENT"&&(o|=bE),(s==="EINVAL"||s==="UNKNOWN")&&(o&=SV),this.#l=o,s==="ENOTDIR"&&this.parent&&this.parent.#I()}#z(s,o){return this.#W(s,o)||this.#x(s,o)}#x(s,o){let f=jPe(s),d=this.newChild(s.name,f,{parent:this}),y=d.#l&oT;return y!==Ok&&y!==mO&&y!==cT&&(d.#l|=CV),o.unshift(d),o.provisional++,d}#W(s,o){for(let f=o.provisional;f<o.length;f++){let d=o[f];if((this.nocase?xoe(s.name):kV(s.name))===d.#C)return this.#T(s,d,f,o)}}#T(s,o,f,d){let y=o.name;return o.#l=o.#l&SV|jPe(s),y!==s.name&&(o.name=s.name),f!==d.provisional&&(f===d.length-1?d.pop():d.splice(f,1),d.unshift(o)),d.provisional++,o}async lstat(){if((this.#l&bE)===0)try{return this.#M(await this.#e.promises.lstat(this.fullpath())),this}catch(s){this.#R(s.code)}}lstatSync(){if((this.#l&bE)===0)try{return this.#M(this.#e.lstatSync(this.fullpath())),this}catch(s){this.#R(s.code)}}#M(s){let{atime:o,atimeMs:f,birthtime:d,birthtimeMs:y,blksize:x,blocks:P,ctime:F,ctimeMs:W,dev:G,gid:be,ino:de,mode:se,mtime:Xe,mtimeMs:Ue,nlink:je,rdev:Vt,size:Ut,uid:Ir}=s;this.#_=o,this.#i=f,this.#v=d,this.#d=y,this.#u=x,this.#a=P,this.#b=F,this.#h=W,this.#n=G,this.#m=be,this.#f=de,this.#t=se,this.#y=Xe,this.#o=Ue,this.#r=je,this.#c=Vt,this.#p=Ut,this.#s=Ir;let wn=jPe(s);this.#l=this.#l&SV|wn|rnt,wn!==cT&&wn!==Ok&&wn!==mO&&(this.#l|=CV)}#j=[];#B=!1;#q(s){this.#B=!1;let o=this.#j.slice();this.#j.length=0,o.forEach(f=>f(null,s))}readdirCB(s,o=!1){if(!this.canReaddir()){o?s(null,[]):queueMicrotask(()=>s(null,[]));return}let f=this.children();if(this.calledReaddir()){let y=f.slice(0,f.provisional);o?s(null,y):queueMicrotask(()=>s(null,y));return}if(this.#j.push(s),this.#B)return;this.#B=!0;let d=this.fullpath();this.#e.readdir(d,{withFileTypes:!0},(y,x)=>{if(y)this.#F(y.code),f.provisional=0;else{for(let P of x)this.#z(P,f);this.#$(f)}this.#q(f.slice(0,f.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();if(this.#V)await this.#V;else{let f=t(()=>{},"s");this.#V=new Promise(d=>f=d);try{for(let d of await this.#e.promises.readdir(o,{withFileTypes:!0}))this.#z(d,s);this.#$(s)}catch(d){this.#F(d.code),s.provisional=0}this.#V=void 0,f()}return s.slice(0,s.provisional)}readdirSync(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();try{for(let f of this.#e.readdirSync(o,{withFileTypes:!0}))this.#z(f,s);this.#$(s)}catch(f){this.#F(f.code),s.provisional=0}return s.slice(0,s.provisional)}canReaddir(){if(this.#l&nnt)return!1;let s=oT&this.#l;return s===cT||s===Ok||s===mO}shouldWalk(s,o){return(this.#l&Ok)===Ok&&!(this.#l&nnt)&&!s.has(this)&&(!o||o(this))}async realpath(){if(this.#w)return this.#w;if(!((Coe|Toe|bE)&this.#l))try{let s=await this.#e.promises.realpath(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}realpathSync(){if(this.#w)return this.#w;if(!((Coe|Toe|bE)&this.#l))try{let s=this.#e.realpathSync(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}[Mnt](s){if(s===this)return;s.isCWD=!1,this.isCWD=!0;let o=new Set([]),f=[],d=this;for(;d&&d.parent;)o.add(d),d.#g=f.join(this.sep),d.#A=f.join("/"),d=d.parent,f.push("..");for(d=s;d&&d.parent&&!o.has(d);)d.#g=void 0,d.#A=void 0,d=d.parent}},jnt=class Bnt extends Gv{static{t(this,"n")}sep="\\";splitSep=gXt;constructor(o,f=cT,d,y,x,P,F){super(o,f,d,y,x,P,F)}newChild(o,f=cT,d={}){return new Bnt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}getRootString(o){return UPe.parse(o).root}getRoot(o){if(o=hXt(o.toUpperCase()),o===this.root.name)return this.root;for(let[f,d]of Object.entries(this.roots))if(this.sameRoot(o,f))return this.roots[o]=d;return this.roots[o]=new WPe(o,this).root}sameRoot(o,f=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(Nnt,"$1\\"),o===f}},Unt=class znt extends Gv{static{t(this,"n")}splitSep="/";sep="/";constructor(o,f=cT,d,y,x,P,F){super(o,f,d,y,x,P,F)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,f=cT,d={}){return new znt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}},$nt=class{static{t(this,"It")}root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(s=process.cwd(),o,f,{nocase:d,childrenCacheSize:y=16*1024,fs:x=EV}={}){this.#r=Ant(x),(s instanceof URL||s.startsWith("file://"))&&(s=HKt(s));let P=o.resolve(s);this.roots=Object.create(null),this.rootPath=this.parseRootPath(P),this.#e=new ant,this.#n=new ant,this.#t=new vXt(y);let F=P.substring(this.rootPath.length).split(f);if(F.length===1&&!F[0]&&F.pop(),d===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=d,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let W=this.root,G=F.length-1,be=o.sep,de=this.rootPath,se=!1;for(let Xe of F){let Ue=G--;W=W.child(Xe,{relative:new Array(Ue).fill("..").join(be),relativePosix:new Array(Ue).fill("..").join("/"),fullpath:de+=(se?"":be)+Xe}),se=!0}this.cwd=W}depth(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.depth()}childrenCache(){return this.#t}resolve(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#e.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpath();return this.#e.set(o,d),d}resolvePosix(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#n.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpathPosix();return this.#n.set(o,d),d}relative(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relative()}relativePosix(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relativePosix()}basename(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.name}dirname(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),(s.parent||s).fullpath()}async readdir(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f}=o;if(s.canReaddir()){let d=await s.readdir();return f?d:d.map(y=>y.name)}else return[]}readdirSync(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0}=o;return s.canReaddir()?f?s.readdirSync():s.readdirSync().map(d=>d.name):[]}async lstat(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstat()}lstatSync(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstatSync()}async readlink(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.readlink();return o?f:f?.fullpath()}readlinkSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.readlinkSync();return o?f:f?.fullpath()}async realpath(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.realpath();return o?f:f?.fullpath()}realpathSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.realpathSync();return o?f:f?.fullpath()}async walk(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=[];(!y||y(s))&&P.push(f?s:s.fullpath());let F=new Set,W=t((be,de)=>{F.add(be),be.readdirCB((se,Xe)=>{if(se)return de(se);let Ue=Xe.length;if(!Ue)return de();let je=t(()=>{--Ue===0&&de()},"w");for(let Vt of Xe)(!y||y(Vt))&&P.push(f?Vt:Vt.fullpath()),d&&Vt.isSymbolicLink()?Vt.realpath().then(Ut=>Ut?.isUnknown()?Ut.lstat():Ut).then(Ut=>Ut?.shouldWalk(F,x)?W(Ut,je):je()):Vt.shouldWalk(F,x)?W(Vt,je):je()},!0)},"l"),G=s;return new Promise((be,de)=>{W(G,se=>{if(se)return de(se);be(P)})})}walkSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=[];(!y||y(s))&&P.push(f?s:s.fullpath());let F=new Set([s]);for(let W of F){let G=W.readdirSync();for(let be of G){(!y||y(be))&&P.push(f?be:be.fullpath());let de=be;if(be.isSymbolicLink()){if(!(d&&(de=be.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(F,x)&&F.add(de)}}return P}[Symbol.asyncIterator](){return this.iterate()}iterate(s=this.cwd,o={}){return typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd),this.stream(s,o)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o;(!y||y(s))&&(yield f?s:s.fullpath());let P=new Set([s]);for(let F of P){let W=F.readdirSync();for(let G of W){(!y||y(G))&&(yield f?G:G.fullpath());let be=G;if(G.isSymbolicLink()){if(!(d&&(be=G.realpathSync())))continue;be.isUnknown()&&be.lstatSync()}be.shouldWalk(P,x)&&P.add(be)}}}stream(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=new Doe({objectMode:!0});(!y||y(s))&&P.write(f?s:s.fullpath());let F=new Set,W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&P.end();return}G++,F.add(se);let Xe=t((je,Vt,Ut=!1)=>{if(je)return P.emit("error",je);if(d&&!Ut){let Ir=[];for(let wn of Vt)wn.isSymbolicLink()&&Ir.push(wn.realpath().then(sn=>sn?.isUnknown()?sn.lstat():sn));if(Ir.length){Promise.all(Ir).then(()=>Xe(null,Vt,!0));return}}for(let Ir of Vt)Ir&&(!y||y(Ir))&&(P.write(f?Ir:Ir.fullpath())||(de=!0));G--;for(let Ir of Vt){let wn=Ir.realpathCached()||Ir;wn.shouldWalk(F,x)&&W.push(wn)}de&&!P.flowing?P.once("drain",be):Ue||be()},"m"),Ue=!0;se.readdirCB(Xe,!0),Ue=!1}},"c");return be(),P}streamSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=new Doe({objectMode:!0}),F=new Set;(!y||y(s))&&P.write(f?s:s.fullpath());let W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&P.end();return}G++,F.add(se);let Xe=se.readdirSync();for(let Ue of Xe)(!y||y(Ue))&&(P.write(f?Ue:Ue.fullpath())||(de=!0));G--;for(let Ue of Xe){let je=Ue;if(Ue.isSymbolicLink()){if(!(d&&(je=Ue.realpathSync())))continue;je.isUnknown()&&je.lstatSync()}je.shouldWalk(F,x)&&W.push(je)}}de&&!P.flowing&&P.once("drain",be)},"c");return be(),P}chdir(s=this.cwd){let o=this.cwd;this.cwd=typeof s=="string"?this.cwd.resolve(s):s,this.cwd[Mnt](o)}},WPe=class extends $nt{static{t(this,"it")}sep="\\";constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,UPe,"\\",{...o,nocase:f}),this.nocase=f;for(let d=this.cwd;d;d=d.parent)d.nocase=this.nocase}parseRootPath(s){return UPe.parse(s).root.toUpperCase()}newRoot(s){return new jnt(this.rootPath,Ok,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")||s.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(s)}},qPe=class extends $nt{static{t(this,"rt")}sep="/";constructor(s=process.cwd(),o={}){let{nocase:f=!1}=o;super(s,VKt,"/",{...o,nocase:f}),this.nocase=f}parseRootPath(s){return"/"}newRoot(s){return new Unt(this.rootPath,Ok,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")}},Jnt=class extends qPe{static{t(this,"St")}constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,{...o,nocase:f})}},xCr=process.platform==="win32"?jnt:Unt,bXt=process.platform==="win32"?WPe:process.platform==="darwin"?Jnt:qPe,SXt=t(s=>s.length>=1,"Di"),TXt=t(s=>s.length>=1,"Mi"),xXt=Symbol.for("nodejs.util.inspect.custom"),Wnt=class qnt{static{t(this,"n")}#e;#n;#t;length;#r;#s;#m;#c;#u;#f;#p=!0;constructor(o,f,d,y){if(!SXt(o))throw new TypeError("empty pattern list");if(!TXt(f))throw new TypeError("empty glob list");if(f.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,d<0||d>=this.length)throw new TypeError("index out of range");if(this.#e=o,this.#n=f,this.#t=d,this.#r=y,this.#t===0){if(this.isUNC()){let[x,P,F,W,...G]=this.#e,[be,de,se,Xe,...Ue]=this.#n;G[0]===""&&(G.shift(),Ue.shift());let je=[x,P,F,W,""].join("/"),Vt=[be,de,se,Xe,""].join("/");this.#e=[je,...G],this.#n=[Vt,...Ue],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[x,...P]=this.#e,[F,...W]=this.#n;P[0]===""&&(P.shift(),W.shift());let G=x+"/",be=F+"/";this.#e=[G,...P],this.#n=[be,...W],this.length=this.#e.length}}}[xXt](){return"Pattern <"+this.#n.slice(this.#t).join("/")+">"}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===N1}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#m=this.#m||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new qnt(this.#e,this.#n,this.#t+1,this.#r),this.#s.#f=this.#f,this.#s.#u=this.#u,this.#s.#c=this.#c,this.#s):this.#s=null}isUNC(){let o=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#r==="win32"&&this.#t===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#e;return this.#f!==void 0?this.#f:this.#f=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#e[0];return typeof o=="string"&&this.isAbsolute()&&this.#t===0?o:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}},EXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ont=class{static{t(this,"ot")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(s,{nobrace:o,nocase:f,noext:d,noglobstar:y,platform:x=EXt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=x,this.mmopts={dot:!0,nobrace:o,nocase:f,noext:d,noglobstar:y,optimizationLevel:2,platform:x,nocomment:!0,nonegate:!0};for(let P of s)this.add(P)}add(s){let o=new XN(s,this.mmopts);for(let f=0;f<o.set.length;f++){let d=o.set[f],y=o.globParts[f];if(!d||!y)throw new Error("invalid pattern object");for(;d[0]==="."&&y[0]===".";)d.shift(),y.shift();let x=new Wnt(d,y,0,this.platform),P=new XN(x.globString(),this.mmopts),F=y[y.length-1]==="**",W=x.isAbsolute();W?this.absolute.push(P):this.relative.push(P),F&&(W?this.absoluteChildren.push(P):this.relativeChildren.push(P))}}ignored(s){let o=s.fullpath(),f=`${o}/`,d=s.relative()||".",y=`${d}/`;for(let x of this.relative)if(x.match(d)||x.match(y))return!0;for(let x of this.absolute)if(x.match(o)||x.match(f))return!0;return!1}childrenIgnored(s){let o=s.fullpath()+"/",f=(s.relative()||".")+"/";for(let d of this.relativeChildren)if(d.match(f))return!0;for(let d of this.absoluteChildren)if(d.match(o))return!0;return!1}},CXt=class Vnt{static{t(this,"n")}store;constructor(o=new Map){this.store=o}copy(){return new Vnt(new Map(this.store))}hasWalked(o,f){return this.store.get(o.fullpath())?.has(f.globString())}storeWalked(o,f){let d=o.fullpath(),y=this.store.get(d);y?y.add(f.globString()):this.store.set(d,new Set([f.globString()]))}},kXt=class{static{t(this,"he")}store=new Map;add(s,o,f){let d=(o?2:0)|(f?1:0),y=this.store.get(s);this.store.set(s,y===void 0?d:d&y)}entries(){return[...this.store.entries()].map(([s,o])=>[s,!!(o&2),!!(o&1)])}},wXt=class{static{t(this,"ae")}store=new Map;add(s,o){if(!s.canReaddir())return;let f=this.store.get(s);f?f.find(d=>d.globString()===o.globString())||f.push(o):this.store.set(s,[o])}get(s){let o=this.store.get(s);if(!o)throw new Error("attempting to walk unknown path");return o}entries(){return this.keys().map(s=>[s,this.store.get(s)])}keys(){return[...this.store.keys()].filter(s=>s.canReaddir())}},cnt=class Hnt{static{t(this,"n")}hasWalkedCache;matches=new kXt;subwalks=new wXt;patterns;follow;dot;opts;constructor(o,f){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=f?f.copy():new CXt}processPatterns(o,f){this.patterns=f;let d=f.map(y=>[o,y]);for(let[y,x]of d){this.hasWalkedCache.storeWalked(y,x);let P=x.root(),F=x.isAbsolute()&&this.opts.absolute!==!1;if(P){y=y.resolve(P==="/"&&this.opts.root!==void 0?this.opts.root:P);let de=x.rest();if(de)x=de;else{this.matches.add(y,!0,!1);continue}}if(y.isENOENT())continue;let W,G,be=!1;for(;typeof(W=x.pattern())=="string"&&(G=x.rest());)y=y.resolve(W),x=G,be=!0;if(W=x.pattern(),G=x.rest(),be){if(this.hasWalkedCache.hasWalked(y,x))continue;this.hasWalkedCache.storeWalked(y,x)}if(typeof W=="string"){let de=W===".."||W===""||W===".";this.matches.add(y.resolve(W),F,de);continue}else if(W===N1){(!y.isSymbolicLink()||this.follow||x.checkFollowGlobstar())&&this.subwalks.add(y,x);let de=G?.pattern(),se=G?.rest();if(!G||(de===""||de===".")&&!se)this.matches.add(y,F,de===""||de===".");else if(de===".."){let Xe=y.parent||y;se?this.hasWalkedCache.hasWalked(Xe,se)||this.subwalks.add(Xe,se):this.matches.add(Xe,F,!0)}}else W instanceof RegExp&&this.subwalks.add(y,x)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Hnt(this.opts,this.hasWalkedCache)}filterEntries(o,f){let d=this.subwalks.get(o),y=this.child();for(let x of f)for(let P of d){let F=P.isAbsolute(),W=P.pattern(),G=P.rest();W===N1?y.testGlobstar(x,P,G,F):W instanceof RegExp?y.testRegExp(x,W,G,F):y.testString(x,W,G,F)}return y}testGlobstar(o,f,d,y){if((this.dot||!o.name.startsWith("."))&&(f.hasMore()||this.matches.add(o,y,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,f):o.isSymbolicLink()&&(d&&f.checkFollowGlobstar()?this.subwalks.add(o,d):f.markFollowGlobstar()&&this.subwalks.add(o,f)))),d){let x=d.pattern();if(typeof x=="string"&&x!==".."&&x!==""&&x!==".")this.testString(o,x,d.rest(),y);else if(x===".."){let P=o.parent||o;this.subwalks.add(P,d)}else x instanceof RegExp&&this.testRegExp(o,x,d.rest(),y)}}testRegExp(o,f,d,y){f.test(o.name)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}testString(o,f,d,y){o.isNamed(f)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}},DXt=t((s,o)=>typeof s=="string"?new ont([s],o):Array.isArray(s)?new ont(s,o):s,"Li"),Gnt=class{static{t(this,"zt")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(s,o,f){if(this.patterns=s,this.path=o,this.opts=f,this.#t=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#n=DXt(f.ignore??[],f),!this.includeChildMatches&&typeof this.#n.add!="function")){let d="cannot ignore child matches, ignore lacks add() method.";throw new Error(d)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(s){return this.seen.has(s)||!!this.#n?.ignored?.(s)}#s(s){return!!this.#n?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||await s.realpath(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=await d.realpath();y&&(y.isUnknown()||this.opts.stat)&&await y.lstat()}return this.matchCheckTest(d,o)}matchCheckTest(s,o){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!o||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#r(s)?s:void 0}matchCheckSync(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||s.realpathSync(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=d.realpathSync();y&&(y?.isUnknown()||this.opts.stat)&&y.lstatSync()}return this.matchCheckTest(d,o)}matchFinish(s,o){if(this.#r(s))return;if(!this.includeChildMatches&&this.#n?.add){let y=`${s.relativePosix()}/**`;this.#n.add(y)}let f=this.opts.absolute===void 0?o:this.opts.absolute;this.seen.add(s);let d=this.opts.mark&&s.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(f){let y=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(y+d)}else{let y=this.opts.posix?s.relativePosix():s.relative(),x=this.opts.dotRelative&&!y.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(y?x+y+d:"."+d)}}async match(s,o,f){let d=await this.matchCheck(s,f);d&&this.matchFinish(d,o)}matchSync(s,o,f){let d=this.matchCheckSync(s,f);d&&this.matchFinish(d,o)}walkCB(s,o,f){this.signal?.aborted&&f(),this.walkCB2(s,o,new cnt(this.opts),f)}walkCB2(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||(y++,this.match(P,F,W).then(()=>x()));for(let P of f.subwalkTargets()){if(this.maxDepth!==1/0&&P.depth()>=this.maxDepth)continue;y++;let F=P.readdirCached();P.calledReaddir()?this.walkCB3(P,F,f,x):P.readdirCB((W,G)=>this.walkCB3(P,G,f,x),!0)}x()}walkCB3(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||(y++,this.match(P,F,W).then(()=>x()));for(let[P,F]of f.subwalks.entries())y++,this.walkCB2(P,F,f.child(),x);x()}walkCBSync(s,o,f){this.signal?.aborted&&f(),this.walkCB2Sync(s,o,new cnt(this.opts),f)}walkCB2Sync(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2Sync(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||this.matchSync(P,F,W);for(let P of f.subwalkTargets()){if(this.maxDepth!==1/0&&P.depth()>=this.maxDepth)continue;y++;let F=P.readdirSync();this.walkCB3Sync(P,F,f,x)}x()}walkCB3Sync(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||this.matchSync(P,F,W);for(let[P,F]of f.subwalks.entries())y++,this.walkCB2Sync(P,F,f.child(),x);x()}},lnt=class extends Gnt{static{t(this,"xt")}matches=new Set;constructor(s,o,f){super(s,o,f)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,o)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?o(this.signal.reason):s(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},unt=class extends Gnt{static{t(this,"vt")}results;constructor(s,o,f){super(s,o,f),this.results=new Doe({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},PXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",hO=class{static{t(this,"I")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,o){if(!o)throw new TypeError("glob options required");if(this.withFileTypes=!!o.withFileTypes,this.signal=o.signal,this.follow=!!o.follow,this.dot=!!o.dot,this.dotRelative=!!o.dotRelative,this.nodir=!!o.nodir,this.mark=!!o.mark,o.cwd?(o.cwd instanceof URL||o.cwd.startsWith("file://"))&&(o.cwd=$Kt(o.cwd)):this.cwd="",this.cwd=o.cwd||"",this.root=o.root,this.magicalBraces=!!o.magicalBraces,this.nobrace=!!o.nobrace,this.noext=!!o.noext,this.realpath=!!o.realpath,this.absolute=o.absolute,this.includeChildMatches=o.includeChildMatches!==!1,this.noglobstar=!!o.noglobstar,this.matchBase=!!o.matchBase,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:1/0,this.stat=!!o.stat,this.ignore=o.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(F=>F.replace(/\\/g,"/"))),this.matchBase){if(o.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(F=>F.includes("/")?F:`./**/${F}`)}if(this.pattern=s,this.platform=o.platform||PXt,this.opts={...o,platform:this.platform},o.scurry){if(this.scurry=o.scurry,o.nocase!==void 0&&o.nocase!==o.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let F=o.platform==="win32"?WPe:o.platform==="darwin"?Jnt:o.platform?qPe:bXt;this.scurry=new F(this.cwd,{nocase:o.nocase,fs:o.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",d={braceExpandMax:1e4,...o,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},y=this.pattern.map(F=>new XN(F,d)),[x,P]=y.reduce((F,W)=>(F[0].push(...W.set),F[1].push(...W.globParts),F),[[],[]]);this.patterns=x.map((F,W)=>{let G=P[W];if(!G)throw new Error("invalid pattern object");return new Wnt(F,G,0,this.platform)})}async walk(){return[...await new lnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new lnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new unt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new unt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},AXt=t((s,o={})=>{Array.isArray(s)||(s=[s]);for(let f of s)if(new XN(f,o).hasMagic())return!0;return!1},"le");function Aoe(s,o={}){return new hO(s,o).streamSync()}t(Aoe,"Bt");function Ynt(s,o={}){return new hO(s,o).stream()}t(Ynt,"Qe");function Knt(s,o={}){return new hO(s,o).walkSync()}t(Knt,"ts");async function fnt(s,o={}){return new hO(s,o).walk()}t(fnt,"Je");function Noe(s,o={}){return new hO(s,o).iterateSync()}t(Noe,"Ut");function Xnt(s,o={}){return new hO(s,o).iterate()}t(Xnt,"es");var NXt=Aoe,IXt=Object.assign(Ynt,{sync:Aoe}),OXt=Noe,FXt=Object.assign(Xnt,{sync:Noe}),LXt=Object.assign(Knt,{stream:Aoe,iterate:Noe}),wV=Object.assign(fnt,{glob:fnt,globSync:Knt,sync:LXt,globStream:Ynt,stream:IXt,globStreamSync:Aoe,streamSync:NXt,globIterate:Xnt,iterate:FXt,globIterateSync:Noe,iterateSync:OXt,Glob:hO,hasMagic:AXt,escape:vnt,unescape:q9});wV.glob=wV;var Cy=class extends Error{static{t(this,"CompilationError")}buildMessages;constructor(o){super("An error occurred during compilation."),this.buildMessages=Array.isArray(o)?o:[o]}toBuildResult(){return{content:"",errors:this.buildMessages}}};var RXt="true",MXt="false",jXt="null";var BXt="Infinity";var DV=new Map([[34,'"'],[92,"\\"],[47,"/"],[98,"\b"],[110,`
567
+ >>> no match, partial?`,s,de,o,se),de===F))}let Ue;if(typeof G=="string"?(Ue=be===G,this.debug("string match",G,be,Ue)):(Ue=G.test(be),this.debug("pattern match",G,be,Ue)),!Ue)return!1}if(x===F&&P===W)return!0;if(x===F)return f;if(P===W)return x===F-1&&s[x]==="";throw new Error("wtf?")}braceExpand(){return xnt(this.pattern,this.options)}parse(s){koe(s);let o=this.options;if(s==="**")return N1;if(s==="")return"";let f,d=null;(f=s.match(EKt))?d=o.dot?kKt:CKt:(f=s.match(dKt))?d=(o.nocase?o.dot?yKt:gKt:o.dot?hKt:mKt)(f[1]):(f=s.match(wKt))?d=(o.nocase?o.dot?PKt:DKt:o.dot?AKt:NKt)(f):(f=s.match(vKt))?d=o.dot?SKt:bKt:(f=s.match(TKt))&&(d=xKt);let y=ynt.fromGlob(s,this.options).toMMPattern();return d&&typeof y=="object"&&Reflect.defineProperty(y,"test",{value:d}),y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let s=this.set;if(!s.length)return this.regexp=!1,this.regexp;let o=this.options,f=o.noglobstar?FKt:o.dot?LKt:RKt,d=new Set(o.nocase?["i"]:[]),y=s.map(F=>{let W=F.map(be=>{if(be instanceof RegExp)for(let de of be.flags.split(""))d.add(de);return typeof be=="string"?zKt(be):be===N1?N1:be._src});W.forEach((be,de)=>{let se=W[de+1],Xe=W[de-1];be!==N1||Xe===N1||(Xe===void 0?se!==void 0&&se!==N1?W[de+1]="(?:\\/|"+f+"\\/)?"+se:W[de]=f:se===void 0?W[de-1]=Xe+"(?:\\/|\\/"+f+")?":se!==N1&&(W[de-1]=Xe+"(?:\\/|\\/"+f+"\\/)"+se,W[de+1]=N1))});let G=W.filter(be=>be!==N1);if(this.partial&&G.length>=1){let be=[];for(let de=1;de<=G.length;de++)be.push(G.slice(0,de).join("/"));return"(?:"+be.join("|")+")"}return G.join("/")}).join("|"),[x,P]=s.length>1?["(?:",")"]:["",""];y="^"+x+y+P+"$",this.partial&&(y="^(?:\\/|"+x+y.slice(1,-1)+P+")$"),this.negate&&(y="^(?!"+y+").+$");try{this.regexp=new RegExp(y,[...d].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(s){return this.preserveMultipleSlashes?s.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(s)?["",...s.split(/\/+/)]:s.split(/\/+/)}match(s,o=this.partial){if(this.debug("match",s,this.pattern),this.comment)return!1;if(this.empty)return s==="";if(s==="/"&&o)return!0;let f=this.options;this.isWindows&&(s=s.split("\\").join("/"));let d=this.slashSplit(s);this.debug(this.pattern,"split",d);let y=this.set;this.debug(this.pattern,"set",y);let x=d[d.length-1];if(!x)for(let P=d.length-2;!x&&P>=0;P--)x=d[P];for(let P=0;P<y.length;P++){let F=y[P],W=d;if(f.matchBase&&F.length===1&&(W=[x]),this.matchOne(W,F,o))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(s){return I1.defaults(s).Minimatch}};I1.AST=ynt;I1.Minimatch=XN;I1.escape=vnt;I1.unescape=q9;var JKt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ent=new Set,BPe=typeof process=="object"&&process?process:{},Cnt=t((s,o,f,d)=>{typeof BPe.emitWarning=="function"?BPe.emitWarning(s,o,f,d):console.error(`[${f}] ${o}: ${s}`)},"Fe"),woe=globalThis.AbortController,Xrt=globalThis.AbortSignal;if(typeof woe>"u"){Xrt=class{static{t(this,"Re")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,d){this._onabort.push(d)}},woe=class{static{t(this,"At")}constructor(){o()}signal=new Xrt;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let d of this.signal._onabort)d(f);this.signal.onabort?.(f)}}};let s=BPe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=t(()=>{s&&(s=!1,Cnt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))},"t")}var WKt=t(s=>!Ent.has(s),"ii"),KN=t(s=>s&&s===Math.floor(s)&&s>0&&isFinite(s),"q"),knt=t(s=>KN(s)?s<=Math.pow(2,8)?Uint8Array:s<=Math.pow(2,16)?Uint16Array:s<=Math.pow(2,32)?Uint32Array:s<=Number.MAX_SAFE_INTEGER?Eoe:null:null,"De"),Eoe=class extends Array{static{t(this,"Tt")}constructor(s){super(s),this.fill(0)}},qKt=class xV{static{t(this,"ct")}heap;length;static#e=!1;static create(o){let f=knt(o);if(!f)return[];xV.#e=!0;let d=new xV(o,f);return xV.#e=!1,d}constructor(o,f){if(!xV.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Poe=class wnt{static{t(this,"Me")}#e;#n;#t;#r;#s;#m;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#f;#p;#a;#i;#o;#h;#d;#_;#y;#b;#v;#C;#k;#S;#E;#g;#A;#l;#O;static unsafeExposeInternals(o){return{starts:o.#k,ttls:o.#S,autopurgeTimers:o.#E,sizes:o.#C,keyMap:o.#a,keyList:o.#i,valList:o.#o,next:o.#h,prev:o.#d,get head(){return o.#_},get tail(){return o.#y},free:o.#b,isBackgroundFetch:t(f=>o.#T(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>o.#W(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>o.#j(f),"moveToTail"),indexes:t(f=>o.#R(f),"indexes"),rindexes:t(f=>o.#L(f),"rindexes"),isStale:t(f=>o.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#p}get size(){return this.#f}get fetchMethod(){return this.#m}get memoMethod(){return this.#c}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:W,dispose:G,onInsert:be,disposeAfter:de,noDisposeOnSet:se,noUpdateTTL:Xe,maxSize:Ue=0,maxEntrySize:je=0,sizeCalculation:Vt,fetchMethod:Ut,memoMethod:Ir,noDeleteOnFetchRejection:wn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Jn,allowStaleOnFetchAbort:kr,ignoreFetchAbort:yr,perf:xs}=o;if(xs!==void 0&&typeof xs?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=xs??JKt,f!==0&&!KN(f))throw new TypeError("max option must be a nonnegative integer");let bi=f?knt(f):Array;if(!bi)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ue,this.maxEntrySize=je||this.#n,this.sizeCalculation=Vt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ir!==void 0&&typeof Ir!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=Ir,Ut!==void 0&&typeof Ut!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#m=Ut,this.#A=!!Ut,this.#a=new Map,this.#i=new Array(f).fill(void 0),this.#o=new Array(f).fill(void 0),this.#h=new bi(f),this.#d=new bi(f),this.#_=0,this.#y=0,this.#b=qKt.create(f),this.#f=0,this.#p=0,typeof G=="function"&&(this.#t=G),typeof be=="function"&&(this.#r=be),typeof de=="function"?(this.#s=de,this.#v=[]):(this.#s=void 0,this.#v=void 0),this.#g=!!this.#t,this.#O=!!this.#r,this.#l=!!this.#s,this.noDisposeOnSet=!!se,this.noUpdateTTL=!!Xe,this.noDeleteOnFetchRejection=!!wn,this.allowStaleOnFetchRejection=!!Jn,this.allowStaleOnFetchAbort=!!kr,this.ignoreFetchAbort=!!yr,this.maxEntrySize!==0){if(this.#n!==0&&!KN(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!KN(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!W,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=KN(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!KN(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let fc="LRU_CACHE_UNBOUNDED";WKt(fc)&&(Ent.add(fc),Cnt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",fc,wnt))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#N(){let o=new Eoe(this.#e),f=new Eoe(this.#e);this.#S=o,this.#k=f;let d=this.ttlAutopurge?new Array(this.#e):void 0;this.#E=d,this.#$=(P,F,W=this.#u.now())=>{if(f[P]=F!==0?W:0,o[P]=F,d?.[P]&&(clearTimeout(d[P]),d[P]=void 0),F!==0&&d){let G=setTimeout(()=>{this.#P(P)&&this.#B(this.#i[P],"expire")},F+1);G.unref&&G.unref(),d[P]=G}},this.#w=P=>{f[P]=o[P]!==0?this.#u.now():0},this.#D=(P,F)=>{if(o[F]){let W=o[F],G=f[F];if(!W||!G)return;P.ttl=W,P.start=G,P.now=y||x();let be=P.now-G;P.remainingTTL=W-be}};let y=0,x=t(()=>{let P=this.#u.now();if(this.ttlResolution>0){y=P;let F=setTimeout(()=>y=0,this.ttlResolution);F.unref&&F.unref()}return P},"r");this.getRemainingTTL=P=>{let F=this.#a.get(P);if(F===void 0)return 0;let W=o[F],G=f[F];if(!W||!G)return 1/0;let be=(y||x())-G;return W-be},this.#P=P=>{let F=f[P],W=o[P];return!!W&&!!F&&(y||x())-F>W}}#w=t(()=>{},"#k");#D=t(()=>{},"#N");#$=t(()=>{},"#j");#P=t(()=>!1,"#v");#J(){let o=new Eoe(this.#e);this.#p=0,this.#C=o,this.#U=f=>{this.#p-=o[f],o[f]=0},this.#F=(f,d,y,x)=>{if(this.#T(d))return 0;if(!KN(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!KN(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#I=(f,d,y)=>{if(o[f]=d,this.#n){let x=this.#n-o[f];for(;this.#p>x;)this.#x(!0)}this.#p+=o[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#p)}}#U=t(o=>{},"#P");#I=t((o,f,d)=>{},"#L");#F=t((o,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#I");*#R({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#y;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#_));)f=this.#d[f]}*#L({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#_;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#y));)f=this.#h[f]}#z(o){return o!==void 0&&this.#a.get(this.#i[o])===o}*entries(){for(let o of this.#R())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*rentries(){for(let o of this.#L())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*keys(){for(let o of this.#R()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*rkeys(){for(let o of this.#L()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*values(){for(let o of this.#R())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}*rvalues(){for(let o of this.#L())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,f={}){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;if(x!==void 0&&o(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(o,f=this){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}rforEach(o,f=this){for(let d of this.#L()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}purgeStale(){let o=!1;for(let f of this.#L({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),o=!0);return o}info(o){let f=this.#a.get(o);if(f===void 0)return;let d=this.#o[f],y=this.#T(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#S&&this.#k){let P=this.#S[f],F=this.#k[f];if(P&&F){let W=P-(this.#u.now()-F);x.ttl=W,x.start=Date.now()}}return this.#C&&(x.size=this.#C[f]),x}dump(){let o=[];for(let f of this.#R({allowStale:!0})){let d=this.#i[f],y=this.#o[f],x=this.#T(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#S&&this.#k){P.ttl=this.#S[f];let F=this.#u.now()-this.#k[f];P.start=Math.floor(Date.now()-F)}this.#C&&(P.size=this.#C[f]),o.unshift([d,P])}return o}load(o){this.clear();for(let[f,d]of o){if(d.start){let y=Date.now()-d.start;d.start=this.#u.now()-y}this.set(f,d.value,d)}}set(o,f,d={}){if(f===void 0)return this.delete(o),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:W}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,be=this.#F(o,f,d.size||0,F);if(this.maxEntrySize&&be>this.maxEntrySize)return W&&(W.set="miss",W.maxEntrySizeExceeded=!0),this.#B(o,"set"),this;let de=this.#f===0?void 0:this.#a.get(o);if(de===void 0)de=this.#f===0?this.#y:this.#b.length!==0?this.#b.pop():this.#f===this.#e?this.#x(!1):this.#f,this.#i[de]=o,this.#o[de]=f,this.#a.set(o,de),this.#h[this.#y]=de,this.#d[de]=this.#y,this.#y=de,this.#f++,this.#I(de,be,W),W&&(W.set="add"),G=!1,this.#O&&this.#r?.(f,o,"add");else{this.#j(de);let se=this.#o[de];if(f!==se){if(this.#A&&this.#T(se)){se.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=se;Xe!==void 0&&!P&&(this.#g&&this.#t?.(Xe,o,"set"),this.#l&&this.#v?.push([Xe,o,"set"]))}else P||(this.#g&&this.#t?.(se,o,"set"),this.#l&&this.#v?.push([se,o,"set"]));if(this.#U(de),this.#I(de,be,W),this.#o[de]=f,W){W.set="replace";let Xe=se&&this.#T(se)?se.__staleWhileFetching:se;Xe!==void 0&&(W.oldValue=Xe)}}else W&&(W.set="update");this.#O&&this.onInsert?.(f,o,f===se?"update":"replace")}if(y!==0&&!this.#S&&this.#N(),this.#S&&(G||this.#$(de,y,x),W&&this.#D(W,de)),!P&&this.#l&&this.#v){let se=this.#v,Xe;for(;Xe=se?.shift();)this.#s?.(...Xe)}return this}pop(){try{for(;this.#f;){let o=this.#o[this.#_];if(this.#x(!0),this.#T(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#l&&this.#v){let o=this.#v,f;for(;f=o?.shift();)this.#s?.(...f)}}}#x(o){let f=this.#_,d=this.#i[f],y=this.#o[f];return this.#A&&this.#T(y)?y.__abortController.abort(new Error("evicted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(y,d,"evict"),this.#l&&this.#v?.push([y,d,"evict"])),this.#U(f),this.#E?.[f]&&(clearTimeout(this.#E[f]),this.#E[f]=void 0),o&&(this.#i[f]=void 0,this.#o[f]=void 0,this.#b.push(f)),this.#f===1?(this.#_=this.#y=0,this.#b.length=0):this.#_=this.#h[f],this.#a.delete(d),this.#f--,f}has(o,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#a.get(o);if(x!==void 0){let P=this.#o[x];if(this.#T(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#D(y,x));else return d&&this.#w(x),y&&(y.has="hit",this.#D(y,x)),!0}else y&&(y.has="miss");return!1}peek(o,f={}){let{allowStale:d=this.allowStale}=f,y=this.#a.get(o);if(y===void 0||!d&&this.#P(y))return;let x=this.#o[y];return this.#T(x)?x.__staleWhileFetching:x}#W(o,f,d,y){let x=f===void 0?void 0:this.#o[f];if(this.#T(x))return x;let P=new woe,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let W={signal:P.signal,options:d,context:y},G=t((je,Vt=!1)=>{let{aborted:Ut}=P.signal,Ir=d.ignoreFetchAbort&&je!==void 0,wn=d.ignoreFetchAbort||!!(d.allowStaleOnFetchAbort&&je!==void 0);if(d.status&&(Ut&&!Vt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Ir&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),Ut&&!Ir&&!Vt)return de(P.signal.reason,wn);let sn=Xe,Jn=this.#o[f];return(Jn===Xe||Ir&&Vt&&Jn===void 0)&&(je===void 0?sn.__staleWhileFetching!==void 0?this.#o[f]=sn.__staleWhileFetching:this.#B(o,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(o,je,W.options))),je},"l"),be=t(je=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=je),de(je,!1)),"u"),de=t((je,Vt)=>{let{aborted:Ut}=P.signal,Ir=Ut&&d.allowStaleOnFetchAbort,wn=Ir||d.allowStaleOnFetchRejection,sn=wn||d.noDeleteOnFetchRejection,Jn=Xe;if(this.#o[f]===Xe&&(!sn||!Vt&&Jn.__staleWhileFetching===void 0?this.#B(o,"fetch"):Ir||(this.#o[f]=Jn.__staleWhileFetching)),wn)return d.status&&Jn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),Jn.__staleWhileFetching;if(Jn.__returned===Jn)throw je},"c"),se=t((je,Vt)=>{let Ut=this.#m?.(o,x,W);Ut&&Ut instanceof Promise&&Ut.then(Ir=>je(Ir===void 0?void 0:Ir),Vt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(je(void 0),d.allowStaleOnFetchAbort&&(je=t(Ir=>G(Ir,!0),"p")))})},"d");d.status&&(d.status.fetchDispatched=!0);let Xe=new Promise(se).then(G,be),Ue=Object.assign(Xe,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(o,Ue,{...W.options,status:void 0}),f=this.#a.get(o)):this.#o[f]=Ue,Ue}#T(o){if(!this.#A)return!1;let f=o;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof woe}async fetch(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:W=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:be=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:se=this.allowStaleOnFetchRejection,ignoreFetchAbort:Xe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ue=this.allowStaleOnFetchAbort,context:je,forceRefresh:Vt=!1,status:Ut,signal:Ir}=f;if(!this.#A)return Ut&&(Ut.fetch="get"),this.get(o,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:Ut});let wn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:W,sizeCalculation:G,noUpdateTTL:be,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:se,allowStaleOnFetchAbort:Ue,ignoreFetchAbort:Xe,status:Ut,signal:Ir},sn=this.#a.get(o);if(sn===void 0){Ut&&(Ut.fetch="miss");let Jn=this.#W(o,sn,wn,je);return Jn.__returned=Jn}else{let Jn=this.#o[sn];if(this.#T(Jn)){let bi=d&&Jn.__staleWhileFetching!==void 0;return Ut&&(Ut.fetch="inflight",bi&&(Ut.returnedStale=!0)),bi?Jn.__staleWhileFetching:Jn.__returned=Jn}let kr=this.#P(sn);if(!Vt&&!kr)return Ut&&(Ut.fetch="hit"),this.#j(sn),y&&this.#w(sn),Ut&&this.#D(Ut,sn),Jn;let yr=this.#W(o,sn,wn,je),xs=yr.__staleWhileFetching!==void 0&&d;return Ut&&(Ut.fetch=kr?"stale":"refresh",xs&&kr&&(Ut.returnedStale=!0)),xs?yr.__staleWhileFetching:yr.__returned=yr}}async forceFetch(o,f={}){let d=await this.fetch(o,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(o,f={}){let d=this.#c;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(o,P);if(!x&&F!==void 0)return F;let W=d(o,F,{options:P,context:y});return this.set(o,W,P),W}get(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#a.get(o);if(F!==void 0){let W=this.#o[F],G=this.#T(W);return P&&this.#D(P,F),this.#P(F)?(P&&(P.get="stale"),G?(P&&d&&W.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?W.__staleWhileFetching:void 0):(x||this.#B(o,"expire"),P&&d&&(P.returnedStale=!0),d?W:void 0)):(P&&(P.get="hit"),G?W.__staleWhileFetching:(this.#j(F),y&&this.#w(F),W))}else P&&(P.get="miss")}#M(o,f){this.#d[f]=o,this.#h[o]=f}#j(o){o!==this.#y&&(o===this.#_?this.#_=this.#h[o]:this.#M(this.#d[o],this.#h[o]),this.#M(this.#y,o),this.#y=o)}delete(o){return this.#B(o,"delete")}#B(o,f){let d=!1;if(this.#f!==0){let y=this.#a.get(o);if(y!==void 0)if(this.#E?.[y]&&(clearTimeout(this.#E?.[y]),this.#E[y]=void 0),d=!0,this.#f===1)this.#q(f);else{this.#U(y);let x=this.#o[y];if(this.#T(x)?x.__abortController.abort(new Error("deleted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(x,o,f),this.#l&&this.#v?.push([x,o,f])),this.#a.delete(o),this.#i[y]=void 0,this.#o[y]=void 0,y===this.#y)this.#y=this.#d[y];else if(y===this.#_)this.#_=this.#h[y];else{let P=this.#d[y];this.#h[P]=this.#h[y];let F=this.#h[y];this.#d[F]=this.#d[y]}this.#f--,this.#b.push(y)}}if(this.#l&&this.#v?.length){let y=this.#v,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#q("delete")}#q(o){for(let f of this.#L({allowStale:!0})){let d=this.#o[f];if(this.#T(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#g&&this.#t?.(d,y,o),this.#l&&this.#v?.push([d,y,o])}}if(this.#a.clear(),this.#o.fill(void 0),this.#i.fill(void 0),this.#S&&this.#k){this.#S.fill(0),this.#k.fill(0);for(let f of this.#E??[])f!==void 0&&clearTimeout(f);this.#E?.fill(void 0)}if(this.#C&&this.#C.fill(0),this.#_=0,this.#y=0,this.#b.length=0,this.#p=0,this.#f=0,this.#l&&this.#v){let f=this.#v,d;for(;d=f?.shift();)this.#s?.(...d)}}},Zrt=typeof process=="object"&&process?process:{stdout:null,stderr:null},sXt=t(s=>!!s&&typeof s=="object"&&(s instanceof Doe||s instanceof Dnt||aXt(s)||oXt(s)),"oi"),aXt=t(s=>!!s&&typeof s=="object"&&s instanceof JPe&&typeof s.pipe=="function"&&s.pipe!==Dnt.Writable.prototype.pipe,"hi"),oXt=t(s=>!!s&&typeof s=="object"&&s instanceof JPe&&typeof s.write=="function"&&typeof s.end=="function","ai"),BP=Symbol("EOF"),UP=Symbol("maybeEmitEnd"),YN=Symbol("emittedEnd"),goe=Symbol("emittingEnd"),gV=Symbol("emittedError"),yoe=Symbol("closed"),Qrt=Symbol("read"),voe=Symbol("flush"),ent=Symbol("flushChunk"),vE=Symbol("encoding"),J9=Symbol("decoder"),Fg=Symbol("flowing"),yV=Symbol("paused"),W9=Symbol("resume"),Lg=Symbol("buffer"),A1=Symbol("pipes"),Rg=Symbol("bufferLength"),IPe=Symbol("bufferPush"),boe=Symbol("bufferShift"),Ey=Symbol("objectMode"),Em=Symbol("destroyed"),OPe=Symbol("error"),FPe=Symbol("emitData"),tnt=Symbol("emitEnd"),LPe=Symbol("emitEnd2"),Ik=Symbol("async"),RPe=Symbol("abort"),Soe=Symbol("aborted"),vV=Symbol("signal"),dO=Symbol("dataListeners"),CS=Symbol("discarded"),bV=t(s=>Promise.resolve().then(s),"mt"),cXt=t(s=>s(),"li"),lXt=t(s=>s==="end"||s==="finish"||s==="prefinish","ci"),uXt=t(s=>s instanceof ArrayBuffer||!!s&&typeof s=="object"&&s.constructor&&s.constructor.name==="ArrayBuffer"&&s.byteLength>=0,"fi"),fXt=t(s=>!Buffer.isBuffer(s)&&ArrayBuffer.isView(s),"ui"),Pnt=class{static{t(this,"Mt")}src;dest;opts;ondrain;constructor(s,o,f){this.src=s,this.dest=o,this.opts=f,this.ondrain=()=>s[W9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(s){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},_Xt=class extends Pnt{static{t(this,"te")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(s,o,f){super(s,o,f),this.proxyErrors=d=>this.dest.emit("error",d),s.on("error",this.proxyErrors)}},pXt=t(s=>!!s.objectMode,"di"),dXt=t(s=>!s.objectMode&&!!s.encoding&&s.encoding!=="buffer","pi"),Doe=class extends JPe{static{t(this,"V")}[Fg]=!1;[yV]=!1;[A1]=[];[Lg]=[];[Ey];[vE];[Ik];[J9];[BP]=!1;[YN]=!1;[goe]=!1;[yoe]=!1;[gV]=null;[Rg]=0;[Em]=!1;[vV];[Soe]=!1;[dO]=0;[CS]=!1;writable=!0;readable=!0;constructor(...s){let o=s[0]||{};if(super(),o.objectMode&&typeof o.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");pXt(o)?(this[Ey]=!0,this[vE]=null):dXt(o)?(this[vE]=o.encoding,this[Ey]=!1):(this[Ey]=!1,this[vE]=null),this[Ik]=!!o.async,this[J9]=this[vE]?new iXt(this[vE]):null,o&&o.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:t(()=>this[Lg],"get")}),o&&o.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:t(()=>this[A1],"get")});let{signal:f}=o;f&&(this[vV]=f,f.aborted?this[RPe]():f.addEventListener("abort",()=>this[RPe]()))}get bufferLength(){return this[Rg]}get encoding(){return this[vE]}set encoding(s){throw new Error("Encoding must be set at instantiation time")}setEncoding(s){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ey]}set objectMode(s){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ik]}set async(s){this[Ik]=this[Ik]||!!s}[RPe](){this[Soe]=!0,this.emit("abort",this[vV]?.reason),this.destroy(this[vV]?.reason)}get aborted(){return this[Soe]}set aborted(s){}write(s,o,f){if(this[Soe])return!1;if(this[BP])throw new Error("write after end");if(this[Em])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof o=="function"&&(f=o,o="utf8"),o||(o="utf8");let d=this[Ik]?bV:cXt;if(!this[Ey]&&!Buffer.isBuffer(s)){if(fXt(s))s=Buffer.from(s.buffer,s.byteOffset,s.byteLength);else if(uXt(s))s=Buffer.from(s);else if(typeof s!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ey]?(this[Fg]&&this[Rg]!==0&&this[voe](!0),this[Fg]?this.emit("data",s):this[IPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):s.length?(typeof s=="string"&&!(o===this[vE]&&!this[J9]?.lastNeed)&&(s=Buffer.from(s,o)),Buffer.isBuffer(s)&&this[vE]&&(s=this[J9].write(s)),this[Fg]&&this[Rg]!==0&&this[voe](!0),this[Fg]?this.emit("data",s):this[IPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):(this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg])}read(s){if(this[Em])return null;if(this[CS]=!1,this[Rg]===0||s===0||s&&s>this[Rg])return this[UP](),null;this[Ey]&&(s=null),this[Lg].length>1&&!this[Ey]&&(this[Lg]=[this[vE]?this[Lg].join(""):Buffer.concat(this[Lg],this[Rg])]);let o=this[Qrt](s||null,this[Lg][0]);return this[UP](),o}[Qrt](s,o){if(this[Ey])this[boe]();else{let f=o;s===f.length||s===null?this[boe]():typeof f=="string"?(this[Lg][0]=f.slice(s),o=f.slice(0,s),this[Rg]-=s):(this[Lg][0]=f.subarray(s),o=f.subarray(0,s),this[Rg]-=s)}return this.emit("data",o),!this[Lg].length&&!this[BP]&&this.emit("drain"),o}end(s,o,f){return typeof s=="function"&&(f=s,s=void 0),typeof o=="function"&&(f=o,o="utf8"),s!==void 0&&this.write(s,o),f&&this.once("end",f),this[BP]=!0,this.writable=!1,(this[Fg]||!this[yV])&&this[UP](),this}[W9](){this[Em]||(!this[dO]&&!this[A1].length&&(this[CS]=!0),this[yV]=!1,this[Fg]=!0,this.emit("resume"),this[Lg].length?this[voe]():this[BP]?this[UP]():this.emit("drain"))}resume(){return this[W9]()}pause(){this[Fg]=!1,this[yV]=!0,this[CS]=!1}get destroyed(){return this[Em]}get flowing(){return this[Fg]}get paused(){return this[yV]}[IPe](s){this[Ey]?this[Rg]+=1:this[Rg]+=s.length,this[Lg].push(s)}[boe](){return this[Ey]?this[Rg]-=1:this[Rg]-=this[Lg][0].length,this[Lg].shift()}[voe](s=!1){do;while(this[ent](this[boe]())&&this[Lg].length);!s&&!this[Lg].length&&!this[BP]&&this.emit("drain")}[ent](s){return this.emit("data",s),this[Fg]}pipe(s,o){if(this[Em])return s;this[CS]=!1;let f=this[YN];return o=o||{},s===Zrt.stdout||s===Zrt.stderr?o.end=!1:o.end=o.end!==!1,o.proxyErrors=!!o.proxyErrors,f?o.end&&s.end():(this[A1].push(o.proxyErrors?new _Xt(this,s,o):new Pnt(this,s,o)),this[Ik]?bV(()=>this[W9]()):this[W9]()),s}unpipe(s){let o=this[A1].find(f=>f.dest===s);o&&(this[A1].length===1?(this[Fg]&&this[dO]===0&&(this[Fg]=!1),this[A1]=[]):this[A1].splice(this[A1].indexOf(o),1),o.unpipe())}addListener(s,o){return this.on(s,o)}on(s,o){let f=super.on(s,o);if(s==="data")this[CS]=!1,this[dO]++,!this[A1].length&&!this[Fg]&&this[W9]();else if(s==="readable"&&this[Rg]!==0)super.emit("readable");else if(lXt(s)&&this[YN])super.emit(s),this.removeAllListeners(s);else if(s==="error"&&this[gV]){let d=o;this[Ik]?bV(()=>d.call(this,this[gV])):d.call(this,this[gV])}return f}removeListener(s,o){return this.off(s,o)}off(s,o){let f=super.off(s,o);return s==="data"&&(this[dO]=this.listeners("data").length,this[dO]===0&&!this[CS]&&!this[A1].length&&(this[Fg]=!1)),f}removeAllListeners(s){let o=super.removeAllListeners(s);return(s==="data"||s===void 0)&&(this[dO]=0,!this[CS]&&!this[A1].length&&(this[Fg]=!1)),o}get emittedEnd(){return this[YN]}[UP](){!this[goe]&&!this[YN]&&!this[Em]&&this[Lg].length===0&&this[BP]&&(this[goe]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yoe]&&this.emit("close"),this[goe]=!1)}emit(s,...o){let f=o[0];if(s!=="error"&&s!=="close"&&s!==Em&&this[Em])return!1;if(s==="data")return!this[Ey]&&!f?!1:this[Ik]?(bV(()=>this[FPe](f)),!0):this[FPe](f);if(s==="end")return this[tnt]();if(s==="close"){if(this[yoe]=!0,!this[YN]&&!this[Em])return!1;let y=super.emit("close");return this.removeAllListeners("close"),y}else if(s==="error"){this[gV]=f,super.emit(OPe,f);let y=!this[vV]||this.listeners("error").length?super.emit("error",f):!1;return this[UP](),y}else if(s==="resume"){let y=super.emit("resume");return this[UP](),y}else if(s==="finish"||s==="prefinish"){let y=super.emit(s);return this.removeAllListeners(s),y}let d=super.emit(s,...o);return this[UP](),d}[FPe](s){for(let f of this[A1])f.dest.write(s)===!1&&this.pause();let o=this[CS]?!1:super.emit("data",s);return this[UP](),o}[tnt](){return this[YN]?!1:(this[YN]=!0,this.readable=!1,this[Ik]?(bV(()=>this[LPe]()),!0):this[LPe]())}[LPe](){if(this[J9]){let o=this[J9].end();if(o){for(let f of this[A1])f.dest.write(o);this[CS]||super.emit("data",o)}}for(let o of this[A1])o.end();let s=super.emit("end");return this.removeAllListeners("end"),s}async collect(){let s=Object.assign([],{dataLength:0});this[Ey]||(s.dataLength=0);let o=this.promise();return this.on("data",f=>{s.push(f),this[Ey]||(s.dataLength+=f.length)}),await o,s}async concat(){if(this[Ey])throw new Error("cannot concat in objectMode");let s=await this.collect();return this[vE]?s.join(""):Buffer.concat(s,s.dataLength)}async promise(){return new Promise((s,o)=>{this.on(Em,()=>o(new Error("stream destroyed"))),this.on("error",f=>o(f)),this.on("end",()=>s())})}[Symbol.asyncIterator](){this[CS]=!1;let s=!1,o=t(async()=>(this.pause(),s=!0,{value:void 0,done:!0}),"e");return{next:t(()=>{if(s)return o();let f=this.read();if(f!==null)return Promise.resolve({done:!1,value:f});if(this[BP])return o();let d,y,x=t(G=>{this.off("data",P),this.off("end",F),this.off(Em,W),o(),y(G)},"h"),P=t(G=>{this.off("error",x),this.off("end",F),this.off(Em,W),this.pause(),d({value:G,done:!!this[BP]})},"a"),F=t(()=>{this.off("error",x),this.off("data",P),this.off(Em,W),o(),d({done:!0,value:void 0})},"l"),W=t(()=>x(new Error("stream destroyed")),"u");return new Promise((G,be)=>{y=be,d=G,this.once(Em,W),this.once("error",x),this.once("end",F),this.once("data",P)})},"next"),throw:o,return:o,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[CS]=!1;let s=!1,o=t(()=>(this.pause(),this.off(OPe,o),this.off(Em,o),this.off("end",o),s=!0,{done:!0,value:void 0}),"e"),f=t(()=>{if(s)return o();let d=this.read();return d===null?o():{done:!1,value:d}},"s");return this.once("end",o),this.once(OPe,o),this.once(Em,o),{next:f,throw:o,return:o,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(s){if(this[Em])return s?this.emit("error",s):this.emit(Em),this;this[Em]=!0,this[CS]=!0,this[Lg].length=0,this[Rg]=0;let o=this;return typeof o.close=="function"&&!this[yoe]&&o.close(),s?this.emit("error",s):this.emit(Em),this}static get isStream(){return sXt}},mXt=ZKt.native,EV={lstatSync:GKt,readdir:YKt,readdirSync:KKt,readlinkSync:XKt,realpathSync:mXt,promises:{lstat:eXt,readdir:tXt,readlink:rXt,realpath:nXt}},Ant=t(s=>!s||s===EV||s===QKt?EV:{...EV,...s,promises:{...EV.promises,...s.promises||{}}},"Ue"),Nnt=/^\\\\\?\\([a-z]:)\\?$/i,hXt=t(s=>s.replace(/\//g,"\\").replace(Nnt,"$1\\"),"Ri"),gXt=/[\\\/]/,cT=0,Int=1,Ont=2,Ok=4,Fnt=6,Lnt=8,mO=10,Rnt=12,oT=15,SV=~oT,MPe=16,rnt=32,CV=64,bE=128,Toe=256,Coe=512,nnt=CV|bE|Coe,yXt=1023,jPe=t(s=>s.isFile()?Lnt:s.isDirectory()?Ok:s.isSymbolicLink()?mO:s.isCharacterDevice()?Ont:s.isBlockDevice()?Fnt:s.isSocket()?Rnt:s.isFIFO()?Int:cT,"ie"),int=new Poe({max:2**12}),kV=t(s=>{let o=int.get(s);if(o)return o;let f=s.normalize("NFKD");return int.set(s,f),f},"bt"),snt=new Poe({max:2**12}),xoe=t(s=>{let o=snt.get(s);if(o)return o;let f=kV(s.toLowerCase());return snt.set(s,f),f},"_t"),ant=class extends Poe{static{t(this,"Wt")}constructor(){super({max:256})}},vXt=class extends Poe{static{t(this,"ne")}constructor(s=16*1024){super({maxSize:s,sizeCalculation:t(o=>o.length+1,"sizeCalculation")})}},Mnt=Symbol("PathScurry setAsCwd"),Gv=class{static{t(this,"R")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#m;get gid(){return this.#m}#c;get rdev(){return this.#c}#u;get blksize(){return this.#u}#f;get ino(){return this.#f}#p;get size(){return this.#p}#a;get blocks(){return this.#a}#i;get atimeMs(){return this.#i}#o;get mtimeMs(){return this.#o}#h;get ctimeMs(){return this.#h}#d;get birthtimeMs(){return this.#d}#_;get atime(){return this.#_}#y;get mtime(){return this.#y}#b;get ctime(){return this.#b}#v;get birthtime(){return this.#v}#C;#k;#S;#E;#g;#A;#l;#O;#N;#w;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(s,o=cT,f,d,y,x,P){this.name=s,this.#C=y?xoe(s):kV(s),this.#l=o&yXt,this.nocase=y,this.roots=d,this.root=f||this,this.#O=x,this.#S=P.fullpath,this.#g=P.relative,this.#A=P.relativePosix,this.parent=P.parent,this.parent?this.#e=this.parent.#e:this.#e=Ant(P.fs)}depth(){return this.#k!==void 0?this.#k:this.parent?this.#k=this.parent.depth()+1:this.#k=0}childrenCache(){return this.#O}resolve(s){if(!s)return this;let o=this.getRootString(s),f=s.substring(o.length).split(this.splitSep);return o?this.getRoot(o).#D(f):this.#D(f)}#D(s){let o=this;for(let f of s)o=o.child(f);return o}children(){let s=this.#O.get(this);if(s)return s;let o=Object.assign([],{provisional:0});return this.#O.set(this,o),this.#l&=~MPe,o}child(s,o){if(s===""||s===".")return this;if(s==="..")return this.parent||this;let f=this.children(),d=this.nocase?xoe(s):kV(s);for(let F of f)if(F.#C===d)return F;let y=this.parent?this.sep:"",x=this.#S?this.#S+y+s:void 0,P=this.newChild(s,cT,{...o,parent:this,fullpath:x});return this.canReaddir()||(P.#l|=bE),f.push(P),P}relative(){if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let s=this.name,o=this.parent;if(!o)return this.#g=this.name;let f=o.relative();return f+(!f||!o.parent?"":this.sep)+s}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let s=this.name,o=this.parent;if(!o)return this.#A=this.fullpathPosix();let f=o.relativePosix();return f+(!f||!o.parent?"":"/")+s}fullpath(){if(this.#S!==void 0)return this.#S;let s=this.name,o=this.parent;if(!o)return this.#S=this.name;let f=o.fullpath()+(o.parent?this.sep:"")+s;return this.#S=f}fullpathPosix(){if(this.#E!==void 0)return this.#E;if(this.sep==="/")return this.#E=this.fullpath();if(!this.parent){let d=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(d)?this.#E=`//?/${d}`:this.#E=d}let s=this.parent,o=s.fullpathPosix(),f=o+(!o||!s.parent?"":"/")+this.name;return this.#E=f}isUnknown(){return(this.#l&oT)===cT}isType(s){return this[`is${s}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#l&oT)===Lnt}isDirectory(){return(this.#l&oT)===Ok}isCharacterDevice(){return(this.#l&oT)===Ont}isBlockDevice(){return(this.#l&oT)===Fnt}isFIFO(){return(this.#l&oT)===Int}isSocket(){return(this.#l&oT)===Rnt}isSymbolicLink(){return(this.#l&mO)===mO}lstatCached(){return this.#l&rnt?this:void 0}readlinkCached(){return this.#N}realpathCached(){return this.#w}readdirCached(){let s=this.children();return s.slice(0,s.provisional)}canReadlink(){if(this.#N)return!0;if(!this.parent)return!1;let s=this.#l&oT;return!(s!==cT&&s!==mO||this.#l&Toe||this.#l&bE)}calledReaddir(){return!!(this.#l&MPe)}isENOENT(){return!!(this.#l&bE)}isNamed(s){return this.nocase?this.#C===xoe(s):this.#C===kV(s)}async readlink(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=await this.#e.promises.readlink(this.fullpath()),f=(await this.parent.realpath())?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}readlinkSync(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=this.#e.readlinkSync(this.fullpath()),f=this.parent.realpathSync()?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}#$(s){this.#l|=MPe;for(let o=s.provisional;o<s.length;o++){let f=s[o];f&&f.#P()}}#P(){this.#l&bE||(this.#l=(this.#l|bE)&SV,this.#J())}#J(){let s=this.children();s.provisional=0;for(let o of s)o.#P()}#U(){this.#l|=Coe,this.#I()}#I(){if(this.#l&CV)return;let s=this.#l;(s&oT)===Ok&&(s&=SV),this.#l=s|CV,this.#J()}#F(s=""){s==="ENOTDIR"||s==="EPERM"?this.#I():s==="ENOENT"?this.#P():this.children().provisional=0}#R(s=""){s==="ENOTDIR"?this.parent.#I():s==="ENOENT"&&this.#P()}#L(s=""){let o=this.#l;o|=Toe,s==="ENOENT"&&(o|=bE),(s==="EINVAL"||s==="UNKNOWN")&&(o&=SV),this.#l=o,s==="ENOTDIR"&&this.parent&&this.parent.#I()}#z(s,o){return this.#W(s,o)||this.#x(s,o)}#x(s,o){let f=jPe(s),d=this.newChild(s.name,f,{parent:this}),y=d.#l&oT;return y!==Ok&&y!==mO&&y!==cT&&(d.#l|=CV),o.unshift(d),o.provisional++,d}#W(s,o){for(let f=o.provisional;f<o.length;f++){let d=o[f];if((this.nocase?xoe(s.name):kV(s.name))===d.#C)return this.#T(s,d,f,o)}}#T(s,o,f,d){let y=o.name;return o.#l=o.#l&SV|jPe(s),y!==s.name&&(o.name=s.name),f!==d.provisional&&(f===d.length-1?d.pop():d.splice(f,1),d.unshift(o)),d.provisional++,o}async lstat(){if((this.#l&bE)===0)try{return this.#M(await this.#e.promises.lstat(this.fullpath())),this}catch(s){this.#R(s.code)}}lstatSync(){if((this.#l&bE)===0)try{return this.#M(this.#e.lstatSync(this.fullpath())),this}catch(s){this.#R(s.code)}}#M(s){let{atime:o,atimeMs:f,birthtime:d,birthtimeMs:y,blksize:x,blocks:P,ctime:F,ctimeMs:W,dev:G,gid:be,ino:de,mode:se,mtime:Xe,mtimeMs:Ue,nlink:je,rdev:Vt,size:Ut,uid:Ir}=s;this.#_=o,this.#i=f,this.#v=d,this.#d=y,this.#u=x,this.#a=P,this.#b=F,this.#h=W,this.#n=G,this.#m=be,this.#f=de,this.#t=se,this.#y=Xe,this.#o=Ue,this.#r=je,this.#c=Vt,this.#p=Ut,this.#s=Ir;let wn=jPe(s);this.#l=this.#l&SV|wn|rnt,wn!==cT&&wn!==Ok&&wn!==mO&&(this.#l|=CV)}#j=[];#B=!1;#q(s){this.#B=!1;let o=this.#j.slice();this.#j.length=0,o.forEach(f=>f(null,s))}readdirCB(s,o=!1){if(!this.canReaddir()){o?s(null,[]):queueMicrotask(()=>s(null,[]));return}let f=this.children();if(this.calledReaddir()){let y=f.slice(0,f.provisional);o?s(null,y):queueMicrotask(()=>s(null,y));return}if(this.#j.push(s),this.#B)return;this.#B=!0;let d=this.fullpath();this.#e.readdir(d,{withFileTypes:!0},(y,x)=>{if(y)this.#F(y.code),f.provisional=0;else{for(let P of x)this.#z(P,f);this.#$(f)}this.#q(f.slice(0,f.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();if(this.#V)await this.#V;else{let f=t(()=>{},"s");this.#V=new Promise(d=>f=d);try{for(let d of await this.#e.promises.readdir(o,{withFileTypes:!0}))this.#z(d,s);this.#$(s)}catch(d){this.#F(d.code),s.provisional=0}this.#V=void 0,f()}return s.slice(0,s.provisional)}readdirSync(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();try{for(let f of this.#e.readdirSync(o,{withFileTypes:!0}))this.#z(f,s);this.#$(s)}catch(f){this.#F(f.code),s.provisional=0}return s.slice(0,s.provisional)}canReaddir(){if(this.#l&nnt)return!1;let s=oT&this.#l;return s===cT||s===Ok||s===mO}shouldWalk(s,o){return(this.#l&Ok)===Ok&&!(this.#l&nnt)&&!s.has(this)&&(!o||o(this))}async realpath(){if(this.#w)return this.#w;if(!((Coe|Toe|bE)&this.#l))try{let s=await this.#e.promises.realpath(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}realpathSync(){if(this.#w)return this.#w;if(!((Coe|Toe|bE)&this.#l))try{let s=this.#e.realpathSync(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}[Mnt](s){if(s===this)return;s.isCWD=!1,this.isCWD=!0;let o=new Set([]),f=[],d=this;for(;d&&d.parent;)o.add(d),d.#g=f.join(this.sep),d.#A=f.join("/"),d=d.parent,f.push("..");for(d=s;d&&d.parent&&!o.has(d);)d.#g=void 0,d.#A=void 0,d=d.parent}},jnt=class Bnt extends Gv{static{t(this,"n")}sep="\\";splitSep=gXt;constructor(o,f=cT,d,y,x,P,F){super(o,f,d,y,x,P,F)}newChild(o,f=cT,d={}){return new Bnt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}getRootString(o){return UPe.parse(o).root}getRoot(o){if(o=hXt(o.toUpperCase()),o===this.root.name)return this.root;for(let[f,d]of Object.entries(this.roots))if(this.sameRoot(o,f))return this.roots[o]=d;return this.roots[o]=new WPe(o,this).root}sameRoot(o,f=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(Nnt,"$1\\"),o===f}},Unt=class znt extends Gv{static{t(this,"n")}splitSep="/";sep="/";constructor(o,f=cT,d,y,x,P,F){super(o,f,d,y,x,P,F)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,f=cT,d={}){return new znt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}},$nt=class{static{t(this,"It")}root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(s=process.cwd(),o,f,{nocase:d,childrenCacheSize:y=16*1024,fs:x=EV}={}){this.#r=Ant(x),(s instanceof URL||s.startsWith("file://"))&&(s=HKt(s));let P=o.resolve(s);this.roots=Object.create(null),this.rootPath=this.parseRootPath(P),this.#e=new ant,this.#n=new ant,this.#t=new vXt(y);let F=P.substring(this.rootPath.length).split(f);if(F.length===1&&!F[0]&&F.pop(),d===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=d,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let W=this.root,G=F.length-1,be=o.sep,de=this.rootPath,se=!1;for(let Xe of F){let Ue=G--;W=W.child(Xe,{relative:new Array(Ue).fill("..").join(be),relativePosix:new Array(Ue).fill("..").join("/"),fullpath:de+=(se?"":be)+Xe}),se=!0}this.cwd=W}depth(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.depth()}childrenCache(){return this.#t}resolve(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#e.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpath();return this.#e.set(o,d),d}resolvePosix(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#n.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpathPosix();return this.#n.set(o,d),d}relative(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relative()}relativePosix(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relativePosix()}basename(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.name}dirname(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),(s.parent||s).fullpath()}async readdir(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f}=o;if(s.canReaddir()){let d=await s.readdir();return f?d:d.map(y=>y.name)}else return[]}readdirSync(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0}=o;return s.canReaddir()?f?s.readdirSync():s.readdirSync().map(d=>d.name):[]}async lstat(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstat()}lstatSync(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstatSync()}async readlink(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.readlink();return o?f:f?.fullpath()}readlinkSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.readlinkSync();return o?f:f?.fullpath()}async realpath(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.realpath();return o?f:f?.fullpath()}realpathSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.realpathSync();return o?f:f?.fullpath()}async walk(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=[];(!y||y(s))&&P.push(f?s:s.fullpath());let F=new Set,W=t((be,de)=>{F.add(be),be.readdirCB((se,Xe)=>{if(se)return de(se);let Ue=Xe.length;if(!Ue)return de();let je=t(()=>{--Ue===0&&de()},"w");for(let Vt of Xe)(!y||y(Vt))&&P.push(f?Vt:Vt.fullpath()),d&&Vt.isSymbolicLink()?Vt.realpath().then(Ut=>Ut?.isUnknown()?Ut.lstat():Ut).then(Ut=>Ut?.shouldWalk(F,x)?W(Ut,je):je()):Vt.shouldWalk(F,x)?W(Vt,je):je()},!0)},"l"),G=s;return new Promise((be,de)=>{W(G,se=>{if(se)return de(se);be(P)})})}walkSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=[];(!y||y(s))&&P.push(f?s:s.fullpath());let F=new Set([s]);for(let W of F){let G=W.readdirSync();for(let be of G){(!y||y(be))&&P.push(f?be:be.fullpath());let de=be;if(be.isSymbolicLink()){if(!(d&&(de=be.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(F,x)&&F.add(de)}}return P}[Symbol.asyncIterator](){return this.iterate()}iterate(s=this.cwd,o={}){return typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd),this.stream(s,o)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o;(!y||y(s))&&(yield f?s:s.fullpath());let P=new Set([s]);for(let F of P){let W=F.readdirSync();for(let G of W){(!y||y(G))&&(yield f?G:G.fullpath());let be=G;if(G.isSymbolicLink()){if(!(d&&(be=G.realpathSync())))continue;be.isUnknown()&&be.lstatSync()}be.shouldWalk(P,x)&&P.add(be)}}}stream(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=new Doe({objectMode:!0});(!y||y(s))&&P.write(f?s:s.fullpath());let F=new Set,W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&P.end();return}G++,F.add(se);let Xe=t((je,Vt,Ut=!1)=>{if(je)return P.emit("error",je);if(d&&!Ut){let Ir=[];for(let wn of Vt)wn.isSymbolicLink()&&Ir.push(wn.realpath().then(sn=>sn?.isUnknown()?sn.lstat():sn));if(Ir.length){Promise.all(Ir).then(()=>Xe(null,Vt,!0));return}}for(let Ir of Vt)Ir&&(!y||y(Ir))&&(P.write(f?Ir:Ir.fullpath())||(de=!0));G--;for(let Ir of Vt){let wn=Ir.realpathCached()||Ir;wn.shouldWalk(F,x)&&W.push(wn)}de&&!P.flowing?P.once("drain",be):Ue||be()},"m"),Ue=!0;se.readdirCB(Xe,!0),Ue=!1}},"c");return be(),P}streamSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,P=new Doe({objectMode:!0}),F=new Set;(!y||y(s))&&P.write(f?s:s.fullpath());let W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&P.end();return}G++,F.add(se);let Xe=se.readdirSync();for(let Ue of Xe)(!y||y(Ue))&&(P.write(f?Ue:Ue.fullpath())||(de=!0));G--;for(let Ue of Xe){let je=Ue;if(Ue.isSymbolicLink()){if(!(d&&(je=Ue.realpathSync())))continue;je.isUnknown()&&je.lstatSync()}je.shouldWalk(F,x)&&W.push(je)}}de&&!P.flowing&&P.once("drain",be)},"c");return be(),P}chdir(s=this.cwd){let o=this.cwd;this.cwd=typeof s=="string"?this.cwd.resolve(s):s,this.cwd[Mnt](o)}},WPe=class extends $nt{static{t(this,"it")}sep="\\";constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,UPe,"\\",{...o,nocase:f}),this.nocase=f;for(let d=this.cwd;d;d=d.parent)d.nocase=this.nocase}parseRootPath(s){return UPe.parse(s).root.toUpperCase()}newRoot(s){return new jnt(this.rootPath,Ok,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")||s.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(s)}},qPe=class extends $nt{static{t(this,"rt")}sep="/";constructor(s=process.cwd(),o={}){let{nocase:f=!1}=o;super(s,VKt,"/",{...o,nocase:f}),this.nocase=f}parseRootPath(s){return"/"}newRoot(s){return new Unt(this.rootPath,Ok,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")}},Jnt=class extends qPe{static{t(this,"St")}constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,{...o,nocase:f})}},ECr=process.platform==="win32"?jnt:Unt,bXt=process.platform==="win32"?WPe:process.platform==="darwin"?Jnt:qPe,SXt=t(s=>s.length>=1,"Di"),TXt=t(s=>s.length>=1,"Mi"),xXt=Symbol.for("nodejs.util.inspect.custom"),Wnt=class qnt{static{t(this,"n")}#e;#n;#t;length;#r;#s;#m;#c;#u;#f;#p=!0;constructor(o,f,d,y){if(!SXt(o))throw new TypeError("empty pattern list");if(!TXt(f))throw new TypeError("empty glob list");if(f.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,d<0||d>=this.length)throw new TypeError("index out of range");if(this.#e=o,this.#n=f,this.#t=d,this.#r=y,this.#t===0){if(this.isUNC()){let[x,P,F,W,...G]=this.#e,[be,de,se,Xe,...Ue]=this.#n;G[0]===""&&(G.shift(),Ue.shift());let je=[x,P,F,W,""].join("/"),Vt=[be,de,se,Xe,""].join("/");this.#e=[je,...G],this.#n=[Vt,...Ue],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[x,...P]=this.#e,[F,...W]=this.#n;P[0]===""&&(P.shift(),W.shift());let G=x+"/",be=F+"/";this.#e=[G,...P],this.#n=[be,...W],this.length=this.#e.length}}}[xXt](){return"Pattern <"+this.#n.slice(this.#t).join("/")+">"}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===N1}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#m=this.#m||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new qnt(this.#e,this.#n,this.#t+1,this.#r),this.#s.#f=this.#f,this.#s.#u=this.#u,this.#s.#c=this.#c,this.#s):this.#s=null}isUNC(){let o=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#r==="win32"&&this.#t===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#e;return this.#f!==void 0?this.#f:this.#f=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#e[0];return typeof o=="string"&&this.isAbsolute()&&this.#t===0?o:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}},EXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ont=class{static{t(this,"ot")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(s,{nobrace:o,nocase:f,noext:d,noglobstar:y,platform:x=EXt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=x,this.mmopts={dot:!0,nobrace:o,nocase:f,noext:d,noglobstar:y,optimizationLevel:2,platform:x,nocomment:!0,nonegate:!0};for(let P of s)this.add(P)}add(s){let o=new XN(s,this.mmopts);for(let f=0;f<o.set.length;f++){let d=o.set[f],y=o.globParts[f];if(!d||!y)throw new Error("invalid pattern object");for(;d[0]==="."&&y[0]===".";)d.shift(),y.shift();let x=new Wnt(d,y,0,this.platform),P=new XN(x.globString(),this.mmopts),F=y[y.length-1]==="**",W=x.isAbsolute();W?this.absolute.push(P):this.relative.push(P),F&&(W?this.absoluteChildren.push(P):this.relativeChildren.push(P))}}ignored(s){let o=s.fullpath(),f=`${o}/`,d=s.relative()||".",y=`${d}/`;for(let x of this.relative)if(x.match(d)||x.match(y))return!0;for(let x of this.absolute)if(x.match(o)||x.match(f))return!0;return!1}childrenIgnored(s){let o=s.fullpath()+"/",f=(s.relative()||".")+"/";for(let d of this.relativeChildren)if(d.match(f))return!0;for(let d of this.absoluteChildren)if(d.match(o))return!0;return!1}},CXt=class Vnt{static{t(this,"n")}store;constructor(o=new Map){this.store=o}copy(){return new Vnt(new Map(this.store))}hasWalked(o,f){return this.store.get(o.fullpath())?.has(f.globString())}storeWalked(o,f){let d=o.fullpath(),y=this.store.get(d);y?y.add(f.globString()):this.store.set(d,new Set([f.globString()]))}},kXt=class{static{t(this,"he")}store=new Map;add(s,o,f){let d=(o?2:0)|(f?1:0),y=this.store.get(s);this.store.set(s,y===void 0?d:d&y)}entries(){return[...this.store.entries()].map(([s,o])=>[s,!!(o&2),!!(o&1)])}},wXt=class{static{t(this,"ae")}store=new Map;add(s,o){if(!s.canReaddir())return;let f=this.store.get(s);f?f.find(d=>d.globString()===o.globString())||f.push(o):this.store.set(s,[o])}get(s){let o=this.store.get(s);if(!o)throw new Error("attempting to walk unknown path");return o}entries(){return this.keys().map(s=>[s,this.store.get(s)])}keys(){return[...this.store.keys()].filter(s=>s.canReaddir())}},cnt=class Hnt{static{t(this,"n")}hasWalkedCache;matches=new kXt;subwalks=new wXt;patterns;follow;dot;opts;constructor(o,f){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=f?f.copy():new CXt}processPatterns(o,f){this.patterns=f;let d=f.map(y=>[o,y]);for(let[y,x]of d){this.hasWalkedCache.storeWalked(y,x);let P=x.root(),F=x.isAbsolute()&&this.opts.absolute!==!1;if(P){y=y.resolve(P==="/"&&this.opts.root!==void 0?this.opts.root:P);let de=x.rest();if(de)x=de;else{this.matches.add(y,!0,!1);continue}}if(y.isENOENT())continue;let W,G,be=!1;for(;typeof(W=x.pattern())=="string"&&(G=x.rest());)y=y.resolve(W),x=G,be=!0;if(W=x.pattern(),G=x.rest(),be){if(this.hasWalkedCache.hasWalked(y,x))continue;this.hasWalkedCache.storeWalked(y,x)}if(typeof W=="string"){let de=W===".."||W===""||W===".";this.matches.add(y.resolve(W),F,de);continue}else if(W===N1){(!y.isSymbolicLink()||this.follow||x.checkFollowGlobstar())&&this.subwalks.add(y,x);let de=G?.pattern(),se=G?.rest();if(!G||(de===""||de===".")&&!se)this.matches.add(y,F,de===""||de===".");else if(de===".."){let Xe=y.parent||y;se?this.hasWalkedCache.hasWalked(Xe,se)||this.subwalks.add(Xe,se):this.matches.add(Xe,F,!0)}}else W instanceof RegExp&&this.subwalks.add(y,x)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Hnt(this.opts,this.hasWalkedCache)}filterEntries(o,f){let d=this.subwalks.get(o),y=this.child();for(let x of f)for(let P of d){let F=P.isAbsolute(),W=P.pattern(),G=P.rest();W===N1?y.testGlobstar(x,P,G,F):W instanceof RegExp?y.testRegExp(x,W,G,F):y.testString(x,W,G,F)}return y}testGlobstar(o,f,d,y){if((this.dot||!o.name.startsWith("."))&&(f.hasMore()||this.matches.add(o,y,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,f):o.isSymbolicLink()&&(d&&f.checkFollowGlobstar()?this.subwalks.add(o,d):f.markFollowGlobstar()&&this.subwalks.add(o,f)))),d){let x=d.pattern();if(typeof x=="string"&&x!==".."&&x!==""&&x!==".")this.testString(o,x,d.rest(),y);else if(x===".."){let P=o.parent||o;this.subwalks.add(P,d)}else x instanceof RegExp&&this.testRegExp(o,x,d.rest(),y)}}testRegExp(o,f,d,y){f.test(o.name)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}testString(o,f,d,y){o.isNamed(f)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}},DXt=t((s,o)=>typeof s=="string"?new ont([s],o):Array.isArray(s)?new ont(s,o):s,"Li"),Gnt=class{static{t(this,"zt")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(s,o,f){if(this.patterns=s,this.path=o,this.opts=f,this.#t=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#n=DXt(f.ignore??[],f),!this.includeChildMatches&&typeof this.#n.add!="function")){let d="cannot ignore child matches, ignore lacks add() method.";throw new Error(d)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(s){return this.seen.has(s)||!!this.#n?.ignored?.(s)}#s(s){return!!this.#n?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||await s.realpath(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=await d.realpath();y&&(y.isUnknown()||this.opts.stat)&&await y.lstat()}return this.matchCheckTest(d,o)}matchCheckTest(s,o){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!o||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#r(s)?s:void 0}matchCheckSync(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||s.realpathSync(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=d.realpathSync();y&&(y?.isUnknown()||this.opts.stat)&&y.lstatSync()}return this.matchCheckTest(d,o)}matchFinish(s,o){if(this.#r(s))return;if(!this.includeChildMatches&&this.#n?.add){let y=`${s.relativePosix()}/**`;this.#n.add(y)}let f=this.opts.absolute===void 0?o:this.opts.absolute;this.seen.add(s);let d=this.opts.mark&&s.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(f){let y=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(y+d)}else{let y=this.opts.posix?s.relativePosix():s.relative(),x=this.opts.dotRelative&&!y.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(y?x+y+d:"."+d)}}async match(s,o,f){let d=await this.matchCheck(s,f);d&&this.matchFinish(d,o)}matchSync(s,o,f){let d=this.matchCheckSync(s,f);d&&this.matchFinish(d,o)}walkCB(s,o,f){this.signal?.aborted&&f(),this.walkCB2(s,o,new cnt(this.opts),f)}walkCB2(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||(y++,this.match(P,F,W).then(()=>x()));for(let P of f.subwalkTargets()){if(this.maxDepth!==1/0&&P.depth()>=this.maxDepth)continue;y++;let F=P.readdirCached();P.calledReaddir()?this.walkCB3(P,F,f,x):P.readdirCB((W,G)=>this.walkCB3(P,G,f,x),!0)}x()}walkCB3(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||(y++,this.match(P,F,W).then(()=>x()));for(let[P,F]of f.subwalks.entries())y++,this.walkCB2(P,F,f.child(),x);x()}walkCBSync(s,o,f){this.signal?.aborted&&f(),this.walkCB2Sync(s,o,new cnt(this.opts),f)}walkCB2Sync(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2Sync(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||this.matchSync(P,F,W);for(let P of f.subwalkTargets()){if(this.maxDepth!==1/0&&P.depth()>=this.maxDepth)continue;y++;let F=P.readdirSync();this.walkCB3Sync(P,F,f,x)}x()}walkCB3Sync(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[P,F,W]of f.matches.entries())this.#r(P)||this.matchSync(P,F,W);for(let[P,F]of f.subwalks.entries())y++,this.walkCB2Sync(P,F,f.child(),x);x()}},lnt=class extends Gnt{static{t(this,"xt")}matches=new Set;constructor(s,o,f){super(s,o,f)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,o)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?o(this.signal.reason):s(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},unt=class extends Gnt{static{t(this,"vt")}results;constructor(s,o,f){super(s,o,f),this.results=new Doe({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},PXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",hO=class{static{t(this,"I")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,o){if(!o)throw new TypeError("glob options required");if(this.withFileTypes=!!o.withFileTypes,this.signal=o.signal,this.follow=!!o.follow,this.dot=!!o.dot,this.dotRelative=!!o.dotRelative,this.nodir=!!o.nodir,this.mark=!!o.mark,o.cwd?(o.cwd instanceof URL||o.cwd.startsWith("file://"))&&(o.cwd=$Kt(o.cwd)):this.cwd="",this.cwd=o.cwd||"",this.root=o.root,this.magicalBraces=!!o.magicalBraces,this.nobrace=!!o.nobrace,this.noext=!!o.noext,this.realpath=!!o.realpath,this.absolute=o.absolute,this.includeChildMatches=o.includeChildMatches!==!1,this.noglobstar=!!o.noglobstar,this.matchBase=!!o.matchBase,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:1/0,this.stat=!!o.stat,this.ignore=o.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(F=>F.replace(/\\/g,"/"))),this.matchBase){if(o.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(F=>F.includes("/")?F:`./**/${F}`)}if(this.pattern=s,this.platform=o.platform||PXt,this.opts={...o,platform:this.platform},o.scurry){if(this.scurry=o.scurry,o.nocase!==void 0&&o.nocase!==o.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let F=o.platform==="win32"?WPe:o.platform==="darwin"?Jnt:o.platform?qPe:bXt;this.scurry=new F(this.cwd,{nocase:o.nocase,fs:o.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",d={braceExpandMax:1e4,...o,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},y=this.pattern.map(F=>new XN(F,d)),[x,P]=y.reduce((F,W)=>(F[0].push(...W.set),F[1].push(...W.globParts),F),[[],[]]);this.patterns=x.map((F,W)=>{let G=P[W];if(!G)throw new Error("invalid pattern object");return new Wnt(F,G,0,this.platform)})}async walk(){return[...await new lnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new lnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new unt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new unt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},AXt=t((s,o={})=>{Array.isArray(s)||(s=[s]);for(let f of s)if(new XN(f,o).hasMagic())return!0;return!1},"le");function Aoe(s,o={}){return new hO(s,o).streamSync()}t(Aoe,"Bt");function Ynt(s,o={}){return new hO(s,o).stream()}t(Ynt,"Qe");function Knt(s,o={}){return new hO(s,o).walkSync()}t(Knt,"ts");async function fnt(s,o={}){return new hO(s,o).walk()}t(fnt,"Je");function Noe(s,o={}){return new hO(s,o).iterateSync()}t(Noe,"Ut");function Xnt(s,o={}){return new hO(s,o).iterate()}t(Xnt,"es");var NXt=Aoe,IXt=Object.assign(Ynt,{sync:Aoe}),OXt=Noe,FXt=Object.assign(Xnt,{sync:Noe}),LXt=Object.assign(Knt,{stream:Aoe,iterate:Noe}),wV=Object.assign(fnt,{glob:fnt,globSync:Knt,sync:LXt,globStream:Ynt,stream:IXt,globStreamSync:Aoe,streamSync:NXt,globIterate:Xnt,iterate:FXt,globIterateSync:Noe,iterateSync:OXt,Glob:hO,hasMagic:AXt,escape:vnt,unescape:q9});wV.glob=wV;var Cy=class extends Error{static{t(this,"CompilationError")}buildMessages;constructor(o){super("An error occurred during compilation."),this.buildMessages=Array.isArray(o)?o:[o]}toBuildResult(){return{content:"",errors:this.buildMessages}}};var RXt="true",MXt="false",jXt="null";var BXt="Infinity";var DV=new Map([[34,'"'],[92,"\\"],[47,"/"],[98,"\b"],[110,`
568
568
  `],[102,"\f"],[114,"\r"],[116," "]]),Foe=new Map([...DV,[118,"\v"],[48,"\0"]]),UXt=new Map([['"','"'],["\\","\\"],["/","/"],["\b","b"],[`
569
- `,"n"],["\f","f"],["\r","r"],[" ","t"]]),XCr=new Map([...UXt,["\v","v"],["\0","0"],["\u2028","u2028"],["\u2029","u2029"]]),Ooe=new Map([["[","LBracket"],["]","RBracket"],["{","LBrace"],["}","RBrace"],[":","Colon"],[",","Comma"],[RXt,"Boolean"],[MXt,"Boolean"],[jXt,"Null"]]),Ioe=new Map([...Ooe,["NaN","Number"],[BXt,"Number"]]),HPe=new Set([10,13,8232,8233]),$P=class extends Error{static{t(this,"ErrorWithLocation")}constructor(o,{line:f,column:d,offset:y}){super(`${o} (${f}:${d})`),this.line=f,this.column=d,this.offset=y}},GPe=class extends $P{static{t(this,"UnexpectedChar")}constructor(o,f){super(`Unexpected character '${String.fromCharCode(o)}' found.`,f)}},YPe=class extends $P{static{t(this,"UnexpectedIdentifier")}constructor(o,f){super(`Unexpected identifier '${o}' found.`,f)}},gO=class extends $P{static{t(this,"UnexpectedToken")}constructor(o){super(`Unexpected token ${o.type} found.`,o.loc.start)}},Loe=class extends $P{static{t(this,"UnexpectedEOF")}constructor(o){super("Unexpected end of input found.",o)}},zXt=/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,$Xt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,JXt=13,Znt=10,KPe=class{static{t(this,"CharCodeReader")}#e="";#n=1;#t=0;#r=-1;#s=!1;#m=-1;#c=!1;constructor(o){this.#e=o}#u(){this.#c||(this.#t++,this.#r++,this.#m=-1,this.#c=!0)}locate(){return{line:this.#n,column:this.#t,offset:this.#r}}next(){if(this.#r>=this.#e.length-1)return this.#u(),-1;this.#r++;let o=this.#e.charCodeAt(this.#r);return this.#s?(this.#n++,this.#t=1,this.#s=!1):this.#t++,o===JXt?(this.#s=!0,this.peek()===Znt&&this.#r++):o===Znt&&(this.#s=!0),this.#m=o,o}peek(){return this.#r===this.#e.length-1?-1:this.#e.charCodeAt(this.#r+1)}match(o){return o(this.peek())?(this.next(),!0):!1}current(){return this.#m}},WXt="Infinity",qXt="NaN",VXt=new Set([116,102,110]),XPe=new Set([32,9,10,13]),Qnt=new Set([...XPe,11,12,160,8232,8233,65279,160,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]),HXt={mode:"json",ranges:!1},GXt=new Set(["true","false","null"]),b_={EOF:0,Number:1,String:2,Boolean:3,Null:4,NaN:5,Infinity:6,Identifier:7,Colon:20,LBrace:21,RBrace:22,LBracket:23,RBracket:24,Comma:25,LineComment:40,BlockComment:41};function zP(s){return s>=48&&s<=57}t(zP,"isDigit");function VPe(s){return zP(s)||s>=65&&s<=70||s>=97&&s<=102}t(VPe,"isHexDigit");function YXt(s){return s>=49&&s<=57}t(YXt,"isPositiveDigit");function KXt(s){return VXt.has(s)}t(KXt,"isKeywordStart");function tit(s){return zP(s)||s===46||s===45}t(tit,"isNumberStart");function XXt(s){return tit(s)||s===43}t(XXt,"isJSON5NumberStart");function eit(s,o){return s===34||o&&s===39}t(eit,"isStringStart");function rit(s){if(s===36||s===95||s===92||s>=97&&s<=122||s>=65&&s<=90||s===8204||s===8205)return!0;let o=String.fromCharCode(s);return zXt.test(o)}t(rit,"isJSON5IdentifierStart");function ZXt(s){if(rit(s)||zP(s))return!0;let o=String.fromCharCode(s);return $Xt.test(o)}t(ZXt,"isJSON5IdentifierPart");var ZPe=class{static{t(this,"Tokenizer")}#e;#n;#t;#r;#s;#m;#c;#u;#f;#p;#a;constructor(o,f){this.#n=o,this.#e={...HXt,...f},this.#t=new KPe(o),this.#r=this.#e.mode==="json5",this.#s=this.#e.mode!=="json",this.#m=this.#e.ranges,this.#u=this.#r?Foe.has.bind(Foe):DV.has.bind(DV),this.#f=this.#r?HPe.has.bind(HPe):()=>!1,this.#p=this.#r?d=>d===120:()=>!1,this.#a=this.#r?Qnt.has.bind(Qnt):XPe.has.bind(XPe)}#i(o,f=this.#t.locate()){throw new GPe(o,f)}#o(o,f=this.#t.locate()){throw new YPe(o,f)}#h(){throw new Loe(this.#t.locate())}#d(o,f,d,y){let x=d.offset+f,P=this.#e.ranges?{range:[d.offset,x]}:void 0;return{type:o,loc:{start:d,end:y||{line:d.line,column:d.column+f,offset:x}},...P}}#_(o){let f="",d;for(let y=0;y<o;y++){if(d=this.#t.peek(),VPe(d)){this.#t.next(),f+=String.fromCharCode(d);continue}this.#i(d)}return f}#y(o){let f="";do{if(f+=String.fromCharCode(o),o===92&&(o=this.#t.next(),o!==117&&this.#i(o),f+=String.fromCharCode(o),f+=this.#_(4)),o=this.#t.peek(),!ZXt(o))break;this.#t.next()}while(!0);return f}#b(o){let f=o,d=1;for(o=this.#t.peek();o!==-1&&o!==f;){if(this.#t.next(),d++,o===92)if(o=this.#t.peek(),this.#u(o)||this.#f(o))this.#t.next(),d++;else if(o===117){this.#t.next(),d++;let y=this.#_(4);d+=y.length}else if(this.#p(o)){this.#t.next(),d++;let y=this.#_(2);d+=y.length}else this.#r?(this.#t.next(),d++):this.#i(o);o=this.#t.peek()}return o===-1&&(this.#t.next(),this.#h()),this.#t.next(),d++,d}#v(o){let f=1;if(o===45||this.#r&&o===43){if(o=this.#t.peek(),this.#r&&(o===73||o===78)){this.#t.next();let d=this.#y(o);return d!==WXt&&d!==qXt&&this.#i(o),f+d.length}zP(o)||this.#i(o),this.#t.next(),f++}if(o===48)if(o=this.#t.peek(),this.#r&&(o===120||o===88)){this.#t.next(),f++,o=this.#t.peek(),VPe(o)||(this.#t.next(),this.#i(o));do this.#t.next(),f++,o=this.#t.peek();while(VPe(o))}else zP(o)&&this.#i(o);else if(!this.#r||o!==46)for(YXt(o)||this.#i(o),o=this.#t.peek();zP(o);)this.#t.next(),f++,o=this.#t.peek();if(o===46){let d=-1;for(this.#t.next(),f++,d++,o=this.#t.peek();zP(o);)this.#t.next(),f++,d++,o=this.#t.peek();!this.#r&&d===0&&(this.#t.next(),o?this.#i(o):this.#h())}if(o===101||o===69)for(this.#t.next(),f++,o=this.#t.peek(),(o===43||o===45)&&(this.#t.next(),f++,o=this.#t.peek()),o===-1&&(this.#t.next(),this.#h()),zP(o)||(this.#t.next(),this.#i(o));zP(o);)this.#t.next(),f++,o=this.#t.peek();return f}#C(o){let f=1;if(o=this.#t.peek(),o===47){do this.#t.next(),f+=1,o=this.#t.peek();while(o>-1&&o!==13&&o!==10);return{length:f,multiline:!1}}if(o===42){for(this.#t.next(),f+=1;o>-1;)if(o=this.#t.peek(),o===42){if(this.#t.next(),f+=1,o=this.#t.peek(),o===47)return this.#t.next(),f+=1,{length:f,multiline:!0}}else this.#t.next(),f+=1;this.#t.next(),this.#h()}this.#t.next(),this.#i(o)}next(){let o=this.#t.next();for(;this.#a(o);)o=this.#t.next();if(o===-1)return b_.EOF;let f=this.#t.locate(),d=String.fromCharCode(o);if(this.#r)if(Ioe.has(d))this.#c=this.#d(Ioe.get(d),1,f);else if(rit(o)){let y=this.#y(o);Ioe.has(y)?this.#c=this.#d(Ioe.get(y),y.length,f):this.#c=this.#d("Identifier",y.length,f)}else if(XXt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(eit(o,this.#r)){let y=this.#b(o),x=this.#t.locate();this.#c=this.#d("String",y,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);else if(Ooe.has(d))this.#c=this.#d(Ooe.get(d),1,f);else if(KXt(o)){let y=this.#y(o);GXt.has(y)||this.#o(y,f),this.#c=this.#d(Ooe.get(y),y.length,f)}else if(tit(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(eit(o,this.#r)){let y=this.#b(o);this.#c=this.#d("String",y,f)}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);return b_[this.#c.type]}get token(){return this.#c}};var lT={document(s,o={}){return{type:"Document",body:s,loc:o.loc,...o}},string(s,o={}){return{type:"String",value:s,loc:o.loc,...o}},number(s,o={}){return{type:"Number",value:s,loc:o.loc,...o}},boolean(s,o={}){return{type:"Boolean",value:s,loc:o.loc,...o}},null(s={}){return{type:"Null",loc:s.loc,...s}},array(s,o={}){return{type:"Array",elements:s,loc:o.loc,...o}},element(s,o={}){return{type:"Element",value:s,loc:o.loc,...o}},object(s,o={}){return{type:"Object",members:s,loc:o.loc,...o}},member(s,o,f={}){return{type:"Member",name:s,value:o,loc:f.loc,...f}},identifier(s,o={}){return{type:"Identifier",name:s,loc:o.loc,...o}},nan(s="",o={}){return{type:"NaN",sign:s,loc:o.loc,...o}},infinity(s="",o={}){return{type:"Infinity",sign:s,loc:o.loc,...o}}},QXt={mode:"json",ranges:!1,tokens:!1,allowTrailingCommas:!1};function eZt(s,o,f=!1){let d="",y=s.indexOf("\\"),x=0;for(;y>=0;){d+=s.slice(x,y);let P=s.charAt(y+1),F=P.charCodeAt(0);if(f&&Foe.has(F))d+=Foe.get(F),x=y+2;else if(DV.has(F))d+=DV.get(F),x=y+2;else if(P==="u"){let W=s.slice(y+2,y+6);if(W.length<4||/[^0-9a-f]/i.test(W))throw new $P(`Invalid unicode escape \\u${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+6}else if(f&&P==="x"){let W=s.slice(y+2,y+4);if(W.length<2||/[^0-9a-f]/i.test(W))throw new $P(`Invalid hex escape \\x${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+4}else if(f&&HPe.has(F))x=y+2,P==="\r"&&s.charAt(x)===`
570
- `&&x++;else if(f)d+=P,x=y+2;else throw new $P(`Invalid escape \\${P}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});y=s.indexOf("\\",x)}return d+=s.slice(x),d}t(eZt,"getStringValue");function tZt(s,o,f=!1){switch(o.type){case"Boolean":return s==="true";case"Number":return Number(s);case"String":return eZt(s.slice(1,-1),o,f);default:throw new TypeError(`Unknown token type "${o.type}.`)}}t(tZt,"getLiteralValue");function nit(s,o){o=Object.freeze({...QXt,...o});let f=[],d=new ZPe(s,{mode:o.mode,ranges:o.ranges}),y=o.mode==="json5",x=o.allowTrailingCommas||y;function P(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr}t(P,"nextNoComments");function F(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr>=b_.LineComment?F():kr}t(F,"nextSkipComments");let W=o.mode==="json"?P:F;function G(kr,yr){if(kr!==yr)throw new gO(d.token)}t(G,"assertTokenType");function be(kr,yr){if(!yr.includes(kr))throw new gO(d.token)}t(be,"assertTokenTypes");function de(kr,yr){return o.ranges?{range:[kr.offset,yr.offset]}:void 0}t(de,"createRange");function se(kr){let yr=d.token,xs=de(yr.loc.start,yr.loc.end),bi=tZt(s.slice(yr.loc.start.offset,yr.loc.end.offset),yr,y),Ci={loc:{start:{...yr.loc.start},end:{...yr.loc.end}},...xs};switch(kr){case b_.String:return lT.string(bi,Ci);case b_.Number:return lT.number(bi,Ci);case b_.Boolean:return lT.boolean(bi,Ci);default:throw new TypeError(`Unknown token type ${yr.type}.`)}}t(se,"createLiteralNode");function Xe(kr){let yr=de(kr.loc.start,kr.loc.end),xs=s.slice(kr.loc.start.offset,kr.loc.end.offset),fc={loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr};if(kr.type!=="Identifier"){let Ci="";return(xs[0]==="+"||xs[0]==="-")&&(Ci=xs[0]),lT[xs.includes("NaN")?"nan":"infinity"](Ci,fc)}return lT.identifier(xs,fc)}t(Xe,"createJSON5IdentifierNode");function Ue(kr){let yr=de(kr.loc.start,kr.loc.end);return lT.null({loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr})}t(Ue,"createNullNode");function je(kr){y?be(kr,[b_.String,b_.Identifier,b_.Number]):G(kr,b_.String);let yr=d.token,xs=kr===b_.String?se(kr):Xe(yr);if(y&&(xs.type==="NaN"||xs.type==="Infinity")){if(xs.sign!=="")throw new gO(d.token);xs=lT.identifier(xs.type,{loc:xs.loc,...de(xs.loc.start,xs.loc.end)})}kr=W(),G(kr,b_.Colon);let bi=Ir(),fc=de(xs.loc.start,bi.loc.end);return lT.member(xs,bi,{loc:{start:{...xs.loc.start},end:{...bi.loc.end}},...fc})}t(je,"parseProperty");function Vt(kr){G(kr,b_.LBrace);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBrace)do{if(xs.push(je(bi)),bi=W(),!bi)throw new Loe(xs[xs.length-1].loc.end);if(bi===b_.Comma){if(bi=W(),x&&bi===b_.RBrace)break}else break}while(bi);G(bi,b_.RBrace);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return lT.object(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Vt,"parseObject");function Ut(kr){G(kr,b_.LBracket);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBracket)do{let bf=Ir(bi);if(xs.push(lT.element(bf,{loc:bf.loc})),bi=W(),bi===b_.Comma){if(bi=W(),x&&bi===b_.RBracket)break}else break}while(bi);G(bi,b_.RBracket);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return lT.array(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Ut,"parseArray");function Ir(kr){kr=kr??W();let yr=d.token;switch(kr){case b_.String:case b_.Boolean:return se(kr);case b_.Number:if(y){let xs=s.slice(yr.loc.start.offset,yr.loc.end.offset);if((xs[0]==="+"||xs[0]==="-")&&(xs=xs.slice(1)),xs==="NaN"||xs==="Infinity")return Xe(yr)}return se(kr);case b_.Null:return Ue(yr);case b_.LBrace:return Vt(kr);case b_.LBracket:return Ut(kr);default:throw new gO(yr)}}t(Ir,"parseValue");let wn=Ir();if(W())throw new gO(d.token);let Jn={loc:{start:{line:1,column:1,offset:0},end:{...wn.loc.end}}};return o.tokens&&(Jn.tokens=f),o.ranges&&(Jn.range=[Jn.loc.start.offset,Jn.loc.end.offset]),lT.document(wn,Jn)}t(nit,"parse");var rZt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function iit(s){return s&&typeof s=="object"}t(iit,"isObject");function nZt(s){return iit(s)&&typeof s.type=="string"}t(nZt,"isNode");function iZt(s,o){function f(d,y){typeof o.enter=="function"&&o.enter(d,y);for(let x of rZt.get(d.type)){let P=d[x];iit(P)&&(Array.isArray(P)?P.forEach(F=>f(F,d)):nZt(P)&&f(P,d))}typeof o.exit=="function"&&o.exit(d,y)}t(f,"visitNode"),f(s)}t(iZt,"traverse");function sit(s,o=()=>!0){let f=[];return iZt(s,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(o).values()}t(sit,"iterator");import sZt from"node:fs/promises";var PV=t((s,o)=>s.split(/\r?\n/)[o-1],"getFileLineContent"),Roe=t(async s=>{try{return await sZt.readFile(s,"utf-8")}catch{return}},"getSchemaContent"),AV=t(async s=>{try{return nit(s)}catch(o){if(o.column&&o.line&&o.message){let f=PV(s,o.line);return{column:o.column,line:o.line,length:void 0,lineText:f}}return}},"getSchemaAST");var ait=t(async(s,o,f)=>{try{if(s.length===0)return;for(let d of s){let y=await Roe(d),x=await aZt(y,d,o,f);if(x)return x}}catch{}},"getRouteLocationByValue"),aZt=t(async(s,o,f,d)=>{try{if(!s)return;let y=null,x=await AV(s);if(x){for(let{node:P}of sit(x))if(P.value&&P.value===f){y=P.loc;break}if(y!==null){let P=PV(s,y.start.line);return{file:o,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:P,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import oit from"node:fs/promises";import SE from"node:path";var QPe="schemas",eAe=".oas.json";var yO=t(async s=>(await oit.readdir(s)).map(f=>SE.join(s,f)).filter(f=>f.endsWith(eAe)).sort(),"getOpenApiFilesByAlphabetical"),V9=t(async s=>{let o=SE.resolve(s,"config");return(await oit.readdir(o)).filter(d=>d.endsWith(eAe)).length>=1},"oasFileInProject");function NV(s,o,f,d,y,x,P){if(x.has(f))return;let F;try{F=d.get(f)}catch(Ue){throw new P1({text:`Failed to resolve reference: ${f}`,detail:Ue.message,severity:"error",message:"Failed to resolve reference",location:{file:s,column:0,line:0,length:0,lineText:f,namespace:o,suggestion:"Check the reference and try again."}})}let W=joe(f),G=SE.basename(W,SE.extname(W)),be=f.indexOf("#"),de=be>=0?f.substring(0,be):f,se=be>=0?f.substring(be+1):"",Xe=d.get(de);if(se){let Ue=se.split("/").filter(Boolean);for(let je of Ue)if(Xe=Xe[je],Xe===void 0)throw new Error(`Cannot resolve JSON pointer: ${se}`)}if(Xe&&typeof Xe=="object"&&"$ref"in Xe&&typeof Xe.$ref=="string"&&!Xe.$ref.startsWith("#")){let Ue=SE.resolve(SE.dirname(de),Xe.$ref);if(W=Ue,G=SE.basename(W,SE.extname(W)),de=Ue,x.has(de)){let Vt=x.get(de);if(Vt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Vt);return}let je=y.length;x.set(f,je),x.set(de,je),y.push(de),Moe(W,G,F,d,y,x,P)}else x.set(f,y.length),y.push(f),Moe(joe(f),o,F,d,y,x,P)}t(NV,"chaseRefs");function Moe(s,o,f,d,y,x,P){if(Array.isArray(f))for(let F of f)Moe(s,o,F,d,y,x,P);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let W=f[F];P&&(f[F]=P(o,W,s)),NV(s,o,ZN(s,W),d,y,x,P)}Moe(s,o,f[F],d,y,x,P)}}t(Moe,"lookForRefs");function ZN(s,o){let f=o.indexOf("#");return f>=0?`${SE.resolve(s,o.substring(0,f))}${o.substring(f)}`:SE.resolve(SE.dirname(s),o)}t(ZN,"getFullyQualifiedRefName");function joe(s){let o=s.indexOf("#");return o>=0?s.substring(0,o):s}t(joe,"getFilePathNameFromRefName");import _le from"node:path";function oZt(s){if(s.length>=255)throw new TypeError("Alphabet too long");let o=new Uint8Array(256);for(let G=0;G<o.length;G++)o[G]=255;for(let G=0;G<s.length;G++){let be=s.charAt(G),de=be.charCodeAt(0);if(o[de]!==255)throw new TypeError(be+" is ambiguous");o[de]=G}let f=s.length,d=s.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function P(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let be=0,de=0,se=0,Xe=G.length;for(;se!==Xe&&G[se]===0;)se++,be++;let Ue=(Xe-se)*x+1>>>0,je=new Uint8Array(Ue);for(;se!==Xe;){let Ir=G[se],wn=0;for(let sn=Ue-1;(Ir!==0||wn<de)&&sn!==-1;sn--,wn++)Ir+=256*je[sn]>>>0,je[sn]=Ir%f>>>0,Ir=Ir/f>>>0;if(Ir!==0)throw new Error("Non-zero carry");de=wn,se++}let Vt=Ue-de;for(;Vt!==Ue&&je[Vt]===0;)Vt++;let Ut=d.repeat(be);for(;Vt<Ue;++Vt)Ut+=s.charAt(je[Vt]);return Ut}t(P,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let be=0,de=0,se=0;for(;G[be]===d;)de++,be++;let Xe=(G.length-be)*y+1>>>0,Ue=new Uint8Array(Xe);for(;G[be];){let Ir=o[G.charCodeAt(be)];if(Ir===255)return;let wn=0;for(let sn=Xe-1;(Ir!==0||wn<se)&&sn!==-1;sn--,wn++)Ir+=f*Ue[sn]>>>0,Ue[sn]=Ir%256>>>0,Ir=Ir/256>>>0;if(Ir!==0)throw new Error("Non-zero carry");se=wn,be++}let je=Xe-se;for(;je!==Xe&&Ue[je]===0;)je++;let Vt=new Uint8Array(de+(Xe-je)),Ut=de;for(;je!==Xe;)Vt[Ut++]=Ue[je++];return Vt}t(F,"decodeUnsafe");function W(G){let be=F(G);if(be)return be;throw new Error("Non-base"+f+" character")}return t(W,"decode"),{encode:P,decodeUnsafe:F,decode:W}}t(oZt,"base");var cit=oZt;var cZt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Boe=cit(cZt);var lZt=!1;function H9(s,o){return{open:`\x1B[${s.join(";")}m`,close:`\x1B[${o}m`,regexp:new RegExp(`\\x1b\\[${o}m`,"g")}}t(H9,"code");function G9(s,o){return lZt?`${o.open}${s.replace(o.regexp,o.open)}${o.close}`:s}t(G9,"run");function uZt(s){return G9(s,H9([31],39))}t(uZt,"red");function fZt(s){return G9(s,H9([32],39))}t(fZt,"green");function _Zt(s){return G9(s,H9([33],39))}t(_Zt,"yellow");function pZt(s){return G9(s,H9([34],39))}t(pZt,"blue");function dZt(s){return G9(s,H9([35],39))}t(dZt,"magenta");function mZt(s){return G9(s,H9([36],39))}t(mZt,"cyan");var vkr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var lit=[uZt,fZt,_Zt,pZt,dZt,mZt];function hZt(s){let o=0,f=s.length,d=0;if(f>0)for(;d<f;)o=(o<<5)-o+s.charCodeAt(d++)|0;return o}t(hZt,"hashCode");function uit(s){let o=Math.abs(hZt(s));return lit[o%lit.length]}t(uit,"generateColor");import{inspect as gZt}from"node:util";function fit(s,o,...f){let d=0,y=f.length,x=String(o).replace(/%[sdjoO%]/g,P=>{if(P==="%%")return"%";if(d>=y)return P;switch(P){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return s(f[d++]).split(`
571
- `).map(F=>F.trim()).join(" ");case"%O":return s(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return P}});for(let P of f.splice(d))P===null||!(typeof P=="object"&&P!==null)?x+=" "+P:x+=" "+s(P);return x}t(fit,"format");var _it=t((s,...o)=>fit(gZt,s,o),"format");var tAe=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(o,f){this.manager=o,this.ns=f,this.color=uit(f),this.last=0,this.enabled=o.enabled.some(d=>d.test(f))}log(...o){if(!this.enabled)return;let f,d=o[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=_it(f,...o);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},rAe=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(o){this.debuggers=new Map,this.enabled=o??[]}};function yZt(s){return!s||s.length===0?[]:(s=s.replace(/\s/g,"").replace(/\*/g,".+"),s.split(",").map(o=>new RegExp(`^${o}$`)))}t(yZt,"extract");var Uoe;function zoe(s){Uoe||(Uoe=new rAe(yZt(process.env.DEBUG)));let o=new tAe(Uoe,s);return Uoe.debuggers.set(s,o),Object.assign(o.log.bind(o),{self:o})}t(zoe,"debug");var pit="zp-local-service";var JP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(o,f){typeof o=="string"?super(o,f):(super(o.message,f),this.extensionMembers=o.extensionMembers),this.name="RuntimeError"}};var QN=zoe("zuplo:runtime:external-service");function vZt(){let s,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:o}=Cm.instance.runtime;if(o&&o!=="undefined")try{let f=atob(o);s=JSON.parse(f)}catch{}return s}t(vZt,"getServiceAuth");async function dit(s,o){let f=".proxy",d=".tunnel";if(typeof s=="string"){let y=new URL(s),x=y.hostname;if(x.endsWith(f)){let Vt=x.slice(0,-f.length),Ut=new URL(`http://${Vt}${y.pathname}${y.search}`);QN(`Routing to proxy: ${Ut.toString()}`);let Ir=o??{};return IV(Ut.toString(),Ir)}let P=x.endsWith(d),F=x.indexOf(".")===-1;if(!(P||F))throw new JP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=P?x.slice(0,-d.length):x,be=vZt();if(!be)throw QN("There is no external service auth configured for this zup."),new JP("There are no external services configured for this zup.");QN(`Using external service auth. ClientId: ${be.clientId})`);let de=o??{},se=new Headers(de.headers||{});se.set("CF-Access-Client-Id",be.clientId),se.set("CF-Access-Client-Secret",be.clientSecret),de.headers=se;let Xe;if(be.customServiceMapping?.[G])Xe=`https://${be.customServiceMapping[G]}`;else if(Cm.instance.useLegacyServiceRouting)Xe=`https://${G}.zuptunnel.com`;else{QN("Using sha256 service routing");let Vt=Cm.instance.build;if(Vt.ACCOUNT_NAME&&Vt.PROJECT_NAME&&Vt.ENVIRONMENT_TYPE){let Ut=await bZt(G,Vt.ACCOUNT_NAME,Vt.PROJECT_NAME,Vt.ENVIRONMENT_TYPE),Ir=hit(Vt.ENVIRONMENT_TYPE),wn=await nAe(`${Vt.ACCOUNT_NAME}-${Vt.PROJECT_NAME}-${Ir}`);wn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||wn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Xe=`https://${Ut}.zuptunnel.com`:Xe=`https://${Ut}.t.zuplo.app`}else throw QN("Cannot use sha256 service routing, missing build variables"),new JP("Failed to generate fully qualified tunnel url.")}let Ue=new URL(`${Xe}${y.pathname}${y.search}`);QN(`Calling external service: ${Ue.toString()}`);let je=await IV(Ue.toString(),de);if(je.status===403&&je.headers.get("cf-access-domain")!==null)throw OV.console.error("403 Forbidden when calling external service.",{clientId:be.clientId,tunnelHost:Xe}),new JP("Could not connect to secure tunnel.");return je}else throw QN("Cannot call external service with Request object"),new JP("Currently, we only support fetch(<some_string>, ...).")}t(dit,"externalServiceHandler");async function mit(s,o){if(typeof s=="string"){let f=new URL(s),d=f.hostname,y=o??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,P=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(pit,d),y.headers=F,await IV(P.toString(),y)}else throw new JP("Currently, we only support fetch(<some_string>, ...).")}t(mit,"clusterServiceHandler");async function bZt(s,o,f,d){let y=s.toLowerCase(),x=o.toLowerCase(),P=f.toLowerCase(),F=hit(d);QN(`Hashing service name: ${x}-${y}.${x}-${P}-${F}`);let W=await nAe(`${x}-${y}`),G=await nAe(`${x}-${P}-${F}`);return`${W}.${G}`}t(bZt,"hashServiceName");async function nAe(s){let o=new TextEncoder().encode(s),f=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(nAe,"hashSegment");function hit(s){let o=s.toLowerCase();switch(o){case"production":case"preview":return o;default:return"working-copy"}}t(hit,"sanitizeEnvironmentType");var iAe=new Map;iAe.set("service:",dit);iAe.set("local:",mit);var IV=globalThis.fetch;function sAe(s,o){let{transformedInit:f,mtlsCertificate:d}=SZt(o);if(typeof s=="string"){let y=new URL(s),x=iAe.get(y.protocol);return x?x(s,f):git(s,f,d)}else return git(s,f,d)}t(sAe,"internalFetch");globalThis.fetch=sAe;function git(s,o,f){if(!f)return IV(s,o);if(Cm.instance.isCloudflare){let y=Cm.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(s,o)}else if(Cm.instance.isDeno){let d=globalThis.managedDedicatedMtlsBindings?.[f];if(!d)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof d.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding.`);return d.fetch(s,o)}else throw new Error("mTLS client certificates are not supported in this runtime environment")}t(git,"performFetch");var SZt=t(s=>{if(!s||s instanceof Request)return{transformedInit:s,mtlsCertificate:void 0};let o=s;if(!o.zuplo)return{transformedInit:s,mtlsCertificate:void 0};let f=o.zuplo.mtlsCertificate,d=s;return d.cf={cacheEverything:o.zuplo?.cacheEverything,cacheTtl:o.zuplo?.cacheTtlSeconds},delete s.zuplo,{transformedInit:s,mtlsCertificate:f}},"transformInit");var TZt={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:sAe},OV=TZt;var aAe="2025-02-06",yit=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});function vit(){return new Cm({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:aAe,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:yit[aAe]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"bckt_mock"}})}t(vit,"getMockEnvironment");var Cm=class s{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(o){s.#e||(s.#e=new s(o),s.#n=!0)}static get instance(){return s.#n||(OV.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),s.#e??=vit()),s.#e}constructor({build:o,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(Boe.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let P of Object.keys(x))f[P]||(f[P]=x[P])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){OV.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=o,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get accountName(){return this.build.ACCOUNT_NAME??this.runtime.ZUPLO_ACCOUNT_NAME??void 0}get projectName(){return this.build.PROJECT_NAME??this.runtime.ZUPLO_PROJECT_NAME??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let o=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&o}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let o=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=o??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var xZt=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function bit(s){return s.startsWith("__ZUPLO")||s.startsWith("ZUPLO_")?!xZt.includes(s)&&!s.startsWith("ZUPLO_PUBLIC_"):s.startsWith("ZUDOKU_")?!s.startsWith("ZUDOKU_PUBLIC_"):!1}t(bit,"isRestrictedEnvVariableName");function Sit(s){return!!s.startsWith("ZUPLO_")}t(Sit,"isZuploReadableEnvVariableName");var owr=new Proxy({},{get(s,o){let f=String(o);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Cm.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Cm.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Cm.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Cm.instance.accountName;case"ZUPLO_PROJECT_NAME":return Cm.instance.projectName;case"ZUPLO_BUILD_ID":return Cm.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Cm.instance.build.COMPATIBILITY_DATE}if(!(bit(f)&&!Sit(f)))return Cm.instance.runtime[f]}});function FV(s,o,f){return`_${WP(`${s}_${o}_${f}`)}`}t(FV,"getRawOperationDataIdentifierName");function oAe(s,o,f,d){return`_${WP(s.toLowerCase())}_${o.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(oAe,"getIdForParameterSchema");function cAe(s,o,f){return`_${WP(s.toLowerCase())}_${o.toLowerCase()}_rb_${WP(f.toLowerCase())}`}t(cAe,"getIdForRequestBodySchema");function LV(s,o){return`_${WP(s)}_${WP(o)}`}t(LV,"getIdForRefSchema");function WP(s){let o=s.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(o)||(o=`_${o}`),o}t(WP,"sanitizedIdentifierName");var uAe={};Ytt(uAe,{UnsafePathError:()=>$oe,deleteFolder:()=>MZt,dirExists:()=>lAe,fileExists:()=>wZt,getParentDirFilename:()=>FZt,isNotFileOrDirectory:()=>PZt,listFolderContents:()=>Eit,listFolders:()=>NZt,mkDirTemp:()=>DZt,mkdirForFilePathIfNotExits:()=>IZt,mkdirIfNotExists:()=>Cit,safePath:()=>OZt,tarFolder:()=>LZt,untarFile:()=>RZt});import{spawn as Tit}from"node:child_process";import{randomUUID as EZt}from"node:crypto";import eI from"node:fs/promises";import{platform as CZt,tmpdir as kZt}from"node:os";import O1 from"node:path";var xit=[".git","node_modules",".yarn",".DS_Store"];async function wZt(s){try{return(await eI.stat(s)).isFile()}catch{return!1}}t(wZt,"fileExists");async function DZt(){let s=process.env.BUILD_FILE_PATH??kZt(),o=EZt().replaceAll("-",""),f=O1.join(s,o);return await eI.mkdir(f,{recursive:!0}),f}t(DZt,"mkDirTemp");async function lAe(s){try{return(await eI.stat(s)).isDirectory()}catch{return!1}}t(lAe,"dirExists");async function PZt(s){try{return await eI.stat(s),!1}catch{return!0}}t(PZt,"isNotFileOrDirectory");function AZt(s,o){let f=O1.sep==="\\"?"\\\\":O1.sep,d=new RegExp(`(.*)(${f}${o})$|(.*)(${o}${f})`),y=s.match(d);if(!y)return"";let x=s.split(y[0]);return x[1]===""?"":O1.join(O1.sep,x[1])}t(AZt,"getParentDirectory");async function NZt(s){if(!await lAe(s))return[];let o=await eI.readdir(s,{withFileTypes:!0}),f=[];for await(let d of o)xit.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(NZt,"listFolders");async function Eit(s,o,f=!0){let d=AZt(s,o),y=await eI.readdir(s,{withFileTypes:!0}),x=[];for await(let P of y)if(!xit.includes(P.name)||!f)if(P.isDirectory()){let F=await Eit(O1.join(s,P.name),o,f);x.push(...F)}else x.push(O1.join(d,P.name));return x}t(Eit,"listFolderContents");var Cit=t(async s=>{await eI.mkdir(s,{recursive:!0})},"mkdirIfNotExists"),IZt=t(async s=>{let o=O1.dirname(s);return Cit(o)},"mkdirForFilePathIfNotExits"),$oe=class extends Error{static{t(this,"UnsafePathError")}};function OZt(s){let o=O1.normalize(s),f=t(d=>{let y=O1.normalize(d),x=process.platform==="win32",P=!1;if(x?P=y.toLowerCase().startsWith(o.toLowerCase()):P=y.startsWith(o),!P)throw new $oe("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(O1.resolve(...d)),"resolve")}}t(OZt,"safePath");function FZt(s){return O1.join(O1.basename(O1.dirname(s)),O1.basename(s))}t(FZt,"getParentDirFilename");async function LZt({folderPath:s,outputTarPath:o,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],P;try{await new Promise((F,W)=>{let G=Tit("tar",[...f.flatMap(be=>["--exclude",be]),...CZt()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",o,"-C",s,"."]);G.stdout.on("data",be=>{let de=be.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",be=>{let de=be.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",be=>{P=be,be===0?F():W(new Error(`tar process exited with code ${be}`))}),G.on("error",be=>{W(be)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
569
+ `,"n"],["\f","f"],["\r","r"],[" ","t"]]),ZCr=new Map([...UXt,["\v","v"],["\0","0"],["\u2028","u2028"],["\u2029","u2029"]]),Ooe=new Map([["[","LBracket"],["]","RBracket"],["{","LBrace"],["}","RBrace"],[":","Colon"],[",","Comma"],[RXt,"Boolean"],[MXt,"Boolean"],[jXt,"Null"]]),Ioe=new Map([...Ooe,["NaN","Number"],[BXt,"Number"]]),HPe=new Set([10,13,8232,8233]),$P=class extends Error{static{t(this,"ErrorWithLocation")}constructor(o,{line:f,column:d,offset:y}){super(`${o} (${f}:${d})`),this.line=f,this.column=d,this.offset=y}},GPe=class extends $P{static{t(this,"UnexpectedChar")}constructor(o,f){super(`Unexpected character '${String.fromCharCode(o)}' found.`,f)}},YPe=class extends $P{static{t(this,"UnexpectedIdentifier")}constructor(o,f){super(`Unexpected identifier '${o}' found.`,f)}},gO=class extends $P{static{t(this,"UnexpectedToken")}constructor(o){super(`Unexpected token ${o.type} found.`,o.loc.start)}},Loe=class extends $P{static{t(this,"UnexpectedEOF")}constructor(o){super("Unexpected end of input found.",o)}},zXt=/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,$Xt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,JXt=13,Znt=10,KPe=class{static{t(this,"CharCodeReader")}#e="";#n=1;#t=0;#r=-1;#s=!1;#m=-1;#c=!1;constructor(o){this.#e=o}#u(){this.#c||(this.#t++,this.#r++,this.#m=-1,this.#c=!0)}locate(){return{line:this.#n,column:this.#t,offset:this.#r}}next(){if(this.#r>=this.#e.length-1)return this.#u(),-1;this.#r++;let o=this.#e.charCodeAt(this.#r);return this.#s?(this.#n++,this.#t=1,this.#s=!1):this.#t++,o===JXt?(this.#s=!0,this.peek()===Znt&&this.#r++):o===Znt&&(this.#s=!0),this.#m=o,o}peek(){return this.#r===this.#e.length-1?-1:this.#e.charCodeAt(this.#r+1)}match(o){return o(this.peek())?(this.next(),!0):!1}current(){return this.#m}},WXt="Infinity",qXt="NaN",VXt=new Set([116,102,110]),XPe=new Set([32,9,10,13]),Qnt=new Set([...XPe,11,12,160,8232,8233,65279,160,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]),HXt={mode:"json",ranges:!1},GXt=new Set(["true","false","null"]),b_={EOF:0,Number:1,String:2,Boolean:3,Null:4,NaN:5,Infinity:6,Identifier:7,Colon:20,LBrace:21,RBrace:22,LBracket:23,RBracket:24,Comma:25,LineComment:40,BlockComment:41};function zP(s){return s>=48&&s<=57}t(zP,"isDigit");function VPe(s){return zP(s)||s>=65&&s<=70||s>=97&&s<=102}t(VPe,"isHexDigit");function YXt(s){return s>=49&&s<=57}t(YXt,"isPositiveDigit");function KXt(s){return VXt.has(s)}t(KXt,"isKeywordStart");function tit(s){return zP(s)||s===46||s===45}t(tit,"isNumberStart");function XXt(s){return tit(s)||s===43}t(XXt,"isJSON5NumberStart");function eit(s,o){return s===34||o&&s===39}t(eit,"isStringStart");function rit(s){if(s===36||s===95||s===92||s>=97&&s<=122||s>=65&&s<=90||s===8204||s===8205)return!0;let o=String.fromCharCode(s);return zXt.test(o)}t(rit,"isJSON5IdentifierStart");function ZXt(s){if(rit(s)||zP(s))return!0;let o=String.fromCharCode(s);return $Xt.test(o)}t(ZXt,"isJSON5IdentifierPart");var ZPe=class{static{t(this,"Tokenizer")}#e;#n;#t;#r;#s;#m;#c;#u;#f;#p;#a;constructor(o,f){this.#n=o,this.#e={...HXt,...f},this.#t=new KPe(o),this.#r=this.#e.mode==="json5",this.#s=this.#e.mode!=="json",this.#m=this.#e.ranges,this.#u=this.#r?Foe.has.bind(Foe):DV.has.bind(DV),this.#f=this.#r?HPe.has.bind(HPe):()=>!1,this.#p=this.#r?d=>d===120:()=>!1,this.#a=this.#r?Qnt.has.bind(Qnt):XPe.has.bind(XPe)}#i(o,f=this.#t.locate()){throw new GPe(o,f)}#o(o,f=this.#t.locate()){throw new YPe(o,f)}#h(){throw new Loe(this.#t.locate())}#d(o,f,d,y){let x=d.offset+f,P=this.#e.ranges?{range:[d.offset,x]}:void 0;return{type:o,loc:{start:d,end:y||{line:d.line,column:d.column+f,offset:x}},...P}}#_(o){let f="",d;for(let y=0;y<o;y++){if(d=this.#t.peek(),VPe(d)){this.#t.next(),f+=String.fromCharCode(d);continue}this.#i(d)}return f}#y(o){let f="";do{if(f+=String.fromCharCode(o),o===92&&(o=this.#t.next(),o!==117&&this.#i(o),f+=String.fromCharCode(o),f+=this.#_(4)),o=this.#t.peek(),!ZXt(o))break;this.#t.next()}while(!0);return f}#b(o){let f=o,d=1;for(o=this.#t.peek();o!==-1&&o!==f;){if(this.#t.next(),d++,o===92)if(o=this.#t.peek(),this.#u(o)||this.#f(o))this.#t.next(),d++;else if(o===117){this.#t.next(),d++;let y=this.#_(4);d+=y.length}else if(this.#p(o)){this.#t.next(),d++;let y=this.#_(2);d+=y.length}else this.#r?(this.#t.next(),d++):this.#i(o);o=this.#t.peek()}return o===-1&&(this.#t.next(),this.#h()),this.#t.next(),d++,d}#v(o){let f=1;if(o===45||this.#r&&o===43){if(o=this.#t.peek(),this.#r&&(o===73||o===78)){this.#t.next();let d=this.#y(o);return d!==WXt&&d!==qXt&&this.#i(o),f+d.length}zP(o)||this.#i(o),this.#t.next(),f++}if(o===48)if(o=this.#t.peek(),this.#r&&(o===120||o===88)){this.#t.next(),f++,o=this.#t.peek(),VPe(o)||(this.#t.next(),this.#i(o));do this.#t.next(),f++,o=this.#t.peek();while(VPe(o))}else zP(o)&&this.#i(o);else if(!this.#r||o!==46)for(YXt(o)||this.#i(o),o=this.#t.peek();zP(o);)this.#t.next(),f++,o=this.#t.peek();if(o===46){let d=-1;for(this.#t.next(),f++,d++,o=this.#t.peek();zP(o);)this.#t.next(),f++,d++,o=this.#t.peek();!this.#r&&d===0&&(this.#t.next(),o?this.#i(o):this.#h())}if(o===101||o===69)for(this.#t.next(),f++,o=this.#t.peek(),(o===43||o===45)&&(this.#t.next(),f++,o=this.#t.peek()),o===-1&&(this.#t.next(),this.#h()),zP(o)||(this.#t.next(),this.#i(o));zP(o);)this.#t.next(),f++,o=this.#t.peek();return f}#C(o){let f=1;if(o=this.#t.peek(),o===47){do this.#t.next(),f+=1,o=this.#t.peek();while(o>-1&&o!==13&&o!==10);return{length:f,multiline:!1}}if(o===42){for(this.#t.next(),f+=1;o>-1;)if(o=this.#t.peek(),o===42){if(this.#t.next(),f+=1,o=this.#t.peek(),o===47)return this.#t.next(),f+=1,{length:f,multiline:!0}}else this.#t.next(),f+=1;this.#t.next(),this.#h()}this.#t.next(),this.#i(o)}next(){let o=this.#t.next();for(;this.#a(o);)o=this.#t.next();if(o===-1)return b_.EOF;let f=this.#t.locate(),d=String.fromCharCode(o);if(this.#r)if(Ioe.has(d))this.#c=this.#d(Ioe.get(d),1,f);else if(rit(o)){let y=this.#y(o);Ioe.has(y)?this.#c=this.#d(Ioe.get(y),y.length,f):this.#c=this.#d("Identifier",y.length,f)}else if(XXt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(eit(o,this.#r)){let y=this.#b(o),x=this.#t.locate();this.#c=this.#d("String",y,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);else if(Ooe.has(d))this.#c=this.#d(Ooe.get(d),1,f);else if(KXt(o)){let y=this.#y(o);GXt.has(y)||this.#o(y,f),this.#c=this.#d(Ooe.get(y),y.length,f)}else if(tit(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(eit(o,this.#r)){let y=this.#b(o);this.#c=this.#d("String",y,f)}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);return b_[this.#c.type]}get token(){return this.#c}};var lT={document(s,o={}){return{type:"Document",body:s,loc:o.loc,...o}},string(s,o={}){return{type:"String",value:s,loc:o.loc,...o}},number(s,o={}){return{type:"Number",value:s,loc:o.loc,...o}},boolean(s,o={}){return{type:"Boolean",value:s,loc:o.loc,...o}},null(s={}){return{type:"Null",loc:s.loc,...s}},array(s,o={}){return{type:"Array",elements:s,loc:o.loc,...o}},element(s,o={}){return{type:"Element",value:s,loc:o.loc,...o}},object(s,o={}){return{type:"Object",members:s,loc:o.loc,...o}},member(s,o,f={}){return{type:"Member",name:s,value:o,loc:f.loc,...f}},identifier(s,o={}){return{type:"Identifier",name:s,loc:o.loc,...o}},nan(s="",o={}){return{type:"NaN",sign:s,loc:o.loc,...o}},infinity(s="",o={}){return{type:"Infinity",sign:s,loc:o.loc,...o}}},QXt={mode:"json",ranges:!1,tokens:!1,allowTrailingCommas:!1};function eZt(s,o,f=!1){let d="",y=s.indexOf("\\"),x=0;for(;y>=0;){d+=s.slice(x,y);let P=s.charAt(y+1),F=P.charCodeAt(0);if(f&&Foe.has(F))d+=Foe.get(F),x=y+2;else if(DV.has(F))d+=DV.get(F),x=y+2;else if(P==="u"){let W=s.slice(y+2,y+6);if(W.length<4||/[^0-9a-f]/i.test(W))throw new $P(`Invalid unicode escape \\u${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+6}else if(f&&P==="x"){let W=s.slice(y+2,y+4);if(W.length<2||/[^0-9a-f]/i.test(W))throw new $P(`Invalid hex escape \\x${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+4}else if(f&&HPe.has(F))x=y+2,P==="\r"&&s.charAt(x)===`
570
+ `&&x++;else if(f)d+=P,x=y+2;else throw new $P(`Invalid escape \\${P}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});y=s.indexOf("\\",x)}return d+=s.slice(x),d}t(eZt,"getStringValue");function tZt(s,o,f=!1){switch(o.type){case"Boolean":return s==="true";case"Number":return Number(s);case"String":return eZt(s.slice(1,-1),o,f);default:throw new TypeError(`Unknown token type "${o.type}.`)}}t(tZt,"getLiteralValue");function nit(s,o){o=Object.freeze({...QXt,...o});let f=[],d=new ZPe(s,{mode:o.mode,ranges:o.ranges}),y=o.mode==="json5",x=o.allowTrailingCommas||y;function P(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr}t(P,"nextNoComments");function F(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr>=b_.LineComment?F():kr}t(F,"nextSkipComments");let W=o.mode==="json"?P:F;function G(kr,yr){if(kr!==yr)throw new gO(d.token)}t(G,"assertTokenType");function be(kr,yr){if(!yr.includes(kr))throw new gO(d.token)}t(be,"assertTokenTypes");function de(kr,yr){return o.ranges?{range:[kr.offset,yr.offset]}:void 0}t(de,"createRange");function se(kr){let yr=d.token,xs=de(yr.loc.start,yr.loc.end),bi=tZt(s.slice(yr.loc.start.offset,yr.loc.end.offset),yr,y),Ci={loc:{start:{...yr.loc.start},end:{...yr.loc.end}},...xs};switch(kr){case b_.String:return lT.string(bi,Ci);case b_.Number:return lT.number(bi,Ci);case b_.Boolean:return lT.boolean(bi,Ci);default:throw new TypeError(`Unknown token type ${yr.type}.`)}}t(se,"createLiteralNode");function Xe(kr){let yr=de(kr.loc.start,kr.loc.end),xs=s.slice(kr.loc.start.offset,kr.loc.end.offset),fc={loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr};if(kr.type!=="Identifier"){let Ci="";return(xs[0]==="+"||xs[0]==="-")&&(Ci=xs[0]),lT[xs.includes("NaN")?"nan":"infinity"](Ci,fc)}return lT.identifier(xs,fc)}t(Xe,"createJSON5IdentifierNode");function Ue(kr){let yr=de(kr.loc.start,kr.loc.end);return lT.null({loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr})}t(Ue,"createNullNode");function je(kr){y?be(kr,[b_.String,b_.Identifier,b_.Number]):G(kr,b_.String);let yr=d.token,xs=kr===b_.String?se(kr):Xe(yr);if(y&&(xs.type==="NaN"||xs.type==="Infinity")){if(xs.sign!=="")throw new gO(d.token);xs=lT.identifier(xs.type,{loc:xs.loc,...de(xs.loc.start,xs.loc.end)})}kr=W(),G(kr,b_.Colon);let bi=Ir(),fc=de(xs.loc.start,bi.loc.end);return lT.member(xs,bi,{loc:{start:{...xs.loc.start},end:{...bi.loc.end}},...fc})}t(je,"parseProperty");function Vt(kr){G(kr,b_.LBrace);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBrace)do{if(xs.push(je(bi)),bi=W(),!bi)throw new Loe(xs[xs.length-1].loc.end);if(bi===b_.Comma){if(bi=W(),x&&bi===b_.RBrace)break}else break}while(bi);G(bi,b_.RBrace);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return lT.object(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Vt,"parseObject");function Ut(kr){G(kr,b_.LBracket);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBracket)do{let bf=Ir(bi);if(xs.push(lT.element(bf,{loc:bf.loc})),bi=W(),bi===b_.Comma){if(bi=W(),x&&bi===b_.RBracket)break}else break}while(bi);G(bi,b_.RBracket);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return lT.array(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Ut,"parseArray");function Ir(kr){kr=kr??W();let yr=d.token;switch(kr){case b_.String:case b_.Boolean:return se(kr);case b_.Number:if(y){let xs=s.slice(yr.loc.start.offset,yr.loc.end.offset);if((xs[0]==="+"||xs[0]==="-")&&(xs=xs.slice(1)),xs==="NaN"||xs==="Infinity")return Xe(yr)}return se(kr);case b_.Null:return Ue(yr);case b_.LBrace:return Vt(kr);case b_.LBracket:return Ut(kr);default:throw new gO(yr)}}t(Ir,"parseValue");let wn=Ir();if(W())throw new gO(d.token);let Jn={loc:{start:{line:1,column:1,offset:0},end:{...wn.loc.end}}};return o.tokens&&(Jn.tokens=f),o.ranges&&(Jn.range=[Jn.loc.start.offset,Jn.loc.end.offset]),lT.document(wn,Jn)}t(nit,"parse");var rZt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function iit(s){return s&&typeof s=="object"}t(iit,"isObject");function nZt(s){return iit(s)&&typeof s.type=="string"}t(nZt,"isNode");function iZt(s,o){function f(d,y){typeof o.enter=="function"&&o.enter(d,y);for(let x of rZt.get(d.type)){let P=d[x];iit(P)&&(Array.isArray(P)?P.forEach(F=>f(F,d)):nZt(P)&&f(P,d))}typeof o.exit=="function"&&o.exit(d,y)}t(f,"visitNode"),f(s)}t(iZt,"traverse");function sit(s,o=()=>!0){let f=[];return iZt(s,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(o).values()}t(sit,"iterator");import sZt from"node:fs/promises";var PV=t((s,o)=>s.split(/\r?\n/)[o-1],"getFileLineContent"),Roe=t(async s=>{try{return await sZt.readFile(s,"utf-8")}catch{return}},"getSchemaContent"),AV=t(async s=>{try{return nit(s)}catch(o){if(o.column&&o.line&&o.message){let f=PV(s,o.line);return{column:o.column,line:o.line,length:void 0,lineText:f}}return}},"getSchemaAST");var ait=t(async(s,o,f)=>{try{if(s.length===0)return;for(let d of s){let y=await Roe(d),x=await aZt(y,d,o,f);if(x)return x}}catch{}},"getRouteLocationByValue"),aZt=t(async(s,o,f,d)=>{try{if(!s)return;let y=null,x=await AV(s);if(x){for(let{node:P}of sit(x))if(P.value&&P.value===f){y=P.loc;break}if(y!==null){let P=PV(s,y.start.line);return{file:o,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:P,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import oit from"node:fs/promises";import SE from"node:path";var QPe="schemas",eAe=".oas.json";var yO=t(async s=>(await oit.readdir(s)).map(f=>SE.join(s,f)).filter(f=>f.endsWith(eAe)).sort(),"getOpenApiFilesByAlphabetical"),V9=t(async s=>{let o=SE.resolve(s,"config");return(await oit.readdir(o)).filter(d=>d.endsWith(eAe)).length>=1},"oasFileInProject");function NV(s,o,f,d,y,x,P){if(x.has(f))return;let F;try{F=d.get(f)}catch(Ue){throw new P1({text:`Failed to resolve reference: ${f}`,detail:Ue.message,severity:"error",message:"Failed to resolve reference",location:{file:s,column:0,line:0,length:0,lineText:f,namespace:o,suggestion:"Check the reference and try again."}})}let W=joe(f),G=SE.basename(W,SE.extname(W)),be=f.indexOf("#"),de=be>=0?f.substring(0,be):f,se=be>=0?f.substring(be+1):"",Xe=d.get(de);if(se){let Ue=se.split("/").filter(Boolean);for(let je of Ue)if(Xe=Xe[je],Xe===void 0)throw new Error(`Cannot resolve JSON pointer: ${se}`)}if(Xe&&typeof Xe=="object"&&"$ref"in Xe&&typeof Xe.$ref=="string"&&!Xe.$ref.startsWith("#")){let Ue=SE.resolve(SE.dirname(de),Xe.$ref);if(W=Ue,G=SE.basename(W,SE.extname(W)),de=Ue,x.has(de)){let Vt=x.get(de);if(Vt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Vt);return}let je=y.length;x.set(f,je),x.set(de,je),y.push(de),Moe(W,G,F,d,y,x,P)}else x.set(f,y.length),y.push(f),Moe(joe(f),o,F,d,y,x,P)}t(NV,"chaseRefs");function Moe(s,o,f,d,y,x,P){if(Array.isArray(f))for(let F of f)Moe(s,o,F,d,y,x,P);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let W=f[F];P&&(f[F]=P(o,W,s)),NV(s,o,ZN(s,W),d,y,x,P)}Moe(s,o,f[F],d,y,x,P)}}t(Moe,"lookForRefs");function ZN(s,o){let f=o.indexOf("#");return f>=0?`${SE.resolve(s,o.substring(0,f))}${o.substring(f)}`:SE.resolve(SE.dirname(s),o)}t(ZN,"getFullyQualifiedRefName");function joe(s){let o=s.indexOf("#");return o>=0?s.substring(0,o):s}t(joe,"getFilePathNameFromRefName");import _le from"node:path";function oZt(s){if(s.length>=255)throw new TypeError("Alphabet too long");let o=new Uint8Array(256);for(let G=0;G<o.length;G++)o[G]=255;for(let G=0;G<s.length;G++){let be=s.charAt(G),de=be.charCodeAt(0);if(o[de]!==255)throw new TypeError(be+" is ambiguous");o[de]=G}let f=s.length,d=s.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function P(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let be=0,de=0,se=0,Xe=G.length;for(;se!==Xe&&G[se]===0;)se++,be++;let Ue=(Xe-se)*x+1>>>0,je=new Uint8Array(Ue);for(;se!==Xe;){let Ir=G[se],wn=0;for(let sn=Ue-1;(Ir!==0||wn<de)&&sn!==-1;sn--,wn++)Ir+=256*je[sn]>>>0,je[sn]=Ir%f>>>0,Ir=Ir/f>>>0;if(Ir!==0)throw new Error("Non-zero carry");de=wn,se++}let Vt=Ue-de;for(;Vt!==Ue&&je[Vt]===0;)Vt++;let Ut=d.repeat(be);for(;Vt<Ue;++Vt)Ut+=s.charAt(je[Vt]);return Ut}t(P,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let be=0,de=0,se=0;for(;G[be]===d;)de++,be++;let Xe=(G.length-be)*y+1>>>0,Ue=new Uint8Array(Xe);for(;G[be];){let Ir=o[G.charCodeAt(be)];if(Ir===255)return;let wn=0;for(let sn=Xe-1;(Ir!==0||wn<se)&&sn!==-1;sn--,wn++)Ir+=f*Ue[sn]>>>0,Ue[sn]=Ir%256>>>0,Ir=Ir/256>>>0;if(Ir!==0)throw new Error("Non-zero carry");se=wn,be++}let je=Xe-se;for(;je!==Xe&&Ue[je]===0;)je++;let Vt=new Uint8Array(de+(Xe-je)),Ut=de;for(;je!==Xe;)Vt[Ut++]=Ue[je++];return Vt}t(F,"decodeUnsafe");function W(G){let be=F(G);if(be)return be;throw new Error("Non-base"+f+" character")}return t(W,"decode"),{encode:P,decodeUnsafe:F,decode:W}}t(oZt,"base");var cit=oZt;var cZt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Boe=cit(cZt);var lZt=!1;function H9(s,o){return{open:`\x1B[${s.join(";")}m`,close:`\x1B[${o}m`,regexp:new RegExp(`\\x1b\\[${o}m`,"g")}}t(H9,"code");function G9(s,o){return lZt?`${o.open}${s.replace(o.regexp,o.open)}${o.close}`:s}t(G9,"run");function uZt(s){return G9(s,H9([31],39))}t(uZt,"red");function fZt(s){return G9(s,H9([32],39))}t(fZt,"green");function _Zt(s){return G9(s,H9([33],39))}t(_Zt,"yellow");function pZt(s){return G9(s,H9([34],39))}t(pZt,"blue");function dZt(s){return G9(s,H9([35],39))}t(dZt,"magenta");function mZt(s){return G9(s,H9([36],39))}t(mZt,"cyan");var bkr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var lit=[uZt,fZt,_Zt,pZt,dZt,mZt];function hZt(s){let o=0,f=s.length,d=0;if(f>0)for(;d<f;)o=(o<<5)-o+s.charCodeAt(d++)|0;return o}t(hZt,"hashCode");function uit(s){let o=Math.abs(hZt(s));return lit[o%lit.length]}t(uit,"generateColor");import{inspect as gZt}from"node:util";function fit(s,o,...f){let d=0,y=f.length,x=String(o).replace(/%[sdjoO%]/g,P=>{if(P==="%%")return"%";if(d>=y)return P;switch(P){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return s(f[d++]).split(`
571
+ `).map(F=>F.trim()).join(" ");case"%O":return s(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return P}});for(let P of f.splice(d))P===null||!(typeof P=="object"&&P!==null)?x+=" "+P:x+=" "+s(P);return x}t(fit,"format");var _it=t((s,...o)=>fit(gZt,s,o),"format");var tAe=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(o,f){this.manager=o,this.ns=f,this.color=uit(f),this.last=0,this.enabled=o.enabled.some(d=>d.test(f))}log(...o){if(!this.enabled)return;let f,d=o[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=_it(f,...o);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},rAe=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(o){this.debuggers=new Map,this.enabled=o??[]}};function yZt(s){return!s||s.length===0?[]:(s=s.replace(/\s/g,"").replace(/\*/g,".+"),s.split(",").map(o=>new RegExp(`^${o}$`)))}t(yZt,"extract");var Uoe;function zoe(s){Uoe||(Uoe=new rAe(yZt(process.env.DEBUG)));let o=new tAe(Uoe,s);return Uoe.debuggers.set(s,o),Object.assign(o.log.bind(o),{self:o})}t(zoe,"debug");var pit="zp-local-service";var JP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(o,f){typeof o=="string"?super(o,f):(super(o.message,f),this.extensionMembers=o.extensionMembers),this.name="RuntimeError"}};var QN=zoe("zuplo:runtime:external-service");function vZt(){let s,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:o}=Cm.instance.runtime;if(o&&o!=="undefined")try{let f=atob(o);s=JSON.parse(f)}catch{}return s}t(vZt,"getServiceAuth");async function dit(s,o){let f=".proxy",d=".tunnel";if(typeof s=="string"){let y=new URL(s),x=y.hostname;if(x.endsWith(f)){let Vt=x.slice(0,-f.length),Ut=new URL(`http://${Vt}${y.pathname}${y.search}`);QN(`Routing to proxy: ${Ut.toString()}`);let Ir=o??{};return IV(Ut.toString(),Ir)}let P=x.endsWith(d),F=x.indexOf(".")===-1;if(!(P||F))throw new JP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=P?x.slice(0,-d.length):x,be=vZt();if(!be)throw QN("There is no external service auth configured for this zup."),new JP("There are no external services configured for this zup.");QN(`Using external service auth. ClientId: ${be.clientId})`);let de=o??{},se=new Headers(de.headers||{});se.set("CF-Access-Client-Id",be.clientId),se.set("CF-Access-Client-Secret",be.clientSecret),de.headers=se;let Xe;if(be.customServiceMapping?.[G])Xe=`https://${be.customServiceMapping[G]}`;else if(Cm.instance.useLegacyServiceRouting)Xe=`https://${G}.zuptunnel.com`;else{QN("Using sha256 service routing");let Vt=Cm.instance.build;if(Vt.ACCOUNT_NAME&&Vt.PROJECT_NAME&&Vt.ENVIRONMENT_TYPE){let Ut=await bZt(G,Vt.ACCOUNT_NAME,Vt.PROJECT_NAME,Vt.ENVIRONMENT_TYPE),Ir=hit(Vt.ENVIRONMENT_TYPE),wn=await nAe(`${Vt.ACCOUNT_NAME}-${Vt.PROJECT_NAME}-${Ir}`);wn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||wn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Xe=`https://${Ut}.zuptunnel.com`:Xe=`https://${Ut}.t.zuplo.app`}else throw QN("Cannot use sha256 service routing, missing build variables"),new JP("Failed to generate fully qualified tunnel url.")}let Ue=new URL(`${Xe}${y.pathname}${y.search}`);QN(`Calling external service: ${Ue.toString()}`);let je=await IV(Ue.toString(),de);if(je.status===403&&je.headers.get("cf-access-domain")!==null)throw OV.console.error("403 Forbidden when calling external service.",{clientId:be.clientId,tunnelHost:Xe}),new JP("Could not connect to secure tunnel.");return je}else throw QN("Cannot call external service with Request object"),new JP("Currently, we only support fetch(<some_string>, ...).")}t(dit,"externalServiceHandler");async function mit(s,o){if(typeof s=="string"){let f=new URL(s),d=f.hostname,y=o??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,P=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(pit,d),y.headers=F,await IV(P.toString(),y)}else throw new JP("Currently, we only support fetch(<some_string>, ...).")}t(mit,"clusterServiceHandler");async function bZt(s,o,f,d){let y=s.toLowerCase(),x=o.toLowerCase(),P=f.toLowerCase(),F=hit(d);QN(`Hashing service name: ${x}-${y}.${x}-${P}-${F}`);let W=await nAe(`${x}-${y}`),G=await nAe(`${x}-${P}-${F}`);return`${W}.${G}`}t(bZt,"hashServiceName");async function nAe(s){let o=new TextEncoder().encode(s),f=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(nAe,"hashSegment");function hit(s){let o=s.toLowerCase();switch(o){case"production":case"preview":return o;default:return"working-copy"}}t(hit,"sanitizeEnvironmentType");var iAe=new Map;iAe.set("service:",dit);iAe.set("local:",mit);var IV=globalThis.fetch;function sAe(s,o){let{transformedInit:f,mtlsCertificate:d}=SZt(o);if(typeof s=="string"){let y=new URL(s),x=iAe.get(y.protocol);return x?x(s,f):git(s,f,d)}else return git(s,f,d)}t(sAe,"internalFetch");globalThis.fetch=sAe;function git(s,o,f){if(!f)return IV(s,o);if(Cm.instance.isCloudflare){let y=Cm.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(s,o)}else if(Cm.instance.isDeno){let d=globalThis.managedDedicatedMtlsBindings?.[f];if(!d)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof d.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding.`);return d.fetch(s,o)}else throw new Error("mTLS client certificates are not supported in this runtime environment")}t(git,"performFetch");var SZt=t(s=>{if(!s||s instanceof Request)return{transformedInit:s,mtlsCertificate:void 0};let o=s;if(!o.zuplo)return{transformedInit:s,mtlsCertificate:void 0};let f=o.zuplo.mtlsCertificate,d=s;return d.cf={cacheEverything:o.zuplo?.cacheEverything,cacheTtl:o.zuplo?.cacheTtlSeconds},delete s.zuplo,{transformedInit:s,mtlsCertificate:f}},"transformInit");var TZt={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:sAe},OV=TZt;var aAe="2025-02-06",yit=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});function vit(){return new Cm({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:aAe,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:yit[aAe]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"bckt_mock"}})}t(vit,"getMockEnvironment");var Cm=class s{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(o){s.#e||(s.#e=new s(o),s.#n=!0)}static get instance(){return s.#n||(OV.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),s.#e??=vit()),s.#e}constructor({build:o,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(Boe.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let P of Object.keys(x))f[P]||(f[P]=x[P])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){OV.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=o,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get accountName(){return this.build.ACCOUNT_NAME??this.runtime.ZUPLO_ACCOUNT_NAME??void 0}get projectName(){return this.build.PROJECT_NAME??this.runtime.ZUPLO_PROJECT_NAME??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let o=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&o}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let o=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=o??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var xZt=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function bit(s){return s.startsWith("__ZUPLO")||s.startsWith("ZUPLO_")?!xZt.includes(s)&&!s.startsWith("ZUPLO_PUBLIC_"):s.startsWith("ZUDOKU_")?!s.startsWith("ZUDOKU_PUBLIC_"):!1}t(bit,"isRestrictedEnvVariableName");function Sit(s){return!!s.startsWith("ZUPLO_")}t(Sit,"isZuploReadableEnvVariableName");var cwr=new Proxy({},{get(s,o){let f=String(o);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Cm.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Cm.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Cm.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Cm.instance.accountName;case"ZUPLO_PROJECT_NAME":return Cm.instance.projectName;case"ZUPLO_BUILD_ID":return Cm.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Cm.instance.build.COMPATIBILITY_DATE}if(!(bit(f)&&!Sit(f)))return Cm.instance.runtime[f]}});function FV(s,o,f){return`_${WP(`${s}_${o}_${f}`)}`}t(FV,"getRawOperationDataIdentifierName");function oAe(s,o,f,d){return`_${WP(s.toLowerCase())}_${o.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(oAe,"getIdForParameterSchema");function cAe(s,o,f){return`_${WP(s.toLowerCase())}_${o.toLowerCase()}_rb_${WP(f.toLowerCase())}`}t(cAe,"getIdForRequestBodySchema");function LV(s,o){return`_${WP(s)}_${WP(o)}`}t(LV,"getIdForRefSchema");function WP(s){let o=s.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(o)||(o=`_${o}`),o}t(WP,"sanitizedIdentifierName");var uAe={};Ytt(uAe,{UnsafePathError:()=>$oe,deleteFolder:()=>MZt,dirExists:()=>lAe,fileExists:()=>wZt,getParentDirFilename:()=>FZt,isNotFileOrDirectory:()=>PZt,listFolderContents:()=>Eit,listFolders:()=>NZt,mkDirTemp:()=>DZt,mkdirForFilePathIfNotExits:()=>IZt,mkdirIfNotExists:()=>Cit,safePath:()=>OZt,tarFolder:()=>LZt,untarFile:()=>RZt});import{spawn as Tit}from"node:child_process";import{randomUUID as EZt}from"node:crypto";import eI from"node:fs/promises";import{platform as CZt,tmpdir as kZt}from"node:os";import O1 from"node:path";var xit=[".git","node_modules",".yarn",".DS_Store"];async function wZt(s){try{return(await eI.stat(s)).isFile()}catch{return!1}}t(wZt,"fileExists");async function DZt(){let s=process.env.BUILD_FILE_PATH??kZt(),o=EZt().replaceAll("-",""),f=O1.join(s,o);return await eI.mkdir(f,{recursive:!0}),f}t(DZt,"mkDirTemp");async function lAe(s){try{return(await eI.stat(s)).isDirectory()}catch{return!1}}t(lAe,"dirExists");async function PZt(s){try{return await eI.stat(s),!1}catch{return!0}}t(PZt,"isNotFileOrDirectory");function AZt(s,o){let f=O1.sep==="\\"?"\\\\":O1.sep,d=new RegExp(`(.*)(${f}${o})$|(.*)(${o}${f})`),y=s.match(d);if(!y)return"";let x=s.split(y[0]);return x[1]===""?"":O1.join(O1.sep,x[1])}t(AZt,"getParentDirectory");async function NZt(s){if(!await lAe(s))return[];let o=await eI.readdir(s,{withFileTypes:!0}),f=[];for await(let d of o)xit.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(NZt,"listFolders");async function Eit(s,o,f=!0){let d=AZt(s,o),y=await eI.readdir(s,{withFileTypes:!0}),x=[];for await(let P of y)if(!xit.includes(P.name)||!f)if(P.isDirectory()){let F=await Eit(O1.join(s,P.name),o,f);x.push(...F)}else x.push(O1.join(d,P.name));return x}t(Eit,"listFolderContents");var Cit=t(async s=>{await eI.mkdir(s,{recursive:!0})},"mkdirIfNotExists"),IZt=t(async s=>{let o=O1.dirname(s);return Cit(o)},"mkdirForFilePathIfNotExits"),$oe=class extends Error{static{t(this,"UnsafePathError")}};function OZt(s){let o=O1.normalize(s),f=t(d=>{let y=O1.normalize(d),x=process.platform==="win32",P=!1;if(x?P=y.toLowerCase().startsWith(o.toLowerCase()):P=y.startsWith(o),!P)throw new $oe("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(O1.resolve(...d)),"resolve")}}t(OZt,"safePath");function FZt(s){return O1.join(O1.basename(O1.dirname(s)),O1.basename(s))}t(FZt,"getParentDirFilename");async function LZt({folderPath:s,outputTarPath:o,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],P;try{await new Promise((F,W)=>{let G=Tit("tar",[...f.flatMap(be=>["--exclude",be]),...CZt()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",o,"-C",s,"."]);G.stdout.on("data",be=>{let de=be.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",be=>{let de=be.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",be=>{P=be,be===0?F():W(new Error(`tar process exited with code ${be}`))}),G.on("error",be=>{W(be)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
572
572
  `),stderr:x.join(`
573
573
  `),exitCode:P},"Tar process logs")}}t(LZt,"tarFolder");async function RZt({tarFilePath:s,outputDir:o,logger:f}){let d=[],y=[],x;try{await new Promise((P,F)=>{let W=Tit("sh",["-c",`tar -xvf ${s} -C ${o};`]);W.stdout.on("data",G=>{let be=G.toString().trim();be.length>0&&d.push(be.trim())}),W.stderr.on("data",G=>{let be=G.toString().trim();be.length>0&&y.push(be.trim())}),W.on("close",G=>{x=G,G===0?P():F(new Error(`tar process exited with code ${G}`))}),W.on("error",G=>{F(G)})})}catch(P){throw new Error("Failed to untar file",{cause:P})}finally{f.info({stdout:d.join(`
574
574
  `),stderr:y.join(`
575
- `),exitCode:x},"Untar process logs")}}t(RZt,"untarFile");async function MZt(s){if(await lAe(s))return await eI.rm(s,{recursive:!0})}t(MZt,"deleteFolder");var eu=uAe;var Dlt=B_(Vst(),1);var Hst=["ai-gateway-auth-v2","ai-gateway-configuration-executor-v2","ai-gateway-fallback-model-v2","ai-gateway-model-filtering-v2","ai-gateway-semantic-cache","ai-gateway-semantic-cache-v2","akamai-ai-firewall","akamai-ai-firewall-v2","akamai-firewall-for-ai","comet-opik-tracing-v2","galileo-tracing-v2","prompt-injection","semantic-cache"];var GV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,x){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},utr=/[$_\p{ID_Start}]/u,ftr=/[$_\u200C\u200D\p{ID_Continue}]/u,WAe=".*";function _tr(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t(_tr,"Re");function Kst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],x=t(function(P){if(!o)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<s.length;){let W=s.substr(F,1);if(F===d+1&&utr.test(W)||F!==d+1&&ftr.test(W)){P+=s[F++];continue}break}if(!P){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",W=d+1,G=!1;if(s[W]==="?"){x(`Pattern cannot start with "?" at ${W}`);continue}for(;W<s.length;){if(!_tr(s[W],!1)){x(`Invalid character '${s[W]}' at ${W}.`),G=!0;break}if(s[W]==="\\"){F+=s[W++]+s[W++];continue}if(s[W]===")"){if(P--,P===0){W++;break}}else if(s[W]==="("&&(P++,s[W+1]!=="?")){x(`Capturing groups are not allowed at ${W}`),G=!0;break}F+=s[W++]}if(G)continue;if(P){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=W;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Kst,"v");function Xst(s,o={}){let f=Kst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${_T(o.delimiter)}]+?`,y=[],x=0,P=0,F="",W=new Set,G=t(wn=>{if(P<f.length&&f[P].type===wn)return f[P++].value},"a"),be=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:kr}=f[P];throw new TypeError(`Unexpected ${Jn} at ${kr}, expected ${wn}`)},"d"),se=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),Xe=t(wn=>wn,"Se"),Ue=o.encodePart||Xe,je="",Vt=t(wn=>{je+=wn},"U"),Ut=t(()=>{je.length&&(y.push(new GV(3,"","",Ue(je),"",3)),je="")},"$"),Ir=t((wn,sn,Jn,kr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Vt(wn);return}if(Ut(),!sn&&!Jn){if(!wn)return;y.push(new GV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=WAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===WAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=x++),W.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);W.add(Ci),y.push(new GV(fc,Ci,Ue(wn),bi,Ue(kr),xs))},"V");for(;P<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Vt(yr),yr=""),Ut();let xs=be();Ir(yr,sn,Jn,"",xs);continue}let kr=wn??G("ESCAPED_CHAR");if(kr){Vt(kr);continue}if(G("OPEN")){let yr=se(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=se();de("CLOSE");let Ci=be();Ir(yr,xs,bi,fc,Ci);continue}Ut(),de("END")}return y}t(Xst,"D");function _T(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(_T,"S");function Gst(s){return s&&s.ignoreCase?"ui":"u"}t(Gst,"X");function ptr(s,o,f){return Zst(Xst(s,f),o,f)}t(ptr,"Z");function Q9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(Q9,"k");function Zst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=_T(F.value):d+=`(?:${_T(F.value)})${Q9(F.modifier)}`;continue}o&&o.push(F.name);let W=`[^${_T(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=W:F.type===0&&(G=WAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${Q9(F.modifier)}`:d+=`((?:${G})${Q9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${_T(F.prefix)}(${G})${_T(F.suffix)})`,d+=Q9(F.modifier);continue}d+=`(?:${_T(F.prefix)}`,d+=`((?:${G})(?:`,d+=_T(F.suffix),d+=_T(F.prefix),d+=`(?:${G}))*)${_T(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${_T(f.endsWith)}]|$`,x=`[${_T(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,Gst(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let P=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${x}|${y})`),new RegExp(d,Gst(f))}t(Zst,"F");var iI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},dtr={delimiter:".",prefixes:"",sensitive:!0,strict:!0},mtr={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function htr(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(htr,"J");function Qst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Qst,"Q");function gtr(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(gtr,"Ee");function eat(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(eat,"W");var tat=["ftp","file","http","https","ws","wss"];function rat(s){if(!s)return!0;for(let o of tat)if(s.test(o))return!0;return!1}t(rat,"N");function ytr(s,o){if(s=Qst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(ytr,"te");function vtr(s,o){if(s=Qst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(vtr,"re");function btr(s,o){return o||s===""?s:eat(s)?sat(s):iat(s)}t(btr,"ne");function Str(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Str,"se");function Ttr(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Ttr,"ie");function xtr(s,o,f){if(f||s==="")return s;if(o&&!tat.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(xtr,"ae");function Etr(s,o,f){return nat(o)===s&&(s=""),f||s===""?s:aat(s)}t(Etr,"oe");function Ctr(s,o){return s=gtr(s,":"),o||s===""?s:qAe(s)}t(Ctr,"ce");function nat(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(nat,"_");function qAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(qAe,"y");function ktr(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(ktr,"le");function wtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(wtr,"fe");function iat(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t(iat,"z");function sat(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(sat,"j");function aat(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(aat,"K");function Dtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(Dtr,"he");function Ptr(s){return s===""?s:new URL(`data:${s}`).pathname}t(Ptr,"ue");function Atr(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(Atr,"de");function Ntr(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(Ntr,"pe");var Itr=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Kst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,iI),s.encodePart=qAe;let o=ptr(this.#w(),void 0,s);this.#p=rat(o)}},JAe=["protocol","username","password","hostname","port","pathname","search","hash"],nI="*";function Yst(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(Yst,"ge");function GP(s,o){return o?HV(s):s}t(GP,"b");function VV(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=GP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=GP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=GP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=GP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=GP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=GP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=GP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=GP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=Ctr(o.protocol,f)),typeof o.username=="string"&&(s.username=Ttr(o.username,f)),typeof o.password=="string"&&(s.password=Str(o.password,f)),typeof o.hostname=="string"&&(s.hostname=btr(o.hostname,f)),typeof o.port=="string"&&(s.port=Etr(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!htr(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=GP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=xtr(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=vtr(o.search,f)),typeof o.hash=="string"&&(s.hash=ytr(o.hash,f)),s}t(VV,"w");function HV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(HV,"C");function Otr(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(Otr,"Oe");function Ftr(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${Otr(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let P=0;P<s.length;++P){let F=s[P];if(F.type===3){if(F.modifier===3){x+=HV(F.value);continue}x+=`{${HV(F.value)}}${Q9(F.modifier)}`;continue}let W=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),be=P>0?s[P-1]:null,de=P<s.length-1?s[P+1]:null;if(!G&&W&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let se=de.value.length>0?de.value[0]:"";G=y.test(se)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&be&&be.type===3){let se=be.value[be.value.length-1];G=o.prefixes.includes(se)}G&&(x+="{"),x+=HV(F.prefix),W&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?W||(x+=`(${d})`):F.type===0&&(!W&&(!be||be.type===3||be.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&W&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=HV(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=Q9(F.modifier))}return x}t(Ftr,"ke");var oat=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new Itr(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:nI,protocol:nI,username:nI,password:nI,hostname:nI,port:nI,search:nI,hash:nI};this.#e=VV(x,s,!0),nat(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of JAe){if(!(P in this.#e))continue;let F={},W=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,iI),F.encodePart=qAe;break;case"username":Object.assign(F,iI),F.encodePart=ktr;break;case"password":Object.assign(F,iI),F.encodePart=wtr;break;case"hostname":Object.assign(F,dtr),eat(W)?F.encodePart=sat:F.encodePart=iat;break;case"port":Object.assign(F,iI),F.encodePart=aat;break;case"pathname":rat(this.#n.protocol)?(Object.assign(F,mtr,y),F.encodePart=Dtr):(Object.assign(F,iI,y),F.encodePart=Ptr);break;case"search":Object.assign(F,iI,y),F.encodePart=Atr;break;case"hash":Object.assign(F,iI,y),F.encodePart=Ntr;break}try{this.#s[P]=Xst(W,F),this.#n[P]=Zst(this.#s[P],this.#t[P],F),this.#r[P]=Ftr(this.#s[P],F),this.#m=this.#m||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=VV(f,s,!1):f=VV(f,Yst(s,o),!1)}catch{return!1}let d;for(d of JAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=VV(f,s,!1):f=VV(f,Yst(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of JAe){let x=this.#n[y].exec(f[y]);if(!x)return null;let P={};for(let[F,W]of this.#t[y].entries())if(typeof W=="string"||typeof W=="number"){let G=x[F+1];P[W]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(s,o,f){let d=t((F,W)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<W[G])return-1;if(F[G]!==W[G])return 1}return 0},"o"),y=new GV(3,"","","","",3),x=new GV(0,"","","","",3),P=t((F,W)=>{let G=0;for(;G<Math.min(F.length,W.length);++G){let be=d(F[G],W[G]);if(be)return be}return F.length===W.length?0:d(F[G]??y,W[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?P(o.#s[s],[x]):!o.#r[s]&&f.#r[s]?P([x],f.#s[s]):P(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=oat);import{AssertionError as Ltr}from"node:assert";function YP(s,o){if(s===!1)throw new Ltr({message:o})}t(YP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function eM(s){return s.type===Wo.Object}t(eM,"isAstObject");function KP(s){return s.type===Wo.Property}t(KP,"isAstProperty");function VAe(s){return s.type===Wo.Array}t(VAe,"isAstArray");function xO(s){return s.type===Wo.Literal}t(xO,"isAstLiteral");function sI(s){if(s===void 0)throw new Error("Node is undefined");if(!eM(s))throw new Error("Node is not object")}t(sI,"assertAstObject");import{findNodeAtLocation as Rtr,getNodeValue as Mtr,printParseErrorCode as jtr,visit as Btr}from"jsonc-parser";var Utr={DEFAULT:{allowTrailingComma:!1}};function YV(s,o=[],f=Utr.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(W){d.type==="property"&&(d.length=W-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(W){return d.children?.push(W),W}t(x,"onValue"),Btr(s,{onObjectBegin:t((W,G,be)=>{d=x({type:"object",offset:W,length:-1,line:G+1,column:be+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((W,G,be,de,se)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:se+1,parent:d,children:[]}),d.children?.push({type:"string",value:W,offset:G,length:be,line:de,column:se,parent:d})},"onObjectProperty"),onObjectEnd:t((W,G)=>{y(W+G),d.length=W+G-d.offset,d=d.parent,y(W+G)},"onObjectEnd"),onArrayBegin:t((W,G,be,de)=>{d=x({type:"array",offset:W,length:-1,line:be+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((W,G)=>{d.length=W+G-d.offset,d=d.parent,y(W+G)},"onArrayEnd"),onLiteralValue:t((W,G,be,de,se)=>{x({type:ztr(W),offset:G,length:be,line:de+1,column:se+1,parent:d,value:W}),y(G+be)},"onLiteralValue"),onSeparator:t((W,G)=>{d.type==="property"&&(W===":"?d.colonOffset=G:W===","&&y(G))},"onSeparator"),onError:t((W,G,be,de,se)=>{o.push({error:W,offset:G,length:be,line:de+1,column:se+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(YV,"parse");function ztr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(ztr,"getNodeType");function HAe(s,o){return Rtr(s,o)}t(HAe,"findNodeAtLocation");function KV(s){return Mtr(s)}t(KV,"getNodeValue");function cat(s){return jtr(s)}t(cat,"printParseErrorCode");var XV=class{static{t(this,"AstAdapter")}parse(o){let d=YV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){YP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var $tr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,ZV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,x)=>{this.generateSource(o,d),y<x.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=$tr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import Jtr from"node:fs/promises";import{parse as Wtr}from"@swc/core";var lat=t(async s=>{let o=new Set;try{let f=await Jtr.readFile(s,"utf-8");(await Wtr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var uat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var GAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var fat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var YAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var KAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var glt=B_(tle(),1),ylt=B_(hlt(),1);var ile=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new glt.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,ylt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},P=y.instancePath.split("/");if(P.length>2){let W=P[1],G=P[2]?parseInt(P[2],10):0,be=P[3],de=Number.isNaN(G)?void 0:f[W][G][be];x={details:{property:W,index:G,field:be,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let W=y.instancePath.split("/"),G=W[W.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var mI=ile.instance;mI.addSchema(YAe,"route-configuration.schema.json");mI.addSchema(fat,"policy-configuration.schema.json");mI.addSchema(GAe,"policies.schema.json");mI.addSchema(KAe,"open-api-route-configuration.schema.json");mI.addSchema(uat,"fragments.schema.json");var G6r=mI.compile(YAe),vlt=mI.compile(KAe),fIe=mI.compile(GAe);var sle=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=fIe(o),this.results}};var ale=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=vlt(o),this.results}};import elr from"node:path";var _Ie=/\$import\((.*)\)/,AH=/\$env\((.*?)\)/g;var $k=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},Qcr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),tA=t((s,o)=>{if(!s)return!1;let f=Qcr(s);return o.split("/").every((x,P)=>{let F=f[P];return F?x==="*"||KP(F)&&F.name.value===x?!0:x==="{}"?F.type===Wo.Object:x==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var ole=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),eM(o)?o.children.forEach(f=>{this.visitor(f)}):VAe(o)?o.children.forEach(f=>{this.visitor(f)}):KP(o)&&this.visitor(o.value)}},blt=t(s=>{let o=new RegExp(AH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(AH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),Slt=t((s,o,f)=>d=>{if(xO(d)&&typeof d.value=="string"&&d.parent&&VAe(d.parent)){if(!s.some(P=>tA(d.parent,P))){AH.test(d.value)&&o.push(new $k("An $env() statement is not expected at this location.",f,d.location,d.value));return}let x=blt(d.value);if(x){let P=d.parent,F=P.children.indexOf(d);if(F!==-1)if(x.type==="raw"){let W={type:Wo.Raw,parent:P,value:x.value};P.children[F]=W}else P.children[F]=DS.createTemplateString(x.value,d)}return}if(!KP(d)||!xO(d.value)||typeof d.value.value!="string")return;if(!s.some(x=>tA(d,x))){AH.test(d.value.value)&&o.push(new $k("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=blt(d.value.value);if(y)if(y.type==="raw"){let x={type:Wo.Raw,parent:null,value:y.value};d.value=x}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var NH="config/routes.json",tlr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],rlr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],Tlt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],nlr="handler/{}/options/{}/rewritePattern",ilr="handler/{}/options/{}/baseUrl",cle=class extends ole{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!KP(o)||!xO(o.value)||typeof o.value.value!="string")&&tA(o,nlr)){if(!o.parent||!eM(o.parent)){this.errors.push(new $k("Invalid node, expected object",NH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:xlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!KP(o)||!xO(o.value)||typeof o.value.value!="string")&&tA(o,ilr)){if(!o.parent||!eM(o.parent)){this.errors.push(new $k("Invalid node, expected object",NH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:xlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!KP(o)||!xO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!rlr.some(F=>tA(o,F))&&!Tlt.some(F=>tA(o,F))){if(_Ie.test(f)){if(o.name.value==="$ref")return;this.errors.push(new $k("An $import() statement is not expected at this location.",NH,o.location,f))}return}let d=_Ie.exec(f);if(Tlt.some(F=>tA(o,F))&&!d)return;if(!d){this.errors.push(new $k("Invalid $import() statement",NH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=elr.posix.join("..",y));let x=this.getImportName(y),P={type:Wo.Identifier,parent:o.parent,value:x};o.value=P}replaceEnvStatements=Slt(tlr,this.errors,NH)};function xlt(s){return`(request, context) => {
575
+ `),exitCode:x},"Untar process logs")}}t(RZt,"untarFile");async function MZt(s){if(await lAe(s))return await eI.rm(s,{recursive:!0})}t(MZt,"deleteFolder");var eu=uAe;var Dlt=B_(Vst(),1);var Hst=["ai-gateway-auth-v2","ai-gateway-configuration-executor-v2","ai-gateway-fallback-model-v2","ai-gateway-model-filtering-v2","ai-gateway-semantic-cache","ai-gateway-semantic-cache-v2","akamai-ai-firewall","akamai-ai-firewall-v2","akamai-firewall-for-ai","comet-opik-tracing-v2","galileo-tracing-v2","prompt-injection","semantic-cache"];var GV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,x){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},utr=/[$_\p{ID_Start}]/u,ftr=/[$_\u200C\u200D\p{ID_Continue}]/u,WAe=".*";function _tr(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t(_tr,"Re");function Kst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],x=t(function(P){if(!o)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<s.length;){let W=s.substr(F,1);if(F===d+1&&utr.test(W)||F!==d+1&&ftr.test(W)){P+=s[F++];continue}break}if(!P){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",W=d+1,G=!1;if(s[W]==="?"){x(`Pattern cannot start with "?" at ${W}`);continue}for(;W<s.length;){if(!_tr(s[W],!1)){x(`Invalid character '${s[W]}' at ${W}.`),G=!0;break}if(s[W]==="\\"){F+=s[W++]+s[W++];continue}if(s[W]===")"){if(P--,P===0){W++;break}}else if(s[W]==="("&&(P++,s[W+1]!=="?")){x(`Capturing groups are not allowed at ${W}`),G=!0;break}F+=s[W++]}if(G)continue;if(P){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=W;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Kst,"v");function Xst(s,o={}){let f=Kst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${_T(o.delimiter)}]+?`,y=[],x=0,P=0,F="",W=new Set,G=t(wn=>{if(P<f.length&&f[P].type===wn)return f[P++].value},"a"),be=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:kr}=f[P];throw new TypeError(`Unexpected ${Jn} at ${kr}, expected ${wn}`)},"d"),se=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),Xe=t(wn=>wn,"Se"),Ue=o.encodePart||Xe,je="",Vt=t(wn=>{je+=wn},"U"),Ut=t(()=>{je.length&&(y.push(new GV(3,"","",Ue(je),"",3)),je="")},"$"),Ir=t((wn,sn,Jn,kr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Vt(wn);return}if(Ut(),!sn&&!Jn){if(!wn)return;y.push(new GV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=WAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===WAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=x++),W.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);W.add(Ci),y.push(new GV(fc,Ci,Ue(wn),bi,Ue(kr),xs))},"V");for(;P<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Vt(yr),yr=""),Ut();let xs=be();Ir(yr,sn,Jn,"",xs);continue}let kr=wn??G("ESCAPED_CHAR");if(kr){Vt(kr);continue}if(G("OPEN")){let yr=se(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=se();de("CLOSE");let Ci=be();Ir(yr,xs,bi,fc,Ci);continue}Ut(),de("END")}return y}t(Xst,"D");function _T(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(_T,"S");function Gst(s){return s&&s.ignoreCase?"ui":"u"}t(Gst,"X");function ptr(s,o,f){return Zst(Xst(s,f),o,f)}t(ptr,"Z");function Q9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(Q9,"k");function Zst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=_T(F.value):d+=`(?:${_T(F.value)})${Q9(F.modifier)}`;continue}o&&o.push(F.name);let W=`[^${_T(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=W:F.type===0&&(G=WAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${Q9(F.modifier)}`:d+=`((?:${G})${Q9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${_T(F.prefix)}(${G})${_T(F.suffix)})`,d+=Q9(F.modifier);continue}d+=`(?:${_T(F.prefix)}`,d+=`((?:${G})(?:`,d+=_T(F.suffix),d+=_T(F.prefix),d+=`(?:${G}))*)${_T(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${_T(f.endsWith)}]|$`,x=`[${_T(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,Gst(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let P=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${x}|${y})`),new RegExp(d,Gst(f))}t(Zst,"F");var iI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},dtr={delimiter:".",prefixes:"",sensitive:!0,strict:!0},mtr={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function htr(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(htr,"J");function Qst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Qst,"Q");function gtr(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(gtr,"Ee");function eat(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(eat,"W");var tat=["ftp","file","http","https","ws","wss"];function rat(s){if(!s)return!0;for(let o of tat)if(s.test(o))return!0;return!1}t(rat,"N");function ytr(s,o){if(s=Qst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(ytr,"te");function vtr(s,o){if(s=Qst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(vtr,"re");function btr(s,o){return o||s===""?s:eat(s)?sat(s):iat(s)}t(btr,"ne");function Str(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Str,"se");function Ttr(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Ttr,"ie");function xtr(s,o,f){if(f||s==="")return s;if(o&&!tat.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(xtr,"ae");function Etr(s,o,f){return nat(o)===s&&(s=""),f||s===""?s:aat(s)}t(Etr,"oe");function Ctr(s,o){return s=gtr(s,":"),o||s===""?s:qAe(s)}t(Ctr,"ce");function nat(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(nat,"_");function qAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(qAe,"y");function ktr(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(ktr,"le");function wtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(wtr,"fe");function iat(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t(iat,"z");function sat(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(sat,"j");function aat(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(aat,"K");function Dtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(Dtr,"he");function Ptr(s){return s===""?s:new URL(`data:${s}`).pathname}t(Ptr,"ue");function Atr(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(Atr,"de");function Ntr(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(Ntr,"pe");var Itr=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Kst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,iI),s.encodePart=qAe;let o=ptr(this.#w(),void 0,s);this.#p=rat(o)}},JAe=["protocol","username","password","hostname","port","pathname","search","hash"],nI="*";function Yst(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(Yst,"ge");function GP(s,o){return o?HV(s):s}t(GP,"b");function VV(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=GP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=GP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=GP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=GP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=GP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=GP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=GP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=GP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=Ctr(o.protocol,f)),typeof o.username=="string"&&(s.username=Ttr(o.username,f)),typeof o.password=="string"&&(s.password=Str(o.password,f)),typeof o.hostname=="string"&&(s.hostname=btr(o.hostname,f)),typeof o.port=="string"&&(s.port=Etr(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!htr(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=GP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=xtr(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=vtr(o.search,f)),typeof o.hash=="string"&&(s.hash=ytr(o.hash,f)),s}t(VV,"w");function HV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(HV,"C");function Otr(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(Otr,"Oe");function Ftr(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${Otr(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let P=0;P<s.length;++P){let F=s[P];if(F.type===3){if(F.modifier===3){x+=HV(F.value);continue}x+=`{${HV(F.value)}}${Q9(F.modifier)}`;continue}let W=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),be=P>0?s[P-1]:null,de=P<s.length-1?s[P+1]:null;if(!G&&W&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let se=de.value.length>0?de.value[0]:"";G=y.test(se)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&be&&be.type===3){let se=be.value[be.value.length-1];G=o.prefixes.includes(se)}G&&(x+="{"),x+=HV(F.prefix),W&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?W||(x+=`(${d})`):F.type===0&&(!W&&(!be||be.type===3||be.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&W&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=HV(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=Q9(F.modifier))}return x}t(Ftr,"ke");var oat=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new Itr(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:nI,protocol:nI,username:nI,password:nI,hostname:nI,port:nI,search:nI,hash:nI};this.#e=VV(x,s,!0),nat(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of JAe){if(!(P in this.#e))continue;let F={},W=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,iI),F.encodePart=qAe;break;case"username":Object.assign(F,iI),F.encodePart=ktr;break;case"password":Object.assign(F,iI),F.encodePart=wtr;break;case"hostname":Object.assign(F,dtr),eat(W)?F.encodePart=sat:F.encodePart=iat;break;case"port":Object.assign(F,iI),F.encodePart=aat;break;case"pathname":rat(this.#n.protocol)?(Object.assign(F,mtr,y),F.encodePart=Dtr):(Object.assign(F,iI,y),F.encodePart=Ptr);break;case"search":Object.assign(F,iI,y),F.encodePart=Atr;break;case"hash":Object.assign(F,iI,y),F.encodePart=Ntr;break}try{this.#s[P]=Xst(W,F),this.#n[P]=Zst(this.#s[P],this.#t[P],F),this.#r[P]=Ftr(this.#s[P],F),this.#m=this.#m||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=VV(f,s,!1):f=VV(f,Yst(s,o),!1)}catch{return!1}let d;for(d of JAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=VV(f,s,!1):f=VV(f,Yst(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of JAe){let x=this.#n[y].exec(f[y]);if(!x)return null;let P={};for(let[F,W]of this.#t[y].entries())if(typeof W=="string"||typeof W=="number"){let G=x[F+1];P[W]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(s,o,f){let d=t((F,W)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<W[G])return-1;if(F[G]!==W[G])return 1}return 0},"o"),y=new GV(3,"","","","",3),x=new GV(0,"","","","",3),P=t((F,W)=>{let G=0;for(;G<Math.min(F.length,W.length);++G){let be=d(F[G],W[G]);if(be)return be}return F.length===W.length?0:d(F[G]??y,W[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?P(o.#s[s],[x]):!o.#r[s]&&f.#r[s]?P([x],f.#s[s]):P(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=oat);import{AssertionError as Ltr}from"node:assert";function YP(s,o){if(s===!1)throw new Ltr({message:o})}t(YP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function eM(s){return s.type===Wo.Object}t(eM,"isAstObject");function KP(s){return s.type===Wo.Property}t(KP,"isAstProperty");function VAe(s){return s.type===Wo.Array}t(VAe,"isAstArray");function xO(s){return s.type===Wo.Literal}t(xO,"isAstLiteral");function sI(s){if(s===void 0)throw new Error("Node is undefined");if(!eM(s))throw new Error("Node is not object")}t(sI,"assertAstObject");import{findNodeAtLocation as Rtr,getNodeValue as Mtr,printParseErrorCode as jtr,visit as Btr}from"jsonc-parser";var Utr={DEFAULT:{allowTrailingComma:!1}};function YV(s,o=[],f=Utr.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(W){d.type==="property"&&(d.length=W-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(W){return d.children?.push(W),W}t(x,"onValue"),Btr(s,{onObjectBegin:t((W,G,be)=>{d=x({type:"object",offset:W,length:-1,line:G+1,column:be+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((W,G,be,de,se)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:se+1,parent:d,children:[]}),d.children?.push({type:"string",value:W,offset:G,length:be,line:de,column:se,parent:d})},"onObjectProperty"),onObjectEnd:t((W,G)=>{y(W+G),d.length=W+G-d.offset,d=d.parent,y(W+G)},"onObjectEnd"),onArrayBegin:t((W,G,be,de)=>{d=x({type:"array",offset:W,length:-1,line:be+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((W,G)=>{d.length=W+G-d.offset,d=d.parent,y(W+G)},"onArrayEnd"),onLiteralValue:t((W,G,be,de,se)=>{x({type:ztr(W),offset:G,length:be,line:de+1,column:se+1,parent:d,value:W}),y(G+be)},"onLiteralValue"),onSeparator:t((W,G)=>{d.type==="property"&&(W===":"?d.colonOffset=G:W===","&&y(G))},"onSeparator"),onError:t((W,G,be,de,se)=>{o.push({error:W,offset:G,length:be,line:de+1,column:se+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(YV,"parse");function ztr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(ztr,"getNodeType");function HAe(s,o){return Rtr(s,o)}t(HAe,"findNodeAtLocation");function KV(s){return Mtr(s)}t(KV,"getNodeValue");function cat(s){return jtr(s)}t(cat,"printParseErrorCode");var XV=class{static{t(this,"AstAdapter")}parse(o){let d=YV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){YP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var $tr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,ZV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,x)=>{this.generateSource(o,d),y<x.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=$tr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import Jtr from"node:fs/promises";import{parse as Wtr}from"@swc/core";var lat=t(async s=>{let o=new Set;try{let f=await Jtr.readFile(s,"utf-8");(await Wtr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var uat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var GAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var fat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var YAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var KAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var glt=B_(tle(),1),ylt=B_(hlt(),1);var ile=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new glt.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,ylt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},P=y.instancePath.split("/");if(P.length>2){let W=P[1],G=P[2]?parseInt(P[2],10):0,be=P[3],de=Number.isNaN(G)?void 0:f[W][G][be];x={details:{property:W,index:G,field:be,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let W=y.instancePath.split("/"),G=W[W.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var mI=ile.instance;mI.addSchema(YAe,"route-configuration.schema.json");mI.addSchema(fat,"policy-configuration.schema.json");mI.addSchema(GAe,"policies.schema.json");mI.addSchema(KAe,"open-api-route-configuration.schema.json");mI.addSchema(uat,"fragments.schema.json");var Y6r=mI.compile(YAe),vlt=mI.compile(KAe),fIe=mI.compile(GAe);var sle=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=fIe(o),this.results}};var ale=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=vlt(o),this.results}};import elr from"node:path";var _Ie=/\$import\((.*)\)/,AH=/\$env\((.*?)\)/g;var $k=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},Qcr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),tA=t((s,o)=>{if(!s)return!1;let f=Qcr(s);return o.split("/").every((x,P)=>{let F=f[P];return F?x==="*"||KP(F)&&F.name.value===x?!0:x==="{}"?F.type===Wo.Object:x==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var ole=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),eM(o)?o.children.forEach(f=>{this.visitor(f)}):VAe(o)?o.children.forEach(f=>{this.visitor(f)}):KP(o)&&this.visitor(o.value)}},blt=t(s=>{let o=new RegExp(AH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(AH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),Slt=t((s,o,f)=>d=>{if(xO(d)&&typeof d.value=="string"&&d.parent&&VAe(d.parent)){if(!s.some(P=>tA(d.parent,P))){AH.test(d.value)&&o.push(new $k("An $env() statement is not expected at this location.",f,d.location,d.value));return}let x=blt(d.value);if(x){let P=d.parent,F=P.children.indexOf(d);if(F!==-1)if(x.type==="raw"){let W={type:Wo.Raw,parent:P,value:x.value};P.children[F]=W}else P.children[F]=DS.createTemplateString(x.value,d)}return}if(!KP(d)||!xO(d.value)||typeof d.value.value!="string")return;if(!s.some(x=>tA(d,x))){AH.test(d.value.value)&&o.push(new $k("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=blt(d.value.value);if(y)if(y.type==="raw"){let x={type:Wo.Raw,parent:null,value:y.value};d.value=x}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var NH="config/routes.json",tlr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],rlr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],Tlt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],nlr="handler/{}/options/{}/rewritePattern",ilr="handler/{}/options/{}/baseUrl",cle=class extends ole{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!KP(o)||!xO(o.value)||typeof o.value.value!="string")&&tA(o,nlr)){if(!o.parent||!eM(o.parent)){this.errors.push(new $k("Invalid node, expected object",NH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:xlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!KP(o)||!xO(o.value)||typeof o.value.value!="string")&&tA(o,ilr)){if(!o.parent||!eM(o.parent)){this.errors.push(new $k("Invalid node, expected object",NH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:xlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!KP(o)||!xO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!rlr.some(F=>tA(o,F))&&!Tlt.some(F=>tA(o,F))){if(_Ie.test(f)){if(o.name.value==="$ref")return;this.errors.push(new $k("An $import() statement is not expected at this location.",NH,o.location,f))}return}let d=_Ie.exec(f);if(Tlt.some(F=>tA(o,F))&&!d)return;if(!d){this.errors.push(new $k("Invalid $import() statement",NH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=elr.posix.join("..",y));let x=this.getImportName(y),P={type:Wo.Identifier,parent:o.parent,value:x};o.value=P}replaceEnvStatements=Slt(tlr,this.errors,NH)};function xlt(s){return`(request, context) => {
576
576
  const { params, url, query, method, headers } = request;
577
577
  const { host, hostname, origin, pathname, port, search } = new URL(url);
578
578
  const e = encodeURIComponent;
@@ -617,17 +617,17 @@ const __bodyExports = (function () {
617
617
  return module.exports;
618
618
  })();
619
619
  module.exports = Object.assign({}, __paramExports, __bodyExports);
620
- `,y}t(fmr,"schemaValidationSource");function X4e(s,o,f,d,y,x,P){for(let F in s){let W=s[F];if(F==="$ref"){let G=LV(f,ZN(o,W));s[F]=G,NV(o,f,ZN(o,W),y,x,P,(be,de,se)=>LV(be,ZN(se,de)))}else typeof W=="object"&&X4e(W,o,f,d,y,x,P)}}t(X4e,"addRefsToSchema");async function _mr(s){let o=new Set(["RequestValidationInboundPolicy"]),f=await Z4e.readFile(`${s}/config/policies.json`,"utf-8"),d=JSON.parse(f);return pmr(d,o)}t(_mr,"getPolicyNamesUsingSchemaValidationPolicies");function pmr(s,o){let f=new Set;s.policies?.forEach(y=>{y.handler?.export&&o.has(y.handler.export)&&y.handler.module==="$import(@zuplo/runtime)"&&f.add(y.name)});let d=dmr(s,f);return new Set([...f,...d])}t(pmr,"getPolicyNamesReferencingPolicyHandlers");function dmr(s,o){let f=new Set;return s.policies?.forEach(d=>{d.handler?.export==="CompositeInboundPolicy"&&d.handler?.options?.policies?.forEach(y=>{o.has(y)&&f.add(d.name)})}),f}t(dmr,"getCompositePoliciesContainingPolicy");function mmr(s,o){if(!s["x-zuplo-route"]||!s["x-zuplo-route"].policies)return!1;let f=s["x-zuplo-route"].policies.inbound;if(f){for(let y of f)if(o.has(y))return!0}let d=s["x-zuplo-route"].policies.outbound;if(d){for(let y of d)if(o.has(y))return!0}return!1}t(mmr,"isPolicyPresentInOperation");async function hmr(s,o){let f=[];for(let d of s){let y=await Z4e.readFile(d,"utf-8"),P=JSON.parse(y).paths;for(let F in P){let W=P[F];for(let G in W){let be=W[G];mmr(be,o)&&f.push({fileName:JO.basename(d,".oas.json"),path:F,method:G})}}}return f}t(hmr,"getRoutesContainingPolicies");import{mkdirSync as gmr,writeFileSync as ymr}from"node:fs";import vmr from"node:path";function lpt(s){return{name:"write-modules-plugin",setup(o){o.onEnd(async f=>{if(f){let d=zM(s.sourceDirectory,f.metafile);gmr(s.outputDirectory,{recursive:!0}),ymr(vmr.join(s.outputDirectory,"modules.json"),JSON.stringify(d,null,2))}})}}}t(lpt,"writeModulesPlugin");var bmr=zoe("zuplo:core:build"),Smr=["workerd","worker","browser"],_pt=[...process.env.GLOBAL_MODULE_LOCATION?[process.env.GLOBAL_MODULE_LOCATION]:[],Q4e.resolve(upt(fpt(import.meta.url)),"..","..","..","node_modules"),Q4e.resolve(upt(fpt(import.meta.url)),"..","..","..","..","..","node_modules")];async function nG({systemDirectory:s,outputDirectory:o,sourceDirectory:f,cacheDirectory:d,logger:y,minify:x=!0,command:P,config:F,urls:W,isAiEnabled:G}){let be=Q4e.join(s,_oe);bmr(`Building with node paths: ${_pt.join(", ")}`);let de=x&&P!=="dev"&&!process.env.DEBUG_BUILD_DISABLE_MINIFY?{minify:!0,chunkNames:"[hash]"}:{minify:!1,keepNames:!0,chunkNames:"[name]-[hash]"},se=Object.freeze({sourceDirectory:f,outputDirectory:o,cacheDirectory:d,logger:y,debugMode:wm.DEBUG_BUILD_MODE,config:F,urls:W,isAiEnabled:G});return{platform:"browser",target:"es2022",outdir:o,splitting:!0,metafile:!0,format:"esm",nodePaths:_pt,entryPoints:[be],sourcemap:"linked",legalComments:"none",treeShaking:!0,bundle:!0,...de,external:[],logLevel:"silent",conditions:Smr,plugins:[w_t(se),x_t(se),K_t(se),Z_t(se),cpt(se),tpt(se),ipt(se),V_t(se),G_t(se),lpt(se)]}}t(nG,"getBaseESBuildConfig");var WO="run-esbuild",dpt=t(async function({systemDirectory:s,outputDirectory:o,sourceDirectory:f,cacheDirectory:d,buildId:y,logger:x,config:P,command:F,minify:W,urls:G,isAiEnabled:be},{data:de}){x.debug("Running esbuild");let se=await nG({command:F,minify:W,systemDirectory:s,outputDirectory:o,cacheDirectory:d,sourceDirectory:f,logger:x,config:P,urls:G,isAiEnabled:be}),Xe;try{if(!await V9(f))throw new Error("Failed to build project because no open-api file was found on the 'config' folder");Xe=await ppt.build(se),de.set("metafile",Xe.metafile)}catch(Vt){if(x.error(Vt),Vt.errors||Vt.warnings)Xe=Vt;else if(Vt.message.includes("Failed to build project because no open-api file was found on the 'config' folder"))Xe={warnings:[],errors:[{id:"missing-open-api-file",text:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:WO,location:null,notes:[],detail:"Failed to build project because no open-api file was found on the 'config' folder"}],outputFiles:void 0,metafile:void 0,mangleCache:void 0};else throw Vt}Xe.errors.length>0&&Xe.errors.length>1&&(Xe.errors.length=1);let{errors:Ue,warnings:je}=e3e({buildId:y,result:Xe});return{errors:Ue,warnings:je}},"runEsbuild");function e3e({buildId:s,result:o}){return{status:o.errors.length>0?"Failed":o.warnings.length>0?"Warnings":"Good",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:s,warnings:o.warnings.map(d=>d.text==="Using direct eval with a bundler is not recommended and may cause problems"?{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:"We do not support the use of 'eval' or 'new Function(...)'",severity:soe,pluginName:d.pluginName||WO}:{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:soe,pluginName:d.pluginName||WO}),errors:o.errors.map(d=>({location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:gPe,pluginName:d.pluginName||WO})),metafile:o.metafile}}t(e3e,"esbuildResultToBuildResult");var Tmr=t((s,o)=>{let f=o;if(o.includes(s)){let d=new RegExp(`.*(${s})`,"g");f=o.replace(d,"")}return f.match(/^(\/)?(\.\.(\/)?)+/)&&(f=f.replace(/^(\/)?(\.\.(\/)?)+/,"/")),f},"removePrefixFromString"),xmr=t((s,o)=>{let f=o;if(f.includes(s)){let d=new RegExp(`[a-zA-Z0-9-_.\\/]+(${s})`,"g");f=f.replace(d,"")}return f},"cleanFilePathsInMessage"),mpt=t((s,o,f)=>{if(!s||s.length<=0)return s;let d=s.filter(y=>y.message!=='Could not resolve "@zuplo/runtime"');return d&&d.length>0&&d.forEach(y=>{try{y.location?.file&&(y.location.file=Tmr(o,y.location.file)),y.location?.lineText?.includes("@zuplo/core/index.minified.js")&&(y.location.lineText=`${y.location.lineText.substring(0,200)}...<Truncated>`),y.message=xmr(o,y.message),y.notes&&y.notes.length>0&&delete y.notes,y.text&&delete y.text,y.pluginName===""&&(y.pluginName=f)}catch{}}),d},"cleanDataOnBuildIssue");function hpt(s,o){let f=t3e.basename(o);s.errors&&(s.errors=mpt(s.errors,f,WO)),s.warnings&&(s.warnings=mpt(s.warnings,f,WO))}t(hpt,"formatBuildResult");var Emr=t(s=>t3e.basename(s).startsWith("."),"isHiddenOnUnix"),Cmr=t((s,o=[])=>o.map(f=>f.startsWith(".")?f:`.${f}`).some(f=>s.endsWith(f)),"hasMatchingExtname");function V4e(s,o=[],f=!1){let d=[],y;if(!Gle.existsSync(s)){let x;if(wV.hasMagic(s))x=s;else{let P=o.map(F=>F.startsWith(".")?F:`.${F}`).join("|");x=`${s}+(${P})`}if(d.push(...wV.sync(x,{nodir:!0})),!d.length)throw Error(`Cannot find any files matching pattern "${s}"`);return d}try{if(y=Gle.statSync(s),y.isFile())return[s]}catch{return[]}return Gle.readdirSync(s).forEach(x=>{let P=t3e.join(s,x),F;try{if(F=Gle.statSync(P),F.isDirectory()){f&&d.push(...V4e(P,o,f));return}}catch{return}if(!o.length)throw Error(`Argument '${o}' required when argument '${s}' is a directory`);!F.isFile()||!Cmr(P,o)||Emr(P)||d.push(P)}),d}t(V4e,"lookupFiles");var PS=new coe,xT=` ${PS.gray("|")} `;function IOr(s,o){s.info(PS.green(o))}t(IOr,"outputSuccess");function OOr(s,o){s.warn(PS.yellow(o))}t(OOr,"outputWarning");function Dmr(s,o){s.error(`
621
- ${PS.red(o)}`)}t(Dmr,"outputCritical");function FOr(s,o,f){if(!f){Dmr(s,o);return}let d=f.split(`
620
+ `,y}t(fmr,"schemaValidationSource");function X4e(s,o,f,d,y,x,P){for(let F in s){let W=s[F];if(F==="$ref"){let G=LV(f,ZN(o,W));s[F]=G,NV(o,f,ZN(o,W),y,x,P,(be,de,se)=>LV(be,ZN(se,de)))}else typeof W=="object"&&X4e(W,o,f,d,y,x,P)}}t(X4e,"addRefsToSchema");async function _mr(s){let o=new Set(["RequestValidationInboundPolicy"]),f=await Z4e.readFile(`${s}/config/policies.json`,"utf-8"),d=JSON.parse(f);return pmr(d,o)}t(_mr,"getPolicyNamesUsingSchemaValidationPolicies");function pmr(s,o){let f=new Set;s.policies?.forEach(y=>{y.handler?.export&&o.has(y.handler.export)&&y.handler.module==="$import(@zuplo/runtime)"&&f.add(y.name)});let d=dmr(s,f);return new Set([...f,...d])}t(pmr,"getPolicyNamesReferencingPolicyHandlers");function dmr(s,o){let f=new Set;return s.policies?.forEach(d=>{d.handler?.export==="CompositeInboundPolicy"&&d.handler?.options?.policies?.forEach(y=>{o.has(y)&&f.add(d.name)})}),f}t(dmr,"getCompositePoliciesContainingPolicy");function mmr(s,o){if(!s["x-zuplo-route"]||!s["x-zuplo-route"].policies)return!1;let f=s["x-zuplo-route"].policies.inbound;if(f){for(let y of f)if(o.has(y))return!0}let d=s["x-zuplo-route"].policies.outbound;if(d){for(let y of d)if(o.has(y))return!0}return!1}t(mmr,"isPolicyPresentInOperation");async function hmr(s,o){let f=[];for(let d of s){let y=await Z4e.readFile(d,"utf-8"),P=JSON.parse(y).paths;for(let F in P){let W=P[F];for(let G in W){let be=W[G];mmr(be,o)&&f.push({fileName:JO.basename(d,".oas.json"),path:F,method:G})}}}return f}t(hmr,"getRoutesContainingPolicies");import{mkdirSync as gmr,writeFileSync as ymr}from"node:fs";import vmr from"node:path";function lpt(s){return{name:"write-modules-plugin",setup(o){o.onEnd(async f=>{if(f){let d=zM(s.sourceDirectory,f.metafile);gmr(s.outputDirectory,{recursive:!0}),ymr(vmr.join(s.outputDirectory,"modules.json"),JSON.stringify(d,null,2))}})}}}t(lpt,"writeModulesPlugin");var bmr=zoe("zuplo:core:build"),Smr=["workerd","worker","browser"],_pt=[...process.env.GLOBAL_MODULE_LOCATION?[process.env.GLOBAL_MODULE_LOCATION]:[],Q4e.resolve(upt(fpt(import.meta.url)),"..","..","..","node_modules"),Q4e.resolve(upt(fpt(import.meta.url)),"..","..","..","..","..","node_modules")];async function nG({systemDirectory:s,outputDirectory:o,sourceDirectory:f,cacheDirectory:d,logger:y,minify:x=!0,command:P,config:F,urls:W,isAiEnabled:G}){let be=Q4e.join(s,_oe);bmr(`Building with node paths: ${_pt.join(", ")}`);let de=x&&P!=="dev"&&!process.env.DEBUG_BUILD_DISABLE_MINIFY?{minify:!0,chunkNames:"[hash]"}:{minify:!1,keepNames:!0,chunkNames:"[name]-[hash]"},se=Object.freeze({sourceDirectory:f,outputDirectory:o,cacheDirectory:d,logger:y,debugMode:wm.DEBUG_BUILD_MODE,config:F,urls:W,isAiEnabled:G});return{platform:"browser",target:"es2022",outdir:o,splitting:!0,metafile:!0,format:"esm",nodePaths:_pt,entryPoints:[be],sourcemap:"linked",legalComments:"none",treeShaking:!0,bundle:!0,...de,external:[],logLevel:"silent",conditions:Smr,plugins:[w_t(se),x_t(se),K_t(se),Z_t(se),cpt(se),tpt(se),ipt(se),V_t(se),G_t(se),lpt(se)]}}t(nG,"getBaseESBuildConfig");var WO="run-esbuild",dpt=t(async function({systemDirectory:s,outputDirectory:o,sourceDirectory:f,cacheDirectory:d,buildId:y,logger:x,config:P,command:F,minify:W,urls:G,isAiEnabled:be},{data:de}){x.debug("Running esbuild");let se=await nG({command:F,minify:W,systemDirectory:s,outputDirectory:o,cacheDirectory:d,sourceDirectory:f,logger:x,config:P,urls:G,isAiEnabled:be}),Xe;try{if(!await V9(f))throw new Error("Failed to build project because no open-api file was found on the 'config' folder");Xe=await ppt.build(se),de.set("metafile",Xe.metafile)}catch(Vt){if(x.error(Vt),Vt.errors||Vt.warnings)Xe=Vt;else if(Vt.message.includes("Failed to build project because no open-api file was found on the 'config' folder"))Xe={warnings:[],errors:[{id:"missing-open-api-file",text:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:WO,location:null,notes:[],detail:"Failed to build project because no open-api file was found on the 'config' folder"}],outputFiles:void 0,metafile:void 0,mangleCache:void 0};else throw Vt}Xe.errors.length>0&&Xe.errors.length>1&&(Xe.errors.length=1);let{errors:Ue,warnings:je}=e3e({buildId:y,result:Xe});return{errors:Ue,warnings:je}},"runEsbuild");function e3e({buildId:s,result:o}){return{status:o.errors.length>0?"Failed":o.warnings.length>0?"Warnings":"Good",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:s,warnings:o.warnings.map(d=>d.text==="Using direct eval with a bundler is not recommended and may cause problems"?{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:"We do not support the use of 'eval' or 'new Function(...)'",severity:soe,pluginName:d.pluginName||WO}:{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:soe,pluginName:d.pluginName||WO}),errors:o.errors.map(d=>({location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:gPe,pluginName:d.pluginName||WO})),metafile:o.metafile}}t(e3e,"esbuildResultToBuildResult");var Tmr=t((s,o)=>{let f=o;if(o.includes(s)){let d=new RegExp(`.*(${s})`,"g");f=o.replace(d,"")}return f.match(/^(\/)?(\.\.(\/)?)+/)&&(f=f.replace(/^(\/)?(\.\.(\/)?)+/,"/")),f},"removePrefixFromString"),xmr=t((s,o)=>{let f=o;if(f.includes(s)){let d=new RegExp(`[a-zA-Z0-9-_.\\/]+(${s})`,"g");f=f.replace(d,"")}return f},"cleanFilePathsInMessage"),mpt=t((s,o,f)=>{if(!s||s.length<=0)return s;let d=s.filter(y=>y.message!=='Could not resolve "@zuplo/runtime"');return d&&d.length>0&&d.forEach(y=>{try{y.location?.file&&(y.location.file=Tmr(o,y.location.file)),y.location?.lineText?.includes("@zuplo/core/index.minified.js")&&(y.location.lineText=`${y.location.lineText.substring(0,200)}...<Truncated>`),y.message=xmr(o,y.message),y.notes&&y.notes.length>0&&delete y.notes,y.text&&delete y.text,y.pluginName===""&&(y.pluginName=f)}catch{}}),d},"cleanDataOnBuildIssue");function hpt(s,o){let f=t3e.basename(o);s.errors&&(s.errors=mpt(s.errors,f,WO)),s.warnings&&(s.warnings=mpt(s.warnings,f,WO))}t(hpt,"formatBuildResult");var Emr=t(s=>t3e.basename(s).startsWith("."),"isHiddenOnUnix"),Cmr=t((s,o=[])=>o.map(f=>f.startsWith(".")?f:`.${f}`).some(f=>s.endsWith(f)),"hasMatchingExtname");function V4e(s,o=[],f=!1){let d=[],y;if(!Gle.existsSync(s)){let x;if(wV.hasMagic(s))x=s;else{let P=o.map(F=>F.startsWith(".")?F:`.${F}`).join("|");x=`${s}+(${P})`}if(d.push(...wV.sync(x,{nodir:!0})),!d.length)throw Error(`Cannot find any files matching pattern "${s}"`);return d}try{if(y=Gle.statSync(s),y.isFile())return[s]}catch{return[]}return Gle.readdirSync(s).forEach(x=>{let P=t3e.join(s,x),F;try{if(F=Gle.statSync(P),F.isDirectory()){f&&d.push(...V4e(P,o,f));return}}catch{return}if(!o.length)throw Error(`Argument '${o}' required when argument '${s}' is a directory`);!F.isFile()||!Cmr(P,o)||Emr(P)||d.push(P)}),d}t(V4e,"lookupFiles");var PS=new coe,xT=` ${PS.gray("|")} `;function OOr(s,o){s.info(PS.green(o))}t(OOr,"outputSuccess");function FOr(s,o){s.warn(PS.yellow(o))}t(FOr,"outputWarning");function Dmr(s,o){s.error(`
621
+ ${PS.red(o)}`)}t(Dmr,"outputCritical");function LOr(s,o,f){if(!f){Dmr(s,o);return}let d=f.split(`
622
622
  `).join(`
623
623
  ${xT}`);s.error(`
624
624
  ${PS.red(`${o}
625
- ${xT}${d}`)}`)}t(FOr,"outputCriticalWithDetail");function LOr(s,o,f){let d=f.sort((P,F)=>{let W=P.path.split("/").length,G=F.path.split("/").length;return W!==G?W-G:P.path.localeCompare(F.path)}),y=Math.max(...d.map(P=>P.path.length)),x=`${o}
625
+ ${xT}${d}`)}`)}t(LOr,"outputCriticalWithDetail");function ROr(s,o,f){let d=f.sort((P,F)=>{let W=P.path.split("/").length,G=F.path.split("/").length;return W!==G?W-G:P.path.localeCompare(F.path)}),y=Math.max(...d.map(P=>P.path.length)),x=`${o}
626
626
  `;d.forEach(P=>{let F=" ".repeat(y-P.path.length),W=P.bytes/1024,G=` ${P.path}${F} ${W.toFixed(2)} KB
627
- `;x+=W>1024?PS.red(G):W>300?PS.yellow(G):G}),s.info(x)}t(LOr,"outputFileTree");function ROr(s,o){if(o.length===0)return"";let f=Object.keys(o[0]).length,d=Array.from({length:f},(P,F)=>Math.max(...o.map(W=>String(Object.values(W)[F]).length))),x=o.map(P=>Object.values(P).map((F,W)=>String(F).padEnd(d[W])).join(" ")).join(`
628
- `);s.info(x)}t(ROr,"outputTable");function r3e({output:s,buildId:o,runtimeVersion:f,compatibilityDate:d}){let y=["Building Zuplo API...",`${xT}Build ID: ${o}`,`${xT}Runtime Version: ${f}`];d&&y.push(`${xT}Compatibility Date: ${d}`),s.info(y.join(`
629
- `))}t(r3e,"outputApiBuildStart");function MOr({output:s,buildId:o,compatibilityDate:f}){let d=["Building Developer Portal...",`${xT}Build ID: ${o}`];f&&d.push(`${xT}Compatibility Date: ${f}`),s.info(d.join(`
630
- `))}t(MOr,"outputDevPortalBuildStart");async function Yle(s,o,f){hpt(f,s),await Promise.all(f.warnings.map(async y=>gpt(s,o,y))),await Promise.all(f.errors.map(async y=>gpt(s,o,y)));let d=process.env.CODEBUILD_BUILD_ID?new Date(Date.now()+1):new Date;f.status==="Good"?o.info(PS.green("Build succeeded"),{timestamp:d}):f.status==="Warnings"?o.warn(PS.yellow("Build succeeded with warnings"),{timestamp:d}):f.status==="Failed"&&o.error(PS.red("Build failed."),{timestamp:d})}t(Yle,"outputBuildResult");async function gpt(s,o,f){let d=[],y=f.severity??"error",x=y==="error"?PS.red:PS.yellow,P=x(`${y.toUpperCase()}: ${f.message}${f.detail?`
627
+ `;x+=W>1024?PS.red(G):W>300?PS.yellow(G):G}),s.info(x)}t(ROr,"outputFileTree");function MOr(s,o){if(o.length===0)return"";let f=Object.keys(o[0]).length,d=Array.from({length:f},(P,F)=>Math.max(...o.map(W=>String(Object.values(W)[F]).length))),x=o.map(P=>Object.values(P).map((F,W)=>String(F).padEnd(d[W])).join(" ")).join(`
628
+ `);s.info(x)}t(MOr,"outputTable");function r3e({output:s,buildId:o,runtimeVersion:f,compatibilityDate:d}){let y=["Building Zuplo API...",`${xT}Build ID: ${o}`,`${xT}Runtime Version: ${f}`];d&&y.push(`${xT}Compatibility Date: ${d}`),s.info(y.join(`
629
+ `))}t(r3e,"outputApiBuildStart");function jOr({output:s,buildId:o,compatibilityDate:f}){let d=["Building Developer Portal...",`${xT}Build ID: ${o}`];f&&d.push(`${xT}Compatibility Date: ${f}`),s.info(d.join(`
630
+ `))}t(jOr,"outputDevPortalBuildStart");async function Yle(s,o,f){hpt(f,s),await Promise.all(f.warnings.map(async y=>gpt(s,o,y))),await Promise.all(f.errors.map(async y=>gpt(s,o,y)));let d=process.env.CODEBUILD_BUILD_ID?new Date(Date.now()+1):new Date;f.status==="Good"?o.info(PS.green("Build succeeded"),{timestamp:d}):f.status==="Warnings"?o.warn(PS.yellow("Build succeeded with warnings"),{timestamp:d}):f.status==="Failed"&&o.error(PS.red("Build failed."),{timestamp:d})}t(Yle,"outputBuildResult");async function gpt(s,o,f){let d=[],y=f.severity??"error",x=y==="error"?PS.red:PS.yellow,P=x(`${y.toUpperCase()}: ${f.message}${f.detail?`
631
631
  ${xT}${f.detail.toString().split(`
632
632
  `).join(`
633
633
  ${xT}`)}`:""}`);d.push(P);let F=Pmr(f.location??void 0);if(F&&d.push(`${xT}${x(`The error was found in the file: ${F}`)}`),f.location?.file&&f.location.column!==0&&f.location.line!==0)try{let W=wmr.join(s,f.location.file),G=await kmr(W,"utf-8"),be=(0,ypt.codeFrameColumns)(G,{start:{line:f.location.line,column:f.location.column}},{highlightCode:!0,message:f.message,linesAbove:3,linesBelow:3});d.push(xT),d.push(be)}catch{}else f.location?.file&&d.push(PS.red(`${xT}File: ${f.location.file}:${f.location.line}:${f.location.column}`));d.push(""),f.severity==="warning"?o.warn(d.join(`
@@ -663,7 +663,7 @@ export default {
663
663
  `,Dpt=t(async function({systemDirectory:s,logger:o}){return Ou.timeFn("Generating Worker shim",async()=>{o.debug("Generating Worker shim");let f=Wmr.join(s,_oe);try{await Jmr.writeFile(f,qmr,"utf-8")}catch(d){o.error(d);let y={message:`Error creating file at ${f}`,pluginName:"generate-worker-entry",severity:"error"};return{warnings:[],errors:[y]}}return{warnings:[],errors:[]}})},"generateWorker");import{readdir as Vmr,readFile as Hmr}from"node:fs/promises";import Ppt from"node:path";var Kle="validate-open-api-files",Apt=t(async function({sourceDirectory:s,logger:o}){return Ou.timeFn("Validating OpenAPI files",async()=>{o.debug("Validating OpenAPI files");let f=Ppt.join(s,xy),d=[];try{if(!await V9(s))return new ET({message:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:Kle,severity:"error"});let P=(await Vmr(f)).filter(W=>W.endsWith(".oas.json")),F=t(async W=>{let G=Ppt.join(f,W);try{W==="zp.oas.json"&&d.push({message:"Open API files cannot be named 'zp.oas.json' since 'zp' is a reserved prefix. Update the file name to solve this build issue.",pluginName:Kle,severity:"error"});let be=await Hmr(G,"utf-8"),de=JSON.parse(be);if(de?.paths){let se=Object.entries(de.paths).filter(Xe=>Xe[0]==="zp"||Xe[0]==="/zp");if(se.length>0){let Xe=se.length===1?"includes one route path":`includes '${se.length}' routes`;d.push({message:`Open API file '${W}' ${Xe} that's named '/zp' which is a reserved route name. Updating the route to something other than '/zp' will solve this build issue.`,pluginName:Kle,severity:"error"})}}}catch(be){o.error(be)}},"validateOpenApiFile");await Promise.all(P.map(F))}catch(y){return o.error(y),d.length>0?{errors:d,warnings:[]}:new ET({message:"Failed while validating the open api files in the project",pluginName:Kle,severity:"warning"})}return{errors:d,warnings:[]}})},"validateOpenAPIFiles");import{readFile as phr,writeFile as Kpt}from"node:fs/promises";import dhr from"node:path";var qM=B_(y3e(),1);import{parse as mhr}from"jsonc-parser";var WM=B_(y3e(),1);var Ypt=t(()=>({include:["modules/**/*",".zuplo/**/*","tests/**/*"],exclude:["./node_modules","./dist"],compilerOptions:{module:WM.ModuleKind.ESNext,target:WM.ScriptTarget.ES2022,moduleResolution:WM.ModuleResolutionKind.Bundler,lib:["ESNext","WebWorker","Webworker.Iterable"],preserveConstEnums:!0,useUnknownInCatchVariables:!1,forceConsistentCasingInFileNames:!0,importHelpers:!0,esModuleInterop:!0,strictNullChecks:!0,noEmit:!0}}),"getZuploTsConfigTemplate");var HO="validate-tsconfig",Xpt=t(async function({sourceDirectory:s,logger:o,command:f,environmentType:d}){return Ou.timeFn("Validate TSConfig",async()=>{o.debug("Validate TSConfig");let y=d==="WORKING_COPY"||f==="dev";try{let x=Ypt(),P=dhr.join(s,"tsconfig.json");if(!await eu.fileExists(P))return y?(await Kpt(P,JSON.stringify(x,null,2)),{warnings:[{message:"This project does not have a tsconfig.json file. The file has been created for you.",severity:"warning",pluginName:HO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project does not have a tsconfig.json file.",severity:"error",pluginName:HO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let F=await phr(P,"utf-8"),W=mhr(F);if(!(W&&typeof W=="object"&&"compilerOptions"in W))return y?(await Kpt(P,JSON.stringify(x,null,2)),{warnings:[{message:"This project's tsconfig.json file was invalid. A valid file has been written for you.",severity:"warning",pluginName:HO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project's tsconfig.json file is invalid. It must have a compilerOptions.",severity:"error",pluginName:HO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let G=qM.default.convertCompilerOptionsFromJson(W.compilerOptions,s);if(G.errors.length>0)return{warnings:[],errors:G.errors.map(Jn=>({severity:"error",pluginName:HO,message:Jn.messageText.toString(),detail:"You will need to modify your tsconfig.json file to build this project.",helpUrl:"https://zuplo.com/docs/articles/tsconfig",location:Jn.file?{line:Jn.file.getLineStarts()[0],length:Jn.file.getWidth(),file:Jn.file.fileName,column:Jn.file.getStart(),lineText:"",namespace:"",suggestion:""}:void 0}))};if(!W||typeof W!="object")throw new TypeError("The userConfigRaw is not an object, this should not happen.");if(!("compilerOptions"in W)||W.compilerOptions===null||W.compilerOptions===void 0||typeof W.compilerOptions!="object")throw new TypeError("The userConfigRaw.compilerOptions property is not an object, this should not happen.");let be=t((Jn,kr,yr)=>`The compiler option '${Jn}' should ${kr===void 0?"not be set":`be set to '${typeof kr=="string"?kr:JSON.stringify(kr)}'`}, it was ${yr===void 0?"not set":`set to '${typeof yr=="string"?yr:JSON.stringify(yr)}'`}`,"getMessage"),de="ESNext",se=qM.ModuleKind.ESNext,Xe=[];G.options.module!==se&&Xe.push(be("module",de,W.compilerOptions.module));let Ue="ES2022",je=qM.default.ScriptTarget.ES2022;G.options.target!==je&&Xe.push(be("target",Ue,W.compilerOptions.target));let Vt="Bundler",Ut=qM.default.ModuleResolutionKind.Bundler;G.options.moduleResolution!==Ut&&Xe.push(be("moduleResolution",Vt,W.compilerOptions.moduleResolution));let Ir=["ESNext","WebWorker","Webworker.Iterable"];t(Jn=>{let kr=Ir.map(xs=>xs.toLowerCase()),yr=Jn.map(xs=>xs.toLowerCase());return kr.every(xs=>yr.includes(xs))},"includesAllLibs")(W.compilerOptions.lib??[])||Xe.push(be("lib",Ir,W.compilerOptions.lib)),G.options.baseUrl&&Xe.push(be("baseUrl",void 0,W.compilerOptions.baseUrl));let sn=[];return Xe.length>0&&sn.push({message:"This project's tsconfig.json was not set to the recommended settings. Custom settings may cause build issues. For guidance on how to adjust your settings, please visit: https://zuplo.com/docs/articles/tsconfig",severity:"warning",detail:Xe.join(`
664
664
  `),pluginName:HO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}),{warnings:sn,errors:[]}}catch(x){o.error(x);let P={message:`Error validating tsconfig.json : ${x.message}`,severity:"error",pluginName:HO};return{warnings:[],errors:[P]}}})},"validateTSConfig");var GO;try{let s=hhr(new URL("../../package.json",import.meta.url),"utf-8");GO=JSON.parse(s).version}catch{GO="0.0.0"}function ghr(s){let{ZUPLO:o,ZUPLO_BUILD_ID:f,ZUPLO_BUILD_CONFIG:d}=process.env;if(o&&f&&d){let y;try{y=JSON.parse(d)}catch{throw new Error("Couuld not parse ZUPLO_BUILD_CONFIG")}let x={ZUPLO_PROJECT_ID:y.projectId,ZUPLO_ACCOUNT_NAME:y.accountName,ZUPLO_PROJECT_NAME:y.projectName,ZUPLO_ENVIRONMENT_TYPE:y.environmentType};for(let[P,F]of Object.entries(process.env))P.startsWith("ZUPLO_PUBLIC_")&&(x[P]=F??"");return{...s,buildId:f,...y,publicZuploEnvironmentVariables:x}}return s}t(ghr,"getBuildConfig");async function v3e(s){let o=performance.now(),{buildId:f,sourceDirectory:d,deploymentName:y=eue.basename(d),command:x,minify:P,entitlements:F,environmentType:W,logger:G,output:be,noCompile:de=!1,projectId:se,urls:Xe,publicZuploEnvironmentVariables:Ue,isAiEnabled:je}=ghr(s),Vt=await $M(d),Ut=eue.join(d,_O),Ir;if("errors"in Vt)r3e({output:be.child("api"),buildId:f,runtimeVersion:GO}),Ir={status:"Failed",runtimeVersion:GO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,buildId:f,warnings:[],errors:Vt.errors,metafile:void 0,config:void 0};else{de||r3e({output:be.child("api"),buildId:f,runtimeVersion:GO,compatibilityDate:Vt.config.compatibilityDate});let Jn={command:x,minify:P,deploymentName:y,sourceDirectory:d,outputDirectory:Ut,systemDirectory:eue.join(d,Og),cacheDirectory:eue.join(d,"node_modules",Og),buildId:f,logger:G,output:be,config:Vt.config,publicZuploEnvironmentVariables:Ue,projectId:se,entitlements:F,environmentType:W,urls:Xe,isAiEnabled:je},kr=[];kr.push(xpt),kr.push(Cpt),kr.push(kpt),kr.push(wpt),kr.push(Xpt),kr.push(Apt),kr.push(Dpt),de||kr.push(dpt),kr.push(Tpt);let yr=await vpt(kr,Jn),xs=yr.errors.length>0?j9:yr.warnings.length>0?hPe:jP,bi=yr.data.get("metafile");Ir=xs==="Failed"?{status:xs,config:void 0,runtimeVersion:GO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:bi,buildId:f,warnings:yr.warnings,errors:yr.errors}:{status:xs,config:Vt.config,runtimeVersion:GO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:bi,buildId:f,warnings:yr.warnings,errors:yr.errors}}Ir.warnings.length>0&&Ir.warnings.forEach(Jn=>{G.warn(Jn)}),Ir.errors.length>0&&Ir.errors.forEach(Jn=>{G.error(Jn)});let{metafile:wn,...sn}=Ir;if(G.debug(sn,"Compiler completed"),Ir.buildTimeMs=performance.now()-o,de||await Yle(d,be.child("api"),Ir),process.env.ZUPLO_SHOW_PERF){console.log();let Jn=Ir.buildTimeMs<2e3?"green":Ir.buildTimeMs<5e3?"yellow":"red";console.log(v_[Jn](`Build time: ${Ir.buildTimeMs.toFixed(0)}ms`)),Ou.report()}return Ou.clear(),Ir}t(v3e,"build");import{randomUUID as Zpt}from"node:crypto";import yhr from"node:events";import oG from"node:path";import vhr from"chokidar";import*as Qpt from"esbuild";var b3e=class extends yhr{static{t(this,"WatchEmitter")}},oA=class{static{t(this,"BuildWatcher")}esbuildContext;emitter=new b3e;envFilesWatcher;outputDirectory;sourceDirectory;command;logger;publicZuploEnvironmentVariables;buildId;output;urls;constructor({sourceDirectory:o,command:f,logger:d,publicZuploEnvironmentVariables:y={},buildId:x,output:P,urls:F}){this.sourceDirectory=o,this.command=f,this.outputDirectory=oG.join(o,_O),this.logger=d,this.publicZuploEnvironmentVariables=y,this.buildId=x,this.output=P,this.urls=F,this.envFilesWatcher=vhr.watch([oG.join(o,".env"),oG.join(o,".env.zuplo")])}watchEnvFiles(){this.envFilesWatcher.on("change",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("add",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("unlink",()=>{this.emitter.emit("reload",null,null)})}onReload=t(o=>{this.emitter.on("reload",o)},"onReload");async start(){let{sourceDirectory:o}=this;if(this.esbuildContext!==void 0)throw new Error("Watcher cannot be started more than once");let f=await v3e({buildId:this.buildId,output:this.output,sourceDirectory:o,noCompile:!0,command:this.command,publicZuploEnvironmentVariables:this.publicZuploEnvironmentVariables,logger:this.logger,urls:this.urls}),d=await nG({command:this.command,systemDirectory:oG.join(o,Og),cacheDirectory:oG.join(o,"node_modules",Og),outputDirectory:this.outputDirectory,sourceDirectory:o,config:f.config??n3e,logger:this.logger,urls:this.urls}),y=this;d.plugins?.push({name:"on-end",setup(x){x.onEnd(P=>{y.logger.debug("Watcher (build) reloaded");let F=e3e({buildId:Zpt(),result:P});F.errors.length>0?y.logger.error(F.errors,"Build errors"):y.logger.debug(`Successfully rebuilt watched project. Build id ${F.buildId}`);let W={...F,...f.status==="Good"?{config:f.config}:{config:void 0}};y.emitter.emit("reload",W,null)})}}),this.esbuildContext=await Qpt.context(d);try{if((await this.esbuildContext.rebuild()).errors.length>0){let P={status:"Failed",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:Zpt(),warnings:[],errors:[],metafile:void 0,config:void 0};await Yle(o,y.output.child("api"),P),this.logger.error(P.errors,"Build errors")}}catch(x){throw await this.close(),x}await this.esbuildContext.watch()}async close(){try{await this.envFilesWatcher.close(),this.esbuildContext&&(await this.esbuildContext.dispose(),this.logger.debug("ESBuild watcher closed"))}catch(o){this.logger.error(o)}}};import{existsSync as jbr}from"node:fs";import{mkdir as Bbr,readFile as Ubr}from"node:fs/promises";import CG from"node:path";var tyt=B_(I8e(),1);import{existsSync as Q0t,readFileSync as eyt}from"node:fs";import Ufe from"node:path";var tOe=B_(noe(),1);var X0t=B_(d0t(),1);import{Buffer as Ibr}from"node:buffer";import Obr from"node:path";import K0t from"node:child_process";import Bfe from"node:process";function $8e(s){let o=typeof s=="string"?`
665
665
  `:10,f=typeof s=="string"?"\r":13;return s[s.length-1]===o&&(s=s.slice(0,-1)),s[s.length-1]===f&&(s=s.slice(0,-1)),s}t($8e,"stripFinalNewline");import Nfe from"node:process";import TG from"node:path";import{fileURLToPath as m0t}from"node:url";function Afe(s={}){let{env:o=process.env,platform:f=process.platform}=s;return f!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"}t(Afe,"pathKey");var Vvr=t(({cwd:s=Nfe.cwd(),path:o=Nfe.env[Afe()],preferLocal:f=!0,execPath:d=Nfe.execPath,addExecPath:y=!0}={})=>{let x=s instanceof URL?m0t(s):s,P=TG.resolve(x),F=[];return f&&Hvr(F,P),y&&Gvr(F,d,P),[...F,o].join(TG.delimiter)},"npmRunPath"),Hvr=t((s,o)=>{let f;for(;f!==o;)s.push(TG.join(o,"node_modules/.bin")),f=o,o=TG.resolve(o,"..")},"applyPreferLocal"),Gvr=t((s,o,f)=>{let d=o instanceof URL?m0t(o):o;s.push(TG.resolve(f,d,".."))},"applyExecPath"),h0t=t(({env:s=Nfe.env,...o}={})=>{s={...s};let f=Afe({env:s});return o.path=s[f],s[f]=Vvr(o),s},"npmRunPathEnv");var Yvr=t((s,o,f,d)=>{if(f==="length"||f==="prototype"||f==="arguments"||f==="caller")return;let y=Object.getOwnPropertyDescriptor(s,f),x=Object.getOwnPropertyDescriptor(o,f);!Kvr(y,x)&&d||Object.defineProperty(s,f,x)},"copyProperty"),Kvr=t(function(s,o){return s===void 0||s.configurable||s.writable===o.writable&&s.enumerable===o.enumerable&&s.configurable===o.configurable&&(s.writable||s.value===o.value)},"canCopyProperty"),Xvr=t((s,o)=>{let f=Object.getPrototypeOf(o);f!==Object.getPrototypeOf(s)&&Object.setPrototypeOf(s,f)},"changePrototype"),Zvr=t((s,o)=>`/* Wrapped ${s}*/
666
- ${o}`,"wrappedToString"),Qvr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ebr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),tbr=t((s,o,f)=>{let d=f===""?"":`with ${f.trim()}() `,y=Zvr.bind(null,d,o.toString());Object.defineProperty(y,"name",ebr),Object.defineProperty(s,"toString",{...Qvr,value:y})},"changeToString");function J8e(s,o,{ignoreNonConfigurable:f=!1}={}){let{name:d}=s;for(let y of Reflect.ownKeys(o))Yvr(s,o,y,f);return Xvr(s,o),tbr(s,o,d),s}t(J8e,"mimicFunction");var Ife=new WeakMap,g0t=t((s,o={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let f,d=0,y=s.displayName||s.name||"<anonymous>",x=t(function(...P){if(Ife.set(x,++d),d===1)f=s.apply(this,P),s=null;else if(o.throw===!0)throw new Error(`Function \`${y}\` can only be called once`);return f},"onetime");return J8e(x,s),Ife.set(x,d),x},"onetime");g0t.callCount=s=>{if(!Ife.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return Ife.get(s)};var y0t=g0t;import{constants as sbr}from"os";var v0t=t(function(){let s=W8e-b0t+1;return Array.from({length:s},rbr)},"getRealtimeSignals"),rbr=t(function(s,o){return{name:`SIGRT${o+1}`,number:b0t+o,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},"getRealtimeSignal"),b0t=34,W8e=64;import{constants as nbr}from"os";var S0t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var q8e=t(function(){let s=v0t();return[...S0t,...s].map(ibr)},"getSignals"),ibr=t(function({name:s,number:o,description:f,action:d,forced:y=!1,standard:x}){let{signals:{[s]:P}}=nbr,F=P!==void 0;return{name:s,number:F?P:o,description:f,supported:F,action:d,forced:y,standard:x}},"normalizeSignal");var abr=t(function(){return q8e().reduce(obr,{})},"getSignalsByName"),obr=t(function(s,{name:o,number:f,description:d,supported:y,action:x,forced:P,standard:F}){return{...s,[o]:{name:o,number:f,description:d,supported:y,action:x,forced:P,standard:F}}},"getSignalByName"),T0t=abr(),cbr=t(function(){let s=q8e(),o=W8e+1,f=Array.from({length:o},(d,y)=>lbr(y,s));return Object.assign({},...f)},"getSignalsByNumber"),lbr=t(function(s,o){let f=ubr(s,o);if(f===void 0)return{};let{name:d,description:y,supported:x,action:P,forced:F,standard:W}=f;return{[s]:{name:d,number:s,description:y,supported:x,action:P,forced:F,standard:W}}},"getSignalByNumber"),ubr=t(function(s,o){let f=o.find(({name:d})=>sbr.signals[d]===s);return f!==void 0?f:o.find(d=>d.number===s)},"findSignalByNumber"),h9r=cbr();var fbr=t(({timedOut:s,timeout:o,errorCode:f,signal:d,signalDescription:y,exitCode:x,isCanceled:P})=>s?`timed out after ${o} milliseconds`:P?"was canceled":f!==void 0?`failed with ${f}`:d!==void 0?`was killed with ${d} (${y})`:x!==void 0?`failed with exit code ${x}`:"failed","getErrorPrefix"),V8e=t(({stdout:s,stderr:o,all:f,error:d,signal:y,exitCode:x,command:P,escapedCommand:F,timedOut:W,isCanceled:G,killed:be,parsed:{options:{timeout:de}}})=>{x=x===null?void 0:x,y=y===null?void 0:y;let se=y===void 0?void 0:T0t[y].description,Xe=d&&d.code,je=`Command ${fbr({timedOut:W,timeout:de,errorCode:Xe,signal:y,signalDescription:se,exitCode:x,isCanceled:G})}: ${P}`,Vt=Object.prototype.toString.call(d)==="[object Error]",Ut=Vt?`${je}
666
+ ${o}`,"wrappedToString"),Qvr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ebr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),tbr=t((s,o,f)=>{let d=f===""?"":`with ${f.trim()}() `,y=Zvr.bind(null,d,o.toString());Object.defineProperty(y,"name",ebr),Object.defineProperty(s,"toString",{...Qvr,value:y})},"changeToString");function J8e(s,o,{ignoreNonConfigurable:f=!1}={}){let{name:d}=s;for(let y of Reflect.ownKeys(o))Yvr(s,o,y,f);return Xvr(s,o),tbr(s,o,d),s}t(J8e,"mimicFunction");var Ife=new WeakMap,g0t=t((s,o={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let f,d=0,y=s.displayName||s.name||"<anonymous>",x=t(function(...P){if(Ife.set(x,++d),d===1)f=s.apply(this,P),s=null;else if(o.throw===!0)throw new Error(`Function \`${y}\` can only be called once`);return f},"onetime");return J8e(x,s),Ife.set(x,d),x},"onetime");g0t.callCount=s=>{if(!Ife.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return Ife.get(s)};var y0t=g0t;import{constants as sbr}from"os";var v0t=t(function(){let s=W8e-b0t+1;return Array.from({length:s},rbr)},"getRealtimeSignals"),rbr=t(function(s,o){return{name:`SIGRT${o+1}`,number:b0t+o,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},"getRealtimeSignal"),b0t=34,W8e=64;import{constants as nbr}from"os";var S0t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var q8e=t(function(){let s=v0t();return[...S0t,...s].map(ibr)},"getSignals"),ibr=t(function({name:s,number:o,description:f,action:d,forced:y=!1,standard:x}){let{signals:{[s]:P}}=nbr,F=P!==void 0;return{name:s,number:F?P:o,description:f,supported:F,action:d,forced:y,standard:x}},"normalizeSignal");var abr=t(function(){return q8e().reduce(obr,{})},"getSignalsByName"),obr=t(function(s,{name:o,number:f,description:d,supported:y,action:x,forced:P,standard:F}){return{...s,[o]:{name:o,number:f,description:d,supported:y,action:x,forced:P,standard:F}}},"getSignalByName"),T0t=abr(),cbr=t(function(){let s=q8e(),o=W8e+1,f=Array.from({length:o},(d,y)=>lbr(y,s));return Object.assign({},...f)},"getSignalsByNumber"),lbr=t(function(s,o){let f=ubr(s,o);if(f===void 0)return{};let{name:d,description:y,supported:x,action:P,forced:F,standard:W}=f;return{[s]:{name:d,number:s,description:y,supported:x,action:P,forced:F,standard:W}}},"getSignalByNumber"),ubr=t(function(s,o){let f=o.find(({name:d})=>sbr.signals[d]===s);return f!==void 0?f:o.find(d=>d.number===s)},"findSignalByNumber"),g9r=cbr();var fbr=t(({timedOut:s,timeout:o,errorCode:f,signal:d,signalDescription:y,exitCode:x,isCanceled:P})=>s?`timed out after ${o} milliseconds`:P?"was canceled":f!==void 0?`failed with ${f}`:d!==void 0?`was killed with ${d} (${y})`:x!==void 0?`failed with exit code ${x}`:"failed","getErrorPrefix"),V8e=t(({stdout:s,stderr:o,all:f,error:d,signal:y,exitCode:x,command:P,escapedCommand:F,timedOut:W,isCanceled:G,killed:be,parsed:{options:{timeout:de}}})=>{x=x===null?void 0:x,y=y===null?void 0:y;let se=y===void 0?void 0:T0t[y].description,Xe=d&&d.code,je=`Command ${fbr({timedOut:W,timeout:de,errorCode:Xe,signal:y,signalDescription:se,exitCode:x,isCanceled:G})}: ${P}`,Vt=Object.prototype.toString.call(d)==="[object Error]",Ut=Vt?`${je}
667
667
  ${d.message}`:je,Ir=[Ut,o,s].filter(Boolean).join(`
668
668
  `);return Vt?(d.originalMessage=d.message,d.message=Ir):d=new Error(Ir),d.shortMessage=Ut,d.command=P,d.escapedCommand=F,d.exitCode=x,d.signal=y,d.signalDescription=se,d.stdout=s,d.stderr=o,f!==void 0&&(d.all=f),"bufferedData"in d&&delete d.bufferedData,d.failed=!0,d.timedOut=!!W,d.isCanceled=G,d.killed=be&&!W,d},"makeError");var Ofe=["stdin","stdout","stderr"],_br=t(s=>Ofe.some(o=>s[o]!==void 0),"hasAlias"),x0t=t(s=>{if(!s)return;let{stdio:o}=s;if(o===void 0)return Ofe.map(d=>s[d]);if(_br(s))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ofe.map(d=>`\`${d}\``).join(", ")}`);if(typeof o=="string")return o;if(!Array.isArray(o))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof o}\``);let f=Math.max(o.length,Ofe.length);return Array.from({length:f},(d,y)=>o[y])},"normalizeStdio");var A0t=B_(P0t(),1);import pbr from"node:os";var dbr=1e3*5,N0t=t((s,o="SIGTERM",f={})=>{let d=s(o);return mbr(s,o,f,d),d},"spawnedKill"),mbr=t((s,o,f,d)=>{if(!hbr(o,f,d))return;let y=ybr(f),x=setTimeout(()=>{s("SIGKILL")},y);x.unref&&x.unref()},"setKillTimeout"),hbr=t((s,{forceKillAfterTimeout:o},f)=>gbr(s)&&o!==!1&&f,"shouldForceKill"),gbr=t(s=>s===pbr.constants.signals.SIGTERM||typeof s=="string"&&s.toUpperCase()==="SIGTERM","isSigterm"),ybr=t(({forceKillAfterTimeout:s=!0})=>{if(s===!0)return dbr;if(!Number.isFinite(s)||s<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${s}\` (${typeof s})`);return s},"getForceKillAfterTimeout"),I0t=t((s,o)=>{s.kill()&&(o.isCanceled=!0)},"spawnedCancel"),vbr=t((s,o,f)=>{s.kill(o),f(Object.assign(new Error("Timed out"),{timedOut:!0,signal:o}))},"timeoutKill"),O0t=t((s,{timeout:o,killSignal:f="SIGTERM"},d)=>{if(o===0||o===void 0)return d;let y,x=new Promise((F,W)=>{y=setTimeout(()=>{vbr(s,f,W)},o)}),P=d.finally(()=>{clearTimeout(y)});return Promise.race([x,P])},"setupTimeout"),F0t=t(({timeout:s})=>{if(s!==void 0&&(!Number.isFinite(s)||s<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${s}\` (${typeof s})`)},"validateTimeout"),L0t=t(async(s,{cleanup:o,detached:f},d)=>{if(!o||f)return d;let y=(0,A0t.default)(()=>{s.kill()});return d.finally(()=>{y()})},"setExitHandler");function R0t(s){return s!==null&&typeof s=="object"&&typeof s.pipe=="function"}t(R0t,"isStream");var Z8e=B_(B0t(),1),$0t=B_(z0t(),1);var J0t=t((s,o)=>{o===void 0||s.stdin===void 0||(R0t(o)?o.pipe(s.stdin):s.stdin.end(o))},"handleInput"),W0t=t((s,{all:o})=>{if(!o||!s.stdout&&!s.stderr)return;let f=(0,$0t.default)();return s.stdout&&f.add(s.stdout),s.stderr&&f.add(s.stderr),f},"makeAllStream"),K8e=t(async(s,o)=>{if(s){s.destroy();try{return await o}catch(f){return f.bufferedData}}},"getBufferedData"),X8e=t((s,{encoding:o,buffer:f,maxBuffer:d})=>{if(!(!s||!f))return o?(0,Z8e.default)(s,{encoding:o,maxBuffer:d}):Z8e.default.buffer(s,{maxBuffer:d})},"getStreamPromise"),q0t=t(async({stdout:s,stderr:o,all:f},{encoding:d,buffer:y,maxBuffer:x},P)=>{let F=X8e(s,{encoding:d,buffer:y,maxBuffer:x}),W=X8e(o,{encoding:d,buffer:y,maxBuffer:x}),G=X8e(f,{encoding:d,buffer:y,maxBuffer:x*2});try{return await Promise.all([P,F,W,G])}catch(be){return Promise.all([{error:be,signal:be.signal,timedOut:be.timedOut},K8e(s,F),K8e(o,W),K8e(f,G)])}},"getSpawnedResult");var wbr=(async()=>{})().constructor.prototype,Dbr=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(wbr,s)]),Q8e=t((s,o)=>{for(let[f,d]of Dbr){let y=typeof o=="function"?(...x)=>Reflect.apply(d.value,o(),x):d.value.bind(o);Reflect.defineProperty(s,f,{...d,value:y})}return s},"mergePromise"),V0t=t(s=>new Promise((o,f)=>{s.on("exit",(d,y)=>{o({exitCode:d,signal:y})}),s.on("error",d=>{f(d)}),s.stdin&&s.stdin.on("error",d=>{f(d)})}),"getSpawnedPromise");var H0t=t((s,o=[])=>Array.isArray(o)?[s,...o]:[s],"normalizeArgs"),Pbr=/^[\w.-]+$/,Abr=/"/g,Nbr=t(s=>typeof s!="string"||Pbr.test(s)?s:`"${s.replace(Abr,'\\"')}"`,"escapeArg"),G0t=t((s,o)=>H0t(s,o).join(" "),"joinCommand"),Y0t=t((s,o)=>H0t(s,o).map(f=>Nbr(f)).join(" "),"getEscapedCommand");var Fbr=1e3*1e3*100,Lbr=t(({env:s,extendEnv:o,preferLocal:f,localDir:d,execPath:y})=>{let x=o?{...Bfe.env,...s}:s;return f?h0t({env:x,cwd:d,execPath:y}):x},"getEnv"),Rbr=t((s,o,f={})=>{let d=X0t.default._parse(s,o,f);return s=d.command,o=d.args,f=d.options,f={maxBuffer:Fbr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:f.cwd||Bfe.cwd(),execPath:Bfe.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...f},f.env=Lbr(f),f.stdio=x0t(f),Bfe.platform==="win32"&&Obr.basename(s,".exe")==="cmd"&&o.unshift("/q"),{file:s,args:o,options:f,parsed:d}},"handleArguments"),eOe=t((s,o,f)=>typeof o!="string"&&!Ibr.isBuffer(o)?f===void 0?void 0:"":s.stripFinalNewline?$8e(o):o,"handleOutput");function Z0t(s,o,f){let d=Rbr(s,o,f),y=G0t(s,o),x=Y0t(s,o);F0t(d.options);let P;try{P=K0t.spawn(d.file,d.args,d.options)}catch(Xe){let Ue=new K0t.ChildProcess,je=Promise.reject(V8e({error:Xe,stdout:"",stderr:"",all:"",command:y,escapedCommand:x,parsed:d,timedOut:!1,isCanceled:!1,killed:!1}));return Q8e(Ue,je)}let F=V0t(P),W=O0t(P,d.options,F),G=L0t(P,d.options,W),be={isCanceled:!1};P.kill=N0t.bind(null,P.kill.bind(P)),P.cancel=I0t.bind(null,P,be);let se=y0t(t(async()=>{let[{error:Xe,exitCode:Ue,signal:je,timedOut:Vt},Ut,Ir,wn]=await q0t(P,d.options,G),sn=eOe(d.options,Ut),Jn=eOe(d.options,Ir),kr=eOe(d.options,wn);if(Xe||Ue!==0||je!==null){let yr=V8e({error:Xe,exitCode:Ue,signal:je,stdout:sn,stderr:Jn,all:kr,command:y,escapedCommand:x,parsed:d,timedOut:Vt,isCanceled:be.isCanceled||(d.options.signal?d.options.signal.aborted:!1),killed:P.killed});if(!d.options.reject)return yr;throw yr}return{command:y,escapedCommand:x,exitCode:0,stdout:sn,stderr:Jn,all:kr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return J0t(P,d.options.input),P.all=W0t(P,d.options),Q8e(P,se)}t(Z0t,"execa");async function zfe(s,o){if(s.__ZUPLO_LOG_LEVEL=process.env.__ZUPLO_LOG_LEVEL??process.env.LOG_LEVEL,s.__ZUPLO_LOG_FORMAT=process.env.__ZUPLO_LOG_FORMAT??process.env.LOG_FORMAT,s.LOG_LEVEL=process.env.LOG_LEVEL??process.env.LOG_LEVEL,s.LOG_FORMAT=process.env.LOG_FORMAT??process.env.LOG_FORMAT,s.GIT_SHA=process.env.GIT_SHA??await Mbr(o),process.env.__ZUPLO_CONFIG&&(s.__ZUPLO_CONFIG=process.env.__ZUPLO_CONFIG),Q0t(Ufe.join(o,".env.zuplo"))){let f=eyt(Ufe.join(o,".env.zuplo"),"utf8"),d=tOe.default.parse(f);for(let y of Object.keys(d))if(s[y]=d[y],y==="ZUPLO_SYSTEM_CONFIGURATIONS"){let x=Buffer.from(Boe.decode(d[y])).toString(),P=JSON.parse(x);for(let F of Object.keys(P))s[F]=P[F]}}if(Q0t(Ufe.join(o,".env"))){let f=eyt(Ufe.join(o,".env"),"utf8"),d=tOe.default.parse(f);for(let y of Object.keys(d))s[y]=d[y]}for(let f of Object.keys(s))s[f]===void 0&&delete s[f];return s}t(zfe,"setEnvironment");async function Mbr(s){let o="unknown";try{let{stdout:f}=await Z0t("git",["rev-parse","HEAD"],{cwd:s});f.trim().length===40&&(o=f.trim())}catch{}return o}t(Mbr,"getGitSha");async function zbr({buildId:s,output:o,sourceDirectory:f,bundledDir:d,port:y,binaryName:x,publicZuploEnvironmentVariables:P,logger:F,handleRuntimeStdio:W}){if(d){let be=CG.join(f,d,"modules.json");if(!jbr(be))throw new Error("The bundled-dir does not contain a modules.json file.");let de=await Ubr(be,"utf-8").then(JSON.parse),se=await $M(f);return se.status===jP?new Promise((Xe,Ue)=>{G(se.config.compatibilityDate,CG.join(f,d),de,Xe,W)().catch(je=>{F.error(je),Ue(je)})}):(F.warn("Failed to get Zuplo config. Using default compatibility date."),new Promise((Xe,Ue)=>{G(void 0,f,de,Xe,W)().catch(je=>{F.error(je),Ue(je)})}))}else{let be=new oA({buildId:s,output:o,sourceDirectory:f,command:"dev",logger:F,publicZuploEnvironmentVariables:P??{ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:void 0});try{await be.start()}catch{F.info("Ran into irrecoverable error while building. Fix the error and rerun the command."),process.exit(1)}return new Promise((de,se)=>{be.onReload((Xe,Ue)=>{(Ue||Xe?.errors&&Xe.errors.length>0)&&se(Ue??Xe?.errors),G(Xe?.config?.compatibilityDate,CG.join(f,"dist"),zM(f,Xe?.metafile),de,W)().catch(je=>{F.error(je),se(je)})})})}function G(be,de,se,Xe,Ue){return async()=>{let je={};await zfe(je,f);let Vt=new tyt.ZuploWorkerd({compatibilityDate:be,scriptDirectory:de,modules:se,port:y??wm.DEV_SERVER_PORT,bindings:je,handleRuntimeStdio:Ue}),Ut=x??"compiled-zup",Ir=CG.join(f,"dist");await Bbr(Ir,{recursive:!0}),await Vt.compileBinary({binaryPath:CG.join(f,"dist",Ut)}),await Vt.dispose(),Xe(void 0)}}t(G,"compile")}t(zbr,"compileWorkerdServer");import{existsSync as Ybr,readFileSync as Kbr}from"node:fs";import Xbr from"node:path";var _yt=B_(noe(),1);import ryt from"node:assert";import Jbr from"node:child_process";import Wbr from"node:fs";import $fe from"node:os";import qbr from"node:path";import{Readable as nyt}from"node:stream";import{fileURLToPath as ayt}from"node:url";import $br from"node:net";function kG(s,o){return new Promise(f=>{let d=new $br.Socket;d.connect(o,s),d.on("connect",()=>{d.destroy(),f(!1)}),d.on("error",()=>{d.destroy(),f(!0)})})}t(kG,"isPortAvailable");function iyt(s,o){let f=import.meta.resolve(s),d=new URL(".",f),y=new URL(o,d);if(Wbr.existsSync(y))return ayt(y)}t(iyt,"getValidExecutablePath");function Vbr(){let s=$fe.platform()==="win32"?"deno.exe":"deno",o=iyt("deno/package.json",s);if(o)return o;let f=Hbr(),d=iyt(`@deno/${f}/package.json`,s);if(d)return d;throw new Error("Failed to locate the managed-dedicated server executable.")}t(Vbr,"locateDenoExecutable");function Hbr(){let s=$fe.platform();return s==="linux"?`${s}-${syt()}-glibc`:`${s}-${syt()}`}t(Hbr,"getTarget");function syt(){let s=$fe.arch();if(s!=="arm64"&&s!=="x64")throw new Error("Unsupported architecture "+$fe.arch()+". Only x64 and aarch64 binaries are available.");return s}t(syt,"getArch");var Jfe=class{static{t(this,"ZenoServer")}serverProcess;sourceDirectory;port;debugPort;processExitPromise;logger;output;buildWatcher;onReload;handleRuntimeStdio;denoExecutablePath;unsafelyIgnoreCertificateErrors;additionalEnv;constructor(o){if(this.port=o.port??9e3,this.debugPort=o.debugPort,this.logger=o.logger,this.output=o.output,this.onReload=o.onReload,this.handleRuntimeStdio=o.handleRuntimeStdio,this.sourceDirectory=o.sourceDirectory,this.unsafelyIgnoreCertificateErrors=!!o.unsafelyIgnoreCertificateErrors,this.additionalEnv=o.additionalEnv,!o.zupTestMode){let d=`http://localhost:${o.devPortalPort??3e3}`,y=`http://localhost:${this.port}`;this.buildWatcher=new oA({sourceDirectory:o.sourceDirectory,command:"dev",logger:o.logger,publicZuploEnvironmentVariables:{...o.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},buildId:"dev",output:o.output,urls:{devPortal:{defaultUrl:d,urls:[d]},api:{defaultUrl:y,urls:[y]}}}),this.buildWatcher.watchEnvFiles()}this.denoExecutablePath=Vbr()}getServeArgs(){let o=`${qbr.dirname(ayt(import.meta.url))}/zeno.js`,f=["run","--allow-read","--allow-net","--allow-env","--allow-write",...this.unsafelyIgnoreCertificateErrors?["--unsafely-ignore-certificate-errors"]:[]];return this.debugPort&&f.push(`--inspect=127.0.0.1:${this.debugPort}`),f.push(o),f.push("--dir",this.sourceDirectory),f.push("--port",this.port.toString()),f}async getUnavailablePorts(){let o=[];return this.debugPort&&!await kG("127.0.0.1",this.debugPort)&&o.push(this.debugPort),await kG("127.0.0.1",this.port)||o.push(this.port),o}async start(){let o=await this.getUnavailablePorts();if(o.length>0)throw new Error(`The following ports are not available: ${o.join(", ")}`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}await this.startOrReload(),this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f??void 0,void 0),this.startOrReload().catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(){try{await this.dispose(),this.logger?.info("Starting managed-dedicated local server");let o=this.getServeArgs();this.serverProcess=Jbr.spawn(this.denoExecutablePath,o,{stdio:["pipe","pipe","pipe"],env:{...process.env,...this.additionalEnv,FORCE_COLOR:"1"}}),ryt(this.serverProcess.stdout instanceof nyt),ryt(this.serverProcess.stderr instanceof nyt),this.processExitPromise=this.waitForExit(),this.handleRuntimeStdio(this.serverProcess.stdout,this.serverProcess.stderr)}catch(o){this.logger?.debug(o)}}waitForExit(){return new Promise(o=>{this.serverProcess?.once("exit",o)})}dispose(){return this.serverProcess?.kill("SIGKILL"),this.processExitPromise}async stop(){await this.dispose(),await this.buildWatcher?.close()}};import iOe from"node:fs/promises";import Aj from"node:path";var g7="__ZUPLO_MTLS_CLIENT_CERT_NAMES",y7="__ZUPLO_MTLS_CLIENT_CERT_BASE_DIR",rOe="tls.crt",nOe="tls.key";function Wfe(s){return`Expected layout: ${Aj.join(s,"<certName>",rOe)} and ${Aj.join(s,"<certName>",nOe)}.`}t(Wfe,"expectedLayoutMessage");async function oyt(s){try{return(await iOe.stat(s)).isDirectory()}catch{return!1}}t(oyt,"directoryExists");async function cyt(s){try{return(await iOe.stat(s)).isFile()}catch{return!1}}t(cyt,"fileExists");async function lyt(s,o){let f=await iOe.readdir(s,{withFileTypes:!0}),d=[];for(let y of f){if(!y.isDirectory())continue;let x=await cyt(Aj.join(s,y.name,rOe)),P=await cyt(Aj.join(s,y.name,nOe));if(x&&P){d.push(y.name);continue}if(x||P){let F=x?nOe:rOe;o.child("api").warn(`Ignoring mTLS certificate directory '${Aj.join(s,y.name)}' because it is missing '${F}'. Add the missing file to load this certificate. ${Wfe(s)}`)}}return d.sort()}t(lyt,"scanCertificateDirectory");async function uyt(s){let{sourceDirectory:o,explicitDir:f,logger:d,output:y}=s;if(f){if(!await oyt(f))throw new Error(`The mTLS certificates directory '${f}' does not exist. Create it and add one subdirectory per certificate. ${Wfe(f)}`);let P;try{P=await lyt(f,y)}catch(F){throw new Error(`Failed to read the mTLS certificates directory '${f}'. Check the directory permissions.`,{cause:F})}if(P.length===0)throw new Error(`The mTLS certificates directory '${f}' does not contain any valid certificate entries. Add one subdirectory per certificate. ${Wfe(f)}`);return{baseDir:f,certNames:P}}let x=Aj.join(o,".zuplo-local","mtls");if(await oyt(x)){let P;try{P=await lyt(x,y)}catch(F){y.child("api").warn(`Failed to read the local mTLS certificates directory '${x}'. Skipping local mTLS certificate detection.`),d.debug({error:F,candidate:x},"Failed to scan mTLS certificates");return}if(P.length===0){y.child("api").warn(`Found local mTLS certificates directory '${x}' but it does not contain any valid certificate entries. ${Wfe(x)}`);return}return{baseDir:x,certNames:P}}d.debug("No local mTLS certificates directory found. Skipping local mTLS certificate detection.")}t(uyt,"resolveLocalMtlsCertificates");var fyt=B_(I8e(),1);import Gbr from"node:path";var qfe=class{static{t(this,"WorkerdServer")}sourceDirectory;port;debugPort;buildWatcher;workerd;logger;output;handleRuntimeStdio;onReload;lastBuildResult;constructor(o){if(this.sourceDirectory=o.sourceDirectory,this.port=o.port??wm.DEV_SERVER_PORT,this.debugPort=o.debugPort,this.logger=o.logger,this.output=o.output,this.handleRuntimeStdio=o.handleRuntimeStdio,this.onReload=o.onReload,!o.zupTestMode){let d=`http://localhost:${o.devPortalPort??3e3}`,y=`http://localhost:${this.port}`;this.buildWatcher=new oA({...o,logger:this.logger,publicZuploEnvironmentVariables:{...o.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:{devPortal:{defaultUrl:d,urls:[d]},api:{defaultUrl:y,urls:[y]}}}),this.buildWatcher.watchEnvFiles()}}async start(){if(!await kG("localhost",this.port))throw new Error(`Port ${this.port} is currently in use. Please use a different port.`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f??void 0,void 0),this.startOrReload(f).catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(o){try{o&&(this.lastBuildResult=o);let f=o??this.lastBuildResult;if(!f)return;let d={};await zfe(d,this.sourceDirectory),await this.workerd?.dispose(),this.workerd=new fyt.ZuploWorkerd({compatibilityDate:f.config?.compatibilityDate,scriptDirectory:Gbr.join(this.sourceDirectory,"dist"),modules:zM(this.sourceDirectory,f.metafile),port:this.port,inspectorPort:this.debugPort??void 0,bindings:d,handleRuntimeStdio:this.handleRuntimeStdio}),await this.workerd.serve()}catch(f){this.logger?.debug(f)}}async stop(){await this.buildWatcher?.close(),await this.workerd?.dispose()}};async function Zbr(s){let o=await $M(s),f=!1;return o.status===jP&&(f=o.config.projectType!=="managed-edge"||(o.config.flags?.managedDedicatedFlags?.useZeno??!1)),f||process.env.ZUPLO_DEV_RUNTIME==="zeno"}t(Zbr,"useZeno");function Qbr(s,o){let f={};for(let x of[".env.zuplo",".env"]){let P=Xbr.join(s,x);try{Ybr(P)&&Object.assign(f,_yt.default.parse(Kbr(P,"utf8")))}catch(F){o.debug({error:F,filePath:P},"Failed to read env file while checking for explicit mTLS configuration")}}let d=!!f[g7],y=!!f[y7];return{hasNames:d||!!process.env[g7],hasBaseDir:y||!!process.env[y7],fromEnvFile:d||y}}t(Qbr,"getExplicitMtlsEnvVars");async function eSr({sourceDirectory:s,mtlsCertificatesDir:o,logger:f,output:d}){let y=Qbr(s,f);if(y.hasNames||y.hasBaseDir){if(o&&y.fromEnvFile){d.child("api").warn(`Ignoring --mtls-certs: ${g7} / ${y7} are set in .env or .env.zuplo, which take precedence in the local runtime. Remove them to use --mtls-certs.`);return}if(!o){y.hasNames!==y.hasBaseDir&&d.child("api").warn(`Only one of ${g7} / ${y7} is set. Both are required to load mTLS client certificates.`),f.info(`Using explicit mTLS environment configuration (${g7} / ${y7}). Skipping local mTLS certificate detection.`);return}}let x=await uyt({sourceDirectory:s,explicitDir:o,logger:f,output:d});if(x)return d.child("api").info(`Loaded ${x.certNames.length} local mTLS client certificate(s) from ${x.baseDir}: ${x.certNames.join(", ")}. Reference by name via the mtlsCertificate option.`),{[g7]:x.certNames.join(","),[y7]:x.baseDir}}t(eSr,"getMtlsAdditionalEnv");async function tSr({sourceDirectory:s,port:o,debugPort:f,devPortalPort:d,publicZuploEnvironmentVariables:y,unsafelyIgnoreCertificateErrors:x,mtlsCertificatesDir:P,logger:F,output:W,buildId:G,onReload:be,handleRuntimeStdio:de}){process.env.ZUPLO_IS_LOCAL_DEVELOPMENT="true";let se;if(await Zbr(s)){F.debug("Starting managed-dedicated local dev server.");let Ue=await eSr({sourceDirectory:s,mtlsCertificatesDir:P,logger:F,output:W});se=new Jfe({sourceDirectory:s,port:o,debugPort:f,devPortalPort:d,logger:F,output:W,publicZuploEnvironmentVariables:y,onReload:be,handleRuntimeStdio:de,unsafelyIgnoreCertificateErrors:x,additionalEnv:Ue})}else F.debug("Starting edge local dev server."),P&&W.child("api").warn(`Local mTLS client certificates are only supported for managed-dedicated projects (projectType "managed-dedicated" in zuplo.jsonc). Ignoring '${P}'.`),se=new qfe({sourceDirectory:s,command:"dev",port:o,debugPort:f,devPortalPort:d,publicZuploEnvironmentVariables:y,logger:F,output:W,buildId:G,onReload:be,handleRuntimeStdio:de});await se.start();async function Xe(){await se.stop()}t(Xe,"handle"),process.on("SIGTERM",Xe),process.on("SIGINT",Xe)}t(tSr,"startDevServer");import*as Gfe from"node:path";var Nj=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,dyt=new Set,sOe=typeof process=="object"&&process?process:{},myt=t((s,o,f,d)=>{typeof sOe.emitWarning=="function"?sOe.emitWarning(s,o,f,d):console.error(`[${f}] ${o}: ${s}`)},"emitWarning"),Vfe=globalThis.AbortController,pyt=globalThis.AbortSignal;if(typeof Vfe>"u"){pyt=class{static{t(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(d,y){this._onabort.push(y)}},Vfe=class{static{t(this,"AbortController")}constructor(){o()}signal=new pyt;abort(d){if(!this.signal.aborted){this.signal.reason=d,this.signal.aborted=!0;for(let y of this.signal._onabort)y(d);this.signal.onabort?.(d)}}};let s=sOe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=t(()=>{s&&(s=!1,myt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))},"warnACPolyfill")}var rSr=t(s=>!dyt.has(s),"shouldWarn");var jI=t(s=>s&&s===Math.floor(s)&&s>0&&isFinite(s),"isPosInt"),hyt=t(s=>jI(s)?s<=Math.pow(2,8)?Uint8Array:s<=Math.pow(2,16)?Uint16Array:s<=Math.pow(2,32)?Uint32Array:s<=Number.MAX_SAFE_INTEGER?Ij:null:null,"getUintArray"),Ij=class extends Array{static{t(this,"ZeroArray")}constructor(o){super(o),this.fill(0)}},aOe=class s{static{t(this,"Stack")}heap;length;static#e=!1;static create(o){let f=hyt(o);if(!f)return[];s.#e=!0;let d=new s(o,f);return s.#e=!1,d}constructor(o,f){if(!s.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Hfe=class s{static{t(this,"LRUCache")}#e;#n;#t;#r;#s;#m;#c;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#f;#p;#a;#i;#o;#h;#d;#_;#y;#b;#v;#C;#k;#S;#E;#g;#A;static unsafeExposeInternals(o){return{starts:o.#C,ttls:o.#k,sizes:o.#v,keyMap:o.#p,keyList:o.#a,valList:o.#i,next:o.#o,prev:o.#h,get head(){return o.#d},get tail(){return o.#_},free:o.#y,isBackgroundFetch:t(f=>o.#x(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>o.#z(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>o.#T(f),"moveToTail"),indexes:t(f=>o.#I(f),"indexes"),rindexes:t(f=>o.#F(f),"rindexes"),isStale:t(f=>o.#D(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#f}get size(){return this.#u}get fetchMethod(){return this.#m}get memoMethod(){return this.#c}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:W,dispose:G,onInsert:be,disposeAfter:de,noDisposeOnSet:se,noUpdateTTL:Xe,maxSize:Ue=0,maxEntrySize:je=0,sizeCalculation:Vt,fetchMethod:Ut,memoMethod:Ir,noDeleteOnFetchRejection:wn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Jn,allowStaleOnFetchAbort:kr,ignoreFetchAbort:yr}=o;if(f!==0&&!jI(f))throw new TypeError("max option must be a nonnegative integer");let xs=f?hyt(f):Array;if(!xs)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ue,this.maxEntrySize=je||this.#n,this.sizeCalculation=Vt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ir!==void 0&&typeof Ir!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=Ir,Ut!==void 0&&typeof Ut!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#m=Ut,this.#E=!!Ut,this.#p=new Map,this.#a=new Array(f).fill(void 0),this.#i=new Array(f).fill(void 0),this.#o=new xs(f),this.#h=new xs(f),this.#d=0,this.#_=0,this.#y=aOe.create(f),this.#u=0,this.#f=0,typeof G=="function"&&(this.#t=G),typeof be=="function"&&(this.#r=be),typeof de=="function"?(this.#s=de,this.#b=[]):(this.#s=void 0,this.#b=void 0),this.#S=!!this.#t,this.#A=!!this.#r,this.#g=!!this.#s,this.noDisposeOnSet=!!se,this.noUpdateTTL=!!Xe,this.noDeleteOnFetchRejection=!!wn,this.allowStaleOnFetchRejection=!!Jn,this.allowStaleOnFetchAbort=!!kr,this.ignoreFetchAbort=!!yr,this.maxEntrySize!==0){if(this.#n!==0&&!jI(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!jI(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#$()}if(this.allowStale=!!W,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=jI(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!jI(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let bi="LRU_CACHE_UNBOUNDED";rSr(bi)&&(dyt.add(bi),myt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",bi,s))}}getRemainingTTL(o){return this.#p.has(o)?1/0:0}#l(){let o=new Ij(this.#e),f=new Ij(this.#e);this.#k=o,this.#C=f,this.#w=(x,P,F=Nj.now())=>{if(f[x]=P!==0?F:0,o[x]=P,P!==0&&this.ttlAutopurge){let W=setTimeout(()=>{this.#D(x)&&this.#M(this.#a[x],"expire")},P+1);W.unref&&W.unref()}},this.#O=x=>{f[x]=o[x]!==0?Nj.now():0},this.#N=(x,P)=>{if(o[P]){let F=o[P],W=f[P];if(!F||!W)return;x.ttl=F,x.start=W,x.now=d||y();let G=x.now-W;x.remainingTTL=F-G}};let d=0,y=t(()=>{let x=Nj.now();if(this.ttlResolution>0){d=x;let P=setTimeout(()=>d=0,this.ttlResolution);P.unref&&P.unref()}return x},"getNow");this.getRemainingTTL=x=>{let P=this.#p.get(x);if(P===void 0)return 0;let F=o[P],W=f[P];if(!F||!W)return 1/0;let G=(d||y())-W;return F-G},this.#D=x=>{let P=f[x],F=o[x];return!!F&&!!P&&(d||y())-P>F}}#O=t(()=>{},"#updateItemAge");#N=t(()=>{},"#statusTTL");#w=t(()=>{},"#setItemTTL");#D=t(()=>!1,"#isStale");#$(){let o=new Ij(this.#e);this.#f=0,this.#v=o,this.#P=f=>{this.#f-=o[f],o[f]=0},this.#U=(f,d,y,x)=>{if(this.#x(d))return 0;if(!jI(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!jI(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#J=(f,d,y)=>{if(o[f]=d,this.#n){let x=this.#n-o[f];for(;this.#f>x;)this.#L(!0)}this.#f+=o[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#f)}}#P=t(o=>{},"#removeItemSize");#J=t((o,f,d)=>{},"#addItemSize");#U=t((o,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#I({allowStale:o=this.allowStale}={}){if(this.#u)for(let f=this.#_;!(!this.#R(f)||((o||!this.#D(f))&&(yield f),f===this.#d));)f=this.#h[f]}*#F({allowStale:o=this.allowStale}={}){if(this.#u)for(let f=this.#d;!(!this.#R(f)||((o||!this.#D(f))&&(yield f),f===this.#_));)f=this.#o[f]}#R(o){return o!==void 0&&this.#p.get(this.#a[o])===o}*entries(){for(let o of this.#I())this.#i[o]!==void 0&&this.#a[o]!==void 0&&!this.#x(this.#i[o])&&(yield[this.#a[o],this.#i[o]])}*rentries(){for(let o of this.#F())this.#i[o]!==void 0&&this.#a[o]!==void 0&&!this.#x(this.#i[o])&&(yield[this.#a[o],this.#i[o]])}*keys(){for(let o of this.#I()){let f=this.#a[o];f!==void 0&&!this.#x(this.#i[o])&&(yield f)}}*rkeys(){for(let o of this.#F()){let f=this.#a[o];f!==void 0&&!this.#x(this.#i[o])&&(yield f)}}*values(){for(let o of this.#I())this.#i[o]!==void 0&&!this.#x(this.#i[o])&&(yield this.#i[o])}*rvalues(){for(let o of this.#F())this.#i[o]!==void 0&&!this.#x(this.#i[o])&&(yield this.#i[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,f={}){for(let d of this.#I()){let y=this.#i[d],x=this.#x(y)?y.__staleWhileFetching:y;if(x!==void 0&&o(x,this.#a[d],this))return this.get(this.#a[d],f)}}forEach(o,f=this){for(let d of this.#I()){let y=this.#i[d],x=this.#x(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#a[d],this)}}rforEach(o,f=this){for(let d of this.#F()){let y=this.#i[d],x=this.#x(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#a[d],this)}}purgeStale(){let o=!1;for(let f of this.#F({allowStale:!0}))this.#D(f)&&(this.#M(this.#a[f],"expire"),o=!0);return o}info(o){let f=this.#p.get(o);if(f===void 0)return;let d=this.#i[f],y=this.#x(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#k&&this.#C){let P=this.#k[f],F=this.#C[f];if(P&&F){let W=P-(Nj.now()-F);x.ttl=W,x.start=Date.now()}}return this.#v&&(x.size=this.#v[f]),x}dump(){let o=[];for(let f of this.#I({allowStale:!0})){let d=this.#a[f],y=this.#i[f],x=this.#x(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#k&&this.#C){P.ttl=this.#k[f];let F=Nj.now()-this.#C[f];P.start=Math.floor(Date.now()-F)}this.#v&&(P.size=this.#v[f]),o.unshift([d,P])}return o}load(o){this.clear();for(let[f,d]of o){if(d.start){let y=Date.now()-d.start;d.start=Nj.now()-y}this.set(f,d.value,d)}}set(o,f,d={}){if(f===void 0)return this.delete(o),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:W}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,be=this.#U(o,f,d.size||0,F);if(this.maxEntrySize&&be>this.maxEntrySize)return W&&(W.set="miss",W.maxEntrySizeExceeded=!0),this.#M(o,"set"),this;let de=this.#u===0?void 0:this.#p.get(o);if(de===void 0)de=this.#u===0?this.#_:this.#y.length!==0?this.#y.pop():this.#u===this.#e?this.#L(!1):this.#u,this.#a[de]=o,this.#i[de]=f,this.#p.set(o,de),this.#o[this.#_]=de,this.#h[de]=this.#_,this.#_=de,this.#u++,this.#J(de,be,W),W&&(W.set="add"),G=!1,this.#A&&this.#r?.(f,o,"add");else{this.#T(de);let se=this.#i[de];if(f!==se){if(this.#E&&this.#x(se)){se.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=se;Xe!==void 0&&!P&&(this.#S&&this.#t?.(Xe,o,"set"),this.#g&&this.#b?.push([Xe,o,"set"]))}else P||(this.#S&&this.#t?.(se,o,"set"),this.#g&&this.#b?.push([se,o,"set"]));if(this.#P(de),this.#J(de,be,W),this.#i[de]=f,W){W.set="replace";let Xe=se&&this.#x(se)?se.__staleWhileFetching:se;Xe!==void 0&&(W.oldValue=Xe)}}else W&&(W.set="update");this.#A&&this.onInsert?.(f,o,f===se?"update":"replace")}if(y!==0&&!this.#k&&this.#l(),this.#k&&(G||this.#w(de,y,x),W&&this.#N(W,de)),!P&&this.#g&&this.#b){let se=this.#b,Xe;for(;Xe=se?.shift();)this.#s?.(...Xe)}return this}pop(){try{for(;this.#u;){let o=this.#i[this.#d];if(this.#L(!0),this.#x(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#g&&this.#b){let o=this.#b,f;for(;f=o?.shift();)this.#s?.(...f)}}}#L(o){let f=this.#d,d=this.#a[f],y=this.#i[f];return this.#E&&this.#x(y)?y.__abortController.abort(new Error("evicted")):(this.#S||this.#g)&&(this.#S&&this.#t?.(y,d,"evict"),this.#g&&this.#b?.push([y,d,"evict"])),this.#P(f),o&&(this.#a[f]=void 0,this.#i[f]=void 0,this.#y.push(f)),this.#u===1?(this.#d=this.#_=0,this.#y.length=0):this.#d=this.#o[f],this.#p.delete(d),this.#u--,f}has(o,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#p.get(o);if(x!==void 0){let P=this.#i[x];if(this.#x(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#D(x))y&&(y.has="stale",this.#N(y,x));else return d&&this.#O(x),y&&(y.has="hit",this.#N(y,x)),!0}else y&&(y.has="miss");return!1}peek(o,f={}){let{allowStale:d=this.allowStale}=f,y=this.#p.get(o);if(y===void 0||!d&&this.#D(y))return;let x=this.#i[y];return this.#x(x)?x.__staleWhileFetching:x}#z(o,f,d,y){let x=f===void 0?void 0:this.#i[f];if(this.#x(x))return x;let P=new Vfe,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let W={signal:P.signal,options:d,context:y},G=t((je,Vt=!1)=>{let{aborted:Ut}=P.signal,Ir=d.ignoreFetchAbort&&je!==void 0;if(d.status&&(Ut&&!Vt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Ir&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),Ut&&!Ir&&!Vt)return de(P.signal.reason);let wn=Xe;return this.#i[f]===Xe&&(je===void 0?wn.__staleWhileFetching?this.#i[f]=wn.__staleWhileFetching:this.#M(o,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(o,je,W.options))),je},"cb"),be=t(je=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=je),de(je)),"eb"),de=t(je=>{let{aborted:Vt}=P.signal,Ut=Vt&&d.allowStaleOnFetchAbort,Ir=Ut||d.allowStaleOnFetchRejection,wn=Ir||d.noDeleteOnFetchRejection,sn=Xe;if(this.#i[f]===Xe&&(!wn||sn.__staleWhileFetching===void 0?this.#M(o,"fetch"):Ut||(this.#i[f]=sn.__staleWhileFetching)),Ir)return d.status&&sn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),sn.__staleWhileFetching;if(sn.__returned===sn)throw je},"fetchFail"),se=t((je,Vt)=>{let Ut=this.#m?.(o,x,W);Ut&&Ut instanceof Promise&&Ut.then(Ir=>je(Ir===void 0?void 0:Ir),Vt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(je(void 0),d.allowStaleOnFetchAbort&&(je=t(Ir=>G(Ir,!0),"res")))})},"pcall");d.status&&(d.status.fetchDispatched=!0);let Xe=new Promise(se).then(G,be),Ue=Object.assign(Xe,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(o,Ue,{...W.options,status:void 0}),f=this.#p.get(o)):this.#i[f]=Ue,Ue}#x(o){if(!this.#E)return!1;let f=o;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof Vfe}async fetch(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:W=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:be=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:se=this.allowStaleOnFetchRejection,ignoreFetchAbort:Xe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ue=this.allowStaleOnFetchAbort,context:je,forceRefresh:Vt=!1,status:Ut,signal:Ir}=f;if(!this.#E)return Ut&&(Ut.fetch="get"),this.get(o,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:Ut});let wn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:W,sizeCalculation:G,noUpdateTTL:be,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:se,allowStaleOnFetchAbort:Ue,ignoreFetchAbort:Xe,status:Ut,signal:Ir},sn=this.#p.get(o);if(sn===void 0){Ut&&(Ut.fetch="miss");let Jn=this.#z(o,sn,wn,je);return Jn.__returned=Jn}else{let Jn=this.#i[sn];if(this.#x(Jn)){let fc=d&&Jn.__staleWhileFetching!==void 0;return Ut&&(Ut.fetch="inflight",fc&&(Ut.returnedStale=!0)),fc?Jn.__staleWhileFetching:Jn.__returned=Jn}let kr=this.#D(sn);if(!Vt&&!kr)return Ut&&(Ut.fetch="hit"),this.#T(sn),y&&this.#O(sn),Ut&&this.#N(Ut,sn),Jn;let yr=this.#z(o,sn,wn,je),bi=yr.__staleWhileFetching!==void 0&&d;return Ut&&(Ut.fetch=kr?"stale":"refresh",bi&&kr&&(Ut.returnedStale=!0)),bi?yr.__staleWhileFetching:yr.__returned=yr}}async forceFetch(o,f={}){let d=await this.fetch(o,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(o,f={}){let d=this.#c;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(o,P);if(!x&&F!==void 0)return F;let W=d(o,F,{options:P,context:y});return this.set(o,W,P),W}get(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#p.get(o);if(F!==void 0){let W=this.#i[F],G=this.#x(W);return P&&this.#N(P,F),this.#D(F)?(P&&(P.get="stale"),G?(P&&d&&W.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?W.__staleWhileFetching:void 0):(x||this.#M(o,"expire"),P&&d&&(P.returnedStale=!0),d?W:void 0)):(P&&(P.get="hit"),G?W.__staleWhileFetching:(this.#T(F),y&&this.#O(F),W))}else P&&(P.get="miss")}#W(o,f){this.#h[f]=o,this.#o[o]=f}#T(o){o!==this.#_&&(o===this.#d?this.#d=this.#o[o]:this.#W(this.#h[o],this.#o[o]),this.#W(this.#_,o),this.#_=o)}delete(o){return this.#M(o,"delete")}#M(o,f){let d=!1;if(this.#u!==0){let y=this.#p.get(o);if(y!==void 0)if(d=!0,this.#u===1)this.#j(f);else{this.#P(y);let x=this.#i[y];if(this.#x(x)?x.__abortController.abort(new Error("deleted")):(this.#S||this.#g)&&(this.#S&&this.#t?.(x,o,f),this.#g&&this.#b?.push([x,o,f])),this.#p.delete(o),this.#a[y]=void 0,this.#i[y]=void 0,y===this.#_)this.#_=this.#h[y];else if(y===this.#d)this.#d=this.#o[y];else{let P=this.#h[y];this.#o[P]=this.#o[y];let F=this.#o[y];this.#h[F]=this.#h[y]}this.#u--,this.#y.push(y)}}if(this.#g&&this.#b?.length){let y=this.#b,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#j("delete")}#j(o){for(let f of this.#F({allowStale:!0})){let d=this.#i[f];if(this.#x(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#a[f];this.#S&&this.#t?.(d,y,o),this.#g&&this.#b?.push([d,y,o])}}if(this.#p.clear(),this.#i.fill(void 0),this.#a.fill(void 0),this.#k&&this.#C&&(this.#k.fill(0),this.#C.fill(0)),this.#v&&this.#v.fill(0),this.#d=0,this.#_=0,this.#y.length=0,this.#f=0,this.#u=0,this.#g&&this.#b){let f=this.#b,d;for(;d=f?.shift();)this.#s?.(...d)}}};import{SourceMapConsumer as nSr}from"source-map";var oOe=new Hfe({max:100,ttl:1e3*60*5,dispose:t(s=>{s&&s.destroy()},"dispose")});function iSr(s){let o=s.split(`
669
669
  `),f=[],d="",y=/^\s*at\s+(?:(.+?)\s+\()?(.+?):(\d+):(\d+)\)?$/;for(let x=0;x<o.length&&!(x>10);x++){let P=o[x],F=y.exec(P);F?f.push({functionName:F[1]||"<anonymous>",fileName:F[2],lineNumber:parseInt(F[3],10),columnNumber:parseInt(F[4],10),source:P}):x===0&&(d=P)}return{errorMessage:d,frames:f}}t(iSr,"parseStackTrace");async function gyt(s,o){try{return await o(s)}catch{return null}}t(gyt,"loadSourceMap");async function sSr(s,o){let f=`${s}.map`,d=await gyt(f,o);if(d)return d;try{let y=await o(s),P=/\/\/[#@]\s*sourceMappingURL=(.+?)$/m.exec(y);if(P){let F=P[1].trim();if(F.startsWith("data:")){let be=/^data:application\/json;(?:charset=utf-8;)?base64,(.+)$/.exec(F);if(be)return Buffer.from(be[1],"base64").toString("utf-8")}let W=Gfe.resolve(Gfe.dirname(s),F);if(d=await gyt(W,o),d)return d}}catch{}return null}t(sSr,"findSourceMap");async function cOe(s,o){let{errorMessage:f,frames:d}=iSr(s),y=[];for(let x of d){if(!x.fileName||!x.lineNumber||!x.columnNumber){y.push(x);continue}if(x.fileName.startsWith("http://")||x.fileName.startsWith("https://")){y.push(x);continue}let P=x.fileName.replace(/^file:\/\//,"");if(!oOe.has(P)){let W=await sSr(P,o);if(W)try{let G=await new nSr(JSON.parse(W));oOe.set(P,G)}catch{}}let F=oOe.get(P);if(F)try{let W=F.originalPositionFor({line:x.lineNumber,column:x.columnNumber-1});if(W.source){let G=W.source.startsWith("../")?W.source.replace(/^\.\.\/+/,""):W.source;G.includes("@zuplo/")&&(G=G.replace(/@zuplo\/([^/]+)\/out\/(?:esm|cjs)\/@zuplo\/\1\//,"@zuplo/$1/"),G=G.replace(/@zuplo\/([^/]+)\/dist\/@zuplo\/\1\//,"@zuplo/$1/")),G.includes("/app/packages/")&&G.includes("/src/")&&(G=G.replace(/.*\/app\/packages\/([^/]+)\/src\//,"@zuplo/$1/")),G.includes("node_modules/")&&(G=G.replace(/.*node_modules\//,""));let be=W.name??void 0;if(!be&&x.functionName&&x.functionName.length<=2){let se=[];for(let Ue=1;Ue<=30;Ue++){let je=F.originalPositionFor({line:x.lineNumber,column:Math.max(0,x.columnNumber-1-Ue)});je.name&&se.push({name:je.name,distance:Ue})}let Xe=se.find(Ue=>Ue.name.includes("default")||Ue.name.includes("Default"))||se.find(Ue=>Ue.name.includes("_"))||se.find(Ue=>/^[a-z][A-Za-z0-9]*$/.test(Ue.name)&&Ue.name.length>5)||se[0];Xe&&(be=Xe.name)}be=be??x.functionName;let de={...x,originalFileName:G,originalLineNumber:W.line??void 0,originalColumnNumber:W.column!=null?W.column+1:void 0,originalFunctionName:be};if(W.line){let se=F.sourceContentFor(W.source,!0);if(se){let Xe=se.split(`
@@ -685,7 +685,7 @@ ${d.message}`:je,Ir=[Ut,o,s].filter(Boolean).join(`
685
685
  </html>`}async toANSI(s){return`
686
686
  ${await s.children()}
687
687
  `}};var lOe,byt,Syt,Tyt,xyt=!0;typeof process<"u"&&({FORCE_COLOR:lOe,NODE_DISABLE_COLORS:byt,NO_COLOR:Syt,TERM:Tyt}=process.env||{},xyt=process.stdout&&process.stdout.isTTY);var t_={enabled:!byt&&Syt==null&&Tyt!=="dumb"&&(lOe!=null&&lOe!=="0"||xyt),reset:np(0,0),bold:np(1,22),dim:np(2,22),italic:np(3,23),underline:np(4,24),inverse:np(7,27),hidden:np(8,28),strikethrough:np(9,29),black:np(30,39),red:np(31,39),green:np(32,39),yellow:np(33,39),blue:np(34,39),magenta:np(35,39),cyan:np(36,39),white:np(37,39),gray:np(90,39),grey:np(90,39),bgBlack:np(40,49),bgRed:np(41,49),bgGreen:np(42,49),bgYellow:np(43,49),bgBlue:np(44,49),bgMagenta:np(45,49),bgCyan:np(46,49),bgWhite:np(47,49)};function vyt(s,o){let f=0,d,y="",x="";for(;f<s.length;f++)d=s[f],y+=d.open,x+=d.close,~o.indexOf(d.close)&&(o=o.replace(d.rgx,d.close+d.open));return y+o+x}t(vyt,"run");function oSr(s,o){let f={has:s,keys:o};return f.reset=t_.reset.bind(f),f.bold=t_.bold.bind(f),f.dim=t_.dim.bind(f),f.italic=t_.italic.bind(f),f.underline=t_.underline.bind(f),f.inverse=t_.inverse.bind(f),f.hidden=t_.hidden.bind(f),f.strikethrough=t_.strikethrough.bind(f),f.black=t_.black.bind(f),f.red=t_.red.bind(f),f.green=t_.green.bind(f),f.yellow=t_.yellow.bind(f),f.blue=t_.blue.bind(f),f.magenta=t_.magenta.bind(f),f.cyan=t_.cyan.bind(f),f.white=t_.white.bind(f),f.gray=t_.gray.bind(f),f.grey=t_.grey.bind(f),f.bgBlack=t_.bgBlack.bind(f),f.bgRed=t_.bgRed.bind(f),f.bgGreen=t_.bgGreen.bind(f),f.bgYellow=t_.bgYellow.bind(f),f.bgBlue=t_.bgBlue.bind(f),f.bgMagenta=t_.bgMagenta.bind(f),f.bgCyan=t_.bgCyan.bind(f),f.bgWhite=t_.bgWhite.bind(f),f}t(oSr,"chain");function np(s,o){let f={open:`\x1B[${s}m`,close:`\x1B[${o}m`,rgx:new RegExp(`\\x1b\\[${o}m`,"g")};return function(d){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(s)||(this.has.push(s),this.keys.push(f)),d===void 0?this:t_.enabled?vyt(this.keys,d+""):d+""):d===void 0?oSr([s],[f]):t_.enabled?vyt([f],d+""):d+""}}t(np,"init");var Kfe=t_;var uOe=class{static{t(this,"Colors")}black(s){return this.transform("black",s)}red(s){return this.transform("red",s)}green(s){return this.transform("green",s)}yellow(s){return this.transform("yellow",s)}blue(s){return this.transform("blue",s)}magenta(s){return this.transform("magenta",s)}cyan(s){return this.transform("cyan",s)}white(s){return this.transform("white",s)}gray(s){return this.transform("gray",s)}grey(s){return this.transform("grey",s)}bgBlack(s){return this.transform("bgBlack",s)}bgRed(s){return this.transform("bgRed",s)}bgGreen(s){return this.transform("bgGreen",s)}bgYellow(s){return this.transform("bgYellow",s)}bgBlue(s){return this.transform("bgBlue",s)}bgMagenta(s){return this.transform("bgMagenta",s)}bgCyan(s){return this.transform("bgCyan",s)}bgWhite(s){return this.transform("bgWhite",s)}reset(s){return this.transform("reset",s)}bold(s){return this.transform("bold",s)}dim(s){return this.transform("dim",s)}italic(s){return this.transform("italic",s)}underline(s){return this.transform("underline",s)}inverse(s){return this.transform("inverse",s)}hidden(s){return this.transform("hidden",s)}strikethrough(s){return this.transform("strikethrough",s)}},cSr=class extends uOe{static{t(this,"Raw")}#e=[];#n(s,o){return o(),s}transform(s,o){if(this.#e.push(s),o!==void 0){let f=this.#e.concat([o]).join("("),d=new Array(this.#e.length+1).join(")");return this.#n(`${f}${d}`,()=>{this.#e=[]})}return this}},lSr=class extends uOe{static{t(this,"Kleur")}#e;constructor(){super(),Kfe.enabled=!0}#n(s,o){return o(),s}transform(s,o){return o!==void 0?this.#e?this.#n(this.#e[s](o),()=>{this.#e=void 0}):Kfe[s](o):(this.#e?this.#e=this.#e[s]():this.#e=Kfe[s](),this)}},uSr=class extends uOe{static{t(this,"Silent")}transform(s,o){return o!==void 0?String(o):this}},fSr={ansi(){return new lSr},silent(){return new uSr},raw(){return new cSr}},wG=fSr;var _Sr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function DG(s){return s.replace(/&/g,"&amp;").replace(/\\"/g,"&bsol;&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}t(DG,"htmlEscape");function fOe(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`;if(!f)return o.escape?o.escape(s):DG(s);let x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let P=new RegExp(x,"g");return(s.match(P)||[]).map(function(G){return G.slice(-1)===`
688
- `&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):DG(G)}).join(y)}t(fOe,"wordWrap");function Eyt(s){return s.replace(_Sr,"")}t(Eyt,"stripAnsi");var w0=wG.ansi();var kyt=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function pSr(s){return kyt.includes(s)}t(pSr,"isTypedArrayName");var wyt=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...kyt];function dSr(s){return wyt.includes(s)}t(dSr,"isObjectTypeName");var Dyt=["null","undefined","string","number","bigint","boolean","symbol"];function mSr(s){return Dyt.includes(s)}t(mSr,"isPrimitiveTypeName");var Rjr=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...wyt,...Dyt],of=t(s=>{let o=Object.prototype.toString.call(s).slice(8,-1);if(/HTML\w+Element/.test(o)&&Lyt(s))return"HTMLElement";if(dSr(o))return o},"getObjectType");function Cyt(s){if(s===null)return"null";switch(typeof s){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(s)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(pOe(s))return"Observable";if(BI(s))return"Array";if(Iyt(s))return"Buffer";let o=of(s);if(o)return o;if(s instanceof String||s instanceof Boolean||s instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}t(Cyt,"detect");function hSr(s){return Oy(s?.then)&&Oy(s?.catch)}t(hSr,"hasPromiseApi");var gSr=Object.assign(Cyt,{all:ySr,any:Ayt,array:BI,arrayBuffer:vSr,arrayLike:bSr,asyncFunction:SSr,asyncGenerator:TSr,asyncGeneratorFunction:xSr,asyncIterable:Nyt,bigint:ESr,bigInt64Array:CSr,bigUint64Array:kSr,blob:wSr,boolean:DSr,boundFunction:PSr,buffer:Iyt,class:ASr,dataView:NSr,date:Oyt,detect:Cyt,directInstanceOf:ISr,emptyArray:OSr,emptyMap:FSr,emptyObject:LSr,emptySet:RSr,emptyString:Fyt,emptyStringOrWhitespace:_Oe,enumCase:MSr,error:jSr,evenInteger:BSr,falsy:USr,float32Array:zSr,float64Array:$Sr,formData:JSr,function:Oy,generator:WSr,generatorFunction:qSr,htmlElement:Lyt,infinite:GSr,inRange:YSr,int16Array:KSr,int32Array:XSr,int8Array:ZSr,integer:Ryt,iterable:Myt,map:PG,nan:jyt,nativePromise:Byt,negativeNumber:QSr,nodeStream:e2r,nonEmptyArray:t2r,nonEmptyMap:r2r,nonEmptyObject:n2r,nonEmptySet:i2r,nonEmptyString:s2r,nonEmptyStringAndNotWhitespace:a2r,null:Xfe,nullOrUndefined:Uyt,number:AG,numericString:o2r,object:NG,observable:pOe,oddInteger:c2r,plainObject:zyt,positiveNumber:l2r,primitive:u2r,promise:f2r,propertyKey:_2r,regExp:p2r,safeInteger:$yt,set:IG,sharedArrayBuffer:d2r,string:fA,symbol:Jyt,truthy:m2r,tupleLike:h2r,typedArray:g2r,uint16Array:y2r,uint32Array:v2r,uint8Array:b2r,uint8ClampedArray:S2r,undefined:Wyt,urlInstance:T2r,urlSearchParams:x2r,urlString:E2r,validDate:C2r,validLength:qyt,weakMap:k2r,weakRef:w2r,weakSet:D2r,whitespaceString:Vyt});function Pyt(s){return o=>Ryt(o)&&Math.abs(o%2)===s}t(Pyt,"isAbsoluteModule2");function ySr(s,...o){return Hyt(Array.prototype.every,s,o)}t(ySr,"isAll");function Ayt(s,...o){return(BI(s)?s:[s]).some(d=>Hyt(Array.prototype.some,d,o))}t(Ayt,"isAny");function BI(s,o){return Array.isArray(s)?Oy(o)?s.every(f=>o(f)):!0:!1}t(BI,"isArray");function vSr(s){return of(s)==="ArrayBuffer"}t(vSr,"isArrayBuffer");function bSr(s){return!Uyt(s)&&!Oy(s)&&qyt(s.length)}t(bSr,"isArrayLike");function SSr(s){return of(s)==="AsyncFunction"}t(SSr,"isAsyncFunction");function TSr(s){return Nyt(s)&&Oy(s.next)&&Oy(s.throw)}t(TSr,"isAsyncGenerator");function xSr(s){return of(s)==="AsyncGeneratorFunction"}t(xSr,"isAsyncGeneratorFunction");function Nyt(s){return Oy(s?.[Symbol.asyncIterator])}t(Nyt,"isAsyncIterable");function ESr(s){return typeof s=="bigint"}t(ESr,"isBigint");function CSr(s){return of(s)==="BigInt64Array"}t(CSr,"isBigInt64Array");function kSr(s){return of(s)==="BigUint64Array"}t(kSr,"isBigUint64Array");function wSr(s){return of(s)==="Blob"}t(wSr,"isBlob");function DSr(s){return s===!0||s===!1}t(DSr,"isBoolean");function PSr(s){return Oy(s)&&!Object.hasOwn(s,"prototype")}t(PSr,"isBoundFunction");function Iyt(s){return s?.constructor?.isBuffer?.(s)??!1}t(Iyt,"isBuffer");function ASr(s){return Oy(s)&&s.toString().startsWith("class ")}t(ASr,"isClass");function NSr(s){return of(s)==="DataView"}t(NSr,"isDataView");function Oyt(s){return of(s)==="Date"}t(Oyt,"isDate");function ISr(s,o){return s==null?!1:Object.getPrototypeOf(s)===o.prototype}t(ISr,"isDirectInstanceOf");function OSr(s){return BI(s)&&s.length===0}t(OSr,"isEmptyArray");function FSr(s){return PG(s)&&s.size===0}t(FSr,"isEmptyMap");function LSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length===0}t(LSr,"isEmptyObject");function RSr(s){return IG(s)&&s.size===0}t(RSr,"isEmptySet");function Fyt(s){return fA(s)&&s.length===0}t(Fyt,"isEmptyString");function _Oe(s){return Fyt(s)||Vyt(s)}t(_Oe,"isEmptyStringOrWhitespace");function MSr(s,o){return Object.values(o).includes(s)}t(MSr,"isEnumCase");function jSr(s){return of(s)==="Error"}t(jSr,"isError");function BSr(s){return Pyt(0)(s)}t(BSr,"isEvenInteger");function USr(s){return!s}t(USr,"isFalsy");function zSr(s){return of(s)==="Float32Array"}t(zSr,"isFloat32Array");function $Sr(s){return of(s)==="Float64Array"}t($Sr,"isFloat64Array");function JSr(s){return of(s)==="FormData"}t(JSr,"isFormData");function Oy(s){return typeof s=="function"}t(Oy,"isFunction");function WSr(s){return Myt(s)&&Oy(s?.next)&&Oy(s?.throw)}t(WSr,"isGenerator");function qSr(s){return of(s)==="GeneratorFunction"}t(qSr,"isGeneratorFunction");var VSr=1,HSr=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Lyt(s){return NG(s)&&s.nodeType===VSr&&fA(s.nodeName)&&!zyt(s)&&HSr.every(o=>o in s)}t(Lyt,"isHtmlElement");function GSr(s){return s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY}t(GSr,"isInfinite");function YSr(s,o){if(AG(o))return s>=Math.min(0,o)&&s<=Math.max(o,0);if(BI(o)&&o.length===2)return s>=Math.min(...o)&&s<=Math.max(...o);throw new TypeError(`Invalid range: ${JSON.stringify(o)}`)}t(YSr,"isInRange");function KSr(s){return of(s)==="Int16Array"}t(KSr,"isInt16Array");function XSr(s){return of(s)==="Int32Array"}t(XSr,"isInt32Array");function ZSr(s){return of(s)==="Int8Array"}t(ZSr,"isInt8Array");function Ryt(s){return Number.isInteger(s)}t(Ryt,"isInteger");function Myt(s){return Oy(s?.[Symbol.iterator])}t(Myt,"isIterable");function PG(s){return of(s)==="Map"}t(PG,"isMap");function jyt(s){return Number.isNaN(s)}t(jyt,"isNan");function Byt(s){return of(s)==="Promise"}t(Byt,"isNativePromise");function QSr(s){return AG(s)&&s<0}t(QSr,"isNegativeNumber");function e2r(s){return NG(s)&&Oy(s.pipe)&&!pOe(s)}t(e2r,"isNodeStream");function t2r(s){return BI(s)&&s.length>0}t(t2r,"isNonEmptyArray");function r2r(s){return PG(s)&&s.size>0}t(r2r,"isNonEmptyMap");function n2r(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length>0}t(n2r,"isNonEmptyObject");function i2r(s){return IG(s)&&s.size>0}t(i2r,"isNonEmptySet");function s2r(s){return fA(s)&&s.length>0}t(s2r,"isNonEmptyString");function a2r(s){return fA(s)&&!_Oe(s)}t(a2r,"isNonEmptyStringAndNotWhitespace");function Xfe(s){return s===null}t(Xfe,"isNull");function Uyt(s){return Xfe(s)||Wyt(s)}t(Uyt,"isNullOrUndefined");function AG(s){return typeof s=="number"&&!Number.isNaN(s)}t(AG,"isNumber");function o2r(s){return fA(s)&&!_Oe(s)&&!Number.isNaN(Number(s))}t(o2r,"isNumericString");function NG(s){return!Xfe(s)&&(typeof s=="object"||Oy(s))}t(NG,"isObject");function pOe(s){return s?Symbol.observable!==void 0&&s===s[Symbol.observable]?.()||s===s["@@observable"]?.():!1}t(pOe,"isObservable");function c2r(s){return Pyt(1)(s)}t(c2r,"isOddInteger");function zyt(s){if(typeof s!="object"||s===null)return!1;let o=Object.getPrototypeOf(s);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}t(zyt,"isPlainObject");function l2r(s){return AG(s)&&s>0}t(l2r,"isPositiveNumber");function u2r(s){return Xfe(s)||mSr(typeof s)}t(u2r,"isPrimitive");function f2r(s){return Byt(s)||hSr(s)}t(f2r,"isPromise");function _2r(s){return Ayt([fA,AG,Jyt],s)}t(_2r,"isPropertyKey");function p2r(s){return of(s)==="RegExp"}t(p2r,"isRegExp");function $yt(s){return Number.isSafeInteger(s)}t($yt,"isSafeInteger");function IG(s){return of(s)==="Set"}t(IG,"isSet");function d2r(s){return of(s)==="SharedArrayBuffer"}t(d2r,"isSharedArrayBuffer");function fA(s){return typeof s=="string"}t(fA,"isString");function Jyt(s){return typeof s=="symbol"}t(Jyt,"isSymbol");function m2r(s){return!!s}t(m2r,"isTruthy");function h2r(s,o){return BI(o)&&BI(s)&&o.length===s.length?o.every((f,d)=>f(s[d])):!1}t(h2r,"isTupleLike");function g2r(s){return pSr(of(s))}t(g2r,"isTypedArray");function y2r(s){return of(s)==="Uint16Array"}t(y2r,"isUint16Array");function v2r(s){return of(s)==="Uint32Array"}t(v2r,"isUint32Array");function b2r(s){return of(s)==="Uint8Array"}t(b2r,"isUint8Array");function S2r(s){return of(s)==="Uint8ClampedArray"}t(S2r,"isUint8ClampedArray");function Wyt(s){return s===void 0}t(Wyt,"isUndefined");function T2r(s){return of(s)==="URL"}t(T2r,"isUrlInstance");function x2r(s){return of(s)==="URLSearchParams"}t(x2r,"isUrlSearchParams");function E2r(s){if(!fA(s))return!1;try{return new URL(s),!0}catch{return!1}}t(E2r,"isUrlString");function C2r(s){return Oyt(s)&&!jyt(Number(s))}t(C2r,"isValidDate");function qyt(s){return $yt(s)&&s>=0}t(qyt,"isValidLength");function k2r(s){return of(s)==="WeakMap"}t(k2r,"isWeakMap");function w2r(s){return of(s)==="WeakRef"}t(w2r,"isWeakRef");function D2r(s){return of(s)==="WeakSet"}t(D2r,"isWeakSet");function Vyt(s){return fA(s)&&/^\s+$/.test(s)}t(Vyt,"isWhitespaceString");function Hyt(s,o,f){if(!Oy(o))throw new TypeError(`Invalid predicate: ${JSON.stringify(o)}`);if(f.length===0)throw new TypeError("Invalid number of values");return s.call(f,o)}t(Hyt,"predicateOnArray");var Mjr=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),jjr=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var P2r={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function A2r(s){return Object.keys(s)}t(A2r,"keysOf");var Bjr=A2r(P2r);var Oj=gSr;import{inspect as dOe}from"util";var N2r=Object.defineProperty,I2r=t((s,o)=>{for(var f in o)N2r(s,f,{get:o[f],enumerable:!0})},"__export"),O2r={};I2r(O2r,{htmlEscape:t(()=>UI,"htmlEscape"),tokenizeArray:t(()=>PT,"tokenizeArray"),tokenizeObject:t(()=>v7,"tokenizeObject"),tokenizePrototype:t(()=>Qfe,"tokenizePrototype"),wordWrap:t(()=>OG,"wordWrap")});var Yyt=Object.prototype,Kyt=Array.prototype,Gyt=Reflect.ownKeys(Yyt),F2r=Reflect.ownKeys(Kyt);function v7(s,o,f){if(o.context.objectsSeen=o.context.objectsSeen??new Set,o.context.depth=o.context.depth??0,o.context.objectsSeen.has(s)){o.collect({type:"object-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"object-max-depth-ref"});return}let d=f.showHidden,y=f.constructorName??Object.getPrototypeOf(s)?.constructor.name??null;if(f.collapse.includes(y)){o.collect({type:"collapse",name:y,token:{type:"object-start",constructorName:y}});return}let x=Reflect.ownKeys(s),P=f.eagerGetters??[];o.context.depth++,o.context.objectsSeen.add(s);let F=[];if(f.membersToIgnore){let W=new Set([...x]);f.membersToIgnore.forEach(G=>W.delete(G)),F=Array.from(W)}else F=x;o.collect({type:"object-start",constructorName:y});for(let W of F){let G=Object.getOwnPropertyDescriptor(s,W);if(!G||!G.enumerable&&!d)continue;let be=typeof W=="symbol",de=!!G.set||!!G.writable;if(o.collect({type:"object-key",isSymbol:be,isWritable:de,value:String(W)}),"get"in G&&!P.includes(W)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[W]),o.collect({type:"object-value-end"})}f.inspectObjectPrototype===!0?Qfe(s,o,{membersToIgnore:Gyt}):f.inspectObjectPrototype==="unless-plain-object"&&!Oj.plainObject(s)&&Qfe(s,o,{membersToIgnore:Gyt,prototypeToIgnore:Yyt}),o.collect({type:"object-end"}),o.context.depth--,o.context.objectsSeen.delete(s)}t(v7,"tokenizeObject");function Qfe(s,o,f){let d=[];for(let x=Object.getPrototypeOf(s);x&&(!f.prototypeToIgnore||x!==f.prototypeToIgnore);x=Object.getPrototypeOf(x)){let P=Reflect.ownKeys(x);if(f.membersToIgnore){let F=new Set([...P]);f.membersToIgnore.forEach(W=>F.delete(W)),P=Array.from(F)}d.push({proto:x,keys:P})}if(!d.length)return;let y=f.eagerGetters??[];o.collect({type:"prototype-start"});for(let x of d)for(let P of x.keys){if(P==="constructor")continue;let F=Object.getOwnPropertyDescriptor(x.proto,P);if(!F)continue;let W=typeof P=="symbol",G=!!F.set||!!F.writable;if(o.collect({type:"object-key",isSymbol:W,isWritable:G,value:String(P)}),"get"in F&&!y.includes(P)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[P]),o.collect({type:"object-value-end"})}o.collect({type:"prototype-end"})}t(Qfe,"tokenizePrototype");function PT(s,o,f){if(o.context.arraysSeen=o.context.arraysSeen??new Set,o.context.depth=o.context.depth??0,o.context.arraysSeen.has(s)){o.collect({type:"array-circular-ref"});return}if(o.context.depth>=f.depth){o.collect({type:"array-max-depth-ref"});return}let d=f.maxArrayLength,y=s.length,x=f.name||s.constructor.name;if(f.collapse.includes(x)){o.collect({type:"collapse",name:x,token:{type:"array-start",name:x,size:y}});return}o.context.depth++,o.context.arraysSeen.add(s),o.collect({type:"array-start",name:x,size:y});for(let P=0;P<y;P++){if(P>=d){o.collect({type:"array-max-length-ref",limit:d,size:y});break}let F=s[P];Object.hasOwn(s,P)?(o.collect({type:"array-value-start",index:P}),o.parse(F),o.collect({type:"array-value-end",index:P})):o.collect({type:"array-value-hole",index:P})}f.inspectArrayPrototype&&Qfe(s,o,{membersToIgnore:F2r,prototypeToIgnore:Kyt}),o.collect({type:"array-end",size:y}),o.context.depth--,o.context.arraysSeen.delete(s)}t(PT,"tokenizeArray");function UI(s){return s.replace(/&/g,"&amp;").replace(/\\"/g,"&bsol;&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}t(UI,"htmlEscape");function OG(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`,x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let P=new RegExp(x,"g");return(s.match(P)||[]).map(function(G){return G.slice(-1)===`
688
+ `&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):DG(G)}).join(y)}t(fOe,"wordWrap");function Eyt(s){return s.replace(_Sr,"")}t(Eyt,"stripAnsi");var w0=wG.ansi();var kyt=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function pSr(s){return kyt.includes(s)}t(pSr,"isTypedArrayName");var wyt=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...kyt];function dSr(s){return wyt.includes(s)}t(dSr,"isObjectTypeName");var Dyt=["null","undefined","string","number","bigint","boolean","symbol"];function mSr(s){return Dyt.includes(s)}t(mSr,"isPrimitiveTypeName");var Mjr=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...wyt,...Dyt],of=t(s=>{let o=Object.prototype.toString.call(s).slice(8,-1);if(/HTML\w+Element/.test(o)&&Lyt(s))return"HTMLElement";if(dSr(o))return o},"getObjectType");function Cyt(s){if(s===null)return"null";switch(typeof s){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(s)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(pOe(s))return"Observable";if(BI(s))return"Array";if(Iyt(s))return"Buffer";let o=of(s);if(o)return o;if(s instanceof String||s instanceof Boolean||s instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}t(Cyt,"detect");function hSr(s){return Oy(s?.then)&&Oy(s?.catch)}t(hSr,"hasPromiseApi");var gSr=Object.assign(Cyt,{all:ySr,any:Ayt,array:BI,arrayBuffer:vSr,arrayLike:bSr,asyncFunction:SSr,asyncGenerator:TSr,asyncGeneratorFunction:xSr,asyncIterable:Nyt,bigint:ESr,bigInt64Array:CSr,bigUint64Array:kSr,blob:wSr,boolean:DSr,boundFunction:PSr,buffer:Iyt,class:ASr,dataView:NSr,date:Oyt,detect:Cyt,directInstanceOf:ISr,emptyArray:OSr,emptyMap:FSr,emptyObject:LSr,emptySet:RSr,emptyString:Fyt,emptyStringOrWhitespace:_Oe,enumCase:MSr,error:jSr,evenInteger:BSr,falsy:USr,float32Array:zSr,float64Array:$Sr,formData:JSr,function:Oy,generator:WSr,generatorFunction:qSr,htmlElement:Lyt,infinite:GSr,inRange:YSr,int16Array:KSr,int32Array:XSr,int8Array:ZSr,integer:Ryt,iterable:Myt,map:PG,nan:jyt,nativePromise:Byt,negativeNumber:QSr,nodeStream:e2r,nonEmptyArray:t2r,nonEmptyMap:r2r,nonEmptyObject:n2r,nonEmptySet:i2r,nonEmptyString:s2r,nonEmptyStringAndNotWhitespace:a2r,null:Xfe,nullOrUndefined:Uyt,number:AG,numericString:o2r,object:NG,observable:pOe,oddInteger:c2r,plainObject:zyt,positiveNumber:l2r,primitive:u2r,promise:f2r,propertyKey:_2r,regExp:p2r,safeInteger:$yt,set:IG,sharedArrayBuffer:d2r,string:fA,symbol:Jyt,truthy:m2r,tupleLike:h2r,typedArray:g2r,uint16Array:y2r,uint32Array:v2r,uint8Array:b2r,uint8ClampedArray:S2r,undefined:Wyt,urlInstance:T2r,urlSearchParams:x2r,urlString:E2r,validDate:C2r,validLength:qyt,weakMap:k2r,weakRef:w2r,weakSet:D2r,whitespaceString:Vyt});function Pyt(s){return o=>Ryt(o)&&Math.abs(o%2)===s}t(Pyt,"isAbsoluteModule2");function ySr(s,...o){return Hyt(Array.prototype.every,s,o)}t(ySr,"isAll");function Ayt(s,...o){return(BI(s)?s:[s]).some(d=>Hyt(Array.prototype.some,d,o))}t(Ayt,"isAny");function BI(s,o){return Array.isArray(s)?Oy(o)?s.every(f=>o(f)):!0:!1}t(BI,"isArray");function vSr(s){return of(s)==="ArrayBuffer"}t(vSr,"isArrayBuffer");function bSr(s){return!Uyt(s)&&!Oy(s)&&qyt(s.length)}t(bSr,"isArrayLike");function SSr(s){return of(s)==="AsyncFunction"}t(SSr,"isAsyncFunction");function TSr(s){return Nyt(s)&&Oy(s.next)&&Oy(s.throw)}t(TSr,"isAsyncGenerator");function xSr(s){return of(s)==="AsyncGeneratorFunction"}t(xSr,"isAsyncGeneratorFunction");function Nyt(s){return Oy(s?.[Symbol.asyncIterator])}t(Nyt,"isAsyncIterable");function ESr(s){return typeof s=="bigint"}t(ESr,"isBigint");function CSr(s){return of(s)==="BigInt64Array"}t(CSr,"isBigInt64Array");function kSr(s){return of(s)==="BigUint64Array"}t(kSr,"isBigUint64Array");function wSr(s){return of(s)==="Blob"}t(wSr,"isBlob");function DSr(s){return s===!0||s===!1}t(DSr,"isBoolean");function PSr(s){return Oy(s)&&!Object.hasOwn(s,"prototype")}t(PSr,"isBoundFunction");function Iyt(s){return s?.constructor?.isBuffer?.(s)??!1}t(Iyt,"isBuffer");function ASr(s){return Oy(s)&&s.toString().startsWith("class ")}t(ASr,"isClass");function NSr(s){return of(s)==="DataView"}t(NSr,"isDataView");function Oyt(s){return of(s)==="Date"}t(Oyt,"isDate");function ISr(s,o){return s==null?!1:Object.getPrototypeOf(s)===o.prototype}t(ISr,"isDirectInstanceOf");function OSr(s){return BI(s)&&s.length===0}t(OSr,"isEmptyArray");function FSr(s){return PG(s)&&s.size===0}t(FSr,"isEmptyMap");function LSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length===0}t(LSr,"isEmptyObject");function RSr(s){return IG(s)&&s.size===0}t(RSr,"isEmptySet");function Fyt(s){return fA(s)&&s.length===0}t(Fyt,"isEmptyString");function _Oe(s){return Fyt(s)||Vyt(s)}t(_Oe,"isEmptyStringOrWhitespace");function MSr(s,o){return Object.values(o).includes(s)}t(MSr,"isEnumCase");function jSr(s){return of(s)==="Error"}t(jSr,"isError");function BSr(s){return Pyt(0)(s)}t(BSr,"isEvenInteger");function USr(s){return!s}t(USr,"isFalsy");function zSr(s){return of(s)==="Float32Array"}t(zSr,"isFloat32Array");function $Sr(s){return of(s)==="Float64Array"}t($Sr,"isFloat64Array");function JSr(s){return of(s)==="FormData"}t(JSr,"isFormData");function Oy(s){return typeof s=="function"}t(Oy,"isFunction");function WSr(s){return Myt(s)&&Oy(s?.next)&&Oy(s?.throw)}t(WSr,"isGenerator");function qSr(s){return of(s)==="GeneratorFunction"}t(qSr,"isGeneratorFunction");var VSr=1,HSr=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Lyt(s){return NG(s)&&s.nodeType===VSr&&fA(s.nodeName)&&!zyt(s)&&HSr.every(o=>o in s)}t(Lyt,"isHtmlElement");function GSr(s){return s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY}t(GSr,"isInfinite");function YSr(s,o){if(AG(o))return s>=Math.min(0,o)&&s<=Math.max(o,0);if(BI(o)&&o.length===2)return s>=Math.min(...o)&&s<=Math.max(...o);throw new TypeError(`Invalid range: ${JSON.stringify(o)}`)}t(YSr,"isInRange");function KSr(s){return of(s)==="Int16Array"}t(KSr,"isInt16Array");function XSr(s){return of(s)==="Int32Array"}t(XSr,"isInt32Array");function ZSr(s){return of(s)==="Int8Array"}t(ZSr,"isInt8Array");function Ryt(s){return Number.isInteger(s)}t(Ryt,"isInteger");function Myt(s){return Oy(s?.[Symbol.iterator])}t(Myt,"isIterable");function PG(s){return of(s)==="Map"}t(PG,"isMap");function jyt(s){return Number.isNaN(s)}t(jyt,"isNan");function Byt(s){return of(s)==="Promise"}t(Byt,"isNativePromise");function QSr(s){return AG(s)&&s<0}t(QSr,"isNegativeNumber");function e2r(s){return NG(s)&&Oy(s.pipe)&&!pOe(s)}t(e2r,"isNodeStream");function t2r(s){return BI(s)&&s.length>0}t(t2r,"isNonEmptyArray");function r2r(s){return PG(s)&&s.size>0}t(r2r,"isNonEmptyMap");function n2r(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length>0}t(n2r,"isNonEmptyObject");function i2r(s){return IG(s)&&s.size>0}t(i2r,"isNonEmptySet");function s2r(s){return fA(s)&&s.length>0}t(s2r,"isNonEmptyString");function a2r(s){return fA(s)&&!_Oe(s)}t(a2r,"isNonEmptyStringAndNotWhitespace");function Xfe(s){return s===null}t(Xfe,"isNull");function Uyt(s){return Xfe(s)||Wyt(s)}t(Uyt,"isNullOrUndefined");function AG(s){return typeof s=="number"&&!Number.isNaN(s)}t(AG,"isNumber");function o2r(s){return fA(s)&&!_Oe(s)&&!Number.isNaN(Number(s))}t(o2r,"isNumericString");function NG(s){return!Xfe(s)&&(typeof s=="object"||Oy(s))}t(NG,"isObject");function pOe(s){return s?Symbol.observable!==void 0&&s===s[Symbol.observable]?.()||s===s["@@observable"]?.():!1}t(pOe,"isObservable");function c2r(s){return Pyt(1)(s)}t(c2r,"isOddInteger");function zyt(s){if(typeof s!="object"||s===null)return!1;let o=Object.getPrototypeOf(s);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}t(zyt,"isPlainObject");function l2r(s){return AG(s)&&s>0}t(l2r,"isPositiveNumber");function u2r(s){return Xfe(s)||mSr(typeof s)}t(u2r,"isPrimitive");function f2r(s){return Byt(s)||hSr(s)}t(f2r,"isPromise");function _2r(s){return Ayt([fA,AG,Jyt],s)}t(_2r,"isPropertyKey");function p2r(s){return of(s)==="RegExp"}t(p2r,"isRegExp");function $yt(s){return Number.isSafeInteger(s)}t($yt,"isSafeInteger");function IG(s){return of(s)==="Set"}t(IG,"isSet");function d2r(s){return of(s)==="SharedArrayBuffer"}t(d2r,"isSharedArrayBuffer");function fA(s){return typeof s=="string"}t(fA,"isString");function Jyt(s){return typeof s=="symbol"}t(Jyt,"isSymbol");function m2r(s){return!!s}t(m2r,"isTruthy");function h2r(s,o){return BI(o)&&BI(s)&&o.length===s.length?o.every((f,d)=>f(s[d])):!1}t(h2r,"isTupleLike");function g2r(s){return pSr(of(s))}t(g2r,"isTypedArray");function y2r(s){return of(s)==="Uint16Array"}t(y2r,"isUint16Array");function v2r(s){return of(s)==="Uint32Array"}t(v2r,"isUint32Array");function b2r(s){return of(s)==="Uint8Array"}t(b2r,"isUint8Array");function S2r(s){return of(s)==="Uint8ClampedArray"}t(S2r,"isUint8ClampedArray");function Wyt(s){return s===void 0}t(Wyt,"isUndefined");function T2r(s){return of(s)==="URL"}t(T2r,"isUrlInstance");function x2r(s){return of(s)==="URLSearchParams"}t(x2r,"isUrlSearchParams");function E2r(s){if(!fA(s))return!1;try{return new URL(s),!0}catch{return!1}}t(E2r,"isUrlString");function C2r(s){return Oyt(s)&&!jyt(Number(s))}t(C2r,"isValidDate");function qyt(s){return $yt(s)&&s>=0}t(qyt,"isValidLength");function k2r(s){return of(s)==="WeakMap"}t(k2r,"isWeakMap");function w2r(s){return of(s)==="WeakRef"}t(w2r,"isWeakRef");function D2r(s){return of(s)==="WeakSet"}t(D2r,"isWeakSet");function Vyt(s){return fA(s)&&/^\s+$/.test(s)}t(Vyt,"isWhitespaceString");function Hyt(s,o,f){if(!Oy(o))throw new TypeError(`Invalid predicate: ${JSON.stringify(o)}`);if(f.length===0)throw new TypeError("Invalid number of values");return s.call(f,o)}t(Hyt,"predicateOnArray");var jjr=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),Bjr=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var P2r={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function A2r(s){return Object.keys(s)}t(A2r,"keysOf");var Ujr=A2r(P2r);var Oj=gSr;import{inspect as dOe}from"util";var N2r=Object.defineProperty,I2r=t((s,o)=>{for(var f in o)N2r(s,f,{get:o[f],enumerable:!0})},"__export"),O2r={};I2r(O2r,{htmlEscape:t(()=>UI,"htmlEscape"),tokenizeArray:t(()=>PT,"tokenizeArray"),tokenizeObject:t(()=>v7,"tokenizeObject"),tokenizePrototype:t(()=>Qfe,"tokenizePrototype"),wordWrap:t(()=>OG,"wordWrap")});var Yyt=Object.prototype,Kyt=Array.prototype,Gyt=Reflect.ownKeys(Yyt),F2r=Reflect.ownKeys(Kyt);function v7(s,o,f){if(o.context.objectsSeen=o.context.objectsSeen??new Set,o.context.depth=o.context.depth??0,o.context.objectsSeen.has(s)){o.collect({type:"object-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"object-max-depth-ref"});return}let d=f.showHidden,y=f.constructorName??Object.getPrototypeOf(s)?.constructor.name??null;if(f.collapse.includes(y)){o.collect({type:"collapse",name:y,token:{type:"object-start",constructorName:y}});return}let x=Reflect.ownKeys(s),P=f.eagerGetters??[];o.context.depth++,o.context.objectsSeen.add(s);let F=[];if(f.membersToIgnore){let W=new Set([...x]);f.membersToIgnore.forEach(G=>W.delete(G)),F=Array.from(W)}else F=x;o.collect({type:"object-start",constructorName:y});for(let W of F){let G=Object.getOwnPropertyDescriptor(s,W);if(!G||!G.enumerable&&!d)continue;let be=typeof W=="symbol",de=!!G.set||!!G.writable;if(o.collect({type:"object-key",isSymbol:be,isWritable:de,value:String(W)}),"get"in G&&!P.includes(W)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[W]),o.collect({type:"object-value-end"})}f.inspectObjectPrototype===!0?Qfe(s,o,{membersToIgnore:Gyt}):f.inspectObjectPrototype==="unless-plain-object"&&!Oj.plainObject(s)&&Qfe(s,o,{membersToIgnore:Gyt,prototypeToIgnore:Yyt}),o.collect({type:"object-end"}),o.context.depth--,o.context.objectsSeen.delete(s)}t(v7,"tokenizeObject");function Qfe(s,o,f){let d=[];for(let x=Object.getPrototypeOf(s);x&&(!f.prototypeToIgnore||x!==f.prototypeToIgnore);x=Object.getPrototypeOf(x)){let P=Reflect.ownKeys(x);if(f.membersToIgnore){let F=new Set([...P]);f.membersToIgnore.forEach(W=>F.delete(W)),P=Array.from(F)}d.push({proto:x,keys:P})}if(!d.length)return;let y=f.eagerGetters??[];o.collect({type:"prototype-start"});for(let x of d)for(let P of x.keys){if(P==="constructor")continue;let F=Object.getOwnPropertyDescriptor(x.proto,P);if(!F)continue;let W=typeof P=="symbol",G=!!F.set||!!F.writable;if(o.collect({type:"object-key",isSymbol:W,isWritable:G,value:String(P)}),"get"in F&&!y.includes(P)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[P]),o.collect({type:"object-value-end"})}o.collect({type:"prototype-end"})}t(Qfe,"tokenizePrototype");function PT(s,o,f){if(o.context.arraysSeen=o.context.arraysSeen??new Set,o.context.depth=o.context.depth??0,o.context.arraysSeen.has(s)){o.collect({type:"array-circular-ref"});return}if(o.context.depth>=f.depth){o.collect({type:"array-max-depth-ref"});return}let d=f.maxArrayLength,y=s.length,x=f.name||s.constructor.name;if(f.collapse.includes(x)){o.collect({type:"collapse",name:x,token:{type:"array-start",name:x,size:y}});return}o.context.depth++,o.context.arraysSeen.add(s),o.collect({type:"array-start",name:x,size:y});for(let P=0;P<y;P++){if(P>=d){o.collect({type:"array-max-length-ref",limit:d,size:y});break}let F=s[P];Object.hasOwn(s,P)?(o.collect({type:"array-value-start",index:P}),o.parse(F),o.collect({type:"array-value-end",index:P})):o.collect({type:"array-value-hole",index:P})}f.inspectArrayPrototype&&Qfe(s,o,{membersToIgnore:F2r,prototypeToIgnore:Kyt}),o.collect({type:"array-end",size:y}),o.context.depth--,o.context.arraysSeen.delete(s)}t(PT,"tokenizeArray");function UI(s){return s.replace(/&/g,"&amp;").replace(/\\"/g,"&bsol;&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}t(UI,"htmlEscape");function OG(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`,x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let P=new RegExp(x,"g");return(s.match(P)||[]).map(function(G){return G.slice(-1)===`
689
689
  `&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):UI(G)}).join(y)}t(OG,"wordWrap");var Zfe={Object:t((s,o)=>{v7(s,o,o.config)},"Object"),Array:t((s,o)=>{PT(s,o,o.config)},"Array"),Map:t((s,o)=>{if(o.context.mapsSeen=o.context.mapsSeen??new Set,o.context.depth=o.context.depth??0,o.context.mapsSeen.has(s)){o.collect({type:"map-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"map-max-depth-ref"});return}o.context.depth++,o.context.mapsSeen.add(s);let f=0,d=s.size,y=o.config.maxArrayLength;o.collect({type:"map-start",size:d});for(let[x,P]of s){if(f>=y){o.collect({type:"map-max-length-ref",limit:y,size:d});break}o.collect({type:"map-row-start",index:f}),o.collect({type:"map-key-start",index:f}),o.parse(x),o.collect({type:"map-key-end",index:f}),o.collect({type:"map-value-start",index:f}),o.parse(P),o.collect({type:"map-value-end",index:f}),o.collect({type:"map-row-end",index:f}),f++}o.collect({type:"map-end",size:d}),o.context.depth--,o.context.mapsSeen.delete(s)},"Map"),Set:t((s,o)=>{if(o.context.setsSeen=o.context.setsSeen??new Set,o.context.depth=o.context.depth??0,o.context.setsSeen.has(s)){o.collect({type:"set-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"set-max-depth-ref"});return}o.context.depth++,o.context.setsSeen.add(s);let f=0,d=s.size,y=o.config.maxArrayLength;o.collect({type:"set-start",size:d});for(let x of s){if(f>=y){o.collect({type:"set-max-length-ref",limit:y,size:d});break}o.collect({type:"set-value-start",index:f}),o.parse(x),o.collect({type:"set-value-end",index:f}),f++}o.collect({type:"set-end",size:d}),o.context.depth--,o.context.setsSeen.delete(s)},"Set"),Function:t((s,o)=>{let f=s.constructor.name;if(f==="GeneratorFunction")return Zfe.GeneratorFunction(s,o);if(f==="AsyncGeneratorFunction")return Zfe.AsyncGeneratorFunction(s,o);if(f==="AsyncFunction")return Zfe.AsyncFunction(s,o);let d=Oj.class(s);o.collect({type:"function",isClass:d,isAsync:!1,isGenerator:!1,name:s.name||"anonymous"}),o.config.inspectStaticMembers&&d&&(o.collect({type:"static-members-start"}),v7(s,o,{showHidden:!0,depth:o.config.depth,inspectObjectPrototype:!1,collapse:o.config.collapse,membersToIgnore:["prototype","name","length"]}),o.collect({type:"static-members-end"}))},"Function"),string:t((s,o)=>{let f=dOe(s,{maxStringLength:o.config.maxStringLength,customInspect:!1});o.collect({type:"string",value:f})},"string"),URL:t((s,o)=>{v7({hash:s.hash,host:s.host,hostname:s.hostname,href:s.href,origin:s.origin,password:s.password,pathname:s.pathname,port:s.port,protocol:s.protocol,search:s.search,searchParams:s.searchParams,username:s.username},o,{constructorName:"URL",...o.config})},"URL"),URLSearchParams:t((s,o)=>{v7(Object.fromEntries(s),o,{constructorName:"URLSearchParams",...o.config})},"URLSearchParams"),Error:t(function(s,o){v7(s,o,{eagerGetters:["message","stack"],...o.config,inspectObjectPrototype:o.config.inspectObjectPrototype===!0,showHidden:!0})},"Error"),FormData:t(function(s,o){v7(Object.fromEntries(s.entries()),o,{constructorName:"FormData",...o.config})},"FormData"),undefined:t((s,o)=>{o.collect({type:"undefined"})},"undefined"),null:t((s,o)=>{o.collect({type:"null"})},"null"),symbol:t((s,o)=>{o.collect({type:"symbol",value:String(s)})},"symbol"),number:t((s,o)=>{o.collect({type:"number",value:s})},"number"),boolean:t((s,o)=>{o.collect({type:"boolean",value:s})},"boolean"),bigint:t((s,o)=>{o.collect({type:"bigInt",value:`${s.toString()}n`})},"bigint"),Date:t((s,o)=>{o.collect({type:"date",value:s.toISOString()})},"Date"),RegExp:t((s,o)=>{o.collect({type:"regexp",value:String(s)})},"RegExp"),Buffer:t((s,o)=>{o.collect({type:"buffer",value:dOe(s)})},"Buffer"),WeakSet:t((s,o)=>{o.collect({type:"weak-set"})},"WeakSet"),WeakMap:t((s,o)=>{o.collect({type:"weak-map"})},"WeakMap"),WeakRef:t(function(s,o){o.collect({type:"weak-ref"})},"WeakRef"),Generator:t(function(s,o){o.collect({type:"generator",isAsync:!1})},"Generator"),AsyncGenerator:t(function(s,o){o.collect({type:"generator",isAsync:!0})},"AsyncGenerator"),GeneratorFunction:t(function(s,o){o.collect({type:"function",isGenerator:!0,isClass:!1,isAsync:!1,name:s.name||"anonymous"})},"GeneratorFunction"),AsyncGeneratorFunction:t(function(s,o){o.collect({type:"function",isGenerator:!0,isClass:!1,isAsync:!0,name:s.name||"anonymous"})},"AsyncGeneratorFunction"),AsyncFunction:t(function(s,o){o.collect({type:"function",isGenerator:!1,isClass:!1,isAsync:!0,name:s.name||"anonymous"})},"AsyncFunction"),Observable:t(function(s,o){o.collect({type:"observable"})},"Observable"),Blob:t(function(s,o){o.collect({type:"blob",size:s.size,contentType:s.type})},"Blob"),Promise:t(function(s,o){o.collect({type:"promise",isFulfilled:!dOe(s).includes("pending")})},"Promise"),NaN:t(function(s,o){o.collect({type:"number",value:Number.NaN})},"NaN"),Int8Array:t(function(s,o){PT(s,o,o.config)},"Int8Array"),Uint8Array:t(function(s,o){PT(s,o,o.config)},"Uint8Array"),Int16Array:t(function(s,o){PT(s,o,o.config)},"Int16Array"),Uint16Array:t(function(s,o){PT(s,o,o.config)},"Uint16Array"),Int32Array:t(function(s,o){PT(s,o,o.config)},"Int32Array"),Uint32Array:t(function(s,o){PT(s,o,o.config)},"Uint32Array"),Float32Array:t(function(s,o){PT(s,o,o.config)},"Float32Array"),Float64Array:t(function(s,o){PT(s,o,o.config)},"Float64Array"),BigInt64Array:t(function(s,o){PT(s,o,o.config)},"BigInt64Array"),BigUint64Array:t(function(s,o){PT(s,o,o.config)},"BigUint64Array")},e_e=class{static{t(this,"Parser")}#e=[];config;context;constructor(s,o){this.context=o||{},this.config=Object.freeze({showHidden:!1,depth:5,inspectObjectPrototype:"unless-plain-object",inspectArrayPrototype:!1,inspectStaticMembers:!1,maxArrayLength:100,maxStringLength:1e3,collapse:[],...s})}#n(s,o){return s==="Object"&&o instanceof Error?"Error":s}collect(s){this.#e.push(s)}parse(s){let o=this.#n(Oj.detect(s),s),f=Zfe[o];f?f(s,this):this.collect({type:"unknown",jsType:o,value:s})}flush(){let s=this.#e;return this.#e=[],this.context={},s}};var zI={nightOwl:{pre:"background-color: #061626; color: #c792ea;",toggle:"color: #4f5357; background: none; border: none;",braces:"color: #ffd700;",brackets:"color: #ffd700;",number:"color: #f78c6c;",bigInt:"color: #f78c6c; font-weight: bold;",boolean:"color: #ff5874; font-style: italic;",string:"color: #ecc48d;",null:"color: #637777;",undefined:"color: #637777;",prototypeLabel:"color: #637777;",symbol:"color: #82aaff;",regex:"color: #ff5874;",date:"color: #7fdbca;",buffer:"color: #7fdbca;",functionLabel:"color: #89b4fa;",arrayLabel:"color: #82aaff;",objectLabel:"color: #82aaff;",mapLabel:"color: #82aaff;",setLabel:"color: #82aaff;",objectKey:"color: #c792ea;",objectKeyPrefix:"color: #637777; font-style: italic; font-weight: bold",classLabel:"color: #82aaff;",collapseLabel:"color: #7fdbca; font-style: italic;",getterLabel:"color: #7fdbca;",circularLabel:"color: #7fdbca;",weakSetLabel:"color: #7fdbca;",weakRefLabel:"color: #7fdbca;",weakMapLabel:"color: #7fdbca;",observableLabel:"color: #7fdbca;",promiseLabel:"color: #7fdbca;",generatorLabel:"color: #7fdbca;",blobLabel:"color: #7fdbca;",unknownLabel:"color: #7fdbca;"},minLight:{pre:"background-color: #fff; color: #212121;",toggle:"color: #989999; background: none; border: none;",braces:"color: #0431fa;",brackets:"color: #0431fa;",number:"color: #1976d2;",bigInt:"color: #1976d2; font-weight: bold;",boolean:"color: #1976d2; font-style: italic;",string:"color: #22863a;",null:"color: #9c9c9d;",undefined:"color: #9c9c9d;",prototypeLabel:"color: #9c9c9d;",symbol:"color: #d32f2f;",regex:"color: #1976d2;",date:"color: #7b3814;",buffer:"color: #7b3814;",functionLabel:"color: #6f42c1;",arrayLabel:"color: #d32f2f;",objectLabel:"color: #d32f2f;",mapLabel:"color: #d32f2f;",setLabel:"color: #d32f2f;",objectKey:"color: #212121;",objectKeyPrefix:"color: #9c9c9d; font-style: italic; font-weight: bold",classLabel:"color: #6f42c1;",collapseLabel:"color: #9c9c9d; font-style: italic;",getterLabel:"color: #7b3814;",circularLabel:"color: #7b3814;",weakSetLabel:"color: #7b3814;",weakRefLabel:"color: #7b3814;",weakMapLabel:"color: #7b3814;",observableLabel:"color: #7b3814;",promiseLabel:"color: #7b3814;",generatorLabel:"color: #7b3814;",blobLabel:"color: #7b3814;",unknownLabel:"color: #7b3814;"},catppuccin:{pre:"background-color: #1e1e2e; color: #94e2d5;",toggle:"color: #7c7c8c; background: none; border: none;",braces:"color: #f38ba8;",brackets:"color: #f38ba8;",number:"color: #fab387;",bigInt:"color: #fab387; font-weight: bold;",boolean:"color: #cba6f7; font-style: italic;",string:"color: #a6e3a1;",null:"color: #6c7086;",undefined:"color: #6c7086;",prototypeLabel:"color: #6c7086;",symbol:"color: #f9e2af;",regex:"color: #cba6f7;",date:"color: #94e2d5;",buffer:"color: #94e2d5;",functionLabel:"color: #cba6f7;",arrayLabel:"color: #f9e2af;",objectLabel:"color: #f9e2af;",mapLabel:"color: #f9e2af;",setLabel:"color: #f9e2af;",objectKey:"color: #89b4fa;",objectKeyPrefix:"color: #6c7086; font-style: italic; font-weight: bold",classLabel:"color: #cba6f7;",collapseLabel:"color: #6c7086; font-style: italic;",getterLabel:"color: #94e2d5;",circularLabel:"color: #94e2d5;",weakSetLabel:"color: #94e2d5;",weakRefLabel:"color: #94e2d5;",weakMapLabel:"color: #94e2d5;",observableLabel:"color: #94e2d5;",promiseLabel:"color: #94e2d5;",generatorLabel:"color: #94e2d5;",blobLabel:"color: #94e2d5;",unknownLabel:"color: #94e2d5;"},cssVariables:{pre:"background-color: var(--pre-bg-color); color: var(--pre-fg-color);",toggle:"color: var(--toggle-fg-color); background: none; border: none;",braces:"color: var(--braces-fg-color);",brackets:"color: var(--brackets-fg-color);",number:"color: var(--dt-number-fg-color);",bigInt:"color: var(--dt-bigint-fg-color); font-weight: bold;",boolean:"color: var(--dt-boolean-fg-color); font-style: italic;",string:"color: var(--dt-string-fg-color);",null:"color: var(--dt-null-fg-color);",undefined:"color: var(--dt-undefined-fg-color);",prototypeLabel:"color: var(--prototype-label-fg-color);",symbol:"color: var(--dt-symbol-fg-color);",regex:"color: var(--dt-regex-fg-color);",date:"color: var(--dt-date-fg-color);",buffer:"color: var(--dt-buffer-fg-color);",functionLabel:"color: var(--function-label-fg-color);",arrayLabel:"color: var(--array-label-fg-color);",objectLabel:"color: var(--object-label-fg-color);",mapLabel:"color: var(--map-label-fg-color);",setLabel:"color: var(--set-label-fg-color);",objectKey:"color: var(--object-key-fg-color);",objectKeyPrefix:"color: var(--object-key-prefix-fg-color); font-style: italic; font-weight: bold",classLabel:"color: var(--class-label-fg-color);",collapseLabel:"color: var(--collpase-label-fg-color); font-style: italic;",getterLabel:"color: var(--getter-label-fg-color);",circularLabel:"color: var(--circular-label-fg-color);",weakSetLabel:"color: var(--weakset-label-fg-color);",weakRefLabel:"color: var(--weakref-label-fg-color);",weakMapLabel:"color: var(--weakmap-label-fg-color);",observableLabel:"color: var(--observable-label-fg-color);",promiseLabel:"color: var(--promise-label-fg-color);",generatorLabel:"color: var(--generator-label-fg-color);",blobLabel:"color: var(--blob-label-fg-color);",unknownLabel:"color: var(--unknown-label-fg-color);"}},FG="&#9660;";function t_e(s){return`<span style="${s.styles.braces}">{</span>`}t(t_e,"openingBrace");function r_e(s){return`<span style="${s.styles.braces}">}</span>`}t(r_e,"closingBrace");function n_e(s){return`<span style="${s.styles.brackets}">[</span>`}t(n_e,"openingBrackets");function i_e(s){return`<span style="${s.styles.brackets}">]</span>`}t(i_e,"closingBrackets");var L2r={collapse:t((s,o)=>{let f=s.token.type==="object-start"?o.styles.objectLabel:o.styles.arrayLabel,d=o.styles.collapseLabel;return`<span style="${f}">${s.name}</span> `+(s.token.type==="object-start"?t_e(o):n_e(o))+` <span style="${d}">collapsed</span> `+(s.token.type==="object-start"?r_e(o):i_e(o))},"collapse"),"object-start":t((s,o)=>{o.indentation.increment();let f=o.styles.objectLabel,d=o.styles.toggle,y=o.context.isStaticMember&&o.context.staticDepth===0?" ":`${s.constructorName||"Object [null]"} `;return`<span class="dumper-group dumper-object-group"><span style="${f}">${y}</span>`+t_e(o)+`<button class="dumper-toggle" style="${d}"><span>${FG}</span></button><samp hidden="true">`},"object-start"),"object-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+r_e(o)+"</span>"),"object-end"),"object-key":t((s,o)=>{o.context.isStack=s.value==="stack";let f=o.styles.objectKey,d=`${o.newLine}${o.indentation.getSpaces()}`,y=s.value;s.isSymbol?y=`[${y}]`:/^[a-z$_][$\w]*$/i.test(y)||(y=`"${UI(y.replace(/"/g,'\\"'))}"`);let x="";return o.context.isStaticMember&&(o.context.staticDepth++,o.context.staticDepth===1&&(x=`<span class="dumper-object-prefix" style="${o.styles.objectKeyPrefix}">static </span>`)),d+x+`<span class="dumper-object-key" style="${f}">${y}</span>: `},"object-key"),"object-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"object-circular-ref"),"object-max-depth-ref":t((s,o)=>`<span style="${o.styles.objectLabel}">[Object]</span>`,"object-max-depth-ref"),"object-value-getter":t((s,o)=>`<span style="${o.styles.getterLabel}">[Getter]</span>`,"object-value-getter"),"object-value-start":t(()=>"","object-value-start"),"object-value-end":t((s,o)=>(o.context.isStaticMember&&o.context.staticDepth--,","),"object-value-end"),"array-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.arrayLabel,y=`${s.name}:${s.size} `;return`<span class="dumper-group dumper-array-group"><span style="${d}">${y}</span>`+n_e(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"array-start"),"array-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+i_e(o)+"</span>"),"array-end"),"array-value-start":t((s,o)=>`${o.newLine}${o.indentation.getSpaces()}`,"array-value-start"),"array-value-hole":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.undefined;return f+`<span class="dumper-undefined" style="${d}">${UI("<hole>")},</span>`},"array-value-hole"),"array-value-end":t(()=>",","array-value-end"),"array-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"array-circular-ref"),"array-max-depth-ref":t((s,o)=>`<span style="${o.styles.arrayLabel}">[Array]</span>`,"array-max-depth-ref"),"array-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.arrayLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"array-max-length-ref"),"prototype-start":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`;o.indentation.increment();let d=o.styles.prototypeLabel,y=o.styles.toggle;return f+`<span class="dumper-group dumper-prototype-group"><span style="${d}">[[Prototype]] </span>`+t_e(o)+`<button class="dumper-toggle" style="${y}"><span>${FG}</span></button><samp hidden="true">`},"prototype-start"),"prototype-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+r_e(o)+"</span>"),"prototype-end"),"map-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.mapLabel,y=`Map:${s.size} `;return`<span class="dumper-group dumper-map-group"><span style="${d}">${y}</span>`+t_e(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"map-start"),"map-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+r_e(o)+"</span>"),"map-end"),"map-row-start":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`;return o.indentation.increment(),f+n_e(o)},"map-row-start"),"map-row-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+i_e(o)+","),"map-row-end"),"map-key-start":t((s,o)=>{let f=o.styles.objectKey;return`${o.newLine}${o.indentation.getSpaces()}`+`<span style="${f}">key</span>: `},"map-key-start"),"map-key-end":t(function(){return""},"map-key-end"),"map-value-start":t((s,o)=>{let f=o.styles.objectKey;return`${o.newLine}${o.indentation.getSpaces()}`+`<span style="${f}">value</span>: `},"map-value-start"),"map-value-end":t(function(){return""},"map-value-end"),"map-circular-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.circularLabel;return`${f}<span style="${d}">[*Circular]</span>`},"map-circular-ref"),"map-max-depth-ref":t((s,o)=>`<span style="${o.styles.mapLabel}">[Map]</span>`,"map-max-depth-ref"),"map-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.mapLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"map-max-length-ref"),"set-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.setLabel,y=`Set:${s.size} `;return`<span class="dumper-group dumper-set-group"><span class="dumper-set-label" style="${d}">${y}</span>`+n_e(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"set-start"),"set-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+i_e(o)+"</span>"),"set-end"),"set-value-start":t((s,o)=>`${o.newLine}${o.indentation.getSpaces()}`,"set-value-start"),"set-value-end":t(()=>",","set-value-end"),"set-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"set-circular-ref"),"set-max-depth-ref":t((s,o)=>`<span style="${o.styles.setLabel}">[Set]</span>`,"set-max-depth-ref"),"set-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.setLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"set-max-length-ref"),string:t((s,o)=>{let f=s.value,d=o.indentation.getSpaces();return o.context.isStack?f=s.value.split(`
690
690
  `).map((x,P)=>{let F=`<span>${UI(x.trim())}</span>`;return P>0&&(F=`${d}${F}`),F}).join(`
691
691
  `):f=OG(s.value,{newLine:o.newLine,indent:o.indentation.getSpaces(),width:70}),`<span class="dumper-string" style="${o.styles.string}">${f}</span>`},"string"),boolean:t((s,o)=>`<span class="dumper-boolean" style="${o.styles.boolean}">`+s.value+"</span>","boolean"),number:t((s,o)=>`<span class="dumper-number" style="${o.styles.number}">`+s.value+"</span>","number"),bigInt:t((s,o)=>`<span class="dumper-big-int" style="${o.styles.bigInt}">`+s.value+"</span>","bigInt"),undefined:t((s,o)=>`<span class="dumper-undefined" style="${o.styles.undefined}">undefined</span>`,"undefined"),null:t((s,o)=>`<span class="dumper-null" style="${o.styles.null}">null</span>`,"null"),symbol:t((s,o)=>`<span class="dumper-symbol" style="${o.styles.symbol}">`+s.value+"</span>","symbol"),function:t((s,o)=>{let f=s.isClass?"dumper-class":"dumper-function",d=s.isClass?o.styles.classLabel:o.styles.functionLabel,y=s.isAsync?"async ":"",x=s.isGenerator?"*":"",P=s.isClass?`[class ${s.name}]`:`[${y}${x}function ${s.name}]`;return`<span class="${f}" style="${d}">`+P+"</span>"},"function"),date:t(function(s,o){return`<span class="dumper-date" style="${o.styles.date}">`+s.value+"</span>"},"date"),buffer:t(function(s,o){return`<span class="dumper-buffer" style="${o.styles.buffer}">`+UI(s.value)+"</span>"},"buffer"),regexp:t(function(s,o){return`<span class="dumper-regex" style="${o.styles.regex}">`+s.value+"</span>"},"regexp"),unknown:t(function(s,o){return`<span class="dumper-value-unknown" style="${o.styles.unknownLabel}">`+String(s.value)+"</span>"},"unknown"),"weak-set":t(function(s,o){return`<span class="dumper-weak-set" style="${o.styles.weakSetLabel}">[WeakSet]</span>`},"weak-set"),"weak-ref":t(function(s,o){return`<span class="dumper-weak-ref" style="${o.styles.weakRefLabel}">[WeakRef]</span>`},"weak-ref"),"weak-map":t(function(s,o){return`<span class="dumper-weak-map" style="${o.styles.weakMapLabel}">[WeakMap]</span>`},"weak-map"),observable:t(function(s,o){return`<span class="dumper-observable" style="${o.styles.observableLabel}">[Observable]</span>`},"observable"),blob:t(function(s,o){let f=o.styles.objectLabel,d=`<span styles="${o.styles.braces}">{ `,y=`<span styles="${o.styles.braces}"> }</span></span>`,x=`<span styles="${o.styles.objectKey}">size: </span>`,P=`<span styles="${o.styles.number}">${s.size}</span>,`,F=`<span styles="${o.styles.objectKey}">type: </span>`,W=`<span styles="${o.styles.string}">${s.contentType}</span>`;return`<span class="dumper-blob" style="${f}">[Blob]`+d+`${x}${P} ${F}${W}`+y+"</span>"},"blob"),promise:t(function(s,o){let f=o.styles.promiseLabel,d=s.isFulfilled?"resolved":"pending";return`<span class="dumper-promise" style="${f}">[Promise${UI(`<${d}>`)}]</span>`},"promise"),generator:t(function(s,o){let f=o.styles.generatorLabel,d=s.isAsync?"[AsyncGenerator] {}":"[Generator] {}";return`<span class="dumper-generator" style="${f}">`+d+"</span>"},"generator"),"static-members-start":t(function(s,o){return o.context.isStaticMember=!0,o.context.staticDepth=0,""},"static-members-start"),"static-members-end":t(function(s,o){return o.context.isStaticMember=!1,o.context.staticDepth=0,""},"static-members-end")},R2r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",M2r=t((s=15)=>{let o="",f=new Uint8Array(s);if(globalThis.crypto)crypto.getRandomValues(f);else for(let d=0;d<s;d++)f[d]=Math.floor(Math.random()*256);for(let d=0;d<s;d++)o+=R2r[63&f[d]];return o},"nanoid"),j2r=class{static{t(this,"HTMLFormatter")}#e;styles;context;newLine=`
@@ -912,7 +912,7 @@ ${(await Promise.all(s.error.frames.map((d,y)=>this.#m(d,y,this.#n(s.error.frame
912
912
  `)}`}};import{extname as cSt}from"path";var Q2r=Object.defineProperty,eTr=t(s=>o=>{var f=s[o];if(f)return f();throw new Error("Module not found in bundle: "+o)},"w"),pu=t((s,o)=>()=>(s&&(o=s(s=0)),o),"a"),vu=t((s,o)=>{for(var f in o)Q2r(s,f,{get:o[f],enumerable:!0})},"p"),l1t={};vu(l1t,{default:t(()=>u1t,"default")});var u1t,tTr=pu(()=>{u1t=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),f1t={};vu(f1t,{default:t(()=>yOe,"default")});var hOe,yOe,_1t=pu(()=>{hOe={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},yOe=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[hOe]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gmi},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},hOe]}),p1t={};vu(p1t,{default:t(()=>d1t,"default")});var d1t,rTr=pu(()=>{d1t=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),m1t={};vu(m1t,{default:t(()=>h1t,"default")});var h1t,nTr=pu(()=>{h1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),g1t={};vu(g1t,{default:t(()=>y1t,"default")});var y1t,iTr=pu(()=>{y1t=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),v1t={};vu(v1t,{default:t(()=>b1t,"default")});var b1t,sTr=pu(()=>{b1t=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),S1t={};vu(S1t,{default:t(()=>vOe,"default")});var vOe,T1t=pu(()=>{vOe=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),x1t={};vu(x1t,{default:t(()=>E1t,"default")});var E1t,aTr=pu(()=>{_1t(),E1t=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gmi},...yOe]}),C1t={};vu(C1t,{default:t(()=>k1t,"default")});var k1t,oTr=pu(()=>{T1t(),k1t=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...vOe,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),w1t={};vu(w1t,{default:t(()=>D1t,"default")});var D1t,cTr=pu(()=>{D1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),P1t={};vu(P1t,{default:t(()=>bOe,"default"),name:t(()=>$I,"name"),properties:t(()=>S7,"properties"),xmlElement:t(()=>_A,"xmlElement")});var gOe,a1t,$I,S7,_A,bOe,A1t=pu(()=>{gOe=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",a1t=gOe+"\\-\\.0-9\xB7\u0300-\u036F\u203F-\u2040",$I=`[${gOe}][${a1t}]*`,S7=`\\s*(\\s+${$I}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,_A={match:RegExp(`<[/!?]?${$I}${S7}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${$I}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp($I,"g")}]},bOe=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},_A,{type:"str",match:RegExp(`<\\?${$I}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${$I}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),N1t={};vu(N1t,{default:t(()=>I1t,"default")});var I1t,lTr=pu(()=>{A1t(),I1t=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${S7}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${S7}>`,"g"),sub:_A.sub},{match:RegExp(`${_A.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},_A]},{match:RegExp(`<script${S7}>((?!</script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${S7}>`,"g"),sub:_A.sub},{match:RegExp(`${_A.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},_A]},...bOe]}),o1t,MG,SOe=pu(()=>{o1t=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gmi,10]]],MG=t(s=>o1t.map(([o,...f])=>[o,f.reduce((d,[y,x])=>d+[...s.matchAll(y)].length*x,0)]).filter(([o,f])=>f>20).sort((o,f)=>f[1]-o[1])[0]?.[0]||"plain","u")}),O1t={};vu(O1t,{default:t(()=>F1t,"default")});var F1t,uTr=pu(()=>{SOe(),F1t=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:MG}]}),L1t={};vu(L1t,{default:t(()=>R1t,"default")});var R1t,fTr=pu(()=>{R1t=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),M1t={};vu(M1t,{default:t(()=>j1t,"default")});var j1t,_Tr=pu(()=>{j1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),B1t={};vu(B1t,{default:t(()=>TOe,"default")});var TOe,U1t=pu(()=>{TOe=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),z1t={};vu(z1t,{default:t(()=>$1t,"default"),type:t(()=>J1t,"type")});var $1t,J1t,pTr=pu(()=>{$1t=[{match:new class{exec(s){let o=this.lastIndex,f,d=t(y=>{for(;++o<s.length-2;)if(s[o]=="{")d();else if(s[o]=="}")return},"c");for(;o<s.length;++o)if(s[o-1]!="\\"&&s[o]=="$"&&s[o+1]=="{")return f=o++,d(o),this.lastIndex=o+1,{index:f,0:s.slice(f,o+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],J1t="str"}),W1t={};vu(W1t,{default:t(()=>xOe,"default"),type:t(()=>q1t,"type")});var xOe,q1t,V1t=pu(()=>{xOe=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],q1t="cmnt"}),H1t={};vu(H1t,{default:t(()=>G1t,"default"),type:t(()=>Y1t,"type")});var G1t,Y1t,dTr=pu(()=>{V1t(),G1t=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...xOe],Y1t="cmnt"}),K1t={};vu(K1t,{default:t(()=>X1t,"default")});var X1t,mTr=pu(()=>{X1t=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),Z1t={};vu(Z1t,{default:t(()=>EOe,"default")});var EOe,Q1t=pu(()=>{SOe(),EOe=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:t(s=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:s.split(`
913
913
  `)[0].slice(3)||MG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),evt={};vu(evt,{default:t(()=>tvt,"default")});var tvt,hTr=pu(()=>{Q1t(),SOe(),tvt=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:MG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:MG}]},...EOe]}),rvt={};vu(rvt,{default:t(()=>nvt,"default")});var nvt,gTr=pu(()=>{nvt=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),ivt={};vu(ivt,{default:t(()=>svt,"default")});var svt,yTr=pu(()=>{svt=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),avt={};vu(avt,{default:t(()=>ovt,"default")});var ovt,vTr=pu(()=>{ovt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),cvt={};vu(cvt,{default:t(()=>lvt,"default")});var lvt,bTr=pu(()=>{lvt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),uvt={};vu(uvt,{default:t(()=>fvt,"default")});var fvt,STr=pu(()=>{fvt=[{expand:"strDouble"}]}),_vt={};vu(_vt,{default:t(()=>pvt,"default")});var pvt,TTr=pu(()=>{pvt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),dvt={};vu(dvt,{default:t(()=>mvt,"default"),type:t(()=>hvt,"type")});var mvt,hvt,xTr=pu(()=>{mvt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],hvt="oper"}),gvt={};vu(gvt,{default:t(()=>yvt,"default")});var yvt,ETr=pu(()=>{yvt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),vvt={};vu(vvt,{default:t(()=>bvt,"default")});var bvt,CTr=pu(()=>{bvt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),Svt={};vu(Svt,{default:t(()=>Tvt,"default")});var Tvt,kTr=pu(()=>{Tvt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),xvt={};vu(xvt,{default:t(()=>Evt,"default")});var Evt,wTr=pu(()=>{U1t(),Evt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...TOe]}),Cvt={};vu(Cvt,{default:t(()=>kvt,"default")});var kvt,DTr=pu(()=>{kvt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),wvt={};vu(wvt,{default:t(()=>Dvt,"default")});var Dvt,PTr=pu(()=>{Dvt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),ATr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},NTr=eTr({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(tTr(),l1t)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(_1t(),f1t)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(rTr(),p1t)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(nTr(),m1t)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>(iTr(),g1t)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(sTr(),v1t)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>(T1t(),S1t)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(aTr(),x1t)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(oTr(),C1t)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>(cTr(),w1t)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(lTr(),N1t)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(uTr(),O1t)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(fTr(),L1t)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(_Tr(),M1t)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(U1t(),B1t)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(pTr(),z1t)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(dTr(),H1t)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(mTr(),K1t)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(hTr(),evt)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(gTr(),rvt)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(yTr(),ivt)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(vTr(),avt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(Q1t(),Z1t)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(bTr(),cvt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(STr(),uvt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(TTr(),_vt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(xTr(),dvt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>(ETr(),gvt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(CTr(),vvt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(V1t(),W1t)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(kTr(),Svt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(wTr(),xvt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(DTr(),Cvt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(A1t(),P1t)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(PTr(),wvt)),"./languages/yaml.js")}),c1t={},ITr=t((s="")=>s.replaceAll("&","&#38;").replaceAll?.("<","&lt;").replaceAll?.(">","&gt;"),"Ce"),OTr=t((s,o)=>o?`<span class="shj-syn-${o}">${s}</span>`:s,"De");async function Pvt(s,o,f){try{let d,y,x={},P,F=[],W=0,G=typeof o=="string"?await(c1t[o]??(c1t[o]=NTr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?ATr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,P=y.match.exec(s),P===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:P,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await Pvt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(Pvt,"Zt");async function Avt(s,o,f=!0,d={}){let y="";return await Pvt(s,o,(x,P)=>y+=OTr(ITr(x),P)),f?`<div><div class="shj-numbers">${"<div></div>".repeat(!d.hideLineNumbers&&s.split(`
914
914
  `).length)}</div><div>${y}</div></div>`:y}t(Avt,"we");var FTr=Object.defineProperty,Fvt=t(s=>o=>{var f=s[o];if(f)return f();throw new Error("Module not found in bundle: "+o)},"d"),Ol=t((s,o)=>()=>(s&&(o=s(s=0)),o),"e"),Vl=t((s,o)=>{for(var f in o)FTr(s,f,{get:o[f],enumerable:!0})},"a"),Lvt={};Vl(Lvt,{default:t(()=>Rvt,"default")});var Rvt,LTr=Ol(()=>{Rvt=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),Mvt={};Vl(Mvt,{default:t(()=>wOe,"default")});var COe,wOe,jvt=Ol(()=>{COe={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},wOe=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[COe]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gmi},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},COe]}),Bvt={};Vl(Bvt,{default:t(()=>Uvt,"default")});var Uvt,RTr=Ol(()=>{Uvt=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),zvt={};Vl(zvt,{default:t(()=>$vt,"default")});var $vt,MTr=Ol(()=>{$vt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Jvt={};Vl(Jvt,{default:t(()=>Wvt,"default")});var Wvt,jTr=Ol(()=>{Wvt=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),qvt={};Vl(qvt,{default:t(()=>Vvt,"default")});var Vvt,BTr=Ol(()=>{Vvt=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),Hvt={};Vl(Hvt,{default:t(()=>DOe,"default")});var DOe,Gvt=Ol(()=>{DOe=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),Yvt={};Vl(Yvt,{default:t(()=>Kvt,"default")});var Kvt,UTr=Ol(()=>{jvt(),Kvt=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gmi},...wOe]}),Xvt={};Vl(Xvt,{default:t(()=>Zvt,"default")});var Zvt,zTr=Ol(()=>{Gvt(),Zvt=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...DOe,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),Qvt={};Vl(Qvt,{default:t(()=>ebt,"default")});var ebt,$Tr=Ol(()=>{ebt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),tbt={};Vl(tbt,{default:t(()=>POe,"default"),name:t(()=>JI,"name"),properties:t(()=>T7,"properties"),xmlElement:t(()=>pA,"xmlElement")});var kOe,Nvt,JI,T7,pA,POe,rbt=Ol(()=>{kOe=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Nvt=kOe+"\\-\\.0-9\xB7\u0300-\u036F\u203F-\u2040",JI=`[${kOe}][${Nvt}]*`,T7=`\\s*(\\s+${JI}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,pA={match:RegExp(`<[/!?]?${JI}${T7}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${JI}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp(JI,"g")}]},POe=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},pA,{type:"str",match:RegExp(`<\\?${JI}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${JI}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),nbt={};Vl(nbt,{default:t(()=>ibt,"default")});var ibt,JTr=Ol(()=>{rbt(),ibt=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${T7}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${T7}>`,"g"),sub:pA.sub},{match:RegExp(`${pA.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},pA]},{match:RegExp(`<script${T7}>((?!</script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${T7}>`,"g"),sub:pA.sub},{match:RegExp(`${pA.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},pA]},...POe]}),Ivt,jG,AOe=Ol(()=>{Ivt=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gmi,10]]],jG=t(s=>Ivt.map(([o,...f])=>[o,f.reduce((d,[y,x])=>d+[...s.matchAll(y)].length*x,0)]).filter(([o,f])=>f>20).sort((o,f)=>f[1]-o[1])[0]?.[0]||"plain","i")}),sbt={};Vl(sbt,{default:t(()=>abt,"default")});var abt,WTr=Ol(()=>{AOe(),abt=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:jG}]}),obt={};Vl(obt,{default:t(()=>cbt,"default")});var cbt,qTr=Ol(()=>{cbt=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),lbt={};Vl(lbt,{default:t(()=>ubt,"default")});var ubt,VTr=Ol(()=>{ubt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),fbt={};Vl(fbt,{default:t(()=>NOe,"default")});var NOe,_bt=Ol(()=>{NOe=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),pbt={};Vl(pbt,{default:t(()=>dbt,"default"),type:t(()=>mbt,"type")});var dbt,mbt,HTr=Ol(()=>{dbt=[{match:new class{exec(s){let o=this.lastIndex,f,d=t(y=>{for(;++o<s.length-2;)if(s[o]=="{")d();else if(s[o]=="}")return},"r");for(;o<s.length;++o)if(s[o-1]!="\\"&&s[o]=="$"&&s[o+1]=="{")return f=o++,d(o),this.lastIndex=o+1,{index:f,0:s.slice(f,o+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],mbt="str"}),hbt={};Vl(hbt,{default:t(()=>IOe,"default"),type:t(()=>gbt,"type")});var IOe,gbt,ybt=Ol(()=>{IOe=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],gbt="cmnt"}),vbt={};Vl(vbt,{default:t(()=>bbt,"default"),type:t(()=>Sbt,"type")});var bbt,Sbt,GTr=Ol(()=>{ybt(),bbt=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...IOe],Sbt="cmnt"}),Tbt={};Vl(Tbt,{default:t(()=>xbt,"default")});var xbt,YTr=Ol(()=>{xbt=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),Ebt={};Vl(Ebt,{default:t(()=>OOe,"default")});var OOe,Cbt=Ol(()=>{AOe(),OOe=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:t(s=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:s.split(`
915
- `)[0].slice(3)||jG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),kbt={};Vl(kbt,{default:t(()=>wbt,"default")});var wbt,KTr=Ol(()=>{Cbt(),AOe(),wbt=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:jG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:jG}]},...OOe]}),Dbt={};Vl(Dbt,{default:t(()=>Pbt,"default")});var Pbt,XTr=Ol(()=>{Pbt=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),Abt={};Vl(Abt,{default:t(()=>Nbt,"default")});var Nbt,ZTr=Ol(()=>{Nbt=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),Ibt={};Vl(Ibt,{default:t(()=>Obt,"default")});var Obt,QTr=Ol(()=>{Obt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),Fbt={};Vl(Fbt,{default:t(()=>Lbt,"default")});var Lbt,exr=Ol(()=>{Lbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),Rbt={};Vl(Rbt,{default:t(()=>Mbt,"default")});var Mbt,txr=Ol(()=>{Mbt=[{expand:"strDouble"}]}),jbt={};Vl(jbt,{default:t(()=>Bbt,"default")});var Bbt,rxr=Ol(()=>{Bbt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Ubt={};Vl(Ubt,{default:t(()=>zbt,"default"),type:t(()=>$bt,"type")});var zbt,$bt,nxr=Ol(()=>{zbt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],$bt="oper"}),Jbt={};Vl(Jbt,{default:t(()=>Wbt,"default")});var Wbt,ixr=Ol(()=>{Wbt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),qbt={};Vl(qbt,{default:t(()=>Vbt,"default")});var Vbt,sxr=Ol(()=>{Vbt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),Hbt={};Vl(Hbt,{default:t(()=>Gbt,"default")});var Gbt,axr=Ol(()=>{Gbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Ybt={};Vl(Ybt,{default:t(()=>Kbt,"default")});var Kbt,oxr=Ol(()=>{_bt(),Kbt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...NOe]}),Xbt={};Vl(Xbt,{default:t(()=>Zbt,"default")});var Zbt,cxr=Ol(()=>{Zbt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Qbt={};Vl(Qbt,{default:t(()=>eSt,"default")});var eSt,lxr=Ol(()=>{eSt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),tSt={};Vl(tSt,{default:t(()=>jf,"default")});var jf,FOe=Ol(()=>{jf={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"}}),rSt={};Vl(rSt,{default:t(()=>nSt,"default")});var nSt,uxr=Ol(()=>{FOe(),nSt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.magenta,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.blue}}),LOe={};Vl(LOe,{default:t(()=>iSt,"default")});var iSt,sSt=Ol(()=>{FOe(),iSt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.red,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.magenta}}),fxr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},_xr=Fvt({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(LTr(),Lvt)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(jvt(),Mvt)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(RTr(),Bvt)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(MTr(),zvt)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>(jTr(),Jvt)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(BTr(),qvt)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>(Gvt(),Hvt)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(UTr(),Yvt)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(zTr(),Xvt)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>($Tr(),Qvt)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(JTr(),nbt)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(WTr(),sbt)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(qTr(),obt)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(VTr(),lbt)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(_bt(),fbt)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(HTr(),pbt)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(GTr(),vbt)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(YTr(),Tbt)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(KTr(),kbt)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(XTr(),Dbt)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(ZTr(),Abt)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(QTr(),Ibt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(Cbt(),Ebt)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(exr(),Fbt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(txr(),Rbt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(rxr(),jbt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(nxr(),Ubt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>(ixr(),Jbt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(sxr(),qbt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(ybt(),hbt)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(axr(),Hbt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(oxr(),Ybt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(cxr(),Xbt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(rbt(),tbt)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(lxr(),Qbt)),"./languages/yaml.js")}),Ovt={};async function aSt(s,o,f){try{let d,y,x={},P,F=[],W=0,G=typeof o=="string"?await(Ovt[o]??(Ovt[o]=_xr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?fxr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,P=y.match.exec(s),P===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:P,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await aSt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(aSt,"F");var UBr=Fvt({"./themes/atom-dark.js":t(()=>Promise.resolve().then(()=>(uxr(),rSt)),"./themes/atom-dark.js"),"./themes/default.js":t(()=>Promise.resolve().then(()=>(sSt(),LOe)),"./themes/default.js"),"./themes/termcolor.js":t(()=>Promise.resolve().then(()=>(FOe(),tSt)),"./themes/termcolor.js")}),pxr=Promise.resolve().then(()=>(sSt(),LOe)),oSt=t(async(s,o)=>{let f="",d=(await pxr).default;return await aSt(s,o,(y,x)=>f+=x?`${d[x]??""}${y}\x1B[0m`:y),f},"ke");var lSt="\u2503",dxr="\u276F",uSt={".tsx":"ts",".jsx":"js",".js":"js",".ts":"ts",".css":"css",".json":"json",".html":"html",".astro":"ts",".vue":"ts"},fSt=class extends W1{static{t(this,"ErrorStackSource")}cssFile=new URL("./error_stack_source/style.css",Iy);async toHTML(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=uSt[cSt(o.fileName)]??"plain",y=`<div class="line-highlight" style="margin-top: ${`${o.source.findIndex(P=>P.lineNumber===o.lineNumber)*24}px`}"></div>`,x=await Avt(o.source.map(P=>P.chunk).join(`
915
+ `)[0].slice(3)||jG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),kbt={};Vl(kbt,{default:t(()=>wbt,"default")});var wbt,KTr=Ol(()=>{Cbt(),AOe(),wbt=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:jG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:jG}]},...OOe]}),Dbt={};Vl(Dbt,{default:t(()=>Pbt,"default")});var Pbt,XTr=Ol(()=>{Pbt=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),Abt={};Vl(Abt,{default:t(()=>Nbt,"default")});var Nbt,ZTr=Ol(()=>{Nbt=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),Ibt={};Vl(Ibt,{default:t(()=>Obt,"default")});var Obt,QTr=Ol(()=>{Obt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),Fbt={};Vl(Fbt,{default:t(()=>Lbt,"default")});var Lbt,exr=Ol(()=>{Lbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),Rbt={};Vl(Rbt,{default:t(()=>Mbt,"default")});var Mbt,txr=Ol(()=>{Mbt=[{expand:"strDouble"}]}),jbt={};Vl(jbt,{default:t(()=>Bbt,"default")});var Bbt,rxr=Ol(()=>{Bbt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Ubt={};Vl(Ubt,{default:t(()=>zbt,"default"),type:t(()=>$bt,"type")});var zbt,$bt,nxr=Ol(()=>{zbt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],$bt="oper"}),Jbt={};Vl(Jbt,{default:t(()=>Wbt,"default")});var Wbt,ixr=Ol(()=>{Wbt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),qbt={};Vl(qbt,{default:t(()=>Vbt,"default")});var Vbt,sxr=Ol(()=>{Vbt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),Hbt={};Vl(Hbt,{default:t(()=>Gbt,"default")});var Gbt,axr=Ol(()=>{Gbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Ybt={};Vl(Ybt,{default:t(()=>Kbt,"default")});var Kbt,oxr=Ol(()=>{_bt(),Kbt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...NOe]}),Xbt={};Vl(Xbt,{default:t(()=>Zbt,"default")});var Zbt,cxr=Ol(()=>{Zbt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Qbt={};Vl(Qbt,{default:t(()=>eSt,"default")});var eSt,lxr=Ol(()=>{eSt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),tSt={};Vl(tSt,{default:t(()=>jf,"default")});var jf,FOe=Ol(()=>{jf={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"}}),rSt={};Vl(rSt,{default:t(()=>nSt,"default")});var nSt,uxr=Ol(()=>{FOe(),nSt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.magenta,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.blue}}),LOe={};Vl(LOe,{default:t(()=>iSt,"default")});var iSt,sSt=Ol(()=>{FOe(),iSt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.red,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.magenta}}),fxr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},_xr=Fvt({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(LTr(),Lvt)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(jvt(),Mvt)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(RTr(),Bvt)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(MTr(),zvt)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>(jTr(),Jvt)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(BTr(),qvt)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>(Gvt(),Hvt)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(UTr(),Yvt)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(zTr(),Xvt)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>($Tr(),Qvt)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(JTr(),nbt)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(WTr(),sbt)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(qTr(),obt)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(VTr(),lbt)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(_bt(),fbt)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(HTr(),pbt)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(GTr(),vbt)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(YTr(),Tbt)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(KTr(),kbt)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(XTr(),Dbt)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(ZTr(),Abt)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(QTr(),Ibt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(Cbt(),Ebt)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(exr(),Fbt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(txr(),Rbt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(rxr(),jbt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(nxr(),Ubt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>(ixr(),Jbt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(sxr(),qbt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(ybt(),hbt)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(axr(),Hbt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(oxr(),Ybt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(cxr(),Xbt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(rbt(),tbt)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(lxr(),Qbt)),"./languages/yaml.js")}),Ovt={};async function aSt(s,o,f){try{let d,y,x={},P,F=[],W=0,G=typeof o=="string"?await(Ovt[o]??(Ovt[o]=_xr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?fxr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,P=y.match.exec(s),P===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:P,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await aSt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(aSt,"F");var zBr=Fvt({"./themes/atom-dark.js":t(()=>Promise.resolve().then(()=>(uxr(),rSt)),"./themes/atom-dark.js"),"./themes/default.js":t(()=>Promise.resolve().then(()=>(sSt(),LOe)),"./themes/default.js"),"./themes/termcolor.js":t(()=>Promise.resolve().then(()=>(FOe(),tSt)),"./themes/termcolor.js")}),pxr=Promise.resolve().then(()=>(sSt(),LOe)),oSt=t(async(s,o)=>{let f="",d=(await pxr).default;return await aSt(s,o,(y,x)=>f+=x?`${d[x]??""}${y}\x1B[0m`:y),f},"ke");var lSt="\u2503",dxr="\u276F",uSt={".tsx":"ts",".jsx":"js",".js":"js",".ts":"ts",".css":"css",".json":"json",".html":"html",".astro":"ts",".vue":"ts"},fSt=class extends W1{static{t(this,"ErrorStackSource")}cssFile=new URL("./error_stack_source/style.css",Iy);async toHTML(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=uSt[cSt(o.fileName)]??"plain",y=`<div class="line-highlight" style="margin-top: ${`${o.source.findIndex(P=>P.lineNumber===o.lineNumber)*24}px`}"></div>`,x=await Avt(o.source.map(P=>P.chunk).join(`
916
916
  `),f,!0);return x=x.replace('<div class="shj-numbers">',`<div class="shj-numbers" style="counter-set: line ${o.source[0].lineNumber-1}">`),`<pre><code class="shj-lang-js">${y}${x}</code></pre>`}async toANSI(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=uSt[cSt(o.fileName)]??"plain",d=Math.max(...o.source.map(({lineNumber:F})=>F)),y=String(d).length,x=o.source.map(({chunk:F})=>F).join(`
917
917
  `);return`
918
918
 
@@ -947,5 +947,5 @@ ${s}`,this.#n.set("injected",o),this}async toHTML(s){let o=await this.#m("layout
947
947
  ${W}`}}catch{}return o}async formatError(o){let f=await cOe(o,this.getFile),d,y=f.split(`
948
948
  `),x=y[0];return x&&!x.trim().startsWith("at ")?(d=new Error(x),d.name="",d.stack=`${x}
949
949
  ${y.slice(1).join(`
950
- `)}`):(d=new Error(""),d.name="",d.stack=f),await this.youch.toANSI(d,{frameSourceBuffer:3})}};function Uxr(s){return/at\s+(.*?)\s+\((.*?):(\d+):(\d+)\)|at\s+(.*?):(\d+):(\d+)/.test(s)}t(Uxr,"isJavaScriptStackTrace");var jSt=B_(MSt(),1);var qxr=/[/?<>\\:*|"]/g,Vxr=/[\x00-\x1f\x80-\x9f]/g,Hxr=/^\.+$/,Gxr=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,Yxr=/[. ]+$/;function Kxr(s,o=""){if(typeof s!="string")throw new Error("Input must be string");let f=s.replace(qxr,o).replace(Vxr,o).replace(Hxr,o).replace(Gxr,o).replace(Yxr,o);return(0,jSt.default)(f,255)}t(Kxr,"sanitize");BSt.default.config();export{_O as BUILD_OUTPUT_DIR,oA as BuildWatcher,hYt as DEV_PORTAL_OUTPUT_DIR_NAME,OSt as LogFormatter,gYt as OPEN_API_FILE_SUFFIX,xy as USER_CONFIG_DIR_NAME,yYt as WORKER_BUILD_OUTPUT_FILE,vYt as WORKER_BUILD_OUTPUT_SOURCEMAP_FILE,EPe as ZUPLO_FALLBACK_JSON_FILE,xPe as ZUPLO_PREFERRED_JSON_FILE,v3e as build,zbr as compileWorkerdServer,wm as env,H4e as getDevPortalConfig,cOe as mapStacktrace,r3e as outputApiBuildStart,Yle as outputBuildResult,Dmr as outputCritical,FOr as outputCriticalWithDetail,MOr as outputDevPortalBuildStart,LOr as outputFileTree,IOr as outputSuccess,ROr as outputTable,OOr as outputWarning,Kxr as sanitize,tSr as startDevServer};
950
+ `)}`):(d=new Error(""),d.name="",d.stack=f),await this.youch.toANSI(d,{frameSourceBuffer:3})}};function Uxr(s){return/at\s+(.*?)\s+\((.*?):(\d+):(\d+)\)|at\s+(.*?):(\d+):(\d+)/.test(s)}t(Uxr,"isJavaScriptStackTrace");var jSt=B_(MSt(),1);var qxr=/[/?<>\\:*|"]/g,Vxr=/[\x00-\x1f\x80-\x9f]/g,Hxr=/^\.+$/,Gxr=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,Yxr=/[. ]+$/;function Kxr(s,o=""){if(typeof s!="string")throw new Error("Input must be string");let f=s.replace(qxr,o).replace(Vxr,o).replace(Hxr,o).replace(Gxr,o).replace(Yxr,o);return(0,jSt.default)(f,255)}t(Kxr,"sanitize");BSt.default.config();export{_O as BUILD_OUTPUT_DIR,oA as BuildWatcher,hYt as DEV_PORTAL_OUTPUT_DIR_NAME,OSt as LogFormatter,gYt as OPEN_API_FILE_SUFFIX,xy as USER_CONFIG_DIR_NAME,yYt as WORKER_BUILD_OUTPUT_FILE,vYt as WORKER_BUILD_OUTPUT_SOURCEMAP_FILE,EPe as ZUPLO_FALLBACK_JSON_FILE,xPe as ZUPLO_PREFERRED_JSON_FILE,v3e as build,zbr as compileWorkerdServer,wm as env,H4e as getDevPortalConfig,cOe as mapStacktrace,r3e as outputApiBuildStart,Yle as outputBuildResult,Dmr as outputCritical,LOr as outputCriticalWithDetail,jOr as outputDevPortalBuildStart,ROr as outputFileTree,OOr as outputSuccess,MOr as outputTable,FOr as outputWarning,Kxr as sanitize,tSr as startDevServer};
951
951
  /*! For license information please see index.minified.js.LEGAL.txt */