UNPKG

@getontime/cli

Version:
14 lines 3.26 MB
"use strict";var Kue=Object.create;var M2=Object.defineProperty;var ZM=Object.getOwnPropertyDescriptor;var Zue=Object.getOwnPropertyNames;var Yue=Object.getPrototypeOf,Xue=Object.prototype.hasOwnProperty;var Si=(e,t)=>()=>(e&&(t=e(e=0)),t);var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YM=(e,t)=>{for(var a in t)M2(e,a,{get:t[a],enumerable:!0})},XM=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Zue(t))!Xue.call(e,s)&&s!==a&&M2(e,s,{get:()=>t[s],enumerable:!(r=ZM(t,s))||r.enumerable});return e};var Vt=(e,t,a)=>(a=e!=null?Kue(Yue(e)):{},XM(t||!e||!e.__esModule?M2(a,"default",{value:e,enumerable:!0}):a,e)),JM=e=>XM(M2({},"__esModule",{value:!0}),e),ha=(e,t,a,r)=>{for(var s=r>1?void 0:r?ZM(t,a):t,c=e.length-1,d;c>=0;c--)(d=e[c])&&(s=(r?d(t,a,s):d(s))||s);return r&&s&&M2(t,a,s),s};var QM=N((dqe,tpe)=>{tpe.exports={name:"dotenv",version:"16.6.1",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=text --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 nL=N((fqe,Vl)=>{var OA=require("fs"),V8=require("path"),rpe=require("os"),ape=require("crypto"),npe=QM(),DA=npe.version,ipe=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function spe(e){let t={},a=e.toString();a=a.replace(/\r\n?/mg,` `);let r;for(;(r=ipe.exec(a))!=null;){let s=r[1],c=r[2]||"";c=c.trim();let d=c[0];c=c.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),d==='"'&&(c=c.replace(/\\n/g,` `),c=c.replace(/\\r/g,"\r")),t[s]=c}return t}function ope(e){e=e||{};let t=aL(e);e.path=t;let a=bn.configDotenv(e);if(!a.parsed){let d=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw d.code="MISSING_DATA",d}let r=rL(e).split(","),s=r.length,c;for(let d=0;d<s;d++)try{let f=r[d].trim(),g=lpe(a,f);c=bn.decrypt(g.ciphertext,g.key);break}catch(f){if(d+1>=s)throw f}return bn.parse(c)}function cpe(e){console.log(`[dotenv@${DA}][WARN] ${e}`)}function j2(e){console.log(`[dotenv@${DA}][DEBUG] ${e}`)}function tL(e){console.log(`[dotenv@${DA}] ${e}`)}function rL(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function lpe(e,t){let a;try{a=new URL(t)}catch(f){if(f.code==="ERR_INVALID_URL"){let g=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 g.code="INVALID_DOTENV_KEY",g}throw f}let r=a.password;if(!r){let f=new Error("INVALID_DOTENV_KEY: Missing key part");throw f.code="INVALID_DOTENV_KEY",f}let s=a.searchParams.get("environment");if(!s){let f=new Error("INVALID_DOTENV_KEY: Missing environment part");throw f.code="INVALID_DOTENV_KEY",f}let c=`DOTENV_VAULT_${s.toUpperCase()}`,d=e.parsed[c];if(!d){let f=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${c} in your .env.vault file.`);throw f.code="NOT_FOUND_DOTENV_ENVIRONMENT",f}return{ciphertext:d,key:r}}function aL(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let a of e.path)OA.existsSync(a)&&(t=a.endsWith(".vault")?a:`${a}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=V8.resolve(process.cwd(),".env.vault");return OA.existsSync(t)?t:null}function eL(e){return e[0]==="~"?V8.join(rpe.homedir(),e.slice(1)):e}function upe(e){let t=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;(t||!a)&&tL("Loading env from encrypted .env.vault");let r=bn._parseVault(e),s=process.env;return e&&e.processEnv!=null&&(s=e.processEnv),bn.populate(s,r,e),{parsed:r}}function ppe(e){let t=V8.resolve(process.cwd(),".env"),a="utf8",r=!!(e&&e.debug),s=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?a=e.encoding:r&&j2("No encoding is specified. UTF-8 is used by default");let c=[t];if(e&&e.path)if(!Array.isArray(e.path))c=[eL(e.path)];else{c=[];for(let y of e.path)c.push(eL(y))}let d,f={};for(let y of c)try{let _=bn.parse(OA.readFileSync(y,{encoding:a}));bn.populate(f,_,e)}catch(_){r&&j2(`Failed to load ${y} ${_.message}`),d=_}let g=process.env;if(e&&e.processEnv!=null&&(g=e.processEnv),bn.populate(g,f,e),r||!s){let y=Object.keys(f).length,_=[];for(let S of c)try{let T=V8.relative(process.cwd(),S);_.push(T)}catch(T){r&&j2(`Failed to load ${S} ${T.message}`),d=T}tL(`injecting env (${y}) from ${_.join(",")}`)}return d?{parsed:f,error:d}:{parsed:f}}function dpe(e){if(rL(e).length===0)return bn.configDotenv(e);let t=aL(e);return t?bn._configVault(e):(cpe(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),bn.configDotenv(e))}function fpe(e,t){let a=Buffer.from(t.slice(-64),"hex"),r=Buffer.from(e,"base64"),s=r.subarray(0,12),c=r.subarray(-16);r=r.subarray(12,-16);try{let d=ape.createDecipheriv("aes-256-gcm",a,s);return d.setAuthTag(c),`${d.update(r)}${d.final()}`}catch(d){let f=d instanceof RangeError,g=d.message==="Invalid key length",y=d.message==="Unsupported state or unable to authenticate data";if(f||g){let _=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw _.code="INVALID_DOTENV_KEY",_}else if(y){let _=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw _.code="DECRYPTION_FAILED",_}else throw d}}function mpe(e,t,a={}){let r=!!(a&&a.debug),s=!!(a&&a.override);if(typeof t!="object"){let c=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw c.code="OBJECT_REQUIRED",c}for(let c of Object.keys(t))Object.prototype.hasOwnProperty.call(e,c)?(s===!0&&(e[c]=t[c]),r&&j2(s===!0?`"${c}" is already defined and WAS overwritten`:`"${c}" is already defined and was NOT overwritten`)):e[c]=t[c]}var bn={configDotenv:ppe,_configVault:upe,_parseVault:ope,config:dpe,decrypt:fpe,parse:spe,populate:mpe};Vl.exports.configDotenv=bn.configDotenv;Vl.exports._configVault=bn._configVault;Vl.exports._parseVault=bn._parseVault;Vl.exports.config=bn.config;Vl.exports.decrypt=bn.decrypt;Vl.exports.parse=bn.parse;Vl.exports.populate=bn.populate;Vl.exports=bn});var sL=N((mqe,iL)=>{var Ld={};process.env.DOTENV_CONFIG_ENCODING!=null&&(Ld.encoding=process.env.DOTENV_CONFIG_ENCODING);process.env.DOTENV_CONFIG_PATH!=null&&(Ld.path=process.env.DOTENV_CONFIG_PATH);process.env.DOTENV_CONFIG_QUIET!=null&&(Ld.quiet=process.env.DOTENV_CONFIG_QUIET);process.env.DOTENV_CONFIG_DEBUG!=null&&(Ld.debug=process.env.DOTENV_CONFIG_DEBUG);process.env.DOTENV_CONFIG_OVERRIDE!=null&&(Ld.override=process.env.DOTENV_CONFIG_OVERRIDE);process.env.DOTENV_CONFIG_DOTENV_KEY!=null&&(Ld.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY);iL.exports=Ld});var cL=N((hqe,oL)=>{var hpe=/^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/;oL.exports=function(t){let a=t.reduce(function(r,s){let c=s.match(hpe);return c&&(r[c[1]]=c[2]),r},{});return"quiet"in a||(a.quiet="true"),a}});var G8=N((vqe,dL)=>{var vpe=require("path").relative;dL.exports=bpe;var gpe=process.cwd();function uL(e,t){for(var a=e.split(/[ ,]+/),r=String(t).toLowerCase(),s=0;s<a.length;s++){var c=a[s];if(c&&(c==="*"||c.toLowerCase()===r))return!0}return!1}function xpe(e,t,a){var r=Object.getOwnPropertyDescriptor(e,t),s=r.value;return r.get=function(){return s},r.writable&&(r.set=function(d){return s=d}),delete r.value,delete r.writable,Object.defineProperty(e,t,r),r}function ype(e){for(var t="",a=0;a<e;a++)t+=", arg"+a;return t.substr(2)}function wpe(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var a=0;a<e.length;a++)t+=` at `+e[a].toString();return t}function bpe(e){if(!e)throw new TypeError("argument namespace is required");var t=W8(),a=Mf(t[1]),r=a[0];function s(c){H8.call(s,c)}return s._file=r,s._ignored=Epe(e),s._namespace=e,s._traced=Spe(e),s._warned=Object.create(null),s.function=Cpe,s.property=kpe,s}function _pe(e,t){var a=typeof e.listenerCount!="function"?e.listeners(t).length:e.listenerCount(t);return a>0}function Epe(e){if(process.noDeprecation)return!0;var t=process.env.NO_DEPRECATION||"";return uL(t,e)}function Spe(e){if(process.traceDeprecation)return!0;var t=process.env.TRACE_DEPRECATION||"";return uL(t,e)}function H8(e,t){var a=_pe(process,"deprecation");if(!(!a&&this._ignored)){var r,s,c,d,f=0,g=!1,y=W8(),_=this._file;for(t?(d=t,c=Mf(y[1]),c.name=d.name,_=c[0]):(f=2,d=Mf(y[f]),c=d);f<y.length;f++)if(r=Mf(y[f]),s=r[0],s===_)g=!0;else if(s===this._file)_=this._file;else if(g)break;var S=r?d.join(":")+"__"+r.join(":"):void 0;if(!(S!==void 0&&S in this._warned)){this._warned[S]=!0;var T=e;if(T||(T=c===d||!c.name?lL(d):lL(c)),a){var O=pL(this._namespace,T,y.slice(f));process.emit("deprecation",O);return}var D=process.stderr.isTTY?Tpe:Ape,P=D.call(this,T,r,y.slice(f));process.stderr.write(P+` `,"utf8")}}}function Mf(e){var t=e.getFileName()||"<anonymous>",a=e.getLineNumber(),r=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var s=[t,a,r];return s.callSite=e,s.name=e.getFunctionName(),s}function lL(e){var t=e.callSite,a=e.name;a||(a="<anonymous@"+RA(e)+">");var r=t.getThis(),s=r&&t.getTypeName();return s==="Object"&&(s=void 0),s==="Function"&&(s=r.name||s),s&&t.getMethodName()?s+"."+a:a}function Ape(e,t,a){var r=new Date().toUTCString(),s=r+" "+this._namespace+" deprecated "+e;if(this._traced){for(var c=0;c<a.length;c++)s+=` at `+a[c].toString();return s}return t&&(s+=" at "+RA(t)),s}function Tpe(e,t,a){var r="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var s=0;s<a.length;s++)r+=` \x1B[36mat `+a[s].toString()+"\x1B[39m";return r}return t&&(r+=" \x1B[36m"+RA(t)+"\x1B[39m"),r}function RA(e){return vpe(gpe,e[0])+":"+e[1]+":"+e[2]}function W8(){var e=Error.stackTraceLimit,t={},a=Error.prepareStackTrace;Error.prepareStackTrace=Fpe,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var r=t.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,r}function Fpe(e,t){return t}function Cpe(e,t){if(typeof e!="function")throw new TypeError("argument fn must be a function");var a=ype(e.length),r=W8(),s=Mf(r[1]);s.name=e.name;var c=new Function("fn","log","deprecate","message","site",`"use strict" return function (`+a+`) {log.call(deprecate, message, site) return fn.apply(this, arguments) }`)(e,H8,this,t,s);return c}function kpe(e,t,a){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("argument obj must be object");var r=Object.getOwnPropertyDescriptor(e,t);if(!r)throw new TypeError("must call property on owner object");if(!r.configurable)throw new TypeError("property must be configurable");var s=this,c=W8(),d=Mf(c[1]);d.name=t,"value"in r&&(r=xpe(e,t,a));var f=r.get,g=r.set;typeof f=="function"&&(r.get=function(){return H8.call(s,a,d),f.apply(this,arguments)}),typeof g=="function"&&(r.set=function(){return H8.call(s,a,d),g.apply(this,arguments)}),Object.defineProperty(e,t,r)}function pL(e,t,a){var r=new Error,s;return Object.defineProperty(r,"constructor",{value:pL}),Object.defineProperty(r,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(r,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(r,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(r,"stack",{configurable:!0,enumerable:!1,get:function(){return s!==void 0?s:s=wpe.call(this,a)},set:function(d){s=d}}),r}});var mL=N((gqe,fL)=>{"use strict";fL.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?Ope:Dpe);function Ope(e,t){return e.__proto__=t,e}function Dpe(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=t[a]);return e}});var hL=N((xqe,Rpe)=>{Rpe.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var $2=N((yqe,gL)=>{"use strict";var PA=hL();gL.exports=tc;tc.message=PA;tc.code=Ppe(PA);tc.codes=Ipe(PA);tc.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};tc.empty={204:!0,205:!0,304:!0};tc.retry={502:!0,503:!0,504:!0};function Ppe(e){var t={};return Object.keys(e).forEach(function(r){var s=e[r],c=Number(r);t[s.toLowerCase()]=c}),t}function Ipe(e){return Object.keys(e).map(function(a){return Number(a)})}function Npe(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(tc.code,t))throw new Error('invalid status message: "'+e+'"');return tc.code[t]}function vL(e){if(!Object.prototype.hasOwnProperty.call(tc.message,e))throw new Error("invalid status code: "+e);return tc.message[e]}function tc(e){if(typeof e=="number")return vL(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?Npe(e):vL(t)}});var xL=N((wqe,IA)=>{typeof Object.create=="function"?IA.exports=function(t,a){a&&(t.super_=a,t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:IA.exports=function(t,a){if(a){t.super_=a;var r=function(){};r.prototype=a.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Qu=N((bqe,MA)=>{try{if(NA=require("util"),typeof NA.inherits!="function")throw"";MA.exports=NA.inherits}catch{MA.exports=xL()}var NA});var wL=N((_qe,yL)=>{"use strict";yL.exports=Mpe;function Mpe(e){return e.split(" ").map(function(t){return t.slice(0,1).toUpperCase()+t.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var Ud=N((Eqe,Bd)=>{"use strict";var Lpe=G8()("http-errors"),bL=mL(),Lf=$2(),LA=Qu(),Bpe=wL();Bd.exports=z8;Bd.exports.HttpError=Upe();Bd.exports.isHttpError=jpe(Bd.exports.HttpError);Vpe(Bd.exports,Lf.codes,Bd.exports.HttpError);function _L(e){return+(String(e).charAt(0)+"00")}function z8(){for(var e,t,a=500,r={},s=0;s<arguments.length;s++){var c=arguments[s],d=typeof c;if(d==="object"&&c instanceof Error)e=c,a=e.status||e.statusCode||a;else if(d==="number"&&s===0)a=c;else if(d==="string")t=c;else if(d==="object")r=c;else throw new TypeError("argument #"+(s+1)+" unsupported type "+d)}typeof a=="number"&&(a<400||a>=600)&&Lpe("non-error status code; use only 4xx or 5xx status codes"),(typeof a!="number"||!Lf.message[a]&&(a<400||a>=600))&&(a=500);var f=z8[a]||z8[_L(a)];e||(e=f?new f(t):new Error(t||Lf.message[a]),Error.captureStackTrace(e,z8)),(!f||!(e instanceof f)||e.status!==a)&&(e.expose=a<500,e.status=e.statusCode=a);for(var g in r)g!=="status"&&g!=="statusCode"&&(e[g]=r[g]);return e}function Upe(){function e(){throw new TypeError("cannot construct abstract class")}return LA(e,Error),e}function qpe(e,t,a){var r=SL(t);function s(c){var d=c??Lf.message[a],f=new Error(d);return Error.captureStackTrace(f,s),bL(f,s.prototype),Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,value:d,writable:!0}),Object.defineProperty(f,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),f}return LA(s,e),EL(s,r),s.prototype.status=a,s.prototype.statusCode=a,s.prototype.expose=!0,s}function jpe(e){return function(a){return!a||typeof a!="object"?!1:a instanceof e?!0:a instanceof Error&&typeof a.expose=="boolean"&&typeof a.statusCode=="number"&&a.status===a.statusCode}}function $pe(e,t,a){var r=SL(t);function s(c){var d=c??Lf.message[a],f=new Error(d);return Error.captureStackTrace(f,s),bL(f,s.prototype),Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,value:d,writable:!0}),Object.defineProperty(f,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),f}return LA(s,e),EL(s,r),s.prototype.status=a,s.prototype.statusCode=a,s.prototype.expose=!1,s}function EL(e,t){var a=Object.getOwnPropertyDescriptor(e,"name");a&&a.configurable&&(a.value=t,Object.defineProperty(e,"name",a))}function Vpe(e,t,a){t.forEach(function(s){var c,d=Bpe(Lf.message[s]);switch(_L(s)){case 400:c=qpe(a,d,s);break;case 500:c=$pe(a,d,s);break}c&&(e[s]=c,e[d]=c)})}function SL(e){return e.substr(-5)!=="Error"?e+"Error":e}});var BA=N((Sqe,AL)=>{var Bf=1e3,Uf=Bf*60,qf=Uf*60,qd=qf*24,Hpe=qd*7,Wpe=qd*365.25;AL.exports=function(e,t){t=t||{};var a=typeof e;if(a==="string"&&e.length>0)return Gpe(e);if(a==="number"&&isFinite(e))return t.long?Kpe(e):zpe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gpe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return a*Wpe;case"weeks":case"week":case"w":return a*Hpe;case"days":case"day":case"d":return a*qd;case"hours":case"hour":case"hrs":case"hr":case"h":return a*qf;case"minutes":case"minute":case"mins":case"min":case"m":return a*Uf;case"seconds":case"second":case"secs":case"sec":case"s":return a*Bf;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function zpe(e){var t=Math.abs(e);return t>=qd?Math.round(e/qd)+"d":t>=qf?Math.round(e/qf)+"h":t>=Uf?Math.round(e/Uf)+"m":t>=Bf?Math.round(e/Bf)+"s":e+"ms"}function Kpe(e){var t=Math.abs(e);return t>=qd?K8(e,t,qd,"day"):t>=qf?K8(e,t,qf,"hour"):t>=Uf?K8(e,t,Uf,"minute"):t>=Bf?K8(e,t,Bf,"second"):e+" ms"}function K8(e,t,a,r){var s=t>=a*1.5;return Math.round(e/a)+" "+r+(s?"s":"")}});var UA=N((Aqe,TL)=>{function Zpe(e){a.debug=a,a.default=a,a.coerce=g,a.disable=d,a.enable=s,a.enabled=f,a.humanize=BA(),a.destroy=y,Object.keys(e).forEach(_=>{a[_]=e[_]}),a.names=[],a.skips=[],a.formatters={};function t(_){let S=0;for(let T=0;T<_.length;T++)S=(S<<5)-S+_.charCodeAt(T),S|=0;return a.colors[Math.abs(S)%a.colors.length]}a.selectColor=t;function a(_){let S,T=null,O,D;function P(...U){if(!P.enabled)return;let G=P,pe=Number(new Date),me=pe-(S||pe);G.diff=me,G.prev=S,G.curr=pe,S=pe,U[0]=a.coerce(U[0]),typeof U[0]!="string"&&U.unshift("%O");let Ie=0;U[0]=U[0].replace(/%([a-zA-Z%])/g,(Fe,Ke)=>{if(Fe==="%%")return"%";Ie++;let Et=a.formatters[Ke];if(typeof Et=="function"){let $e=U[Ie];Fe=Et.call(G,$e),U.splice(Ie,1),Ie--}return Fe}),a.formatArgs.call(G,U),(G.log||a.log).apply(G,U)}return P.namespace=_,P.useColors=a.useColors(),P.color=a.selectColor(_),P.extend=r,P.destroy=a.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:(O!==a.namespaces&&(O=a.namespaces,D=a.enabled(_)),D),set:U=>{T=U}}),typeof a.init=="function"&&a.init(P),P}function r(_,S){let T=a(this.namespace+(typeof S>"u"?":":S)+_);return T.log=this.log,T}function s(_){a.save(_),a.namespaces=_,a.names=[],a.skips=[];let S=(typeof _=="string"?_:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let T of S)T[0]==="-"?a.skips.push(T.slice(1)):a.names.push(T)}function c(_,S){let T=0,O=0,D=-1,P=0;for(;T<_.length;)if(O<S.length&&(S[O]===_[T]||S[O]==="*"))S[O]==="*"?(D=O,P=T,O++):(T++,O++);else if(D!==-1)O=D+1,P++,T=P;else return!1;for(;O<S.length&&S[O]==="*";)O++;return O===S.length}function d(){let _=[...a.names,...a.skips.map(S=>"-"+S)].join(",");return a.enable(""),_}function f(_){for(let S of a.skips)if(c(_,S))return!1;for(let S of a.names)if(c(_,S))return!0;return!1}function g(_){return _ instanceof Error?_.stack||_.message:_}function y(){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 a.enable(a.load()),a}TL.exports=Zpe});var FL=N((ls,Z8)=>{ls.formatArgs=Xpe;ls.save=Jpe;ls.load=Qpe;ls.useColors=Ype;ls.storage=ede();ls.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ls.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 Ype(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xpe(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Z8.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let a=0,r=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(a++,s==="%c"&&(r=a))}),e.splice(r,0,t)}ls.log=console.debug||console.log||(()=>{});function Jpe(e){try{e?ls.storage.setItem("debug",e):ls.storage.removeItem("debug")}catch{}}function Qpe(){let e;try{e=ls.storage.getItem("debug")||ls.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ede(){try{return localStorage}catch{}}Z8.exports=UA()(ls);var{formatters:tde}=Z8.exports;tde.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var kL=N((Tqe,CL)=>{"use strict";CL.exports=(e,t=process.argv)=>{let a=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(a+e),s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}});var RL=N((Fqe,DL)=>{"use strict";var rde=require("os"),OL=require("tty"),uo=kL(),{env:jn}=process,ep;uo("no-color")||uo("no-colors")||uo("color=false")||uo("color=never")?ep=0:(uo("color")||uo("colors")||uo("color=true")||uo("color=always"))&&(ep=1);"FORCE_COLOR"in jn&&(jn.FORCE_COLOR==="true"?ep=1:jn.FORCE_COLOR==="false"?ep=0:ep=jn.FORCE_COLOR.length===0?1:Math.min(parseInt(jn.FORCE_COLOR,10),3));function qA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function jA(e,t){if(ep===0)return 0;if(uo("color=16m")||uo("color=full")||uo("color=truecolor"))return 3;if(uo("color=256"))return 2;if(e&&!t&&ep===void 0)return 0;let a=ep||0;if(jn.TERM==="dumb")return a;if(process.platform==="win32"){let r=rde.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in jn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in jn)||jn.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in jn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jn.TEAMCITY_VERSION)?1:0;if(jn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in jn){let r=parseInt((jn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jn.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jn.TERM)||"COLORTERM"in jn?1:a}function ade(e){let t=jA(e,e&&e.isTTY);return qA(t)}DL.exports={supportsColor:ade,stdout:qA(jA(!0,OL.isatty(1))),stderr:qA(jA(!0,OL.isatty(2)))}});var IL=N(($n,X8)=>{var nde=require("tty"),Y8=require("util");$n.init=pde;$n.log=cde;$n.formatArgs=sde;$n.save=lde;$n.load=ude;$n.useColors=ide;$n.destroy=Y8.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");$n.colors=[6,2,3,4,5,1];try{let e=RL();e&&(e.stderr||e).level>=2&&($n.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{}$n.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let a=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,c)=>c.toUpperCase()),r=process.env[t];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),e[a]=r,e},{});function ide(){return"colors"in $n.inspectOpts?!!$n.inspectOpts.colors:nde.isatty(process.stderr.fd)}function sde(e){let{namespace:t,useColors:a}=this;if(a){let r=this.color,s="\x1B[3"+(r<8?r:"8;5;"+r),c=` ${s};1m${t} \x1B[0m`;e[0]=c+e[0].split(` `).join(` `+c),e.push(s+"m+"+X8.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ode()+t+" "+e[0]}function ode(){return $n.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cde(...e){return process.stderr.write(Y8.formatWithOptions($n.inspectOpts,...e)+` `)}function lde(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function ude(){return process.env.DEBUG}function pde(e){e.inspectOpts={};let t=Object.keys($n.inspectOpts);for(let a=0;a<t.length;a++)e.inspectOpts[t[a]]=$n.inspectOpts[t[a]]}X8.exports=UA()($n);var{formatters:PL}=X8.exports;PL.o=function(e){return this.inspectOpts.colors=this.useColors,Y8.inspect(e,this.inspectOpts).split(` `).map(t=>t.trim()).join(" ")};PL.O=function(e){return this.inspectOpts.colors=this.useColors,Y8.inspect(e,this.inspectOpts)}});var us=N((Cqe,$A)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$A.exports=FL():$A.exports=IL()});var ML=N((kqe,NL)=>{"use strict";NL.exports=dde;function dde(e,t){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var a=[],r=0;r<e.length;r++){var s=e[r];if(!Array.isArray(s)||s.length<2)throw new TypeError("each array member must be [ee, events...]");for(var c=s[0],d=1;d<s.length;d++){var f=s[d],g=fde(f,y);c.on(f,g),a.push({ee:c,event:f,fn:g})}}function y(){_(),t.apply(null,arguments)}function _(){for(var T,O=0;O<a.length;O++)T=a[O],T.ee.removeListener(T.event,T.fn)}function S(T){t=T}return S.cancel=_,S}function fde(e,t){return function(r){for(var s=new Array(arguments.length),c=this,d=e==="error"?r:null,f=0;f<s.length;f++)s[f]=arguments[f];t(d,c,e,s)}}});var Hl=N((Oqe,VA)=>{"use strict";VA.exports=hde;VA.exports.isFinished=UL;var LL=wde(),BL=ML(),mde=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function hde(e,t){return UL(e)!==!1?(mde(t,null,e),e):(gde(e,bde(t)),e)}function UL(e){var t=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||t&&!t.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable)}function vde(e,t){var a,r,s=!1;function c(f){a.cancel(),r.cancel(),s=!0,t(f)}a=r=BL([[e,"end","finish"]],c);function d(f){e.removeListener("socket",d),!s&&a===r&&(r=BL([[f,"error","close"]],c))}if(e.socket){d(e.socket);return}e.on("socket",d),e.socket===void 0&&yde(e,d)}function gde(e,t){var a=e.__onFinished;(!a||!a.queue)&&(a=e.__onFinished=xde(e),vde(e,a)),a.queue.push(t)}function xde(e){function t(a){if(e.__onFinished===t&&(e.__onFinished=null),!!t.queue){var r=t.queue;t.queue=null;for(var s=0;s<r.length;s++)r[s](a,e)}}return t.queue=[],t}function yde(e,t){var a=e.assignSocket;typeof a=="function"&&(e.assignSocket=function(s){a.call(this,s),t(s)})}function wde(){try{return require("async_hooks")}catch{return{}}}function bde(e){var t;return LL.AsyncResource&&(t=new LL.AsyncResource(e.name||"bound-anonymous-fn")),!t||!t.runInAsyncScope?e:t.runInAsyncScope.bind(t,e,null)}});var HA=N((Dqe,J8)=>{"use strict";J8.exports=Ade;J8.exports.format=qL;J8.exports.parse=jL;var _de=/\B(?=(\d{3})+(?!\d))/g,Ede=/(?:\.0*|(\.[^0]+)0+)$/,tp={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},Sde=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Ade(e,t){return typeof e=="string"?jL(e):typeof e=="number"?qL(e,t):null}function qL(e,t){if(!Number.isFinite(e))return null;var a=Math.abs(e),r=t&&t.thousandsSeparator||"",s=t&&t.unitSeparator||"",c=t&&t.decimalPlaces!==void 0?t.decimalPlaces:2,d=!!(t&&t.fixedDecimals),f=t&&t.unit||"";(!f||!tp[f.toLowerCase()])&&(a>=tp.pb?f="PB":a>=tp.tb?f="TB":a>=tp.gb?f="GB":a>=tp.mb?f="MB":a>=tp.kb?f="KB":f="B");var g=e/tp[f.toLowerCase()],y=g.toFixed(c);return d||(y=y.replace(Ede,"$1")),r&&(y=y.split(".").map(function(_,S){return S===0?_.replace(_de,r):_}).join(".")),y+s+f}function jL(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var t=Sde.exec(e),a,r="b";return t?(a=parseFloat(t[1]),r=t[4].toLowerCase()):(a=parseInt(e,10),r="b"),isNaN(a)?null:Math.floor(tp[r]*a)}});var Wl=N((Rqe,$L)=>{"use strict";var Q8=require("buffer"),jf=Q8.Buffer,po={},fo;for(fo in Q8)Q8.hasOwnProperty(fo)&&(fo==="SlowBuffer"||fo==="Buffer"||(po[fo]=Q8[fo]));var $f=po.Buffer={};for(fo in jf)jf.hasOwnProperty(fo)&&(fo==="allocUnsafe"||fo==="allocUnsafeSlow"||($f[fo]=jf[fo]));po.Buffer.prototype=jf.prototype;(!$f.from||$f.from===Uint8Array.from)&&($f.from=function(e,t,a){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return jf(e,t,a)});$f.alloc||($f.alloc=function(e,t,a){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=jf(e);return!t||t.length===0?r.fill(0):typeof a=="string"?r.fill(t,a):r.fill(t),r});if(!po.kStringMaxLength)try{po.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}po.constants||(po.constants={MAX_LENGTH:po.kMaxLength},po.kStringMaxLength&&(po.constants.MAX_STRING_LENGTH=po.kStringMaxLength));$L.exports=po});var HL=N(zA=>{"use strict";var VL="\uFEFF";zA.PrependBOM=WA;function WA(e,t){this.encoder=e,this.addBOM=!0}WA.prototype.write=function(e){return this.addBOM&&(e=VL+e,this.addBOM=!1),this.encoder.write(e)};WA.prototype.end=function(){return this.encoder.end()};zA.StripBOM=GA;function GA(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}GA.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||(t[0]===VL&&(t=t.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),t};GA.prototype.end=function(){return this.decoder.end()}});var GL=N((Iqe,WL)=>{"use strict";var jd=Wl().Buffer;WL.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:ZA};function ZA(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc==="base64"?this.encoder=JA:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=QA,jd.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=eT,this.defaultCharUnicode=t.defaultCharUnicode))}ZA.prototype.encoder=XA;ZA.prototype.decoder=YA;var KA=require("string_decoder").StringDecoder;KA.prototype.end||(KA.prototype.end=function(){});function YA(e,t){this.decoder=new KA(t.enc)}YA.prototype.write=function(e){return jd.isBuffer(e)||(e=jd.from(e)),this.decoder.write(e)};YA.prototype.end=function(){return this.decoder.end()};function XA(e,t){this.enc=t.enc}XA.prototype.write=function(e){return jd.from(e,this.enc)};XA.prototype.end=function(){};function JA(e,t){this.prevStr=""}JA.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),jd.from(e,"base64")};JA.prototype.end=function(){return jd.from(this.prevStr,"base64")};function QA(e,t){}QA.prototype.write=function(e){for(var t=jd.alloc(e.length*3),a=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);s<128?t[a++]=s:s<2048?(t[a++]=192+(s>>>6),t[a++]=128+(s&63)):(t[a++]=224+(s>>>12),t[a++]=128+(s>>>6&63),t[a++]=128+(s&63))}return t.slice(0,a)};QA.prototype.end=function(){};function eT(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}eT.prototype.write=function(e){for(var t=this.acc,a=this.contBytes,r=this.accBytes,s="",c=0;c<e.length;c++){var d=e[c];(d&192)!==128?(a>0&&(s+=this.defaultCharUnicode,a=0),d<128?s+=String.fromCharCode(d):d<224?(t=d&31,a=1,r=1):d<240?(t=d&15,a=2,r=1):s+=this.defaultCharUnicode):a>0?(t=t<<6|d&63,a--,r++,a===0&&(r===2&&t<128&&t>0?s+=this.defaultCharUnicode:r===3&&t<2048?s+=this.defaultCharUnicode:s+=String.fromCharCode(t))):s+=this.defaultCharUnicode}return this.acc=t,this.contBytes=a,this.accBytes=r,s};eT.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}});var ZL=N(rp=>{"use strict";var e9=Wl().Buffer;rp._utf32=tT;function tT(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}rp.utf32le={type:"_utf32",isLE:!0};rp.utf32be={type:"_utf32",isLE:!1};rp.ucs4le="utf32le";rp.ucs4be="utf32be";tT.prototype.encoder=rT;tT.prototype.decoder=aT;function rT(e,t){this.isLE=t.isLE,this.highSurrogate=0}rT.prototype.write=function(e){for(var t=e9.from(e,"ucs2"),a=e9.alloc(t.length*2),r=this.isLE?a.writeUInt32LE:a.writeUInt32BE,s=0,c=0;c<t.length;c+=2){var d=t.readUInt16LE(c),f=55296<=d&&d<56320,g=56320<=d&&d<57344;if(this.highSurrogate)if(f||!g)r.call(a,this.highSurrogate,s),s+=4;else{var y=(this.highSurrogate-55296<<10|d-56320)+65536;r.call(a,y,s),s+=4,this.highSurrogate=0;continue}f?this.highSurrogate=d:(r.call(a,d,s),s+=4,this.highSurrogate=0)}return s<a.length&&(a=a.slice(0,s)),a};rT.prototype.end=function(){if(this.highSurrogate){var e=e9.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function aT(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}aT.prototype.write=function(e){if(e.length===0)return"";var t=0,a=0,r=e9.alloc(e.length+4),s=0,c=this.isLE,d=this.overflow,f=this.badChar;if(d.length>0){for(;t<e.length&&d.length<4;t++)d.push(e[t]);d.length===4&&(c?a=d[t]|d[t+1]<<8|d[t+2]<<16|d[t+3]<<24:a=d[t+3]|d[t+2]<<8|d[t+1]<<16|d[t]<<24,d.length=0,s=zL(r,s,a,f))}for(;t<e.length-3;t+=4)c?a=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:a=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,s=zL(r,s,a,f);for(;t<e.length;t++)d.push(e[t]);return r.slice(0,s).toString("ucs2")};function zL(e,t,a,r){if((a<0||a>1114111)&&(a=r),a>=65536){a-=65536;var s=55296|a>>10;e[t++]=s&255,e[t++]=s>>8;var a=56320|a&1023}return e[t++]=a&255,e[t++]=a>>8,t}aT.prototype.end=function(){this.overflow.length=0};rp.utf32=nT;rp.ucs4="utf32";function nT(e,t){this.iconv=t}nT.prototype.encoder=iT;nT.prototype.decoder=sT;function iT(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}iT.prototype.write=function(e){return this.encoder.write(e)};iT.prototype.end=function(){return this.encoder.end()};function sT(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}sT.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=KL(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",r=0;r<this.initialBufs.length;r++)a+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)};sT.prototype.end=function(){if(!this.decoder){var e=KL(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function KL(e,t){var a=[],r=0,s=0,c=0,d=0,f=0;e:for(var g=0;g<e.length;g++)for(var y=e[g],_=0;_<y.length;_++)if(a.push(y[_]),a.length===4){if(r===0){if(a[0]===255&&a[1]===254&&a[2]===0&&a[3]===0)return"utf-32le";if(a[0]===0&&a[1]===0&&a[2]===254&&a[3]===255)return"utf-32be"}if((a[0]!==0||a[1]>16)&&c++,(a[3]!==0||a[2]>16)&&s++,a[0]===0&&a[1]===0&&(a[2]!==0||a[3]!==0)&&f++,(a[0]!==0||a[1]!==0)&&a[2]===0&&a[3]===0&&d++,a.length=0,r++,r>=100)break e}return f-c>d-s?"utf-32be":f-c<d-s?"utf-32le":t||"utf-32le"}});var JL=N(dT=>{"use strict";var YL=Wl().Buffer;dT.utf16be=t9;function t9(){}t9.prototype.encoder=oT;t9.prototype.decoder=cT;t9.prototype.bomAware=!0;function oT(){}oT.prototype.write=function(e){for(var t=YL.from(e,"ucs2"),a=0;a<t.length;a+=2){var r=t[a];t[a]=t[a+1],t[a+1]=r}return t};oT.prototype.end=function(){};function cT(){this.overflowByte=-1}cT.prototype.write=function(e){if(e.length==0)return"";var t=YL.alloc(e.length+1),a=0,r=0;for(this.overflowByte!==-1&&(t[0]=e[0],t[1]=this.overflowByte,a=1,r=2);a<e.length-1;a+=2,r+=2)t[r]=e[a+1],t[r+1]=e[a];return this.overflowByte=a==e.length-1?e[e.length-1]:-1,t.slice(0,r).toString("ucs2")};cT.prototype.end=function(){this.overflowByte=-1};dT.utf16=lT;function lT(e,t){this.iconv=t}lT.prototype.encoder=uT;lT.prototype.decoder=pT;function uT(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}uT.prototype.write=function(e){return this.encoder.write(e)};uT.prototype.end=function(){return this.encoder.end()};function pT(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}pT.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=XL(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",r=0;r<this.initialBufs.length;r++)a+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)};pT.prototype.end=function(){if(!this.decoder){var e=XL(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function XL(e,t){var a=[],r=0,s=0,c=0;e:for(var d=0;d<e.length;d++)for(var f=e[d],g=0;g<f.length;g++)if(a.push(f[g]),a.length===2){if(r===0){if(a[0]===255&&a[1]===254)return"utf-16le";if(a[0]===254&&a[1]===255)return"utf-16be"}if(a[0]===0&&a[1]!==0&&c++,a[0]!==0&&a[1]===0&&s++,a.length=0,r++,r>=100)break e}return c>s?"utf-16be":c<s?"utf-16le":t||"utf-16le"}});var eB=N(n9=>{"use strict";var Zc=Wl().Buffer;n9.utf7=r9;n9.unicode11utf7="utf7";function r9(e,t){this.iconv=t}r9.prototype.encoder=mT;r9.prototype.decoder=hT;r9.prototype.bomAware=!0;var Tde=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function mT(e,t){this.iconv=t.iconv}mT.prototype.write=function(e){return Zc.from(e.replace(Tde,function(t){return"+"+(t==="+"?"":this.iconv.encode(t,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};mT.prototype.end=function(){};function hT(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var Fde=/[A-Za-z0-9\/+]/,vT=[];for(V2=0;V2<256;V2++)vT[V2]=Fde.test(String.fromCharCode(V2));var V2,Cde=43,$d=45,fT=38;hT.prototype.write=function(e){for(var t="",a=0,r=this.inBase64,s=this.base64Accum,c=0;c<e.length;c++)if(!r)e[c]==Cde&&(t+=this.iconv.decode(e.slice(a,c),"ascii"),a=c+1,r=!0);else if(!vT[e[c]]){if(c==a&&e[c]==$d)t+="+";else{var d=s+this.iconv.decode(e.slice(a,c),"ascii");t+=this.iconv.decode(Zc.from(d,"base64"),"utf16-be")}e[c]!=$d&&c--,a=c+1,r=!1,s=""}if(!r)t+=this.iconv.decode(e.slice(a),"ascii");else{var d=s+this.iconv.decode(e.slice(a),"ascii"),f=d.length-d.length%8;s=d.slice(f),d=d.slice(0,f),t+=this.iconv.decode(Zc.from(d,"base64"),"utf16-be")}return this.inBase64=r,this.base64Accum=s,t};hT.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(Zc.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e};n9.utf7imap=a9;function a9(e,t){this.iconv=t}a9.prototype.encoder=gT;a9.prototype.decoder=xT;a9.prototype.bomAware=!0;function gT(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=Zc.alloc(6),this.base64AccumIdx=0}gT.prototype.write=function(e){for(var t=this.inBase64,a=this.base64Accum,r=this.base64AccumIdx,s=Zc.alloc(e.length*5+10),c=0,d=0;d<e.length;d++){var f=e.charCodeAt(d);32<=f&&f<=126?(t&&(r>0&&(c+=s.write(a.slice(0,r).toString("base64").replace(/\//g,",").replace(/=+$/,""),c),r=0),s[c++]=$d,t=!1),t||(s[c++]=f,f===fT&&(s[c++]=$d))):(t||(s[c++]=fT,t=!0),t&&(a[r++]=f>>8,a[r++]=f&255,r==a.length&&(c+=s.write(a.toString("base64").replace(/\//g,","),c),r=0)))}return this.inBase64=t,this.base64AccumIdx=r,s.slice(0,c)};gT.prototype.end=function(){var e=Zc.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=$d,this.inBase64=!1),e.slice(0,t)};function xT(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var QL=vT.slice();QL[44]=!0;xT.prototype.write=function(e){for(var t="",a=0,r=this.inBase64,s=this.base64Accum,c=0;c<e.length;c++)if(!r)e[c]==fT&&(t+=this.iconv.decode(e.slice(a,c),"ascii"),a=c+1,r=!0);else if(!QL[e[c]]){if(c==a&&e[c]==$d)t+="&";else{var d=s+this.iconv.decode(e.slice(a,c),"ascii").replace(/,/g,"/");t+=this.iconv.decode(Zc.from(d,"base64"),"utf16-be")}e[c]!=$d&&c--,a=c+1,r=!1,s=""}if(!r)t+=this.iconv.decode(e.slice(a),"ascii");else{var d=s+this.iconv.decode(e.slice(a),"ascii").replace(/,/g,"/"),f=d.length-d.length%8;s=d.slice(f),d=d.slice(0,f),t+=this.iconv.decode(Zc.from(d,"base64"),"utf16-be")}return this.inBase64=r,this.base64Accum=s,t};xT.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(Zc.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}});var rB=N(tB=>{"use strict";var i9=Wl().Buffer;tB._sbcs=yT;function yT(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){for(var a="",r=0;r<128;r++)a+=String.fromCharCode(r);e.chars=a+e.chars}this.decodeBuf=i9.from(e.chars,"ucs2");for(var s=i9.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),r=0;r<e.chars.length;r++)s[e.chars.charCodeAt(r)]=r;this.encodeBuf=s}yT.prototype.encoder=wT;yT.prototype.decoder=bT;function wT(e,t){this.encodeBuf=t.encodeBuf}wT.prototype.write=function(e){for(var t=i9.alloc(e.length),a=0;a<e.length;a++)t[a]=this.encodeBuf[e.charCodeAt(a)];return t};wT.prototype.end=function(){};function bT(e,t){this.decodeBuf=t.decodeBuf}bT.prototype.write=function(e){for(var t=this.decodeBuf,a=i9.alloc(e.length*2),r=0,s=0,c=0;c<e.length;c++)r=e[c]*2,s=c*2,a[s]=t[r],a[s+1]=t[r+1];return a.toString("ucs2")};bT.prototype.end=function(){}});var nB=N((Uqe,aB)=>{"use strict";aB.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110