@kitschpatrol/eslint-config 4.7.1 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
- var Us=Object.create;var qt=Object.defineProperty;var Ws=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var Hs=Object.getPrototypeOf,Ys=Object.prototype.hasOwnProperty;var Ke=(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 Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Xs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zs(t))!Ys.call(e,s)&&s!==r&&qt(e,s,{get:()=>t[s],enumerable:!(n=Ws(t,s))||n.enumerable});return e};var Ks=(e,t,r)=>(r=e!=null?Us(Hs(e)):{},Xs(t||!e||!e.__esModule?qt(r,"default",{value:e,enumerable:!0}):r,e));var er=Vs((Kf,Qt)=>{"use strict";var qs=function(t){return Js(t)&&!Zs(t)};function Js(e){return!!e&&typeof e=="object"}function Zs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ti(e)}var Qs=typeof Symbol=="function"&&Symbol.for,ei=Qs?Symbol.for("react.element"):60103;function ti(e){return e.$$typeof===ei}function ri(e){return Array.isArray(e)?[]:{}}function Le(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ue(ri(e),e,t):e}function ni(e,t,r){return e.concat(t).map(function(n){return Le(n,r)})}function si(e,t){if(!t.customMerge)return ue;var r=t.customMerge(e);return typeof r=="function"?r:ue}function ii(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Jt(e){return Object.keys(e).concat(ii(e))}function Zt(e,t){try{return t in e}catch{return!1}}function oi(e,t){return Zt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ai(e,t,r){var n={};return r.isMergeableObject(e)&&Jt(e).forEach(function(s){n[s]=Le(e[s],r)}),Jt(t).forEach(function(s){oi(e,s)||(Zt(e,s)&&r.isMergeableObject(t[s])?n[s]=si(s,r)(e[s],t[s],r):n[s]=Le(t[s],r))}),n}function ue(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ni,r.isMergeableObject=r.isMergeableObject||qs,r.cloneUnlessOtherwiseSpecified=Le;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):ai(e,t,r):Le(t,r)}ue.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return ue(n,s,r)},{})};var ui=ue;Qt.exports=ui});var tr=Ks(er(),1);import li from"@pinojs/json-colorizer";var ci=/("(?:[^\\"]|\\.)*")|[:,]/g;function qe(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:s}=t;return function i(o,a,u){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let l=JSON.stringify(o,s);if(l===void 0)return l;let g=n-a.length-u;if(l.length<=g){let m=l.replace(ci,(E,L)=>L||`${E} `);if(m.length<=g)return m}if(s!=null&&(o=JSON.parse(l),s=void 0),typeof o=="object"&&o!==null){let m=a+r,E=[],L=0,v,h;if(Array.isArray(o)){v="[",h="]";let{length:c}=o;for(;L<c;L++)E.push(i(o[L],m,L===c-1?0:1)||"null")}else{v="{",h="}";let c=Object.keys(o),{length:b}=c;for(;L<b;L++){let A=c[L],C=`${JSON.stringify(A)}: `,x=i(o[A],m,C.length+(L===b-1?0:1));x!==void 0&&E.push(C+x)}}if(E.length>0)return[v,r+E.join(`,
3
- ${m}`),h].join(`
4
- ${a}`)}return l}(e,"",0)}function Je(e){return li(qe(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var fi=(e,t,r)=>{let n=[...e];for(let[s,i]of t.entries())n[s]===void 0?n[s]=r.cloneUnlessOtherwiseSpecified(i,r):r.isMergeableObject(i)?n[s]=Ze(e[s],i,r):e.includes(i)||n.push(i);return n};function Ze(e,t,r={arrayMerge:fi}){return(0,tr.default)(e,t,r)}var rr=(e=0)=>t=>`\x1B[${t+e}m`,nr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,sr=(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]}},e0=Object.keys(T.modifier),hi=Object.keys(T.color),pi=Object.keys(T.bgColor),t0=[...hi,...pi];function di(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,s]of Object.entries(r))T[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=T[n],e.set(s[0],s[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=rr(),T.color.ansi256=nr(),T.color.ansi16m=sr(),T.bgColor.ansi=rr(10),T.bgColor.ansi256=nr(10),T.bgColor.ansi16m=sr(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(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&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,s;if(t>=232)r=((t-232)*10+8)/255,n=r,s=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===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 gi=di(),H=gi;import Qe from"node:process";import mi from"node:os";import ir from"node:tty";function z(e,t=globalThis.Deno?globalThis.Deno.args:Qe.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:F}=Qe,Ne;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?Ne=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(Ne=1);function bi(){if("FORCE_COLOR"in F)return F.FORCE_COLOR==="true"?1:F.FORCE_COLOR==="false"?0:F.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(F.FORCE_COLOR,10),3)}function yi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vi(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=bi();n!==void 0&&(Ne=n);let s=r?Ne:n;if(s===0)return 0;if(r){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in F&&"AGENT_NAME"in F)return 1;if(e&&!t&&s===void 0)return 0;let i=s||0;if(F.TERM==="dumb")return i;if(Qe.platform==="win32"){let o=mi.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in F)return"GITHUB_ACTIONS"in F||"GITEA_ACTIONS"in F?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in F)||F.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in F)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F.TEAMCITY_VERSION)?1:0;if(F.COLORTERM==="truecolor"||F.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in F){let o=Number.parseInt((F.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F.TERM)||"COLORTERM"in F?1:i}function or(e,t={}){let r=vi(e,{streamIsTTY:e&&e.isTTY,...t});return yi(r)}var Ei={stdout:or({isTTY:ir.isatty(1)}),stderr:or({isTTY:ir.isatty(2)})},ar=Ei;function ur(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let s=t.length,i=0,o="";do o+=e.slice(i,n)+t+r,i=n+s,n=e.indexOf(t,i);while(n!==-1);return o+=e.slice(i),o}function cr(e,t,r,n){let s=0,i="";do{let o=e[n-1]==="\r";i+=e.slice(s,o?n-1:n)+t+(o?`\r
2
+ var Us=Object.create;var qt=Object.defineProperty;var Ws=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var Hs=Object.getPrototypeOf,Ys=Object.prototype.hasOwnProperty;var Ke=(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 Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Xs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zs(t))!Ys.call(e,s)&&s!==r&&qt(e,s,{get:()=>t[s],enumerable:!(n=Ws(t,s))||n.enumerable});return e};var Ks=(e,t,r)=>(r=e!=null?Us(Hs(e)):{},Xs(t||!e||!e.__esModule?qt(r,"default",{value:e,enumerable:!0}):r,e));var As=Vs((K0,ws)=>{"use strict";var Lf=function(t){return Of(t)&&!wf(t)};function Of(e){return!!e&&typeof e=="object"}function wf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$f(e)}var Af=typeof Symbol=="function"&&Symbol.for,Sf=Af?Symbol.for("react.element"):60103;function $f(e){return e.$$typeof===Sf}function Rf(e){return Array.isArray(e)?[]:{}}function Re(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ye(Rf(e),e,t):e}function Pf(e,t,r){return e.concat(t).map(function(n){return Re(n,r)})}function xf(e,t){if(!t.customMerge)return ye;var r=t.customMerge(e);return typeof r=="function"?r:ye}function Nf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ls(e){return Object.keys(e).concat(Nf(e))}function Os(e,t){try{return t in e}catch{return!1}}function If(e,t){return Os(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _f(e,t,r){var n={};return r.isMergeableObject(e)&&Ls(e).forEach(function(s){n[s]=Re(e[s],r)}),Ls(t).forEach(function(s){If(e,s)||(Os(e,s)&&r.isMergeableObject(t[s])?n[s]=xf(s,r)(e[s],t[s],r):n[s]=Re(t[s],r))}),n}function ye(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Pf,r.isMergeableObject=r.isMergeableObject||Lf,r.cloneUnlessOtherwiseSpecified=Re;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):_f(e,t,r):Re(t,r)}ye.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return ye(n,s,r)},{})};var Tf=ye;ws.exports=Tf});var Jt=(e=0)=>t=>`\x1B[${t+e}m`,Zt=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Qt=(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]}},Kf=Object.keys(T.modifier),qs=Object.keys(T.color),Js=Object.keys(T.bgColor),qf=[...qs,...Js];function Zs(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,s]of Object.entries(r))T[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=T[n],e.set(s[0],s[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=Jt(),T.color.ansi256=Zt(),T.color.ansi16m=Qt(),T.bgColor.ansi=Jt(10),T.bgColor.ansi256=Zt(10),T.bgColor.ansi16m=Qt(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(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&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,s;if(t>=232)r=((t-232)*10+8)/255,n=r,s=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===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 Qs=Zs(),H=Qs;import qe from"node:process";import ei from"node:os";import er from"node:tty";function z(e,t=globalThis.Deno?globalThis.Deno.args:qe.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:F}=qe,Ne;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?Ne=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(Ne=1);function ti(){if("FORCE_COLOR"in F)return F.FORCE_COLOR==="true"?1:F.FORCE_COLOR==="false"?0:F.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(F.FORCE_COLOR,10),3)}function ri(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ni(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=ti();n!==void 0&&(Ne=n);let s=r?Ne:n;if(s===0)return 0;if(r){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in F&&"AGENT_NAME"in F)return 1;if(e&&!t&&s===void 0)return 0;let i=s||0;if(F.TERM==="dumb")return i;if(qe.platform==="win32"){let o=ei.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in F)return"GITHUB_ACTIONS"in F||"GITEA_ACTIONS"in F?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in F)||F.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in F)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F.TEAMCITY_VERSION)?1:0;if(F.COLORTERM==="truecolor"||F.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in F){let o=Number.parseInt((F.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F.TERM)||"COLORTERM"in F?1:i}function tr(e,t={}){let r=ni(e,{streamIsTTY:e&&e.isTTY,...t});return ri(r)}var si={stdout:tr({isTTY:er.isatty(1)}),stderr:tr({isTTY:er.isatty(2)})},rr=si;function nr(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let s=t.length,i=0,o="";do o+=e.slice(i,n)+t+r,i=n+s,n=e.indexOf(t,i);while(n!==-1);return o+=e.slice(i),o}function sr(e,t,r,n){let s=0,i="";do{let o=e[n-1]==="\r";i+=e.slice(s,o?n-1:n)+t+(o?`\r
5
3
  `:`
6
4
  `)+r,s=n+1,n=e.indexOf(`
7
- `,s)}while(n!==-1);return i+=e.slice(s),i}var{stdout:lr,stderr:fr}=ar,et=Symbol("GENERATOR"),ce=Symbol("STYLER"),Oe=Symbol("IS_EMPTY"),hr=["ansi","ansi","ansi256","ansi16m"],le=Object.create(null),Ci=(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=lr?lr.level:0;e.level=t.level===void 0?r:t.level};var Li=e=>{let t=(...r)=>r.join(" ");return Ci(t,e),Object.setPrototypeOf(t,we.prototype),t};function we(e){return Li(e)}Object.setPrototypeOf(we.prototype,Function.prototype);for(let[e,t]of Object.entries(H))le[e]={get(){let r=Ie(this,rt(t.open,t.close,this[ce]),this[Oe]);return Object.defineProperty(this,e,{value:r}),r}};le.visible={get(){let e=Ie(this,this[ce],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var tt=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?H[r].ansi16m(...n):t==="ansi256"?H[r].ansi256(H.rgbToAnsi256(...n)):H[r].ansi(H.rgbToAnsi(...n)):e==="hex"?tt("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),Oi=["rgb","hex","ansi256"];for(let e of Oi){le[e]={get(){let{level:r}=this;return function(...n){let s=rt(tt(e,hr[r],"color",...n),H.color.close,this[ce]);return Ie(this,s,this[Oe])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);le[t]={get(){let{level:r}=this;return function(...n){let s=rt(tt(e,hr[r],"bgColor",...n),H.bgColor.close,this[ce]);return Ie(this,s,this[Oe])}}}}var wi=Object.defineProperties(()=>{},{...le,level:{enumerable:!0,get(){return this[et].level},set(e){this[et].level=e}}}),rt=(e,t,r)=>{let n,s;return r===void 0?(n=e,s=t):(n=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:s,parent:r}},Ie=(e,t,r)=>{let n=(...s)=>Ai(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,wi),n[et]=e,n[ce]=t,n[Oe]=r,n},Ai=(e,t)=>{if(e.level<=0||!t)return e[Oe]?"":t;let r=e[ce];if(r===void 0)return t;let{openAll:n,closeAll:s}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=ur(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
8
- `);return i!==-1&&(t=cr(t,s,n,i)),n+t+s};Object.defineProperties(we.prototype,le);var Si=we(),f0=we({level:fr?fr.level:0});var pr=Si;import{cosmiconfig as jf}from"cosmiconfig";import{execa as Gf}from"execa";import ve from"fs-extra";import zt from"node:process";import $i,{format as Ri}from"util";import{normalize as Pi,resolve as xi}from"path";import{readFileSync as Ni}from"fs";import ee from"node:path";import Ii from"node:process";import{fileURLToPath as dn}from"node:url";import gn from"node:fs";import mn from"os";import bn from"url";function Ae(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,s=e.match(/^-+/);for(let i=s?s[0].length:0;i<e.length;i++){let o=e.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function yn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let s=0;s<e.length;s++){let i=r.charAt(s),o=e.charAt(s);i!==o&&s>0?n+=`${t}${r.charAt(s)}`:n+=o}return n}function vn(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 _i(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,s=null,i=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!s){r!==" "&&t++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[t]||(i[t]=""),i[t]+=n}return i}var Y;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Y||(Y={}));var J,mt=class{constructor(t){J=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),s=_i(t),i=typeof t=="string",o=Ti(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),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],g=n.envPrefix,m=a["populate--"],E=m?"--":"_",L=Object.create(null),v=Object.create(null),h=n.__||J.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]+)$/,A=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(f){let d=typeof f=="object"?f.key:f,O=Object.keys(f).map(function(y){return{boolean:"bools",string:"strings",number:"numbers"}[y]}).filter(Boolean).pop();O&&(c[O][d]=!0),c.arrays[d]=!0,c.keys.push(d)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(f){c.bools[f]=!0,c.keys.push(f)}),[].concat(n.string||[]).filter(Boolean).forEach(function(f){c.strings[f]=!0,c.keys.push(f)}),[].concat(n.number||[]).filter(Boolean).forEach(function(f){c.numbers[f]=!0,c.keys.push(f)}),[].concat(n.count||[]).filter(Boolean).forEach(function(f){c.counts[f]=!0,c.keys.push(f)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(f){c.normalize[f]=!0,c.keys.push(f)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([f,d])=>{typeof d=="number"&&(c.nargs[f]=d,c.keys.push(f))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([f,d])=>{typeof d=="function"&&(c.coercions[f]=d,c.keys.push(f))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(f){c.configs[f]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([f,d])=>{(typeof d=="boolean"||typeof d=="function")&&(c.configs[f]=d)})),Fs(n.key,o,n.default,c.arrays),Object.keys(u).forEach(function(f){(c.aliases[f]||[]).forEach(function(d){u[d]=u[f]})});let C=null;ks();let x=[],N=Object.assign(Object.create(null),{_:[]}),j={};for(let f=0;f<s.length;f++){let d=s[f],O=d.replace(/^-{3,}/,"---"),y,p,S,w,R,M;if(d!=="--"&&/^-/.test(d)&&xe(d))W(d);else if(O.match(/^---+(=|$)/)){W(d);continue}else if(d.match(/^--.+=/)||!a["short-option-groups"]&&d.match(/^-.+=/))w=d.match(/^--?([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&(P(w[1],c.arrays)?f=ne(f,w[1],s,w[2]):P(w[1],c.nargs)!==!1?f=Z(f,w[1],s,w[2]):_(w[1],w[2],!0));else if(d.match(A)&&a["boolean-negation"])w=d.match(A),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],_(p,P(p,c.arrays)?[!1]:!1));else if(d.match(/^--.+/)||!a["short-option-groups"]&&d.match(/^-[^-]+/))w=d.match(/^--?(.+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!R.match(/^-/)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))));else if(d.match(/^-.\..+=/))w=d.match(/^-([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&_(w[1],w[2]);else if(d.match(/^-.\..+/)&&!d.match(b))R=s[f+1],w=d.match(/^-(.\..+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],R!==void 0&&!R.match(/^-/)&&!P(p,c.bools)&&!P(p,c.counts)?(_(p,R),f++):_(p,ae(p)));else if(d.match(/^-[^-]+/)&&!d.match(b)){S=d.slice(1,-1).split(""),y=!1;for(let k=0;k<S.length;k++){if(R=d.slice(k+2),S[k+1]&&S[k+1]==="="){M=d.slice(k+3),p=S[k],P(p,c.arrays)?f=ne(f,p,s,M):P(p,c.nargs)!==!1?f=Z(f,p,s,M):_(p,M),y=!0;break}if(R==="-"){_(S[k],R);continue}if(/[A-Za-z]/.test(S[k])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&P(R,c.bools)===!1){_(S[k],R),y=!0;break}if(S[k+1]&&S[k+1].match(/\W/)){_(S[k],R),y=!0;break}else _(S[k],ae(S[k]))}p=d.slice(-1)[0],!y&&p!=="-"&&(P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))))}else if(d.match(/^-[0-9]$/)&&d.match(b)&&P(d.slice(1),c.bools))p=d.slice(1),_(p,ae(p));else if(d==="--"){x=s.slice(f+1);break}else if(a["halt-at-non-option"]){x=s.slice(f);break}else W(d)}Vt(N,!0),Vt(N,!1),Ns(N),Is(),Xt(N,c.aliases,u,!0),_s(N),a["set-placeholder-key"]&&Ts(N),Object.keys(c.counts).forEach(function(f){Ee(N,f.split("."))||_(f,0)}),m&&x.length&&(N[E]=[]),x.forEach(function(f){N[E].push(f)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(N).filter(f=>f!=="--"&&f.includes("-")).forEach(f=>{delete N[f]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(f=>o[f])).forEach(f=>{a["camel-case-expansion"]&&f.includes("-")&&delete N[f.split(".").map(d=>Ae(d)).join(".")],delete N[f]});function W(f){let d=Pe("_",f);(typeof d=="string"||typeof d=="number")&&N._.push(d)}function Z(f,d,O,y){let p,S=P(d,c.nargs);if(S=typeof S!="number"||isNaN(S)?1:S,S===0)return q(y)||(C=Error(h("Argument unexpected for: %s",d))),_(d,ae(d)),f;let w=q(y)?0:1;if(a["nargs-eats-options"])O.length-(f+1)+w<S&&(C=Error(h("Not enough arguments following: %s",d))),w=S;else{for(p=f+1;p<O.length&&(!O[p].match(/^-[^0-9]/)||O[p].match(b)||xe(O[p]));p++)w++;w<S&&(C=Error(h("Not enough arguments following: %s",d)))}let R=Math.min(w,S);for(!q(y)&&R>0&&(_(d,y),R--),p=f+1;p<R+f+1;p++)_(d,O[p]);return f+R}function ne(f,d,O,y){let p=[],S=y||O[f+1],w=P(d,c.nargs);if(P(d,c.bools)&&!/^(true|false)$/.test(S))p.push(!0);else if(q(S)||q(y)&&/^-/.test(S)&&!b.test(S)&&!xe(S)){if(u[d]!==void 0){let R=u[d];p=Array.isArray(R)?R:[R]}}else{q(y)||p.push(Ve(d,y,!0));for(let R=f+1;R<O.length&&!(!a["greedy-arrays"]&&p.length>0||w&&typeof w=="number"&&p.length>=w||(S=O[R],/^-/.test(S)&&!b.test(S)&&!xe(S)));R++)f=R,p.push(Ve(d,S,i))}return typeof w=="number"&&(w&&p.length<w||isNaN(w)&&p.length===0)&&(C=Error(h("Not enough arguments following: %s",d))),_(d,p),f}function _(f,d,O=i){if(/-/.test(f)&&a["camel-case-expansion"]){let S=f.split(".").map(function(w){return Ae(w)}).join(".");Yt(f,S)}let y=Ve(f,d,O),p=f.split(".");Ce(N,p,y),c.aliases[f]&&c.aliases[f].forEach(function(S){let w=S.split(".");Ce(N,w,y)}),p.length>1&&a["dot-notation"]&&(c.aliases[p[0]]||[]).forEach(function(S){let w=S.split("."),R=[].concat(p);R.shift(),w=w.concat(R),(c.aliases[f]||[]).includes(w.join("."))||Ce(N,w,y)}),P(f,c.normalize)&&!P(f,c.arrays)&&[f].concat(c.aliases[f]||[]).forEach(function(w){Object.defineProperty(j,w,{enumerable:!0,get(){return d},set(R){d=typeof R=="string"?J.normalize(R):R}})})}function Yt(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Yt(d,f)}function Ve(f,d,O){O&&(d=Fi(d)),(P(f,c.bools)||P(f,c.counts))&&typeof d=="string"&&(d=d==="true");let y=Array.isArray(d)?d.map(function(p){return Pe(f,p)}):Pe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=nt()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function Pe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(vn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function Ns(f){let d=Object.create(null);Xt(d,c.aliases,u),Object.keys(c.configs).forEach(function(O){let y=f[O]||d[O];if(y)try{let p=null,S=J.resolve(J.cwd(),y),w=c.configs[O];if(typeof w=="function"){try{p=w(S)}catch(R){p=R}if(p instanceof Error){C=p;return}}else p=J.require(S);Xe(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Xe(f,d){Object.keys(f).forEach(function(O){let y=f[O],p=d?d+"."+O:O;typeof y=="object"&&y!==null&&!Array.isArray(y)&&a["dot-notation"]?Xe(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function Is(){typeof l<"u"&&l.forEach(function(f){Xe(f)})}function Vt(f,d){if(typeof g>"u")return;let O=typeof g=="string"?g:"",y=J.env();Object.keys(y).forEach(function(p){if(O===""||p.lastIndexOf(O,0)===0){let S=p.split("__").map(function(w,R){return R===0&&(w=w.substring(O.length)),Ae(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function _s(f){let d,O=new Set;Object.keys(f).forEach(function(y){if(!O.has(y)&&(d=P(y,c.coercions),typeof d=="function"))try{let p=Pe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function Ts(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function Xt(f,d,O,y=!1){Object.keys(O).forEach(function(p){Ee(f,p.split("."))||(Ce(f,p.split("."),O[p]),y&&(v[p]=!0),(d[p]||[]).forEach(function(S){Ee(f,S.split("."))||Ce(f,S.split("."),O[p])}))})}function Ee(f,d){let O=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(p){O=O[p]||{}});let y=d[d.length-1];return typeof O!="object"?!1:y in O}function Ce(f,d,O){let y=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(M){M=dr(M),typeof y=="object"&&y[M]===void 0&&(y[M]={}),typeof y[M]!="object"||Array.isArray(y[M])?(Array.isArray(y[M])?y[M].push({}):y[M]=[y[M],{}],y=y[M][y[M].length-1]):y=y[M]});let p=dr(d[d.length-1]),S=P(d.join("."),c.arrays),w=Array.isArray(O),R=a["duplicate-arguments-array"];!R&&P(p,c.nargs)&&(R=!0,(!q(y[p])&&c.nargs[p]===1||Array.isArray(y[p])&&y[p].length===c.nargs[p])&&(y[p]=void 0)),O===nt()?y[p]=nt(y[p]):Array.isArray(y[p])?R&&S&&w?y[p]=a["flatten-duplicate-arrays"]?y[p].concat(O):(Array.isArray(y[p][0])?y[p]:[y[p]]).concat([O]):!R&&!!S==!!w?y[p]=O:y[p]=y[p].concat([O]):y[p]===void 0&&S?y[p]=w?O:[O]:R&&!(y[p]===void 0||P(p,c.counts)||P(p,c.bools))?y[p]=[y[p],O]:y[p]=O}function Fs(...f){f.forEach(function(d){Object.keys(d||{}).forEach(function(O){c.aliases[O]||(c.aliases[O]=[].concat(o[O]||[]),c.aliases[O].concat(O).forEach(function(y){if(/-/.test(y)&&a["camel-case-expansion"]){let p=Ae(y);p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].concat(O).forEach(function(y){if(y.length>1&&/[A-Z]/.test(y)&&a["camel-case-expansion"]){let p=yn(y,"-");p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].forEach(function(y){c.aliases[y]=[O].concat(c.aliases[O].filter(function(p){return y!==p}))}))})})}function P(f,d){let O=[].concat(c.aliases[f]||[],f),y=Object.keys(d),p=O.find(S=>y.includes(S));return p?d[p]:!1}function Kt(f){let d=Object.keys(c);return[].concat(d.map(y=>c[y])).some(function(y){return Array.isArray(y)?y.includes(f):y[f]})}function Ds(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Kt(p[1])})}function Ms(f){if(f.match(b)||!f.match(/^-[^-]+/))return!1;let d=!0,O,y=f.slice(1).split("");for(let p=0;p<y.length;p++){if(O=f.slice(p+2),!Kt(y[p])){d=!1;break}if(y[p+1]&&y[p+1]==="="||O==="-"||/[A-Za-z]/.test(y[p])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||y[p+1]&&y[p+1].match(/\W/))break}return d}function xe(f){return a["unknown-options-as-args"]&&js(f)}function js(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||Ms(f)?!1:!Ds(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:Gs(Bs(f))}function Gs(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function Bs(f){let d=Y.BOOLEAN;return P(f,c.strings)?d=Y.STRING:P(f,c.numbers)?d=Y.NUMBER:P(f,c.bools)?d=Y.BOOLEAN:P(f,c.arrays)&&(d=Y.ARRAY),d}function q(f){return f===void 0}function ks(){Object.keys(c.counts).find(f=>P(f,c.arrays)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.array.",f)),!0):P(f,c.nargs)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.narg.",f)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(j,N),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},L)}}};function Ti(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});n;){n=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(a){return t[i].indexOf(a)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),n=!0;break}}return t.forEach(function(s){s=s.filter(function(o,a,u){return u.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(r[i]=s)}),r}function nt(e){return e!==void 0?e+1:1}function dr(e){return e==="__proto__"?"___proto___":e}function Fi(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var st,it,ot,gr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,mr=(it=(st=process==null?void 0:process.versions)===null||st===void 0?void 0:st.node)!==null&&it!==void 0?it:(ot=process==null?void 0:process.version)===null||ot===void 0?void 0:ot.slice(1);if(mr&&Number(mr.match(/^([^.]+)/)[1])<gr)throw Error(`yargs parser supports a minimum Node.js version of ${gr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Di=process?process.env:{},En=new mt({cwd:process.cwd,env:()=>Di,format:Ri,normalize:Pi,resolve:xi,require:e=>{if(typeof Ke<"u")return Ke(e);if(e.match(/\.json$/))return JSON.parse(Ni(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),be=function(t,r){return En.parse(t.slice(),r).argv};be.detailed=function(e,t){return En.parse(e.slice(),t)};be.camelCase=Ae;be.decamelize=yn;be.looksLikeNumber=vn;var Cn=e=>typeof e=="object"&&e!==null,br=e=>Cn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Mi=Symbol("mapObjectSkip"),bt=(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:s}=r;delete r.target;let i=o=>o.map(a=>br(a)?bt(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===Mi)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&br(g)&&(g=Array.isArray(g)?i(g):bt(g,t,r,n)),s[l]=g)}return s};function yr(e,t,r){if(!Cn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return bt(e,t,r)}var ji=/[\p{Lu}]/u,Gi=/[\p{Ll}]/u,vr=/^[\p{Lu}](?![\p{Lu}])/gu,Ln=/([\p{Alpha}\p{N}_]|$)/u,It=/[_.\- ]+/,Bi=new RegExp("^"+It.source),Er=new RegExp(It.source+Ln.source,"gu"),Cr=new RegExp("\\d+"+Ln.source,"gu"),ki=(e,t,r,n)=>{let s=!1,i=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,s&&ji.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),s=!1,o=i,i=!0,u++):i&&o&&Gi.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=i,i=!1,s=!0):(s=t(l)===l&&r(l)!==l,o=i,i=r(l)===l&&t(l)!==l)}return e},Ui=(e,t)=>(vr.lastIndex=0,e.replaceAll(vr,r=>t(r))),Wi=(e,t)=>(Er.lastIndex=0,Cr.lastIndex=0,e.replaceAll(Cr,(r,n,s)=>["_","-"].includes(e.charAt(s+r.length))?r:t(r)).replaceAll(Er,(r,n)=>t(n)));function zi(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(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(t.locale),n=t.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(t.locale);return e.length===1?It.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=ki(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Bi,""),e=t.preserveConsecutiveUppercase?Ui(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Wi(e,n))}var Ge=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 s=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:s}):this._set(t,{value:r,expiry:s}),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],[s,i]=n;this._deleteIfExpired(s,i)===!1&&(yield[s,i.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[s,i]=n;this.cache.has(s)||this._deleteIfExpired(s,i)===!1&&(yield[s,i.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,s]of this.entriesAscending())t.call(r,s,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Hi=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),at=new Ge({maxSize:1e5}),Lr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Or=(e,t={})=>{if(!Lr(e))return e;let{exclude:r,pascalCase:n=!1,stopPaths:s,deep:i=!1,preserveConsecutiveUppercase:o=!1}=t,a=new Set(s),u=l=>(g,m)=>{if(i&&Lr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=yr(m,u(E)))}if(!(r&&Hi(r,g))){let E=n?`${g}_`:g;if(at.has(E))g=at.get(E);else{let L=zi(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&at.set(E,L),g=L}}return[g,m]};return yr(e,u(void 0))};function On(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Or(e[r],t)):Or(e,t)}function wn(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
5
+ `,s)}while(n!==-1);return i+=e.slice(s),i}var{stdout:ir,stderr:or}=rr,Je=Symbol("GENERATOR"),ue=Symbol("STYLER"),Le=Symbol("IS_EMPTY"),ar=["ansi","ansi","ansi256","ansi16m"],ce=Object.create(null),ii=(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=ir?ir.level:0;e.level=t.level===void 0?r:t.level};var oi=e=>{let t=(...r)=>r.join(" ");return ii(t,e),Object.setPrototypeOf(t,Oe.prototype),t};function Oe(e){return oi(e)}Object.setPrototypeOf(Oe.prototype,Function.prototype);for(let[e,t]of Object.entries(H))ce[e]={get(){let r=Ie(this,Qe(t.open,t.close,this[ue]),this[Le]);return Object.defineProperty(this,e,{value:r}),r}};ce.visible={get(){let e=Ie(this,this[ue],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ze=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?H[r].ansi16m(...n):t==="ansi256"?H[r].ansi256(H.rgbToAnsi256(...n)):H[r].ansi(H.rgbToAnsi(...n)):e==="hex"?Ze("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),ai=["rgb","hex","ansi256"];for(let e of ai){ce[e]={get(){let{level:r}=this;return function(...n){let s=Qe(Ze(e,ar[r],"color",...n),H.color.close,this[ue]);return Ie(this,s,this[Le])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ce[t]={get(){let{level:r}=this;return function(...n){let s=Qe(Ze(e,ar[r],"bgColor",...n),H.bgColor.close,this[ue]);return Ie(this,s,this[Le])}}}}var ui=Object.defineProperties(()=>{},{...ce,level:{enumerable:!0,get(){return this[Je].level},set(e){this[Je].level=e}}}),Qe=(e,t,r)=>{let n,s;return r===void 0?(n=e,s=t):(n=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:s,parent:r}},Ie=(e,t,r)=>{let n=(...s)=>ci(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,ui),n[Je]=e,n[ue]=t,n[Le]=r,n},ci=(e,t)=>{if(e.level<=0||!t)return e[Le]?"":t;let r=e[ue];if(r===void 0)return t;let{openAll:n,closeAll:s}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=nr(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
6
+ `);return i!==-1&&(t=sr(t,s,n,i)),n+t+s};Object.defineProperties(Oe.prototype,ce);var li=Oe(),o0=Oe({level:or?or.level:0});var ur=li;import{cosmiconfig as jf}from"cosmiconfig";import{execa as Gf}from"execa";import ve from"fs-extra";import kt from"node:process";import fi,{format as hi}from"util";import{normalize as pi,resolve as di}from"path";import{readFileSync as gi}from"fs";import ee from"node:path";import mi from"node:process";import{fileURLToPath as cn}from"node:url";import ln from"node:fs";import fn from"os";import hn from"url";function we(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,s=e.match(/^-+/);for(let i=s?s[0].length:0;i<e.length;i++){let o=e.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function pn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let s=0;s<e.length;s++){let i=r.charAt(s),o=e.charAt(s);i!==o&&s>0?n+=`${t}${r.charAt(s)}`: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 bi(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,s=null,i=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!s){r!==" "&&t++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[t]||(i[t]=""),i[t]+=n}return i}var Y;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Y||(Y={}));var J,pt=class{constructor(t){J=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),s=bi(t),i=typeof t=="string",o=yi(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),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],g=n.envPrefix,m=a["populate--"],E=m?"--":"_",L=Object.create(null),v=Object.create(null),h=n.__||J.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]+)$/,A=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(f){let d=typeof f=="object"?f.key:f,O=Object.keys(f).map(function(y){return{boolean:"bools",string:"strings",number:"numbers"}[y]}).filter(Boolean).pop();O&&(c[O][d]=!0),c.arrays[d]=!0,c.keys.push(d)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(f){c.bools[f]=!0,c.keys.push(f)}),[].concat(n.string||[]).filter(Boolean).forEach(function(f){c.strings[f]=!0,c.keys.push(f)}),[].concat(n.number||[]).filter(Boolean).forEach(function(f){c.numbers[f]=!0,c.keys.push(f)}),[].concat(n.count||[]).filter(Boolean).forEach(function(f){c.counts[f]=!0,c.keys.push(f)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(f){c.normalize[f]=!0,c.keys.push(f)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([f,d])=>{typeof d=="number"&&(c.nargs[f]=d,c.keys.push(f))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([f,d])=>{typeof d=="function"&&(c.coercions[f]=d,c.keys.push(f))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(f){c.configs[f]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([f,d])=>{(typeof d=="boolean"||typeof d=="function")&&(c.configs[f]=d)})),Fs(n.key,o,n.default,c.arrays),Object.keys(u).forEach(function(f){(c.aliases[f]||[]).forEach(function(d){u[d]=u[f]})});let C=null;ks();let x=[],N=Object.assign(Object.create(null),{_:[]}),j={};for(let f=0;f<s.length;f++){let d=s[f],O=d.replace(/^-{3,}/,"---"),y,p,S,w,R,M;if(d!=="--"&&/^-/.test(d)&&xe(d))W(d);else if(O.match(/^---+(=|$)/)){W(d);continue}else if(d.match(/^--.+=/)||!a["short-option-groups"]&&d.match(/^-.+=/))w=d.match(/^--?([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&(P(w[1],c.arrays)?f=ne(f,w[1],s,w[2]):P(w[1],c.nargs)!==!1?f=Z(f,w[1],s,w[2]):_(w[1],w[2],!0));else if(d.match(A)&&a["boolean-negation"])w=d.match(A),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],_(p,P(p,c.arrays)?[!1]:!1));else if(d.match(/^--.+/)||!a["short-option-groups"]&&d.match(/^-[^-]+/))w=d.match(/^--?(.+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!R.match(/^-/)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))));else if(d.match(/^-.\..+=/))w=d.match(/^-([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&_(w[1],w[2]);else if(d.match(/^-.\..+/)&&!d.match(b))R=s[f+1],w=d.match(/^-(.\..+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],R!==void 0&&!R.match(/^-/)&&!P(p,c.bools)&&!P(p,c.counts)?(_(p,R),f++):_(p,ae(p)));else if(d.match(/^-[^-]+/)&&!d.match(b)){S=d.slice(1,-1).split(""),y=!1;for(let k=0;k<S.length;k++){if(R=d.slice(k+2),S[k+1]&&S[k+1]==="="){M=d.slice(k+3),p=S[k],P(p,c.arrays)?f=ne(f,p,s,M):P(p,c.nargs)!==!1?f=Z(f,p,s,M):_(p,M),y=!0;break}if(R==="-"){_(S[k],R);continue}if(/[A-Za-z]/.test(S[k])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&P(R,c.bools)===!1){_(S[k],R),y=!0;break}if(S[k+1]&&S[k+1].match(/\W/)){_(S[k],R),y=!0;break}else _(S[k],ae(S[k]))}p=d.slice(-1)[0],!y&&p!=="-"&&(P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))))}else if(d.match(/^-[0-9]$/)&&d.match(b)&&P(d.slice(1),c.bools))p=d.slice(1),_(p,ae(p));else if(d==="--"){x=s.slice(f+1);break}else if(a["halt-at-non-option"]){x=s.slice(f);break}else W(d)}Vt(N,!0),Vt(N,!1),Ns(N),Is(),Xt(N,c.aliases,u,!0),_s(N),a["set-placeholder-key"]&&Ts(N),Object.keys(c.counts).forEach(function(f){Ee(N,f.split("."))||_(f,0)}),m&&x.length&&(N[E]=[]),x.forEach(function(f){N[E].push(f)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(N).filter(f=>f!=="--"&&f.includes("-")).forEach(f=>{delete N[f]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(f=>o[f])).forEach(f=>{a["camel-case-expansion"]&&f.includes("-")&&delete N[f.split(".").map(d=>we(d)).join(".")],delete N[f]});function W(f){let d=Pe("_",f);(typeof d=="string"||typeof d=="number")&&N._.push(d)}function Z(f,d,O,y){let p,S=P(d,c.nargs);if(S=typeof S!="number"||isNaN(S)?1:S,S===0)return q(y)||(C=Error(h("Argument unexpected for: %s",d))),_(d,ae(d)),f;let w=q(y)?0:1;if(a["nargs-eats-options"])O.length-(f+1)+w<S&&(C=Error(h("Not enough arguments following: %s",d))),w=S;else{for(p=f+1;p<O.length&&(!O[p].match(/^-[^0-9]/)||O[p].match(b)||xe(O[p]));p++)w++;w<S&&(C=Error(h("Not enough arguments following: %s",d)))}let R=Math.min(w,S);for(!q(y)&&R>0&&(_(d,y),R--),p=f+1;p<R+f+1;p++)_(d,O[p]);return f+R}function ne(f,d,O,y){let p=[],S=y||O[f+1],w=P(d,c.nargs);if(P(d,c.bools)&&!/^(true|false)$/.test(S))p.push(!0);else if(q(S)||q(y)&&/^-/.test(S)&&!b.test(S)&&!xe(S)){if(u[d]!==void 0){let R=u[d];p=Array.isArray(R)?R:[R]}}else{q(y)||p.push(Ve(d,y,!0));for(let R=f+1;R<O.length&&!(!a["greedy-arrays"]&&p.length>0||w&&typeof w=="number"&&p.length>=w||(S=O[R],/^-/.test(S)&&!b.test(S)&&!xe(S)));R++)f=R,p.push(Ve(d,S,i))}return typeof w=="number"&&(w&&p.length<w||isNaN(w)&&p.length===0)&&(C=Error(h("Not enough arguments following: %s",d))),_(d,p),f}function _(f,d,O=i){if(/-/.test(f)&&a["camel-case-expansion"]){let S=f.split(".").map(function(w){return we(w)}).join(".");Yt(f,S)}let y=Ve(f,d,O),p=f.split(".");Ce(N,p,y),c.aliases[f]&&c.aliases[f].forEach(function(S){let w=S.split(".");Ce(N,w,y)}),p.length>1&&a["dot-notation"]&&(c.aliases[p[0]]||[]).forEach(function(S){let w=S.split("."),R=[].concat(p);R.shift(),w=w.concat(R),(c.aliases[f]||[]).includes(w.join("."))||Ce(N,w,y)}),P(f,c.normalize)&&!P(f,c.arrays)&&[f].concat(c.aliases[f]||[]).forEach(function(w){Object.defineProperty(j,w,{enumerable:!0,get(){return d},set(R){d=typeof R=="string"?J.normalize(R):R}})})}function Yt(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Yt(d,f)}function Ve(f,d,O){O&&(d=vi(d)),(P(f,c.bools)||P(f,c.counts))&&typeof d=="string"&&(d=d==="true");let y=Array.isArray(d)?d.map(function(p){return Pe(f,p)}):Pe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=et()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function Pe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(dn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function Ns(f){let d=Object.create(null);Xt(d,c.aliases,u),Object.keys(c.configs).forEach(function(O){let y=f[O]||d[O];if(y)try{let p=null,S=J.resolve(J.cwd(),y),w=c.configs[O];if(typeof w=="function"){try{p=w(S)}catch(R){p=R}if(p instanceof Error){C=p;return}}else p=J.require(S);Xe(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Xe(f,d){Object.keys(f).forEach(function(O){let y=f[O],p=d?d+"."+O:O;typeof y=="object"&&y!==null&&!Array.isArray(y)&&a["dot-notation"]?Xe(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function Is(){typeof l<"u"&&l.forEach(function(f){Xe(f)})}function Vt(f,d){if(typeof g>"u")return;let O=typeof g=="string"?g:"",y=J.env();Object.keys(y).forEach(function(p){if(O===""||p.lastIndexOf(O,0)===0){let S=p.split("__").map(function(w,R){return R===0&&(w=w.substring(O.length)),we(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function _s(f){let d,O=new Set;Object.keys(f).forEach(function(y){if(!O.has(y)&&(d=P(y,c.coercions),typeof d=="function"))try{let p=Pe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function Ts(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function Xt(f,d,O,y=!1){Object.keys(O).forEach(function(p){Ee(f,p.split("."))||(Ce(f,p.split("."),O[p]),y&&(v[p]=!0),(d[p]||[]).forEach(function(S){Ee(f,S.split("."))||Ce(f,S.split("."),O[p])}))})}function Ee(f,d){let O=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(p){O=O[p]||{}});let y=d[d.length-1];return typeof O!="object"?!1:y in O}function Ce(f,d,O){let y=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(M){M=cr(M),typeof y=="object"&&y[M]===void 0&&(y[M]={}),typeof y[M]!="object"||Array.isArray(y[M])?(Array.isArray(y[M])?y[M].push({}):y[M]=[y[M],{}],y=y[M][y[M].length-1]):y=y[M]});let p=cr(d[d.length-1]),S=P(d.join("."),c.arrays),w=Array.isArray(O),R=a["duplicate-arguments-array"];!R&&P(p,c.nargs)&&(R=!0,(!q(y[p])&&c.nargs[p]===1||Array.isArray(y[p])&&y[p].length===c.nargs[p])&&(y[p]=void 0)),O===et()?y[p]=et(y[p]):Array.isArray(y[p])?R&&S&&w?y[p]=a["flatten-duplicate-arrays"]?y[p].concat(O):(Array.isArray(y[p][0])?y[p]:[y[p]]).concat([O]):!R&&!!S==!!w?y[p]=O:y[p]=y[p].concat([O]):y[p]===void 0&&S?y[p]=w?O:[O]:R&&!(y[p]===void 0||P(p,c.counts)||P(p,c.bools))?y[p]=[y[p],O]:y[p]=O}function Fs(...f){f.forEach(function(d){Object.keys(d||{}).forEach(function(O){c.aliases[O]||(c.aliases[O]=[].concat(o[O]||[]),c.aliases[O].concat(O).forEach(function(y){if(/-/.test(y)&&a["camel-case-expansion"]){let p=we(y);p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].concat(O).forEach(function(y){if(y.length>1&&/[A-Z]/.test(y)&&a["camel-case-expansion"]){let p=pn(y,"-");p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].forEach(function(y){c.aliases[y]=[O].concat(c.aliases[O].filter(function(p){return y!==p}))}))})})}function P(f,d){let O=[].concat(c.aliases[f]||[],f),y=Object.keys(d),p=O.find(S=>y.includes(S));return p?d[p]:!1}function Kt(f){let d=Object.keys(c);return[].concat(d.map(y=>c[y])).some(function(y){return Array.isArray(y)?y.includes(f):y[f]})}function Ds(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Kt(p[1])})}function Ms(f){if(f.match(b)||!f.match(/^-[^-]+/))return!1;let d=!0,O,y=f.slice(1).split("");for(let p=0;p<y.length;p++){if(O=f.slice(p+2),!Kt(y[p])){d=!1;break}if(y[p+1]&&y[p+1]==="="||O==="-"||/[A-Za-z]/.test(y[p])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||y[p+1]&&y[p+1].match(/\W/))break}return d}function xe(f){return a["unknown-options-as-args"]&&js(f)}function js(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||Ms(f)?!1:!Ds(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:Gs(Bs(f))}function Gs(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function Bs(f){let d=Y.BOOLEAN;return P(f,c.strings)?d=Y.STRING:P(f,c.numbers)?d=Y.NUMBER:P(f,c.bools)?d=Y.BOOLEAN:P(f,c.arrays)&&(d=Y.ARRAY),d}function q(f){return f===void 0}function ks(){Object.keys(c.counts).find(f=>P(f,c.arrays)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.array.",f)),!0):P(f,c.nargs)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.narg.",f)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(j,N),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},L)}}};function yi(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});n;){n=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(a){return t[i].indexOf(a)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),n=!0;break}}return t.forEach(function(s){s=s.filter(function(o,a,u){return u.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(r[i]=s)}),r}function et(e){return e!==void 0?e+1:1}function cr(e){return e==="__proto__"?"___proto___":e}function vi(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var tt,rt,nt,lr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,fr=(rt=(tt=process==null?void 0:process.versions)===null||tt===void 0?void 0:tt.node)!==null&&rt!==void 0?rt:(nt=process==null?void 0:process.version)===null||nt===void 0?void 0:nt.slice(1);if(fr&&Number(fr.match(/^([^.]+)/)[1])<lr)throw Error(`yargs parser supports a minimum Node.js version of ${lr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Ei=process?process.env:{},gn=new pt({cwd:process.cwd,env:()=>Ei,format:hi,normalize:pi,resolve:di,require:e=>{if(typeof Ke<"u")return Ke(e);if(e.match(/\.json$/))return JSON.parse(gi(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),me=function(t,r){return gn.parse(t.slice(),r).argv};me.detailed=function(e,t){return gn.parse(e.slice(),t)};me.camelCase=we;me.decamelize=pn;me.looksLikeNumber=dn;var mn=e=>typeof e=="object"&&e!==null,hr=e=>mn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Ci=Symbol("mapObjectSkip"),dt=(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:s}=r;delete r.target;let i=o=>o.map(a=>hr(a)?dt(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===Ci)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&hr(g)&&(g=Array.isArray(g)?i(g):dt(g,t,r,n)),s[l]=g)}return s};function pr(e,t,r){if(!mn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return dt(e,t,r)}var Li=/[\p{Lu}]/u,Oi=/[\p{Ll}]/u,dr=/^[\p{Lu}](?![\p{Lu}])/gu,bn=/([\p{Alpha}\p{N}_]|$)/u,Pt=/[_.\- ]+/,wi=new RegExp("^"+Pt.source),gr=new RegExp(Pt.source+bn.source,"gu"),mr=new RegExp("\\d+"+bn.source,"gu"),Ai=(e,t,r,n)=>{let s=!1,i=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,s&&Li.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),s=!1,o=i,i=!0,u++):i&&o&&Oi.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=i,i=!1,s=!0):(s=t(l)===l&&r(l)!==l,o=i,i=r(l)===l&&t(l)!==l)}return e},Si=(e,t)=>(dr.lastIndex=0,e.replaceAll(dr,r=>t(r))),$i=(e,t)=>(gr.lastIndex=0,mr.lastIndex=0,e.replaceAll(mr,(r,n,s)=>["_","-"].includes(e.charAt(s+r.length))?r:t(r)).replaceAll(gr,(r,n)=>t(n)));function Ri(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(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(t.locale),n=t.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(t.locale);return e.length===1?Pt.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=Ai(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(wi,""),e=t.preserveConsecutiveUppercase?Si(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),$i(e,n))}var Ge=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 s=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:s}):this._set(t,{value:r,expiry:s}),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],[s,i]=n;this._deleteIfExpired(s,i)===!1&&(yield[s,i.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[s,i]=n;this.cache.has(s)||this._deleteIfExpired(s,i)===!1&&(yield[s,i.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,s]of this.entriesAscending())t.call(r,s,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Pi=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),st=new Ge({maxSize:1e5}),br=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),yr=(e,t={})=>{if(!br(e))return e;let{exclude:r,pascalCase:n=!1,stopPaths:s,deep:i=!1,preserveConsecutiveUppercase:o=!1}=t,a=new Set(s),u=l=>(g,m)=>{if(i&&br(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=pr(m,u(E)))}if(!(r&&Pi(r,g))){let E=n?`${g}_`:g;if(st.has(E))g=st.get(E);else{let L=Ri(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&st.set(E,L),g=L}}return[g,m]};return pr(e,u(void 0))};function yn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>yr(e[r],t)):yr(e,t)}function vn(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
9
7
  `);)t++;for(;r>t&&(e[r-1]==="\r"||e[r-1]===`
10
- `);)r--;return t>0||r<e.length?e.slice(t,r):e}function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yi=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Vi=We(Yi);function Xi(e){let t=Vi(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Ki(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:s=!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 i=s?/^/gm:/^(?!\s*$)/gm;return e.replace(i,n.repeat(t))}function _t(e,t=0,r={}){return Ki(Xi(e),t,r)}var qi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},An=qi,Ji="2.0.0",Sn=256,Zi=Number.MAX_SAFE_INTEGER||9007199254740991,Qi=16,eo=Sn-6,to=["major","premajor","minor","preminor","patch","prepatch","prerelease"],$n={MAX_LENGTH:Sn,MAX_SAFE_COMPONENT_LENGTH:Qi,MAX_SAFE_BUILD_LENGTH:eo,MAX_SAFE_INTEGER:Zi,RELEASE_TYPES:to,SEMVER_SPEC_VERSION:Ji,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},yt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=$n,i=An;t=e.exports={};let o=t.re=[],a=t.safeRe=[],u=t.src=[],l=t.t={},g=0,m="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",s],[m,n]],L=h=>{for(let[c,b]of E)h=h.split(`${c}*`).join(`${c}{0,${b}}`).split(`${c}+`).join(`${c}{1,${b}}`);return h},v=(h,c,b)=>{let A=L(c),C=g++;i(h,C,c),l[h]=C,u[C]=c,o[C]=new RegExp(c,b?"g":void 0),a[C]=new RegExp(A,b?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),v("FULL",`^${u[l.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),v("LOOSE",`^${u[l.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),v("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",u[l.COERCE],!0),v("COERCERTLFULL",u[l.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(yt,yt.exports);var ro=yt.exports,no=Object.freeze({loose:!0}),so=Object.freeze({}),io=e=>e?typeof e!="object"?no:e:so,oo=io,wr=/^[0-9]+$/,Rn=(e,t)=>{let r=wr.test(e),n=wr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},ao=(e,t)=>Rn(t,e),uo={compareIdentifiers:Rn,rcompareIdentifiers:ao},_e=An,{MAX_LENGTH:Ar,MAX_SAFE_INTEGER:Te}=$n,{safeRe:Sr,t:$r}=ro,co=oo,{compareIdentifiers:fe}=uo,lo=class K{constructor(t,r){if(r=co(r),t instanceof K){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>Ar)throw new TypeError(`version is longer than ${Ar} characters`);_e("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Sr[$r.LOOSE]:Sr[$r.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>Te||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Te||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Te||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Te)return i}return s}):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(_e("SemVer.compare",this.version,this.options,t),!(t instanceof K)){if(typeof t=="string"&&t===this.version)return 0;t=new K(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof K||(t=new K(t,this.options)),fe(this.major,t.major)||fe(this.minor,t.minor)||fe(this.patch,t.patch)}comparePre(t){if(t instanceof K||(t=new K(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],s=t.prerelease[r];if(_e("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return fe(n,s)}while(++r)}compareBuild(t){t instanceof K||(t=new K(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(_e("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return fe(n,s)}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 s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),fe(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},fo=lo,Rr=fo,ho=(e,t,r=!1)=>{if(e instanceof Rr)return e;try{return new Rr(e,t)}catch(n){if(!r)return null;throw n}},Pn=ho,po=Pn,go=(e,t)=>{let r=po(e,t);return r?r.version:null},mo=go,bo=Pn,yo=(e,t)=>{let r=bo(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},vo=yo,xn=["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","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Adobe-Utopia","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-HP","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-3-Clause-Sun","BSD-3-Clause-flex","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-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Systemics","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","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-3.0-IGO","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","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DL-DE-ZERO-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","FBM","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","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","HP-1989","HPND","HPND-DEC","HPND-Markus-Kuhn","HPND-Pbmplus","HPND-UC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-modify","HPND-sell-regexpr","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","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","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","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIT","MIT-0","MIT-CMU","MIT-Festival","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","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","McPhee-slideshow","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","NIST-Software","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","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.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","PADL","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","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Soundex","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","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","UCAR","UCL-1.0","UPL-1.0","URT-RLE","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","metamail","mpi-permissive","mpich2","mplus","pnmstitch","psfrag","psutils","python-ldap","snprintf","ssh-keyscan","swrule","ulem","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],Eo=["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-1.0+","GPL-2.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+","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.0+","LGPL-2.1","LGPL-2.1+","LGPL-3.0","LGPL-3.0+","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],Co=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","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-2.0-note","GCC-exception-3.1","GNAT-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"],Lo=[].concat(xn).concat(Eo),Oo=Co,wo=function(e){var t=0;function r(){return t<e.length}function n(v){if(v instanceof RegExp){var h=e.slice(t),c=h.match(v);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(v,t)===t)return t+=v.length,v}function s(){n(/[ ]*/)}function i(){for(var v,h=["WITH","AND","OR","(",")",":","+"],c=0;c<h.length&&(v=n(h[c]),!v);c++);if(v==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return v&&{type:"OPERATOR",string:v}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var v=o();if(!v)throw new Error("Expected idstring at offset "+t);return v}function u(){if(n("DocumentRef-")){var v=a();return{type:"DOCUMENTREF",string:v}}}function l(){if(n("LicenseRef-")){var v=a();return{type:"LICENSEREF",string:v}}}function g(){var v=t,h=o();if(Lo.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(Oo.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};t=v}function m(){return i()||u()||l()||g()}for(var E=[];r()&&(s(),!!r());){var L=m();if(!L)throw new Error("Unexpected `"+e[t]+"` at offset "+t);E.push(L)}return E},Ao=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function s(){if(!r())throw new Error;t++}function i(h){var c=n();if(c&&c.type==="OPERATOR"&&h===c.string)return s(),c.string}function o(){if(i("WITH")){var h=n();if(h&&h.type==="EXCEPTION")return s(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=t,c="",b=n();if(b.type==="DOCUMENTREF"&&(s(),c+="DocumentRef-"+b.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return s(),c+="LicenseRef-"+b.string,{license:c};t=h}function u(){var h=n();if(h&&h.type==="LICENSE"){s();var c={license:h.string};i("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function l(){var h=i("(");if(h){var c=L();if(!i(")"))throw new Error("Expected `)`");return c}}function g(){return l()||a()||u()}function m(h,c){return function b(){var A=c();if(A){if(!i(h))return A;var C=b();if(!C)throw new Error("Expected expression");return{left:A,conjunction:h.toLowerCase(),right:C}}}}var E=m("AND",g),L=m("OR",E),v=L();if(!v||r())throw new Error("Syntax error");return v},So=wo,$o=Ao,Nn=function(e){return $o(So(e))},Ro=Nn,Po=xn;function Me(e){try{return Ro(e),!0}catch{return!1}}function In(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Pr=[["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(In),xo=0,No=1,xr=[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"}],vt=Po.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},{}),Io=Object.keys(vt).map(function(t){return[t,vt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});vt=void 0;var Nr=[["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(Io).sort(In),_o=0,To=1,Ir=function(e){for(var t=0;t<xr.length;t++){var r=xr[t](e).trim();if(r!==e&&Me(r))return r}return null},_r=function(e){for(var t=e.toUpperCase(),r=0;r<Nr.length;r++){var n=Nr[r];if(t.indexOf(n[_o])>-1)return n[To]}return null},Tr=function(e,t){for(var r=0;r<Pr.length;r++){var n=Pr[r],s=n[xo];if(e.indexOf(s)>-1){var i=e.replace(s,n[No]),o=t(i);if(o!==null)return o}}return null},Fo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Do(a):a}var s=typeof e=="string"&&e.trim().length!==0;if(!s)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Me(e))return n(e);var i=e.replace(/\+$/,"").trim();if(Me(i))return n(i);var o=Ir(e);return o!==null||(o=Tr(e,function(a){return Me(a)?a:Ir(a)}),o!==null)||(o=_r(e),o!==null)||(o=Tr(e,_r),o!==null)?n(o):null};function Do(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 Mo=Nn,jo=Fo,Fr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Go=/^SEE LICEN[CS]E IN (.+)$/;function Dr(e,t){return t.slice(0,e.length)===e}function Et(e){if(e.hasOwnProperty("license")){var t=e.license;return Dr("LicenseRef",t)||Dr("DocumentRef",t)}else return Et(e.left)||Et(e.right)}var Bo=function(e){var t;try{t=Mo(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Go.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Fr]};if(e.trim().length!==0){var s=jo(e);s&&n.warnings.push('license is similar to the valid expression "'+s+'"')}return n}return Et(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Fr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.LRUCache=void 0;var he=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_n=new Set,Ct=typeof process=="object"&&process?process:{},Tn=(e,t,r,n)=>{typeof Ct.emitWarning=="function"?Ct.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Be=globalThis.AbortController,Mr=globalThis.AbortSignal;if(typeof Be>"u"){Mr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Be=class{constructor(){t()}signal=new Mr;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let e=Ct.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Tn("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 ko=e=>!_n.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Fn=e=>Q(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?de:null:null,de=class extends Array{constructor(t){super(t),this.fill(0)}},Lt=class e{heap;length;static#n=!1;static create(t){let r=Fn(t);if(!r)return[];e.#n=!0;let n=new e(t,r);return e.#n=!1,n}constructor(t,r){if(!e.#n)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]}},Uo=class Dn{#n;#c;#t;#m;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#i;#s;#e;#f;#p;#l;#a;#y;#u;#v;#E;#d;#C;#A;#h;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#d,sizes:t.#v,keyMap:t.#i,keyList:t.#s,valList:t.#e,next:t.#f,prev:t.#p,get head(){return t.#l},get tail(){return t.#a},free:t.#y,isBackgroundFetch:r=>t.#r(r),backgroundFetch:(r,n,s,i)=>t.#I(r,n,s,i),moveToTail:r=>t.#R(r),indexes:r=>t.#L(r),rindexes:r=>t.#O(r),isStale:r=>t.#g(r)}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#b}get size(){return this.#o}get fetchMethod(){return this.#P}get dispose(){return this.#t}get disposeAfter(){return this.#m}constructor(t){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:E,maxSize:L=0,maxEntrySize:v=0,sizeCalculation:h,fetchMethod:c,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:x,ignoreFetchAbort:N}=t;if(r!==0&&!Q(r))throw new TypeError("max option must be a nonnegative integer");let j=r?Fn(r):Array;if(!j)throw new Error("invalid max value: "+r);if(this.#n=r,this.#c=L,this.maxEntrySize=v||this.#c,this.sizeCalculation=h,this.sizeCalculation){if(!this.#c&&!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.#P=c,this.#A=!!c,this.#i=new Map,this.#s=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#f=new j(r),this.#p=new j(r),this.#l=0,this.#a=0,this.#y=Lt.create(r),this.#o=0,this.#b=0,typeof l=="function"&&(this.#t=l),typeof g=="function"?(this.#m=g,this.#u=[]):(this.#m=void 0,this.#u=void 0),this.#C=!!this.#t,this.#h=!!this.#m,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#c!==0&&!Q(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!Q(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Q(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Q(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let W="LRU_CACHE_UNBOUNDED";ko(W)&&(_n.add(W),Tn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,Dn))}}getRemainingTTL(t){return this.#i.has(t)?1/0:0}#_(){let t=new de(this.#n),r=new de(this.#n);this.#d=t,this.#E=r,this.#T=(i,o,a=he.now())=>{if(r[i]=o!==0?a:0,t[i]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#g(i)&&this.delete(this.#s[i])},o+1);u.unref&&u.unref()}},this.#S=i=>{r[i]=t[i]!==0?he.now():0},this.#w=(i,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;i.ttl=a,i.start=u,i.now=n||s();let l=i.now-u;i.remainingTTL=a-l}};let n=0,s=()=>{let i=he.now();if(this.ttlResolution>0){n=i;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return i};this.getRemainingTTL=i=>{let o=this.#i.get(i);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let l=(n||s())-u;return a-l},this.#g=i=>{let o=r[i],a=t[i];return!!a&&!!o&&(n||s())-o>a}}#S=()=>{};#w=()=>{};#T=()=>{};#g=()=>!1;#j(){let t=new de(this.#n);this.#b=0,this.#v=t,this.#$=r=>{this.#b-=t[r],t[r]=0},this.#F=(r,n,s,i)=>{if(this.#r(n))return 0;if(!Q(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!Q(s))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 s},this.#x=(r,n,s)=>{if(t[r]=n,this.#c){let i=this.#c-t[r];for(;this.#b>i;)this.#N(!0)}this.#b+=t[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#b)}}#$=t=>{};#x=(t,r,n)=>{};#F=(t,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#L({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#a;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#l));)r=this.#p[r]}*#O({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#a));)r=this.#f[r]}#D(t){return t!==void 0&&this.#i.get(this.#s[t])===t}*entries(){for(let t of this.#L())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*rentries(){for(let t of this.#O())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*keys(){for(let t of this.#L()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*values(){for(let t of this.#L())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}*rvalues(){for(let t of this.#O())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;if(i!==void 0&&t(i,this.#s[n],this))return this.get(this.#s[n],r)}}forEach(t,r=this){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}rforEach(t,r=this){for(let n of this.#O()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#g(r)&&(this.delete(this.#s[r]),t=!0);return t}info(t){let r=this.#i.get(t);if(r===void 0)return;let n=this.#e[r],s=this.#r(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#d&&this.#E){let o=this.#d[r],a=this.#E[r];if(o&&a){let u=o-(he.now()-a);i.ttl=u,i.start=Date.now()}}return this.#v&&(i.size=this.#v[r]),i}dump(){let t=[];for(let r of this.#L({allowStale:!0})){let n=this.#s[r],s=this.#e[r],i=this.#r(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let o={value:i};if(this.#d&&this.#E){o.ttl=this.#d[r];let a=he.now()-this.#E[r];o.start=Math.floor(Date.now()-a)}this.#v&&(o.size=this.#v[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let s=Date.now()-n.start;n.start=he.now()-s}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,g=this.#F(t,r,n.size||0,a);if(this.maxEntrySize&&g>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let m=this.#o===0?void 0:this.#i.get(t);if(m===void 0)m=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#n?this.#N(!1):this.#o,this.#s[m]=t,this.#e[m]=r,this.#i.set(t,m),this.#f[this.#a]=m,this.#p[m]=this.#a,this.#a=m,this.#o++,this.#x(m,g,u),u&&(u.set="add"),l=!1;else{this.#R(m);let E=this.#e[m];if(r!==E){if(this.#A&&this.#r(E)){E.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:L}=E;L!==void 0&&!o&&(this.#C&&this.#t?.(L,t,"set"),this.#h&&this.#u?.push([L,t,"set"]))}else o||(this.#C&&this.#t?.(E,t,"set"),this.#h&&this.#u?.push([E,t,"set"]));if(this.#$(m),this.#x(m,g,u),this.#e[m]=r,u){u.set="replace";let L=E&&this.#r(E)?E.__staleWhileFetching:E;L!==void 0&&(u.oldValue=L)}}else u&&(u.set="update")}if(s!==0&&!this.#d&&this.#_(),this.#d&&(l||this.#T(m,s,i),u&&this.#w(u,m)),!o&&this.#h&&this.#u){let E=this.#u,L;for(;L=E?.shift();)this.#m?.(...L)}return this}pop(){try{for(;this.#o;){let t=this.#e[this.#l];if(this.#N(!0),this.#r(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}}#N(t){let r=this.#l,n=this.#s[r],s=this.#e[r];return this.#A&&this.#r(s)?s.__abortController.abort(new Error("evicted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,n,"evict"),this.#h&&this.#u?.push([s,n,"evict"])),this.#$(r),t&&(this.#s[r]=void 0,this.#e[r]=void 0,this.#y.push(r)),this.#o===1?(this.#l=this.#a=0,this.#y.length=0):this.#l=this.#f[r],this.#i.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#i.get(t);if(i!==void 0){let o=this.#e[i];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(i))s&&(s.has="stale",this.#w(s,i));else return n&&this.#S(i),s&&(s.has="hit",this.#w(s,i)),!0}else s&&(s.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,s=this.#i.get(t);if(s===void 0||!n&&this.#g(s))return;let i=this.#e[s];return this.#r(i)?i.__staleWhileFetching:i}#I(t,r,n,s){let i=r===void 0?void 0:this.#e[r];if(this.#r(i))return i;let o=new Be,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:s},l=(h,c=!1)=>{let{aborted:b}=o.signal,A=n.ignoreFetchAbort&&h!==void 0;if(n.status&&(b&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,A&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!A&&!c)return m(o.signal.reason);let C=L;return this.#e[r]===L&&(h===void 0?C.__staleWhileFetching?this.#e[r]=C.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,h,u.options))),h},g=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),m(h)),m=h=>{let{aborted:c}=o.signal,b=c&&n.allowStaleOnFetchAbort,A=b||n.allowStaleOnFetchRejection,C=A||n.noDeleteOnFetchRejection,x=L;if(this.#e[r]===L&&(!C||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#e[r]=x.__staleWhileFetching)),A)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw h},E=(h,c)=>{let b=this.#P?.(t,i,u);b&&b instanceof Promise&&b.then(A=>h(A===void 0?void 0:A),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(void 0),n.allowStaleOnFetchAbort&&(h=A=>l(A,!0)))})};n.status&&(n.status.fetchDispatched=!0);let L=new Promise(E).then(l,g),v=Object.assign(L,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(t,v,{...u.options,status:void 0}),r=this.#i.get(t)):this.#e[r]=v,v}#r(t){if(!this.#A)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Be}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:E=this.allowStaleOnFetchRejection,ignoreFetchAbort:L=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:h,forceRefresh:c=!1,status:b,signal:A}=r;if(!this.#A)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:b});let C={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:v,ignoreFetchAbort:L,status:b,signal:A},x=this.#i.get(t);if(x===void 0){b&&(b.fetch="miss");let N=this.#I(t,x,C,h);return N.__returned=N}else{let N=this.#e[x];if(this.#r(N)){let _=n&&N.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?N.__staleWhileFetching:N.__returned=N}let j=this.#g(x);if(!c&&!j)return b&&(b.fetch="hit"),this.#R(x),s&&this.#S(x),b&&this.#w(b,x),N;let W=this.#I(t,x,C,h),ne=W.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=j?"stale":"refresh",ne&&j&&(b.returnedStale=!0)),ne?W.__staleWhileFetching:W.__returned=W}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=this.#i.get(t);if(a!==void 0){let u=this.#e[a],l=this.#r(u);return o&&this.#w(o,a),this.#g(a)?(o&&(o.get="stale"),l?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(i||this.delete(t),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(this.#R(a),s&&this.#S(a),u))}else o&&(o.get="miss")}#M(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#a&&(t===this.#l?this.#l=this.#f[t]:this.#M(this.#p[t],this.#f[t]),this.#M(this.#a,t),this.#a=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#i.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#$(n);let s=this.#e[n];if(this.#r(s)?s.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,t,"delete"),this.#h&&this.#u?.push([s,t,"delete"])),this.#i.delete(t),this.#s[n]=void 0,this.#e[n]=void 0,n===this.#a)this.#a=this.#p[n];else if(n===this.#l)this.#l=this.#f[n];else{let i=this.#p[n];this.#f[i]=this.#f[n];let o=this.#f[n];this.#p[o]=this.#p[n]}this.#o--,this.#y.push(n)}}if(this.#h&&this.#u?.length){let n=this.#u,s;for(;s=n?.shift();)this.#m?.(...s)}return r}clear(){for(let t of this.#O({allowStale:!0})){let r=this.#e[t];if(this.#r(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#s[t];this.#C&&this.#t?.(r,n,"delete"),this.#h&&this.#u?.push([r,n,"delete"])}}if(this.#i.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#E&&(this.#d.fill(0),this.#E.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#a=0,this.#y.length=0,this.#b=0,this.#o=0,this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}};ze.LRUCache=Uo;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",Mn=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Wo={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${I("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${I("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:i})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n||"HEAD"),"/",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${I("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${I("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${I("/",n,"/",D(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${D(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${I("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${I("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Mn},re={};re.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:s})=>`https://${I(e,"@")}raw.githubusercontent.com/${t}/${r}/${D(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${D(n||"HEAD")}`,extract:e=>{let[,t,r,n,s]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(s=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:s}}};re.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:s,path:i,editpath:o})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n||"HEAD"),"/",i,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${D(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)}}};re.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:s})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${D(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 s=r.join("/");if(!(!s||!n))return{user:s,project:n,committish:e.hash.slice(1)}}};re.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${I("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${I("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${I("/",D(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${I("/",D(r))}${I("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${I("/",D(r))}${I("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${I("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${I("/",D(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${I("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${I("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${I("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${D(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-"+Mn(e)}};re.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${D(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${I("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${D(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>null,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(re))re[e]=Object.assign({},Wo,t);var zo=re,Ho=bn,ut=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},jr=e=>{try{return new Ho.URL(e)}catch{}},Yo=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let s=e.indexOf("@");return s>-1?s>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},Vo=e=>{let t=ut(e,"@","#"),r=ut(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),ut(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},jn=(e,t)=>{let r=t?Yo(e,t):e;return jr(r)||jr(Vo(r))},Xo=jn,Ko=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),s=e.indexOf(":"),i=/\s/.exec(e),o=e.indexOf("@"),a=!i||t>-1&&i.index>t,u=o===-1||t>-1&&o>t,l=s===-1||t>-1&&s>t,g=n===-1||t>-1&&n>t,m=r>0,E=t>-1?e[t-1]!=="/":!e.endsWith("/"),L=!e.startsWith(".");return a&&m&&E&&L&&u&&l&&g},qo=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let s=Ko(e)?`github:${e}`:e,i=Xo(s,n);if(!i)return;let o=r.byShortcut[i.protocol],a=r.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],u=o||a;if(!u)return;let l=r[o||a],g=null;n[i.protocol]?.auth&&(i.username||i.password)&&(g=`${i.username}${i.password?":"+i.password:""}`);let m=null,E=null,L=null,v=null;try{if(o){let h=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,c=h.indexOf("@");c>-1&&(h=h.slice(c+1));let b=h.lastIndexOf("/");b>-1?(E=decodeURIComponent(h.slice(0,b)),E||(E=null),L=decodeURIComponent(h.slice(b+1))):L=decodeURIComponent(h),L.endsWith(".git")&&(L=L.slice(0,-4)),i.hash&&(m=decodeURIComponent(i.hash.slice(1))),v="shortcut"}else{if(!l.protocols.includes(i.protocol))return;let h=l.extract(i);if(!h)return;E=h.user&&decodeURIComponent(h.user),L=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),v=n[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[u,E,g,L,m,v,t]},{LRUCache:Jo}=ze,Zo=zo,Qo=qo,ea=jn,ct=new Jo({max:1e3}),ke=class e{constructor(t,r,n,s,i,o,a={}){Object.assign(this,e.#n[t],{type:t,user:r,auth:n,project:s,committish:i,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#c={"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.#n[t]=r,e.#n.byDomain[r.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#c[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!ct.has(n)){let s=Qo(t,r,{gitHosts:e.#n,protocols:e.#c});ct.set(n,s?new e(...s):void 0)}return ct.get(n)}static parseUrl(t){return ea(t)}#t(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 s=t(n);return n.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(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(Zo))ke.addHost(e,t);var ta=ke,ra="Function.prototype.bind called on incompatible ",na=Object.prototype.toString,sa=Math.max,ia="[object Function]",Gr=function(t,r){for(var n=[],s=0;s<t.length;s+=1)n[s]=t[s];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},oa=function(t,r){for(var n=[],s=r||0,i=0;s<t.length;s+=1,i+=1)n[i]=t[s];return n},aa=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},ua=function(t){var r=this;if(typeof r!="function"||na.apply(r)!==ia)throw new TypeError(ra+r);for(var n=oa(arguments,1),s,i=function(){if(this instanceof s){var g=r.apply(this,Gr(n,arguments));return Object(g)===g?g:this}return r.apply(t,Gr(n,arguments))},o=sa(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(s=Function("binder","return function ("+aa(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,s.prototype=new l,l.prototype=null}return s},ca=ua,la=Function.prototype.bind||ca,fa=Function.prototype.call,ha=Object.prototype.hasOwnProperty,pa=la,da=pa.call(fa,ha),ga=!0,ma=">= 8",ba=">= 0.5 && < 0.9.7",ya=!0,va=!0,Ea=">= 0.5",Ca=!0,La=!0,Oa=!0,wa=">= 1 && < 8",Aa="< 8",Sa=!0,$a=[">= 14.17 && < 15",">= 15.1"],Ra=!0,Pa=">= 0.7.12",xa=!0,Na="< 6",Ia=!0,_a=">= 0.11.1",Ta=">= 0.11.1",Fa=">= 0.11.1",Da=">= 0.11.1",Ma=">= 0.11.1",ja=">= 0.11.1",Ga=!0,Ba=">= 8.8",ka=!0,Ua=">= 8",Wa="< 8",za=!0,Ha=!0,Ya=!0,Va=!0,Xa=">= 8.5",Ka=">= 1",qa=">= 0.5",Ja=!0,Za=!0,Qa=!0,eu=">= 0.11.5 && < 3",tu=">= 0.9.4",ru=">= 0.9.4",nu=">= 1.4.1",su=">= 0.9.4",iu=">= 0.9.4",ou=">= 0.9.4",au=!0,uu=!0,cu=[">= 0.4 && < 0.7",">= 0.8"],lu=!0,fu=">= 0.11.13",hu=">= 0.11.3 && < 10",pu=">= 0.11.3",du=!0,gu=">= 10",mu=!0,bu=!0,yu=!0,vu=">= 1",Eu=!0,Cu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],Lu=">= 11.7",Ou=">= 0.5",wu={assert:ga,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ma,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ba,buffer:ya,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:va,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:Ea,"node:cluster":[">= 14.18 && < 15",">= 16"],console:Ca,"node:console":[">= 14.18 && < 15",">= 16"],constants:La,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:Oa,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:wa,_debugger:Aa,dgram:Sa,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:$a,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:Ra,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:Pa,"node:domain":[">= 14.18 && < 15",">= 16"],events:xa,"node:events":[">= 14.18 && < 15",">= 16"],freelist:Na,fs:Ia,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_a,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:Ta,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Fa,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Da,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Ma,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:ja,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Ga,"node:http":[">= 14.18 && < 15",">= 16"],http2:Ba,"node:http2":[">= 14.18 && < 15",">= 16"],https:ka,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Ua,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Wa,module:za,"node:module":[">= 14.18 && < 15",">= 16"],net:Ha,"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:Ya,"node:os":[">= 14.18 && < 15",">= 16"],path:Va,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Xa,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Ka,"node:process":[">= 14.18 && < 15",">= 16"],punycode:qa,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Ja,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Za,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:Qa,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:eu,_stream_duplex:tu,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:ru,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:nu,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:su,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:iu,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:ou,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:au,"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:uu,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:cu,"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:lu,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:fu,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:hu,_tls_wrap:pu,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:du,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:gu,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:mu,"node:tty":[">= 14.18 && < 15",">= 16"],url:bu,"node:url":[">= 14.18 && < 15",">= 16"],util:yu,"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:vu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:Eu,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:Cu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:Lu,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:Ou,"node:zlib":[">= 14.18 && < 15",">= 16"]},Au=da;function Su(e,t){for(var r=e.split("."),n=t.split(" "),s=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),u=parseInt(i[o]||0,10);if(a!==u)return s==="<"?a<u:s===">="?a>=u:!1}return s===">="}function Br(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Su(e,r[n]))return!1;return!0}function $u(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(Br(r,t[n]))return!0;return!1}return Br(r,t)}var kr=wu,Ru=function(t,r){return Au(kr,t)&&$u(r,kr[t])},Pu=xu;function xu(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 Nu={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"},Iu={web:"url",name:"url"},_u={server:"start",tests:"test"},Tu={topLevel:Nu,bugs:Iu,script:_u},Fu=mo,Du=vo,Mu=Bo,Fe=ta,ju=Ru,Gu=["dependencies","devDependencies","optionalDependencies"],Bu=Pu,lt=bn,te=Tu,Ur=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),ku={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=Fe.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(te.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,te.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]):te.script[t]&&!e.scripts[te.script[t]]&&this.warn("typo",t,te.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){Ku(e,this.warn),Vu(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 s=e[r][n];typeof s!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(s)),delete e[r][n]);var i=Fe.fromUrl(e[r][n]);i&&(e[r][n]=i.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(!Fu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Du(e.version,r),!0},fixPeople:function(e){Wr(e,Hu),Wr(e,Yu)},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()),zu(e.name,r,t.allowLegacyCase),ju(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=Bu(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=Fe.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Ur(e.bugs)?e.bugs={email:e.bugs}:lt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{qu(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&lt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Ur(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=Fe.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;lt.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(!Mu(t).validForNewPackages)return this.warn("invalidLicense")}};function Uu(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 Wu(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function zu(e,t,r){if(e.charAt(0)==="."||!(Uu(e)||Wu(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Wr(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 Hu(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",s=e.email||e.mail,i=s?" <"+s+">":"";return t+i+n}function Yu(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),s={};return t&&t[0].trim()&&(s.name=t[0].trim()),n&&(s.email=n[1]),r&&(s.url=r[1]),s}function Vu(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(s){n[s]=r[s]}),e.dependencies=n}}function Xu(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(s){return typeof s=="string"}).forEach(function(s){s=s.trim().split(/(:?[@\s><=])/);var i=s.shift(),o=s.join("");o=o.trim(),o=o.replace(/^@/,""),n[i]=o}),n}function Ku(e,t){Gu.forEach(function(r){e[r]&&(e[r]=Xu(e[r],r,t))})}function qu(e,t){e&&Object.keys(e).forEach(function(r){te.bugs[r]&&(t("typo",r,te.bugs[r],"bugs"),e[te.bugs[r]]=e[r],delete e[r])})}var Ju="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Zu="No repository field.",Qu="Probably broken git url: %s",ec="scripts must be an object",tc="script values must be string commands",rc="Invalid 'files' member",nc="Invalid filename in 'files' list: %s",sc="Invalid 'bundleDependencies' list. Must be array of package names",ic="Invalid bundleDependencies member: %s",oc="Non-dependency in bundleDependencies: %s",ac="%s field must be an object",uc="Invalid dependency: %s %s",cc="specifying %s as array is deprecated",lc="modules field is deprecated",fc="keywords should be an array of strings",hc="keywords should be an array of strings",pc="%s is also the name of a node core module.",dc="'description' field should be a string",gc="No description",mc="No README data",bc="No license field.",yc="Bug string field must be url, email, or {email,url}",vc="bugs.url field must be a string url. Deleted.",Ec="bugs.email field must be a string email. Deleted.",Cc="Normalized value of bugs field is an empty object. Deleted.",Lc="homepage field must be a string url. Deleted.",Oc="license should be a valid SPDX license expression",wc="%s should probably be %s.",Ac={repositories:Ju,missingRepository:Zu,brokenGitUrl:Qu,nonObjectScripts:ec,nonStringScript:tc,nonArrayFiles:rc,invalidFilename:nc,nonArrayBundleDependencies:sc,nonStringBundleDependency:ic,nonDependencyBundleDependency:oc,nonObjectDependencies:ac,nonStringDependency:uc,deprecatedArrayDependencies:cc,deprecatedModules:lc,nonArrayKeywords:fc,nonStringKeyword:hc,conflictingName:pc,nonStringDescription:dc,missingDescription:gc,missingReadme:mc,missingLicense:bc,nonEmailUrlBugsString:yc,nonUrlBugsUrlField:vc,nonEmailBugsEmailField:Ec,emptyNormalizedBugs:Cc,nonUrlHomepage:Lc,invalidLicense:Oc,typo:wc},Gn=$i,Ot=Ac,Sc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return $c.apply(null,e);var r=Ot[t]?Ot[t]:t+": '%s'";return e.unshift(r),Gn.format.apply(null,e)};function $c(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Gn.format(Ot.typo,e,t)}var Rc=Bn,wt=ku;Bn.fixer=wt;var Pc=Sc,xc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Nc=["dependencies","people","typos"],At=xc.map(function(e){return kn(e)+"Field"});At=At.concat(Nc);function Bn(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),wt.warn=function(){t(Pc.apply(null,arguments))},At.forEach(function(n){wt["fix"+kn(n)](e,r)}),e._id=e.name+"@"+e.version}function kn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Tt=We(Rc),zr=e=>e instanceof URL?dn(e):e;function Ic(e,{cwd:t=Ii.cwd(),type:r="file",stopAt:n}={}){let s=ee.resolve(zr(t)??""),{root:i}=ee.parse(s);for(n=ee.resolve(s,zr(n)??i);s&&s!==n&&s!==i;){let o=ee.isAbsolute(e)?e:ee.join(s,e);try{let a=gn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}s=ee.dirname(s)}}var Ft={},Se={},He={};Object.defineProperty(He,"__esModule",{value:!0});He.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;He.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 Un={},$e={};Object.defineProperty($e,"__esModule",{value:!0});$e.isIdentifierChar=Yn;$e.isIdentifierName=Dc;$e.isIdentifierStart=Hn;var Dt="\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",Wn="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",_c=new RegExp("["+Dt+"]"),Tc=new RegExp("["+Dt+Wn+"]");Dt=Wn=null;var zn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Fc=[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 St(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Hn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&_c.test(String.fromCharCode(e)):St(e,zn)}function Yn(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&&Tc.test(String.fromCharCode(e)):St(e,zn)||St(e,Fc)}function Dc(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 s=e.charCodeAt(++r);(s&64512)===56320&&(n=65536+((n&1023)<<10)+(s&1023))}if(t){if(t=!1,!Hn(n))return!1}else if(!Yn(n))return!1}return!t}var ie={};Object.defineProperty(ie,"__esModule",{value:!0});ie.isKeyword=kc;ie.isReservedWord=Vn;ie.isStrictBindOnlyReservedWord=Kn;ie.isStrictBindReservedWord=Bc;ie.isStrictReservedWord=Xn;var Mt={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"]},Mc=new Set(Mt.keyword),jc=new Set(Mt.strict),Gc=new Set(Mt.strictBind);function Vn(e,t){return t&&e==="await"||e==="enum"}function Xn(e,t){return Vn(e,t)||jc.has(e)}function Kn(e){return Gc.has(e)}function Bc(e,t){return Xn(e,t)||Kn(e)}function kc(e){return Mc.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=$e,r=ie})(Un);var qn={exports:{}},Uc=/[|\\{}()[\]^$+*?.]/g,Wc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Uc,"\\$&")},jt={exports:{}},Jn={exports:{}},zc={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]},se=zc,Zn={};for(De in se)se.hasOwnProperty(De)&&(Zn[se[De]]=De);var De,$=Jn.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(U in $)if($.hasOwnProperty(U)){if(!("channels"in $[U]))throw new Error("missing channels property: "+U);if(!("labels"in $[U]))throw new Error("missing channel labels property: "+U);if($[U].labels.length!==$[U].channels)throw new Error("channel and label counts mismatch: "+U);Hr=$[U].channels,Yr=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:Hr}),Object.defineProperty($[U],"labels",{value:Yr})}var Hr,Yr,U;$.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.min(t,r,n),i=Math.max(t,r,n),o=i-s,a,u,l;return i===s?a=0:t===i?a=(r-n)/o:r===i?a=2+(n-t)/o:n===i&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),l=(s+i)/2,i===s?u=0:l<=.5?u=o/(i+s):u=o/(2-i-s),[a,u*100,l*100]};$.rgb.hsv=function(e){var t,r,n,s,i,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),g=l-Math.min(o,a,u),m=function(E){return(l-E)/6/g+1/2};return g===0?s=i=0:(i=g/l,t=m(o),r=m(a),n=m(u),o===l?s=n-r:a===l?s=1/3+t-n:u===l&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,i*100,l*100]};$.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],s=$.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[s,i*100,n*100]};$.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s,i,o,a;return a=Math.min(1-t,1-r,1-n),s=(1-t-a)/(1-a)||0,i=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,i*100,o*100,a*100]};function Hc(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}$.rgb.keyword=function(e){var t=Zn[e];if(t)return t;var r=1/0,n;for(var s in se)if(se.hasOwnProperty(s)){var i=se[s],o=Hc(e,i);o<r&&(r=o,n=s)}return n};$.keyword.rgb=function(e){return se[e]};$.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 s=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};$.rgb.lab=function(e){var t=$.rgb.xyz(e),r=t[0],n=t[1],s=t[2],i,o,a;return r/=95.047,n/=100,s/=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,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=116*n-16,o=500*(r-n),a=200*(n-s),[i,o,a]};$.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s,i,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,s=2*n-i,a=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=s+(i-s)*6*o:2*o<1?u=i:3*o<2?u=s+(i-s)*(2/3-o)*6:u=s,a[l]=u*255;return a};$.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=r,i=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,s*=i<=1?i:2-i,a=(n+r)/2,o=n===0?2*s/(i+s):2*r/(n+r),[t,o*100,a*100]};$.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,s){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=Math.max(n,.01),i,o,a;return a=(2-r)*n,i=(2-r)*s,o=r*s,o/=i<=1?i:2-i,o=o||0,a/=2,[t,o*100,a*100]};$.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s=r+n,i,o,a,u;s>1&&(r/=s,n/=s),i=Math.floor(6*t),o=1-n,a=6*t-i,i&1&&(a=1-a),u=r+a*(o-r);var l,g,m;switch(i){default:case 6:case 0:l=o,g=u,m=r;break;case 1:l=u,g=o,m=r;break;case 2:l=r,g=o,m=u;break;case 3:l=r,g=u,m=o;break;case 4:l=u,g=r,m=o;break;case 5:l=o,g=r,m=u;break}return[l*255,g*255,m*255]};$.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100,i,o,a;return i=1-Math.min(1,t*(1-s)+s),o=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[i*255,o*255,a*255]};$.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s,i,o;return s=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[s*255,i*255,o*255]};$.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,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,s=116*r-16,i=500*(t-r),o=200*(r-n),[s,i,o]};$.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;i=(t+16)/116,s=r/500+i,o=i-n/200;var a=Math.pow(i,3),u=Math.pow(s,3),l=Math.pow(o,3);return i=a>.008856?a:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s*=95.047,i*=100,o*=108.883,[s,i,o]};$.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return s=Math.atan2(n,r),i=s*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[t,o,i]};$.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return o=n/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o),[t,s,i]};$.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:$.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(i+=60),i};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.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 s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};$.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,s=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,s,i]};$.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,s=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[n,s,i]};$.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};$.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),s=n>>16&255,i=n>>8&255,o=n&255;return[s,i,o]};$.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=s-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:s===t?u=(r-n)/o%6:s===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,s=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(s=(r-.5*n)/(1-n)),[e[0],n*100,s*100]};$.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],n*100,s*100]};$.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 s=[0,0,0],i=t%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return u=(1-r)*n,[(r*s[0]+u)*255,(r*s[1]+u)*255,(r*s[2]+u)*255]};$.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),s=0;return n>0&&(s=t/n),[e[0],s*100,n*100]};$.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,s=0;return n>0&&n<.5?s=t/(2*n):n>=.5&&n<1&&(s=t/(2*(1-n))),[e[0],s*100,n*100]};$.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]};$.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,s=n-t,i=0;return s<1&&(i=(n-s)/(1-s)),[e[0],s*100,i*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=$.gray.hsv=function(e){return[0,0,e[0]]};$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.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};$.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Qn=Jn.exports,Ue=Qn;function Yc(){for(var e={},t=Object.keys(Ue),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Vc(e){var t=Yc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(Ue[n]),i=s.length,o=0;o<i;o++){var a=s[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function Xc(e,t){return function(r){return t(e(r))}}function Kc(e,t){for(var r=[t[e].parent,e],n=Ue[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=Xc(Ue[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}var qc=function(e){for(var t=Vc(e),r={},n=Object.keys(t),s=n.length,i=0;i<s;i++){var o=n[i],a=t[o];a.parent!==null&&(r[o]=Kc(o,t))}return r},$t=Qn,Jc=qc,pe={},Zc=Object.keys($t);function Qc(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 el(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 s=n.length,i=0;i<s;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Zc.forEach(function(e){pe[e]={},Object.defineProperty(pe[e],"channels",{value:$t[e].channels}),Object.defineProperty(pe[e],"labels",{value:$t[e].labels});var t=Jc(e),r=Object.keys(t);r.forEach(function(n){var s=t[n];pe[e][n]=el(s),pe[e][n].raw=Qc(s)})});var es=pe;jt.exports;(function(e){let t=es,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){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 g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(jt);var tl=jt.exports,rl=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},nl=mn,V=rl,G=process.env,ge;V("no-color")||V("no-colors")||V("color=false")?ge=!1:(V("color")||V("colors")||V("color=true")||V("color=always"))&&(ge=!0);"FORCE_COLOR"in G&&(ge=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function il(e){if(ge===!1)return 0;if(V("color=16m")||V("color=full")||V("color=truecolor"))return 3;if(V("color=256"))return 2;if(e&&!e.isTTY&&ge!==!0)return 0;let t=ge?1:0;if(process.platform==="win32"){let r=nl.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 ft(e){let t=il(e);return sl(t)}var ol={supportsColor:ft,stdout:ft(process.stdout),stderr:ft(process.stderr)},al=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ul=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,cl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ll=new Map([["n",`
12
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ts(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):ll.get(e)||e}function fl(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(ul))r.push(s[2].replace(cl,(o,a,u)=>a?ts(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function hl(e){Vr.lastIndex=0;let t=[],r;for(;(r=Vr.exec(e))!==null;){let n=r[1];if(r[2]){let s=fl(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Xr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var pl=(e,t)=>{let r=[],n=[],s=[];if(t.replace(al,(i,o,a,u,l,g)=>{if(o)s.push(ts(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Xr(e,r)(m)),r.push({inverse:a,styles:hl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Xr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=Wc,r=tl,n=ol.stdout,s=pl,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(qn);var dl=qn.exports;Object.defineProperty(Se,"__esModule",{value:!0});Se.default=Cl;Se.shouldHighlight=ss;var Kr=He,qr=Un,Rt=gl(dl,!0);function rs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rs=function(n){return n?r:t})(e)}function gl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rs(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var ml=new Set(["as","async","from","get","of","set"]);function bl(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 yl=/\r\n|[\n\r\u2028\u2029]/,vl=/^[()[\]{}]$/,ns;{let e=/^[a-z][\w-]*$/i,t=function(r,n,s){if(r.type==="name"){if((0,qr.isKeyword)(r.value)||(0,qr.isStrictReservedWord)(r.value,!0)||ml.has(r.value))return"keyword";if(e.test(r.value)&&(s[n-1]==="<"||s.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&vl.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};ns=function*(r){let n;for(;n=Kr.default.exec(r);){let s=Kr.matchToToken(n);yield{type:t(s,n.index,r),value:s.value}}}}function El(e,t){let r="";for(let{type:n,value:s}of ns(t)){let i=e[n];i?r+=s.split(yl).map(o=>i(o)).join(`
13
- `):r+=s}return r}function ss(e){return Rt.default.level>0||e.forceColor}var ht;function is(e){if(e){var t;return(t=ht)!=null||(ht=new Rt.default.constructor({enabled:!0,level:1})),ht}return Rt.default}Se.getChalk=e=>is(e.forceColor);function Cl(e,t={}){if(e!==""&&ss(t)){let r=bl(is(t.forceColor));return El(r,e)}else return e}var os={exports:{}},Ll=/[|\\{}()[\]^$+*?.]/g,Ol=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Ll,"\\$&")},Gt={exports:{}};Gt.exports;(function(e){let t=es,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){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 g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(Gt);var wl=Gt.exports,Al=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},Sl=mn,X=Al,B=process.env,me;X("no-color")||X("no-colors")||X("color=false")?me=!1:(X("color")||X("colors")||X("color=true")||X("color=always"))&&(me=!0);"FORCE_COLOR"in B&&(me=B.FORCE_COLOR.length===0||parseInt(B.FORCE_COLOR,10)!==0);function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Rl(e){if(me===!1)return 0;if(X("color=16m")||X("color=full")||X("color=truecolor"))return 3;if(X("color=256"))return 2;if(e&&!e.isTTY&&me!==!0)return 0;let t=me?1:0;if(process.platform==="win32"){let r=Sl.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 B)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in B)||B.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in B)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B.TEAMCITY_VERSION)?1:0;if(B.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in B){let r=parseInt((B.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(B.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B.TERM)||"COLORTERM"in B?1:(B.TERM==="dumb",t)}function pt(e){let t=Rl(e);return $l(t)}var Pl={supportsColor:pt,stdout:pt(process.stdout),stderr:pt(process.stderr)},xl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Il=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,_l=new Map([["n",`
14
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function as(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):_l.get(e)||e}function Tl(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(Nl))r.push(s[2].replace(Il,(o,a,u)=>a?as(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function Fl(e){Jr.lastIndex=0;let t=[],r;for(;(r=Jr.exec(e))!==null;){let n=r[1];if(r[2]){let s=Tl(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Zr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var Dl=(e,t)=>{let r=[],n=[],s=[];if(t.replace(xl,(i,o,a,u,l,g)=>{if(o)s.push(as(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Zr(e,r)(m)),r.push({inverse:a,styles:Fl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Zr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=Ol,r=wl,n=Pl.stdout,s=Dl,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(os);var Ml=os.exports;Object.defineProperty(Ft,"__esModule",{value:!0});var jl=Ft.codeFrameColumns=cs;Ft.default=Wl;var Qr=Se,en=Gl(Ml,!0);function us(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(us=function(n){return n?r:t})(e)}function Gl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=us(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var dt;function Bl(e){if(e){var t;return(t=dt)!=null||(dt=new en.default.constructor({enabled:!0,level:1})),dt}return en.default}var tn=!1;function kl(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var rn=/\r\n|[\n\r\u2028\u2029]/;function Ul(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},a=n.line,u=n.column,l=s.line,g=s.column,m=Math.max(a-(i+1),0),E=Math.min(t.length,l+o);a===-1&&(m=0),l===-1&&(E=t.length);let L=l-a,v={};if(L)for(let h=0;h<=L;h++){let c=h+a;if(!u)v[c]=!0;else if(h===0){let b=t[c-1].length;v[c]=[u,b-u+1]}else if(h===L)v[c]=[0,g];else{let b=t[c-h].length;v[c]=[0,b]}}else u===g?u?v[a]=[u,0]:v[a]=!0:v[a]=[u,g-u];return{start:m,end:E,markerLines:v}}function cs(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Qr.shouldHighlight)(r),s=Bl(r.forceColor),i=kl(s),o=(h,c)=>n?h(c):c,a=e.split(rn),{start:u,end:l,markerLines:g}=Ul(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Qr.default)(e,r):e).split(rn,l).slice(u,l).map((h,c)=>{let b=u+1+c,C=` ${` ${b}`.slice(-E)} |`,x=g[b],N=!g[b+1];if(x){let j="";if(Array.isArray(x)){let W=h.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Z=x[1]||1;j=[`
8
+ `);)r--;return t>0||r<e.length?e.slice(t,r):e}function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xi=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Ni=We(xi);function Ii(e){let t=Ni(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function _i(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:s=!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 i=s?/^/gm:/^(?!\s*$)/gm;return e.replace(i,n.repeat(t))}function xt(e,t=0,r={}){return _i(Ii(e),t,r)}var Ti=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},En=Ti,Fi="2.0.0",Cn=256,Di=Number.MAX_SAFE_INTEGER||9007199254740991,Mi=16,ji=Cn-6,Gi=["major","premajor","minor","preminor","patch","prepatch","prerelease"],Ln={MAX_LENGTH:Cn,MAX_SAFE_COMPONENT_LENGTH:Mi,MAX_SAFE_BUILD_LENGTH:ji,MAX_SAFE_INTEGER:Di,RELEASE_TYPES:Gi,SEMVER_SPEC_VERSION:Fi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},gt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=Ln,i=En;t=e.exports={};let o=t.re=[],a=t.safeRe=[],u=t.src=[],l=t.t={},g=0,m="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",s],[m,n]],L=h=>{for(let[c,b]of E)h=h.split(`${c}*`).join(`${c}{0,${b}}`).split(`${c}+`).join(`${c}{1,${b}}`);return h},v=(h,c,b)=>{let A=L(c),C=g++;i(h,C,c),l[h]=C,u[C]=c,o[C]=new RegExp(c,b?"g":void 0),a[C]=new RegExp(A,b?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),v("FULL",`^${u[l.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),v("LOOSE",`^${u[l.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),v("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",u[l.COERCE],!0),v("COERCERTLFULL",u[l.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(gt,gt.exports);var Bi=gt.exports,ki=Object.freeze({loose:!0}),Ui=Object.freeze({}),Wi=e=>e?typeof e!="object"?ki:e:Ui,zi=Wi,vr=/^[0-9]+$/,On=(e,t)=>{let r=vr.test(e),n=vr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Hi=(e,t)=>On(t,e),Yi={compareIdentifiers:On,rcompareIdentifiers:Hi},_e=En,{MAX_LENGTH:Er,MAX_SAFE_INTEGER:Te}=Ln,{safeRe:Cr,t:Lr}=Bi,Vi=zi,{compareIdentifiers:le}=Yi,Xi=class K{constructor(t,r){if(r=Vi(r),t instanceof K){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>Er)throw new TypeError(`version is longer than ${Er} characters`);_e("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Cr[Lr.LOOSE]:Cr[Lr.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>Te||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Te||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Te||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Te)return i}return s}):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(_e("SemVer.compare",this.version,this.options,t),!(t instanceof K)){if(typeof t=="string"&&t===this.version)return 0;t=new K(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof K||(t=new K(t,this.options)),le(this.major,t.major)||le(this.minor,t.minor)||le(this.patch,t.patch)}comparePre(t){if(t instanceof K||(t=new K(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],s=t.prerelease[r];if(_e("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return le(n,s)}while(++r)}compareBuild(t){t instanceof K||(t=new K(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(_e("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return le(n,s)}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 s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),le(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},Ki=Xi,Or=Ki,qi=(e,t,r=!1)=>{if(e instanceof Or)return e;try{return new Or(e,t)}catch(n){if(!r)return null;throw n}},wn=qi,Ji=wn,Zi=(e,t)=>{let r=Ji(e,t);return r?r.version:null},Qi=Zi,eo=wn,to=(e,t)=>{let r=eo(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},ro=to,An=["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","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Adobe-Utopia","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-HP","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-3-Clause-Sun","BSD-3-Clause-flex","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-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Systemics","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","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-3.0-IGO","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","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DL-DE-ZERO-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","FBM","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","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","HP-1989","HPND","HPND-DEC","HPND-Markus-Kuhn","HPND-Pbmplus","HPND-UC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-modify","HPND-sell-regexpr","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","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","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","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIT","MIT-0","MIT-CMU","MIT-Festival","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","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","McPhee-slideshow","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","NIST-Software","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","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.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","PADL","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","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Soundex","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","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","UCAR","UCL-1.0","UPL-1.0","URT-RLE","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","metamail","mpi-permissive","mpich2","mplus","pnmstitch","psfrag","psutils","python-ldap","snprintf","ssh-keyscan","swrule","ulem","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],no=["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-1.0+","GPL-2.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+","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.0+","LGPL-2.1","LGPL-2.1+","LGPL-3.0","LGPL-3.0+","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],so=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","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-2.0-note","GCC-exception-3.1","GNAT-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"],io=[].concat(An).concat(no),oo=so,ao=function(e){var t=0;function r(){return t<e.length}function n(v){if(v instanceof RegExp){var h=e.slice(t),c=h.match(v);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(v,t)===t)return t+=v.length,v}function s(){n(/[ ]*/)}function i(){for(var v,h=["WITH","AND","OR","(",")",":","+"],c=0;c<h.length&&(v=n(h[c]),!v);c++);if(v==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return v&&{type:"OPERATOR",string:v}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var v=o();if(!v)throw new Error("Expected idstring at offset "+t);return v}function u(){if(n("DocumentRef-")){var v=a();return{type:"DOCUMENTREF",string:v}}}function l(){if(n("LicenseRef-")){var v=a();return{type:"LICENSEREF",string:v}}}function g(){var v=t,h=o();if(io.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(oo.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};t=v}function m(){return i()||u()||l()||g()}for(var E=[];r()&&(s(),!!r());){var L=m();if(!L)throw new Error("Unexpected `"+e[t]+"` at offset "+t);E.push(L)}return E},uo=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function s(){if(!r())throw new Error;t++}function i(h){var c=n();if(c&&c.type==="OPERATOR"&&h===c.string)return s(),c.string}function o(){if(i("WITH")){var h=n();if(h&&h.type==="EXCEPTION")return s(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=t,c="",b=n();if(b.type==="DOCUMENTREF"&&(s(),c+="DocumentRef-"+b.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return s(),c+="LicenseRef-"+b.string,{license:c};t=h}function u(){var h=n();if(h&&h.type==="LICENSE"){s();var c={license:h.string};i("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function l(){var h=i("(");if(h){var c=L();if(!i(")"))throw new Error("Expected `)`");return c}}function g(){return l()||a()||u()}function m(h,c){return function b(){var A=c();if(A){if(!i(h))return A;var C=b();if(!C)throw new Error("Expected expression");return{left:A,conjunction:h.toLowerCase(),right:C}}}}var E=m("AND",g),L=m("OR",E),v=L();if(!v||r())throw new Error("Syntax error");return v},co=ao,lo=uo,Sn=function(e){return lo(co(e))},fo=Sn,ho=An;function Me(e){try{return fo(e),!0}catch{return!1}}function $n(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var wr=[["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($n),po=0,go=1,Ar=[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"}],mt=ho.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},{}),mo=Object.keys(mt).map(function(t){return[t,mt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});mt=void 0;var Sr=[["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(mo).sort($n),bo=0,yo=1,$r=function(e){for(var t=0;t<Ar.length;t++){var r=Ar[t](e).trim();if(r!==e&&Me(r))return r}return null},Rr=function(e){for(var t=e.toUpperCase(),r=0;r<Sr.length;r++){var n=Sr[r];if(t.indexOf(n[bo])>-1)return n[yo]}return null},Pr=function(e,t){for(var r=0;r<wr.length;r++){var n=wr[r],s=n[po];if(e.indexOf(s)>-1){var i=e.replace(s,n[go]),o=t(i);if(o!==null)return o}}return null},vo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Eo(a):a}var s=typeof e=="string"&&e.trim().length!==0;if(!s)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Me(e))return n(e);var i=e.replace(/\+$/,"").trim();if(Me(i))return n(i);var o=$r(e);return o!==null||(o=Pr(e,function(a){return Me(a)?a:$r(a)}),o!==null)||(o=Rr(e),o!==null)||(o=Pr(e,Rr),o!==null)?n(o):null};function Eo(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 Co=Sn,Lo=vo,xr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Oo=/^SEE LICEN[CS]E IN (.+)$/;function Nr(e,t){return t.slice(0,e.length)===e}function bt(e){if(e.hasOwnProperty("license")){var t=e.license;return Nr("LicenseRef",t)||Nr("DocumentRef",t)}else return bt(e.left)||bt(e.right)}var wo=function(e){var t;try{t=Co(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Oo.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[xr]};if(e.trim().length!==0){var s=Lo(e);s&&n.warnings.push('license is similar to the valid expression "'+s+'"')}return n}return bt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[xr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.LRUCache=void 0;var fe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Rn=new Set,yt=typeof process=="object"&&process?process:{},Pn=(e,t,r,n)=>{typeof yt.emitWarning=="function"?yt.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Be=globalThis.AbortController,Ir=globalThis.AbortSignal;if(typeof Be>"u"){Ir=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Be=class{constructor(){t()}signal=new Ir;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let e=yt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Pn("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 Ao=e=>!Rn.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),xn=e=>Q(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?pe:null:null,pe=class extends Array{constructor(t){super(t),this.fill(0)}},vt=class e{heap;length;static#n=!1;static create(t){let r=xn(t);if(!r)return[];e.#n=!0;let n=new e(t,r);return e.#n=!1,n}constructor(t,r){if(!e.#n)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]}},So=class Nn{#n;#c;#t;#m;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#i;#s;#e;#f;#p;#l;#a;#y;#u;#v;#E;#d;#C;#A;#h;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#d,sizes:t.#v,keyMap:t.#i,keyList:t.#s,valList:t.#e,next:t.#f,prev:t.#p,get head(){return t.#l},get tail(){return t.#a},free:t.#y,isBackgroundFetch:r=>t.#r(r),backgroundFetch:(r,n,s,i)=>t.#I(r,n,s,i),moveToTail:r=>t.#R(r),indexes:r=>t.#L(r),rindexes:r=>t.#O(r),isStale:r=>t.#g(r)}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#b}get size(){return this.#o}get fetchMethod(){return this.#P}get dispose(){return this.#t}get disposeAfter(){return this.#m}constructor(t){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:E,maxSize:L=0,maxEntrySize:v=0,sizeCalculation:h,fetchMethod:c,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:x,ignoreFetchAbort:N}=t;if(r!==0&&!Q(r))throw new TypeError("max option must be a nonnegative integer");let j=r?xn(r):Array;if(!j)throw new Error("invalid max value: "+r);if(this.#n=r,this.#c=L,this.maxEntrySize=v||this.#c,this.sizeCalculation=h,this.sizeCalculation){if(!this.#c&&!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.#P=c,this.#A=!!c,this.#i=new Map,this.#s=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#f=new j(r),this.#p=new j(r),this.#l=0,this.#a=0,this.#y=vt.create(r),this.#o=0,this.#b=0,typeof l=="function"&&(this.#t=l),typeof g=="function"?(this.#m=g,this.#u=[]):(this.#m=void 0,this.#u=void 0),this.#C=!!this.#t,this.#h=!!this.#m,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#c!==0&&!Q(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!Q(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Q(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Q(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let W="LRU_CACHE_UNBOUNDED";Ao(W)&&(Rn.add(W),Pn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,Nn))}}getRemainingTTL(t){return this.#i.has(t)?1/0:0}#_(){let t=new pe(this.#n),r=new pe(this.#n);this.#d=t,this.#E=r,this.#T=(i,o,a=fe.now())=>{if(r[i]=o!==0?a:0,t[i]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#g(i)&&this.delete(this.#s[i])},o+1);u.unref&&u.unref()}},this.#S=i=>{r[i]=t[i]!==0?fe.now():0},this.#w=(i,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;i.ttl=a,i.start=u,i.now=n||s();let l=i.now-u;i.remainingTTL=a-l}};let n=0,s=()=>{let i=fe.now();if(this.ttlResolution>0){n=i;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return i};this.getRemainingTTL=i=>{let o=this.#i.get(i);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let l=(n||s())-u;return a-l},this.#g=i=>{let o=r[i],a=t[i];return!!a&&!!o&&(n||s())-o>a}}#S=()=>{};#w=()=>{};#T=()=>{};#g=()=>!1;#j(){let t=new pe(this.#n);this.#b=0,this.#v=t,this.#$=r=>{this.#b-=t[r],t[r]=0},this.#F=(r,n,s,i)=>{if(this.#r(n))return 0;if(!Q(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!Q(s))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 s},this.#x=(r,n,s)=>{if(t[r]=n,this.#c){let i=this.#c-t[r];for(;this.#b>i;)this.#N(!0)}this.#b+=t[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#b)}}#$=t=>{};#x=(t,r,n)=>{};#F=(t,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#L({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#a;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#l));)r=this.#p[r]}*#O({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#a));)r=this.#f[r]}#D(t){return t!==void 0&&this.#i.get(this.#s[t])===t}*entries(){for(let t of this.#L())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*rentries(){for(let t of this.#O())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*keys(){for(let t of this.#L()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*values(){for(let t of this.#L())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}*rvalues(){for(let t of this.#O())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;if(i!==void 0&&t(i,this.#s[n],this))return this.get(this.#s[n],r)}}forEach(t,r=this){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}rforEach(t,r=this){for(let n of this.#O()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#g(r)&&(this.delete(this.#s[r]),t=!0);return t}info(t){let r=this.#i.get(t);if(r===void 0)return;let n=this.#e[r],s=this.#r(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#d&&this.#E){let o=this.#d[r],a=this.#E[r];if(o&&a){let u=o-(fe.now()-a);i.ttl=u,i.start=Date.now()}}return this.#v&&(i.size=this.#v[r]),i}dump(){let t=[];for(let r of this.#L({allowStale:!0})){let n=this.#s[r],s=this.#e[r],i=this.#r(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let o={value:i};if(this.#d&&this.#E){o.ttl=this.#d[r];let a=fe.now()-this.#E[r];o.start=Math.floor(Date.now()-a)}this.#v&&(o.size=this.#v[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let s=Date.now()-n.start;n.start=fe.now()-s}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,g=this.#F(t,r,n.size||0,a);if(this.maxEntrySize&&g>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let m=this.#o===0?void 0:this.#i.get(t);if(m===void 0)m=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#n?this.#N(!1):this.#o,this.#s[m]=t,this.#e[m]=r,this.#i.set(t,m),this.#f[this.#a]=m,this.#p[m]=this.#a,this.#a=m,this.#o++,this.#x(m,g,u),u&&(u.set="add"),l=!1;else{this.#R(m);let E=this.#e[m];if(r!==E){if(this.#A&&this.#r(E)){E.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:L}=E;L!==void 0&&!o&&(this.#C&&this.#t?.(L,t,"set"),this.#h&&this.#u?.push([L,t,"set"]))}else o||(this.#C&&this.#t?.(E,t,"set"),this.#h&&this.#u?.push([E,t,"set"]));if(this.#$(m),this.#x(m,g,u),this.#e[m]=r,u){u.set="replace";let L=E&&this.#r(E)?E.__staleWhileFetching:E;L!==void 0&&(u.oldValue=L)}}else u&&(u.set="update")}if(s!==0&&!this.#d&&this.#_(),this.#d&&(l||this.#T(m,s,i),u&&this.#w(u,m)),!o&&this.#h&&this.#u){let E=this.#u,L;for(;L=E?.shift();)this.#m?.(...L)}return this}pop(){try{for(;this.#o;){let t=this.#e[this.#l];if(this.#N(!0),this.#r(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}}#N(t){let r=this.#l,n=this.#s[r],s=this.#e[r];return this.#A&&this.#r(s)?s.__abortController.abort(new Error("evicted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,n,"evict"),this.#h&&this.#u?.push([s,n,"evict"])),this.#$(r),t&&(this.#s[r]=void 0,this.#e[r]=void 0,this.#y.push(r)),this.#o===1?(this.#l=this.#a=0,this.#y.length=0):this.#l=this.#f[r],this.#i.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#i.get(t);if(i!==void 0){let o=this.#e[i];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(i))s&&(s.has="stale",this.#w(s,i));else return n&&this.#S(i),s&&(s.has="hit",this.#w(s,i)),!0}else s&&(s.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,s=this.#i.get(t);if(s===void 0||!n&&this.#g(s))return;let i=this.#e[s];return this.#r(i)?i.__staleWhileFetching:i}#I(t,r,n,s){let i=r===void 0?void 0:this.#e[r];if(this.#r(i))return i;let o=new Be,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:s},l=(h,c=!1)=>{let{aborted:b}=o.signal,A=n.ignoreFetchAbort&&h!==void 0;if(n.status&&(b&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,A&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!A&&!c)return m(o.signal.reason);let C=L;return this.#e[r]===L&&(h===void 0?C.__staleWhileFetching?this.#e[r]=C.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,h,u.options))),h},g=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),m(h)),m=h=>{let{aborted:c}=o.signal,b=c&&n.allowStaleOnFetchAbort,A=b||n.allowStaleOnFetchRejection,C=A||n.noDeleteOnFetchRejection,x=L;if(this.#e[r]===L&&(!C||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#e[r]=x.__staleWhileFetching)),A)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw h},E=(h,c)=>{let b=this.#P?.(t,i,u);b&&b instanceof Promise&&b.then(A=>h(A===void 0?void 0:A),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(void 0),n.allowStaleOnFetchAbort&&(h=A=>l(A,!0)))})};n.status&&(n.status.fetchDispatched=!0);let L=new Promise(E).then(l,g),v=Object.assign(L,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(t,v,{...u.options,status:void 0}),r=this.#i.get(t)):this.#e[r]=v,v}#r(t){if(!this.#A)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Be}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:E=this.allowStaleOnFetchRejection,ignoreFetchAbort:L=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:h,forceRefresh:c=!1,status:b,signal:A}=r;if(!this.#A)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:b});let C={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:v,ignoreFetchAbort:L,status:b,signal:A},x=this.#i.get(t);if(x===void 0){b&&(b.fetch="miss");let N=this.#I(t,x,C,h);return N.__returned=N}else{let N=this.#e[x];if(this.#r(N)){let _=n&&N.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?N.__staleWhileFetching:N.__returned=N}let j=this.#g(x);if(!c&&!j)return b&&(b.fetch="hit"),this.#R(x),s&&this.#S(x),b&&this.#w(b,x),N;let W=this.#I(t,x,C,h),ne=W.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=j?"stale":"refresh",ne&&j&&(b.returnedStale=!0)),ne?W.__staleWhileFetching:W.__returned=W}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=this.#i.get(t);if(a!==void 0){let u=this.#e[a],l=this.#r(u);return o&&this.#w(o,a),this.#g(a)?(o&&(o.get="stale"),l?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(i||this.delete(t),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(this.#R(a),s&&this.#S(a),u))}else o&&(o.get="miss")}#M(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#a&&(t===this.#l?this.#l=this.#f[t]:this.#M(this.#p[t],this.#f[t]),this.#M(this.#a,t),this.#a=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#i.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#$(n);let s=this.#e[n];if(this.#r(s)?s.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,t,"delete"),this.#h&&this.#u?.push([s,t,"delete"])),this.#i.delete(t),this.#s[n]=void 0,this.#e[n]=void 0,n===this.#a)this.#a=this.#p[n];else if(n===this.#l)this.#l=this.#f[n];else{let i=this.#p[n];this.#f[i]=this.#f[n];let o=this.#f[n];this.#p[o]=this.#p[n]}this.#o--,this.#y.push(n)}}if(this.#h&&this.#u?.length){let n=this.#u,s;for(;s=n?.shift();)this.#m?.(...s)}return r}clear(){for(let t of this.#O({allowStale:!0})){let r=this.#e[t];if(this.#r(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#s[t];this.#C&&this.#t?.(r,n,"delete"),this.#h&&this.#u?.push([r,n,"delete"])}}if(this.#i.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#E&&(this.#d.fill(0),this.#E.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#a=0,this.#y.length=0,this.#b=0,this.#o=0,this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}};ze.LRUCache=So;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",In=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),$o={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${I("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${I("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:i})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n||"HEAD"),"/",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${I("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${I("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${I("/",n,"/",D(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${D(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${I("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${I("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:In},re={};re.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:s})=>`https://${I(e,"@")}raw.githubusercontent.com/${t}/${r}/${D(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${D(n||"HEAD")}`,extract:e=>{let[,t,r,n,s]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(s=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:s}}};re.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:s,path:i,editpath:o})=>`https://${e}/${t}/${r}${I("/",s,"/",D(n||"HEAD"),"/",i,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${D(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)}}};re.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:s})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${D(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 s=r.join("/");if(!(!s||!n))return{user:s,project:n,committish:e.hash.slice(1)}}};re.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${I("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${I("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${I("/",D(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${I("/",D(r))}${I("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${I("/",D(r))}${I("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${I("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${I("/",D(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${I("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${I("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${I("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${D(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-"+In(e)}};re.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${D(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${I("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${D(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>null,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(re))re[e]=Object.assign({},$o,t);var Ro=re,Po=hn,it=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},_r=e=>{try{return new Po.URL(e)}catch{}},xo=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let s=e.indexOf("@");return s>-1?s>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},No=e=>{let t=it(e,"@","#"),r=it(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),it(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},_n=(e,t)=>{let r=t?xo(e,t):e;return _r(r)||_r(No(r))},Io=_n,_o=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),s=e.indexOf(":"),i=/\s/.exec(e),o=e.indexOf("@"),a=!i||t>-1&&i.index>t,u=o===-1||t>-1&&o>t,l=s===-1||t>-1&&s>t,g=n===-1||t>-1&&n>t,m=r>0,E=t>-1?e[t-1]!=="/":!e.endsWith("/"),L=!e.startsWith(".");return a&&m&&E&&L&&u&&l&&g},To=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let s=_o(e)?`github:${e}`:e,i=Io(s,n);if(!i)return;let o=r.byShortcut[i.protocol],a=r.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],u=o||a;if(!u)return;let l=r[o||a],g=null;n[i.protocol]?.auth&&(i.username||i.password)&&(g=`${i.username}${i.password?":"+i.password:""}`);let m=null,E=null,L=null,v=null;try{if(o){let h=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,c=h.indexOf("@");c>-1&&(h=h.slice(c+1));let b=h.lastIndexOf("/");b>-1?(E=decodeURIComponent(h.slice(0,b)),E||(E=null),L=decodeURIComponent(h.slice(b+1))):L=decodeURIComponent(h),L.endsWith(".git")&&(L=L.slice(0,-4)),i.hash&&(m=decodeURIComponent(i.hash.slice(1))),v="shortcut"}else{if(!l.protocols.includes(i.protocol))return;let h=l.extract(i);if(!h)return;E=h.user&&decodeURIComponent(h.user),L=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),v=n[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[u,E,g,L,m,v,t]},{LRUCache:Fo}=ze,Do=Ro,Mo=To,jo=_n,ot=new Fo({max:1e3}),ke=class e{constructor(t,r,n,s,i,o,a={}){Object.assign(this,e.#n[t],{type:t,user:r,auth:n,project:s,committish:i,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#c={"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.#n[t]=r,e.#n.byDomain[r.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#c[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!ot.has(n)){let s=Mo(t,r,{gitHosts:e.#n,protocols:e.#c});ot.set(n,s?new e(...s):void 0)}return ot.get(n)}static parseUrl(t){return jo(t)}#t(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 s=t(n);return n.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(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(Do))ke.addHost(e,t);var Go=ke,Bo="Function.prototype.bind called on incompatible ",ko=Object.prototype.toString,Uo=Math.max,Wo="[object Function]",Tr=function(t,r){for(var n=[],s=0;s<t.length;s+=1)n[s]=t[s];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},zo=function(t,r){for(var n=[],s=r||0,i=0;s<t.length;s+=1,i+=1)n[i]=t[s];return n},Ho=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Yo=function(t){var r=this;if(typeof r!="function"||ko.apply(r)!==Wo)throw new TypeError(Bo+r);for(var n=zo(arguments,1),s,i=function(){if(this instanceof s){var g=r.apply(this,Tr(n,arguments));return Object(g)===g?g:this}return r.apply(t,Tr(n,arguments))},o=Uo(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(s=Function("binder","return function ("+Ho(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,s.prototype=new l,l.prototype=null}return s},Vo=Yo,Xo=Function.prototype.bind||Vo,Ko=Function.prototype.call,qo=Object.prototype.hasOwnProperty,Jo=Xo,Zo=Jo.call(Ko,qo),Qo=!0,ea=">= 8",ta=">= 0.5 && < 0.9.7",ra=!0,na=!0,sa=">= 0.5",ia=!0,oa=!0,aa=!0,ua=">= 1 && < 8",ca="< 8",la=!0,fa=[">= 14.17 && < 15",">= 15.1"],ha=!0,pa=">= 0.7.12",da=!0,ga="< 6",ma=!0,ba=">= 0.11.1",ya=">= 0.11.1",va=">= 0.11.1",Ea=">= 0.11.1",Ca=">= 0.11.1",La=">= 0.11.1",Oa=!0,wa=">= 8.8",Aa=!0,Sa=">= 8",$a="< 8",Ra=!0,Pa=!0,xa=!0,Na=!0,Ia=">= 8.5",_a=">= 1",Ta=">= 0.5",Fa=!0,Da=!0,Ma=!0,ja=">= 0.11.5 && < 3",Ga=">= 0.9.4",Ba=">= 0.9.4",ka=">= 1.4.1",Ua=">= 0.9.4",Wa=">= 0.9.4",za=">= 0.9.4",Ha=!0,Ya=!0,Va=[">= 0.4 && < 0.7",">= 0.8"],Xa=!0,Ka=">= 0.11.13",qa=">= 0.11.3 && < 10",Ja=">= 0.11.3",Za=!0,Qa=">= 10",eu=!0,tu=!0,ru=!0,nu=">= 1",su=!0,iu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],ou=">= 11.7",au=">= 0.5",uu={assert:Qo,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ea,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ta,buffer:ra,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:na,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:sa,"node:cluster":[">= 14.18 && < 15",">= 16"],console:ia,"node:console":[">= 14.18 && < 15",">= 16"],constants:oa,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:aa,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:ua,_debugger:ca,dgram:la,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:fa,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:ha,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:pa,"node:domain":[">= 14.18 && < 15",">= 16"],events:da,"node:events":[">= 14.18 && < 15",">= 16"],freelist:ga,fs:ma,"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:ya,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:va,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Ea,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Ca,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:La,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Oa,"node:http":[">= 14.18 && < 15",">= 16"],http2:wa,"node:http2":[">= 14.18 && < 15",">= 16"],https:Aa,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Sa,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:$a,module:Ra,"node:module":[">= 14.18 && < 15",">= 16"],net:Pa,"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:xa,"node:os":[">= 14.18 && < 15",">= 16"],path:Na,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Ia,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:_a,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Ta,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Fa,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Da,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:Ma,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:ja,_stream_duplex:Ga,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:Ba,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:ka,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:Ua,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:Wa,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:za,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:Ha,"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:Ya,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:Va,"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:Xa,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:Ka,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:qa,_tls_wrap:Ja,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:Za,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:Qa,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:eu,"node:tty":[">= 14.18 && < 15",">= 16"],url:tu,"node:url":[">= 14.18 && < 15",">= 16"],util:ru,"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:nu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:su,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:iu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:ou,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:au,"node:zlib":[">= 14.18 && < 15",">= 16"]},cu=Zo;function lu(e,t){for(var r=e.split("."),n=t.split(" "),s=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),u=parseInt(i[o]||0,10);if(a!==u)return s==="<"?a<u:s===">="?a>=u:!1}return s===">="}function Fr(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!lu(e,r[n]))return!1;return!0}function fu(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(Fr(r,t[n]))return!0;return!1}return Fr(r,t)}var Dr=uu,hu=function(t,r){return cu(Dr,t)&&fu(r,Dr[t])},pu=du;function du(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
9
+ `);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 gu={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"},mu={web:"url",name:"url"},bu={server:"start",tests:"test"},yu={topLevel:gu,bugs:mu,script:bu},vu=Qi,Eu=ro,Cu=wo,Fe=Go,Lu=hu,Ou=["dependencies","devDependencies","optionalDependencies"],wu=pu,at=hn,te=yu,Mr=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Au={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=Fe.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(te.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,te.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]):te.script[t]&&!e.scripts[te.script[t]]&&this.warn("typo",t,te.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){_u(e,this.warn),Nu(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 s=e[r][n];typeof s!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(s)),delete e[r][n]);var i=Fe.fromUrl(e[r][n]);i&&(e[r][n]=i.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(!vu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Eu(e.version,r),!0},fixPeople:function(e){jr(e,Pu),jr(e,xu)},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()),Ru(e.name,r,t.allowLegacyCase),Lu(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=wu(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=Fe.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Mr(e.bugs)?e.bugs={email:e.bugs}:at.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Tu(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"&&Mr(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=Fe.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(!Cu(t).validForNewPackages)return this.warn("invalidLicense")}};function Su(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 $u(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Ru(e,t,r){if(e.charAt(0)==="."||!(Su(e)||$u(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function jr(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 Pu(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",s=e.email||e.mail,i=s?" <"+s+">":"";return t+i+n}function xu(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),s={};return t&&t[0].trim()&&(s.name=t[0].trim()),n&&(s.email=n[1]),r&&(s.url=r[1]),s}function Nu(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(s){n[s]=r[s]}),e.dependencies=n}}function Iu(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(s){return typeof s=="string"}).forEach(function(s){s=s.trim().split(/(:?[@\s><=])/);var i=s.shift(),o=s.join("");o=o.trim(),o=o.replace(/^@/,""),n[i]=o}),n}function _u(e,t){Ou.forEach(function(r){e[r]&&(e[r]=Iu(e[r],r,t))})}function Tu(e,t){e&&Object.keys(e).forEach(function(r){te.bugs[r]&&(t("typo",r,te.bugs[r],"bugs"),e[te.bugs[r]]=e[r],delete e[r])})}var Fu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Du="No repository field.",Mu="Probably broken git url: %s",ju="scripts must be an object",Gu="script values must be string commands",Bu="Invalid 'files' member",ku="Invalid filename in 'files' list: %s",Uu="Invalid 'bundleDependencies' list. Must be array of package names",Wu="Invalid bundleDependencies member: %s",zu="Non-dependency in bundleDependencies: %s",Hu="%s field must be an object",Yu="Invalid dependency: %s %s",Vu="specifying %s as array is deprecated",Xu="modules field is deprecated",Ku="keywords should be an array of strings",qu="keywords should be an array of strings",Ju="%s is also the name of a node core module.",Zu="'description' field should be a string",Qu="No description",ec="No README data",tc="No license field.",rc="Bug string field must be url, email, or {email,url}",nc="bugs.url field must be a string url. Deleted.",sc="bugs.email field must be a string email. Deleted.",ic="Normalized value of bugs field is an empty object. Deleted.",oc="homepage field must be a string url. Deleted.",ac="license should be a valid SPDX license expression",uc="%s should probably be %s.",cc={repositories:Fu,missingRepository:Du,brokenGitUrl:Mu,nonObjectScripts:ju,nonStringScript:Gu,nonArrayFiles:Bu,invalidFilename:ku,nonArrayBundleDependencies:Uu,nonStringBundleDependency:Wu,nonDependencyBundleDependency:zu,nonObjectDependencies:Hu,nonStringDependency:Yu,deprecatedArrayDependencies:Vu,deprecatedModules:Xu,nonArrayKeywords:Ku,nonStringKeyword:qu,conflictingName:Ju,nonStringDescription:Zu,missingDescription:Qu,missingReadme:ec,missingLicense:tc,nonEmailUrlBugsString:rc,nonUrlBugsUrlField:nc,nonEmailBugsEmailField:sc,emptyNormalizedBugs:ic,nonUrlHomepage:oc,invalidLicense:ac,typo:uc},Tn=fi,Et=cc,lc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return fc.apply(null,e);var r=Et[t]?Et[t]:t+": '%s'";return e.unshift(r),Tn.format.apply(null,e)};function fc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Tn.format(Et.typo,e,t)}var hc=Fn,Ct=Au;Fn.fixer=Ct;var pc=lc,dc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],gc=["dependencies","people","typos"],Lt=dc.map(function(e){return Dn(e)+"Field"});Lt=Lt.concat(gc);function Fn(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),Ct.warn=function(){t(pc.apply(null,arguments))},Lt.forEach(function(n){Ct["fix"+Dn(n)](e,r)}),e._id=e.name+"@"+e.version}function Dn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nt=We(hc),Gr=e=>e instanceof URL?cn(e):e;function mc(e,{cwd:t=mi.cwd(),type:r="file",stopAt:n}={}){let s=ee.resolve(Gr(t)??""),{root:i}=ee.parse(s);for(n=ee.resolve(s,Gr(n)??i);s&&s!==n&&s!==i;){let o=ee.isAbsolute(e)?e:ee.join(s,e);try{let a=ln.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}s=ee.dirname(s)}}var It={},Ae={},He={};Object.defineProperty(He,"__esModule",{value:!0});He.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;He.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 Mn={},Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.isIdentifierChar=kn;Se.isIdentifierName=Ec;Se.isIdentifierStart=Bn;var _t="\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",jn="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",bc=new RegExp("["+_t+"]"),yc=new RegExp("["+_t+jn+"]");_t=jn=null;var Gn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],vc=[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 Ot(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Bn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&bc.test(String.fromCharCode(e)):Ot(e,Gn)}function kn(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&&yc.test(String.fromCharCode(e)):Ot(e,Gn)||Ot(e,vc)}function Ec(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 s=e.charCodeAt(++r);(s&64512)===56320&&(n=65536+((n&1023)<<10)+(s&1023))}if(t){if(t=!1,!Bn(n))return!1}else if(!kn(n))return!1}return!t}var ie={};Object.defineProperty(ie,"__esModule",{value:!0});ie.isKeyword=Ac;ie.isReservedWord=Un;ie.isStrictBindOnlyReservedWord=zn;ie.isStrictBindReservedWord=wc;ie.isStrictReservedWord=Wn;var Tt={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"]},Cc=new Set(Tt.keyword),Lc=new Set(Tt.strict),Oc=new Set(Tt.strictBind);function Un(e,t){return t&&e==="await"||e==="enum"}function Wn(e,t){return Un(e,t)||Lc.has(e)}function zn(e){return Oc.has(e)}function wc(e,t){return Wn(e,t)||zn(e)}function Ac(e){return Cc.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=Se,r=ie})(Mn);var Hn={exports:{}},Sc=/[|\\{}()[\]^$+*?.]/g,$c=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Sc,"\\$&")},Ft={exports:{}},Yn={exports:{}},Rc={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]},se=Rc,Vn={};for(De in se)se.hasOwnProperty(De)&&(Vn[se[De]]=De);var De,$=Yn.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(U in $)if($.hasOwnProperty(U)){if(!("channels"in $[U]))throw new Error("missing channels property: "+U);if(!("labels"in $[U]))throw new Error("missing channel labels property: "+U);if($[U].labels.length!==$[U].channels)throw new Error("channel and label counts mismatch: "+U);Br=$[U].channels,kr=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:Br}),Object.defineProperty($[U],"labels",{value:kr})}var Br,kr,U;$.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.min(t,r,n),i=Math.max(t,r,n),o=i-s,a,u,l;return i===s?a=0:t===i?a=(r-n)/o:r===i?a=2+(n-t)/o:n===i&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),l=(s+i)/2,i===s?u=0:l<=.5?u=o/(i+s):u=o/(2-i-s),[a,u*100,l*100]};$.rgb.hsv=function(e){var t,r,n,s,i,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),g=l-Math.min(o,a,u),m=function(E){return(l-E)/6/g+1/2};return g===0?s=i=0:(i=g/l,t=m(o),r=m(a),n=m(u),o===l?s=n-r:a===l?s=1/3+t-n:u===l&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,i*100,l*100]};$.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],s=$.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[s,i*100,n*100]};$.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s,i,o,a;return a=Math.min(1-t,1-r,1-n),s=(1-t-a)/(1-a)||0,i=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,i*100,o*100,a*100]};function Pc(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}$.rgb.keyword=function(e){var t=Vn[e];if(t)return t;var r=1/0,n;for(var s in se)if(se.hasOwnProperty(s)){var i=se[s],o=Pc(e,i);o<r&&(r=o,n=s)}return n};$.keyword.rgb=function(e){return se[e]};$.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 s=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};$.rgb.lab=function(e){var t=$.rgb.xyz(e),r=t[0],n=t[1],s=t[2],i,o,a;return r/=95.047,n/=100,s/=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,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=116*n-16,o=500*(r-n),a=200*(n-s),[i,o,a]};$.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s,i,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,s=2*n-i,a=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=s+(i-s)*6*o:2*o<1?u=i:3*o<2?u=s+(i-s)*(2/3-o)*6:u=s,a[l]=u*255;return a};$.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=r,i=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,s*=i<=1?i:2-i,a=(n+r)/2,o=n===0?2*s/(i+s):2*r/(n+r),[t,o*100,a*100]};$.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,s){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=Math.max(n,.01),i,o,a;return a=(2-r)*n,i=(2-r)*s,o=r*s,o/=i<=1?i:2-i,o=o||0,a/=2,[t,o*100,a*100]};$.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s=r+n,i,o,a,u;s>1&&(r/=s,n/=s),i=Math.floor(6*t),o=1-n,a=6*t-i,i&1&&(a=1-a),u=r+a*(o-r);var l,g,m;switch(i){default:case 6:case 0:l=o,g=u,m=r;break;case 1:l=u,g=o,m=r;break;case 2:l=r,g=o,m=u;break;case 3:l=r,g=u,m=o;break;case 4:l=u,g=r,m=o;break;case 5:l=o,g=r,m=u;break}return[l*255,g*255,m*255]};$.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100,i,o,a;return i=1-Math.min(1,t*(1-s)+s),o=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[i*255,o*255,a*255]};$.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s,i,o;return s=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[s*255,i*255,o*255]};$.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,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,s=116*r-16,i=500*(t-r),o=200*(r-n),[s,i,o]};$.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;i=(t+16)/116,s=r/500+i,o=i-n/200;var a=Math.pow(i,3),u=Math.pow(s,3),l=Math.pow(o,3);return i=a>.008856?a:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s*=95.047,i*=100,o*=108.883,[s,i,o]};$.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return s=Math.atan2(n,r),i=s*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[t,o,i]};$.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return o=n/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o),[t,s,i]};$.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:$.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(i+=60),i};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.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 s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};$.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,s=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,s,i]};$.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,s=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[n,s,i]};$.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};$.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),s=n>>16&255,i=n>>8&255,o=n&255;return[s,i,o]};$.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=s-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:s===t?u=(r-n)/o%6:s===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,s=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(s=(r-.5*n)/(1-n)),[e[0],n*100,s*100]};$.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],n*100,s*100]};$.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 s=[0,0,0],i=t%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return u=(1-r)*n,[(r*s[0]+u)*255,(r*s[1]+u)*255,(r*s[2]+u)*255]};$.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),s=0;return n>0&&(s=t/n),[e[0],s*100,n*100]};$.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,s=0;return n>0&&n<.5?s=t/(2*n):n>=.5&&n<1&&(s=t/(2*(1-n))),[e[0],s*100,n*100]};$.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]};$.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,s=n-t,i=0;return s<1&&(i=(n-s)/(1-s)),[e[0],s*100,i*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=$.gray.hsv=function(e){return[0,0,e[0]]};$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.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};$.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Xn=Yn.exports,Ue=Xn;function xc(){for(var e={},t=Object.keys(Ue),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Nc(e){var t=xc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(Ue[n]),i=s.length,o=0;o<i;o++){var a=s[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function Ic(e,t){return function(r){return t(e(r))}}function _c(e,t){for(var r=[t[e].parent,e],n=Ue[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=Ic(Ue[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}var Tc=function(e){for(var t=Nc(e),r={},n=Object.keys(t),s=n.length,i=0;i<s;i++){var o=n[i],a=t[o];a.parent!==null&&(r[o]=_c(o,t))}return r},wt=Xn,Fc=Tc,he={},Dc=Object.keys(wt);function Mc(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 jc(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 s=n.length,i=0;i<s;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Dc.forEach(function(e){he[e]={},Object.defineProperty(he[e],"channels",{value:wt[e].channels}),Object.defineProperty(he[e],"labels",{value:wt[e].labels});var t=Fc(e),r=Object.keys(t);r.forEach(function(n){var s=t[n];he[e][n]=jc(s),he[e][n].raw=Mc(s)})});var Kn=he;Ft.exports;(function(e){let t=Kn,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){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 g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(Ft);var Gc=Ft.exports,Bc=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},kc=fn,V=Bc,G=process.env,de;V("no-color")||V("no-colors")||V("color=false")?de=!1:(V("color")||V("colors")||V("color=true")||V("color=always"))&&(de=!0);"FORCE_COLOR"in G&&(de=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function Uc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Wc(e){if(de===!1)return 0;if(V("color=16m")||V("color=full")||V("color=truecolor"))return 3;if(V("color=256"))return 2;if(e&&!e.isTTY&&de!==!0)return 0;let t=de?1:0;if(process.platform==="win32"){let r=kc.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 ut(e){let t=Wc(e);return Uc(t)}var zc={supportsColor:ut,stdout:ut(process.stdout),stderr:ut(process.stderr)},Hc=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ur=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Yc=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Vc=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Xc=new Map([["n",`
10
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function qn(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Xc.get(e)||e}function Kc(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(Yc))r.push(s[2].replace(Vc,(o,a,u)=>a?qn(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function qc(e){Ur.lastIndex=0;let t=[],r;for(;(r=Ur.exec(e))!==null;){let n=r[1];if(r[2]){let s=Kc(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Wr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var Jc=(e,t)=>{let r=[],n=[],s=[];if(t.replace(Hc,(i,o,a,u,l,g)=>{if(o)s.push(qn(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Wr(e,r)(m)),r.push({inverse:a,styles:qc(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=$c,r=Gc,n=zc.stdout,s=Jc,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(Hn);var Zc=Hn.exports;Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=il;Ae.shouldHighlight=Qn;var zr=He,Hr=Mn,At=Qc(Zc,!0);function Jn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Jn=function(n){return n?r:t})(e)}function Qc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Jn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var el=new Set(["as","async","from","get","of","set"]);function tl(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 rl=/\r\n|[\n\r\u2028\u2029]/,nl=/^[()[\]{}]$/,Zn;{let e=/^[a-z][\w-]*$/i,t=function(r,n,s){if(r.type==="name"){if((0,Hr.isKeyword)(r.value)||(0,Hr.isStrictReservedWord)(r.value,!0)||el.has(r.value))return"keyword";if(e.test(r.value)&&(s[n-1]==="<"||s.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&nl.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Zn=function*(r){let n;for(;n=zr.default.exec(r);){let s=zr.matchToToken(n);yield{type:t(s,n.index,r),value:s.value}}}}function sl(e,t){let r="";for(let{type:n,value:s}of Zn(t)){let i=e[n];i?r+=s.split(rl).map(o=>i(o)).join(`
11
+ `):r+=s}return r}function Qn(e){return At.default.level>0||e.forceColor}var ct;function es(e){if(e){var t;return(t=ct)!=null||(ct=new At.default.constructor({enabled:!0,level:1})),ct}return At.default}Ae.getChalk=e=>es(e.forceColor);function il(e,t={}){if(e!==""&&Qn(t)){let r=tl(es(t.forceColor));return sl(r,e)}else return e}var ts={exports:{}},ol=/[|\\{}()[\]^$+*?.]/g,al=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(ol,"\\$&")},Dt={exports:{}};Dt.exports;(function(e){let t=Kn,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){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 g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(Dt);var ul=Dt.exports,cl=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},ll=fn,X=cl,B=process.env,ge;X("no-color")||X("no-colors")||X("color=false")?ge=!1:(X("color")||X("colors")||X("color=true")||X("color=always"))&&(ge=!0);"FORCE_COLOR"in B&&(ge=B.FORCE_COLOR.length===0||parseInt(B.FORCE_COLOR,10)!==0);function fl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function hl(e){if(ge===!1)return 0;if(X("color=16m")||X("color=full")||X("color=truecolor"))return 3;if(X("color=256"))return 2;if(e&&!e.isTTY&&ge!==!0)return 0;let t=ge?1:0;if(process.platform==="win32"){let r=ll.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 B)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in B)||B.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in B)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B.TEAMCITY_VERSION)?1:0;if(B.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in B){let r=parseInt((B.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(B.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B.TERM)||"COLORTERM"in B?1:(B.TERM==="dumb",t)}function lt(e){let t=hl(e);return fl(t)}var pl={supportsColor:lt,stdout:lt(process.stdout),stderr:lt(process.stderr)},dl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,gl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ml=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bl=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function rs(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):bl.get(e)||e}function yl(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(gl))r.push(s[2].replace(ml,(o,a,u)=>a?rs(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function vl(e){Yr.lastIndex=0;let t=[],r;for(;(r=Yr.exec(e))!==null;){let n=r[1];if(r[2]){let s=yl(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Vr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var El=(e,t)=>{let r=[],n=[],s=[];if(t.replace(dl,(i,o,a,u,l,g)=>{if(o)s.push(rs(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Vr(e,r)(m)),r.push({inverse:a,styles:vl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Vr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=al,r=ul,n=pl.stdout,s=El,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(ts);var Cl=ts.exports;Object.defineProperty(It,"__esModule",{value:!0});var Ll=It.codeFrameColumns=ss;It.default=$l;var Xr=Ae,Kr=Ol(Cl,!0);function ns(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ns=function(n){return n?r:t})(e)}function Ol(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ns(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var ft;function wl(e){if(e){var t;return(t=ft)!=null||(ft=new Kr.default.constructor({enabled:!0,level:1})),ft}return Kr.default}var qr=!1;function Al(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Jr=/\r\n|[\n\r\u2028\u2029]/;function Sl(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},a=n.line,u=n.column,l=s.line,g=s.column,m=Math.max(a-(i+1),0),E=Math.min(t.length,l+o);a===-1&&(m=0),l===-1&&(E=t.length);let L=l-a,v={};if(L)for(let h=0;h<=L;h++){let c=h+a;if(!u)v[c]=!0;else if(h===0){let b=t[c-1].length;v[c]=[u,b-u+1]}else if(h===L)v[c]=[0,g];else{let b=t[c-h].length;v[c]=[0,b]}}else u===g?u?v[a]=[u,0]:v[a]=!0:v[a]=[u,g-u];return{start:m,end:E,markerLines:v}}function ss(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Xr.shouldHighlight)(r),s=wl(r.forceColor),i=Al(s),o=(h,c)=>n?h(c):c,a=e.split(Jr),{start:u,end:l,markerLines:g}=Sl(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Xr.default)(e,r):e).split(Jr,l).slice(u,l).map((h,c)=>{let b=u+1+c,C=` ${` ${b}`.slice(-E)} |`,x=g[b],N=!g[b+1];if(x){let j="";if(Array.isArray(x)){let W=h.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Z=x[1]||1;j=[`
15
13
  `,o(i.gutter,C.replace(/\d/g," "))," ",W,o(i.marker,"^").repeat(Z)].join(""),N&&r.message&&(j+=" "+o(i.message,r.message))}return[o(i.marker,">"),o(i.gutter,C),h.length>0?` ${h}`:"",j].join("")}else return` ${o(i.gutter,C)}${h.length>0?` ${h}`:""}`}).join(`
16
14
  `);return r.message&&!m&&(v=`${" ".repeat(E+1)}${r.message}
17
- ${v}`),n?s.reset(v):v}function Wl(e,t,r,n={}){if(!tn){tn=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let o=new Error(i);o.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),cs(e,{start:{column:r,line:t}},n)}var nn=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function zl(e,t){let r=nn(e,`
18
- `,t-1),n=t-r-1,s=0;for(let i=r;i>=0;i=nn(e,`
19
- `,i-1))s++;return{line:s,column:n}}function sn(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=zl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var Hl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,Pt=class e extends Error{name="JSONError";fileName;codeFrame;rawCodeFrame;#n;constructor(t){super(),this.#n=t,Error.captureStackTrace?.(this,e)}get message(){let{fileName:t,codeFrame:r}=this;return`${this.#n}${t?` in ${t}`:""}${r?`
15
+ ${v}`),n?s.reset(v):v}function $l(e,t,r,n={}){if(!qr){qr=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let o=new Error(i);o.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),ss(e,{start:{column:r,line:t}},n)}var Zr=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function Rl(e,t){let r=Zr(e,`
16
+ `,t-1),n=t-r-1,s=0;for(let i=r;i>=0;i=Zr(e,`
17
+ `,i-1))s++;return{line:s,column:n}}function Qr(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=Rl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var Pl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,St=class e extends Error{name="JSONError";fileName;codeFrame;rawCodeFrame;#n;constructor(t){super(),this.#n=t,Error.captureStackTrace?.(this,e)}get message(){let{fileName:t,codeFrame:r}=this;return`${this.#n}${t?` in ${t}`:""}${r?`
20
18
 
21
19
  ${r}
22
- `:""}`}set message(t){this.#n=t}},on=(e,t,r=!0)=>jl(e,{start:t},{highlightCode:r}),Yl=(e,t)=>{let r=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:s,column:i}=r.groups;if(s&&i)return{line:Number(s),column:Number(i)};if(n=Number(n),n===e.length){let{line:o,column:a}=sn(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return sn(e,n,{oneBased:!0})},Vl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${Hl(n)})`);function Xl(e,t,r){typeof t=="string"&&(r=t,t=void 0);let n;try{return JSON.parse(e,t)}catch(o){n=o.message}let s;e?(s=Yl(e,n),n=Vl(n)):n+=" while parsing empty string";let i=new Pt(n);throw i.fileName=r,s&&(i.codeFrame=on(e,s),i.rawCodeFrame=on(e,s,!1)),i}function Kl(e){return e instanceof URL?dn(e):e}var ql=e=>ee.resolve(Kl(e)??".","package.json"),Jl=(e,t)=>{let r=typeof e=="string"?Xl(e):e;return t&&Tt(r),r};function Zl({cwd:e,normalize:t=!0}={}){let r=gn.readFileSync(ql(e),"utf8");return Jl(r,t)}function ls(e){let t=Ic("package.json",e);if(t)return{packageJson:Zl({...e,cwd:ee.dirname(t)}),path:t}}var Ql=(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,s)=>n+t+s.toLowerCase()));function Bt(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`,s=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?Ql(s,t):s.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var kt={exports:{}},ef=Object.prototype.toString,tf=function(e){var t;return ef.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},rf=function(e){return e==null?[]:Array.isArray(e)?e:[e]},nf=Object.prototype.toString,sf=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 lf(t)?"generatorfunction":"function";if(of(t))return"array";if(pf(t))return"buffer";if(hf(t))return"arguments";if(uf(t))return"date";if(af(t))return"error";if(cf(t))return"regexp";switch(fs(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(ff(t))return"generator";switch(r=nf.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 fs(e){return typeof e.constructor=="function"?e.constructor.name:null}function of(e){return Array.isArray?Array.isArray(e):e instanceof Array}function af(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function uf(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function cf(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function lf(e,t){return fs(e)==="GeneratorFunction"}function ff(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function hf(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 pf(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var df=tf,gf=rf,xt=sf,an=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},un=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},je=e=>Array.isArray(e)?`[${e.map(je).join(", ")}]`:xt(e)==="string"?JSON.stringify(e):e,mf=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${xt(t)}-array`}return xt(e)},bf=(e,t)=>{let r=e==="array"?"string-array":e;return Ut.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},yf=["stopEarly","unknown","--"],hs=["string","boolean","number"],Ut=hs.map(e=>`${e}-array`),cn=[...hs,"array",...Ut],ps=e=>{e=e||{};let t={};return yf.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}),df(n)){let s=n,{type:i}=s;if(i){if(!cn.includes(i))throw new TypeError(`Expected type of "${r}" to be one of ${je(cn)}, got ${je(i)}`);if(Ut.includes(i)){let[o]=i.split("-");an(t,"array",{key:r,[o]:!0})}else an(t,i,r)}if({}.hasOwnProperty.call(s,"default")){let{default:o}=s,a=mf(o),u=bf(i,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${je(a)}`);un(t,"default",r,o)}gf(s.alias).forEach(o=>{un(t,"alias",o,r)})}}),t};kt.exports=ps;kt.exports.default=ps;var vf=kt.exports,ds=We(vf),Wt={exports:{}},gs=e=>typeof e=="object"&&e!==null,ms=Symbol("skip"),ln=e=>gs(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Nt=(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:s}=r;delete r.target;let i=o=>o.map(a=>ln(a)?Nt(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===ms)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&ln(g)&&(g=Array.isArray(g)?i(g):Nt(g,t,r,n)),s[l]=g)}return s};Wt.exports=(e,t,r)=>{if(!gs(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Nt(e,t,r)};Wt.exports.mapObjectSkip=ms;var Ef=Wt.exports,fn=We(Ef),Cf=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),gt=new Ge({maxSize:1e5}),hn=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),pn=(e,t={})=>{if(!hn(e))return e;let{separator:r="_",exclude:n,deep:s=!1}=t,i=o=>(a,u)=>{if(s&&hn(u)&&(u=fn(u,i())),!(n&&Cf(n,a))){let l=`${r}${a}`;if(gt.has(l))a=gt.get(l);else{let g=Bt(a,{separator:r});a.length<100&&gt.set(l,g),a=g}}return[a,u]};return fn(e,i())};function bs(e,t){return Array.isArray(e)?Object.keys(e).map(r=>pn(e[r],t)):pn(e,t)}import Lf from"node:process";import{dirname as Of}from"node:path";import{fileURLToPath as wf}from"node:url";var oe=e=>`--${Bt(e,{separator:"-"})}`,Re=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var Af=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Re(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: ${Re(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Re(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(s=>typeof s!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(i=>`(\`${oe(i)}\`, type: '${e.flags[i].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(s=>n.choices.includes(s)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Re(n)}`}}},r=[];for(let[n,s]of Object.entries(t)){let i=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(s)){let u=i.filter(g=>o(g)),l=u.map(([g])=>g);u.length>0&&r.push(a(l))}}if(r.length>0)throw new Error(r.join(`
23
- `))},ys=(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=ls({cwd:Of(wf(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Lf.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return Af(n),n};var Sf=({flags:e,booleanDefault:t})=>{let r={};for(let[n,s]of Object.entries(e)){let i={...s};i.shortFlag&&(i.alias=i.shortFlag,delete i.shortFlag),t!==void 0&&i.type==="boolean"&&!Object.hasOwn(i,"default")&&(i.default=i.isMultiple?[t]:t),i.isMultiple&&(i.type=i.type?`${i.type}-array`:"array",i.default=i.default??[],delete i.isMultiple),Array.isArray(i.aliases)&&(i.alias&&i.aliases.push(i.alias),i.alias=i.aliases,delete i.aliases),r[n]=i}return r},vs=e=>{let t=Sf(e);return t.arguments=e.input,t=bs(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=ds(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import Es from"node:process";var $f=(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.`)},Rf=(e,t,r)=>{let{choices:n,isRequired:s}=t;if(!n)return;let i=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return s?`Flag \`${oe(e)}\` has no value. ${i}`: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 \`${oe(e)}\`: \`${o.join("`, `")}\`. ${i}`}else if(!n.includes(r))return`Unknown value for flag \`${oe(e)}\`: \`${r}\`. ${i}`},Pf=(e,t)=>{let r=[];for(let[n,s]of Object.entries(e)){let i=t[n],o=Rf(n,s,i);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
24
- `)}`)},Cs=(e,t)=>{$f(e,t),Pf(t.flags,e)},xf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
25
- `))},Ls=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(xf(t),Es.exit(2))},Nf=(e,t,r,n)=>{let s=t[e],i=!0;if(typeof s.isRequired=="function"&&(i=s.isRequired(r,n),typeof i!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof i} was returned.`);return(r[e]===void 0||s.isMultiple&&r[e].length===0)&&i},If=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},Os=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let s of Object.keys(e))e[s].isRequired&&Nf(s,e,t,r)&&n.push({key:s,...e[s]});n.length>0&&(If(n),Es.exit(2))};var _f=(e,t)=>{let{pkg:r}=e,n=be(e.argv,t),s="";e.help&&(s=wn((e.help||"").replace(/\t+\n*$/,"")),s.includes(`
26
- `)&&(s=_t(s,e.helpIndent)),s=`
27
- ${s}`),Tt(r);let{description:i}=e;!i&&i!==!1&&({description:i}=r),i&&=s?_t(`
20
+ `:""}`}set message(t){this.#n=t}},en=(e,t,r=!0)=>Ll(e,{start:t},{highlightCode:r}),xl=(e,t)=>{let r=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:s,column:i}=r.groups;if(s&&i)return{line:Number(s),column:Number(i)};if(n=Number(n),n===e.length){let{line:o,column:a}=Qr(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return Qr(e,n,{oneBased:!0})},Nl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${Pl(n)})`);function Il(e,t,r){typeof t=="string"&&(r=t,t=void 0);let n;try{return JSON.parse(e,t)}catch(o){n=o.message}let s;e?(s=xl(e,n),n=Nl(n)):n+=" while parsing empty string";let i=new St(n);throw i.fileName=r,s&&(i.codeFrame=en(e,s),i.rawCodeFrame=en(e,s,!1)),i}function _l(e){return e instanceof URL?cn(e):e}var Tl=e=>ee.resolve(_l(e)??".","package.json"),Fl=(e,t)=>{let r=typeof e=="string"?Il(e):e;return t&&Nt(r),r};function Dl({cwd:e,normalize:t=!0}={}){let r=ln.readFileSync(Tl(e),"utf8");return Fl(r,t)}function is(e){let t=mc("package.json",e);if(t)return{packageJson:Dl({...e,cwd:ee.dirname(t)}),path:t}}var Ml=(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,s)=>n+t+s.toLowerCase()));function Mt(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`,s=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?Ml(s,t):s.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var jt={exports:{}},jl=Object.prototype.toString,Gl=function(e){var t;return jl.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},Bl=function(e){return e==null?[]:Array.isArray(e)?e:[e]},kl=Object.prototype.toString,Ul=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 Vl(t)?"generatorfunction":"function";if(Wl(t))return"array";if(ql(t))return"buffer";if(Kl(t))return"arguments";if(Hl(t))return"date";if(zl(t))return"error";if(Yl(t))return"regexp";switch(os(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(Xl(t))return"generator";switch(r=kl.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 os(e){return typeof e.constructor=="function"?e.constructor.name:null}function Wl(e){return Array.isArray?Array.isArray(e):e instanceof Array}function zl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Hl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yl(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function Vl(e,t){return os(e)==="GeneratorFunction"}function Xl(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Kl(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 ql(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var Jl=Gl,Zl=Bl,$t=Ul,tn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},rn=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},je=e=>Array.isArray(e)?`[${e.map(je).join(", ")}]`:$t(e)==="string"?JSON.stringify(e):e,Ql=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${$t(t)}-array`}return $t(e)},ef=(e,t)=>{let r=e==="array"?"string-array":e;return Gt.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},tf=["stopEarly","unknown","--"],as=["string","boolean","number"],Gt=as.map(e=>`${e}-array`),nn=[...as,"array",...Gt],us=e=>{e=e||{};let t={};return tf.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}),Jl(n)){let s=n,{type:i}=s;if(i){if(!nn.includes(i))throw new TypeError(`Expected type of "${r}" to be one of ${je(nn)}, got ${je(i)}`);if(Gt.includes(i)){let[o]=i.split("-");tn(t,"array",{key:r,[o]:!0})}else tn(t,i,r)}if({}.hasOwnProperty.call(s,"default")){let{default:o}=s,a=Ql(o),u=ef(i,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${je(a)}`);rn(t,"default",r,o)}Zl(s.alias).forEach(o=>{rn(t,"alias",o,r)})}}),t};jt.exports=us;jt.exports.default=us;var rf=jt.exports,cs=We(rf),Bt={exports:{}},ls=e=>typeof e=="object"&&e!==null,fs=Symbol("skip"),sn=e=>ls(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Rt=(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:s}=r;delete r.target;let i=o=>o.map(a=>sn(a)?Rt(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===fs)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&sn(g)&&(g=Array.isArray(g)?i(g):Rt(g,t,r,n)),s[l]=g)}return s};Bt.exports=(e,t,r)=>{if(!ls(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Rt(e,t,r)};Bt.exports.mapObjectSkip=fs;var nf=Bt.exports,on=We(nf),sf=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),ht=new Ge({maxSize:1e5}),an=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),un=(e,t={})=>{if(!an(e))return e;let{separator:r="_",exclude:n,deep:s=!1}=t,i=o=>(a,u)=>{if(s&&an(u)&&(u=on(u,i())),!(n&&sf(n,a))){let l=`${r}${a}`;if(ht.has(l))a=ht.get(l);else{let g=Mt(a,{separator:r});a.length<100&&ht.set(l,g),a=g}}return[a,u]};return on(e,i())};function hs(e,t){return Array.isArray(e)?Object.keys(e).map(r=>un(e[r],t)):un(e,t)}import of from"node:process";import{dirname as af}from"node:path";import{fileURLToPath as uf}from"node:url";var oe=e=>`--${Mt(e,{separator:"-"})}`,$e=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var cf=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${$e(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: ${$e(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${$e(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(s=>typeof s!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(i=>`(\`${oe(i)}\`, type: '${e.flags[i].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(s=>n.choices.includes(s)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${$e(n)}`}}},r=[];for(let[n,s]of Object.entries(t)){let i=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(s)){let u=i.filter(g=>o(g)),l=u.map(([g])=>g);u.length>0&&r.push(a(l))}}if(r.length>0)throw new Error(r.join(`
21
+ `))},ps=(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=is({cwd:af(uf(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:of.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return cf(n),n};var lf=({flags:e,booleanDefault:t})=>{let r={};for(let[n,s]of Object.entries(e)){let i={...s};i.shortFlag&&(i.alias=i.shortFlag,delete i.shortFlag),t!==void 0&&i.type==="boolean"&&!Object.hasOwn(i,"default")&&(i.default=i.isMultiple?[t]:t),i.isMultiple&&(i.type=i.type?`${i.type}-array`:"array",i.default=i.default??[],delete i.isMultiple),Array.isArray(i.aliases)&&(i.alias&&i.aliases.push(i.alias),i.alias=i.aliases,delete i.aliases),r[n]=i}return r},ds=e=>{let t=lf(e);return t.arguments=e.input,t=hs(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=cs(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import gs from"node:process";var ff=(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.`)},hf=(e,t,r)=>{let{choices:n,isRequired:s}=t;if(!n)return;let i=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return s?`Flag \`${oe(e)}\` has no value. ${i}`: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 \`${oe(e)}\`: \`${o.join("`, `")}\`. ${i}`}else if(!n.includes(r))return`Unknown value for flag \`${oe(e)}\`: \`${r}\`. ${i}`},pf=(e,t)=>{let r=[];for(let[n,s]of Object.entries(e)){let i=t[n],o=hf(n,s,i);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
22
+ `)}`)},ms=(e,t)=>{ff(e,t),pf(t.flags,e)},df=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
23
+ `))},bs=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(df(t),gs.exit(2))},gf=(e,t,r,n)=>{let s=t[e],i=!0;if(typeof s.isRequired=="function"&&(i=s.isRequired(r,n),typeof i!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof i} was returned.`);return(r[e]===void 0||s.isMultiple&&r[e].length===0)&&i},mf=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},ys=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let s of Object.keys(e))e[s].isRequired&&gf(s,e,t,r)&&n.push({key:s,...e[s]});n.length>0&&(mf(n),gs.exit(2))};var bf=(e,t)=>{let{pkg:r}=e,n=me(e.argv,t),s="";e.help&&(s=vn((e.help||"").replace(/\t+\n*$/,"")),s.includes(`
24
+ `)&&(s=xt(s,e.helpIndent)),s=`
25
+ ${s}`),Nt(r);let{description:i}=e;!i&&i!==!1&&({description:i}=r),i&&=s?xt(`
28
26
  ${i}
29
27
  `,e.helpIndent):`
30
28
  ${i}`,s=`${i||""}${s}
31
- `;let o=m=>{console.log(s),zt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),zt.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let u=n._;delete n._,e.allowUnknownFlags||Ls(u);let l=On(n,{exclude:["--",/^\w$/]}),g={...l};Cs(l,e);for(let m of Object.values(e.flags)){if(Array.isArray(m.aliases))for(let E of m.aliases)delete l[E];delete l[m.shortFlag]}return Os(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:s,showHelp:o,showVersion:a}},ws=(e,t={})=>{let r=ys(e,t),n=vs(r),s=_f(r,n);return zt.title=s.pkg.bin?Object.keys(s.pkg.bin).at(0):s.pkg.name,s};import Ye from"node:path";import{Transform as Bf}from"node:stream";import{PassThrough as kf}from"node:stream";import{fileURLToPath as Uf}from"node:url";import Mf from"node:process";import Tf from"node:process";import Ff from"node:fs/promises";import{fileURLToPath as Df}from"node:url";import ye from"node:path";var As=e=>e instanceof URL?Df(e):e;async function Ss(e,{cwd:t=Tf.cwd(),type:r="file",stopAt:n}={}){let s=ye.resolve(As(t)??""),{root:i}=ye.parse(s);for(n=ye.resolve(s,As(n??i));s&&s!==n&&s!==i;){let o=ye.isAbsolute(e)?e:ye.join(s,e);try{let a=await Ff.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}s=ye.dirname(s)}}async function Ht({cwd:e=Mf.cwd()}={}){return Ss("package.json",{cwd:e})}function Wf(e,t){return new Bf({transform(r,n,s){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?pr[t](e):""} ${a}`).join(`
29
+ `;let o=m=>{console.log(s),kt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),kt.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let u=n._;delete n._,e.allowUnknownFlags||bs(u);let l=yn(n,{exclude:["--",/^\w$/]}),g={...l};ms(l,e);for(let m of Object.values(e.flags)){if(Array.isArray(m.aliases))for(let E of m.aliases)delete l[E];delete l[m.shortFlag]}return ys(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:s,showHelp:o,showVersion:a}},vs=(e,t={})=>{let r=ps(e,t),n=ds(r),s=bf(r,n);return kt.title=s.pkg.bin?Object.keys(s.pkg.bin).at(0):s.pkg.name,s};import Ye from"node:path";import{Transform as Bf}from"node:stream";import{PassThrough as kf}from"node:stream";import{fileURLToPath as Uf}from"node:url";import Cf from"node:process";import yf from"node:process";import vf from"node:fs/promises";import{fileURLToPath as Ef}from"node:url";import be from"node:path";var Es=e=>e instanceof URL?Ef(e):e;async function Cs(e,{cwd:t=yf.cwd(),type:r="file",stopAt:n}={}){let s=be.resolve(Es(t)??""),{root:i}=be.parse(s);for(n=be.resolve(s,Es(n??i));s&&s!==n&&s!==i;){let o=be.isAbsolute(e)?e:be.join(s,e);try{let a=await vf.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}s=be.dirname(s)}}async function Ut({cwd:e=Cf.cwd()}={}){return Cs("package.json",{cwd:e})}var Ss=Ks(As(),1);import Df from"@pinojs/json-colorizer";var Ff=/("(?:[^\\"]|\\.)*")|[:,]/g;function Wt(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:s}=t;return function i(o,a,u){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let l=JSON.stringify(o,s);if(l===void 0)return l;let g=n-a.length-u;if(l.length<=g){let m=l.replace(Ff,(E,L)=>L||`${E} `);if(m.length<=g)return m}if(s!=null&&(o=JSON.parse(l),s=void 0),typeof o=="object"&&o!==null){let m=a+r,E=[],L=0,v,h;if(Array.isArray(o)){v="[",h="]";let{length:c}=o;for(;L<c;L++)E.push(i(o[L],m,L===c-1?0:1)||"null")}else{v="{",h="}";let c=Object.keys(o),{length:b}=c;for(;L<b;L++){let A=c[L],C=`${JSON.stringify(A)}: `,x=i(o[A],m,C.length+(L===b-1?0:1));x!==void 0&&E.push(C+x)}}if(E.length>0)return[v,r+E.join(`,
30
+ ${m}`),h].join(`
31
+ ${a}`)}return l}(e,"",0)}function zt(e){return Df(Wt(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var Mf=(e,t,r)=>{let n=[...e];for(let[s,i]of t.entries())n[s]===void 0?n[s]=r.cloneUnlessOtherwiseSpecified(i,r):r.isMergeableObject(i)?n[s]=Ht(e[s],i,r):e.includes(i)||n.push(i);return n};function Ht(e,t,r={arrayMerge:Mf}){return(0,Ss.default)(e,t,r)}function Wf(e,t){return new Bf({transform(r,n,s){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?ur[t](e):""} ${a}`).join(`
32
32
  `)+`
33
33
  `;this.push(o),s()}})}function zf(e,t){let r=`
34
34
  Usage
@@ -36,27 +36,27 @@ ${i}`,s=`${i||""}${s}
36
36
  `;if(r+=`
37
37
  Options`,Object.keys(t).length>0)for(let n of Object.keys(t))switch(n){case"init":{r+=`
38
38
  --init, -i Initialize by copying starter config files to your project root.`;break}case"check":{r+=`
39
- --check, -c Check for and report issues. Same as ${e}.`;break}case"fix":{r+=`
39
+ --check, -c Check for and report issues. Same as \`${e}\`.`;break}case"fix":{r+=`
40
40
  --fix, -f Fix all auto-fixable issues, and report the un-fixable.`;break}case"printConfig":{r+=`
41
41
  --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+=`
42
42
  --help, -h Print this help info.`,r+=`
43
43
  --version, -v Print the package version.
44
44
  `,r}function Hf(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 Yf(e){let t=[];return new Promise((r,n)=>{e.on("data",s=>t.push(Buffer.from(s))),e.on("error",s=>{n(s)}),e.on("end",()=>{r(Buffer.concat(t).toString("utf8"))})})}async function Rs(e,t,r=[]){let n=new kf,s=await Ps(n,t,r);if(n.end(),s!==0)return e.write(`Error printing config.
45
- `),s;try{let i=await Yf(n);return e.write(Je(JSON.parse(i))),e.write(`
45
+ `),s;try{let i=await Yf(n);return e.write(zt(JSON.parse(i))),e.write(`
46
46
  `),0}catch(i){return e.write(`Error: ${String(i)}
47
47
  `),1}}async function Ps(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n=1;try{let s=Gf(t.command,[...t.options??[],...r],{env:{FORCE_COLOR:"true"},stdin:"inherit"});s.stdout?.pipe(e,{end:!1}),s.stderr?.pipe(e,{end:!1}),await s,n=s.exitCode??1}catch(s){Vf(s)&&(n=typeof s.exitCode=="number"?s.exitCode:1)}return n}return e.write(`Error: Invalid optionCommand: ${JSON.stringify(t,void 0,2)}`),1}function $s(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
48
- `),process.exit(1))}async function xs(e,t,r,n){let s=ws({allowUnknownFlags:!1,booleanDefault:void 0,flags:Hf(n),help:zf(e,n),importMeta:import.meta}),{flags:i,input:o}=s,a=Object.keys(n).reduce((g,m)=>(i[m]&&(g[m]=n[m]),g),{}),u=Wf(t,r);u.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?u.write(`This command requires options. Run ${e} --help for valid commands.
49
- `):a.check=n.check);let l=0;for(let[g,m]of Object.entries(a))if(typeof m.command=="function"){$s(o,m,u);let E=o.length===0?m.defaultArguments??[]:o,L=m.options??[];l+=await m.command(u,E,L)}else if(typeof m.command=="string")$s(o,m,u),l+=await Ps(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await Ht();if(E===void 0){u.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),l+=1;break}let L=await Ht({cwd:Uf(import.meta.url)});if(L===void 0){u.write(`Error: The script being called was not in a package, weird.
48
+ `),process.exit(1))}async function xs(e,t,r,n){let s=vs({allowUnknownFlags:!1,booleanDefault:void 0,flags:Hf(n),help:zf(e,n),importMeta:import.meta}),{flags:i,input:o}=s,a=Object.keys(n).reduce((g,m)=>(i[m]&&(g[m]=n[m]),g),{}),u=Wf(t,r);u.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?u.write(`This command requires options. Run ${e} --help for valid commands.
49
+ `):a.check=n.check);let l=0;for(let[g,m]of Object.entries(a))if(typeof m.command=="function"){$s(o,m,u);let E=o.length===0?m.defaultArguments??[]:o,L=m.options??[];l+=await m.command(u,E,L)}else if(typeof m.command=="string")$s(o,m,u),l+=await Ps(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await Ut();if(E===void 0){u.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),l+=1;break}let L=await Ut({cwd:Uf(import.meta.url)});if(L===void 0){u.write(`Error: The script being called was not in a package, weird.
50
50
  `),l+=1;break}let v=Ye.join(Ye.dirname(L),"init/"),h=Ye.dirname(E);u.write(`Adding initial configuration files from:
51
51
  "${v}" \u2192 "${h}"
52
52
  `);try{await ve.copy(v,h,{filter(c,b){let A=ve.statSync(c).isFile(),C=ve.existsSync(b);if(A){if(C&&b.includes(".vscode/")&&Ye.extname(b)===".json"){u.write(`Merging:
53
53
  "${c}" \u2192 "${b}"
54
- `);let x=ve.readJSONSync(c),N=ve.readJSONSync(b),j=Ze(N,x);return ve.writeJSONSync(b,j,{spaces:2}),!1}return C?(u.write(`Overwriting:
54
+ `);let x=ve.readJSONSync(c),N=ve.readJSONSync(b),j=Ht(N,x);return ve.writeJSONSync(b,j,{spaces:2}),!1}return C?(u.write(`Overwriting:
55
55
  "${c}" \u2192 "${b}"
56
56
  `),!0):(u.write(`Copying:
57
57
  "${c}" \u2192 "${b}"
58
58
  `),!0)}return!0},overwrite:!0})}catch{}l+=0;break}case"check":{console.error("There is no default implementation for check. The [tool]-config package must define a command."),l+=1;break}case"fix":{console.error("There is no default implementation for fix. The [tool]-config package must define a command."),l+=1;break}case"printConfig":{let L=(o.length===0?m.defaultArguments??["."]:o)?.at(0),v=e.split("-").at(0);if(v===void 0){u.write(`Error: Could not find or parse config file for ${e}.
59
59
  `),l+=1;break}let h=await jf(v).search(L);if(!h?.config){u.write(`Error: Could not find or parse config file for ${v}.
60
60
  `),l+=1;break}u.write(`${t} config path: "${h?.filepath}"
61
- `),u.write(Je(h.config)),u.write(`
61
+ `),u.write(zt(h.config)),u.write(`
62
62
  `);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Vf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}await xs("eslint-config","[ESLint]","magenta",{check:{command:"eslint",defaultArguments:["."]},fix:{command:"eslint",defaultArguments:["."],options:["--fix"]},init:{},printConfig:{async command(e,t){return Rs(e,{command:"eslint",options:["--print-config"]},t)}}});
package/eslint.config.cjs CHANGED
@@ -5,7 +5,7 @@ const extendsPrefix = [
5
5
  'plugin:n/recommended',
6
6
  'plugin:unicorn/recommended',
7
7
  'xo',
8
- 'plugin:perfectionist/recommended-natural',
8
+ 'plugin:perfectionist/recommended-natural-legacy',
9
9
  'prettier', // Needed here as well for files not caught by overrides
10
10
  ]
11
11
  const extendsTypescript = ['plugin:@typescript-eslint/recommended-type-checked', 'xo-typescript']
@@ -31,7 +31,9 @@ const globalRulesPrefix = {
31
31
  'perfectionist/sort-imports': [
32
32
  'error',
33
33
  {
34
- 'newlines-between': 'never',
34
+ // Is this already set in the preset?
35
+ type: 'natural',
36
+ newlinesBetween: 'never',
35
37
  },
36
38
  ],
37
39
  'unicorn/no-array-reduce': 'off',
@@ -137,6 +139,12 @@ const globalRulesTypescript = {
137
139
  modifiers: ['destructured'],
138
140
  format: ['camelCase', 'StrictPascalCase'],
139
141
  },
142
+ {
143
+ // Allow UPPER_CASE const exports
144
+ selector: 'variable',
145
+ modifiers: ['const', 'exported'],
146
+ format: ['UPPER_CASE'],
147
+ },
140
148
  ],
141
149
  }
142
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "4.7.1",
3
+ "version": "4.7.3",
4
4
  "type": "module",
5
5
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
6
6
  "repository": {
@@ -40,23 +40,23 @@
40
40
  "eslint": "^8.57.0"
41
41
  },
42
42
  "dependencies": {
43
- "@html-eslint/eslint-plugin": "^0.24.1",
44
- "@html-eslint/parser": "^0.24.1",
43
+ "@html-eslint/eslint-plugin": "^0.26.0",
44
+ "@html-eslint/parser": "^0.26.0",
45
45
  "@pinojs/json-colorizer": "^4.0.0",
46
- "@typescript-eslint/eslint-plugin": "^7.12.0",
47
- "@typescript-eslint/parser": "^7.12.0",
46
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
47
+ "@typescript-eslint/parser": "^7.18.0",
48
48
  "astro-eslint-parser": "^1.0.2",
49
49
  "eslint-config-prettier": "^9.1.0",
50
50
  "eslint-config-xo": "^0.45.0",
51
- "eslint-config-xo-typescript": "^4.0.0",
52
- "eslint-plugin-astro": "^1.2.0",
51
+ "eslint-config-xo-typescript": "^5.0.0",
52
+ "eslint-plugin-astro": "^1.2.3",
53
53
  "eslint-plugin-html": "^8.1.1",
54
- "eslint-plugin-jsx-a11y": "^6.8.0",
54
+ "eslint-plugin-jsx-a11y": "^6.10.0",
55
55
  "eslint-plugin-mdx": "^3.1.5",
56
- "eslint-plugin-n": "^17.8.1",
57
- "eslint-plugin-perfectionist": "^2.10.0",
58
- "eslint-plugin-svelte": "^2.39.0",
59
- "eslint-plugin-unicorn": "^53.0.0",
56
+ "eslint-plugin-n": "^17.10.2",
57
+ "eslint-plugin-perfectionist": "^3.4.0",
58
+ "eslint-plugin-svelte": "^2.43.0",
59
+ "eslint-plugin-unicorn": "^55.0.0",
60
60
  "execa": "^8.0.1",
61
61
  "fs-extra": "^11.2.0"
62
62
  },
package/readme.md CHANGED
@@ -76,14 +76,14 @@ Usage:
76
76
  eslint-config [<file|glob> ...]
77
77
  ```
78
78
 
79
- | Option | Alias | Argument | Description |
80
- | ---------------- | ----- | -------- | ---------------------------------------------------------------- |
81
- | `--check` | `-c` | | Check for and report issues. Same as eslint-config. |
82
- | `--fix` | `-f` | | Fix all auto-fixable issues, and report the un-fixable. |
83
- | `--init` | `-i` | | Initialize by copying starter config files to your project root. |
84
- | `--print-config` | `-p` | `<path>` | Print the effective configuration at a certain path. |
85
- | `--help` | `-h` | | Print this help info. |
86
- | `--version` | `-v` | | Print the package version. |
79
+ | Option | Argument | Description |
80
+ | ------------------------ | -------- | ---------------------------------------------------------------- |
81
+ | `--check`<br>`-c` | | Check for and report issues. Same as `eslint-config`. |
82
+ | `--fix`<br>`-f` | | Fix all auto-fixable issues, and report the un-fixable. |
83
+ | `--init`<br>`-i` | | Initialize by copying starter config files to your project root. |
84
+ | `--print-config`<br>`-p` | `<path>` | Print the effective configuration at a certain path. |
85
+ | `--help`<br>`-h` | | Print this help info. |
86
+ | `--version`<br>`-v` | | Print the package version. |
87
87
 
88
88
  <!-- /cli-help -->
89
89