@kitschpatrol/eslint-config 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
@@ -1,39 +1,39 @@
1
1
  #!/usr/bin/env node
2
- var ut=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import ws from"@pinojs/json-colorizer";var Es=/("(?:[^\\"]|\\.)*")|[:,]/g;function ft(e,t={}){let r=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),n=r===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer:i}=t;return function s(o,a,l){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let u=JSON.stringify(o,i);if(u===void 0)return u;let p=n-a.length-l;if(u.length<=p){let d=u.replace(Es,(y,w)=>w||`${y} `);if(d.length<=p)return d}if(i!=null&&(o=JSON.parse(u),i=void 0),typeof o=="object"&&o!==null){let d=a+r,y=[],w=0,b,f;if(Array.isArray(o)){b="[",f="]";let{length:c}=o;for(;w<c;w++)y.push(s(o[w],d,w===c-1?0:1)||"null")}else{b="{",f="}";let c=Object.keys(o),{length:v}=c;for(;w<v;w++){let S=c[w],$=`${JSON.stringify(S)}: `,x=s(o[S],d,$.length+(w===v-1?0:1));x!==void 0&&y.push($+x)}}if(y.length>0)return[b,r+y.join(`,
2
+ var Is=Object.create;var Cr=Object.defineProperty;var _s=Object.getOwnPropertyDescriptor;var Ps=Object.getOwnPropertyNames;var Ns=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var dt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Fs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ds=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ps(t))!Ts.call(e,i)&&i!==r&&Cr(e,i,{get:()=>t[i],enumerable:!(n=_s(t,i))||n.enumerable});return e};var Ms=(e,t,r)=>(r=e!=null?Is(Ns(e)):{},Ds(t||!e||!e.__esModule?Cr(r,"default",{value:e,enumerable:!0}):r,e));var _r=Fs((hd,Ir)=>{"use strict";var js=function(t){return ks(t)&&!Bs(t)};function ks(e){return!!e&&typeof e=="object"}function Bs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||zs(e)}var Us=typeof Symbol=="function"&&Symbol.for,Gs=Us?Symbol.for("react.element"):60103;function zs(e){return e.$$typeof===Gs}function Ws(e){return Array.isArray(e)?[]:{}}function xe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?me(Ws(e),e,t):e}function Hs(e,t,r){return e.concat(t).map(function(n){return xe(n,r)})}function Ys(e,t){if(!t.customMerge)return me;var r=t.customMerge(e);return typeof r=="function"?r:me}function Vs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Rr(e){return Object.keys(e).concat(Vs(e))}function xr(e,t){try{return t in e}catch{return!1}}function Ks(e,t){return xr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Xs(e,t,r){var n={};return r.isMergeableObject(e)&&Rr(e).forEach(function(i){n[i]=xe(e[i],r)}),Rr(t).forEach(function(i){Ks(e,i)||(xr(e,i)&&r.isMergeableObject(t[i])?n[i]=Ys(i,r)(e[i],t[i],r):n[i]=xe(t[i],r))}),n}function me(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Hs,r.isMergeableObject=r.isMergeableObject||js,r.cloneUnlessOtherwiseSpecified=xe;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Xs(e,t,r):xe(t,r)}me.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return me(n,i,r)},{})};var Js=me;Ir.exports=Js});var Pr=Ms(_r(),1);import Zs from"@pinojs/json-colorizer";var qs=/("(?:[^\\"]|\\.)*")|[:,]/g;function gt(e,t={}){let r=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),n=r===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer:i}=t;return function s(o,a,l){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let u=JSON.stringify(o,i);if(u===void 0)return u;let p=n-a.length-l;if(u.length<=p){let d=u.replace(qs,(v,w)=>w||`${v} `);if(d.length<=p)return d}if(i!=null&&(o=JSON.parse(u),i=void 0),typeof o=="object"&&o!==null){let d=a+r,v=[],w=0,y,f;if(Array.isArray(o)){y="[",f="]";let{length:c}=o;for(;w<c;w++)v.push(s(o[w],d,w===c-1?0:1)||"null")}else{y="{",f="}";let c=Object.keys(o),{length:b}=c;for(;w<b;w++){let S=c[w],$=`${JSON.stringify(S)}: `,x=s(o[S],d,$.length+(w===b-1?0:1));x!==void 0&&v.push($+x)}}if(v.length>0)return[y,r+v.join(`,
3
3
  ${d}`),f].join(`
4
- ${a}`)}return u}(e,"",0)}function ht(e){return ws(ft(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var Sr=(e=0)=>t=>`\x1B[${t+e}m`,Cr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Or=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,T={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]}},Mp=Object.keys(T.modifier),$s=Object.keys(T.color),Ls=Object.keys(T.bgColor),jp=[...$s,...Ls];function Ss(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,i]of Object.entries(r))T[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=T[n],e.set(i[0],i[1]);Object.defineProperty(T,t,{value:r,enumerable:!1})}return Object.defineProperty(T,"codes",{value:e,enumerable:!1}),T.color.close="\x1B[39m",T.bgColor.close="\x1B[49m",T.color.ansi=Sr(),T.color.ansi256=Cr(),T.color.ansi16m=Or(),T.bgColor.ansi=Sr(10),T.bgColor.ansi256=Cr(10),T.bgColor.ansi16m=Or(10),Object.defineProperties(T,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>T.rgbToAnsi256(...T.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>T.ansi256ToAnsi(T.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>T.ansi256ToAnsi(T.hexToAnsi256(t)),enumerable:!1}}),T}var Cs=Ss(),X=Cs;import pt from"node:process";import Os from"node:os";import Ar from"node:tty";function K(e,t=globalThis.Deno?globalThis.Deno.args:pt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:D}=pt,Me;K("no-color")||K("no-colors")||K("color=false")||K("color=never")?Me=0:(K("color")||K("colors")||K("color=true")||K("color=always"))&&(Me=1);function As(){if("FORCE_COLOR"in D)return D.FORCE_COLOR==="true"?1:D.FORCE_COLOR==="false"?0:D.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(D.FORCE_COLOR,10),3)}function Rs(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function xs(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=As();n!==void 0&&(Me=n);let i=r?Me:n;if(i===0)return 0;if(r){if(K("color=16m")||K("color=full")||K("color=truecolor"))return 3;if(K("color=256"))return 2}if("TF_BUILD"in D&&"AGENT_NAME"in D)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(D.TERM==="dumb")return s;if(pt.platform==="win32"){let o=Os.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in D)return"GITHUB_ACTIONS"in D||"GITEA_ACTIONS"in D?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in D)||D.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in D)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(D.TEAMCITY_VERSION)?1:0;if(D.COLORTERM==="truecolor"||D.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in D){let o=Number.parseInt((D.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(D.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(D.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(D.TERM)||"COLORTERM"in D?1:s}function Rr(e,t={}){let r=xs(e,{streamIsTTY:e&&e.isTTY,...t});return Rs(r)}var Is={stdout:Rr({isTTY:Ar.isatty(1)}),stderr:Rr({isTTY:Ar.isatty(2)})},xr=Is;function Ir(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function _r(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
4
+ ${a}`)}return u}(e,"",0)}function mt(e){return Zs(gt(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var Qs=(e,t,r)=>{let n=[...e];for(let[i,s]of t.entries())n[i]===void 0?n[i]=r.cloneUnlessOtherwiseSpecified(s,r):r.isMergeableObject(s)?n[i]=bt(e[i],s,r):e.includes(s)||n.push(s);return n};function bt(e,t,r={arrayMerge:Qs}){return(0,Pr.default)(e,t,r)}var Nr=(e=0)=>t=>`\x1B[${t+e}m`,Tr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Fr=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,F={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]}},bd=Object.keys(F.modifier),eo=Object.keys(F.color),to=Object.keys(F.bgColor),yd=[...eo,...to];function ro(){let e=new Map;for(let[t,r]of Object.entries(F)){for(let[n,i]of Object.entries(r))F[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=F[n],e.set(i[0],i[1]);Object.defineProperty(F,t,{value:r,enumerable:!1})}return Object.defineProperty(F,"codes",{value:e,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",F.color.ansi=Nr(),F.color.ansi256=Tr(),F.color.ansi16m=Fr(),F.bgColor.ansi=Nr(10),F.bgColor.ansi256=Tr(10),F.bgColor.ansi16m=Fr(10),Object.defineProperties(F,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>F.rgbToAnsi256(...F.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>F.ansi256ToAnsi(F.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>F.ansi256ToAnsi(F.hexToAnsi256(t)),enumerable:!1}}),F}var no=ro(),X=no;import yt from"node:process";import io from"node:os";import Dr from"node:tty";function K(e,t=globalThis.Deno?globalThis.Deno.args:yt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:M}=yt,Ue;K("no-color")||K("no-colors")||K("color=false")||K("color=never")?Ue=0:(K("color")||K("colors")||K("color=true")||K("color=always"))&&(Ue=1);function so(){if("FORCE_COLOR"in M)return M.FORCE_COLOR==="true"?1:M.FORCE_COLOR==="false"?0:M.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(M.FORCE_COLOR,10),3)}function oo(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ao(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=so();n!==void 0&&(Ue=n);let i=r?Ue:n;if(i===0)return 0;if(r){if(K("color=16m")||K("color=full")||K("color=truecolor"))return 3;if(K("color=256"))return 2}if("TF_BUILD"in M&&"AGENT_NAME"in M)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(M.TERM==="dumb")return s;if(yt.platform==="win32"){let o=io.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in M)return"GITHUB_ACTIONS"in M||"GITEA_ACTIONS"in M?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in M)||M.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in M)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M.TEAMCITY_VERSION)?1:0;if(M.COLORTERM==="truecolor"||M.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in M){let o=Number.parseInt((M.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(M.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M.TERM)||"COLORTERM"in M?1:s}function Mr(e,t={}){let r=ao(e,{streamIsTTY:e&&e.isTTY,...t});return oo(r)}var lo={stdout:Mr({isTTY:Dr.isatty(1)}),stderr:Mr({isTTY:Dr.isatty(2)})},jr=lo;function kr(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Br(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
5
5
  `:`
6
6
  `)+r,i=n+1,n=e.indexOf(`
7
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Pr,stderr:Nr}=xr,dt=Symbol("GENERATOR"),me=Symbol("STYLER"),Ae=Symbol("IS_EMPTY"),Fr=["ansi","ansi","ansi256","ansi16m"],be=Object.create(null),_s=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Pr?Pr.level:0;e.level=t.level===void 0?r:t.level};var Ps=e=>{let t=(...r)=>r.join(" ");return _s(t,e),Object.setPrototypeOf(t,Re.prototype),t};function Re(e){return Ps(e)}Object.setPrototypeOf(Re.prototype,Function.prototype);for(let[e,t]of Object.entries(X))be[e]={get(){let r=je(this,mt(t.open,t.close,this[me]),this[Ae]);return Object.defineProperty(this,e,{value:r}),r}};be.visible={get(){let e=je(this,this[me],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var gt=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?X[r].ansi16m(...n):t==="ansi256"?X[r].ansi256(X.rgbToAnsi256(...n)):X[r].ansi(X.rgbToAnsi(...n)):e==="hex"?gt("rgb",t,r,...X.hexToRgb(...n)):X[r][e](...n),Ns=["rgb","hex","ansi256"];for(let e of Ns){be[e]={get(){let{level:r}=this;return function(...n){let i=mt(gt(e,Fr[r],"color",...n),X.color.close,this[me]);return je(this,i,this[Ae])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);be[t]={get(){let{level:r}=this;return function(...n){let i=mt(gt(e,Fr[r],"bgColor",...n),X.bgColor.close,this[me]);return je(this,i,this[Ae])}}}}var Fs=Object.defineProperties(()=>{},{...be,level:{enumerable:!0,get(){return this[dt].level},set(e){this[dt].level=e}}}),mt=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},je=(e,t,r)=>{let n=(...i)=>Ts(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Fs),n[dt]=e,n[me]=t,n[Ae]=r,n},Ts=(e,t)=>{if(e.level<=0||!t)return e[Ae]?"":t;let r=e[me];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Ir(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
8
- `);return s!==-1&&(t=_r(t,i,n,s)),n+t+i};Object.defineProperties(Re.prototype,be);var Ds=Re(),Xp=Re({level:Nr?Nr.level:0});var Tr=Ds;import{cosmiconfig as Sp}from"cosmiconfig";import{execa as Cp}from"execa";import br from"node:process";import rt,{format as ks}from"util";import{normalize as Ms,resolve as js}from"path";import{readFileSync as Bs}from"fs";import nt from"url";import ue from"node:path";import{fileURLToPath as rr}from"node:url";import Gs from"node:process";import kt from"node:fs";import Fn from"os";function _e(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Tn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Dn(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function Us(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var J;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(J||(J={}));var te,Mt=class{constructor(t){te=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Us(t),s=typeof t=="string",o=zs(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),u=n.configObjects||[],p=n.envPrefix,d=a["populate--"],y=d?"--":"_",w=Object.create(null),b=Object.create(null),f=n.__||te.format,c={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},v=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(h){let m=typeof h=="object"?h.key:h,L=Object.keys(h).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();L&&(c[L][m]=!0),c.arrays[m]=!0,c.keys.push(m)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(h){c.bools[h]=!0,c.keys.push(h)}),[].concat(n.string||[]).filter(Boolean).forEach(function(h){c.strings[h]=!0,c.keys.push(h)}),[].concat(n.number||[]).filter(Boolean).forEach(function(h){c.numbers[h]=!0,c.keys.push(h)}),[].concat(n.count||[]).filter(Boolean).forEach(function(h){c.counts[h]=!0,c.keys.push(h)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(h){c.normalize[h]=!0,c.keys.push(h)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([h,m])=>{typeof m=="number"&&(c.nargs[h]=m,c.keys.push(h))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([h,m])=>{typeof m=="function"&&(c.coercions[h]=m,c.keys.push(h))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(h){c.configs[h]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([h,m])=>{(typeof m=="boolean"||typeof m=="function")&&(c.configs[h]=m)})),ps(n.key,o,n.default,c.arrays),Object.keys(l).forEach(function(h){(c.aliases[h]||[]).forEach(function(m){l[m]=l[h]})});let $=null;vs();let x=[],_=Object.assign(Object.create(null),{_:[]}),k={};for(let h=0;h<i.length;h++){let m=i[h],L=m.replace(/^-{3,}/,"---"),E,g,O,C,R,G;if(m!=="--"&&/^-/.test(m)&&ke(m))M(m);else if(L.match(/^---+(=|$)/)){M(m);continue}else if(m.match(/^--.+=/)||!a["short-option-groups"]&&m.match(/^-.+=/))C=m.match(/^--?([^=]+)=([\s\S]*)$/),C!==null&&Array.isArray(C)&&C.length>=3&&(I(C[1],c.arrays)?h=V(h,C[1],i,C[2]):I(C[1],c.nargs)!==!1?h=Y(h,C[1],i,C[2]):F(C[1],C[2],!0));else if(m.match(S)&&a["boolean-negation"])C=m.match(S),C!==null&&Array.isArray(C)&&C.length>=2&&(g=C[1],F(g,I(g,c.arrays)?[!1]:!1));else if(m.match(/^--.+/)||!a["short-option-groups"]&&m.match(/^-[^-]+/))C=m.match(/^--?(.+)/),C!==null&&Array.isArray(C)&&C.length>=2&&(g=C[1],I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!R.match(/^-/)||R.match(v))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(F(g,R),h++):F(g,ge(g))));else if(m.match(/^-.\..+=/))C=m.match(/^-([^=]+)=([\s\S]*)$/),C!==null&&Array.isArray(C)&&C.length>=3&&F(C[1],C[2]);else if(m.match(/^-.\..+/)&&!m.match(v))R=i[h+1],C=m.match(/^-(.\..+)/),C!==null&&Array.isArray(C)&&C.length>=2&&(g=C[1],R!==void 0&&!R.match(/^-/)&&!I(g,c.bools)&&!I(g,c.counts)?(F(g,R),h++):F(g,ge(g)));else if(m.match(/^-[^-]+/)&&!m.match(v)){O=m.slice(1,-1).split(""),E=!1;for(let W=0;W<O.length;W++){if(R=m.slice(W+2),O[W+1]&&O[W+1]==="="){G=m.slice(W+3),g=O[W],I(g,c.arrays)?h=V(h,g,i,G):I(g,c.nargs)!==!1?h=Y(h,g,i,G):F(g,G),E=!0;break}if(R==="-"){F(O[W],R);continue}if(/[A-Za-z]/.test(O[W])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&I(R,c.bools)===!1){F(O[W],R),E=!0;break}if(O[W+1]&&O[W+1].match(/\W/)){F(O[W],R),E=!0;break}else F(O[W],ge(O[W]))}g=m.slice(-1)[0],!E&&g!=="-"&&(I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(v))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(F(g,R),h++):F(g,ge(g))))}else if(m.match(/^-[0-9]$/)&&m.match(v)&&I(m.slice(1),c.bools))g=m.slice(1),F(g,ge(g));else if(m==="--"){x=i.slice(h+1);break}else if(a["halt-at-non-option"]){x=i.slice(h);break}else M(m)}wr(_,!0),wr(_,!1),cs(_),us(),$r(_,c.aliases,l,!0),fs(_),a["set-placeholder-key"]&&hs(_),Object.keys(c.counts).forEach(function(h){Ce(_,h.split("."))||F(h,0)}),d&&x.length&&(_[y]=[]),x.forEach(function(h){_[y].push(h)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(_).filter(h=>h!=="--"&&h.includes("-")).forEach(h=>{delete _[h]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(h=>o[h])).forEach(h=>{a["camel-case-expansion"]&&h.includes("-")&&delete _[h.split(".").map(m=>_e(m)).join(".")],delete _[h]});function M(h){let m=De("_",h);(typeof m=="string"||typeof m=="number")&&_._.push(m)}function Y(h,m,L,E){let g,O=I(m,c.nargs);if(O=typeof O!="number"||isNaN(O)?1:O,O===0)return ee(E)||($=Error(f("Argument unexpected for: %s",m))),F(m,ge(m)),h;let C=ee(E)?0:1;if(a["nargs-eats-options"])L.length-(h+1)+C<O&&($=Error(f("Not enough arguments following: %s",m))),C=O;else{for(g=h+1;g<L.length&&(!L[g].match(/^-[^0-9]/)||L[g].match(v)||ke(L[g]));g++)C++;C<O&&($=Error(f("Not enough arguments following: %s",m)))}let R=Math.min(C,O);for(!ee(E)&&R>0&&(F(m,E),R--),g=h+1;g<R+h+1;g++)F(m,L[g]);return h+R}function V(h,m,L,E){let g=[],O=E||L[h+1],C=I(m,c.nargs);if(I(m,c.bools)&&!/^(true|false)$/.test(O))g.push(!0);else if(ee(O)||ee(E)&&/^-/.test(O)&&!v.test(O)&&!ke(O)){if(l[m]!==void 0){let R=l[m];g=Array.isArray(R)?R:[R]}}else{ee(E)||g.push(Te(m,E,!0));for(let R=h+1;R<L.length&&!(!a["greedy-arrays"]&&g.length>0||C&&typeof C=="number"&&g.length>=C||(O=L[R],/^-/.test(O)&&!v.test(O)&&!ke(O)));R++)h=R,g.push(Te(m,O,s))}return typeof C=="number"&&(C&&g.length<C||isNaN(C)&&g.length===0)&&($=Error(f("Not enough arguments following: %s",m))),F(m,g),h}function F(h,m,L=s){if(/-/.test(h)&&a["camel-case-expansion"]){let O=h.split(".").map(function(C){return _e(C)}).join(".");de(h,O)}let E=Te(h,m,L),g=h.split(".");Oe(_,g,E),c.aliases[h]&&c.aliases[h].forEach(function(O){let C=O.split(".");Oe(_,C,E)}),g.length>1&&a["dot-notation"]&&(c.aliases[g[0]]||[]).forEach(function(O){let C=O.split("."),R=[].concat(g);R.shift(),C=C.concat(R),(c.aliases[h]||[]).includes(C.join("."))||Oe(_,C,E)}),I(h,c.normalize)&&!I(h,c.arrays)&&[h].concat(c.aliases[h]||[]).forEach(function(C){Object.defineProperty(k,C,{enumerable:!0,get(){return m},set(R){m=typeof R=="string"?te.normalize(R):R}})})}function de(h,m){c.aliases[h]&&c.aliases[h].length||(c.aliases[h]=[m],w[m]=!0),c.aliases[m]&&c.aliases[m].length||de(m,h)}function Te(h,m,L){L&&(m=Ws(m)),(I(h,c.bools)||I(h,c.counts))&&typeof m=="string"&&(m=m==="true");let E=Array.isArray(m)?m.map(function(g){return De(h,g)}):De(h,m);return I(h,c.counts)&&(ee(E)||typeof E=="boolean")&&(E=bt()),I(h,c.normalize)&&I(h,c.arrays)&&(Array.isArray(m)?E=m.map(g=>te.normalize(g)):E=te.normalize(m)),E}function De(h,m){return!a["parse-positional-numbers"]&&h==="_"||!I(h,c.strings)&&!I(h,c.bools)&&!Array.isArray(m)&&(Dn(m)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${m}`)))||!ee(m)&&I(h,c.numbers))&&(m=Number(m)),m}function cs(h){let m=Object.create(null);$r(m,c.aliases,l),Object.keys(c.configs).forEach(function(L){let E=h[L]||m[L];if(E)try{let g=null,O=te.resolve(te.cwd(),E),C=c.configs[L];if(typeof C=="function"){try{g=C(O)}catch(R){g=R}if(g instanceof Error){$=g;return}}else g=te.require(O);ct(g)}catch(g){g.name==="PermissionDenied"?$=g:h[L]&&($=Error(f("Invalid JSON config file: %s",E)))}})}function ct(h,m){Object.keys(h).forEach(function(L){let E=h[L],g=m?m+"."+L:L;typeof E=="object"&&E!==null&&!Array.isArray(E)&&a["dot-notation"]?ct(E,g):(!Ce(_,g.split("."))||I(g,c.arrays)&&a["combine-arrays"])&&F(g,E)})}function us(){typeof u<"u"&&u.forEach(function(h){ct(h)})}function wr(h,m){if(typeof p>"u")return;let L=typeof p=="string"?p:"",E=te.env();Object.keys(E).forEach(function(g){if(L===""||g.lastIndexOf(L,0)===0){let O=g.split("__").map(function(C,R){return R===0&&(C=C.substring(L.length)),_e(C)});(m&&c.configs[O.join(".")]||!m)&&!Ce(h,O)&&F(O.join("."),E[g])}})}function fs(h){let m,L=new Set;Object.keys(h).forEach(function(E){if(!L.has(E)&&(m=I(E,c.coercions),typeof m=="function"))try{let g=De(E,m(h[E]));[].concat(c.aliases[E]||[],E).forEach(O=>{L.add(O),h[O]=g})}catch(g){$=g}})}function hs(h){return c.keys.forEach(m=>{~m.indexOf(".")||typeof h[m]>"u"&&(h[m]=void 0)}),h}function $r(h,m,L,E=!1){Object.keys(L).forEach(function(g){Ce(h,g.split("."))||(Oe(h,g.split("."),L[g]),E&&(b[g]=!0),(m[g]||[]).forEach(function(O){Ce(h,O.split("."))||Oe(h,O.split("."),L[g])}))})}function Ce(h,m){let L=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(g){L=L[g]||{}});let E=m[m.length-1];return typeof L!="object"?!1:E in L}function Oe(h,m,L){let E=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(G){G=Dr(G),typeof E=="object"&&E[G]===void 0&&(E[G]={}),typeof E[G]!="object"||Array.isArray(E[G])?(Array.isArray(E[G])?E[G].push({}):E[G]=[E[G],{}],E=E[G][E[G].length-1]):E=E[G]});let g=Dr(m[m.length-1]),O=I(m.join("."),c.arrays),C=Array.isArray(L),R=a["duplicate-arguments-array"];!R&&I(g,c.nargs)&&(R=!0,(!ee(E[g])&&c.nargs[g]===1||Array.isArray(E[g])&&E[g].length===c.nargs[g])&&(E[g]=void 0)),L===bt()?E[g]=bt(E[g]):Array.isArray(E[g])?R&&O&&C?E[g]=a["flatten-duplicate-arrays"]?E[g].concat(L):(Array.isArray(E[g][0])?E[g]:[E[g]]).concat([L]):!R&&!!O==!!C?E[g]=L:E[g]=E[g].concat([L]):E[g]===void 0&&O?E[g]=C?L:[L]:R&&!(E[g]===void 0||I(g,c.counts)||I(g,c.bools))?E[g]=[E[g],L]:E[g]=L}function ps(...h){h.forEach(function(m){Object.keys(m||{}).forEach(function(L){c.aliases[L]||(c.aliases[L]=[].concat(o[L]||[]),c.aliases[L].concat(L).forEach(function(E){if(/-/.test(E)&&a["camel-case-expansion"]){let g=_e(E);g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].concat(L).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&a["camel-case-expansion"]){let g=Tn(E,"-");g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].forEach(function(E){c.aliases[E]=[L].concat(c.aliases[L].filter(function(g){return E!==g}))}))})})}function I(h,m){let L=[].concat(c.aliases[h]||[],h),E=Object.keys(m),g=L.find(O=>E.includes(O));return g?m[g]:!1}function Lr(h){let m=Object.keys(c);return[].concat(m.map(E=>c[E])).some(function(E){return Array.isArray(E)?E.includes(h):E[h]})}function ds(h,...m){return[].concat(...m).some(function(E){let g=h.match(E);return g&&Lr(g[1])})}function gs(h){if(h.match(v)||!h.match(/^-[^-]+/))return!1;let m=!0,L,E=h.slice(1).split("");for(let g=0;g<E.length;g++){if(L=h.slice(g+2),!Lr(E[g])){m=!1;break}if(E[g+1]&&E[g+1]==="="||L==="-"||/[A-Za-z]/.test(E[g])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)||E[g+1]&&E[g+1].match(/\W/))break}return m}function ke(h){return a["unknown-options-as-args"]&&ms(h)}function ms(h){return h=h.replace(/^-{3,}/,"--"),h.match(v)||gs(h)?!1:!ds(h,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ge(h){return!I(h,c.bools)&&!I(h,c.counts)&&`${h}`in l?l[h]:bs(ys(h))}function bs(h){return{[J.BOOLEAN]:!0,[J.STRING]:"",[J.NUMBER]:void 0,[J.ARRAY]:[]}[h]}function ys(h){let m=J.BOOLEAN;return I(h,c.strings)?m=J.STRING:I(h,c.numbers)?m=J.NUMBER:I(h,c.bools)?m=J.BOOLEAN:I(h,c.arrays)&&(m=J.ARRAY),m}function ee(h){return h===void 0}function vs(){Object.keys(c.counts).find(h=>I(h,c.arrays)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0):I(h,c.nargs)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(k,_),configuration:a,defaulted:Object.assign({},b),error:$,newAliases:Object.assign({},w)}}};function zs(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,l){return l.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function bt(e){return e!==void 0?e+1:1}function Dr(e){return e==="__proto__"?"___proto___":e}function Ws(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var yt,vt,Et,kr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Mr=(vt=(yt=process==null?void 0:process.versions)===null||yt===void 0?void 0:yt.node)!==null&&vt!==void 0?vt:(Et=process==null?void 0:process.version)===null||Et===void 0?void 0:Et.slice(1);if(Mr&&Number(Mr.match(/^([^.]+)/)[1])<kr)throw Error(`yargs parser supports a minimum Node.js version of ${kr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Hs=process?process.env:{},kn=new Mt({cwd:process.cwd,env:()=>Hs,format:ks,normalize:Ms,resolve:js,require:e=>{if(typeof ut<"u")return ut(e);if(e.match(/\.json$/))return JSON.parse(Bs(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Le=function(t,r){return kn.parse(t.slice(),r).argv};Le.detailed=function(e,t){return kn.parse(e.slice(),t)};Le.camelCase=_e;Le.decamelize=Tn;Le.looksLikeNumber=Dn;function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}},Mn=e=>typeof e=="object"&&e!==null,jn=Symbol("skip"),jr=e=>Mn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),jt=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:i}=r;delete r.target;let s=o=>o.map(a=>jr(a)?jt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let l=t(o,a,e);if(l===jn)continue;let[u,p,{shouldRecurse:d=!0}={}]=l;u!=="__proto__"&&(r.deep&&d&&jr(p)&&(p=Array.isArray(p)?s(p):jt(p,t,r,n)),i[u]=p)}return i};nr.exports=(e,t,r)=>{if(!Mn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return jt(e,t,r)};nr.exports.mapObjectSkip=jn;var Ys=nr.exports,Xe=ce(Ys),Vs=/[\p{Lu}]/u,Ks=/[\p{Ll}]/u,Br=/^[\p{Lu}](?![\p{Lu}])/gu,Bn=/([\p{Alpha}\p{N}_]|$)/u,ir=/[_.\- ]+/,Xs=new RegExp("^"+ir.source),Gr=new RegExp(ir.source+Bn.source,"gu"),Ur=new RegExp("\\d+"+Bn.source,"gu"),Js=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e[l];a=l>2?e[l-3]==="-":!0,i&&Vs.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),i=!1,o=s,s=!0,l++):s&&o&&Ks.test(u)&&(!a||n)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),o=s,s=!1,i=!0):(i=t(u)===u&&r(u)!==u,o=s,s=r(u)===u&&t(u)!==u)}return e},qs=(e,t)=>(Br.lastIndex=0,e.replace(Br,r=>t(r))),Zs=(e,t)=>(Gr.lastIndex=0,Ur.lastIndex=0,e.replace(Gr,(r,n)=>t(n)).replace(Ur,r=>t(r)));function Qs(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(t.locale),n=t.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(t.locale);return e.length===1?ir.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=Js(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Xs,""),e=t.preserveConsecutiveUppercase?qs(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Zs(e,n))}var Je=class extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(let[r,n]of t)this.onEviction(r,n.value)}_deleteIfExpired(t,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,r.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,r){if(this._deleteIfExpired(t,r)===!1)return r.value}_getItemValue(t,r){return r.expiry?this._getOrDeleteIfExpired(t,r):r.value}_peek(t,r){let n=r.get(t);return this._getItemValue(t,n)}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,r){this.oldCache.delete(t),this._set(t,r)}*_entriesAscending(){for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield t)}for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield t)}}get(t){if(this.cache.has(t)){let r=this.cache.get(t);return this._getItemValue(t,r)}if(this.oldCache.has(t)){let r=this.oldCache.get(t);if(this._deleteIfExpired(t,r)===!1)return this._moveToRecent(t,r),r.value}}set(t,r,{maxAge:n=this.maxAge}={}){let i=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:i}):this._set(t,{value:r,expiry:i}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-t;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let t=[...this.cache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesAscending(){for(let[t,r]of this._entriesAscending())yield[t,r.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,r=this){for(let[n,i]of this.entriesAscending())t.call(r,i,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},eo=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),wt=new Je({maxSize:1e5}),zr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Wr=(e,t)=>{if(!zr(e))return e;t={deep:!1,pascalCase:!1,...t};let{exclude:r,pascalCase:n,stopPaths:i,deep:s}=t,o=new Set(i),a=l=>(u,p)=>{if(s&&zr(p)){let d=l===void 0?u:`${l}.${u}`;o.has(d)||(p=Xe(p,a(d)))}if(!(r&&eo(r,u))){let d=n?`${u}_`:u;if(wt.has(d))u=wt.get(d);else{let y=Qs(u,{pascalCase:n,locale:!1});u.length<100&&wt.set(d,y),u=y}}return[u,p]};return Xe(e,a(void 0))};function Gn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Wr(e[r],t)):Wr(e,t)}function Un(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
7
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Ur,stderr:Gr}=jr,vt=Symbol("GENERATOR"),be=Symbol("STYLER"),Ie=Symbol("IS_EMPTY"),zr=["ansi","ansi","ansi256","ansi16m"],ye=Object.create(null),co=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ur?Ur.level:0;e.level=t.level===void 0?r:t.level};var uo=e=>{let t=(...r)=>r.join(" ");return co(t,e),Object.setPrototypeOf(t,_e.prototype),t};function _e(e){return uo(e)}Object.setPrototypeOf(_e.prototype,Function.prototype);for(let[e,t]of Object.entries(X))ye[e]={get(){let r=Ge(this,wt(t.open,t.close,this[be]),this[Ie]);return Object.defineProperty(this,e,{value:r}),r}};ye.visible={get(){let e=Ge(this,this[be],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Et=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?X[r].ansi16m(...n):t==="ansi256"?X[r].ansi256(X.rgbToAnsi256(...n)):X[r].ansi(X.rgbToAnsi(...n)):e==="hex"?Et("rgb",t,r,...X.hexToRgb(...n)):X[r][e](...n),fo=["rgb","hex","ansi256"];for(let e of fo){ye[e]={get(){let{level:r}=this;return function(...n){let i=wt(Et(e,zr[r],"color",...n),X.color.close,this[be]);return Ge(this,i,this[Ie])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ye[t]={get(){let{level:r}=this;return function(...n){let i=wt(Et(e,zr[r],"bgColor",...n),X.bgColor.close,this[be]);return Ge(this,i,this[Ie])}}}}var ho=Object.defineProperties(()=>{},{...ye,level:{enumerable:!0,get(){return this[vt].level},set(e){this[vt].level=e}}}),wt=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Ge=(e,t,r)=>{let n=(...i)=>po(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ho),n[vt]=e,n[be]=t,n[Ie]=r,n},po=(e,t)=>{if(e.level<=0||!t)return e[Ie]?"":t;let r=e[be];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=kr(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
8
+ `);return s!==-1&&(t=Br(t,i,n,s)),n+t+i};Object.defineProperties(_e.prototype,ye);var go=_e(),Rd=_e({level:Gr?Gr.level:0});var Wr=go;import{cosmiconfig as rd}from"cosmiconfig";import{execa as nd}from"execa";import Ae from"fs-extra";import $r from"node:process";import st,{format as mo}from"util";import{normalize as bo,resolve as yo}from"path";import{readFileSync as vo}from"fs";import ot from"url";import ue from"node:path";import{fileURLToPath as ar}from"node:url";import Eo from"node:process";import Gt from"node:fs";import zn from"os";function Te(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Wn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Hn(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function wo(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var J;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(J||(J={}));var te,zt=class{constructor(t){te=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=wo(t),s=typeof t=="string",o=$o(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),u=n.configObjects||[],p=n.envPrefix,d=a["populate--"],v=d?"--":"_",w=Object.create(null),y=Object.create(null),f=n.__||te.format,c={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(h){let m=typeof h=="object"?h.key:h,L=Object.keys(h).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();L&&(c[L][m]=!0),c.arrays[m]=!0,c.keys.push(m)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(h){c.bools[h]=!0,c.keys.push(h)}),[].concat(n.string||[]).filter(Boolean).forEach(function(h){c.strings[h]=!0,c.keys.push(h)}),[].concat(n.number||[]).filter(Boolean).forEach(function(h){c.numbers[h]=!0,c.keys.push(h)}),[].concat(n.count||[]).filter(Boolean).forEach(function(h){c.counts[h]=!0,c.keys.push(h)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(h){c.normalize[h]=!0,c.keys.push(h)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([h,m])=>{typeof m=="number"&&(c.nargs[h]=m,c.keys.push(h))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([h,m])=>{typeof m=="function"&&(c.coercions[h]=m,c.keys.push(h))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(h){c.configs[h]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([h,m])=>{(typeof m=="boolean"||typeof m=="function")&&(c.configs[h]=m)})),Ls(n.key,o,n.default,c.arrays),Object.keys(l).forEach(function(h){(c.aliases[h]||[]).forEach(function(m){l[m]=l[h]})});let $=null;xs();let x=[],_=Object.assign(Object.create(null),{_:[]}),D={};for(let h=0;h<i.length;h++){let m=i[h],L=m.replace(/^-{3,}/,"---"),E,g,A,O,R,U;if(m!=="--"&&/^-/.test(m)&&Be(m))j(m);else if(L.match(/^---+(=|$)/)){j(m);continue}else if(m.match(/^--.+=/)||!a["short-option-groups"]&&m.match(/^-.+=/))O=m.match(/^--?([^=]+)=([\s\S]*)$/),O!==null&&Array.isArray(O)&&O.length>=3&&(I(O[1],c.arrays)?h=V(h,O[1],i,O[2]):I(O[1],c.nargs)!==!1?h=Y(h,O[1],i,O[2]):T(O[1],O[2],!0));else if(m.match(S)&&a["boolean-negation"])O=m.match(S),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],T(g,I(g,c.arrays)?[!1]:!1));else if(m.match(/^--.+/)||!a["short-option-groups"]&&m.match(/^-[^-]+/))O=m.match(/^--?(.+)/),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!R.match(/^-/)||R.match(b))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(T(g,R),h++):T(g,ge(g))));else if(m.match(/^-.\..+=/))O=m.match(/^-([^=]+)=([\s\S]*)$/),O!==null&&Array.isArray(O)&&O.length>=3&&T(O[1],O[2]);else if(m.match(/^-.\..+/)&&!m.match(b))R=i[h+1],O=m.match(/^-(.\..+)/),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],R!==void 0&&!R.match(/^-/)&&!I(g,c.bools)&&!I(g,c.counts)?(T(g,R),h++):T(g,ge(g)));else if(m.match(/^-[^-]+/)&&!m.match(b)){A=m.slice(1,-1).split(""),E=!1;for(let W=0;W<A.length;W++){if(R=m.slice(W+2),A[W+1]&&A[W+1]==="="){U=m.slice(W+3),g=A[W],I(g,c.arrays)?h=V(h,g,i,U):I(g,c.nargs)!==!1?h=Y(h,g,i,U):T(g,U),E=!0;break}if(R==="-"){T(A[W],R);continue}if(/[A-Za-z]/.test(A[W])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&I(R,c.bools)===!1){T(A[W],R),E=!0;break}if(A[W+1]&&A[W+1].match(/\W/)){T(A[W],R),E=!0;break}else T(A[W],ge(A[W]))}g=m.slice(-1)[0],!E&&g!=="-"&&(I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(b))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(T(g,R),h++):T(g,ge(g))))}else if(m.match(/^-[0-9]$/)&&m.match(b)&&I(m.slice(1),c.bools))g=m.slice(1),T(g,ge(g));else if(m==="--"){x=i.slice(h+1);break}else if(a["halt-at-non-option"]){x=i.slice(h);break}else j(m)}Sr(_,!0),Sr(_,!1),vs(_),Es(),Or(_,c.aliases,l,!0),ws(_),a["set-placeholder-key"]&&$s(_),Object.keys(c.counts).forEach(function(h){Ce(_,h.split("."))||T(h,0)}),d&&x.length&&(_[v]=[]),x.forEach(function(h){_[v].push(h)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(_).filter(h=>h!=="--"&&h.includes("-")).forEach(h=>{delete _[h]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(h=>o[h])).forEach(h=>{a["camel-case-expansion"]&&h.includes("-")&&delete _[h.split(".").map(m=>Te(m)).join(".")],delete _[h]});function j(h){let m=ke("_",h);(typeof m=="string"||typeof m=="number")&&_._.push(m)}function Y(h,m,L,E){let g,A=I(m,c.nargs);if(A=typeof A!="number"||isNaN(A)?1:A,A===0)return ee(E)||($=Error(f("Argument unexpected for: %s",m))),T(m,ge(m)),h;let O=ee(E)?0:1;if(a["nargs-eats-options"])L.length-(h+1)+O<A&&($=Error(f("Not enough arguments following: %s",m))),O=A;else{for(g=h+1;g<L.length&&(!L[g].match(/^-[^0-9]/)||L[g].match(b)||Be(L[g]));g++)O++;O<A&&($=Error(f("Not enough arguments following: %s",m)))}let R=Math.min(O,A);for(!ee(E)&&R>0&&(T(m,E),R--),g=h+1;g<R+h+1;g++)T(m,L[g]);return h+R}function V(h,m,L,E){let g=[],A=E||L[h+1],O=I(m,c.nargs);if(I(m,c.bools)&&!/^(true|false)$/.test(A))g.push(!0);else if(ee(A)||ee(E)&&/^-/.test(A)&&!b.test(A)&&!Be(A)){if(l[m]!==void 0){let R=l[m];g=Array.isArray(R)?R:[R]}}else{ee(E)||g.push(je(m,E,!0));for(let R=h+1;R<L.length&&!(!a["greedy-arrays"]&&g.length>0||O&&typeof O=="number"&&g.length>=O||(A=L[R],/^-/.test(A)&&!b.test(A)&&!Be(A)));R++)h=R,g.push(je(m,A,s))}return typeof O=="number"&&(O&&g.length<O||isNaN(O)&&g.length===0)&&($=Error(f("Not enough arguments following: %s",m))),T(m,g),h}function T(h,m,L=s){if(/-/.test(h)&&a["camel-case-expansion"]){let A=h.split(".").map(function(O){return Te(O)}).join(".");de(h,A)}let E=je(h,m,L),g=h.split(".");Re(_,g,E),c.aliases[h]&&c.aliases[h].forEach(function(A){let O=A.split(".");Re(_,O,E)}),g.length>1&&a["dot-notation"]&&(c.aliases[g[0]]||[]).forEach(function(A){let O=A.split("."),R=[].concat(g);R.shift(),O=O.concat(R),(c.aliases[h]||[]).includes(O.join("."))||Re(_,O,E)}),I(h,c.normalize)&&!I(h,c.arrays)&&[h].concat(c.aliases[h]||[]).forEach(function(O){Object.defineProperty(D,O,{enumerable:!0,get(){return m},set(R){m=typeof R=="string"?te.normalize(R):R}})})}function de(h,m){c.aliases[h]&&c.aliases[h].length||(c.aliases[h]=[m],w[m]=!0),c.aliases[m]&&c.aliases[m].length||de(m,h)}function je(h,m,L){L&&(m=Lo(m)),(I(h,c.bools)||I(h,c.counts))&&typeof m=="string"&&(m=m==="true");let E=Array.isArray(m)?m.map(function(g){return ke(h,g)}):ke(h,m);return I(h,c.counts)&&(ee(E)||typeof E=="boolean")&&(E=$t()),I(h,c.normalize)&&I(h,c.arrays)&&(Array.isArray(m)?E=m.map(g=>te.normalize(g)):E=te.normalize(m)),E}function ke(h,m){return!a["parse-positional-numbers"]&&h==="_"||!I(h,c.strings)&&!I(h,c.bools)&&!Array.isArray(m)&&(Hn(m)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${m}`)))||!ee(m)&&I(h,c.numbers))&&(m=Number(m)),m}function vs(h){let m=Object.create(null);Or(m,c.aliases,l),Object.keys(c.configs).forEach(function(L){let E=h[L]||m[L];if(E)try{let g=null,A=te.resolve(te.cwd(),E),O=c.configs[L];if(typeof O=="function"){try{g=O(A)}catch(R){g=R}if(g instanceof Error){$=g;return}}else g=te.require(A);pt(g)}catch(g){g.name==="PermissionDenied"?$=g:h[L]&&($=Error(f("Invalid JSON config file: %s",E)))}})}function pt(h,m){Object.keys(h).forEach(function(L){let E=h[L],g=m?m+"."+L:L;typeof E=="object"&&E!==null&&!Array.isArray(E)&&a["dot-notation"]?pt(E,g):(!Ce(_,g.split("."))||I(g,c.arrays)&&a["combine-arrays"])&&T(g,E)})}function Es(){typeof u<"u"&&u.forEach(function(h){pt(h)})}function Sr(h,m){if(typeof p>"u")return;let L=typeof p=="string"?p:"",E=te.env();Object.keys(E).forEach(function(g){if(L===""||g.lastIndexOf(L,0)===0){let A=g.split("__").map(function(O,R){return R===0&&(O=O.substring(L.length)),Te(O)});(m&&c.configs[A.join(".")]||!m)&&!Ce(h,A)&&T(A.join("."),E[g])}})}function ws(h){let m,L=new Set;Object.keys(h).forEach(function(E){if(!L.has(E)&&(m=I(E,c.coercions),typeof m=="function"))try{let g=ke(E,m(h[E]));[].concat(c.aliases[E]||[],E).forEach(A=>{L.add(A),h[A]=g})}catch(g){$=g}})}function $s(h){return c.keys.forEach(m=>{~m.indexOf(".")||typeof h[m]>"u"&&(h[m]=void 0)}),h}function Or(h,m,L,E=!1){Object.keys(L).forEach(function(g){Ce(h,g.split("."))||(Re(h,g.split("."),L[g]),E&&(y[g]=!0),(m[g]||[]).forEach(function(A){Ce(h,A.split("."))||Re(h,A.split("."),L[g])}))})}function Ce(h,m){let L=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(g){L=L[g]||{}});let E=m[m.length-1];return typeof L!="object"?!1:E in L}function Re(h,m,L){let E=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(U){U=Hr(U),typeof E=="object"&&E[U]===void 0&&(E[U]={}),typeof E[U]!="object"||Array.isArray(E[U])?(Array.isArray(E[U])?E[U].push({}):E[U]=[E[U],{}],E=E[U][E[U].length-1]):E=E[U]});let g=Hr(m[m.length-1]),A=I(m.join("."),c.arrays),O=Array.isArray(L),R=a["duplicate-arguments-array"];!R&&I(g,c.nargs)&&(R=!0,(!ee(E[g])&&c.nargs[g]===1||Array.isArray(E[g])&&E[g].length===c.nargs[g])&&(E[g]=void 0)),L===$t()?E[g]=$t(E[g]):Array.isArray(E[g])?R&&A&&O?E[g]=a["flatten-duplicate-arrays"]?E[g].concat(L):(Array.isArray(E[g][0])?E[g]:[E[g]]).concat([L]):!R&&!!A==!!O?E[g]=L:E[g]=E[g].concat([L]):E[g]===void 0&&A?E[g]=O?L:[L]:R&&!(E[g]===void 0||I(g,c.counts)||I(g,c.bools))?E[g]=[E[g],L]:E[g]=L}function Ls(...h){h.forEach(function(m){Object.keys(m||{}).forEach(function(L){c.aliases[L]||(c.aliases[L]=[].concat(o[L]||[]),c.aliases[L].concat(L).forEach(function(E){if(/-/.test(E)&&a["camel-case-expansion"]){let g=Te(E);g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].concat(L).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&a["camel-case-expansion"]){let g=Wn(E,"-");g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].forEach(function(E){c.aliases[E]=[L].concat(c.aliases[L].filter(function(g){return E!==g}))}))})})}function I(h,m){let L=[].concat(c.aliases[h]||[],h),E=Object.keys(m),g=L.find(A=>E.includes(A));return g?m[g]:!1}function Ar(h){let m=Object.keys(c);return[].concat(m.map(E=>c[E])).some(function(E){return Array.isArray(E)?E.includes(h):E[h]})}function Ss(h,...m){return[].concat(...m).some(function(E){let g=h.match(E);return g&&Ar(g[1])})}function Os(h){if(h.match(b)||!h.match(/^-[^-]+/))return!1;let m=!0,L,E=h.slice(1).split("");for(let g=0;g<E.length;g++){if(L=h.slice(g+2),!Ar(E[g])){m=!1;break}if(E[g+1]&&E[g+1]==="="||L==="-"||/[A-Za-z]/.test(E[g])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)||E[g+1]&&E[g+1].match(/\W/))break}return m}function Be(h){return a["unknown-options-as-args"]&&As(h)}function As(h){return h=h.replace(/^-{3,}/,"--"),h.match(b)||Os(h)?!1:!Ss(h,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ge(h){return!I(h,c.bools)&&!I(h,c.counts)&&`${h}`in l?l[h]:Cs(Rs(h))}function Cs(h){return{[J.BOOLEAN]:!0,[J.STRING]:"",[J.NUMBER]:void 0,[J.ARRAY]:[]}[h]}function Rs(h){let m=J.BOOLEAN;return I(h,c.strings)?m=J.STRING:I(h,c.numbers)?m=J.NUMBER:I(h,c.bools)?m=J.BOOLEAN:I(h,c.arrays)&&(m=J.ARRAY),m}function ee(h){return h===void 0}function xs(){Object.keys(c.counts).find(h=>I(h,c.arrays)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0):I(h,c.nargs)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(D,_),configuration:a,defaulted:Object.assign({},y),error:$,newAliases:Object.assign({},w)}}};function $o(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,l){return l.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function $t(e){return e!==void 0?e+1:1}function Hr(e){return e==="__proto__"?"___proto___":e}function Lo(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var Lt,St,Ot,Yr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Vr=(St=(Lt=process==null?void 0:process.versions)===null||Lt===void 0?void 0:Lt.node)!==null&&St!==void 0?St:(Ot=process==null?void 0:process.version)===null||Ot===void 0?void 0:Ot.slice(1);if(Vr&&Number(Vr.match(/^([^.]+)/)[1])<Yr)throw Error(`yargs parser supports a minimum Node.js version of ${Yr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var So=process?process.env:{},Yn=new zt({cwd:process.cwd,env:()=>So,format:mo,normalize:bo,resolve:yo,require:e=>{if(typeof dt<"u")return dt(e);if(e.match(/\.json$/))return JSON.parse(vo(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Se=function(t,r){return Yn.parse(t.slice(),r).argv};Se.detailed=function(e,t){return Yn.parse(e.slice(),t)};Se.camelCase=Te;Se.decamelize=Wn;Se.looksLikeNumber=Hn;function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr={exports:{}},Vn=e=>typeof e=="object"&&e!==null,Kn=Symbol("skip"),Kr=e=>Vn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Wt=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:i}=r;delete r.target;let s=o=>o.map(a=>Kr(a)?Wt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let l=t(o,a,e);if(l===Kn)continue;let[u,p,{shouldRecurse:d=!0}={}]=l;u!=="__proto__"&&(r.deep&&d&&Kr(p)&&(p=Array.isArray(p)?s(p):Wt(p,t,r,n)),i[u]=p)}return i};lr.exports=(e,t,r)=>{if(!Vn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Wt(e,t,r)};lr.exports.mapObjectSkip=Kn;var Oo=lr.exports,Ze=ce(Oo),Ao=/[\p{Lu}]/u,Co=/[\p{Ll}]/u,Xr=/^[\p{Lu}](?![\p{Lu}])/gu,Xn=/([\p{Alpha}\p{N}_]|$)/u,cr=/[_.\- ]+/,Ro=new RegExp("^"+cr.source),Jr=new RegExp(cr.source+Xn.source,"gu"),qr=new RegExp("\\d+"+Xn.source,"gu"),xo=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e[l];a=l>2?e[l-3]==="-":!0,i&&Ao.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),i=!1,o=s,s=!0,l++):s&&o&&Co.test(u)&&(!a||n)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),o=s,s=!1,i=!0):(i=t(u)===u&&r(u)!==u,o=s,s=r(u)===u&&t(u)!==u)}return e},Io=(e,t)=>(Xr.lastIndex=0,e.replace(Xr,r=>t(r))),_o=(e,t)=>(Jr.lastIndex=0,qr.lastIndex=0,e.replace(Jr,(r,n)=>t(n)).replace(qr,r=>t(r)));function Po(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(t.locale),n=t.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(t.locale);return e.length===1?cr.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=xo(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Ro,""),e=t.preserveConsecutiveUppercase?Io(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),_o(e,n))}var Qe=class extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(let[r,n]of t)this.onEviction(r,n.value)}_deleteIfExpired(t,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,r.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,r){if(this._deleteIfExpired(t,r)===!1)return r.value}_getItemValue(t,r){return r.expiry?this._getOrDeleteIfExpired(t,r):r.value}_peek(t,r){let n=r.get(t);return this._getItemValue(t,n)}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,r){this.oldCache.delete(t),this._set(t,r)}*_entriesAscending(){for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield t)}for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield t)}}get(t){if(this.cache.has(t)){let r=this.cache.get(t);return this._getItemValue(t,r)}if(this.oldCache.has(t)){let r=this.oldCache.get(t);if(this._deleteIfExpired(t,r)===!1)return this._moveToRecent(t,r),r.value}}set(t,r,{maxAge:n=this.maxAge}={}){let i=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:i}):this._set(t,{value:r,expiry:i}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-t;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let t=[...this.cache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesAscending(){for(let[t,r]of this._entriesAscending())yield[t,r.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,r=this){for(let[n,i]of this.entriesAscending())t.call(r,i,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},No=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),At=new Qe({maxSize:1e5}),Zr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Qr=(e,t)=>{if(!Zr(e))return e;t={deep:!1,pascalCase:!1,...t};let{exclude:r,pascalCase:n,stopPaths:i,deep:s}=t,o=new Set(i),a=l=>(u,p)=>{if(s&&Zr(p)){let d=l===void 0?u:`${l}.${u}`;o.has(d)||(p=Ze(p,a(d)))}if(!(r&&No(r,u))){let d=n?`${u}_`:u;if(At.has(d))u=At.get(d);else{let v=Po(u,{pascalCase:n,locale:!1});u.length<100&&At.set(d,v),u=v}}return[u,p]};return Ze(e,a(void 0))};function Jn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Qr(e[r],t)):Qr(e,t)}function qn(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
9
9
  `);)t++;for(;r>t&&(e[r-1]==="\r"||e[r-1]===`
10
- `);)r--;return t>0||r<e.length?e.slice(t,r):e}var to=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},ro=ce(to);function no(e){let t=ro(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function io(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let s=i?/^/gm:/^(?!\s*$)/gm;return e.replace(s,n.repeat(t))}function zn(e,t=0,r={}){return io(no(e),t,r)}var sr={exports:{}},so=rt,Hr=!1,Wn=(e=console.error)=>{Hr||(Hr=!0,process.on("unhandledRejection",t=>{t instanceof Error||(t=new Error(`Promise rejected with value: ${so.inspect(t)}`)),e(t.stack),process.exit(1)}))};sr.exports=Wn;sr.exports.default=Wn;var oo=sr.exports,Hn=ce(oo),ao=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Yn=ao,lo="2.0.0",Vn=256,co=Number.MAX_SAFE_INTEGER||9007199254740991,uo=16,fo=Vn-6,ho=["major","premajor","minor","preminor","patch","prepatch","prerelease"],Kn={MAX_LENGTH:Vn,MAX_SAFE_COMPONENT_LENGTH:uo,MAX_SAFE_BUILD_LENGTH:fo,MAX_SAFE_INTEGER:co,RELEASE_TYPES:ho,SEMVER_SPEC_VERSION:lo,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Bt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Kn,s=Yn;t=e.exports={};let o=t.re=[],a=t.safeRe=[],l=t.src=[],u=t.t={},p=0,d="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",i],[d,n]],w=f=>{for(let[c,v]of y)f=f.split(`${c}*`).join(`${c}{0,${v}}`).split(`${c}+`).join(`${c}{1,${v}}`);return f},b=(f,c,v)=>{let S=w(c),$=p++;s(f,$,c),u[f]=$,l[$]=c,o[$]=new RegExp(c,v?"g":void 0),a[$]=new RegExp(S,v?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),b("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${d}+`),b("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),b("FULL",`^${l[u.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),b("LOOSE",`^${l[u.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),b("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),b("COERCERTL",l[u.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Bt,Bt.exports);var po=Bt.exports,go=Object.freeze({loose:!0}),mo=Object.freeze({}),bo=e=>e?typeof e!="object"?go:e:mo,yo=bo,Yr=/^[0-9]+$/,Xn=(e,t)=>{let r=Yr.test(e),n=Yr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},vo=(e,t)=>Xn(t,e),Eo={compareIdentifiers:Xn,rcompareIdentifiers:vo},Be=Yn,{MAX_LENGTH:Vr,MAX_SAFE_INTEGER:Ge}=Kn,{safeRe:Kr,t:Xr}=po,wo=yo,{compareIdentifiers:ye}=Eo,$o=class Q{constructor(t,r){if(r=wo(r),t instanceof Q){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Vr)throw new TypeError(`version is longer than ${Vr} characters`);Be("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Kr[Xr.LOOSE]:Kr[Xr.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Ge||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ge||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ge||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Ge)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Be("SemVer.compare",this.version,this.options,t),!(t instanceof Q)){if(typeof t=="string"&&t===this.version)return 0;t=new Q(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Q||(t=new Q(t,this.options)),ye(this.major,t.major)||ye(this.minor,t.minor)||ye(this.patch,t.patch)}comparePre(t){if(t instanceof Q||(t=new Q(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(Be("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ye(n,i)}while(++r)}compareBuild(t){t instanceof Q||(t=new Q(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Be("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ye(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),ye(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},Lo=$o,Jr=Lo,So=(e,t,r=!1)=>{if(e instanceof Jr)return e;try{return new Jr(e,t)}catch(n){if(!r)return null;throw n}},Jn=So,Co=Jn,Oo=(e,t)=>{let r=Co(e,t);return r?r.version:null},qn=Oo,Ao=Jn,Ro=(e,t)=>{let r=Ao(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},Zn=Ro,Qn=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HPND","HPND-Markus-Kuhn","HPND-export-US","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","mpi-permissive","mpich2","mplus","psfrag","psutils","snprintf","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],xo=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],Io=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"],_o=[].concat(Qn).concat(xo),Po=Io,No=function(e){var t=0;function r(){return t<e.length}function n(b){if(b instanceof RegExp){var f=e.slice(t),c=f.match(b);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(b,t)===t)return t+=b.length,b}function i(){n(/[ ]*/)}function s(){for(var b,f=["WITH","AND","OR","(",")",":","+"],c=0;c<f.length&&(b=n(f[c]),!b);c++);if(b==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return b&&{type:"OPERATOR",string:b}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var b=o();if(!b)throw new Error("Expected idstring at offset "+t);return b}function l(){if(n("DocumentRef-")){var b=a();return{type:"DOCUMENTREF",string:b}}}function u(){if(n("LicenseRef-")){var b=a();return{type:"LICENSEREF",string:b}}}function p(){var b=t,f=o();if(_o.indexOf(f)!==-1)return{type:"LICENSE",string:f};if(Po.indexOf(f)!==-1)return{type:"EXCEPTION",string:f};t=b}function d(){return s()||l()||u()||p()}for(var y=[];r()&&(i(),!!r());){var w=d();if(!w)throw new Error("Unexpected `"+e[t]+"` at offset "+t);y.push(w)}return y},Fo=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(f){var c=n();if(c&&c.type==="OPERATOR"&&f===c.string)return i(),c.string}function o(){if(s("WITH")){var f=n();if(f&&f.type==="EXCEPTION")return i(),f.string;throw new Error("Expected exception after `WITH`")}}function a(){var f=t,c="",v=n();if(v.type==="DOCUMENTREF"&&(i(),c+="DocumentRef-"+v.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(v=n(),v.type==="LICENSEREF")return i(),c+="LicenseRef-"+v.string,{license:c};t=f}function l(){var f=n();if(f&&f.type==="LICENSE"){i();var c={license:f.string};s("+")&&(c.plus=!0);var v=o();return v&&(c.exception=v),c}}function u(){var f=s("(");if(f){var c=w();if(!s(")"))throw new Error("Expected `)`");return c}}function p(){return u()||a()||l()}function d(f,c){return function v(){var S=c();if(S){if(!s(f))return S;var $=v();if(!$)throw new Error("Expected expression");return{left:S,conjunction:f.toLowerCase(),right:$}}}}var y=d("AND",p),w=d("OR",y),b=w();if(!b||r())throw new Error("Syntax error");return b},To=No,Do=Fo,ei=function(e){return Do(To(e))},ko=ei,Mo=Qn;function Ye(e){try{return ko(e),!0}catch{return!1}}function ti(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var qr=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(ti),jo=0,Bo=1,Zr=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Gt=Mo.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),Go=Object.keys(Gt).map(function(t){return[t,Gt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Gt=void 0;var Qr=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(Go).sort(ti),Uo=0,zo=1,en=function(e){for(var t=0;t<Zr.length;t++){var r=Zr[t](e).trim();if(r!==e&&Ye(r))return r}return null},tn=function(e){for(var t=e.toUpperCase(),r=0;r<Qr.length;r++){var n=Qr[r];if(t.indexOf(n[Uo])>-1)return n[zo]}return null},rn=function(e,t){for(var r=0;r<qr.length;r++){var n=qr[r],i=n[jo];if(e.indexOf(i)>-1){var s=e.replace(i,n[Bo]),o=t(s);if(o!==null)return o}}return null},Wo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Ho(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Ye(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Ye(s))return n(s);var o=en(e);return o!==null||(o=rn(e,function(a){return Ye(a)?a:en(a)}),o!==null)||(o=tn(e),o!==null)||(o=rn(e,tn),o!==null)?n(o):null};function Ho(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}var Yo=ei,Vo=Wo,nn='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Ko=/^SEE LICEN[CS]E IN (.+)$/;function sn(e,t){return t.slice(0,e.length)===e}function Ut(e){if(e.hasOwnProperty("license")){var t=e.license;return sn("LicenseRef",t)||sn("DocumentRef",t)}else return Ut(e.left)||Ut(e.right)}var ri=function(e){var t;try{t=Yo(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Ko.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[nn]};if(e.trim().length!==0){var i=Vo(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Ut(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[nn]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},xe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Xo=typeof AbortController=="function",qe=Xo?AbortController:class{constructor(){this.signal=new ni}abort(t=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||t,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},Jo=typeof AbortSignal=="function",qo=typeof qe.AbortSignal=="function",ni=Jo?AbortSignal:qo?qe.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(t){t.type==="abort"&&(this.aborted=!0,this.onabort(t),this._listeners.forEach(r=>r(t),this))}onabort(){}addEventListener(t,r){t==="abort"&&this._listeners.push(r)}removeEventListener(t,r){t==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},or=new Set,$t=(e,t)=>{let r=`LRU_CACHE_OPTION_${e}`;it(r)&&ar(r,`${e} option`,`options.${t}`,st)},Lt=(e,t)=>{let r=`LRU_CACHE_METHOD_${e}`;if(it(r)){let{prototype:n}=st,{get:i}=Object.getOwnPropertyDescriptor(n,e);ar(r,`${e} method`,`cache.${t}()`,i)}},Zo=(e,t)=>{let r=`LRU_CACHE_PROPERTY_${e}`;if(it(r)){let{prototype:n}=st,{get:i}=Object.getOwnPropertyDescriptor(n,e);ar(r,`${e} property`,`cache.${t}`,i)}},ii=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},it=e=>!or.has(e),ar=(e,t,r,n)=>{or.add(e);let i=`The ${t} is deprecated. Please use ${r} instead.`;ii(i,"DeprecationWarning",e,n)},ne=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),si=e=>ne(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ve:null:null,Ve=class extends Array{constructor(t){super(t),this.fill(0)}},Qo=class{constructor(t){if(t===0)return[];let r=si(t);this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},st=class zt{constructor(t={}){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:y,maxSize:w=0,maxEntrySize:b=0,sizeCalculation:f,fetchMethod:c,fetchContext:v,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:_,ignoreFetchAbort:k}=t,{length:M,maxAge:Y,stale:V}=t instanceof zt?{}:t;if(r!==0&&!ne(r))throw new TypeError("max option must be a nonnegative integer");let F=r?si(r):Array;if(!F)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=w,this.maxEntrySize=b||this.maxSize,this.sizeCalculation=f||M,this.sizeCalculation){if(!this.maxSize&&!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(this.fetchMethod=c||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=v,!this.fetchMethod&&v!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new F(r),this.prev=new F(r),this.head=0,this.tail=0,this.free=new Qo(r),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof p=="function"?(this.disposeAfter=p,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.maxSize!==0&&!ne(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!ne(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!V,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ne(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||Y||0,this.ttl){if(!ne(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let de="LRU_CACHE_UNBOUNDED";it(de)&&(or.add(de),ii("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",de,zt))}V&&$t("stale","allowStale"),Y&&$t("maxAge","ttl"),M&&$t("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Ve(this.max),this.starts=new Ve(this.max),this.setItemTTL=(n,i,s=xe.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?xe.now():0},this.statusTTL=(n,i)=>{n&&(n.ttl=this.ttls[i],n.start=this.starts[i],n.now=t||r(),n.remainingTTL=n.now+n.ttl-n.start)};let t=0,r=()=>{let n=xe.now();if(this.ttlResolution>0){t=n;let i=setTimeout(()=>t=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{let i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(t||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(t||r())-this.starts[n]>this.ttls[n]}updateItemAge(t){}statusTTL(t,r){}setItemTTL(t,r,n){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Ve(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!ne(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,t),!ne(n))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 n},this.addItemSize=(t,r,n)=>{if(this.sizes[t]=r,this.maxSize){let i=this.maxSize-this.sizes[t];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(t){}addItemSize(t,r){}requireSize(t,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(t){return t!==void 0&&this.keyMap.get(this.keyList[t])===t}*entries(){for(let t of this.indexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*rentries(){for(let t of this.rindexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*keys(){for(let t of this.indexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*rkeys(){for(let t of this.rindexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*values(){for(let t of this.indexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}*rvalues(){for(let t of this.rindexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}[Symbol.iterator](){return this.entries()}find(t,r){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.keyList[n],this))return this.get(this.keyList[n],r)}}forEach(t,r=this){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}rforEach(t,r=this){for(let n of this.rindexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}get prune(){return Lt("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(let r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),t=!0);return t}dump(){let t=[];for(let r of this.indexes({allowStale:!0})){let n=this.keyList[r],i=this.valList[r],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s===void 0)continue;let o={value:s};if(this.ttls){o.ttl=this.ttls[r];let a=xe.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=xe.now()-i}this.set(r,n.value,n)}}dispose(t,r,n){}set(t,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,status:u}={}){if(o=this.requireSize(t,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let p=this.size===0?void 0:this.keyMap.get(t);if(p===void 0)p=this.newIndex(),this.keyList[p]=t,this.valList[p]=r,this.keyMap.set(t,p),this.next[this.tail]=p,this.prev[p]=this.tail,this.tail=p,this.size++,this.addItemSize(p,o,u),u&&(u.set="add"),l=!1;else{this.moveToTail(p);let d=this.valList[p];if(r!==d){if(this.isBackgroundFetch(d)?d.__abortController.abort(new Error("replaced")):s||(this.dispose(d,t,"set"),this.disposeAfter&&this.disposed.push([d,t,"set"])),this.removeItemSize(p),this.valList[p]=r,this.addItemSize(p,o,u),u){u.set="replace";let y=d&&this.isBackgroundFetch(d)?d.__staleWhileFetching:d;y!==void 0&&(u.oldValue=y)}}else u&&(u.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(p,n,i),this.statusTTL(u,p),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let t=this.valList[this.head];return this.evict(!0),t}}evict(t){let r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),t&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(t,{updateAgeOnHas:r=this.updateAgeOnHas,status:n}={}){let i=this.keyMap.get(t);if(i!==void 0)if(this.isStale(i))n&&(n.has="stale",this.statusTTL(n,i));else return r&&this.updateItemAge(i),n&&(n.has="hit"),this.statusTTL(n,i),!0;else n&&(n.has="miss");return!1}peek(t,{allowStale:r=this.allowStale}={}){let n=this.keyMap.get(t);if(n!==void 0&&(r||!this.isStale(n))){let i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(t,r,n,i){let s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;let o=new qe;n.signal&&n.signal.addEventListener("abort",()=>o.abort(n.signal.reason));let a={signal:o.signal,options:n,context:i},l=(w,b=!1)=>{let{aborted:f}=o.signal,c=n.ignoreFetchAbort&&w!==void 0;return n.status&&(f&&!b?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),f&&!c&&!b?p(o.signal.reason):(this.valList[r]===y&&(w===void 0?y.__staleWhileFetching?this.valList[r]=y.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,w,a.options))),w)},u=w=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=w),p(w)),p=w=>{let{aborted:b}=o.signal,f=b&&n.allowStaleOnFetchAbort,c=f||n.allowStaleOnFetchRejection,v=c||n.noDeleteOnFetchRejection;if(this.valList[r]===y&&(!v||y.__staleWhileFetching===void 0?this.delete(t):f||(this.valList[r]=y.__staleWhileFetching)),c)return n.status&&y.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),y.__staleWhileFetching;if(y.__returned===y)throw w},d=(w,b)=>{this.fetchMethod(t,s,a).then(f=>w(f),b),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(w(),n.allowStaleOnFetchAbort&&(w=f=>l(f,!0)))})};n.status&&(n.status.fetchDispatched=!0);let y=new Promise(d).then(l,u);return y.__abortController=o,y.__staleWhileFetching=s,y.__returned=null,r===void 0?(this.set(t,y,{...a.options,status:void 0}),r=this.keyMap.get(t)):this.valList[r]=y,y}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,fetchContext:b=this.fetchContext,forceRefresh:f=!1,status:c,signal:v}={}){if(!this.fetchMethod)return c&&(c.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:c});let S={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:w,ignoreFetchAbort:y,status:c,signal:v},$=this.keyMap.get(t);if($===void 0){c&&(c.fetch="miss");let x=this.backgroundFetch(t,$,S,b);return x.__returned=x}else{let x=this.valList[$];if(this.isBackgroundFetch(x)){let V=r&&x.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",V&&(c.returnedStale=!0)),V?x.__staleWhileFetching:x.__returned=x}let _=this.isStale($);if(!f&&!_)return c&&(c.fetch="hit"),this.moveToTail($),n&&this.updateItemAge($),this.statusTTL(c,$),x;let k=this.backgroundFetch(t,$,S,b),M=k.__staleWhileFetching!==void 0,Y=M&&r;return c&&(c.fetch=M&&_?"stale":"refresh",Y&&_&&(c.returnedStale=!0)),Y?k.__staleWhileFetching:k.__returned=k}}get(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}={}){let o=this.keyMap.get(t);if(o!==void 0){let a=this.valList[o],l=this.isBackgroundFetch(a);return this.statusTTL(s,o),this.isStale(o)?(s&&(s.get="stale"),l?(s&&(s.returnedStale=r&&a.__staleWhileFetching!==void 0),r?a.__staleWhileFetching:void 0):(i||this.delete(t),s&&(s.returnedStale=r),r?a:void 0)):(s&&(s.get="hit"),l?a.__staleWhileFetching:(this.moveToTail(o),n&&this.updateItemAge(o),a))}else s&&(s.get="miss")}connect(t,r){this.prev[r]=t,this.next[t]=r}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return Lt("del","delete"),this.delete}delete(t){let r=!1;if(this.size!==0){let n=this.keyMap.get(t);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);let i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,t,"delete"),this.disposeAfter&&this.disposed.push([i,t,"delete"])),this.keyMap.delete(t),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(let t of this.rindexes({allowStale:!0})){let r=this.valList[t];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{let n=this.keyList[t];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Lt("reset","clear"),this.clear}get length(){return Zo("length","size"),this.size}static get AbortController(){return qe}static get AbortSignal(){return ni}},ea=st,P=(...e)=>e.every(t=>t)?e.join(""):"",j=e=>e?encodeURIComponent(e):"",oi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),ta={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${P("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${P("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${P("/",i,"/",j(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${P("/",i,"/",j(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${j(n||"HEAD")}/${s}${P("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${j(n||"HEAD")}/${s}${P("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${P("/",n,"/",j(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${j(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${P("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${P("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:oi},ae={};ae.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${P(e,"@")}raw.githubusercontent.com/${t}/${r}/${j(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${j(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};ae.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${P("/",i,"/",j(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${j(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};ae.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${j(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};ae.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${P("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${P("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${P("/",j(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",j(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",j(r))}${P("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",j(r))}${P("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",j(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${P("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${P("/",j(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${P("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${P("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${P("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${j(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+oi(e)}};ae.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${j(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${P("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${j(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(ae))ae[e]=Object.assign({},ta,t);var ra=ae,na=nt,St=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},on=e=>{try{return new na.URL(e)}catch{}},ia=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},sa=e=>{let t=St(e,"@","#"),r=St(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),St(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},ai=(e,t)=>{let r=t?ia(e,t):e;return on(r)||on(sa(r))},oa=ai,aa=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,y=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&y&&w&&l&&u&&p},la=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=aa(e)?`github:${e}`:e,s=oa(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,y=null,w=null,b=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let v=f.lastIndexOf("/");v>-1?(y=decodeURIComponent(f.slice(0,v)),y||(y=null),w=decodeURIComponent(f.slice(v+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),b="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;y=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),b=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,y,p,w,d,b,t]},ca=ea,ua=ra,fa=la,ha=ai,Ct=new ca({max:1e3}),li=class re{constructor(t,r,n,i,s,o,a={}){Object.assign(this,re.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){re.#r[t]=r,re.#r.byDomain[r.domain]=t,re.#r.byShortcut[`${t}:`]=t,re.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Ct.has(n)){let i=fa(t,r,{gitHosts:re.#r,protocols:re.#s});Ct.set(n,i?new re(...i):void 0)}return Ct.get(n)}static parseUrl(t){return ha(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(ua))li.addHost(e,t);var pa=li,da="Function.prototype.bind called on incompatible ",Ot=Array.prototype.slice,ga=Object.prototype.toString,ma="[object Function]",ba=function(t){var r=this;if(typeof r!="function"||ga.call(r)!==ma)throw new TypeError(da+r);for(var n=Ot.call(arguments,1),i,s=function(){if(this instanceof i){var p=r.apply(this,n.concat(Ot.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(Ot.call(arguments)))},o=Math.max(0,r.length-n.length),a=[],l=0;l<o;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},ya=ba,va=Function.prototype.bind||ya,Ea=va,wa=Ea.call(Function.call,Object.prototype.hasOwnProperty),$a=!0,La=">= 8",Sa=">= 0.5 && < 0.9.7",Ca=!0,Oa=!0,Aa=">= 0.5",Ra=!0,xa=!0,Ia=!0,_a=">= 1 && < 8",Pa="< 8",Na=!0,Fa=[">= 14.17 && < 15",">= 15.1"],Ta=!0,Da=">= 0.7.12",ka=!0,Ma="< 6",ja=!0,Ba=">= 0.11.1",Ga=">= 0.11.1",Ua=">= 0.11.1",za=">= 0.11.1",Wa=">= 0.11.1",Ha=">= 0.11.1",Ya=!0,Va=">= 8.8",Ka=!0,Xa=">= 8",Ja="< 8",qa=!0,Za=!0,Qa=!0,el=!0,tl=">= 8.5",rl=">= 1",nl=">= 0.5",il=!0,sl=!0,ol=!0,al=">= 0.11.5 && < 3",ll=">= 0.9.4",cl=">= 0.9.4",ul=">= 1.4.1",fl=">= 0.9.4",hl=">= 0.9.4",pl=">= 0.9.4",dl=!0,gl=!0,ml=[">= 0.4 && < 0.7",">= 0.8"],bl=!0,yl=">= 0.11.13",vl=">= 0.11.3 && < 10",El=">= 0.11.3",wl=!0,$l=">= 10",Ll=!0,Sl=!0,Cl=!0,Ol=">= 1",Al=!0,Rl=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],xl=">= 11.7",Il=">= 0.5",_l={assert:$a,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:La,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:Sa,buffer:Ca,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:Oa,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:Aa,"node:cluster":[">= 14.18 && < 15",">= 16"],console:Ra,"node:console":[">= 14.18 && < 15",">= 16"],constants:xa,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:Ia,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_a,_debugger:Pa,dgram:Na,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:Fa,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:Ta,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:Da,"node:domain":[">= 14.18 && < 15",">= 16"],events:ka,"node:events":[">= 14.18 && < 15",">= 16"],freelist:Ma,fs:ja,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:Ba,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:Ga,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Ua,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:za,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Wa,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ha,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Ya,"node:http":[">= 14.18 && < 15",">= 16"],http2:Va,"node:http2":[">= 14.18 && < 15",">= 16"],https:Ka,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Xa,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Ja,module:qa,"node:module":[">= 14.18 && < 15",">= 16"],net:Za,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:Qa,"node:os":[">= 14.18 && < 15",">= 16"],path:el,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:tl,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:rl,"node:process":[">= 14.18 && < 15",">= 16"],punycode:nl,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:il,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:sl,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:ol,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:al,_stream_duplex:ll,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:cl,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:ul,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:fl,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:hl,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:pl,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:dl,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:gl,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:ml,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:bl,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:yl,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:vl,_tls_wrap:El,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:wl,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:$l,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:Ll,"node:tty":[">= 14.18 && < 15",">= 16"],url:Sl,"node:url":[">= 14.18 && < 15",">= 16"],util:Cl,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:Ol,"node:v8":[">= 14.18 && < 15",">= 16"],vm:Al,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:Rl,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:xl,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:Il,"node:zlib":[">= 14.18 && < 15",">= 16"]},Pl=wa;function Nl(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",s=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),l=parseInt(s[o]||0,10);if(a!==l)return i==="<"?a<l:i===">="?a>=l:!1}return i===">="}function an(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Nl(e,r[n]))return!1;return!0}function Fl(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(an(r,t[n]))return!0;return!1}return an(r,t)}var ln=_l,ci=function(t,r){return Pl(ln,t)&&Fl(r,ln[t])},Tl=Dl;function Dl(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
11
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var kl={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},Ml={web:"url",name:"url"},jl={server:"start",tests:"test"},Bl={topLevel:kl,bugs:Ml,script:jl},Gl=qn,Ul=Zn,zl=ri,Ue=pa,Wl=ci,Hl=["dependencies","devDependencies","optionalDependencies"],Yl=Tl,At=nt,se=Bl,cn=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Vl={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Ue.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(se.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,se.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):se.script[t]&&!e.scripts[se.script[t]]&&this.warn("typo",t,se.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){tc(e,this.warn),Ql(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=Ue.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!Gl(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Ul(e.version,r),!0},fixPeople:function(e){un(e,ql),un(e,Zl)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Jl(e.name,r,t.allowLegacyCase),Wl(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Yl(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Ue.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")cn(e.bugs)?e.bugs={email:e.bugs}:At.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{rc(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&At.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&cn(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Ue.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;At.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!zl(t).validForNewPackages)return this.warn("invalidLicense")}};function Kl(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Xl(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Jl(e,t,r){if(e.charAt(0)==="."||!(Kl(e)||Xl(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function un(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function ql(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Zl(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function Ql(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function ec(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function tc(e,t){Hl.forEach(function(r){e[r]&&(e[r]=ec(e[r],r,t))})}function rc(e,t){e&&Object.keys(e).forEach(function(r){se.bugs[r]&&(t("typo",r,se.bugs[r],"bugs"),e[se.bugs[r]]=e[r],delete e[r])})}var nc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",ic="No repository field.",sc="Probably broken git url: %s",oc="scripts must be an object",ac="script values must be string commands",lc="Invalid 'files' member",cc="Invalid filename in 'files' list: %s",uc="Invalid 'bundleDependencies' list. Must be array of package names",fc="Invalid bundleDependencies member: %s",hc="Non-dependency in bundleDependencies: %s",pc="%s field must be an object",dc="Invalid dependency: %s %s",gc="specifying %s as array is deprecated",mc="modules field is deprecated",bc="keywords should be an array of strings",yc="keywords should be an array of strings",vc="%s is also the name of a node core module.",Ec="'description' field should be a string",wc="No description",$c="No README data",Lc="No license field.",Sc="Bug string field must be url, email, or {email,url}",Cc="bugs.url field must be a string url. Deleted.",Oc="bugs.email field must be a string email. Deleted.",Ac="Normalized value of bugs field is an empty object. Deleted.",Rc="homepage field must be a string url. Deleted.",xc="license should be a valid SPDX license expression",Ic="%s should probably be %s.",_c={repositories:nc,missingRepository:ic,brokenGitUrl:sc,nonObjectScripts:oc,nonStringScript:ac,nonArrayFiles:lc,invalidFilename:cc,nonArrayBundleDependencies:uc,nonStringBundleDependency:fc,nonDependencyBundleDependency:hc,nonObjectDependencies:pc,nonStringDependency:dc,deprecatedArrayDependencies:gc,deprecatedModules:mc,nonArrayKeywords:bc,nonStringKeyword:yc,conflictingName:vc,nonStringDescription:Ec,missingDescription:wc,missingReadme:$c,missingLicense:Lc,nonEmailUrlBugsString:Sc,nonUrlBugsUrlField:Cc,nonEmailBugsEmailField:Oc,emptyNormalizedBugs:Ac,nonUrlHomepage:Rc,invalidLicense:xc,typo:Ic},ui=rt,Wt=_c,Pc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Nc.apply(null,e);var r=Wt[t]?Wt[t]:t+": '%s'";return e.unshift(r),ui.format.apply(null,e)};function Nc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),ui.format(Wt.typo,e,t)}var Fc=fi,Ht=Vl;fi.fixer=Ht;var Tc=Pc,Dc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],kc=["dependencies","people","typos"],Yt=Dc.map(function(e){return hi(e)+"Field"});Yt=Yt.concat(kc);function fi(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Ht.warn=function(){t(Tc.apply(null,arguments))},Yt.forEach(function(n){Ht["fix"+hi(n)](e,r)}),e._id=e.name+"@"+e.version}function hi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var pi=ce(Fc),di={directory:"isDirectory",file:"isFile"};function Mc(e){if(!Object.hasOwnProperty.call(di,e))throw new Error(`Invalid type specified: ${e}`)}var jc=(e,t)=>t[di[e]](),Bc=e=>e instanceof URL?rr(e):e;function fn(e,{cwd:t=Gs.cwd(),type:r="file",allowSymlinks:n=!0}={}){Mc(r),t=Bc(t);let i=n?kt.statSync:kt.lstatSync;for(let s of e)try{let o=i(ue.resolve(t,s),{throwIfNoEntry:!1});if(!o)continue;if(jc(r,o))return s}catch{}}var Gc=e=>e instanceof URL?rr(e):e,Uc=Symbol("findUpStop");function zc(e,t={}){let r=ue.resolve(Gc(t.cwd)||""),{root:n}=ue.parse(r),i=t.stopAt||n,s=t.limit||Number.POSITIVE_INFINITY,o=[e].flat(),a=u=>{if(typeof e!="function")return fn(o,u);let p=e(u.cwd);return typeof p=="string"?fn([p],u):p},l=[];for(;;){let u=a({...t,cwd:r});if(u===Uc||(u&&l.push(ue.resolve(r,u)),r===i||l.length>=s))break;r=ue.dirname(r)}return l}function Wc(e,t={}){return zc(e,{...t,limit:1})[0]}var Hc=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1},Yc=rt,Vc=Hc,lr=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var n=function i(s){if(!this)return new i(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,n),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var p=s.split(/\r?\n/g);for(var d in r)if(r.hasOwnProperty(d)){var y=r[d];"message"in y&&(p=y.message(this[d],p)||p,Vc(p)||(p=[p]))}return p.join(`
12
- `)},set:function(p){s=p}});var o=null,a=Object.getOwnPropertyDescriptor(this,"stack"),l=a.get,u=a.value;delete a.value,delete a.writable,a.set=function(p){o=p},a.get=function(){var p=(o||(l?l.call(this):u)).split(/\r?\n+/g);o||(p[0]=this.name+": "+this.message);var d=1;for(var y in r)if(r.hasOwnProperty(y)){var w=r[y];if("line"in w){var b=w.line(this[y]);b&&p.splice(d++,0," "+b)}"stack"in w&&w.stack(this[y],p)}return p.join(`
13
- `)},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):Yc.inherits(n,Error),n};lr.append=function(e,t){return{message:function(r,n){return r=r||t,r&&(n[0]+=" "+e.replace("%s",r.toString())),n}}};lr.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};var Kc=lr,Rt=ce(Kc),Xc=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},Jc=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${Xc(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,l=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===l?"":"near "}${JSON.stringify(l)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},Ze=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=Jc(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},qc=Symbol.for("indent"),Zc=Symbol.for("newline"),Qc=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,eu=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,ot=(e,t,r)=>{let n=gi(e);r=r||20;try{let[,i=`
14
- `,s=" "]=n.match(eu)||n.match(Qc)||[null,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[Zc]=i,o[qc]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new Ze(i,n,r,ot)}},gi=e=>String(e).replace(/^\uFEFF/,""),tu=ot;ot.JSONParseError=Ze;ot.noExceptions=(e,t)=>{try{return JSON.parse(gi(e),t)}catch{}};var ru=ce(tu),cr={},Pe={},at={};Object.defineProperty(at,"__esModule",{value:!0});at.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;at.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var mi={},Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.isIdentifierChar=Ei;Ne.isIdentifierName=ou;Ne.isIdentifierStart=vi;var ur="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",bi="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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",nu=new RegExp("["+ur+"]"),iu=new RegExp("["+ur+bi+"]");ur=bi=null;var yi=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],su=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Vt(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function vi(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&nu.test(String.fromCharCode(e)):Vt(e,yi)}function Ei(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&iu.test(String.fromCharCode(e)):Vt(e,yi)||Vt(e,su)}function ou(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023))}if(t){if(t=!1,!vi(n))return!1}else if(!Ei(n))return!1}return!t}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isKeyword=fu;he.isReservedWord=wi;he.isStrictBindOnlyReservedWord=Li;he.isStrictBindReservedWord=uu;he.isStrictReservedWord=$i;var fr={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"]},au=new Set(fr.keyword),lu=new Set(fr.strict),cu=new Set(fr.strictBind);function wi(e,t){return t&&e==="await"||e==="enum"}function $i(e,t){return wi(e,t)||lu.has(e)}function Li(e){return cu.has(e)}function uu(e,t){return $i(e,t)||Li(e)}function fu(e){return au.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=Ne,r=he})(mi);var Si={exports:{}},hu=/[|\\{}()[\]^$+*?.]/g,pu=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(hu,"\\$&")},hr={exports:{}},Ci={exports:{}},du={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fe=du,Oi={};for(ze in fe)fe.hasOwnProperty(ze)&&(Oi[fe[ze]]=ze);var ze,A=Ci.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(H in A)if(A.hasOwnProperty(H)){if(!("channels"in A[H]))throw new Error("missing channels property: "+H);if(!("labels"in A[H]))throw new Error("missing channel labels property: "+H);if(A[H].labels.length!==A[H].channels)throw new Error("channel and label counts mismatch: "+H);hn=A[H].channels,pn=A[H].labels,delete A[H].channels,delete A[H].labels,Object.defineProperty(A[H],"channels",{value:hn}),Object.defineProperty(A[H],"labels",{value:pn})}var hn,pn,H;A.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,l,u;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};A.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(o,a,l),p=u-Math.min(o,a,l),d=function(y){return(u-y)/6/p+1/2};return p===0?i=s=0:(s=p/u,t=d(o),r=d(a),n=d(l),o===u?i=n-r:a===u?i=1/3+t-n:l===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};A.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=A.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};A.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function gu(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}A.rgb.keyword=function(e){var t=Oi[e];if(t)return t;var r=1/0,n;for(var i in fe)if(fe.hasOwnProperty(i)){var s=fe[i],o=gu(e,s);o<r&&(r=o,n=i)}return n};A.keyword.rgb=function(e){return fe[e]};A.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};A.rgb.lab=function(e){var t=A.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};A.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(s-i)*6*o:2*o<1?l=s:3*o<2?l=i+(s-i)*(2/3-o)*6:l=i,a[u]=l*255;return a};A.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};A.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};A.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};A.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,l;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),l=r+a*(o-r);var u,p,d;switch(s){default:case 6:case 0:u=o,p=l,d=r;break;case 1:u=l,p=o,d=r;break;case 2:u=r,p=o,d=l;break;case 3:u=r,p=l,d=o;break;case 4:u=l,p=r,d=o;break;case 5:u=o,p=r,d=l;break}return[u*255,p*255,d*255]};A.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};A.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};A.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};A.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),l=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};A.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};A.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};A.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:A.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};A.hsv.ansi16=function(e){return A.rgb.ansi16(A.hsv.rgb(e),e[2])};A.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};A.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};A.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};A.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};A.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};A.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===t?l=(r-n)/o%6:i===r?l=2+(n-t)/o:l=4+(t-r)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};A.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};A.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};A.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};A.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};A.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};A.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};A.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};A.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};A.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};A.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};A.gray.hsl=A.gray.hsv=function(e){return[0,0,e[0]]};A.gray.hwb=function(e){return[0,100,e[0]]};A.gray.cmyk=function(e){return[0,0,0,e[0]]};A.gray.lab=function(e){return[e[0],0,0]};A.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};A.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Ai=Ci.exports,Qe=Ai;function mu(){for(var e={},t=Object.keys(Qe),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function bu(e){var t=mu(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Qe[n]),s=i.length,o=0;o<s;o++){var a=i[o],l=t[a];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(a))}return t}function yu(e,t){return function(r){return t(e(r))}}function vu(e,t){for(var r=[t[e].parent,e],n=Qe[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=yu(Qe[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Eu=function(e){for(var t=bu(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=vu(o,t))}return r},Kt=Ai,wu=Eu,ve={},$u=Object.keys(Kt);function Lu(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Su(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}$u.forEach(function(e){ve[e]={},Object.defineProperty(ve[e],"channels",{value:Kt[e].channels}),Object.defineProperty(ve[e],"labels",{value:Kt[e].labels});var t=wu(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ve[e][n]=Su(i),ve[e][n].raw=Lu(i)})});var Ri=ve;hr.exports;(function(e){let t=Ri,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let y of Object.keys(d)){let w=d[y];a[y]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[y]=a[y],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,y)=>[p,d,y];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(hr);var Cu=hr.exports,Ou=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},Au=Fn,q=Ou,U=process.env,Ee;q("no-color")||q("no-colors")||q("color=false")?Ee=!1:(q("color")||q("colors")||q("color=true")||q("color=always"))&&(Ee=!0);"FORCE_COLOR"in U&&(Ee=U.FORCE_COLOR.length===0||parseInt(U.FORCE_COLOR,10)!==0);function Ru(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function xu(e){if(Ee===!1)return 0;if(q("color=16m")||q("color=full")||q("color=truecolor"))return 3;if(q("color=256"))return 2;if(e&&!e.isTTY&&Ee!==!0)return 0;let t=Ee?1:0;if(process.platform==="win32"){let r=Au.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in U)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in U)||U.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in U){let r=parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:(U.TERM==="dumb",t)}function xt(e){let t=xu(e);return Ru(t)}var Iu={supportsColor:xt,stdout:xt(process.stdout),stderr:xt(process.stderr)},_u=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,dn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Pu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nu=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Fu=new Map([["n",`
15
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xi(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Fu.get(e)||e}function Tu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Pu))r.push(i[2].replace(Nu,(o,a,l)=>a?xi(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Du(e){dn.lastIndex=0;let t=[],r;for(;(r=dn.exec(e))!==null;){let n=r[1];if(r[2]){let i=Tu(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function gn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var ku=(e,t)=>{let r=[],n=[],i=[];if(t.replace(_u,(s,o,a,l,u,p)=>{if(o)i.push(xi(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:gn(e,r)(d)),r.push({inverse:a,styles:Du(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(gn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=pu,r=Cu,n=Iu.stdout,i=ku,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let v=n?n.level:0;f.level=c.level===void 0?v:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let v=[].slice.call(arguments);return b.apply(null,[c.template].concat(v))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return y.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return y.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return y.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let v=this.level;return function(){let $={open:r.bgColor[o[v]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return y.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function y(f,c,v){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||v==="gray"||v==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,v=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)v+=" "+f[$];if(!this.enabled||this.level<=0||!v)return this._empty?"":v;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())v=$.open+v.replace($.closeRe,$.open)+$.close,v=v.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,v}function b(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let v=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(v[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Si);var Mu=Si.exports;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default=Hu;Pe.shouldHighlight=_i;var mn=at,bn=mi,ju=Mu,Xt=ju,Bu=new Set(["as","async","from","get","of","set"]);function Gu(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var Uu=/\r\n|[\n\r\u2028\u2029]/,zu=/^[()[\]{}]$/,Ii;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,bn.isKeyword)(r.value)||(0,bn.isStrictReservedWord)(r.value,!0)||Bu.has(r.value))return"keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&zu.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Ii=function*(r){let n;for(;n=mn.default.exec(r);){let i=mn.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function Wu(e,t){let r="";for(let{type:n,value:i}of Ii(t)){let s=e[n];s?r+=i.split(Uu).map(o=>s(o)).join(`
16
- `):r+=i}return r}function _i(e){return!!Xt.supportsColor||e.forceColor}var It;function Pi(e){if(e){var t;return(t=It)!=null||(It=new Xt.constructor({enabled:!0,level:1})),It}return Xt}Pe.getChalk=e=>Pi(e.forceColor);function Hu(e,t={}){if(e!==""&&_i(t)){let r=Gu(Pi(t.forceColor));return Wu(r,e)}else return e}var Ni={exports:{}},Yu=/[|\\{}()[\]^$+*?.]/g,Vu=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Yu,"\\$&")},pr={exports:{}};pr.exports;(function(e){let t=Ri,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let y of Object.keys(d)){let w=d[y];a[y]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[y]=a[y],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,y)=>[p,d,y];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(pr);var Ku=pr.exports,Xu=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},Ju=Fn,Z=Xu,z=process.env,we;Z("no-color")||Z("no-colors")||Z("color=false")?we=!1:(Z("color")||Z("colors")||Z("color=true")||Z("color=always"))&&(we=!0);"FORCE_COLOR"in z&&(we=z.FORCE_COLOR.length===0||parseInt(z.FORCE_COLOR,10)!==0);function qu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Zu(e){if(we===!1)return 0;if(Z("color=16m")||Z("color=full")||Z("color=truecolor"))return 3;if(Z("color=256"))return 2;if(e&&!e.isTTY&&we!==!0)return 0;let t=we?1:0;if(process.platform==="win32"){let r=Ju.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in z)||z.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(z.TEAMCITY_VERSION)?1:0;if(z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in z){let r=parseInt((z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(z.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(z.TERM)||"COLORTERM"in z?1:(z.TERM==="dumb",t)}function _t(e){let t=Zu(e);return qu(t)}var Qu={supportsColor:_t,stdout:_t(process.stdout),stderr:_t(process.stderr)},ef=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,yn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,tf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,rf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,nf=new Map([["n",`
17
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Fi(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):nf.get(e)||e}function sf(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(tf))r.push(i[2].replace(rf,(o,a,l)=>a?Fi(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function of(e){yn.lastIndex=0;let t=[],r;for(;(r=yn.exec(e))!==null;){let n=r[1];if(r[2]){let i=sf(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function vn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var af=(e,t)=>{let r=[],n=[],i=[];if(t.replace(ef,(s,o,a,l,u,p)=>{if(o)i.push(Fi(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:vn(e,r)(d)),r.push({inverse:a,styles:of(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(vn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=Vu,r=Ku,n=Qu.stdout,i=af,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let v=n?n.level:0;f.level=c.level===void 0?v:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let v=[].slice.call(arguments);return b.apply(null,[c.template].concat(v))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return y.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return y.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return y.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let v=this.level;return function(){let $={open:r.bgColor[o[v]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return y.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function y(f,c,v){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||v==="gray"||v==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,v=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)v+=" "+f[$];if(!this.enabled||this.level<=0||!v)return this._empty?"":v;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())v=$.open+v.replace($.closeRe,$.open)+$.close,v=v.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,v}function b(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let v=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(v[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Ni);var lf=Ni.exports;Object.defineProperty(cr,"__esModule",{value:!0});var cf=cr.codeFrameColumns=Ti;cr.default=df;var En=Pe,uf=lf,wn=uf,Pt;function ff(e){if(e){var t;return(t=Pt)!=null||(Pt=new wn.constructor({enabled:!0,level:1})),Pt}return wn}var $n=!1;function hf(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Ln=/\r\n|[\n\r\u2028\u2029]/;function pf(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:o=3}=r||{},a=n.line,l=n.column,u=i.line,p=i.column,d=Math.max(a-(s+1),0),y=Math.min(t.length,u+o);a===-1&&(d=0),u===-1&&(y=t.length);let w=u-a,b={};if(w)for(let f=0;f<=w;f++){let c=f+a;if(!l)b[c]=!0;else if(f===0){let v=t[c-1].length;b[c]=[l,v-l+1]}else if(f===w)b[c]=[0,p];else{let v=t[c-f].length;b[c]=[0,v]}}else l===p?l?b[a]=[l,0]:b[a]=!0:b[a]=[l,p-l];return{start:d,end:y,markerLines:b}}function Ti(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,En.shouldHighlight)(r),i=ff(r.forceColor),s=hf(i),o=(f,c)=>n?f(c):c,a=e.split(Ln),{start:l,end:u,markerLines:p}=pf(t,a,r),d=t.start&&typeof t.start.column=="number",y=String(u).length,b=(n?(0,En.default)(e,r):e).split(Ln,u).slice(l,u).map((f,c)=>{let v=l+1+c,$=` ${` ${v}`.slice(-y)} |`,x=p[v],_=!p[v+1];if(x){let k="";if(Array.isArray(x)){let M=f.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Y=x[1]||1;k=[`
18
- `,o(s.gutter,$.replace(/\d/g," "))," ",M,o(s.marker,"^").repeat(Y)].join(""),_&&r.message&&(k+=" "+o(s.message,r.message))}return[o(s.marker,">"),o(s.gutter,$),f.length>0?` ${f}`:"",k].join("")}else return` ${o(s.gutter,$)}${f.length>0?` ${f}`:""}`}).join(`
19
- `);return r.message&&!d&&(b=`${" ".repeat(y+1)}${r.message}
20
- ${b}`),n?i.reset(b):b}function df(e,t,r,n={}){if(!$n){$n=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{let o=new Error(s);o.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),Ti(e,{start:{column:r,line:t}},n)}var We=`
21
- `,Sn="\r",gf=function(){function e(t){this.length=t.length;for(var r=[0],n=0;n<t.length;)switch(t[n]){case We:n+=We.length,r.push(n);break;case Sn:n+=Sn.length,t[n]===We&&(n+=We.length),r.push(n);break;default:n++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var i=t-n[r];return{line:r,column:i}},e.prototype.indexForLocation=function(t){var r=t.line,n=t.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}(),mf=Rt("JSONError",{fileName:Rt.append("in %s"),codeFrame:Rt.append(`
10
+ `);)r--;return t>0||r<e.length?e.slice(t,r):e}var To=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Fo=ce(To);function Do(e){let t=Fo(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Mo(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let s=i?/^/gm:/^(?!\s*$)/gm;return e.replace(s,n.repeat(t))}function Zn(e,t=0,r={}){return Mo(Do(e),t,r)}var ur={exports:{}},jo=st,en=!1,Qn=(e=console.error)=>{en||(en=!0,process.on("unhandledRejection",t=>{t instanceof Error||(t=new Error(`Promise rejected with value: ${jo.inspect(t)}`)),e(t.stack),process.exit(1)}))};ur.exports=Qn;ur.exports.default=Qn;var ko=ur.exports,ei=ce(ko),Bo=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},ti=Bo,Uo="2.0.0",ri=256,Go=Number.MAX_SAFE_INTEGER||9007199254740991,zo=16,Wo=ri-6,Ho=["major","premajor","minor","preminor","patch","prepatch","prerelease"],ni={MAX_LENGTH:ri,MAX_SAFE_COMPONENT_LENGTH:zo,MAX_SAFE_BUILD_LENGTH:Wo,MAX_SAFE_INTEGER:Go,RELEASE_TYPES:Ho,SEMVER_SPEC_VERSION:Uo,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ht={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=ni,s=ti;t=e.exports={};let o=t.re=[],a=t.safeRe=[],l=t.src=[],u=t.t={},p=0,d="[a-zA-Z0-9-]",v=[["\\s",1],["\\d",i],[d,n]],w=f=>{for(let[c,b]of v)f=f.split(`${c}*`).join(`${c}{0,${b}}`).split(`${c}+`).join(`${c}{1,${b}}`);return f},y=(f,c,b)=>{let S=w(c),$=p++;s(f,$,c),u[f]=$,l[$]=c,o[$]=new RegExp(c,b?"g":void 0),a[$]=new RegExp(S,b?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ht,Ht.exports);var Yo=Ht.exports,Vo=Object.freeze({loose:!0}),Ko=Object.freeze({}),Xo=e=>e?typeof e!="object"?Vo:e:Ko,Jo=Xo,tn=/^[0-9]+$/,ii=(e,t)=>{let r=tn.test(e),n=tn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},qo=(e,t)=>ii(t,e),Zo={compareIdentifiers:ii,rcompareIdentifiers:qo},ze=ti,{MAX_LENGTH:rn,MAX_SAFE_INTEGER:We}=ni,{safeRe:nn,t:sn}=Yo,Qo=Jo,{compareIdentifiers:ve}=Zo,ea=class Q{constructor(t,r){if(r=Qo(r),t instanceof Q){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>rn)throw new TypeError(`version is longer than ${rn} characters`);ze("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?nn[sn.LOOSE]:nn[sn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>We||this.major<0)throw new TypeError("Invalid major version");if(this.minor>We||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>We||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<We)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ze("SemVer.compare",this.version,this.options,t),!(t instanceof Q)){if(typeof t=="string"&&t===this.version)return 0;t=new Q(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Q||(t=new Q(t,this.options)),ve(this.major,t.major)||ve(this.minor,t.minor)||ve(this.patch,t.patch)}comparePre(t){if(t instanceof Q||(t=new Q(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(ze("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ve(n,i)}while(++r)}compareBuild(t){t instanceof Q||(t=new Q(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(ze("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ve(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),ve(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},ta=ea,on=ta,ra=(e,t,r=!1)=>{if(e instanceof on)return e;try{return new on(e,t)}catch(n){if(!r)return null;throw n}},si=ra,na=si,ia=(e,t)=>{let r=na(e,t);return r?r.version:null},oi=ia,sa=si,oa=(e,t)=>{let r=sa(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},ai=oa,li=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HPND","HPND-Markus-Kuhn","HPND-export-US","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","mpi-permissive","mpich2","mplus","psfrag","psutils","snprintf","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],aa=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],la=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"],ca=[].concat(li).concat(aa),ua=la,fa=function(e){var t=0;function r(){return t<e.length}function n(y){if(y instanceof RegExp){var f=e.slice(t),c=f.match(y);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(y,t)===t)return t+=y.length,y}function i(){n(/[ ]*/)}function s(){for(var y,f=["WITH","AND","OR","(",")",":","+"],c=0;c<f.length&&(y=n(f[c]),!y);c++);if(y==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return y&&{type:"OPERATOR",string:y}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var y=o();if(!y)throw new Error("Expected idstring at offset "+t);return y}function l(){if(n("DocumentRef-")){var y=a();return{type:"DOCUMENTREF",string:y}}}function u(){if(n("LicenseRef-")){var y=a();return{type:"LICENSEREF",string:y}}}function p(){var y=t,f=o();if(ca.indexOf(f)!==-1)return{type:"LICENSE",string:f};if(ua.indexOf(f)!==-1)return{type:"EXCEPTION",string:f};t=y}function d(){return s()||l()||u()||p()}for(var v=[];r()&&(i(),!!r());){var w=d();if(!w)throw new Error("Unexpected `"+e[t]+"` at offset "+t);v.push(w)}return v},ha=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(f){var c=n();if(c&&c.type==="OPERATOR"&&f===c.string)return i(),c.string}function o(){if(s("WITH")){var f=n();if(f&&f.type==="EXCEPTION")return i(),f.string;throw new Error("Expected exception after `WITH`")}}function a(){var f=t,c="",b=n();if(b.type==="DOCUMENTREF"&&(i(),c+="DocumentRef-"+b.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return i(),c+="LicenseRef-"+b.string,{license:c};t=f}function l(){var f=n();if(f&&f.type==="LICENSE"){i();var c={license:f.string};s("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function u(){var f=s("(");if(f){var c=w();if(!s(")"))throw new Error("Expected `)`");return c}}function p(){return u()||a()||l()}function d(f,c){return function b(){var S=c();if(S){if(!s(f))return S;var $=b();if(!$)throw new Error("Expected expression");return{left:S,conjunction:f.toLowerCase(),right:$}}}}var v=d("AND",p),w=d("OR",v),y=w();if(!y||r())throw new Error("Syntax error");return y},pa=fa,da=ha,ci=function(e){return da(pa(e))},ga=ci,ma=li;function Xe(e){try{return ga(e),!0}catch{return!1}}function ui(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var an=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(ui),ba=0,ya=1,ln=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Yt=ma.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),va=Object.keys(Yt).map(function(t){return[t,Yt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Yt=void 0;var cn=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(va).sort(ui),Ea=0,wa=1,un=function(e){for(var t=0;t<ln.length;t++){var r=ln[t](e).trim();if(r!==e&&Xe(r))return r}return null},fn=function(e){for(var t=e.toUpperCase(),r=0;r<cn.length;r++){var n=cn[r];if(t.indexOf(n[Ea])>-1)return n[wa]}return null},hn=function(e,t){for(var r=0;r<an.length;r++){var n=an[r],i=n[ba];if(e.indexOf(i)>-1){var s=e.replace(i,n[ya]),o=t(s);if(o!==null)return o}}return null},$a=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?La(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Xe(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Xe(s))return n(s);var o=un(e);return o!==null||(o=hn(e,function(a){return Xe(a)?a:un(a)}),o!==null)||(o=fn(e),o!==null)||(o=hn(e,fn),o!==null)?n(o):null};function La(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}var Sa=ci,Oa=$a,pn='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Aa=/^SEE LICEN[CS]E IN (.+)$/;function dn(e,t){return t.slice(0,e.length)===e}function Vt(e){if(e.hasOwnProperty("license")){var t=e.license;return dn("LicenseRef",t)||dn("DocumentRef",t)}else return Vt(e.left)||Vt(e.right)}var fi=function(e){var t;try{t=Sa(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Aa.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[pn]};if(e.trim().length!==0){var i=Oa(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Vt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[pn]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},Pe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ca=typeof AbortController=="function",et=Ca?AbortController:class{constructor(){this.signal=new hi}abort(t=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||t,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},Ra=typeof AbortSignal=="function",xa=typeof et.AbortSignal=="function",hi=Ra?AbortSignal:xa?et.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(t){t.type==="abort"&&(this.aborted=!0,this.onabort(t),this._listeners.forEach(r=>r(t),this))}onabort(){}addEventListener(t,r){t==="abort"&&this._listeners.push(r)}removeEventListener(t,r){t==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},fr=new Set,Ct=(e,t)=>{let r=`LRU_CACHE_OPTION_${e}`;at(r)&&hr(r,`${e} option`,`options.${t}`,lt)},Rt=(e,t)=>{let r=`LRU_CACHE_METHOD_${e}`;if(at(r)){let{prototype:n}=lt,{get:i}=Object.getOwnPropertyDescriptor(n,e);hr(r,`${e} method`,`cache.${t}()`,i)}},Ia=(e,t)=>{let r=`LRU_CACHE_PROPERTY_${e}`;if(at(r)){let{prototype:n}=lt,{get:i}=Object.getOwnPropertyDescriptor(n,e);hr(r,`${e} property`,`cache.${t}`,i)}},pi=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},at=e=>!fr.has(e),hr=(e,t,r,n)=>{fr.add(e);let i=`The ${t} is deprecated. Please use ${r} instead.`;pi(i,"DeprecationWarning",e,n)},ne=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),di=e=>ne(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Je:null:null,Je=class extends Array{constructor(t){super(t),this.fill(0)}},_a=class{constructor(t){if(t===0)return[];let r=di(t);this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},lt=class Kt{constructor(t={}){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:v,maxSize:w=0,maxEntrySize:y=0,sizeCalculation:f,fetchMethod:c,fetchContext:b,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:_,ignoreFetchAbort:D}=t,{length:j,maxAge:Y,stale:V}=t instanceof Kt?{}:t;if(r!==0&&!ne(r))throw new TypeError("max option must be a nonnegative integer");let T=r?di(r):Array;if(!T)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=w,this.maxEntrySize=y||this.maxSize,this.sizeCalculation=f||j,this.sizeCalculation){if(!this.maxSize&&!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(this.fetchMethod=c||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=b,!this.fetchMethod&&b!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new T(r),this.prev=new T(r),this.head=0,this.tail=0,this.free=new _a(r),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof p=="function"?(this.disposeAfter=p,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.maxSize!==0&&!ne(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!ne(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!V,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ne(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||Y||0,this.ttl){if(!ne(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let de="LRU_CACHE_UNBOUNDED";at(de)&&(fr.add(de),pi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",de,Kt))}V&&Ct("stale","allowStale"),Y&&Ct("maxAge","ttl"),j&&Ct("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Je(this.max),this.starts=new Je(this.max),this.setItemTTL=(n,i,s=Pe.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?Pe.now():0},this.statusTTL=(n,i)=>{n&&(n.ttl=this.ttls[i],n.start=this.starts[i],n.now=t||r(),n.remainingTTL=n.now+n.ttl-n.start)};let t=0,r=()=>{let n=Pe.now();if(this.ttlResolution>0){t=n;let i=setTimeout(()=>t=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{let i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(t||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(t||r())-this.starts[n]>this.ttls[n]}updateItemAge(t){}statusTTL(t,r){}setItemTTL(t,r,n){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Je(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!ne(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,t),!ne(n))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 n},this.addItemSize=(t,r,n)=>{if(this.sizes[t]=r,this.maxSize){let i=this.maxSize-this.sizes[t];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(t){}addItemSize(t,r){}requireSize(t,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(t){return t!==void 0&&this.keyMap.get(this.keyList[t])===t}*entries(){for(let t of this.indexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*rentries(){for(let t of this.rindexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*keys(){for(let t of this.indexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*rkeys(){for(let t of this.rindexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*values(){for(let t of this.indexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}*rvalues(){for(let t of this.rindexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}[Symbol.iterator](){return this.entries()}find(t,r){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.keyList[n],this))return this.get(this.keyList[n],r)}}forEach(t,r=this){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}rforEach(t,r=this){for(let n of this.rindexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}get prune(){return Rt("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(let r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),t=!0);return t}dump(){let t=[];for(let r of this.indexes({allowStale:!0})){let n=this.keyList[r],i=this.valList[r],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s===void 0)continue;let o={value:s};if(this.ttls){o.ttl=this.ttls[r];let a=Pe.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Pe.now()-i}this.set(r,n.value,n)}}dispose(t,r,n){}set(t,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,status:u}={}){if(o=this.requireSize(t,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let p=this.size===0?void 0:this.keyMap.get(t);if(p===void 0)p=this.newIndex(),this.keyList[p]=t,this.valList[p]=r,this.keyMap.set(t,p),this.next[this.tail]=p,this.prev[p]=this.tail,this.tail=p,this.size++,this.addItemSize(p,o,u),u&&(u.set="add"),l=!1;else{this.moveToTail(p);let d=this.valList[p];if(r!==d){if(this.isBackgroundFetch(d)?d.__abortController.abort(new Error("replaced")):s||(this.dispose(d,t,"set"),this.disposeAfter&&this.disposed.push([d,t,"set"])),this.removeItemSize(p),this.valList[p]=r,this.addItemSize(p,o,u),u){u.set="replace";let v=d&&this.isBackgroundFetch(d)?d.__staleWhileFetching:d;v!==void 0&&(u.oldValue=v)}}else u&&(u.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(p,n,i),this.statusTTL(u,p),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let t=this.valList[this.head];return this.evict(!0),t}}evict(t){let r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),t&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(t,{updateAgeOnHas:r=this.updateAgeOnHas,status:n}={}){let i=this.keyMap.get(t);if(i!==void 0)if(this.isStale(i))n&&(n.has="stale",this.statusTTL(n,i));else return r&&this.updateItemAge(i),n&&(n.has="hit"),this.statusTTL(n,i),!0;else n&&(n.has="miss");return!1}peek(t,{allowStale:r=this.allowStale}={}){let n=this.keyMap.get(t);if(n!==void 0&&(r||!this.isStale(n))){let i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(t,r,n,i){let s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;let o=new et;n.signal&&n.signal.addEventListener("abort",()=>o.abort(n.signal.reason));let a={signal:o.signal,options:n,context:i},l=(w,y=!1)=>{let{aborted:f}=o.signal,c=n.ignoreFetchAbort&&w!==void 0;return n.status&&(f&&!y?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),f&&!c&&!y?p(o.signal.reason):(this.valList[r]===v&&(w===void 0?v.__staleWhileFetching?this.valList[r]=v.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,w,a.options))),w)},u=w=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=w),p(w)),p=w=>{let{aborted:y}=o.signal,f=y&&n.allowStaleOnFetchAbort,c=f||n.allowStaleOnFetchRejection,b=c||n.noDeleteOnFetchRejection;if(this.valList[r]===v&&(!b||v.__staleWhileFetching===void 0?this.delete(t):f||(this.valList[r]=v.__staleWhileFetching)),c)return n.status&&v.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),v.__staleWhileFetching;if(v.__returned===v)throw w},d=(w,y)=>{this.fetchMethod(t,s,a).then(f=>w(f),y),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(w(),n.allowStaleOnFetchAbort&&(w=f=>l(f,!0)))})};n.status&&(n.status.fetchDispatched=!0);let v=new Promise(d).then(l,u);return v.__abortController=o,v.__staleWhileFetching=s,v.__returned=null,r===void 0?(this.set(t,v,{...a.options,status:void 0}),r=this.keyMap.get(t)):this.valList[r]=v,v}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,fetchContext:y=this.fetchContext,forceRefresh:f=!1,status:c,signal:b}={}){if(!this.fetchMethod)return c&&(c.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:c});let S={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:w,ignoreFetchAbort:v,status:c,signal:b},$=this.keyMap.get(t);if($===void 0){c&&(c.fetch="miss");let x=this.backgroundFetch(t,$,S,y);return x.__returned=x}else{let x=this.valList[$];if(this.isBackgroundFetch(x)){let V=r&&x.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",V&&(c.returnedStale=!0)),V?x.__staleWhileFetching:x.__returned=x}let _=this.isStale($);if(!f&&!_)return c&&(c.fetch="hit"),this.moveToTail($),n&&this.updateItemAge($),this.statusTTL(c,$),x;let D=this.backgroundFetch(t,$,S,y),j=D.__staleWhileFetching!==void 0,Y=j&&r;return c&&(c.fetch=j&&_?"stale":"refresh",Y&&_&&(c.returnedStale=!0)),Y?D.__staleWhileFetching:D.__returned=D}}get(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}={}){let o=this.keyMap.get(t);if(o!==void 0){let a=this.valList[o],l=this.isBackgroundFetch(a);return this.statusTTL(s,o),this.isStale(o)?(s&&(s.get="stale"),l?(s&&(s.returnedStale=r&&a.__staleWhileFetching!==void 0),r?a.__staleWhileFetching:void 0):(i||this.delete(t),s&&(s.returnedStale=r),r?a:void 0)):(s&&(s.get="hit"),l?a.__staleWhileFetching:(this.moveToTail(o),n&&this.updateItemAge(o),a))}else s&&(s.get="miss")}connect(t,r){this.prev[r]=t,this.next[t]=r}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return Rt("del","delete"),this.delete}delete(t){let r=!1;if(this.size!==0){let n=this.keyMap.get(t);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);let i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,t,"delete"),this.disposeAfter&&this.disposed.push([i,t,"delete"])),this.keyMap.delete(t),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(let t of this.rindexes({allowStale:!0})){let r=this.valList[t];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{let n=this.keyList[t];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Rt("reset","clear"),this.clear}get length(){return Ia("length","size"),this.size}static get AbortController(){return et}static get AbortSignal(){return hi}},Pa=lt,P=(...e)=>e.every(t=>t)?e.join(""):"",k=e=>e?encodeURIComponent(e):"",gi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Na={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${P("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${P("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${k(n||"HEAD")}/${s}${P("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${k(n||"HEAD")}/${s}${P("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${P("/",n,"/",k(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${k(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${P("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${P("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:gi},ae={};ae.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${P(e,"@")}raw.githubusercontent.com/${t}/${r}/${k(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${k(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};ae.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${k(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};ae.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${k(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};ae.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${P("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${P("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${P("/",k(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",k(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",k(r))}${P("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",k(r))}${P("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",k(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${P("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${P("/",k(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${P("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${P("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${P("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${k(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+gi(e)}};ae.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${k(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${P("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${k(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(ae))ae[e]=Object.assign({},Na,t);var Ta=ae,Fa=ot,xt=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},gn=e=>{try{return new Fa.URL(e)}catch{}},Da=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},Ma=e=>{let t=xt(e,"@","#"),r=xt(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),xt(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},mi=(e,t)=>{let r=t?Da(e,t):e;return gn(r)||gn(Ma(r))},ja=mi,ka=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,v=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&v&&w&&l&&u&&p},Ba=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=ka(e)?`github:${e}`:e,s=ja(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,v=null,w=null,y=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let b=f.lastIndexOf("/");b>-1?(v=decodeURIComponent(f.slice(0,b)),v||(v=null),w=decodeURIComponent(f.slice(b+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),y="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;v=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),y=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,v,p,w,d,y,t]},Ua=Pa,Ga=Ta,za=Ba,Wa=mi,It=new Ua({max:1e3}),bi=class re{constructor(t,r,n,i,s,o,a={}){Object.assign(this,re.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){re.#r[t]=r,re.#r.byDomain[r.domain]=t,re.#r.byShortcut[`${t}:`]=t,re.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!It.has(n)){let i=za(t,r,{gitHosts:re.#r,protocols:re.#s});It.set(n,i?new re(...i):void 0)}return It.get(n)}static parseUrl(t){return Wa(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(Ga))bi.addHost(e,t);var Ha=bi,Ya="Function.prototype.bind called on incompatible ",_t=Array.prototype.slice,Va=Object.prototype.toString,Ka="[object Function]",Xa=function(t){var r=this;if(typeof r!="function"||Va.call(r)!==Ka)throw new TypeError(Ya+r);for(var n=_t.call(arguments,1),i,s=function(){if(this instanceof i){var p=r.apply(this,n.concat(_t.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(_t.call(arguments)))},o=Math.max(0,r.length-n.length),a=[],l=0;l<o;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},Ja=Xa,qa=Function.prototype.bind||Ja,Za=qa,Qa=Za.call(Function.call,Object.prototype.hasOwnProperty),el=!0,tl=">= 8",rl=">= 0.5 && < 0.9.7",nl=!0,il=!0,sl=">= 0.5",ol=!0,al=!0,ll=!0,cl=">= 1 && < 8",ul="< 8",fl=!0,hl=[">= 14.17 && < 15",">= 15.1"],pl=!0,dl=">= 0.7.12",gl=!0,ml="< 6",bl=!0,yl=">= 0.11.1",vl=">= 0.11.1",El=">= 0.11.1",wl=">= 0.11.1",$l=">= 0.11.1",Ll=">= 0.11.1",Sl=!0,Ol=">= 8.8",Al=!0,Cl=">= 8",Rl="< 8",xl=!0,Il=!0,_l=!0,Pl=!0,Nl=">= 8.5",Tl=">= 1",Fl=">= 0.5",Dl=!0,Ml=!0,jl=!0,kl=">= 0.11.5 && < 3",Bl=">= 0.9.4",Ul=">= 0.9.4",Gl=">= 1.4.1",zl=">= 0.9.4",Wl=">= 0.9.4",Hl=">= 0.9.4",Yl=!0,Vl=!0,Kl=[">= 0.4 && < 0.7",">= 0.8"],Xl=!0,Jl=">= 0.11.13",ql=">= 0.11.3 && < 10",Zl=">= 0.11.3",Ql=!0,ec=">= 10",tc=!0,rc=!0,nc=!0,ic=">= 1",sc=!0,oc=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],ac=">= 11.7",lc=">= 0.5",cc={assert:el,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:tl,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:rl,buffer:nl,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:il,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:sl,"node:cluster":[">= 14.18 && < 15",">= 16"],console:ol,"node:console":[">= 14.18 && < 15",">= 16"],constants:al,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:ll,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:cl,_debugger:ul,dgram:fl,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:hl,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:pl,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:dl,"node:domain":[">= 14.18 && < 15",">= 16"],events:gl,"node:events":[">= 14.18 && < 15",">= 16"],freelist:ml,fs:bl,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:yl,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:vl,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:El,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:wl,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:$l,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ll,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Sl,"node:http":[">= 14.18 && < 15",">= 16"],http2:Ol,"node:http2":[">= 14.18 && < 15",">= 16"],https:Al,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Cl,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Rl,module:xl,"node:module":[">= 14.18 && < 15",">= 16"],net:Il,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:_l,"node:os":[">= 14.18 && < 15",">= 16"],path:Pl,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Nl,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Tl,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Fl,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Dl,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Ml,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:jl,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:kl,_stream_duplex:Bl,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:Ul,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:Gl,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:zl,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:Wl,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:Hl,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:Yl,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:Vl,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:Kl,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:Xl,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:Jl,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:ql,_tls_wrap:Zl,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:Ql,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:ec,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tc,"node:tty":[">= 14.18 && < 15",">= 16"],url:rc,"node:url":[">= 14.18 && < 15",">= 16"],util:nc,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:ic,"node:v8":[">= 14.18 && < 15",">= 16"],vm:sc,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:oc,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:ac,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:lc,"node:zlib":[">= 14.18 && < 15",">= 16"]},uc=Qa;function fc(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",s=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),l=parseInt(s[o]||0,10);if(a!==l)return i==="<"?a<l:i===">="?a>=l:!1}return i===">="}function mn(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!fc(e,r[n]))return!1;return!0}function hc(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(mn(r,t[n]))return!0;return!1}return mn(r,t)}var bn=cc,yi=function(t,r){return uc(bn,t)&&hc(r,bn[t])},pc=dc;function dc(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
11
+ `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var gc={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},mc={web:"url",name:"url"},bc={server:"start",tests:"test"},yc={topLevel:gc,bugs:mc,script:bc},vc=oi,Ec=ai,wc=fi,He=Ha,$c=yi,Lc=["dependencies","devDependencies","optionalDependencies"],Sc=pc,Pt=ot,se=yc,yn=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Oc={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=He.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(se.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,se.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):se.script[t]&&!e.scripts[se.script[t]]&&this.warn("typo",t,se.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Nc(e,this.warn),_c(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=He.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!vc(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Ec(e.version,r),!0},fixPeople:function(e){vn(e,xc),vn(e,Ic)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Rc(e.name,r,t.allowLegacyCase),$c(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Sc(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")yn(e.bugs)?e.bugs={email:e.bugs}:Pt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Tc(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Pt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&yn(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Pt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!wc(t).validForNewPackages)return this.warn("invalidLicense")}};function Ac(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Cc(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Rc(e,t,r){if(e.charAt(0)==="."||!(Ac(e)||Cc(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function vn(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function xc(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Ic(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function _c(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function Pc(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function Nc(e,t){Lc.forEach(function(r){e[r]&&(e[r]=Pc(e[r],r,t))})}function Tc(e,t){e&&Object.keys(e).forEach(function(r){se.bugs[r]&&(t("typo",r,se.bugs[r],"bugs"),e[se.bugs[r]]=e[r],delete e[r])})}var Fc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Dc="No repository field.",Mc="Probably broken git url: %s",jc="scripts must be an object",kc="script values must be string commands",Bc="Invalid 'files' member",Uc="Invalid filename in 'files' list: %s",Gc="Invalid 'bundleDependencies' list. Must be array of package names",zc="Invalid bundleDependencies member: %s",Wc="Non-dependency in bundleDependencies: %s",Hc="%s field must be an object",Yc="Invalid dependency: %s %s",Vc="specifying %s as array is deprecated",Kc="modules field is deprecated",Xc="keywords should be an array of strings",Jc="keywords should be an array of strings",qc="%s is also the name of a node core module.",Zc="'description' field should be a string",Qc="No description",eu="No README data",tu="No license field.",ru="Bug string field must be url, email, or {email,url}",nu="bugs.url field must be a string url. Deleted.",iu="bugs.email field must be a string email. Deleted.",su="Normalized value of bugs field is an empty object. Deleted.",ou="homepage field must be a string url. Deleted.",au="license should be a valid SPDX license expression",lu="%s should probably be %s.",cu={repositories:Fc,missingRepository:Dc,brokenGitUrl:Mc,nonObjectScripts:jc,nonStringScript:kc,nonArrayFiles:Bc,invalidFilename:Uc,nonArrayBundleDependencies:Gc,nonStringBundleDependency:zc,nonDependencyBundleDependency:Wc,nonObjectDependencies:Hc,nonStringDependency:Yc,deprecatedArrayDependencies:Vc,deprecatedModules:Kc,nonArrayKeywords:Xc,nonStringKeyword:Jc,conflictingName:qc,nonStringDescription:Zc,missingDescription:Qc,missingReadme:eu,missingLicense:tu,nonEmailUrlBugsString:ru,nonUrlBugsUrlField:nu,nonEmailBugsEmailField:iu,emptyNormalizedBugs:su,nonUrlHomepage:ou,invalidLicense:au,typo:lu},vi=st,Xt=cu,uu=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return fu.apply(null,e);var r=Xt[t]?Xt[t]:t+": '%s'";return e.unshift(r),vi.format.apply(null,e)};function fu(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),vi.format(Xt.typo,e,t)}var hu=Ei,Jt=Oc;Ei.fixer=Jt;var pu=uu,du=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],gu=["dependencies","people","typos"],qt=du.map(function(e){return wi(e)+"Field"});qt=qt.concat(gu);function Ei(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Jt.warn=function(){t(pu.apply(null,arguments))},qt.forEach(function(n){Jt["fix"+wi(n)](e,r)}),e._id=e.name+"@"+e.version}function wi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var $i=ce(hu),Li={directory:"isDirectory",file:"isFile"};function mu(e){if(!Object.hasOwnProperty.call(Li,e))throw new Error(`Invalid type specified: ${e}`)}var bu=(e,t)=>t[Li[e]](),yu=e=>e instanceof URL?ar(e):e;function En(e,{cwd:t=Eo.cwd(),type:r="file",allowSymlinks:n=!0}={}){mu(r),t=yu(t);let i=n?Gt.statSync:Gt.lstatSync;for(let s of e)try{let o=i(ue.resolve(t,s),{throwIfNoEntry:!1});if(!o)continue;if(bu(r,o))return s}catch{}}var vu=e=>e instanceof URL?ar(e):e,Eu=Symbol("findUpStop");function wu(e,t={}){let r=ue.resolve(vu(t.cwd)||""),{root:n}=ue.parse(r),i=t.stopAt||n,s=t.limit||Number.POSITIVE_INFINITY,o=[e].flat(),a=u=>{if(typeof e!="function")return En(o,u);let p=e(u.cwd);return typeof p=="string"?En([p],u):p},l=[];for(;;){let u=a({...t,cwd:r});if(u===Eu||(u&&l.push(ue.resolve(r,u)),r===i||l.length>=s))break;r=ue.dirname(r)}return l}function $u(e,t={}){return wu(e,{...t,limit:1})[0]}var Lu=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1},Su=st,Ou=Lu,pr=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var n=function i(s){if(!this)return new i(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,n),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var p=s.split(/\r?\n/g);for(var d in r)if(r.hasOwnProperty(d)){var v=r[d];"message"in v&&(p=v.message(this[d],p)||p,Ou(p)||(p=[p]))}return p.join(`
12
+ `)},set:function(p){s=p}});var o=null,a=Object.getOwnPropertyDescriptor(this,"stack"),l=a.get,u=a.value;delete a.value,delete a.writable,a.set=function(p){o=p},a.get=function(){var p=(o||(l?l.call(this):u)).split(/\r?\n+/g);o||(p[0]=this.name+": "+this.message);var d=1;for(var v in r)if(r.hasOwnProperty(v)){var w=r[v];if("line"in w){var y=w.line(this[v]);y&&p.splice(d++,0," "+y)}"stack"in w&&w.stack(this[v],p)}return p.join(`
13
+ `)},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):Su.inherits(n,Error),n};pr.append=function(e,t){return{message:function(r,n){return r=r||t,r&&(n[0]+=" "+e.replace("%s",r.toString())),n}}};pr.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};var Au=pr,Nt=ce(Au),Cu=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},Ru=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${Cu(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,l=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===l?"":"near "}${JSON.stringify(l)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},tt=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=Ru(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},xu=Symbol.for("indent"),Iu=Symbol.for("newline"),_u=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,Pu=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,ct=(e,t,r)=>{let n=Si(e);r=r||20;try{let[,i=`
14
+ `,s=" "]=n.match(Pu)||n.match(_u)||[null,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[Iu]=i,o[xu]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new tt(i,n,r,ct)}},Si=e=>String(e).replace(/^\uFEFF/,""),Nu=ct;ct.JSONParseError=tt;ct.noExceptions=(e,t)=>{try{return JSON.parse(Si(e),t)}catch{}};var Tu=ce(Nu),dr={},Fe={},ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.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;ut.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Oi={},De={};Object.defineProperty(De,"__esModule",{value:!0});De.isIdentifierChar=xi;De.isIdentifierName=ju;De.isIdentifierStart=Ri;var gr="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ai="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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",Fu=new RegExp("["+gr+"]"),Du=new RegExp("["+gr+Ai+"]");gr=Ai=null;var Ci=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Mu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Zt(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Ri(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Fu.test(String.fromCharCode(e)):Zt(e,Ci)}function xi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Du.test(String.fromCharCode(e)):Zt(e,Ci)||Zt(e,Mu)}function ju(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023))}if(t){if(t=!1,!Ri(n))return!1}else if(!xi(n))return!1}return!t}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isKeyword=zu;he.isReservedWord=Ii;he.isStrictBindOnlyReservedWord=Pi;he.isStrictBindReservedWord=Gu;he.isStrictReservedWord=_i;var mr={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"]},ku=new Set(mr.keyword),Bu=new Set(mr.strict),Uu=new Set(mr.strictBind);function Ii(e,t){return t&&e==="await"||e==="enum"}function _i(e,t){return Ii(e,t)||Bu.has(e)}function Pi(e){return Uu.has(e)}function Gu(e,t){return _i(e,t)||Pi(e)}function zu(e){return ku.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=De,r=he})(Oi);var Ni={exports:{}},Wu=/[|\\{}()[\]^$+*?.]/g,Hu=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Wu,"\\$&")},br={exports:{}},Ti={exports:{}},Yu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fe=Yu,Fi={};for(Ye in fe)fe.hasOwnProperty(Ye)&&(Fi[fe[Ye]]=Ye);var Ye,C=Ti.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(H in C)if(C.hasOwnProperty(H)){if(!("channels"in C[H]))throw new Error("missing channels property: "+H);if(!("labels"in C[H]))throw new Error("missing channel labels property: "+H);if(C[H].labels.length!==C[H].channels)throw new Error("channel and label counts mismatch: "+H);wn=C[H].channels,$n=C[H].labels,delete C[H].channels,delete C[H].labels,Object.defineProperty(C[H],"channels",{value:wn}),Object.defineProperty(C[H],"labels",{value:$n})}var wn,$n,H;C.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,l,u;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};C.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(o,a,l),p=u-Math.min(o,a,l),d=function(v){return(u-v)/6/p+1/2};return p===0?i=s=0:(s=p/u,t=d(o),r=d(a),n=d(l),o===u?i=n-r:a===u?i=1/3+t-n:l===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};C.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=C.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function Vu(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}C.rgb.keyword=function(e){var t=Fi[e];if(t)return t;var r=1/0,n;for(var i in fe)if(fe.hasOwnProperty(i)){var s=fe[i],o=Vu(e,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(e){return fe[e]};C.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(e){var t=C.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};C.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(s-i)*6*o:2*o<1?l=s:3*o<2?l=i+(s-i)*(2/3-o)*6:l=i,a[u]=l*255;return a};C.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};C.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};C.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};C.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,l;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),l=r+a*(o-r);var u,p,d;switch(s){default:case 6:case 0:u=o,p=l,d=r;break;case 1:u=l,p=o,d=r;break;case 2:u=r,p=o,d=l;break;case 3:u=r,p=l,d=o;break;case 4:u=l,p=r,d=o;break;case 5:u=o,p=r,d=l;break}return[u*255,p*255,d*255]};C.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};C.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};C.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};C.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),l=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};C.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};C.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:C.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};C.hsv.ansi16=function(e){return C.rgb.ansi16(C.hsv.rgb(e),e[2])};C.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};C.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};C.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};C.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===t?l=(r-n)/o%6:i===r?l=2+(n-t)/o:l=4+(t-r)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};C.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};C.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};C.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};C.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};C.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};C.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};C.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};C.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};C.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};C.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};C.gray.hsl=C.gray.hsv=function(e){return[0,0,e[0]]};C.gray.hwb=function(e){return[0,100,e[0]]};C.gray.cmyk=function(e){return[0,0,0,e[0]]};C.gray.lab=function(e){return[e[0],0,0]};C.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Di=Ti.exports,rt=Di;function Ku(){for(var e={},t=Object.keys(rt),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xu(e){var t=Ku(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(rt[n]),s=i.length,o=0;o<s;o++){var a=i[o],l=t[a];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(a))}return t}function Ju(e,t){return function(r){return t(e(r))}}function qu(e,t){for(var r=[t[e].parent,e],n=rt[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Ju(rt[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Zu=function(e){for(var t=Xu(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=qu(o,t))}return r},Qt=Di,Qu=Zu,Ee={},ef=Object.keys(Qt);function tf(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function rf(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}ef.forEach(function(e){Ee[e]={},Object.defineProperty(Ee[e],"channels",{value:Qt[e].channels}),Object.defineProperty(Ee[e],"labels",{value:Qt[e].labels});var t=Qu(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ee[e][n]=rf(i),Ee[e][n].raw=tf(i)})});var Mi=Ee;br.exports;(function(e){let t=Mi,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let v of Object.keys(d)){let w=d[v];a[v]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[v]=a[v],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,v)=>[p,d,v];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(br);var nf=br.exports,sf=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},of=zn,q=sf,G=process.env,we;q("no-color")||q("no-colors")||q("color=false")?we=!1:(q("color")||q("colors")||q("color=true")||q("color=always"))&&(we=!0);"FORCE_COLOR"in G&&(we=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function af(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function lf(e){if(we===!1)return 0;if(q("color=16m")||q("color=full")||q("color=truecolor"))return 3;if(q("color=256"))return 2;if(e&&!e.isTTY&&we!==!0)return 0;let t=we?1:0;if(process.platform==="win32"){let r=of.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in G)||G.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in G){let r=parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:(G.TERM==="dumb",t)}function Tt(e){let t=lf(e);return af(t)}var cf={supportsColor:Tt,stdout:Tt(process.stdout),stderr:Tt(process.stderr)},uf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ln=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ff=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,pf=new Map([["n",`
15
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ji(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):pf.get(e)||e}function df(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(ff))r.push(i[2].replace(hf,(o,a,l)=>a?ji(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function gf(e){Ln.lastIndex=0;let t=[],r;for(;(r=Ln.exec(e))!==null;){let n=r[1];if(r[2]){let i=df(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Sn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var mf=(e,t)=>{let r=[],n=[],i=[];if(t.replace(uf,(s,o,a,l,u,p)=>{if(o)i.push(ji(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:Sn(e,r)(d)),r.push({inverse:a,styles:gf(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Sn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=Hu,r=nf,n=cf.stdout,i=mf,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let b=n?n.level:0;f.level=c.level===void 0?b:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let b=[].slice.call(arguments);return y.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return v.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return v.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return v.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let b=this.level;return function(){let $={open:r.bgColor[o[b]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return v.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function v(f,c,b){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||b==="gray"||b==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)b+=" "+f[$];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())b=$.open+b.replace($.closeRe,$.open)+$.close,b=b.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,b}function y(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(b[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Ni);var bf=Ni.exports;Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=Sf;Fe.shouldHighlight=Bi;var On=ut,An=Oi,yf=bf,er=yf,vf=new Set(["as","async","from","get","of","set"]);function Ef(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var wf=/\r\n|[\n\r\u2028\u2029]/,$f=/^[()[\]{}]$/,ki;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,An.isKeyword)(r.value)||(0,An.isStrictReservedWord)(r.value,!0)||vf.has(r.value))return"keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&$f.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};ki=function*(r){let n;for(;n=On.default.exec(r);){let i=On.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function Lf(e,t){let r="";for(let{type:n,value:i}of ki(t)){let s=e[n];s?r+=i.split(wf).map(o=>s(o)).join(`
16
+ `):r+=i}return r}function Bi(e){return!!er.supportsColor||e.forceColor}var Ft;function Ui(e){if(e){var t;return(t=Ft)!=null||(Ft=new er.constructor({enabled:!0,level:1})),Ft}return er}Fe.getChalk=e=>Ui(e.forceColor);function Sf(e,t={}){if(e!==""&&Bi(t)){let r=Ef(Ui(t.forceColor));return Lf(r,e)}else return e}var Gi={exports:{}},Of=/[|\\{}()[\]^$+*?.]/g,Af=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Of,"\\$&")},yr={exports:{}};yr.exports;(function(e){let t=Mi,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let v of Object.keys(d)){let w=d[v];a[v]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[v]=a[v],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,v)=>[p,d,v];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(yr);var Cf=yr.exports,Rf=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},xf=zn,Z=Rf,z=process.env,$e;Z("no-color")||Z("no-colors")||Z("color=false")?$e=!1:(Z("color")||Z("colors")||Z("color=true")||Z("color=always"))&&($e=!0);"FORCE_COLOR"in z&&($e=z.FORCE_COLOR.length===0||parseInt(z.FORCE_COLOR,10)!==0);function If(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _f(e){if($e===!1)return 0;if(Z("color=16m")||Z("color=full")||Z("color=truecolor"))return 3;if(Z("color=256"))return 2;if(e&&!e.isTTY&&$e!==!0)return 0;let t=$e?1:0;if(process.platform==="win32"){let r=xf.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in z)||z.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(z.TEAMCITY_VERSION)?1:0;if(z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in z){let r=parseInt((z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(z.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(z.TERM)||"COLORTERM"in z?1:(z.TERM==="dumb",t)}function Dt(e){let t=_f(e);return If(t)}var Pf={supportsColor:Dt,stdout:Dt(process.stdout),stderr:Dt(process.stderr)},Nf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Cn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ff=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Df=new Map([["n",`
17
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function zi(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Df.get(e)||e}function Mf(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Tf))r.push(i[2].replace(Ff,(o,a,l)=>a?zi(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function jf(e){Cn.lastIndex=0;let t=[],r;for(;(r=Cn.exec(e))!==null;){let n=r[1];if(r[2]){let i=Mf(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Rn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var kf=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Nf,(s,o,a,l,u,p)=>{if(o)i.push(zi(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:Rn(e,r)(d)),r.push({inverse:a,styles:jf(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Rn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=Af,r=Cf,n=Pf.stdout,i=kf,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let b=n?n.level:0;f.level=c.level===void 0?b:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let b=[].slice.call(arguments);return y.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return v.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return v.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return v.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let b=this.level;return function(){let $={open:r.bgColor[o[b]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return v.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function v(f,c,b){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||b==="gray"||b==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)b+=" "+f[$];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())b=$.open+b.replace($.closeRe,$.open)+$.close,b=b.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,b}function y(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(b[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Gi);var Bf=Gi.exports;Object.defineProperty(dr,"__esModule",{value:!0});var Uf=dr.codeFrameColumns=Wi;dr.default=Yf;var xn=Fe,Gf=Bf,In=Gf,Mt;function zf(e){if(e){var t;return(t=Mt)!=null||(Mt=new In.constructor({enabled:!0,level:1})),Mt}return In}var _n=!1;function Wf(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Pn=/\r\n|[\n\r\u2028\u2029]/;function Hf(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:o=3}=r||{},a=n.line,l=n.column,u=i.line,p=i.column,d=Math.max(a-(s+1),0),v=Math.min(t.length,u+o);a===-1&&(d=0),u===-1&&(v=t.length);let w=u-a,y={};if(w)for(let f=0;f<=w;f++){let c=f+a;if(!l)y[c]=!0;else if(f===0){let b=t[c-1].length;y[c]=[l,b-l+1]}else if(f===w)y[c]=[0,p];else{let b=t[c-f].length;y[c]=[0,b]}}else l===p?l?y[a]=[l,0]:y[a]=!0:y[a]=[l,p-l];return{start:d,end:v,markerLines:y}}function Wi(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xn.shouldHighlight)(r),i=zf(r.forceColor),s=Wf(i),o=(f,c)=>n?f(c):c,a=e.split(Pn),{start:l,end:u,markerLines:p}=Hf(t,a,r),d=t.start&&typeof t.start.column=="number",v=String(u).length,y=(n?(0,xn.default)(e,r):e).split(Pn,u).slice(l,u).map((f,c)=>{let b=l+1+c,$=` ${` ${b}`.slice(-v)} |`,x=p[b],_=!p[b+1];if(x){let D="";if(Array.isArray(x)){let j=f.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Y=x[1]||1;D=[`
18
+ `,o(s.gutter,$.replace(/\d/g," "))," ",j,o(s.marker,"^").repeat(Y)].join(""),_&&r.message&&(D+=" "+o(s.message,r.message))}return[o(s.marker,">"),o(s.gutter,$),f.length>0?` ${f}`:"",D].join("")}else return` ${o(s.gutter,$)}${f.length>0?` ${f}`:""}`}).join(`
19
+ `);return r.message&&!d&&(y=`${" ".repeat(v+1)}${r.message}
20
+ ${y}`),n?i.reset(y):y}function Yf(e,t,r,n={}){if(!_n){_n=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{let o=new Error(s);o.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),Wi(e,{start:{column:r,line:t}},n)}var Ve=`
21
+ `,Nn="\r",Vf=function(){function e(t){this.length=t.length;for(var r=[0],n=0;n<t.length;)switch(t[n]){case Ve:n+=Ve.length,r.push(n);break;case Nn:n+=Nn.length,t[n]===Ve&&(n+=Ve.length),r.push(n);break;default:n++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var i=t-n[r];return{line:r,column:i}},e.prototype.indexForLocation=function(t){var r=t.line,n=t.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}(),Kf=Nt("JSONError",{fileName:Nt.append("in %s"),codeFrame:Nt.append(`
22
22
 
23
23
  %s
24
- `)});function bf(e,t,r){typeof t=="string"&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(n){throw ru(e,t),n}}catch(n){n.message=n.message.replace(/\n/g,"");let i=n.message.match(/in JSON at position (\d+) while parsing/),s=new mf(n);if(r&&(s.fileName=r),i&&i.length>0){let o=new gf(e),a=Number(i[1]),l=o.locationForIndex(a),u=cf(e,{start:{line:l.line+1,column:l.column+1}},{highlightCode:!0});s.codeFrame=u}throw s}}var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.LRUCache=void 0;var Ie=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Di=new Set,Jt=typeof process=="object"&&process?process:{},ki=(e,t,r,n)=>{typeof Jt.emitWarning=="function"?Jt.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},et=globalThis.AbortController,Cn=globalThis.AbortSignal;if(typeof et>"u"){Cn=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},et=class{constructor(){t()}signal=new Cn;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=Jt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,ki("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",t))}}var yf=e=>!Di.has(e),ie=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Mi=e=>ie(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?$e:null:null,$e=class extends Array{constructor(t){super(t),this.fill(0)}},qt=class e{heap;length;static#r=!1;static create(t){let r=Mi(t);if(!r)return[];e.#r=!0;let n=new e(t,r);return e.#r=!1,n}constructor(t,r){if(!e.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},vf=class ji{#r;#s;#e;#g;#x;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#m;#a;#i;#t;#f;#p;#u;#l;#b;#c;#$;#L;#y;#v;#C;#h;static unsafeExposeInternals(t){return{starts:t.#L,ttls:t.#y,sizes:t.#$,keyMap:t.#a,keyList:t.#i,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#u},get tail(){return t.#l},free:t.#b,isBackgroundFetch:r=>t.#n(r),backgroundFetch:(r,n,i,s)=>t.#P(r,n,i,s),moveToTail:r=>t.#R(r),indexes:r=>t.#E(r),rindexes:r=>t.#w(r),isStale:r=>t.#d(r)}}get max(){return this.#r}get maxSize(){return this.#s}get calculatedSize(){return this.#m}get size(){return this.#o}get fetchMethod(){return this.#x}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:y,maxSize:w=0,maxEntrySize:b=0,sizeCalculation:f,fetchMethod:c,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:x,ignoreFetchAbort:_}=t;if(r!==0&&!ie(r))throw new TypeError("max option must be a nonnegative integer");let k=r?Mi(r):Array;if(!k)throw new Error("invalid max value: "+r);if(this.#r=r,this.#s=w,this.maxEntrySize=b||this.#s,this.sizeCalculation=f,this.sizeCalculation){if(!this.#s&&!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(c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=c,this.#C=!!c,this.#a=new Map,this.#i=new Array(r).fill(void 0),this.#t=new Array(r).fill(void 0),this.#f=new k(r),this.#p=new k(r),this.#u=0,this.#l=0,this.#b=qt.create(r),this.#o=0,this.#m=0,typeof u=="function"&&(this.#e=u),typeof p=="function"?(this.#g=p,this.#c=[]):(this.#g=void 0,this.#c=void 0),this.#v=!!this.#e,this.#h=!!this.#g,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#s!==0&&!ie(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!ie(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ie(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!ie(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#r===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#s){let M="LRU_CACHE_UNBOUNDED";yf(M)&&(Di.add(M),ki("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,ji))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#N(){let t=new $e(this.#r),r=new $e(this.#r);this.#y=t,this.#L=r,this.#F=(s,o,a=Ie.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(s)&&this.delete(this.#i[s])},o+1);l.unref&&l.unref()}},this.#O=s=>{r[s]=t[s]!==0?Ie.now():0},this.#S=(s,o)=>{if(t[o]){let a=t[o],l=r[o];s.ttl=a,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Ie.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],l=r[o];if(a===0||l===0)return 1/0;let u=(n||i())-l;return a-u},this.#d=s=>t[s]!==0&&r[s]!==0&&(n||i())-r[s]>t[s]}#O=()=>{};#S=()=>{};#F=()=>{};#d=()=>!1;#M(){let t=new $e(this.#r);this.#m=0,this.#$=t,this.#A=r=>{this.#m-=t[r],t[r]=0},this.#T=(r,n,i,s)=>{if(this.#n(n))return 0;if(!ie(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!ie(i))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 i},this.#I=(r,n,i)=>{if(t[r]=n,this.#s){let s=this.#s-t[r];for(;this.#m>s;)this.#_(!0)}this.#m+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#m)}}#A=t=>{};#I=(t,r,n)=>{};#T=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#E({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#u));)r=this.#p[r]}*#w({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#u;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#l));)r=this.#f[r]}#D(t){return t!==void 0&&this.#a.get(this.#i[t])===t}*entries(){for(let t of this.#E())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*rentries(){for(let t of this.#w())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*keys(){for(let t of this.#E()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*rkeys(){for(let t of this.#w()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*values(){for(let t of this.#E())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#w())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#i[n],this))return this.get(this.#i[n],r)}}forEach(t,r=this){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#w()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#w({allowStale:!0}))this.#d(r)&&(this.delete(this.#i[r]),t=!0);return t}dump(){let t=[];for(let r of this.#E({allowStale:!0})){let n=this.#i[r],i=this.#t[r],s=this.#n(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#y&&this.#L){o.ttl=this.#y[r];let a=Ie.now()-this.#L[r];o.start=Math.floor(Date.now()-a)}this.#$&&(o.size=this.#$[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Ie.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,p=this.#T(t,r,n.size||0,a);if(this.maxEntrySize&&p>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=this.#o===0?void 0:this.#a.get(t);if(d===void 0)d=this.#o===0?this.#l:this.#b.length!==0?this.#b.pop():this.#o===this.#r?this.#_(!1):this.#o,this.#i[d]=t,this.#t[d]=r,this.#a.set(t,d),this.#f[this.#l]=d,this.#p[d]=this.#l,this.#l=d,this.#o++,this.#I(d,p,l),l&&(l.set="add"),u=!1;else{this.#R(d);let y=this.#t[d];if(r!==y){if(this.#C&&this.#n(y)){y.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=y;w!==void 0&&!o&&(this.#v&&this.#e?.(w,t,"set"),this.#h&&this.#c?.push([w,t,"set"]))}else o||(this.#v&&this.#e?.(y,t,"set"),this.#h&&this.#c?.push([y,t,"set"]));if(this.#A(d),this.#I(d,p,l),this.#t[d]=r,l){l.set="replace";let w=y&&this.#n(y)?y.__staleWhileFetching:y;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(i!==0&&!this.#y&&this.#N(),this.#y&&(u||this.#F(d,i,s),l&&this.#S(l,d)),!o&&this.#h&&this.#c){let y=this.#c,w;for(;w=y?.shift();)this.#g?.(...w)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#u];if(this.#_(!0),this.#n(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}}#_(t){let r=this.#u,n=this.#i[r],i=this.#t[r];return this.#C&&this.#n(i)?i.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,n,"evict"),this.#h&&this.#c?.push([i,n,"evict"])),this.#A(r),t&&(this.#i[r]=void 0,this.#t[r]=void 0,this.#b.push(r)),this.#o===1?(this.#u=this.#l=0,this.#b.length=0):this.#u=this.#f[r],this.#a.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#t[s];if(this.#n(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#d(s))i&&(i.has="stale",this.#S(i,s));else return n&&this.#O(s),i&&(i.has="hit",this.#S(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i!==void 0&&(n||!this.#d(i))){let s=this.#t[i];return this.#n(s)?s.__staleWhileFetching:s}}#P(t,r,n,i){let s=r===void 0?void 0:this.#t[r];if(this.#n(s))return s;let o=new et,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:n,context:i},u=(f,c=!1)=>{let{aborted:v}=o.signal,S=n.ignoreFetchAbort&&f!==void 0;if(n.status&&(v&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),v&&!S&&!c)return d(o.signal.reason);let $=w;return this.#t[r]===w&&(f===void 0?$.__staleWhileFetching?this.#t[r]=$.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,f,l.options))),f},p=f=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=f),d(f)),d=f=>{let{aborted:c}=o.signal,v=c&&n.allowStaleOnFetchAbort,S=v||n.allowStaleOnFetchRejection,$=S||n.noDeleteOnFetchRejection,x=w;if(this.#t[r]===w&&(!$||x.__staleWhileFetching===void 0?this.delete(t):v||(this.#t[r]=x.__staleWhileFetching)),S)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw f},y=(f,c)=>{let v=this.#x?.(t,s,l);v&&v instanceof Promise&&v.then(S=>f(S===void 0?void 0:S),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(f(void 0),n.allowStaleOnFetchAbort&&(f=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let w=new Promise(y).then(u,p),b=Object.assign(w,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,b,{...l.options,status:void 0}),r=this.#a.get(t)):this.#t[r]=b,b}#n(t){if(!this.#C)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof et}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:f,forceRefresh:c=!1,status:v,signal:S}=r;if(!this.#C)return v&&(v.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:v});let $={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:p,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:b,ignoreFetchAbort:w,status:v,signal:S},x=this.#a.get(t);if(x===void 0){v&&(v.fetch="miss");let _=this.#P(t,x,$,f);return _.__returned=_}else{let _=this.#t[x];if(this.#n(_)){let F=n&&_.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",F&&(v.returnedStale=!0)),F?_.__staleWhileFetching:_.__returned=_}let k=this.#d(x);if(!c&&!k)return v&&(v.fetch="hit"),this.#R(x),i&&this.#O(x),v&&this.#S(v,x),_;let M=this.#P(t,x,$,f),V=M.__staleWhileFetching!==void 0&&n;return v&&(v.fetch=k?"stale":"refresh",V&&k&&(v.returnedStale=!0)),V?M.__staleWhileFetching:M.__returned=M}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let l=this.#t[a],u=this.#n(l);return o&&this.#S(o,a),this.#d(a)?(o&&(o.get="stale"),u?(o&&n&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(t),o&&n&&(o.returnedStale=!0),n?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#R(a),i&&this.#O(a),l))}else o&&(o.get="miss")}#k(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#l&&(t===this.#u?this.#u=this.#f[t]:this.#k(this.#p[t],this.#f[t]),this.#k(this.#l,t),this.#l=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#a.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#A(n);let i=this.#t[n];this.#n(i)?i.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,t,"delete"),this.#h&&this.#c?.push([i,t,"delete"])),this.#a.delete(t),this.#i[n]=void 0,this.#t[n]=void 0,n===this.#l?this.#l=this.#p[n]:n===this.#u?this.#u=this.#f[n]:(this.#f[this.#p[n]]=this.#f[n],this.#p[this.#f[n]]=this.#p[n]),this.#o--,this.#b.push(n)}}if(this.#h&&this.#c?.length){let n=this.#c,i;for(;i=n?.shift();)this.#g?.(...i)}return r}clear(){for(let t of this.#w({allowStale:!0})){let r=this.#t[t];if(this.#n(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#i[t];this.#v&&this.#e?.(r,n,"delete"),this.#h&&this.#c?.push([r,n,"delete"])}}if(this.#a.clear(),this.#t.fill(void 0),this.#i.fill(void 0),this.#y&&this.#L&&(this.#y.fill(0),this.#L.fill(0)),this.#$&&this.#$.fill(0),this.#u=0,this.#l=0,this.#b.length=0,this.#m=0,this.#o=0,this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}};lt.LRUCache=vf;var N=(...e)=>e.every(t=>t)?e.join(""):"",B=e=>e?encodeURIComponent(e):"",Bi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ef={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${N("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${N("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",B(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${B(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${N("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${N("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Bi},le={};le.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${N(e,"@")}raw.githubusercontent.com/${t}/${r}/${B(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${B(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};le.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${B(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};le.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${B(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};le.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${N("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${N("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${N("/",B(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${N("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${N("/",B(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${N("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${N("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${N("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${B(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+Bi(e)}};le.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${B(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${N("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${B(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(le))le[e]=Object.assign({},Ef,t);var wf=le,$f=nt,Nt=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},On=e=>{try{return new $f.URL(e)}catch{}},Lf=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},Sf=e=>{let t=Nt(e,"@","#"),r=Nt(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Nt(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},Gi=(e,t)=>{let r=t?Lf(e,t):e;return On(r)||On(Sf(r))},Cf=Gi,Of=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,y=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&y&&w&&l&&u&&p},Af=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=Of(e)?`github:${e}`:e,s=Cf(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,y=null,w=null,b=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let v=f.lastIndexOf("/");v>-1?(y=decodeURIComponent(f.slice(0,v)),y||(y=null),w=decodeURIComponent(f.slice(v+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),b="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;y=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),b=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,y,p,w,d,b,t]},{LRUCache:Rf}=lt,xf=wf,If=Af,_f=Gi,Ft=new Rf({max:1e3}),tt=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#r[t]=r,e.#r.byDomain[r.domain]=t,e.#r.byShortcut[`${t}:`]=t,e.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Ft.has(n)){let i=If(t,r,{gitHosts:e.#r,protocols:e.#s});Ft.set(n,i?new e(...i):void 0)}return Ft.get(n)}static parseUrl(t){return _f(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(xf))tt.addHost(e,t);var Pf=tt,Nf=Ff;function Ff(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
25
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var Tf={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},Df={web:"url",name:"url"},kf={server:"start",tests:"test"},Mf={topLevel:Tf,bugs:Df,script:kf},jf=qn,Bf=Zn,Gf=ri,He=Pf,Uf=ci,zf=["dependencies","devDependencies","optionalDependencies"],Wf=Nf,Tt=nt,oe=Mf,An=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Hf={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=He.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(oe.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,oe.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):oe.script[t]&&!e.scripts[oe.script[t]]&&this.warn("typo",t,oe.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Qf(e,this.warn),qf(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=He.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!jf(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Bf(e.version,r),!0},fixPeople:function(e){Rn(e,Xf),Rn(e,Jf)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Kf(e.name,r,t.allowLegacyCase),Uf(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Wf(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")An(e.bugs)?e.bugs={email:e.bugs}:Tt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{eh(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Tt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&An(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Tt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!Gf(t).validForNewPackages)return this.warn("invalidLicense")}};function Yf(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Vf(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Kf(e,t,r){if(e.charAt(0)==="."||!(Yf(e)||Vf(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Rn(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function Xf(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Jf(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function qf(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function Zf(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function Qf(e,t){zf.forEach(function(r){e[r]&&(e[r]=Zf(e[r],r,t))})}function eh(e,t){e&&Object.keys(e).forEach(function(r){oe.bugs[r]&&(t("typo",r,oe.bugs[r],"bugs"),e[oe.bugs[r]]=e[r],delete e[r])})}var th="'repositories' (plural) Not supported. Please pick one as the 'repository' field",rh="No repository field.",nh="Probably broken git url: %s",ih="scripts must be an object",sh="script values must be string commands",oh="Invalid 'files' member",ah="Invalid filename in 'files' list: %s",lh="Invalid 'bundleDependencies' list. Must be array of package names",ch="Invalid bundleDependencies member: %s",uh="Non-dependency in bundleDependencies: %s",fh="%s field must be an object",hh="Invalid dependency: %s %s",ph="specifying %s as array is deprecated",dh="modules field is deprecated",gh="keywords should be an array of strings",mh="keywords should be an array of strings",bh="%s is also the name of a node core module.",yh="'description' field should be a string",vh="No description",Eh="No README data",wh="No license field.",$h="Bug string field must be url, email, or {email,url}",Lh="bugs.url field must be a string url. Deleted.",Sh="bugs.email field must be a string email. Deleted.",Ch="Normalized value of bugs field is an empty object. Deleted.",Oh="homepage field must be a string url. Deleted.",Ah="license should be a valid SPDX license expression",Rh="%s should probably be %s.",xh={repositories:th,missingRepository:rh,brokenGitUrl:nh,nonObjectScripts:ih,nonStringScript:sh,nonArrayFiles:oh,invalidFilename:ah,nonArrayBundleDependencies:lh,nonStringBundleDependency:ch,nonDependencyBundleDependency:uh,nonObjectDependencies:fh,nonStringDependency:hh,deprecatedArrayDependencies:ph,deprecatedModules:dh,nonArrayKeywords:gh,nonStringKeyword:mh,conflictingName:bh,nonStringDescription:yh,missingDescription:vh,missingReadme:Eh,missingLicense:wh,nonEmailUrlBugsString:$h,nonUrlBugsUrlField:Lh,nonEmailBugsEmailField:Sh,emptyNormalizedBugs:Ch,nonUrlHomepage:Oh,invalidLicense:Ah,typo:Rh},Ui=rt,Zt=xh,Ih=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return _h.apply(null,e);var r=Zt[t]?Zt[t]:t+": '%s'";return e.unshift(r),Ui.format.apply(null,e)};function _h(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Ui.format(Zt.typo,e,t)}var Ph=zi,Qt=Hf;zi.fixer=Qt;var Nh=Ih,Fh=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Th=["dependencies","people","typos"],er=Fh.map(function(e){return Wi(e)+"Field"});er=er.concat(Th);function zi(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Qt.warn=function(){t(Nh.apply(null,arguments))},er.forEach(function(n){Qt["fix"+Wi(n)](e,r)}),e._id=e.name+"@"+e.version}function Wi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Dh=ce(Ph),kh=e=>e instanceof URL?rr(e):e,Mh=e=>ue.resolve(kh(e)??".","package.json"),jh=(e,t)=>{let r=typeof e=="string"?bf(e):e;return t&&Dh(r),r};function Bh({cwd:e,normalize:t=!0}={}){let r=kt.readFileSync(Mh(e),"utf8");return jh(r,t)}function Hi(e){let t=Wc("package.json",e);if(t)return{packageJson:Bh({...e,cwd:ue.dirname(t)}),path:t}}var Gh=(e,t)=>(e=e.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,i)=>n+t+i.toLowerCase()));function dr(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();let n=`$1${t}$2`,i=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?Gh(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var gr={exports:{}},Uh=Object.prototype.toString,zh=function(e){var t;return Uh.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},Wh=function(e){return e==null?[]:Array.isArray(e)?e:[e]},Hh=Object.prototype.toString,Yh=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return qh(t)?"generatorfunction":"function";if(Vh(t))return"array";if(ep(t))return"buffer";if(Qh(t))return"arguments";if(Xh(t))return"date";if(Kh(t))return"error";if(Jh(t))return"regexp";switch(Yi(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Zh(t))return"generator";switch(r=Hh.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Yi(e){return typeof e.constructor=="function"?e.constructor.name:null}function Vh(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Kh(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Xh(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Jh(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function qh(e,t){return Yi(e)==="GeneratorFunction"}function Zh(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Qh(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function ep(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var tp=zh,rp=Wh,tr=Yh,xn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},In=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},Ke=e=>Array.isArray(e)?`[${e.map(Ke).join(", ")}]`:tr(e)==="string"?JSON.stringify(e):e,np=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${tr(t)}-array`}return tr(e)},ip=(e,t)=>{let r=e==="array"?"string-array":e;return mr.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},sp=["stopEarly","unknown","--"],Vi=["string","boolean","number"],mr=Vi.map(e=>`${e}-array`),_n=[...Vi,"array",...mr],Ki=e=>{e=e||{};let t={};return sp.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{let n=e[r];if(r==="arguments"&&(r="_"),typeof n=="string"&&(n={type:n}),tp(n)){let i=n,{type:s}=i;if(s){if(!_n.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${Ke(_n)}, got ${Ke(s)}`);if(mr.includes(s)){let[o]=s.split("-");xn(t,"array",{key:r,[o]:!0})}else xn(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=np(o),l=ip(s,o);if(l&&l!==a)throw new TypeError(`Expected "${r}" default value to be of type "${l}", got ${Ke(a)}`);In(t,"default",r,o)}rp(i.alias).forEach(o=>{In(t,"alias",o,r)})}}),t};gr.exports=Ki;gr.exports.default=Ki;var op=gr.exports,Xi=ce(op),ap=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),Dt=new Je({maxSize:1e5}),Pn=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Nn=(e,t={})=>{if(!Pn(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,l)=>{if(i&&Pn(l)&&(l=Xe(l,s())),!(n&&ap(n,a))){let u=`${r}${a}`;if(Dt.has(u))a=Dt.get(u);else{let p=dr(a,{separator:r});a.length<100&&Dt.set(u,p),a=p}}return[a,l]};return Xe(e,s())};function Ji(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Nn(e[r],t)):Nn(e,t)}import lp from"node:process";import{dirname as cp}from"node:path";import{fileURLToPath as up}from"node:url";var pe=e=>`--${dr(e,{separator:"-"})}`,Fe=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var fp=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Fe(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Fe(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Fe(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(i=>typeof i!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(s=>`(\`${pe(s)}\`, type: '${e.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(i=>n.choices.includes(i)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Fe(n)}`}}},r=[];for(let[n,i]of Object.entries(t)){let s=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(i)){let l=s.filter(p=>o(p)),u=l.map(([p])=>p);l.length>0&&r.push(a(u))}}if(r.length>0)throw new Error(r.join(`
26
- `))},qi=(e,t)=>{if(typeof e!="string"&&(t=e,e=""),!t.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let r=Hi({cwd:cp(up(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:lp.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,hardRejection:!0,allowUnknownFlags:!0,allowParentFlags:!0,...t};return fp(n),n};var hp=({flags:e,booleanDefault:t})=>{let r={};for(let[n,i]of Object.entries(e)){let s={...i};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),t!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[t]:t),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default=s.default??[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[n]=s}return r},Zi=e=>{let t=hp(e);return t.arguments=e.input,t=Ji(t,{separator:"-",exclude:["stopEarly","--"]}),e.inferType&&delete t.arguments,e.allowUnknownFlags||(e.autoHelp&&!t.help&&(t.help={type:"boolean"}),e.autoVersion&&!t.version&&(t.version={type:"boolean"})),t=Xi(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import Qi from"node:process";var pp=(e,t)=>{for(let[r,n]of Object.entries(t.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(e[r]))throw new Error(`The flag --${r} can only be set once.`)},dp=(e,t,r)=>{let{choices:n,isRequired:i}=t;if(!n)return;let s=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return i?`Flag \`${pe(e)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let o=r.filter(a=>!n.includes(a));if(o.length>0)return`Unknown ${o.length>1?"values":"value"} for flag \`${pe(e)}\`: \`${o.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${pe(e)}\`: \`${r}\`. ${s}`},gp=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=dp(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
27
- `)}`)},es=(e,t)=>{pp(e,t),gp(t.flags,e)},mp=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
28
- `))},ts=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(mp(t),Qi.exit(2))},bp=(e,t,r,n)=>{let i=t[e],s=!0;if(typeof i.isRequired=="function"&&(s=i.isRequired(r,n),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[e]===void 0||i.isMultiple&&r[e].length===0)&&s},yp=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${pe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},rs=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&bp(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(yp(n),Qi.exit(2))};var vp=(e,t)=>{let{pkg:r}=e,n=Le(e.argv,t),i="";e.help&&(i=Un((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
29
- `)&&(i=zn(i,2)),i=`
30
- ${i}`),pi(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?`
24
+ `)});function Xf(e,t,r){typeof t=="string"&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(n){throw Tu(e,t),n}}catch(n){n.message=n.message.replace(/\n/g,"");let i=n.message.match(/in JSON at position (\d+) while parsing/),s=new Kf(n);if(r&&(s.fileName=r),i&&i.length>0){let o=new Vf(e),a=Number(i[1]),l=o.locationForIndex(a),u=Uf(e,{start:{line:l.line+1,column:l.column+1}},{highlightCode:!0});s.codeFrame=u}throw s}}var ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.LRUCache=void 0;var Ne=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Hi=new Set,tr=typeof process=="object"&&process?process:{},Yi=(e,t,r,n)=>{typeof tr.emitWarning=="function"?tr.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},nt=globalThis.AbortController,Tn=globalThis.AbortSignal;if(typeof nt>"u"){Tn=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},nt=class{constructor(){t()}signal=new Tn;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=tr.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Yi("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",t))}}var Jf=e=>!Hi.has(e),ie=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Vi=e=>ie(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Le:null:null,Le=class extends Array{constructor(t){super(t),this.fill(0)}},rr=class e{heap;length;static#r=!1;static create(t){let r=Vi(t);if(!r)return[];e.#r=!0;let n=new e(t,r);return e.#r=!1,n}constructor(t,r){if(!e.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},qf=class Ki{#r;#s;#e;#g;#x;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#m;#a;#i;#t;#f;#p;#u;#l;#b;#c;#$;#L;#y;#v;#O;#h;static unsafeExposeInternals(t){return{starts:t.#L,ttls:t.#y,sizes:t.#$,keyMap:t.#a,keyList:t.#i,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#u},get tail(){return t.#l},free:t.#b,isBackgroundFetch:r=>t.#n(r),backgroundFetch:(r,n,i,s)=>t.#P(r,n,i,s),moveToTail:r=>t.#R(r),indexes:r=>t.#E(r),rindexes:r=>t.#w(r),isStale:r=>t.#d(r)}}get max(){return this.#r}get maxSize(){return this.#s}get calculatedSize(){return this.#m}get size(){return this.#o}get fetchMethod(){return this.#x}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:v,maxSize:w=0,maxEntrySize:y=0,sizeCalculation:f,fetchMethod:c,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:x,ignoreFetchAbort:_}=t;if(r!==0&&!ie(r))throw new TypeError("max option must be a nonnegative integer");let D=r?Vi(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#r=r,this.#s=w,this.maxEntrySize=y||this.#s,this.sizeCalculation=f,this.sizeCalculation){if(!this.#s&&!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(c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=c,this.#O=!!c,this.#a=new Map,this.#i=new Array(r).fill(void 0),this.#t=new Array(r).fill(void 0),this.#f=new D(r),this.#p=new D(r),this.#u=0,this.#l=0,this.#b=rr.create(r),this.#o=0,this.#m=0,typeof u=="function"&&(this.#e=u),typeof p=="function"?(this.#g=p,this.#c=[]):(this.#g=void 0,this.#c=void 0),this.#v=!!this.#e,this.#h=!!this.#g,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#s!==0&&!ie(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!ie(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ie(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!ie(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#r===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#s){let j="LRU_CACHE_UNBOUNDED";Jf(j)&&(Hi.add(j),Yi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,Ki))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#N(){let t=new Le(this.#r),r=new Le(this.#r);this.#y=t,this.#L=r,this.#T=(s,o,a=Ne.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(s)&&this.delete(this.#i[s])},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=t[s]!==0?Ne.now():0},this.#S=(s,o)=>{if(t[o]){let a=t[o],l=r[o];s.ttl=a,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Ne.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],l=r[o];if(a===0||l===0)return 1/0;let u=(n||i())-l;return a-u},this.#d=s=>t[s]!==0&&r[s]!==0&&(n||i())-r[s]>t[s]}#A=()=>{};#S=()=>{};#T=()=>{};#d=()=>!1;#j(){let t=new Le(this.#r);this.#m=0,this.#$=t,this.#C=r=>{this.#m-=t[r],t[r]=0},this.#F=(r,n,i,s)=>{if(this.#n(n))return 0;if(!ie(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!ie(i))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 i},this.#I=(r,n,i)=>{if(t[r]=n,this.#s){let s=this.#s-t[r];for(;this.#m>s;)this.#_(!0)}this.#m+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#m)}}#C=t=>{};#I=(t,r,n)=>{};#F=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#E({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#u));)r=this.#p[r]}*#w({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#u;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#l));)r=this.#f[r]}#D(t){return t!==void 0&&this.#a.get(this.#i[t])===t}*entries(){for(let t of this.#E())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*rentries(){for(let t of this.#w())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*keys(){for(let t of this.#E()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*rkeys(){for(let t of this.#w()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*values(){for(let t of this.#E())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#w())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#i[n],this))return this.get(this.#i[n],r)}}forEach(t,r=this){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#w()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#w({allowStale:!0}))this.#d(r)&&(this.delete(this.#i[r]),t=!0);return t}dump(){let t=[];for(let r of this.#E({allowStale:!0})){let n=this.#i[r],i=this.#t[r],s=this.#n(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#y&&this.#L){o.ttl=this.#y[r];let a=Ne.now()-this.#L[r];o.start=Math.floor(Date.now()-a)}this.#$&&(o.size=this.#$[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Ne.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,p=this.#F(t,r,n.size||0,a);if(this.maxEntrySize&&p>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=this.#o===0?void 0:this.#a.get(t);if(d===void 0)d=this.#o===0?this.#l:this.#b.length!==0?this.#b.pop():this.#o===this.#r?this.#_(!1):this.#o,this.#i[d]=t,this.#t[d]=r,this.#a.set(t,d),this.#f[this.#l]=d,this.#p[d]=this.#l,this.#l=d,this.#o++,this.#I(d,p,l),l&&(l.set="add"),u=!1;else{this.#R(d);let v=this.#t[d];if(r!==v){if(this.#O&&this.#n(v)){v.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=v;w!==void 0&&!o&&(this.#v&&this.#e?.(w,t,"set"),this.#h&&this.#c?.push([w,t,"set"]))}else o||(this.#v&&this.#e?.(v,t,"set"),this.#h&&this.#c?.push([v,t,"set"]));if(this.#C(d),this.#I(d,p,l),this.#t[d]=r,l){l.set="replace";let w=v&&this.#n(v)?v.__staleWhileFetching:v;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(i!==0&&!this.#y&&this.#N(),this.#y&&(u||this.#T(d,i,s),l&&this.#S(l,d)),!o&&this.#h&&this.#c){let v=this.#c,w;for(;w=v?.shift();)this.#g?.(...w)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#u];if(this.#_(!0),this.#n(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}}#_(t){let r=this.#u,n=this.#i[r],i=this.#t[r];return this.#O&&this.#n(i)?i.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,n,"evict"),this.#h&&this.#c?.push([i,n,"evict"])),this.#C(r),t&&(this.#i[r]=void 0,this.#t[r]=void 0,this.#b.push(r)),this.#o===1?(this.#u=this.#l=0,this.#b.length=0):this.#u=this.#f[r],this.#a.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#t[s];if(this.#n(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#d(s))i&&(i.has="stale",this.#S(i,s));else return n&&this.#A(s),i&&(i.has="hit",this.#S(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i!==void 0&&(n||!this.#d(i))){let s=this.#t[i];return this.#n(s)?s.__staleWhileFetching:s}}#P(t,r,n,i){let s=r===void 0?void 0:this.#t[r];if(this.#n(s))return s;let o=new nt,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:n,context:i},u=(f,c=!1)=>{let{aborted:b}=o.signal,S=n.ignoreFetchAbort&&f!==void 0;if(n.status&&(b&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!S&&!c)return d(o.signal.reason);let $=w;return this.#t[r]===w&&(f===void 0?$.__staleWhileFetching?this.#t[r]=$.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,f,l.options))),f},p=f=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=f),d(f)),d=f=>{let{aborted:c}=o.signal,b=c&&n.allowStaleOnFetchAbort,S=b||n.allowStaleOnFetchRejection,$=S||n.noDeleteOnFetchRejection,x=w;if(this.#t[r]===w&&(!$||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#t[r]=x.__staleWhileFetching)),S)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw f},v=(f,c)=>{let b=this.#x?.(t,s,l);b&&b instanceof Promise&&b.then(S=>f(S===void 0?void 0:S),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(f(void 0),n.allowStaleOnFetchAbort&&(f=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let w=new Promise(v).then(u,p),y=Object.assign(w,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,y,{...l.options,status:void 0}),r=this.#a.get(t)):this.#t[r]=y,y}#n(t){if(!this.#O)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof nt}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:f,forceRefresh:c=!1,status:b,signal:S}=r;if(!this.#O)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});let $={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:p,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:y,ignoreFetchAbort:w,status:b,signal:S},x=this.#a.get(t);if(x===void 0){b&&(b.fetch="miss");let _=this.#P(t,x,$,f);return _.__returned=_}else{let _=this.#t[x];if(this.#n(_)){let T=n&&_.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",T&&(b.returnedStale=!0)),T?_.__staleWhileFetching:_.__returned=_}let D=this.#d(x);if(!c&&!D)return b&&(b.fetch="hit"),this.#R(x),i&&this.#A(x),b&&this.#S(b,x),_;let j=this.#P(t,x,$,f),V=j.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=D?"stale":"refresh",V&&D&&(b.returnedStale=!0)),V?j.__staleWhileFetching:j.__returned=j}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let l=this.#t[a],u=this.#n(l);return o&&this.#S(o,a),this.#d(a)?(o&&(o.get="stale"),u?(o&&n&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(t),o&&n&&(o.returnedStale=!0),n?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#R(a),i&&this.#A(a),l))}else o&&(o.get="miss")}#M(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#l&&(t===this.#u?this.#u=this.#f[t]:this.#M(this.#p[t],this.#f[t]),this.#M(this.#l,t),this.#l=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#a.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#C(n);let i=this.#t[n];this.#n(i)?i.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,t,"delete"),this.#h&&this.#c?.push([i,t,"delete"])),this.#a.delete(t),this.#i[n]=void 0,this.#t[n]=void 0,n===this.#l?this.#l=this.#p[n]:n===this.#u?this.#u=this.#f[n]:(this.#f[this.#p[n]]=this.#f[n],this.#p[this.#f[n]]=this.#p[n]),this.#o--,this.#b.push(n)}}if(this.#h&&this.#c?.length){let n=this.#c,i;for(;i=n?.shift();)this.#g?.(...i)}return r}clear(){for(let t of this.#w({allowStale:!0})){let r=this.#t[t];if(this.#n(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#i[t];this.#v&&this.#e?.(r,n,"delete"),this.#h&&this.#c?.push([r,n,"delete"])}}if(this.#a.clear(),this.#t.fill(void 0),this.#i.fill(void 0),this.#y&&this.#L&&(this.#y.fill(0),this.#L.fill(0)),this.#$&&this.#$.fill(0),this.#u=0,this.#l=0,this.#b.length=0,this.#m=0,this.#o=0,this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}};ft.LRUCache=qf;var N=(...e)=>e.every(t=>t)?e.join(""):"",B=e=>e?encodeURIComponent(e):"",Xi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Zf={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${N("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${N("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",B(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${B(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${N("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${N("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Xi},le={};le.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${N(e,"@")}raw.githubusercontent.com/${t}/${r}/${B(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${B(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};le.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${B(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};le.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${B(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};le.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${N("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${N("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${N("/",B(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${N("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${N("/",B(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${N("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${N("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${N("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${B(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+Xi(e)}};le.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${B(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${N("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${B(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(le))le[e]=Object.assign({},Zf,t);var Qf=le,eh=ot,jt=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Fn=e=>{try{return new eh.URL(e)}catch{}},th=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},rh=e=>{let t=jt(e,"@","#"),r=jt(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),jt(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},Ji=(e,t)=>{let r=t?th(e,t):e;return Fn(r)||Fn(rh(r))},nh=Ji,ih=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,v=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&v&&w&&l&&u&&p},sh=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=ih(e)?`github:${e}`:e,s=nh(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,v=null,w=null,y=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let b=f.lastIndexOf("/");b>-1?(v=decodeURIComponent(f.slice(0,b)),v||(v=null),w=decodeURIComponent(f.slice(b+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),y="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;v=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),y=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,v,p,w,d,y,t]},{LRUCache:oh}=ft,ah=Qf,lh=sh,ch=Ji,kt=new oh({max:1e3}),it=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#r[t]=r,e.#r.byDomain[r.domain]=t,e.#r.byShortcut[`${t}:`]=t,e.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!kt.has(n)){let i=lh(t,r,{gitHosts:e.#r,protocols:e.#s});kt.set(n,i?new e(...i):void 0)}return kt.get(n)}static parseUrl(t){return ch(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(ah))it.addHost(e,t);var uh=it,fh=hh;function hh(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
25
+ `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var ph={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},dh={web:"url",name:"url"},gh={server:"start",tests:"test"},mh={topLevel:ph,bugs:dh,script:gh},bh=oi,yh=ai,vh=fi,Ke=uh,Eh=yi,wh=["dependencies","devDependencies","optionalDependencies"],$h=fh,Bt=ot,oe=mh,Dn=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Lh={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Ke.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(oe.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,oe.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):oe.script[t]&&!e.scripts[oe.script[t]]&&this.warn("typo",t,oe.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){_h(e,this.warn),xh(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=Ke.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!bh(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=yh(e.version,r),!0},fixPeople:function(e){Mn(e,Ch),Mn(e,Rh)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Ah(e.name,r,t.allowLegacyCase),Eh(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=$h(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Ke.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Dn(e.bugs)?e.bugs={email:e.bugs}:Bt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Ph(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Bt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Dn(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Ke.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Bt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!vh(t).validForNewPackages)return this.warn("invalidLicense")}};function Sh(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Oh(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Ah(e,t,r){if(e.charAt(0)==="."||!(Sh(e)||Oh(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Mn(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function Ch(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Rh(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function xh(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function Ih(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function _h(e,t){wh.forEach(function(r){e[r]&&(e[r]=Ih(e[r],r,t))})}function Ph(e,t){e&&Object.keys(e).forEach(function(r){oe.bugs[r]&&(t("typo",r,oe.bugs[r],"bugs"),e[oe.bugs[r]]=e[r],delete e[r])})}var Nh="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Th="No repository field.",Fh="Probably broken git url: %s",Dh="scripts must be an object",Mh="script values must be string commands",jh="Invalid 'files' member",kh="Invalid filename in 'files' list: %s",Bh="Invalid 'bundleDependencies' list. Must be array of package names",Uh="Invalid bundleDependencies member: %s",Gh="Non-dependency in bundleDependencies: %s",zh="%s field must be an object",Wh="Invalid dependency: %s %s",Hh="specifying %s as array is deprecated",Yh="modules field is deprecated",Vh="keywords should be an array of strings",Kh="keywords should be an array of strings",Xh="%s is also the name of a node core module.",Jh="'description' field should be a string",qh="No description",Zh="No README data",Qh="No license field.",ep="Bug string field must be url, email, or {email,url}",tp="bugs.url field must be a string url. Deleted.",rp="bugs.email field must be a string email. Deleted.",np="Normalized value of bugs field is an empty object. Deleted.",ip="homepage field must be a string url. Deleted.",sp="license should be a valid SPDX license expression",op="%s should probably be %s.",ap={repositories:Nh,missingRepository:Th,brokenGitUrl:Fh,nonObjectScripts:Dh,nonStringScript:Mh,nonArrayFiles:jh,invalidFilename:kh,nonArrayBundleDependencies:Bh,nonStringBundleDependency:Uh,nonDependencyBundleDependency:Gh,nonObjectDependencies:zh,nonStringDependency:Wh,deprecatedArrayDependencies:Hh,deprecatedModules:Yh,nonArrayKeywords:Vh,nonStringKeyword:Kh,conflictingName:Xh,nonStringDescription:Jh,missingDescription:qh,missingReadme:Zh,missingLicense:Qh,nonEmailUrlBugsString:ep,nonUrlBugsUrlField:tp,nonEmailBugsEmailField:rp,emptyNormalizedBugs:np,nonUrlHomepage:ip,invalidLicense:sp,typo:op},qi=st,nr=ap,lp=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return cp.apply(null,e);var r=nr[t]?nr[t]:t+": '%s'";return e.unshift(r),qi.format.apply(null,e)};function cp(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),qi.format(nr.typo,e,t)}var up=Zi,ir=Lh;Zi.fixer=ir;var fp=lp,hp=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],pp=["dependencies","people","typos"],sr=hp.map(function(e){return Qi(e)+"Field"});sr=sr.concat(pp);function Zi(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),ir.warn=function(){t(fp.apply(null,arguments))},sr.forEach(function(n){ir["fix"+Qi(n)](e,r)}),e._id=e.name+"@"+e.version}function Qi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dp=ce(up),gp=e=>e instanceof URL?ar(e):e,mp=e=>ue.resolve(gp(e)??".","package.json"),bp=(e,t)=>{let r=typeof e=="string"?Xf(e):e;return t&&dp(r),r};function yp({cwd:e,normalize:t=!0}={}){let r=Gt.readFileSync(mp(e),"utf8");return bp(r,t)}function es(e){let t=$u("package.json",e);if(t)return{packageJson:yp({...e,cwd:ue.dirname(t)}),path:t}}var vp=(e,t)=>(e=e.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,i)=>n+t+i.toLowerCase()));function vr(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();let n=`$1${t}$2`,i=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?vp(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Er={exports:{}},Ep=Object.prototype.toString,wp=function(e){var t;return Ep.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},$p=function(e){return e==null?[]:Array.isArray(e)?e:[e]},Lp=Object.prototype.toString,Sp=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return xp(t)?"generatorfunction":"function";if(Op(t))return"array";if(Pp(t))return"buffer";if(_p(t))return"arguments";if(Cp(t))return"date";if(Ap(t))return"error";if(Rp(t))return"regexp";switch(ts(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Ip(t))return"generator";switch(r=Lp.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ts(e){return typeof e.constructor=="function"?e.constructor.name:null}function Op(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Ap(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cp(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Rp(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function xp(e,t){return ts(e)==="GeneratorFunction"}function Ip(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function _p(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Pp(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var Np=wp,Tp=$p,or=Sp,jn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},kn=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},qe=e=>Array.isArray(e)?`[${e.map(qe).join(", ")}]`:or(e)==="string"?JSON.stringify(e):e,Fp=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${or(t)}-array`}return or(e)},Dp=(e,t)=>{let r=e==="array"?"string-array":e;return wr.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},Mp=["stopEarly","unknown","--"],rs=["string","boolean","number"],wr=rs.map(e=>`${e}-array`),Bn=[...rs,"array",...wr],ns=e=>{e=e||{};let t={};return Mp.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{let n=e[r];if(r==="arguments"&&(r="_"),typeof n=="string"&&(n={type:n}),Np(n)){let i=n,{type:s}=i;if(s){if(!Bn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${qe(Bn)}, got ${qe(s)}`);if(wr.includes(s)){let[o]=s.split("-");jn(t,"array",{key:r,[o]:!0})}else jn(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=Fp(o),l=Dp(s,o);if(l&&l!==a)throw new TypeError(`Expected "${r}" default value to be of type "${l}", got ${qe(a)}`);kn(t,"default",r,o)}Tp(i.alias).forEach(o=>{kn(t,"alias",o,r)})}}),t};Er.exports=ns;Er.exports.default=ns;var jp=Er.exports,is=ce(jp),kp=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),Ut=new Qe({maxSize:1e5}),Un=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Gn=(e,t={})=>{if(!Un(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,l)=>{if(i&&Un(l)&&(l=Ze(l,s())),!(n&&kp(n,a))){let u=`${r}${a}`;if(Ut.has(u))a=Ut.get(u);else{let p=vr(a,{separator:r});a.length<100&&Ut.set(u,p),a=p}}return[a,l]};return Ze(e,s())};function ss(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Gn(e[r],t)):Gn(e,t)}import Bp from"node:process";import{dirname as Up}from"node:path";import{fileURLToPath as Gp}from"node:url";var pe=e=>`--${vr(e,{separator:"-"})}`,Me=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var zp=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Me(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Me(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Me(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(i=>typeof i!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(s=>`(\`${pe(s)}\`, type: '${e.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(i=>n.choices.includes(i)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Me(n)}`}}},r=[];for(let[n,i]of Object.entries(t)){let s=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(i)){let l=s.filter(p=>o(p)),u=l.map(([p])=>p);l.length>0&&r.push(a(u))}}if(r.length>0)throw new Error(r.join(`
26
+ `))},os=(e,t)=>{if(typeof e!="string"&&(t=e,e=""),!t.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let r=es({cwd:Up(Gp(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Bp.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,hardRejection:!0,allowUnknownFlags:!0,allowParentFlags:!0,...t};return zp(n),n};var Wp=({flags:e,booleanDefault:t})=>{let r={};for(let[n,i]of Object.entries(e)){let s={...i};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),t!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[t]:t),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default=s.default??[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[n]=s}return r},as=e=>{let t=Wp(e);return t.arguments=e.input,t=ss(t,{separator:"-",exclude:["stopEarly","--"]}),e.inferType&&delete t.arguments,e.allowUnknownFlags||(e.autoHelp&&!t.help&&(t.help={type:"boolean"}),e.autoVersion&&!t.version&&(t.version={type:"boolean"})),t=is(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import ls from"node:process";var Hp=(e,t)=>{for(let[r,n]of Object.entries(t.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(e[r]))throw new Error(`The flag --${r} can only be set once.`)},Yp=(e,t,r)=>{let{choices:n,isRequired:i}=t;if(!n)return;let s=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return i?`Flag \`${pe(e)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let o=r.filter(a=>!n.includes(a));if(o.length>0)return`Unknown ${o.length>1?"values":"value"} for flag \`${pe(e)}\`: \`${o.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${pe(e)}\`: \`${r}\`. ${s}`},Vp=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=Yp(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
27
+ `)}`)},cs=(e,t)=>{Hp(e,t),Vp(t.flags,e)},Kp=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
28
+ `))},us=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(Kp(t),ls.exit(2))},Xp=(e,t,r,n)=>{let i=t[e],s=!0;if(typeof i.isRequired=="function"&&(s=i.isRequired(r,n),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[e]===void 0||i.isMultiple&&r[e].length===0)&&s},Jp=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${pe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},fs=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&Xp(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(Jp(n),ls.exit(2))};var qp=(e,t)=>{let{pkg:r}=e,n=Se(e.argv,t),i="";e.help&&(i=qn((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
29
+ `)&&(i=Zn(i,2)),i=`
30
+ ${i}`),$i(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?`
31
31
  ${s}
32
32
  `:`
33
33
  ${s}`,i=`${s||""}${i}
34
- `;let o=d=>{console.log(i),br.exit(typeof d=="number"?d:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),br.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let l=n._;delete n._,e.allowUnknownFlags||ts(l);let u=Gn(n,{exclude:["--",/^\w$/]}),p={...u};es(u,e);for(let d of Object.values(e.flags)){if(Array.isArray(d.aliases))for(let y of d.aliases)delete u[y];delete u[d.shortFlag]}return rs(e.flags,u,l),{input:l,flags:u,unnormalizedFlags:p,pkg:r,help:i,showHelp:o,showVersion:a}},ns=(e,t={})=>{let r=qi(e,t);r.hardRejection&&Hn();let n=Zi(r),i=vp(r,n);return br.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import vr from"node:path";import{Transform as Op}from"node:stream";import{PassThrough as Ap}from"node:stream";import{fileURLToPath as Rp}from"node:url";import Lp from"node:process";import Ep from"node:process";import wp from"node:fs/promises";import{fileURLToPath as $p}from"node:url";import Se from"node:path";var is=e=>e instanceof URL?$p(e):e;async function ss(e,{cwd:t=Ep.cwd(),type:r="file",stopAt:n}={}){let i=Se.resolve(is(t)??""),{root:s}=Se.parse(i);for(n=Se.resolve(i,is(n??s));i&&i!==n&&i!==s;){let o=Se.isAbsolute(e)?e:Se.join(i,e);try{let a=await wp.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=Se.dirname(i)}}async function yr({cwd:e=Lp.cwd()}={}){return ss("package.json",{cwd:e})}function xp(e,t){return new Op({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?Tr[t](e):""} ${a}`).join(`
34
+ `;let o=d=>{console.log(i),$r.exit(typeof d=="number"?d:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),$r.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let l=n._;delete n._,e.allowUnknownFlags||us(l);let u=Jn(n,{exclude:["--",/^\w$/]}),p={...u};cs(u,e);for(let d of Object.values(e.flags)){if(Array.isArray(d.aliases))for(let v of d.aliases)delete u[v];delete u[d.shortFlag]}return fs(e.flags,u,l),{input:l,flags:u,unnormalizedFlags:p,pkg:r,help:i,showHelp:o,showVersion:a}},hs=(e,t={})=>{let r=os(e,t);r.hardRejection&&ei();let n=as(r),i=qp(r,n);return $r.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import ht from"node:path";import{Transform as id}from"node:stream";import{PassThrough as sd}from"node:stream";import{fileURLToPath as od}from"node:url";import td from"node:process";import Zp from"node:process";import Qp from"node:fs/promises";import{fileURLToPath as ed}from"node:url";import Oe from"node:path";var ps=e=>e instanceof URL?ed(e):e;async function ds(e,{cwd:t=Zp.cwd(),type:r="file",stopAt:n}={}){let i=Oe.resolve(ps(t)??""),{root:s}=Oe.parse(i);for(n=Oe.resolve(i,ps(n??s));i&&i!==n&&i!==s;){let o=Oe.isAbsolute(e)?e:Oe.join(i,e);try{let a=await Qp.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=Oe.dirname(i)}}async function Lr({cwd:e=td.cwd()}={}){return ds("package.json",{cwd:e})}function ad(e,t){return new id({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?Wr[t](e):""} ${a}`).join(`
35
35
  `)+`
36
- `;this.push(o),i()}})}function Ip(e,t){let r=`
36
+ `;this.push(o),i()}})}function ld(e,t){let r=`
37
37
  Usage
38
38
  $ ${e} [<file|glob> ...]
39
39
  `;if(r+=`
@@ -44,16 +44,22 @@ ${s}`,i=`${s||""}${i}
44
44
  --print-config, -p <path> Print the effective configuration at a certain path.`;break}case"help":break;case"version":break;default:console.error(`Unknown command name in generateHelpText: ${n}`)}return r+=`
45
45
  --help, -h Print this help info.`,r+=`
46
46
  --version, -v Print the package version.
47
- `,r}function _p(e){return Object.keys(e).reduce((t,r)=>{let n={};switch(r){case"init":{n={shortFlag:"i",type:"boolean"};break}case"check":{n={aliases:["lint",""],shortFlag:"l",type:"boolean"};break}case"fix":{n={shortFlag:"f",type:"boolean"};break}case"printConfig":{n={shortFlag:"p",type:"boolean"};break}case"help":{n={type:"boolean"};break}case"version":{n={type:"boolean"};break}default:console.error(`Unknown command name: ${r}`)}return t[r]=n,t},{})}async function Pp(e){let t=[];return new Promise((r,n)=>{e.on("data",i=>t.push(Buffer.from(i))),e.on("error",i=>{n(i)}),e.on("end",()=>{r(Buffer.concat(t).toString("utf8"))})})}async function as(e,t,r=[]){let n=new Ap,i=await Er(n,t,r);if(n.end(),i!==0)return e.write(`Error printing config.
48
- `),i;try{let s=await Pp(n);return e.write(ht(JSON.parse(s))),e.write(`
47
+ `,r}function cd(e){return Object.keys(e).reduce((t,r)=>{let n={};switch(r){case"init":{n={shortFlag:"i",type:"boolean"};break}case"check":{n={aliases:["lint",""],shortFlag:"l",type:"boolean"};break}case"fix":{n={shortFlag:"f",type:"boolean"};break}case"printConfig":{n={shortFlag:"p",type:"boolean"};break}case"help":{n={type:"boolean"};break}case"version":{n={type:"boolean"};break}default:console.error(`Unknown command name: ${r}`)}return t[r]=n,t},{})}async function ud(e){let t=[];return new Promise((r,n)=>{e.on("data",i=>t.push(Buffer.from(i))),e.on("error",i=>{n(i)}),e.on("end",()=>{r(Buffer.concat(t).toString("utf8"))})})}async function ms(e,t,r=[]){let n=new sd,i=await bs(n,t,r);if(n.end(),i!==0)return e.write(`Error printing config.
48
+ `),i;try{let s=await ud(n);return e.write(mt(JSON.parse(s))),e.write(`
49
49
  `),0}catch(s){return e.write(`Error: ${s}
50
- `),1}}async function Er(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n;try{let i=Cp(t.command,[...t.options??[],...r],{env:{FORCE_COLOR:"true"},stdin:"inherit"});i.stdout?.pipe(e,{end:!1}),i.stderr?.pipe(e,{end:!1}),await i,n=i.exitCode??1}catch(i){n=typeof i.exitCode=="number"?i.exitCode:1}return n}return e.write(`Error: Invalid optionCommand: ${JSON.stringify(t,void 0,2)}`),1}function os(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
51
- `),process.exit(1))}async function ls(e,t,r,n){let i=ns({allowUnknownFlags:!1,booleanDefault:void 0,flags:_p(n),help:Ip(e,n),importMeta:import.meta}),{flags:s,input:o}=i,a=Object.keys(n).reduce((p,d)=>(s[d]&&(p[d]=n[d]),p),{}),l=xp(t,r);l.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?l.write(`This command requires options. Run ${e} --help for valid commands.
52
- `):a.check=n.check);let u=0;for(let[p,d]of Object.entries(a))if(typeof d.command=="function"){os(o,d,l);let y=o.length===0?d.defaultArguments??[]:o,w=d.options??[];u+=await d.command(l,y,w)}else if(typeof d.command=="string")os(o,d,l),u+=await Er(l,d,o.length===0?d.defaultArguments:o);else switch(p){case"init":{let y=await yr();if(y===void 0){l.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),u+=1;break}let w=await yr({cwd:Rp(import.meta.url)});if(w===void 0){l.write(`Error: The script being called was not in a package, weird.
53
- `),u+=1;break}let b=vr.join(vr.dirname(w),"init/"),f=vr.dirname(y);l.write(`Copying initial configuration files from:
54
- "${b}" \u2192 "${f}"
55
- `);let c={command:"cp",options:["-Ri",`${b}`,`${f}`]};u+=await Er(l,c);break}case"check":{console.error("No default implementation for check"),u+=1;break}case"fix":{console.error("No default implementation for fix"),u+=1;break}case"printConfig":{let w=(o.length===0?d.defaultArguments??["."]:o)?.at(0),b=e.split("-").at(0);if(b===void 0){l.write(`Error: Could not find or parse config file for ${e}.
56
- `),u+=1;break}let f=await Sp(b).search(w);if(!f?.config){l.write(`Error: Could not find or parse config file for ${b}.
50
+ `),1}}async function bs(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n;try{let i=nd(t.command,[...t.options??[],...r],{env:{FORCE_COLOR:"true"},stdin:"inherit"});i.stdout?.pipe(e,{end:!1}),i.stderr?.pipe(e,{end:!1}),await i,n=i.exitCode??1}catch(i){n=typeof i.exitCode=="number"?i.exitCode:1}return n}return e.write(`Error: Invalid optionCommand: ${JSON.stringify(t,void 0,2)}`),1}function gs(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
51
+ `),process.exit(1))}async function ys(e,t,r,n){let i=hs({allowUnknownFlags:!1,booleanDefault:void 0,flags:cd(n),help:ld(e,n),importMeta:import.meta}),{flags:s,input:o}=i,a=Object.keys(n).reduce((p,d)=>(s[d]&&(p[d]=n[d]),p),{}),l=ad(t,r);l.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?l.write(`This command requires options. Run ${e} --help for valid commands.
52
+ `):a.check=n.check);let u=0;for(let[p,d]of Object.entries(a))if(typeof d.command=="function"){gs(o,d,l);let v=o.length===0?d.defaultArguments??[]:o,w=d.options??[];u+=await d.command(l,v,w)}else if(typeof d.command=="string")gs(o,d,l),u+=await bs(l,d,o.length===0?d.defaultArguments:o);else switch(p){case"init":{let v=await Lr();if(v===void 0){l.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),u+=1;break}let w=await Lr({cwd:od(import.meta.url)});if(w===void 0){l.write(`Error: The script being called was not in a package, weird.
53
+ `),u+=1;break}let y=ht.join(ht.dirname(w),"init/"),f=ht.dirname(v);l.write(`Adding initial configuration files from:
54
+ "${y}" \u2192 "${f}"
55
+ `);try{await Ae.copy(y,f,{filter(c,b){let S=Ae.statSync(c).isFile(),$=Ae.existsSync(b);if(S){if($&&b.includes(".vscode/")&&ht.extname(b)===".json"){l.write(`Merging:
56
+ "${c}" \u2192 "${b}"
57
+ `);let x=Ae.readJSONSync(c),_=Ae.readJSONSync(b),D=bt(_,x);return Ae.writeJSONSync(b,D,{spaces:2}),!1}return $?(l.write(`Overwriting:
58
+ "${c}" \u2192 "${b}"
59
+ `),!0):(l.write(`Copying:
60
+ "${c}" \u2192 "${b}"
61
+ `),!0)}return!0},overwrite:!0})}catch{}u+=0;break}case"check":{console.error("No default implementation for check"),u+=1;break}case"fix":{console.error("No default implementation for fix"),u+=1;break}case"printConfig":{let w=(o.length===0?d.defaultArguments??["."]:o)?.at(0),y=e.split("-").at(0);if(y===void 0){l.write(`Error: Could not find or parse config file for ${e}.
62
+ `),u+=1;break}let f=await rd(y).search(w);if(!f?.config){l.write(`Error: Could not find or parse config file for ${y}.
57
63
  `),u+=1;break}l.write(`${t} config path: "${f?.filepath}"
58
- `),l.write(ht(f.config)),l.write(`
59
- `);break}default:{console.error(`Unknown command name: ${p}`),u+=1;break}}process.exit(u>0?1:0)}await ls("eslint-config","[ESLint]","magenta",{check:{command:"eslint",defaultArguments:["."]},fix:{command:"eslint",defaultArguments:["."],options:["--fix"]},init:{},printConfig:{async command(e,t){return as(e,{command:"eslint",options:["--print-config"]},t)}}});
64
+ `),l.write(mt(f.config)),l.write(`
65
+ `);break}default:{console.error(`Unknown command name: ${p}`),u+=1;break}}process.exit(u>0?1:0)}await ys("eslint-config","[ESLint]","magenta",{check:{command:"eslint",defaultArguments:["."]},fix:{command:"eslint",defaultArguments:["."],options:["--fix"]},init:{},printConfig:{async command(e,t){return ms(e,{command:"eslint",options:["--print-config"]},t)}}});