semantic-release-next-version 0.1.4 → 0.1.5

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/dist/cli.js CHANGED
@@ -1,41 +1,43 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
- var Bo=Object.create;var Br=Object.defineProperty;var Mo=Object.getOwnPropertyDescriptor;var qo=Object.getOwnPropertyNames;var zo=Object.getPrototypeOf,Ho=Object.prototype.hasOwnProperty;var Je=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Wo=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of qo(e))!Ho.call(t,c)&&c!==r&&Br(t,c,{get:()=>e[c],enumerable:!(i=Mo(e,c))||i.enumerable});return t};var Mr=(t,e,r)=>(r=t!=null?Bo(zo(t)):{},Wo(e||!t||!t.__esModule?Br(r,"default",{value:t,enumerable:!0}):r,t));var Ci=j((Hd,Li)=>{var Te=1e3,De=Te*60,Fe=De*60,Ce=Fe*24,Bu=Ce*7,Mu=Ce*365.25;Li.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qu(t);if(r==="number"&&isFinite(t))return e.long?Hu(t):zu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Mu;case"weeks":case"week":case"w":return r*Bu;case"days":case"day":case"d":return r*Ce;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fe;case"minutes":case"minute":case"mins":case"min":case"m":return r*De;case"seconds":case"second":case"secs":case"sec":case"s":return r*Te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zu(t){var e=Math.abs(t);return e>=Ce?Math.round(t/Ce)+"d":e>=Fe?Math.round(t/Fe)+"h":e>=De?Math.round(t/De)+"m":e>=Te?Math.round(t/Te)+"s":t+"ms"}function Hu(t){var e=Math.abs(t);return e>=Ce?st(t,e,Ce,"day"):e>=Fe?st(t,e,Fe,"hour"):e>=De?st(t,e,De,"minute"):e>=Te?st(t,e,Te,"second"):t+" ms"}function st(t,e,r,i){var c=e>=r*1.5;return Math.round(t/r)+" "+i+(c?"s":"")}});var pr=j((Wd,Si)=>{function Wu(t){r.debug=r,r.default=r,r.coerce=o,r.disable=l,r.enable=c,r.enabled=n,r.humanize=Ci(),r.destroy=g,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let E=0;for(let y=0;y<f.length;y++)E=(E<<5)-E+f.charCodeAt(y),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=e;function r(f){let E,y=null,u,h;function p(...d){if(!p.enabled)return;let m=p,w=Number(new Date),C=w-(E||w);m.diff=C,m.prev=E,m.curr=w,E=w,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let a=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(v,$)=>{if(v==="%%")return"%";a++;let R=r.formatters[$];if(typeof R=="function"){let F=d[a];v=R.call(m,F),d.splice(a,1),a--}return v}),r.formatArgs.call(m,d),(m.log||r.log).apply(m,d)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=i,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(u!==r.namespaces&&(u=r.namespaces,h=r.enabled(f)),h),set:d=>{y=d}}),typeof r.init=="function"&&r.init(p),p}function i(f,E){let y=r(this.namespace+(typeof E>"u"?":":E)+f);return y.log=this.log,y}function c(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let E=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of E)y[0]==="-"?r.skips.push(y.slice(1)):r.names.push(y)}function s(f,E){let y=0,u=0,h=-1,p=0;for(;y<f.length;)if(u<E.length&&(E[u]===f[y]||E[u]==="*"))E[u]==="*"?(h=u,p=y,u++):(y++,u++);else if(h!==-1)u=h+1,p++,y=p;else return!1;for(;u<E.length&&E[u]==="*";)u++;return u===E.length}function l(){let f=[...r.names,...r.skips.map(E=>"-"+E)].join(",");return r.enable(""),f}function n(f){for(let E of r.skips)if(s(f,E))return!1;for(let E of r.names)if(s(f,E))return!0;return!1}function o(f){return f instanceof Error?f.stack||f.message:f}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Si.exports=Wu});var Ai=j((ae,it)=>{ae.formatArgs=Vu;ae.save=Xu;ae.load=Yu;ae.useColors=ku;ae.storage=Ku();ae.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ae.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ku(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Vu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+it.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(r++,c==="%c"&&(i=r))}),t.splice(i,0,e)}ae.log=console.debug||console.log||(()=>{});function Xu(t){try{t?ae.storage.setItem("debug",t):ae.storage.removeItem("debug")}catch{}}function Yu(){let t;try{t=ae.storage.getItem("debug")||ae.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ku(){try{return localStorage}catch{}}it.exports=pr()(ae);var{formatters:Ju}=it.exports;Ju.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Oi=j((kd,$i)=>{"use strict";$i.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),c=e.indexOf("--");return i!==-1&&(c===-1||i<c)}});var xi=j((Vd,Ii)=>{"use strict";var Zu=Je("os"),Ri=Je("tty"),ue=Oi(),{env:Q}=process,we;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?we=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(we=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?we=1:Q.FORCE_COLOR==="false"?we=0:we=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function dr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mr(t,e){if(we===0)return 0;if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2;if(t&&!e&&we===void 0)return 0;let r=we||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let i=Zu.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Qu(t){let e=mr(t,t&&t.isTTY);return dr(e)}Ii.exports={supportsColor:Qu,stdout:dr(mr(!0,Ri.isatty(1))),stderr:dr(mr(!0,Ri.isatty(2)))}});var Pi=j((ee,ot)=>{var el=Je("tty"),nt=Je("util");ee.init=al;ee.log=il;ee.formatArgs=rl;ee.save=nl;ee.load=ol;ee.useColors=tl;ee.destroy=nt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let t=xi();t&&(t.stderr||t).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(c,s)=>s.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function tl(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:el.isatty(process.stderr.fd)}function rl(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,c="\x1B[3"+(i<8?i:"8;5;"+i),s=` ${c};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
2
+ var Mo=Object.create;var Br=Object.defineProperty;var qo=Object.getOwnPropertyDescriptor;var zo=Object.getOwnPropertyNames;var Ho=Object.getPrototypeOf,Wo=Object.prototype.hasOwnProperty;var Je=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ko=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of zo(e))!Wo.call(t,c)&&c!==r&&Br(t,c,{get:()=>e[c],enumerable:!(n=qo(e,c))||n.enumerable});return t};var Mr=(t,e,r)=>(r=t!=null?Mo(Ho(t)):{},ko(e||!t||!t.__esModule?Br(r,"default",{value:t,enumerable:!0}):r,t));var Sn=j((Wd,Cn)=>{var Te=1e3,De=Te*60,Fe=De*60,Ce=Fe*24,Mu=Ce*7,qu=Ce*365.25;Cn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return zu(t);if(r==="number"&&isFinite(t))return e.long?Wu(t):Hu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*qu;case"weeks":case"week":case"w":return r*Mu;case"days":case"day":case"d":return r*Ce;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fe;case"minutes":case"minute":case"mins":case"min":case"m":return r*De;case"seconds":case"second":case"secs":case"sec":case"s":return r*Te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Hu(t){var e=Math.abs(t);return e>=Ce?Math.round(t/Ce)+"d":e>=Fe?Math.round(t/Fe)+"h":e>=De?Math.round(t/De)+"m":e>=Te?Math.round(t/Te)+"s":t+"ms"}function Wu(t){var e=Math.abs(t);return e>=Ce?st(t,e,Ce,"day"):e>=Fe?st(t,e,Fe,"hour"):e>=De?st(t,e,De,"minute"):e>=Te?st(t,e,Te,"second"):t+" ms"}function st(t,e,r,n){var c=e>=r*1.5;return Math.round(t/r)+" "+n+(c?"s":"")}});var pr=j((kd,An)=>{function ku(t){r.debug=r,r.default=r,r.coerce=o,r.disable=l,r.enable=c,r.enabled=i,r.humanize=Sn(),r.destroy=g,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let E=0;for(let y=0;y<f.length;y++)E=(E<<5)-E+f.charCodeAt(y),E|=0;return r.colors[Math.abs(E)%r.colors.length]}r.selectColor=e;function r(f){let E,y=null,u,h;function p(...d){if(!p.enabled)return;let m=p,w=Number(new Date),L=w-(E||w);m.diff=L,m.prev=E,m.curr=w,E=w,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let a=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(v,$)=>{if(v==="%%")return"%";a++;let R=r.formatters[$];if(typeof R=="function"){let F=d[a];v=R.call(m,F),d.splice(a,1),a--}return v}),r.formatArgs.call(m,d),(m.log||r.log).apply(m,d)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(u!==r.namespaces&&(u=r.namespaces,h=r.enabled(f)),h),set:d=>{y=d}}),typeof r.init=="function"&&r.init(p),p}function n(f,E){let y=r(this.namespace+(typeof E>"u"?":":E)+f);return y.log=this.log,y}function c(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let E=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of E)y[0]==="-"?r.skips.push(y.slice(1)):r.names.push(y)}function s(f,E){let y=0,u=0,h=-1,p=0;for(;y<f.length;)if(u<E.length&&(E[u]===f[y]||E[u]==="*"))E[u]==="*"?(h=u,p=y,u++):(y++,u++);else if(h!==-1)u=h+1,p++,y=p;else return!1;for(;u<E.length&&E[u]==="*";)u++;return u===E.length}function l(){let f=[...r.names,...r.skips.map(E=>"-"+E)].join(",");return r.enable(""),f}function i(f){for(let E of r.skips)if(s(f,E))return!1;for(let E of r.names)if(s(f,E))return!0;return!1}function o(f){return f instanceof Error?f.stack||f.message:f}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}An.exports=ku});var $n=j((ae,nt)=>{ae.formatArgs=Xu;ae.save=Yu;ae.load=Ku;ae.useColors=Vu;ae.storage=Ju();ae.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ae.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Vu(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+nt.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(r++,c==="%c"&&(n=r))}),t.splice(n,0,e)}ae.log=console.debug||console.log||(()=>{});function Yu(t){try{t?ae.storage.setItem("debug",t):ae.storage.removeItem("debug")}catch{}}function Ku(){let t;try{t=ae.storage.getItem("debug")||ae.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ju(){try{return localStorage}catch{}}nt.exports=pr()(ae);var{formatters:Zu}=nt.exports;Zu.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Rn=j((Vd,On)=>{"use strict";On.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),c=e.indexOf("--");return n!==-1&&(c===-1||n<c)}});var Nn=j((Xd,xn)=>{"use strict";var Qu=Je("os"),In=Je("tty"),ue=Rn(),{env:Q}=process,we;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?we=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(we=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?we=1:Q.FORCE_COLOR==="false"?we=0:we=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function dr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mr(t,e){if(we===0)return 0;if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2;if(t&&!e&&we===void 0)return 0;let r=we||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Qu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function el(t){let e=mr(t,t&&t.isTTY);return dr(e)}xn.exports={supportsColor:el,stdout:dr(mr(!0,In.isatty(1))),stderr:dr(mr(!0,In.isatty(2)))}});var Tn=j((ee,ot)=>{var tl=Je("tty"),it=Je("util");ee.init=cl;ee.log=il;ee.formatArgs=sl;ee.save=ol;ee.load=al;ee.useColors=rl;ee.destroy=it.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let t=Nn();t&&(t.stderr||t).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(c,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function rl(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:tl.isatty(process.stderr.fd)}function sl(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,c="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${c};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
3
3
  `).join(`
4
- `+s),t.push(c+"m+"+ot.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sl()+e+" "+t[0]}function sl(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}function il(...t){return process.stderr.write(nt.formatWithOptions(ee.inspectOpts,...t)+`
5
- `)}function nl(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ol(){return process.env.DEBUG}function al(t){t.inspectOpts={};let e=Object.keys(ee.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ee.inspectOpts[e[r]]}ot.exports=pr()(ee);var{formatters:Ni}=ot.exports;Ni.o=function(t){return this.inspectOpts.colors=this.useColors,nt.inspect(t,this.inspectOpts).split(`
6
- `).map(e=>e.trim()).join(" ")};Ni.O=function(t){return this.inspectOpts.colors=this.useColors,nt.inspect(t,this.inspectOpts)}});var Ti=j((Xd,gr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?gr.exports=Ai():gr.exports=Pi()});var qe=j((Yd,Di)=>{"use strict";var cl="2.0.0",ul=Number.MAX_SAFE_INTEGER||9007199254740991,ll=16,fl=250,hl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Di.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ll,MAX_SAFE_BUILD_LENGTH:fl,MAX_SAFE_INTEGER:ul,RELEASE_TYPES:hl,SEMVER_SPEC_VERSION:cl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ze=j((Kd,Fi)=>{"use strict";var pl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Fi.exports=pl});var _e=j((pe,_i)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:br,MAX_SAFE_BUILD_LENGTH:dl,MAX_LENGTH:ml}=qe(),gl=ze();pe=_i.exports={};var bl=pe.re=[],El=pe.safeRe=[],P=pe.src=[],yl=pe.safeSrc=[],T=pe.t={},wl=0,Er="[a-zA-Z0-9-]",vl=[["\\s",1],["\\d",ml],[Er,dl]],Ll=t=>{for(let[e,r]of vl)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let i=Ll(e),c=wl++;gl(t,c,e),T[t]=c,P[c]=e,yl[c]=i,bl[c]=new RegExp(e,r?"g":void 0),El[c]=new RegExp(i,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Er}*`);q("MAINVERSION",`(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASE",`(?:-(${P[T.PRERELEASEIDENTIFIER]}(?:\\.${P[T.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${P[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[T.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${Er}+`);q("BUILD",`(?:\\+(${P[T.BUILDIDENTIFIER]}(?:\\.${P[T.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${P[T.MAINVERSION]}${P[T.PRERELEASE]}?${P[T.BUILD]}?`);q("FULL",`^${P[T.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${P[T.MAINVERSIONLOOSE]}${P[T.PRERELEASELOOSE]}?${P[T.BUILD]}?`);q("LOOSE",`^${P[T.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${P[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${P[T.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:${P[T.PRERELEASE]})?${P[T.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:${P[T.PRERELEASELOOSE]})?${P[T.BUILD]}?)?)?`);q("XRANGE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAINLOOSE]}$`);q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${br}})(?:\\.(\\d{1,${br}}))?(?:\\.(\\d{1,${br}}))?`);q("COERCE",`${P[T.COERCEPLAIN]}(?:$|[^\\d])`);q("COERCEFULL",P[T.COERCEPLAIN]+`(?:${P[T.PRERELEASE]})?(?:${P[T.BUILD]})?(?:$|[^\\d])`);q("COERCERTL",P[T.COERCE],!0);q("COERCERTLFULL",P[T.COERCEFULL],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${P[T.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";q("TILDE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${P[T.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";q("CARET",`^${P[T.LONECARET]}${P[T.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${P[T.LONECARET]}${P[T.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${P[T.GTLT]}\\s*(${P[T.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]}|${P[T.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${P[T.XRANGEPLAIN]})\\s+-\\s+(${P[T.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${P[T.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[T.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var at=j((Jd,Ui)=>{"use strict";var Cl=Object.freeze({loose:!0}),Sl=Object.freeze({}),Al=t=>t?typeof t!="object"?Cl:t:Sl;Ui.exports=Al});var yr=j((Zd,Bi)=>{"use strict";var Gi=/^[0-9]+$/,ji=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Gi.test(t),i=Gi.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},$l=(t,e)=>ji(e,t);Bi.exports={compareIdentifiers:ji,rcompareIdentifiers:$l}});var re=j((Qd,qi)=>{"use strict";var ct=ze(),{MAX_LENGTH:Mi,MAX_SAFE_INTEGER:ut}=qe(),{safeRe:lt,t:ft}=_e(),Ol=at(),{compareIdentifiers:wr}=yr(),vr=class t{constructor(e,r){if(r=Ol(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Mi)throw new TypeError(`version is longer than ${Mi} characters`);ct("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?lt[ft.LOOSE]:lt[ft.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ut||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ut||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ut||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let s=+c;if(s>=0&&s<ut)return s}return c}):this.prerelease=[],this.build=i[5]?i[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(e){if(ct("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],c=e.prerelease[r];if(ct("prerelease compare",r,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return wr(i,c)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let i=this.build[r],c=e.build[r];if(ct("build compare",r,i,c),i===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(i===void 0)return-1;if(i===c)continue;return wr(i,c)}while(++r)}inc(e,r,i){if(e.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let c=`-${r}`.match(this.options.loose?lt[ft.PRERELEASELOOSE]:lt[ft.PRERELEASE]);if(!c||c[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 c=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[c];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(r){let s=[r,c];i===!1&&(s=[r]),wr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};qi.exports=vr});var Se=j((e0,Hi)=>{"use strict";var zi=re(),Rl=(t,e,r=!1)=>{if(t instanceof zi)return t;try{return new zi(t,e)}catch(i){if(!r)return null;throw i}};Hi.exports=Rl});var ki=j((t0,Wi)=>{"use strict";var Il=Se(),xl=(t,e)=>{let r=Il(t,e);return r?r.version:null};Wi.exports=xl});var Xi=j((r0,Vi)=>{"use strict";var Nl=Se(),Pl=(t,e)=>{let r=Nl(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Vi.exports=Pl});var Ji=j((s0,Ki)=>{"use strict";var Yi=re(),Tl=(t,e,r,i,c)=>{typeof r=="string"&&(c=i,i=r,r=void 0);try{return new Yi(t instanceof Yi?t.version:t,r).inc(e,i,c).version}catch{return null}};Ki.exports=Tl});var en=j((i0,Qi)=>{"use strict";var Zi=Se(),Dl=(t,e)=>{let r=Zi(t,null,!0),i=Zi(e,null,!0),c=r.compare(i);if(c===0)return null;let s=c>0,l=s?r:i,n=s?i:r,o=!!l.prerelease.length;if(!!n.prerelease.length&&!o){if(!n.patch&&!n.minor)return"major";if(n.compareMain(l)===0)return n.minor&&!n.patch?"minor":"patch"}let f=o?"pre":"";return r.major!==i.major?f+"major":r.minor!==i.minor?f+"minor":r.patch!==i.patch?f+"patch":"prerelease"};Qi.exports=Dl});var rn=j((n0,tn)=>{"use strict";var Fl=re(),_l=(t,e)=>new Fl(t,e).major;tn.exports=_l});var nn=j((o0,sn)=>{"use strict";var Ul=re(),Gl=(t,e)=>new Ul(t,e).minor;sn.exports=Gl});var an=j((a0,on)=>{"use strict";var jl=re(),Bl=(t,e)=>new jl(t,e).patch;on.exports=Bl});var un=j((c0,cn)=>{"use strict";var Ml=Se(),ql=(t,e)=>{let r=Ml(t,e);return r&&r.prerelease.length?r.prerelease:null};cn.exports=ql});var le=j((u0,fn)=>{"use strict";var ln=re(),zl=(t,e,r)=>new ln(t,r).compare(new ln(e,r));fn.exports=zl});var pn=j((l0,hn)=>{"use strict";var Hl=le(),Wl=(t,e,r)=>Hl(e,t,r);hn.exports=Wl});var mn=j((f0,dn)=>{"use strict";var kl=le(),Vl=(t,e)=>kl(t,e,!0);dn.exports=Vl});var ht=j((h0,bn)=>{"use strict";var gn=re(),Xl=(t,e,r)=>{let i=new gn(t,r),c=new gn(e,r);return i.compare(c)||i.compareBuild(c)};bn.exports=Xl});var yn=j((p0,En)=>{"use strict";var Yl=ht(),Kl=(t,e)=>t.sort((r,i)=>Yl(r,i,e));En.exports=Kl});var vn=j((d0,wn)=>{"use strict";var Jl=ht(),Zl=(t,e)=>t.sort((r,i)=>Jl(i,r,e));wn.exports=Zl});var He=j((m0,Ln)=>{"use strict";var Ql=le(),ef=(t,e,r)=>Ql(t,e,r)>0;Ln.exports=ef});var pt=j((g0,Cn)=>{"use strict";var tf=le(),rf=(t,e,r)=>tf(t,e,r)<0;Cn.exports=rf});var Lr=j((b0,Sn)=>{"use strict";var sf=le(),nf=(t,e,r)=>sf(t,e,r)===0;Sn.exports=nf});var Cr=j((E0,An)=>{"use strict";var of=le(),af=(t,e,r)=>of(t,e,r)!==0;An.exports=af});var dt=j((y0,$n)=>{"use strict";var cf=le(),uf=(t,e,r)=>cf(t,e,r)>=0;$n.exports=uf});var mt=j((w0,On)=>{"use strict";var lf=le(),ff=(t,e,r)=>lf(t,e,r)<=0;On.exports=ff});var Sr=j((v0,Rn)=>{"use strict";var hf=Lr(),pf=Cr(),df=He(),mf=dt(),gf=pt(),bf=mt(),Ef=(t,e,r,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return hf(t,r,i);case"!=":return pf(t,r,i);case">":return df(t,r,i);case">=":return mf(t,r,i);case"<":return gf(t,r,i);case"<=":return bf(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};Rn.exports=Ef});var xn=j((L0,In)=>{"use strict";var yf=re(),wf=Se(),{safeRe:gt,t:bt}=_e(),vf=(t,e)=>{if(t instanceof yf)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?gt[bt.COERCEFULL]:gt[bt.COERCE]);else{let o=e.includePrerelease?gt[bt.COERCERTLFULL]:gt[bt.COERCERTL],g;for(;(g=o.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||g.index+g[0].length!==r.index+r[0].length)&&(r=g),o.lastIndex=g.index+g[1].length+g[2].length;o.lastIndex=-1}if(r===null)return null;let i=r[2],c=r[3]||"0",s=r[4]||"0",l=e.includePrerelease&&r[5]?`-${r[5]}`:"",n=e.includePrerelease&&r[6]?`+${r[6]}`:"";return wf(`${i}.${c}.${s}${l}${n}`,e)};In.exports=vf});var Pn=j((C0,Nn)=>{"use strict";var Ar=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(e,r)}return this}};Nn.exports=Ar});var fe=j((S0,_n)=>{"use strict";var Lf=/\s+/g,$r=class t{constructor(e,r){if(r=Sf(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Or)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Lf," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(c=>!Dn(c[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&Nf(c[0])){this.set=[c];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&If)|(this.options.loose&&xf))+":"+e,c=Tn.get(i);if(c)return c;let s=this.options.loose,l=s?ne[se.HYPHENRANGELOOSE]:ne[se.HYPHENRANGE];e=e.replace(l,Mf(this.options.includePrerelease)),X("hyphen replace",e),e=e.replace(ne[se.COMPARATORTRIM],$f),X("comparator trim",e),e=e.replace(ne[se.TILDETRIM],Of),X("tilde trim",e),e=e.replace(ne[se.CARETTRIM],Rf),X("caret trim",e);let n=e.split(" ").map(E=>Pf(E,this.options)).join(" ").split(/\s+/).map(E=>Bf(E,this.options));s&&(n=n.filter(E=>(X("loose invalid filter",E,this.options),!!E.match(ne[se.COMPARATORLOOSE])))),X("range list",n);let o=new Map,g=n.map(E=>new Or(E,this.options));for(let E of g){if(Dn(E))return[E];o.set(E.value,E)}o.size>1&&o.has("")&&o.delete("");let f=[...o.values()];return Tn.set(i,f),f}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Fn(i,r)&&e.set.some(c=>Fn(c,r)&&i.every(s=>c.every(l=>s.intersects(l,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Af(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(qf(this.set[r],e,this.options))return!0;return!1}};_n.exports=$r;var Cf=Pn(),Tn=new Cf,Sf=at(),Or=We(),X=ze(),Af=re(),{safeRe:ne,t:se,comparatorTrimReplace:$f,tildeTrimReplace:Of,caretTrimReplace:Rf}=_e(),{FLAG_INCLUDE_PRERELEASE:If,FLAG_LOOSE:xf}=qe(),Dn=t=>t.value==="<0.0.0-0",Nf=t=>t.value==="",Fn=(t,e)=>{let r=!0,i=t.slice(),c=i.pop();for(;r&&i.length;)r=i.every(s=>c.intersects(s,e)),c=i.pop();return r},Pf=(t,e)=>(t=t.replace(ne[se.BUILD],""),X("comp",t,e),t=Ff(t,e),X("caret",t),t=Tf(t,e),X("tildes",t),t=Uf(t,e),X("xrange",t),t=jf(t,e),X("stars",t),t),oe=t=>!t||t.toLowerCase()==="x"||t==="*",Tf=(t,e)=>t.trim().split(/\s+/).map(r=>Df(r,e)).join(" "),Df=(t,e)=>{let r=e.loose?ne[se.TILDELOOSE]:ne[se.TILDE];return t.replace(r,(i,c,s,l,n)=>{X("tilde",t,i,c,s,l,n);let o;return oe(c)?o="":oe(s)?o=`>=${c}.0.0 <${+c+1}.0.0-0`:oe(l)?o=`>=${c}.${s}.0 <${c}.${+s+1}.0-0`:n?(X("replaceTilde pr",n),o=`>=${c}.${s}.${l}-${n} <${c}.${+s+1}.0-0`):o=`>=${c}.${s}.${l} <${c}.${+s+1}.0-0`,X("tilde return",o),o})},Ff=(t,e)=>t.trim().split(/\s+/).map(r=>_f(r,e)).join(" "),_f=(t,e)=>{X("caret",t,e);let r=e.loose?ne[se.CARETLOOSE]:ne[se.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(c,s,l,n,o)=>{X("caret",t,c,s,l,n,o);let g;return oe(s)?g="":oe(l)?g=`>=${s}.0.0${i} <${+s+1}.0.0-0`:oe(n)?s==="0"?g=`>=${s}.${l}.0${i} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.0${i} <${+s+1}.0.0-0`:o?(X("replaceCaret pr",o),s==="0"?l==="0"?g=`>=${s}.${l}.${n}-${o} <${s}.${l}.${+n+1}-0`:g=`>=${s}.${l}.${n}-${o} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${n}-${o} <${+s+1}.0.0-0`):(X("no pr"),s==="0"?l==="0"?g=`>=${s}.${l}.${n}${i} <${s}.${l}.${+n+1}-0`:g=`>=${s}.${l}.${n}${i} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${n} <${+s+1}.0.0-0`),X("caret return",g),g})},Uf=(t,e)=>(X("replaceXRanges",t,e),t.split(/\s+/).map(r=>Gf(r,e)).join(" ")),Gf=(t,e)=>{t=t.trim();let r=e.loose?ne[se.XRANGELOOSE]:ne[se.XRANGE];return t.replace(r,(i,c,s,l,n,o)=>{X("xRange",t,i,c,s,l,n,o);let g=oe(s),f=g||oe(l),E=f||oe(n),y=E;return c==="="&&y&&(c=""),o=e.includePrerelease?"-0":"",g?c===">"||c==="<"?i="<0.0.0-0":i="*":c&&y?(f&&(l=0),n=0,c===">"?(c=">=",f?(s=+s+1,l=0,n=0):(l=+l+1,n=0)):c==="<="&&(c="<",f?s=+s+1:l=+l+1),c==="<"&&(o="-0"),i=`${c+s}.${l}.${n}${o}`):f?i=`>=${s}.0.0${o} <${+s+1}.0.0-0`:E&&(i=`>=${s}.${l}.0${o} <${s}.${+l+1}.0-0`),X("xRange return",i),i})},jf=(t,e)=>(X("replaceStars",t,e),t.trim().replace(ne[se.STAR],"")),Bf=(t,e)=>(X("replaceGTE0",t,e),t.trim().replace(ne[e.includePrerelease?se.GTE0PRE:se.GTE0],"")),Mf=t=>(e,r,i,c,s,l,n,o,g,f,E,y)=>(oe(i)?r="":oe(c)?r=`>=${i}.0.0${t?"-0":""}`:oe(s)?r=`>=${i}.${c}.0${t?"-0":""}`:l?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,oe(g)?o="":oe(f)?o=`<${+g+1}.0.0-0`:oe(E)?o=`<${g}.${+f+1}.0-0`:y?o=`<=${g}.${f}.${E}-${y}`:t?o=`<${g}.${f}.${+E+1}-0`:o=`<=${o}`,`${r} ${o}`.trim()),qf=(t,e,r)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let i=0;i<t.length;i++)if(X(t[i].semver),t[i].semver!==Or.ANY&&t[i].semver.prerelease.length>0){let c=t[i].semver;if(c.major===e.major&&c.minor===e.minor&&c.patch===e.patch)return!0}return!1}return!0}});var We=j((A0,qn)=>{"use strict";var ke=Symbol("SemVer ANY"),xr=class t{static get ANY(){return ke}constructor(e,r){if(r=Un(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Ir("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===ke?this.value="":this.value=this.operator+this.semver.version,Ir("comp",this)}parse(e){let r=this.options.loose?Gn[jn.COMPARATORLOOSE]:Gn[jn.COMPARATOR],i=e.match(r);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Bn(i[2],this.options.loose):this.semver=ke}toString(){return this.value}test(e){if(Ir("Comparator.test",e,this.options.loose),this.semver===ke||e===ke)return!0;if(typeof e=="string")try{e=new Bn(e,this.options)}catch{return!1}return Rr(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Mn(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Mn(this.value,r).test(e.semver):(r=Un(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Rr(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rr(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};qn.exports=xr;var Un=at(),{safeRe:Gn,t:jn}=_e(),Rr=Sr(),Ir=ze(),Bn=re(),Mn=fe()});var Ve=j(($0,zn)=>{"use strict";var zf=fe(),Hf=(t,e,r)=>{try{e=new zf(e,r)}catch{return!1}return e.test(t)};zn.exports=Hf});var Wn=j((O0,Hn)=>{"use strict";var Wf=fe(),kf=(t,e)=>new Wf(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));Hn.exports=kf});var Vn=j((R0,kn)=>{"use strict";var Vf=re(),Xf=fe(),Yf=(t,e,r)=>{let i=null,c=null,s=null;try{s=new Xf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!i||c.compare(l)===-1)&&(i=l,c=new Vf(i,r))}),i};kn.exports=Yf});var Yn=j((I0,Xn)=>{"use strict";var Kf=re(),Jf=fe(),Zf=(t,e,r)=>{let i=null,c=null,s=null;try{s=new Jf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!i||c.compare(l)===1)&&(i=l,c=new Kf(i,r))}),i};Xn.exports=Zf});var Zn=j((x0,Jn)=>{"use strict";var Nr=re(),Qf=fe(),Kn=He(),eh=(t,e)=>{t=new Qf(t,e);let r=new Nr("0.0.0");if(t.test(r)||(r=new Nr("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i<t.set.length;++i){let c=t.set[i],s=null;c.forEach(l=>{let n=new Nr(l.semver.version);switch(l.operator){case">":n.prerelease.length===0?n.patch++:n.prerelease.push(0),n.raw=n.format();case"":case">=":(!s||Kn(n,s))&&(s=n);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),s&&(!r||Kn(r,s))&&(r=s)}return r&&t.test(r)?r:null};Jn.exports=eh});var eo=j((N0,Qn)=>{"use strict";var th=fe(),rh=(t,e)=>{try{return new th(t,e).range||"*"}catch{return null}};Qn.exports=rh});var Et=j((P0,io)=>{"use strict";var sh=re(),so=We(),{ANY:ih}=so,nh=fe(),oh=Ve(),to=He(),ro=pt(),ah=mt(),ch=dt(),uh=(t,e,r,i)=>{t=new sh(t,i),e=new nh(e,i);let c,s,l,n,o;switch(r){case">":c=to,s=ah,l=ro,n=">",o=">=";break;case"<":c=ro,s=ch,l=to,n="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oh(t,e,i))return!1;for(let g=0;g<e.set.length;++g){let f=e.set[g],E=null,y=null;if(f.forEach(u=>{u.semver===ih&&(u=new so(">=0.0.0")),E=E||u,y=y||u,c(u.semver,E.semver,i)?E=u:l(u.semver,y.semver,i)&&(y=u)}),E.operator===n||E.operator===o||(!y.operator||y.operator===n)&&s(t,y.semver))return!1;if(y.operator===o&&l(t,y.semver))return!1}return!0};io.exports=uh});var oo=j((T0,no)=>{"use strict";var lh=Et(),fh=(t,e,r)=>lh(t,e,">",r);no.exports=fh});var co=j((D0,ao)=>{"use strict";var hh=Et(),ph=(t,e,r)=>hh(t,e,"<",r);ao.exports=ph});var fo=j((F0,lo)=>{"use strict";var uo=fe(),dh=(t,e,r)=>(t=new uo(t,r),e=new uo(e,r),t.intersects(e,r));lo.exports=dh});var po=j((_0,ho)=>{"use strict";var mh=Ve(),gh=le();ho.exports=(t,e,r)=>{let i=[],c=null,s=null,l=t.sort((f,E)=>gh(f,E,r));for(let f of l)mh(f,e,r)?(s=f,c||(c=f)):(s&&i.push([c,s]),s=null,c=null);c&&i.push([c,null]);let n=[];for(let[f,E]of i)f===E?n.push(f):!E&&f===l[0]?n.push("*"):E?f===l[0]?n.push(`<=${E}`):n.push(`${f} - ${E}`):n.push(`>=${f}`);let o=n.join(" || "),g=typeof e.raw=="string"?e.raw:String(e);return o.length<g.length?o:e}});var wo=j((U0,yo)=>{"use strict";var mo=fe(),Tr=We(),{ANY:Pr}=Tr,Xe=Ve(),Dr=le(),bh=(t,e,r={})=>{if(t===e)return!0;t=new mo(t,r),e=new mo(e,r);let i=!1;e:for(let c of t.set){for(let s of e.set){let l=yh(c,s,r);if(i=i||l!==null,l)continue e}if(i)return!1}return!0},Eh=[new Tr(">=0.0.0-0")],go=[new Tr(">=0.0.0")],yh=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Pr){if(e.length===1&&e[0].semver===Pr)return!0;r.includePrerelease?t=Eh:t=go}if(e.length===1&&e[0].semver===Pr){if(r.includePrerelease)return!0;e=go}let i=new Set,c,s;for(let u of t)u.operator===">"||u.operator===">="?c=bo(c,u,r):u.operator==="<"||u.operator==="<="?s=Eo(s,u,r):i.add(u.semver);if(i.size>1)return null;let l;if(c&&s){if(l=Dr(c.semver,s.semver,r),l>0)return null;if(l===0&&(c.operator!==">="||s.operator!=="<="))return null}for(let u of i){if(c&&!Xe(u,String(c),r)||s&&!Xe(u,String(s),r))return null;for(let h of e)if(!Xe(u,String(h),r))return!1;return!0}let n,o,g,f,E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;E&&E.prerelease.length===1&&s.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let u of e){if(f=f||u.operator===">"||u.operator===">=",g=g||u.operator==="<"||u.operator==="<=",c){if(y&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===y.major&&u.semver.minor===y.minor&&u.semver.patch===y.patch&&(y=!1),u.operator===">"||u.operator===">="){if(n=bo(c,u,r),n===u&&n!==c)return!1}else if(c.operator===">="&&!Xe(c.semver,String(u),r))return!1}if(s){if(E&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===E.major&&u.semver.minor===E.minor&&u.semver.patch===E.patch&&(E=!1),u.operator==="<"||u.operator==="<="){if(o=Eo(s,u,r),o===u&&o!==s)return!1}else if(s.operator==="<="&&!Xe(s.semver,String(u),r))return!1}if(!u.operator&&(s||c)&&l!==0)return!1}return!(c&&g&&!s&&l!==0||s&&f&&!c&&l!==0||y||E)},bo=(t,e,r)=>{if(!t)return e;let i=Dr(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},Eo=(t,e,r)=>{if(!t)return e;let i=Dr(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};yo.exports=bh});var So=j((G0,Co)=>{"use strict";var Fr=_e(),vo=qe(),wh=re(),Lo=yr(),vh=Se(),Lh=ki(),Ch=Xi(),Sh=Ji(),Ah=en(),$h=rn(),Oh=nn(),Rh=an(),Ih=un(),xh=le(),Nh=pn(),Ph=mn(),Th=ht(),Dh=yn(),Fh=vn(),_h=He(),Uh=pt(),Gh=Lr(),jh=Cr(),Bh=dt(),Mh=mt(),qh=Sr(),zh=xn(),Hh=We(),Wh=fe(),kh=Ve(),Vh=Wn(),Xh=Vn(),Yh=Yn(),Kh=Zn(),Jh=eo(),Zh=Et(),Qh=oo(),ep=co(),tp=fo(),rp=po(),sp=wo();Co.exports={parse:vh,valid:Lh,clean:Ch,inc:Sh,diff:Ah,major:$h,minor:Oh,patch:Rh,prerelease:Ih,compare:xh,rcompare:Nh,compareLoose:Ph,compareBuild:Th,sort:Dh,rsort:Fh,gt:_h,lt:Uh,eq:Gh,neq:jh,gte:Bh,lte:Mh,cmp:qh,coerce:zh,Comparator:Hh,Range:Wh,satisfies:kh,toComparators:Vh,maxSatisfying:Xh,minSatisfying:Yh,minVersion:Kh,validRange:Jh,outside:Zh,gtr:Qh,ltr:ep,intersects:tp,simplifyRange:rp,subset:sp,SemVer:wh,re:Fr.re,src:Fr.src,tokens:Fr.t,SEMVER_SPEC_VERSION:vo.SEMVER_SPEC_VERSION,RELEASE_TYPES:vo.RELEASE_TYPES,compareIdentifiers:Lo.compareIdentifiers,rcompareIdentifiers:Lo.rcompareIdentifiers}});import{pathToFileURL as nd}from"node:url";import hr from"node:process";import Hs,{format as ko}from"util";import{resolve as Vo,normalize as Xo}from"path";import{readFileSync as Yo}from"fs";import Ws,{createRequire as qr}from"node:module";import ye from"node:path";import Ko from"node:process";import Jo,{fileURLToPath as ks}from"node:url";import Vs from"node:fs";import cr from"url";function Be(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",i=!1,c=t.match(/^-+/);for(let s=c?c[0].length:0;s<t.length;s++){let l=t.charAt(s);i&&(i=!1,l=l.toUpperCase()),s!==0&&(l==="-"||l==="_")?i=!0:l!=="-"&&l!=="_"&&(r+=l)}return r}}function Xs(t,e){let r=t.toLowerCase();e=e||"-";let i="";for(let c=0;c<t.length;c++){let s=r.charAt(c),l=t.charAt(c);s!==l&&c>0?i+=`${e}${r.charAt(c)}`:i+=l}return i}function Ys(t){return t==null?!1:typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^0[^.]/.test(t)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function Zo(t){if(Array.isArray(t))return t.map(l=>typeof l!="string"?l+"":l);t=t.trim();let e=0,r=null,i=null,c=null,s=[];for(let l=0;l<t.length;l++){if(r=i,i=t.charAt(l),i===" "&&!c){r!==" "&&e++;continue}i===c?c=null:(i==="'"||i==='"')&&!c&&(c=i),s[e]||(s[e]=""),s[e]+=i}return s}var he;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(he||(he={}));var be,ir=class{constructor(e){be=e}parse(e,r){let i=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),c=Zo(e),s=typeof e=="string",l=Qo(Object.assign(Object.create(null),i.alias)),n=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},i.configuration),o=Object.assign(Object.create(null),i.default),g=i.configObjects||[],f=i.envPrefix,E=n["populate--"],y=E?"--":"_",u=Object.create(null),h=Object.create(null),p=i.__||be.format,d={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:[]},m=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+n["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(L){let A=typeof L=="object"?L.key:L,I=Object.keys(L).map(function(O){return{boolean:"bools",string:"strings",number:"numbers"}[O]}).filter(Boolean).pop();I&&(d[I][A]=!0),d.arrays[A]=!0,d.keys.push(A)}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(L){d.bools[L]=!0,d.keys.push(L)}),[].concat(i.string||[]).filter(Boolean).forEach(function(L){d.strings[L]=!0,d.keys.push(L)}),[].concat(i.number||[]).filter(Boolean).forEach(function(L){d.numbers[L]=!0,d.keys.push(L)}),[].concat(i.count||[]).filter(Boolean).forEach(function(L){d.counts[L]=!0,d.keys.push(L)}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(L){d.normalize[L]=!0,d.keys.push(L)}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([L,A])=>{typeof A=="number"&&(d.nargs[L]=A,d.keys.push(L))}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([L,A])=>{typeof A=="function"&&(d.coercions[L]=A,d.keys.push(L))}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(L){d.configs[L]=!0}):typeof i.config=="object"&&Object.entries(i.config).forEach(([L,A])=>{(typeof A=="boolean"||typeof A=="function")&&(d.configs[L]=A)})),$e(i.key,l,i.default,d.arrays),Object.keys(o).forEach(function(L){(d.aliases[L]||[]).forEach(function(A){o[A]=o[L]})});let C=null;jo();let a=[],b=Object.assign(Object.create(null),{_:[]}),v={};for(let L=0;L<c.length;L++){let A=c[L],I=A.replace(/^-{3,}/,"---"),O,S,_,N,U,Z;if(A!=="--"&&/^-/.test(A)&&Ke(A))$(A);else if(I.match(/^---+(=|$)/)){$(A);continue}else if(A.match(/^--.+=/)||!n["short-option-groups"]&&A.match(/^-.+=/))N=A.match(/^--?([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&(M(N[1],d.arrays)?L=F(L,N[1],c,N[2]):M(N[1],d.nargs)!==!1?L=R(L,N[1],c,N[2]):D(N[1],N[2],!0));else if(A.match(w)&&n["boolean-negation"])N=A.match(w),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],D(S,M(S,d.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!n["short-option-groups"]&&A.match(/^-[^-]+/))N=A.match(/^--?(.+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],M(S,d.arrays)?L=F(L,S,c):M(S,d.nargs)!==!1?L=R(L,S,c):(U=c[L+1],U!==void 0&&(!U.match(/^-/)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),L++):D(S,Oe(S))));else if(A.match(/^-.\..+=/))N=A.match(/^-([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&D(N[1],N[2]);else if(A.match(/^-.\..+/)&&!A.match(m))U=c[L+1],N=A.match(/^-(.\..+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],U!==void 0&&!U.match(/^-/)&&!M(S,d.bools)&&!M(S,d.counts)?(D(S,U),L++):D(S,Oe(S)));else if(A.match(/^-[^-]+/)&&!A.match(m)){_=A.slice(1,-1).split(""),O=!1;for(let ie=0;ie<_.length;ie++){if(U=A.slice(ie+2),_[ie+1]&&_[ie+1]==="="){Z=A.slice(ie+3),S=_[ie],M(S,d.arrays)?L=F(L,S,c,Z):M(S,d.nargs)!==!1?L=R(L,S,c,Z):D(S,Z),O=!0;break}if(U==="-"){D(_[ie],U);continue}if(/[A-Za-z]/.test(_[ie])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(U)&&M(U,d.bools)===!1){D(_[ie],U),O=!0;break}if(_[ie+1]&&_[ie+1].match(/\W/)){D(_[ie],U),O=!0;break}else D(_[ie],Oe(_[ie]))}S=A.slice(-1)[0],!O&&S!=="-"&&(M(S,d.arrays)?L=F(L,S,c):M(S,d.nargs)!==!1?L=R(L,S,c):(U=c[L+1],U!==void 0&&(!/^(-|--)[^-]/.test(U)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),L++):D(S,Oe(S))))}else if(A.match(/^-[0-9]$/)&&A.match(m)&&M(A.slice(1),d.bools))S=A.slice(1),D(S,Oe(S));else if(A==="--"){a=c.slice(L+1);break}else if(n["halt-at-non-option"]){a=c.slice(L);break}else $(A)}z(b,!0),z(b,!1),H(b),B(),J(b,d.aliases,o,!0),Y(b),n["set-placeholder-key"]&&V(b),Object.keys(d.counts).forEach(function(L){K(b,L.split("."))||D(L,0)}),E&&a.length&&(b[y]=[]),a.forEach(function(L){b[y].push(L)}),n["camel-case-expansion"]&&n["strip-dashed"]&&Object.keys(b).filter(L=>L!=="--"&&L.includes("-")).forEach(L=>{delete b[L]}),n["strip-aliased"]&&[].concat(...Object.keys(l).map(L=>l[L])).forEach(L=>{n["camel-case-expansion"]&&L.includes("-")&&delete b[L.split(".").map(A=>Be(A)).join(".")],delete b[L]});function $(L){let A=x("_",L);(typeof A=="string"||typeof A=="number")&&b._.push(A)}function R(L,A,I,O){let S,_=M(A,d.nargs);if(_=typeof _!="number"||isNaN(_)?1:_,_===0)return ge(O)||(C=Error(p("Argument unexpected for: %s",A))),D(A,Oe(A)),L;let N=ge(O)?0:1;if(n["nargs-eats-options"])I.length-(L+1)+N<_&&(C=Error(p("Not enough arguments following: %s",A))),N=_;else{for(S=L+1;S<I.length&&(!I[S].match(/^-[^0-9]/)||I[S].match(m)||Ke(I[S]));S++)N++;N<_&&(C=Error(p("Not enough arguments following: %s",A)))}let U=Math.min(N,_);for(!ge(O)&&U>0&&(D(A,O),U--),S=L+1;S<U+L+1;S++)D(A,I[S]);return L+U}function F(L,A,I,O){let S=[],_=O||I[L+1],N=M(A,d.nargs);if(M(A,d.bools)&&!/^(true|false)$/.test(_))S.push(!0);else if(ge(_)||ge(O)&&/^-/.test(_)&&!m.test(_)&&!Ke(_)){if(o[A]!==void 0){let U=o[A];S=Array.isArray(U)?U:[U]}}else{ge(O)||S.push(W(A,O,!0));for(let U=L+1;U<I.length&&!(!n["greedy-arrays"]&&S.length>0||N&&typeof N=="number"&&S.length>=N||(_=I[U],/^-/.test(_)&&!m.test(_)&&!Ke(_)));U++)L=U,S.push(W(A,_,s))}return typeof N=="number"&&(N&&S.length<N||isNaN(N)&&S.length===0)&&(C=Error(p("Not enough arguments following: %s",A))),D(A,S),L}function D(L,A,I=s){if(/-/.test(L)&&n["camel-case-expansion"]){let _=L.split(".").map(function(N){return Be(N)}).join(".");G(L,_)}let O=W(L,A,I),S=L.split(".");te(b,S,O),d.aliases[L]&&d.aliases[L].forEach(function(_){let N=_.split(".");te(b,N,O)}),S.length>1&&n["dot-notation"]&&(d.aliases[S[0]]||[]).forEach(function(_){let N=_.split("."),U=[].concat(S);U.shift(),N=N.concat(U),(d.aliases[L]||[]).includes(N.join("."))||te(b,N,O)}),M(L,d.normalize)&&!M(L,d.arrays)&&[L].concat(d.aliases[L]||[]).forEach(function(N){Object.defineProperty(v,N,{enumerable:!0,get(){return A},set(U){A=typeof U=="string"?be.normalize(U):U}})})}function G(L,A){d.aliases[L]&&d.aliases[L].length||(d.aliases[L]=[A],u[A]=!0),d.aliases[A]&&d.aliases[A].length||G(A,L)}function W(L,A,I){I&&(A=ea(A)),(M(L,d.bools)||M(L,d.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(S){return x(L,S)}):x(L,A);return M(L,d.counts)&&(ge(O)||typeof O=="boolean")&&(O=yt()),M(L,d.normalize)&&M(L,d.arrays)&&(Array.isArray(A)?O=A.map(S=>be.normalize(S)):O=be.normalize(A)),O}function x(L,A){return!n["parse-positional-numbers"]&&L==="_"||!M(L,d.strings)&&!M(L,d.bools)&&!Array.isArray(A)&&(Ys(A)&&n["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!ge(A)&&M(L,d.numbers))&&(A=Number(A)),A}function H(L){let A=Object.create(null);J(A,d.aliases,o),Object.keys(d.configs).forEach(function(I){let O=L[I]||A[I];if(O)try{let S=null,_=be.resolve(be.cwd(),O),N=d.configs[I];if(typeof N=="function"){try{S=N(_)}catch(U){S=U}if(S instanceof Error){C=S;return}}else S=be.require(_);k(S)}catch(S){S.name==="PermissionDenied"?C=S:L[I]&&(C=Error(p("Invalid JSON config file: %s",O)))}})}function k(L,A){Object.keys(L).forEach(function(I){let O=L[I],S=A?A+"."+I:I;typeof O=="object"&&O!==null&&!Array.isArray(O)&&n["dot-notation"]?k(O,S):(!K(b,S.split("."))||M(S,d.arrays)&&n["combine-arrays"])&&D(S,O)})}function B(){typeof g<"u"&&g.forEach(function(L){k(L)})}function z(L,A){if(typeof f>"u")return;let I=typeof f=="string"?f:"",O=be.env();Object.keys(O).forEach(function(S){if(I===""||S.lastIndexOf(I,0)===0){let _=S.split("__").map(function(N,U){return U===0&&(N=N.substring(I.length)),Be(N)});(A&&d.configs[_.join(".")]||!A)&&!K(L,_)&&D(_.join("."),O[S])}})}function Y(L){let A,I=new Set;Object.keys(L).forEach(function(O){if(!I.has(O)&&(A=M(O,d.coercions),typeof A=="function"))try{let S=x(O,A(L[O]));[].concat(d.aliases[O]||[],O).forEach(_=>{I.add(_),L[_]=S})}catch(S){C=S}})}function V(L){return d.keys.forEach(A=>{~A.indexOf(".")||typeof L[A]>"u"&&(L[A]=void 0)}),L}function J(L,A,I,O=!1){Object.keys(I).forEach(function(S){K(L,S.split("."))||(te(L,S.split("."),I[S]),O&&(h[S]=!0),(A[S]||[]).forEach(function(_){K(L,_.split("."))||te(L,_.split("."),I[S])}))})}function K(L,A){let I=L;n["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(S){I=I[S]||{}});let O=A[A.length-1];return typeof I!="object"?!1:O in I}function te(L,A,I){let O=L;n["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Z){Z=zr(Z),typeof O=="object"&&O[Z]===void 0&&(O[Z]={}),typeof O[Z]!="object"||Array.isArray(O[Z])?(Array.isArray(O[Z])?O[Z].push({}):O[Z]=[O[Z],{}],O=O[Z][O[Z].length-1]):O=O[Z]});let S=zr(A[A.length-1]),_=M(A.join("."),d.arrays),N=Array.isArray(I),U=n["duplicate-arguments-array"];!U&&M(S,d.nargs)&&(U=!0,(!ge(O[S])&&d.nargs[S]===1||Array.isArray(O[S])&&O[S].length===d.nargs[S])&&(O[S]=void 0)),I===yt()?O[S]=yt(O[S]):Array.isArray(O[S])?U&&_&&N?O[S]=n["flatten-duplicate-arrays"]?O[S].concat(I):(Array.isArray(O[S][0])?O[S]:[O[S]]).concat([I]):!U&&!!_==!!N?O[S]=I:O[S]=O[S].concat([I]):O[S]===void 0&&_?O[S]=N?I:[I]:U&&!(O[S]===void 0||M(S,d.counts)||M(S,d.bools))?O[S]=[O[S],I]:O[S]=I}function $e(...L){L.forEach(function(A){Object.keys(A||{}).forEach(function(I){d.aliases[I]||(d.aliases[I]=[].concat(l[I]||[]),d.aliases[I].concat(I).forEach(function(O){if(/-/.test(O)&&n["camel-case-expansion"]){let S=Be(O);S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].concat(I).forEach(function(O){if(O.length>1&&/[A-Z]/.test(O)&&n["camel-case-expansion"]){let S=Xs(O,"-");S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].forEach(function(O){d.aliases[O]=[I].concat(d.aliases[I].filter(function(S){return O!==S}))}))})})}function M(L,A){let I=[].concat(d.aliases[L]||[],L),O=Object.keys(A),S=I.find(_=>O.includes(_));return S?A[S]:!1}function Ye(L){let A=Object.keys(d);return[].concat(A.map(O=>d[O])).some(function(O){return Array.isArray(O)?O.includes(L):O[L]})}function Do(L,...A){return[].concat(...A).some(function(O){let S=L.match(O);return S&&Ye(S[1])})}function Fo(L){if(L.match(m)||!L.match(/^-[^-]+/))return!1;let A=!0,I,O=L.slice(1).split("");for(let S=0;S<O.length;S++){if(I=L.slice(S+2),!Ye(O[S])){A=!1;break}if(O[S+1]&&O[S+1]==="="||I==="-"||/[A-Za-z]/.test(O[S])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)||O[S+1]&&O[S+1].match(/\W/))break}return A}function Ke(L){return n["unknown-options-as-args"]&&_o(L)}function _o(L){return L=L.replace(/^-{3,}/,"--"),L.match(m)||Fo(L)?!1:!Do(L,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Oe(L){return!M(L,d.bools)&&!M(L,d.counts)&&`${L}`in o?o[L]:Uo(Go(L))}function Uo(L){return{[he.BOOLEAN]:!0,[he.STRING]:"",[he.NUMBER]:void 0,[he.ARRAY]:[]}[L]}function Go(L){let A=he.BOOLEAN;return M(L,d.strings)?A=he.STRING:M(L,d.numbers)?A=he.NUMBER:M(L,d.bools)?A=he.BOOLEAN:M(L,d.arrays)&&(A=he.ARRAY),A}function ge(L){return L===void 0}function jo(){Object.keys(d.counts).find(L=>M(L,d.arrays)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",L)),!0):M(L,d.nargs)?(C=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",L)),!0):!1)}return{aliases:Object.assign({},d.aliases),argv:Object.assign(v,b),configuration:n,defaulted:Object.assign({},h),error:C,newAliases:Object.assign({},u)}}};function Qo(t){let e=[],r=Object.create(null),i=!0;for(Object.keys(t).forEach(function(c){e.push([].concat(t[c],c))});i;){i=!1;for(let c=0;c<e.length;c++)for(let s=c+1;s<e.length;s++)if(e[c].filter(function(n){return e[s].indexOf(n)!==-1}).length){e[c]=e[c].concat(e[s]),e.splice(s,1),i=!0;break}}return e.forEach(function(c){c=c.filter(function(l,n,o){return o.indexOf(l)===n});let s=c.pop();s!==void 0&&typeof s=="string"&&(r[s]=c)}),r}function yt(t){return t!==void 0?t+1:1}function zr(t){return t==="__proto__"?"___proto___":t}function ea(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var wt,vt,Lt,Hr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,Wr=(vt=(wt=process==null?void 0:process.versions)===null||wt===void 0?void 0:wt.node)!==null&&vt!==void 0?vt:(Lt=process==null?void 0:process.version)===null||Lt===void 0?void 0:Lt.slice(1);if(Wr&&Number(Wr.match(/^([^.]+)/)[1])<Hr)throw Error(`yargs parser supports a minimum Node.js version of ${Hr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var ta=process?process.env:{},kr=qr?qr(import.meta.url):void 0,Ks=new ir({cwd:process.cwd,env:()=>ta,format:ko,normalize:Xo,resolve:Vo,require:t=>{if(typeof kr<"u")return kr(t);if(t.match(/\.json$/))return JSON.parse(Yo(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),Pe=function(e,r){return Ks.parse(e.slice(),r).argv};Pe.detailed=function(t,e){return Ks.parse(t.slice(),e)};Pe.camelCase=Be;Pe.decamelize=Xs;Pe.looksLikeNumber=Ys;var Js=t=>typeof t=="object"&&t!==null,Vr=t=>Js(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date)&&!(globalThis.Blob&&t instanceof globalThis.Blob),ra=Symbol("mapObjectSkip"),nr=(t,e,r,i=new WeakMap)=>{if(r={deep:!1,target:{},...r},i.has(t))return i.get(t);i.set(t,r.target);let{target:c}=r;delete r.target;let s=l=>l.map(n=>Vr(n)?nr(n,e,r,i):n);if(Array.isArray(t))return s(t);for(let[l,n]of Object.entries(t)){let o=e(l,n,t);if(o===ra)continue;let[g,f,{shouldRecurse:E=!0}={}]=o;g!=="__proto__"&&(r.deep&&E&&Vr(f)&&(f=Array.isArray(f)?s(f):nr(f,e,r,i)),c[g]=f)}return c};function sa(t,e,r){if(!Js(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);if(Array.isArray(t))throw new TypeError("Expected an object, got an array");return nr(t,e,r)}var ia=/[\p{Lu}]/u,na=/[\p{Ll}]/u,Xr=/^[\p{Lu}](?![\p{Lu}])/gu,Zs=/([\p{Alpha}\p{N}_]|$)/u,ur=/[_.\- ]+/,oa=new RegExp("^"+ur.source),Yr=new RegExp(ur.source+Zs.source,"gu"),Kr=new RegExp("\\d+"+Zs.source,"gu"),aa=(t,e,r,i)=>{let c=!1,s=!1,l=!1,n=!1;for(let o=0;o<t.length;o++){let g=t[o];n=o>2?t[o-3]==="-":!0,c&&ia.test(g)?(t=t.slice(0,o)+"-"+t.slice(o),c=!1,l=s,s=!0,o++):s&&l&&na.test(g)&&(!n||i)?(t=t.slice(0,o-1)+"-"+t.slice(o-1),l=s,s=!1,c=!0):(c=e(g)===g&&r(g)!==g,l=s,s=r(g)===g&&e(g)!==g)}return t},ca=(t,e)=>(Xr.lastIndex=0,t.replaceAll(Xr,r=>e(r))),ua=(t,e)=>(Yr.lastIndex=0,Kr.lastIndex=0,t.replaceAll(Kr,(r,i,c)=>["_","-"].includes(t.charAt(c+r.length))?r:e(r)).replaceAll(Yr,(r,i)=>e(i)));function la(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),i=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?ur.test(t)?"":e.pascalCase?i(t):r(t):(t!==r(t)&&(t=aa(t,r,i,e.preserveConsecutiveUppercase)),t=t.replace(oa,""),t=e.preserveConsecutiveUppercase?ca(t,r):r(t),e.pascalCase&&(t=i(t.charAt(0))+t.slice(1)),ua(t,i))}var fa=class extends Map{#i=0;#r=new Map;#e=new Map;#g;#w;#S;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#g=e.maxSize,this.#w=e.maxAge||Number.POSITIVE_INFINITY,this.#S=e.onEviction}get __oldCache(){return this.#e}#m(e){if(typeof this.#S=="function")for(let[r,i]of e)this.#S(r,i.value)}#f(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.#S=="function"&&this.#S(e,r.value),this.delete(e)):!1}#o(e,r){if(this.#f(e,r)===!1)return r.value}#a(e,r){return r.expiry?this.#o(e,r):r.value}#t(e,r){let i=r.get(e);return this.#a(e,i)}#n(e,r){this.#r.set(e,r),this.#i++,this.#i>=this.#g&&(this.#i=0,this.#m(this.#e),this.#e=this.#r,this.#r=new Map)}#s(e,r){this.#e.delete(e),this.#n(e,r)}*#l(){for(let e of this.#e){let[r,i]=e;this.#r.has(r)||this.#f(r,i)===!1&&(yield e)}for(let e of this.#r){let[r,i]=e;this.#f(r,i)===!1&&(yield e)}}get(e){if(this.#r.has(e)){let r=this.#r.get(e);return this.#a(e,r)}if(this.#e.has(e)){let r=this.#e.get(e);if(this.#f(e,r)===!1)return this.#s(e,r),r.value}}set(e,r,{maxAge:i=this.#w}={}){let c=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.#r.has(e)?this.#r.set(e,{value:r,expiry:c}):this.#n(e,{value:r,expiry:c}),this}has(e){return this.#r.has(e)?!this.#f(e,this.#r.get(e)):this.#e.has(e)?!this.#f(e,this.#e.get(e)):!1}peek(e){if(this.#r.has(e))return this.#t(e,this.#r);if(this.#e.has(e))return this.#t(e,this.#e)}expiresIn(e){let r=this.#r.get(e)??this.#e.get(e);if(r)return r.expiry?r.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){let r=this.#r.delete(e);return r&&this.#i--,this.#e.delete(e)||r}clear(){this.#r.clear(),this.#e.clear(),this.#i=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this.#l()],i=r.length-e;i<0?(this.#r=new Map(r),this.#e=new Map,this.#i=r.length):(i>0&&this.#m(r.slice(0,i)),this.#e=new Map(r.slice(i)),this.#r=new Map,this.#i=0),this.#g=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#r){let[r,i]=e;this.#f(r,i)===!1&&(yield[r,i.value])}for(let e of this.#e){let[r,i]=e;this.#r.has(r)||this.#f(r,i)===!1&&(yield[r,i.value])}}*entriesDescending(){let e=[...this.#r];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.#f(c,s)===!1&&(yield[c,s.value])}e=[...this.#e];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.#r.has(c)||this.#f(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this.#l())yield[e,r.value]}get size(){if(!this.#i)return this.#e.size;let e=0;for(let r of this.#e.keys())this.#r.has(r)||e++;return Math.min(this.#i+e,this.#g)}get maxSize(){return this.#g}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[i,c]of this.entriesAscending())e.call(r,c,i,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},ha=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),Ct=new fa({maxSize:1e5}),xe=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),Ne=(t,e={},r=new WeakMap,i)=>{if(!xe(t))return t;if(r.has(t))return r.get(t);let{exclude:c,pascalCase:s=!1,stopPaths:l,deep:n=!1,preserveConsecutiveUppercase:o=!1}=e,g=new Set(l);if(Array.isArray(t)){let h=[];r.set(t,h);for(let p of t)h.push(xe(p)?Ne(p,e,r,i):p);return h}let f={};r.set(t,f);let y=sa(t,(h=>(p,d)=>{if(n&&xe(d)){let m=h===void 0?p:`${h}.${p}`;g.has(m)||(d=Array.isArray(d)?d.map(w=>xe(w)?Ne(w,e,r,m):w):Ne(d,e,r,m))}if(typeof p=="string"&&!(c&&ha(c,p))){let m=s?`${p}_`:p;if(Ct.has(m))p=Ct.get(m);else{let w=la(p,{pascalCase:s,locale:!1,preserveConsecutiveUppercase:o});p.length<100&&Ct.set(m,w),p=w}}return[p,d]})(i),{deep:!1});Object.assign(f,y);let u=Object.getOwnPropertySymbols(t);for(let h of u)f[h]=n&&xe(t[h])?Ne(t[h],e,r,i):t[h];return f};function Qs(t,e){let r=new WeakMap;return Array.isArray(t)?t.map((i,c)=>xe(i)?Ne(i,e,r,String(c)):i):Ne(t,e,r)}function ei(t){let e=0,r=t.length;for(;e<r&&(t[e]==="\r"||t[e]===`
4
+ `+s),t.push(c+"m+"+ot.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=nl()+e+" "+t[0]}function nl(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}function il(...t){return process.stderr.write(it.formatWithOptions(ee.inspectOpts,...t)+`
5
+ `)}function ol(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function al(){return process.env.DEBUG}function cl(t){t.inspectOpts={};let e=Object.keys(ee.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ee.inspectOpts[e[r]]}ot.exports=pr()(ee);var{formatters:Pn}=ot.exports;Pn.o=function(t){return this.inspectOpts.colors=this.useColors,it.inspect(t,this.inspectOpts).split(`
6
+ `).map(e=>e.trim()).join(" ")};Pn.O=function(t){return this.inspectOpts.colors=this.useColors,it.inspect(t,this.inspectOpts)}});var Dn=j((Yd,gr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?gr.exports=$n():gr.exports=Tn()});var qe=j((Kd,Fn)=>{"use strict";var ul="2.0.0",ll=Number.MAX_SAFE_INTEGER||9007199254740991,fl=16,hl=250,pl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Fn.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:fl,MAX_SAFE_BUILD_LENGTH:hl,MAX_SAFE_INTEGER:ll,RELEASE_TYPES:pl,SEMVER_SPEC_VERSION:ul,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ze=j((Jd,_n)=>{"use strict";var dl=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};_n.exports=dl});var _e=j((pe,Un)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:br,MAX_SAFE_BUILD_LENGTH:ml,MAX_LENGTH:gl}=qe(),bl=ze();pe=Un.exports={};var El=pe.re=[],yl=pe.safeRe=[],P=pe.src=[],wl=pe.safeSrc=[],T=pe.t={},vl=0,Er="[a-zA-Z0-9-]",Ll=[["\\s",1],["\\d",gl],[Er,ml]],Cl=t=>{for(let[e,r]of Ll)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},q=(t,e,r)=>{let n=Cl(e),c=vl++;bl(t,c,e),T[t]=c,P[c]=e,wl[c]=n,El[c]=new RegExp(e,r?"g":void 0),yl[c]=new RegExp(n,r?"g":void 0)};q("NUMERICIDENTIFIER","0|[1-9]\\d*");q("NUMERICIDENTIFIERLOOSE","\\d+");q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Er}*`);q("MAINVERSION",`(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})\\.(${P[T.NUMERICIDENTIFIER]})`);q("MAINVERSIONLOOSE",`(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})\\.(${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASEIDENTIFIER",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIER]})`);q("PRERELEASEIDENTIFIERLOOSE",`(?:${P[T.NONNUMERICIDENTIFIER]}|${P[T.NUMERICIDENTIFIERLOOSE]})`);q("PRERELEASE",`(?:-(${P[T.PRERELEASEIDENTIFIER]}(?:\\.${P[T.PRERELEASEIDENTIFIER]})*))`);q("PRERELEASELOOSE",`(?:-?(${P[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[T.PRERELEASEIDENTIFIERLOOSE]})*))`);q("BUILDIDENTIFIER",`${Er}+`);q("BUILD",`(?:\\+(${P[T.BUILDIDENTIFIER]}(?:\\.${P[T.BUILDIDENTIFIER]})*))`);q("FULLPLAIN",`v?${P[T.MAINVERSION]}${P[T.PRERELEASE]}?${P[T.BUILD]}?`);q("FULL",`^${P[T.FULLPLAIN]}$`);q("LOOSEPLAIN",`[v=\\s]*${P[T.MAINVERSIONLOOSE]}${P[T.PRERELEASELOOSE]}?${P[T.BUILD]}?`);q("LOOSE",`^${P[T.LOOSEPLAIN]}$`);q("GTLT","((?:<|>)?=?)");q("XRANGEIDENTIFIERLOOSE",`${P[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);q("XRANGEIDENTIFIER",`${P[T.NUMERICIDENTIFIER]}|x|X|\\*`);q("XRANGEPLAIN",`[v=\\s]*(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:\\.(${P[T.XRANGEIDENTIFIER]})(?:${P[T.PRERELEASE]})?${P[T.BUILD]}?)?)?`);q("XRANGEPLAINLOOSE",`[v=\\s]*(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[T.XRANGEIDENTIFIERLOOSE]})(?:${P[T.PRERELEASELOOSE]})?${P[T.BUILD]}?)?)?`);q("XRANGE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAIN]}$`);q("XRANGELOOSE",`^${P[T.GTLT]}\\s*${P[T.XRANGEPLAINLOOSE]}$`);q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${br}})(?:\\.(\\d{1,${br}}))?(?:\\.(\\d{1,${br}}))?`);q("COERCE",`${P[T.COERCEPLAIN]}(?:$|[^\\d])`);q("COERCEFULL",P[T.COERCEPLAIN]+`(?:${P[T.PRERELEASE]})?(?:${P[T.BUILD]})?(?:$|[^\\d])`);q("COERCERTL",P[T.COERCE],!0);q("COERCERTLFULL",P[T.COERCEFULL],!0);q("LONETILDE","(?:~>?)");q("TILDETRIM",`(\\s*)${P[T.LONETILDE]}\\s+`,!0);pe.tildeTrimReplace="$1~";q("TILDE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAIN]}$`);q("TILDELOOSE",`^${P[T.LONETILDE]}${P[T.XRANGEPLAINLOOSE]}$`);q("LONECARET","(?:\\^)");q("CARETTRIM",`(\\s*)${P[T.LONECARET]}\\s+`,!0);pe.caretTrimReplace="$1^";q("CARET",`^${P[T.LONECARET]}${P[T.XRANGEPLAIN]}$`);q("CARETLOOSE",`^${P[T.LONECARET]}${P[T.XRANGEPLAINLOOSE]}$`);q("COMPARATORLOOSE",`^${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]})$|^$`);q("COMPARATOR",`^${P[T.GTLT]}\\s*(${P[T.FULLPLAIN]})$|^$`);q("COMPARATORTRIM",`(\\s*)${P[T.GTLT]}\\s*(${P[T.LOOSEPLAIN]}|${P[T.XRANGEPLAIN]})`,!0);pe.comparatorTrimReplace="$1$2$3";q("HYPHENRANGE",`^\\s*(${P[T.XRANGEPLAIN]})\\s+-\\s+(${P[T.XRANGEPLAIN]})\\s*$`);q("HYPHENRANGELOOSE",`^\\s*(${P[T.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[T.XRANGEPLAINLOOSE]})\\s*$`);q("STAR","(<|>)?=?\\s*\\*");q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var at=j((Zd,Gn)=>{"use strict";var Sl=Object.freeze({loose:!0}),Al=Object.freeze({}),$l=t=>t?typeof t!="object"?Sl:t:Al;Gn.exports=$l});var yr=j((Qd,Mn)=>{"use strict";var jn=/^[0-9]+$/,Bn=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=jn.test(t),n=jn.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},Ol=(t,e)=>Bn(e,t);Mn.exports={compareIdentifiers:Bn,rcompareIdentifiers:Ol}});var re=j((e0,zn)=>{"use strict";var ct=ze(),{MAX_LENGTH:qn,MAX_SAFE_INTEGER:ut}=qe(),{safeRe:lt,t:ft}=_e(),Rl=at(),{compareIdentifiers:wr}=yr(),vr=class t{constructor(e,r){if(r=Rl(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>qn)throw new TypeError(`version is longer than ${qn} characters`);ct("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?lt[ft.LOOSE]:lt[ft.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ut||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ut||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ut||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){let s=+c;if(s>=0&&s<ut)return s}return c}):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(e){if(ct("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],c=e.prerelease[r];if(ct("prerelease compare",r,n,c),n===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(n===void 0)return-1;if(n===c)continue;return wr(n,c)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],c=e.build[r];if(ct("build compare",r,n,c),n===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(n===void 0)return-1;if(n===c)continue;return wr(n,c)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let c=`-${r}`.match(this.options.loose?lt[ft.PRERELEASELOOSE]:lt[ft.PRERELEASE]);if(!c||c[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){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"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 c=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[c];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(r){let s=[r,c];n===!1&&(s=[r]),wr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};zn.exports=vr});var Se=j((t0,Wn)=>{"use strict";var Hn=re(),Il=(t,e,r=!1)=>{if(t instanceof Hn)return t;try{return new Hn(t,e)}catch(n){if(!r)return null;throw n}};Wn.exports=Il});var Vn=j((r0,kn)=>{"use strict";var xl=Se(),Nl=(t,e)=>{let r=xl(t,e);return r?r.version:null};kn.exports=Nl});var Yn=j((s0,Xn)=>{"use strict";var Pl=Se(),Tl=(t,e)=>{let r=Pl(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Xn.exports=Tl});var Zn=j((n0,Jn)=>{"use strict";var Kn=re(),Dl=(t,e,r,n,c)=>{typeof r=="string"&&(c=n,n=r,r=void 0);try{return new Kn(t instanceof Kn?t.version:t,r).inc(e,n,c).version}catch{return null}};Jn.exports=Dl});var ti=j((i0,ei)=>{"use strict";var Qn=Se(),Fl=(t,e)=>{let r=Qn(t,null,!0),n=Qn(e,null,!0),c=r.compare(n);if(c===0)return null;let s=c>0,l=s?r:n,i=s?n:r,o=!!l.prerelease.length;if(!!i.prerelease.length&&!o){if(!i.patch&&!i.minor)return"major";if(i.compareMain(l)===0)return i.minor&&!i.patch?"minor":"patch"}let f=o?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};ei.exports=Fl});var si=j((o0,ri)=>{"use strict";var _l=re(),Ul=(t,e)=>new _l(t,e).major;ri.exports=Ul});var ii=j((a0,ni)=>{"use strict";var Gl=re(),jl=(t,e)=>new Gl(t,e).minor;ni.exports=jl});var ai=j((c0,oi)=>{"use strict";var Bl=re(),Ml=(t,e)=>new Bl(t,e).patch;oi.exports=Ml});var ui=j((u0,ci)=>{"use strict";var ql=Se(),zl=(t,e)=>{let r=ql(t,e);return r&&r.prerelease.length?r.prerelease:null};ci.exports=zl});var le=j((l0,fi)=>{"use strict";var li=re(),Hl=(t,e,r)=>new li(t,r).compare(new li(e,r));fi.exports=Hl});var pi=j((f0,hi)=>{"use strict";var Wl=le(),kl=(t,e,r)=>Wl(e,t,r);hi.exports=kl});var mi=j((h0,di)=>{"use strict";var Vl=le(),Xl=(t,e)=>Vl(t,e,!0);di.exports=Xl});var ht=j((p0,bi)=>{"use strict";var gi=re(),Yl=(t,e,r)=>{let n=new gi(t,r),c=new gi(e,r);return n.compare(c)||n.compareBuild(c)};bi.exports=Yl});var yi=j((d0,Ei)=>{"use strict";var Kl=ht(),Jl=(t,e)=>t.sort((r,n)=>Kl(r,n,e));Ei.exports=Jl});var vi=j((m0,wi)=>{"use strict";var Zl=ht(),Ql=(t,e)=>t.sort((r,n)=>Zl(n,r,e));wi.exports=Ql});var He=j((g0,Li)=>{"use strict";var ef=le(),tf=(t,e,r)=>ef(t,e,r)>0;Li.exports=tf});var pt=j((b0,Ci)=>{"use strict";var rf=le(),sf=(t,e,r)=>rf(t,e,r)<0;Ci.exports=sf});var Lr=j((E0,Si)=>{"use strict";var nf=le(),of=(t,e,r)=>nf(t,e,r)===0;Si.exports=of});var Cr=j((y0,Ai)=>{"use strict";var af=le(),cf=(t,e,r)=>af(t,e,r)!==0;Ai.exports=cf});var dt=j((w0,$i)=>{"use strict";var uf=le(),lf=(t,e,r)=>uf(t,e,r)>=0;$i.exports=lf});var mt=j((v0,Oi)=>{"use strict";var ff=le(),hf=(t,e,r)=>ff(t,e,r)<=0;Oi.exports=hf});var Sr=j((L0,Ri)=>{"use strict";var pf=Lr(),df=Cr(),mf=He(),gf=dt(),bf=pt(),Ef=mt(),yf=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return pf(t,r,n);case"!=":return df(t,r,n);case">":return mf(t,r,n);case">=":return gf(t,r,n);case"<":return bf(t,r,n);case"<=":return Ef(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Ri.exports=yf});var xi=j((C0,Ii)=>{"use strict";var wf=re(),vf=Se(),{safeRe:gt,t:bt}=_e(),Lf=(t,e)=>{if(t instanceof wf)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?gt[bt.COERCEFULL]:gt[bt.COERCE]);else{let o=e.includePrerelease?gt[bt.COERCERTLFULL]:gt[bt.COERCERTL],g;for(;(g=o.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||g.index+g[0].length!==r.index+r[0].length)&&(r=g),o.lastIndex=g.index+g[1].length+g[2].length;o.lastIndex=-1}if(r===null)return null;let n=r[2],c=r[3]||"0",s=r[4]||"0",l=e.includePrerelease&&r[5]?`-${r[5]}`:"",i=e.includePrerelease&&r[6]?`+${r[6]}`:"";return vf(`${n}.${c}.${s}${l}${i}`,e)};Ii.exports=Lf});var Pi=j((S0,Ni)=>{"use strict";var Ar=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(e,r)}return this}};Ni.exports=Ar});var fe=j((A0,_i)=>{"use strict";var Cf=/\s+/g,$r=class t{constructor(e,r){if(r=Af(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Or)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Cf," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(c=>!Di(c[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let c of this.set)if(c.length===1&&Pf(c[0])){this.set=[c];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&xf)|(this.options.loose&&Nf))+":"+e,c=Ti.get(n);if(c)return c;let s=this.options.loose,l=s?ie[se.HYPHENRANGELOOSE]:ie[se.HYPHENRANGE];e=e.replace(l,qf(this.options.includePrerelease)),X("hyphen replace",e),e=e.replace(ie[se.COMPARATORTRIM],Of),X("comparator trim",e),e=e.replace(ie[se.TILDETRIM],Rf),X("tilde trim",e),e=e.replace(ie[se.CARETTRIM],If),X("caret trim",e);let i=e.split(" ").map(E=>Tf(E,this.options)).join(" ").split(/\s+/).map(E=>Mf(E,this.options));s&&(i=i.filter(E=>(X("loose invalid filter",E,this.options),!!E.match(ie[se.COMPARATORLOOSE])))),X("range list",i);let o=new Map,g=i.map(E=>new Or(E,this.options));for(let E of g){if(Di(E))return[E];o.set(E.value,E)}o.size>1&&o.has("")&&o.delete("");let f=[...o.values()];return Ti.set(n,f),f}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Fi(n,r)&&e.set.some(c=>Fi(c,r)&&n.every(s=>c.every(l=>s.intersects(l,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new $f(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(zf(this.set[r],e,this.options))return!0;return!1}};_i.exports=$r;var Sf=Pi(),Ti=new Sf,Af=at(),Or=We(),X=ze(),$f=re(),{safeRe:ie,t:se,comparatorTrimReplace:Of,tildeTrimReplace:Rf,caretTrimReplace:If}=_e(),{FLAG_INCLUDE_PRERELEASE:xf,FLAG_LOOSE:Nf}=qe(),Di=t=>t.value==="<0.0.0-0",Pf=t=>t.value==="",Fi=(t,e)=>{let r=!0,n=t.slice(),c=n.pop();for(;r&&n.length;)r=n.every(s=>c.intersects(s,e)),c=n.pop();return r},Tf=(t,e)=>(t=t.replace(ie[se.BUILD],""),X("comp",t,e),t=_f(t,e),X("caret",t),t=Df(t,e),X("tildes",t),t=Gf(t,e),X("xrange",t),t=Bf(t,e),X("stars",t),t),oe=t=>!t||t.toLowerCase()==="x"||t==="*",Df=(t,e)=>t.trim().split(/\s+/).map(r=>Ff(r,e)).join(" "),Ff=(t,e)=>{let r=e.loose?ie[se.TILDELOOSE]:ie[se.TILDE];return t.replace(r,(n,c,s,l,i)=>{X("tilde",t,n,c,s,l,i);let o;return oe(c)?o="":oe(s)?o=`>=${c}.0.0 <${+c+1}.0.0-0`:oe(l)?o=`>=${c}.${s}.0 <${c}.${+s+1}.0-0`:i?(X("replaceTilde pr",i),o=`>=${c}.${s}.${l}-${i} <${c}.${+s+1}.0-0`):o=`>=${c}.${s}.${l} <${c}.${+s+1}.0-0`,X("tilde return",o),o})},_f=(t,e)=>t.trim().split(/\s+/).map(r=>Uf(r,e)).join(" "),Uf=(t,e)=>{X("caret",t,e);let r=e.loose?ie[se.CARETLOOSE]:ie[se.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(c,s,l,i,o)=>{X("caret",t,c,s,l,i,o);let g;return oe(s)?g="":oe(l)?g=`>=${s}.0.0${n} <${+s+1}.0.0-0`:oe(i)?s==="0"?g=`>=${s}.${l}.0${n} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.0${n} <${+s+1}.0.0-0`:o?(X("replaceCaret pr",o),s==="0"?l==="0"?g=`>=${s}.${l}.${i}-${o} <${s}.${l}.${+i+1}-0`:g=`>=${s}.${l}.${i}-${o} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${i}-${o} <${+s+1}.0.0-0`):(X("no pr"),s==="0"?l==="0"?g=`>=${s}.${l}.${i}${n} <${s}.${l}.${+i+1}-0`:g=`>=${s}.${l}.${i}${n} <${s}.${+l+1}.0-0`:g=`>=${s}.${l}.${i} <${+s+1}.0.0-0`),X("caret return",g),g})},Gf=(t,e)=>(X("replaceXRanges",t,e),t.split(/\s+/).map(r=>jf(r,e)).join(" ")),jf=(t,e)=>{t=t.trim();let r=e.loose?ie[se.XRANGELOOSE]:ie[se.XRANGE];return t.replace(r,(n,c,s,l,i,o)=>{X("xRange",t,n,c,s,l,i,o);let g=oe(s),f=g||oe(l),E=f||oe(i),y=E;return c==="="&&y&&(c=""),o=e.includePrerelease?"-0":"",g?c===">"||c==="<"?n="<0.0.0-0":n="*":c&&y?(f&&(l=0),i=0,c===">"?(c=">=",f?(s=+s+1,l=0,i=0):(l=+l+1,i=0)):c==="<="&&(c="<",f?s=+s+1:l=+l+1),c==="<"&&(o="-0"),n=`${c+s}.${l}.${i}${o}`):f?n=`>=${s}.0.0${o} <${+s+1}.0.0-0`:E&&(n=`>=${s}.${l}.0${o} <${s}.${+l+1}.0-0`),X("xRange return",n),n})},Bf=(t,e)=>(X("replaceStars",t,e),t.trim().replace(ie[se.STAR],"")),Mf=(t,e)=>(X("replaceGTE0",t,e),t.trim().replace(ie[e.includePrerelease?se.GTE0PRE:se.GTE0],"")),qf=t=>(e,r,n,c,s,l,i,o,g,f,E,y)=>(oe(n)?r="":oe(c)?r=`>=${n}.0.0${t?"-0":""}`:oe(s)?r=`>=${n}.${c}.0${t?"-0":""}`:l?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,oe(g)?o="":oe(f)?o=`<${+g+1}.0.0-0`:oe(E)?o=`<${g}.${+f+1}.0-0`:y?o=`<=${g}.${f}.${E}-${y}`:t?o=`<${g}.${f}.${+E+1}-0`:o=`<=${o}`,`${r} ${o}`.trim()),zf=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(X(t[n].semver),t[n].semver!==Or.ANY&&t[n].semver.prerelease.length>0){let c=t[n].semver;if(c.major===e.major&&c.minor===e.minor&&c.patch===e.patch)return!0}return!1}return!0}});var We=j(($0,qi)=>{"use strict";var ke=Symbol("SemVer ANY"),xr=class t{static get ANY(){return ke}constructor(e,r){if(r=Ui(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Ir("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===ke?this.value="":this.value=this.operator+this.semver.version,Ir("comp",this)}parse(e){let r=this.options.loose?Gi[ji.COMPARATORLOOSE]:Gi[ji.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Bi(n[2],this.options.loose):this.semver=ke}toString(){return this.value}test(e){if(Ir("Comparator.test",e,this.options.loose),this.semver===ke||e===ke)return!0;if(typeof e=="string")try{e=new Bi(e,this.options)}catch{return!1}return Rr(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Mi(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Mi(this.value,r).test(e.semver):(r=Ui(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Rr(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Rr(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};qi.exports=xr;var Ui=at(),{safeRe:Gi,t:ji}=_e(),Rr=Sr(),Ir=ze(),Bi=re(),Mi=fe()});var Ve=j((O0,zi)=>{"use strict";var Hf=fe(),Wf=(t,e,r)=>{try{e=new Hf(e,r)}catch{return!1}return e.test(t)};zi.exports=Wf});var Wi=j((R0,Hi)=>{"use strict";var kf=fe(),Vf=(t,e)=>new kf(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Hi.exports=Vf});var Vi=j((I0,ki)=>{"use strict";var Xf=re(),Yf=fe(),Kf=(t,e,r)=>{let n=null,c=null,s=null;try{s=new Yf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!n||c.compare(l)===-1)&&(n=l,c=new Xf(n,r))}),n};ki.exports=Kf});var Yi=j((x0,Xi)=>{"use strict";var Jf=re(),Zf=fe(),Qf=(t,e,r)=>{let n=null,c=null,s=null;try{s=new Zf(e,r)}catch{return null}return t.forEach(l=>{s.test(l)&&(!n||c.compare(l)===1)&&(n=l,c=new Jf(n,r))}),n};Xi.exports=Qf});var Zi=j((N0,Ji)=>{"use strict";var Nr=re(),eh=fe(),Ki=He(),th=(t,e)=>{t=new eh(t,e);let r=new Nr("0.0.0");if(t.test(r)||(r=new Nr("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let c=t.set[n],s=null;c.forEach(l=>{let i=new Nr(l.semver.version);switch(l.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!s||Ki(i,s))&&(s=i);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),s&&(!r||Ki(r,s))&&(r=s)}return r&&t.test(r)?r:null};Ji.exports=th});var eo=j((P0,Qi)=>{"use strict";var rh=fe(),sh=(t,e)=>{try{return new rh(t,e).range||"*"}catch{return null}};Qi.exports=sh});var Et=j((T0,no)=>{"use strict";var nh=re(),so=We(),{ANY:ih}=so,oh=fe(),ah=Ve(),to=He(),ro=pt(),ch=mt(),uh=dt(),lh=(t,e,r,n)=>{t=new nh(t,n),e=new oh(e,n);let c,s,l,i,o;switch(r){case">":c=to,s=ch,l=ro,i=">",o=">=";break;case"<":c=ro,s=uh,l=to,i="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ah(t,e,n))return!1;for(let g=0;g<e.set.length;++g){let f=e.set[g],E=null,y=null;if(f.forEach(u=>{u.semver===ih&&(u=new so(">=0.0.0")),E=E||u,y=y||u,c(u.semver,E.semver,n)?E=u:l(u.semver,y.semver,n)&&(y=u)}),E.operator===i||E.operator===o||(!y.operator||y.operator===i)&&s(t,y.semver))return!1;if(y.operator===o&&l(t,y.semver))return!1}return!0};no.exports=lh});var oo=j((D0,io)=>{"use strict";var fh=Et(),hh=(t,e,r)=>fh(t,e,">",r);io.exports=hh});var co=j((F0,ao)=>{"use strict";var ph=Et(),dh=(t,e,r)=>ph(t,e,"<",r);ao.exports=dh});var fo=j((_0,lo)=>{"use strict";var uo=fe(),mh=(t,e,r)=>(t=new uo(t,r),e=new uo(e,r),t.intersects(e,r));lo.exports=mh});var po=j((U0,ho)=>{"use strict";var gh=Ve(),bh=le();ho.exports=(t,e,r)=>{let n=[],c=null,s=null,l=t.sort((f,E)=>bh(f,E,r));for(let f of l)gh(f,e,r)?(s=f,c||(c=f)):(s&&n.push([c,s]),s=null,c=null);c&&n.push([c,null]);let i=[];for(let[f,E]of n)f===E?i.push(f):!E&&f===l[0]?i.push("*"):E?f===l[0]?i.push(`<=${E}`):i.push(`${f} - ${E}`):i.push(`>=${f}`);let o=i.join(" || "),g=typeof e.raw=="string"?e.raw:String(e);return o.length<g.length?o:e}});var wo=j((G0,yo)=>{"use strict";var mo=fe(),Tr=We(),{ANY:Pr}=Tr,Xe=Ve(),Dr=le(),Eh=(t,e,r={})=>{if(t===e)return!0;t=new mo(t,r),e=new mo(e,r);let n=!1;e:for(let c of t.set){for(let s of e.set){let l=wh(c,s,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},yh=[new Tr(">=0.0.0-0")],go=[new Tr(">=0.0.0")],wh=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Pr){if(e.length===1&&e[0].semver===Pr)return!0;r.includePrerelease?t=yh:t=go}if(e.length===1&&e[0].semver===Pr){if(r.includePrerelease)return!0;e=go}let n=new Set,c,s;for(let u of t)u.operator===">"||u.operator===">="?c=bo(c,u,r):u.operator==="<"||u.operator==="<="?s=Eo(s,u,r):n.add(u.semver);if(n.size>1)return null;let l;if(c&&s){if(l=Dr(c.semver,s.semver,r),l>0)return null;if(l===0&&(c.operator!==">="||s.operator!=="<="))return null}for(let u of n){if(c&&!Xe(u,String(c),r)||s&&!Xe(u,String(s),r))return null;for(let h of e)if(!Xe(u,String(h),r))return!1;return!0}let i,o,g,f,E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:!1;E&&E.prerelease.length===1&&s.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let u of e){if(f=f||u.operator===">"||u.operator===">=",g=g||u.operator==="<"||u.operator==="<=",c){if(y&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===y.major&&u.semver.minor===y.minor&&u.semver.patch===y.patch&&(y=!1),u.operator===">"||u.operator===">="){if(i=bo(c,u,r),i===u&&i!==c)return!1}else if(c.operator===">="&&!Xe(c.semver,String(u),r))return!1}if(s){if(E&&u.semver.prerelease&&u.semver.prerelease.length&&u.semver.major===E.major&&u.semver.minor===E.minor&&u.semver.patch===E.patch&&(E=!1),u.operator==="<"||u.operator==="<="){if(o=Eo(s,u,r),o===u&&o!==s)return!1}else if(s.operator==="<="&&!Xe(s.semver,String(u),r))return!1}if(!u.operator&&(s||c)&&l!==0)return!1}return!(c&&g&&!s&&l!==0||s&&f&&!c&&l!==0||y||E)},bo=(t,e,r)=>{if(!t)return e;let n=Dr(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},Eo=(t,e,r)=>{if(!t)return e;let n=Dr(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};yo.exports=Eh});var So=j((j0,Co)=>{"use strict";var Fr=_e(),vo=qe(),vh=re(),Lo=yr(),Lh=Se(),Ch=Vn(),Sh=Yn(),Ah=Zn(),$h=ti(),Oh=si(),Rh=ii(),Ih=ai(),xh=ui(),Nh=le(),Ph=pi(),Th=mi(),Dh=ht(),Fh=yi(),_h=vi(),Uh=He(),Gh=pt(),jh=Lr(),Bh=Cr(),Mh=dt(),qh=mt(),zh=Sr(),Hh=xi(),Wh=We(),kh=fe(),Vh=Ve(),Xh=Wi(),Yh=Vi(),Kh=Yi(),Jh=Zi(),Zh=eo(),Qh=Et(),ep=oo(),tp=co(),rp=fo(),sp=po(),np=wo();Co.exports={parse:Lh,valid:Ch,clean:Sh,inc:Ah,diff:$h,major:Oh,minor:Rh,patch:Ih,prerelease:xh,compare:Nh,rcompare:Ph,compareLoose:Th,compareBuild:Dh,sort:Fh,rsort:_h,gt:Uh,lt:Gh,eq:jh,neq:Bh,gte:Mh,lte:qh,cmp:zh,coerce:Hh,Comparator:Wh,Range:kh,satisfies:Vh,toComparators:Xh,maxSatisfying:Yh,minSatisfying:Kh,minVersion:Jh,validRange:Zh,outside:Qh,gtr:ep,ltr:tp,intersects:rp,simplifyRange:sp,subset:np,SemVer:vh,re:Fr.re,src:Fr.src,tokens:Fr.t,SEMVER_SPEC_VERSION:vo.SEMVER_SPEC_VERSION,RELEASE_TYPES:vo.RELEASE_TYPES,compareIdentifiers:Lo.compareIdentifiers,rcompareIdentifiers:Lo.rcompareIdentifiers}});import{pathToFileURL as od}from"node:url";import hr from"node:process";import Hs,{format as Vo}from"util";import{resolve as Xo,normalize as Yo}from"path";import{readFileSync as Ko}from"fs";import Ws,{createRequire as qr}from"node:module";import ye from"node:path";import Jo from"node:process";import Zo,{fileURLToPath as ks}from"node:url";import Vs from"node:fs";import cr from"url";function Be(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),t.indexOf("-")===-1&&t.indexOf("_")===-1)return t;{let r="",n=!1,c=t.match(/^-+/);for(let s=c?c[0].length:0;s<t.length;s++){let l=t.charAt(s);n&&(n=!1,l=l.toUpperCase()),s!==0&&(l==="-"||l==="_")?n=!0:l!=="-"&&l!=="_"&&(r+=l)}return r}}function Xs(t,e){let r=t.toLowerCase();e=e||"-";let n="";for(let c=0;c<t.length;c++){let s=r.charAt(c),l=t.charAt(c);s!==l&&c>0?n+=`${e}${r.charAt(c)}`:n+=l}return n}function Ys(t){return t==null?!1:typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^0[^.]/.test(t)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function Qo(t){if(Array.isArray(t))return t.map(l=>typeof l!="string"?l+"":l);t=t.trim();let e=0,r=null,n=null,c=null,s=[];for(let l=0;l<t.length;l++){if(r=n,n=t.charAt(l),n===" "&&!c){r!==" "&&e++;continue}n===c?c=null:(n==="'"||n==='"')&&!c&&(c=n),s[e]||(s[e]=""),s[e]+=n}return s}var he;(function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"})(he||(he={}));var be,nr=class{constructor(e){be=e}parse(e,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),c=Qo(e),s=typeof e=="string",l=ea(Object.assign(Object.create(null),n.alias)),i=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),o=Object.assign(Object.create(null),n.default),g=n.configObjects||[],f=n.envPrefix,E=i["populate--"],y=E?"--":"_",u=Object.create(null),h=Object.create(null),p=n.__||be.format,d={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:[]},m=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,w=new RegExp("^--"+i["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(C){let A=typeof C=="object"?C.key:C,I=Object.keys(C).map(function(O){return{boolean:"bools",string:"strings",number:"numbers"}[O]}).filter(Boolean).pop();I&&(d[I][A]=!0),d.arrays[A]=!0,d.keys.push(A)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(C){d.bools[C]=!0,d.keys.push(C)}),[].concat(n.string||[]).filter(Boolean).forEach(function(C){d.strings[C]=!0,d.keys.push(C)}),[].concat(n.number||[]).filter(Boolean).forEach(function(C){d.numbers[C]=!0,d.keys.push(C)}),[].concat(n.count||[]).filter(Boolean).forEach(function(C){d.counts[C]=!0,d.keys.push(C)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(C){d.normalize[C]=!0,d.keys.push(C)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([C,A])=>{typeof A=="number"&&(d.nargs[C]=A,d.keys.push(C))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([C,A])=>{typeof A=="function"&&(d.coercions[C]=A,d.keys.push(C))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(C){d.configs[C]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([C,A])=>{(typeof A=="boolean"||typeof A=="function")&&(d.configs[C]=A)})),$e(n.key,l,n.default,d.arrays),Object.keys(o).forEach(function(C){(d.aliases[C]||[]).forEach(function(A){o[A]=o[C]})});let L=null;Bo();let a=[],b=Object.assign(Object.create(null),{_:[]}),v={};for(let C=0;C<c.length;C++){let A=c[C],I=A.replace(/^-{3,}/,"---"),O,S,_,N,U,Z;if(A!=="--"&&/^-/.test(A)&&Ke(A))$(A);else if(I.match(/^---+(=|$)/)){$(A);continue}else if(A.match(/^--.+=/)||!i["short-option-groups"]&&A.match(/^-.+=/))N=A.match(/^--?([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&(M(N[1],d.arrays)?C=F(C,N[1],c,N[2]):M(N[1],d.nargs)!==!1?C=R(C,N[1],c,N[2]):D(N[1],N[2],!0));else if(A.match(w)&&i["boolean-negation"])N=A.match(w),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],D(S,M(S,d.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!i["short-option-groups"]&&A.match(/^-[^-]+/))N=A.match(/^--?(.+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],M(S,d.arrays)?C=F(C,S,c):M(S,d.nargs)!==!1?C=R(C,S,c):(U=c[C+1],U!==void 0&&(!U.match(/^-/)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),C++):D(S,Oe(S))));else if(A.match(/^-.\..+=/))N=A.match(/^-([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&D(N[1],N[2]);else if(A.match(/^-.\..+/)&&!A.match(m))U=c[C+1],N=A.match(/^-(.\..+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],U!==void 0&&!U.match(/^-/)&&!M(S,d.bools)&&!M(S,d.counts)?(D(S,U),C++):D(S,Oe(S)));else if(A.match(/^-[^-]+/)&&!A.match(m)){_=A.slice(1,-1).split(""),O=!1;for(let ne=0;ne<_.length;ne++){if(U=A.slice(ne+2),_[ne+1]&&_[ne+1]==="="){Z=A.slice(ne+3),S=_[ne],M(S,d.arrays)?C=F(C,S,c,Z):M(S,d.nargs)!==!1?C=R(C,S,c,Z):D(S,Z),O=!0;break}if(U==="-"){D(_[ne],U);continue}if(/[A-Za-z]/.test(_[ne])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(U)&&M(U,d.bools)===!1){D(_[ne],U),O=!0;break}if(_[ne+1]&&_[ne+1].match(/\W/)){D(_[ne],U),O=!0;break}else D(_[ne],Oe(_[ne]))}S=A.slice(-1)[0],!O&&S!=="-"&&(M(S,d.arrays)?C=F(C,S,c):M(S,d.nargs)!==!1?C=R(C,S,c):(U=c[C+1],U!==void 0&&(!/^(-|--)[^-]/.test(U)||U.match(m))&&!M(S,d.bools)&&!M(S,d.counts)||/^(true|false)$/.test(U)?(D(S,U),C++):D(S,Oe(S))))}else if(A.match(/^-[0-9]$/)&&A.match(m)&&M(A.slice(1),d.bools))S=A.slice(1),D(S,Oe(S));else if(A==="--"){a=c.slice(C+1);break}else if(i["halt-at-non-option"]){a=c.slice(C);break}else $(A)}z(b,!0),z(b,!1),H(b),B(),J(b,d.aliases,o,!0),Y(b),i["set-placeholder-key"]&&V(b),Object.keys(d.counts).forEach(function(C){K(b,C.split("."))||D(C,0)}),E&&a.length&&(b[y]=[]),a.forEach(function(C){b[y].push(C)}),i["camel-case-expansion"]&&i["strip-dashed"]&&Object.keys(b).filter(C=>C!=="--"&&C.includes("-")).forEach(C=>{delete b[C]}),i["strip-aliased"]&&[].concat(...Object.keys(l).map(C=>l[C])).forEach(C=>{i["camel-case-expansion"]&&C.includes("-")&&delete b[C.split(".").map(A=>Be(A)).join(".")],delete b[C]});function $(C){let A=x("_",C);(typeof A=="string"||typeof A=="number")&&b._.push(A)}function R(C,A,I,O){let S,_=M(A,d.nargs);if(_=typeof _!="number"||isNaN(_)?1:_,_===0)return ge(O)||(L=Error(p("Argument unexpected for: %s",A))),D(A,Oe(A)),C;let N=ge(O)?0:1;if(i["nargs-eats-options"])I.length-(C+1)+N<_&&(L=Error(p("Not enough arguments following: %s",A))),N=_;else{for(S=C+1;S<I.length&&(!I[S].match(/^-[^0-9]/)||I[S].match(m)||Ke(I[S]));S++)N++;N<_&&(L=Error(p("Not enough arguments following: %s",A)))}let U=Math.min(N,_);for(!ge(O)&&U>0&&(D(A,O),U--),S=C+1;S<U+C+1;S++)D(A,I[S]);return C+U}function F(C,A,I,O){let S=[],_=O||I[C+1],N=M(A,d.nargs);if(M(A,d.bools)&&!/^(true|false)$/.test(_))S.push(!0);else if(ge(_)||ge(O)&&/^-/.test(_)&&!m.test(_)&&!Ke(_)){if(o[A]!==void 0){let U=o[A];S=Array.isArray(U)?U:[U]}}else{ge(O)||S.push(W(A,O,!0));for(let U=C+1;U<I.length&&!(!i["greedy-arrays"]&&S.length>0||N&&typeof N=="number"&&S.length>=N||(_=I[U],/^-/.test(_)&&!m.test(_)&&!Ke(_)));U++)C=U,S.push(W(A,_,s))}return typeof N=="number"&&(N&&S.length<N||isNaN(N)&&S.length===0)&&(L=Error(p("Not enough arguments following: %s",A))),D(A,S),C}function D(C,A,I=s){if(/-/.test(C)&&i["camel-case-expansion"]){let _=C.split(".").map(function(N){return Be(N)}).join(".");G(C,_)}let O=W(C,A,I),S=C.split(".");te(b,S,O),d.aliases[C]&&d.aliases[C].forEach(function(_){let N=_.split(".");te(b,N,O)}),S.length>1&&i["dot-notation"]&&(d.aliases[S[0]]||[]).forEach(function(_){let N=_.split("."),U=[].concat(S);U.shift(),N=N.concat(U),(d.aliases[C]||[]).includes(N.join("."))||te(b,N,O)}),M(C,d.normalize)&&!M(C,d.arrays)&&[C].concat(d.aliases[C]||[]).forEach(function(N){Object.defineProperty(v,N,{enumerable:!0,get(){return A},set(U){A=typeof U=="string"?be.normalize(U):U}})})}function G(C,A){d.aliases[C]&&d.aliases[C].length||(d.aliases[C]=[A],u[A]=!0),d.aliases[A]&&d.aliases[A].length||G(A,C)}function W(C,A,I){I&&(A=ta(A)),(M(C,d.bools)||M(C,d.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(S){return x(C,S)}):x(C,A);return M(C,d.counts)&&(ge(O)||typeof O=="boolean")&&(O=yt()),M(C,d.normalize)&&M(C,d.arrays)&&(Array.isArray(A)?O=A.map(S=>be.normalize(S)):O=be.normalize(A)),O}function x(C,A){return!i["parse-positional-numbers"]&&C==="_"||!M(C,d.strings)&&!M(C,d.bools)&&!Array.isArray(A)&&(Ys(A)&&i["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!ge(A)&&M(C,d.numbers))&&(A=Number(A)),A}function H(C){let A=Object.create(null);J(A,d.aliases,o),Object.keys(d.configs).forEach(function(I){let O=C[I]||A[I];if(O)try{let S=null,_=be.resolve(be.cwd(),O),N=d.configs[I];if(typeof N=="function"){try{S=N(_)}catch(U){S=U}if(S instanceof Error){L=S;return}}else S=be.require(_);k(S)}catch(S){S.name==="PermissionDenied"?L=S:C[I]&&(L=Error(p("Invalid JSON config file: %s",O)))}})}function k(C,A){Object.keys(C).forEach(function(I){let O=C[I],S=A?A+"."+I:I;typeof O=="object"&&O!==null&&!Array.isArray(O)&&i["dot-notation"]?k(O,S):(!K(b,S.split("."))||M(S,d.arrays)&&i["combine-arrays"])&&D(S,O)})}function B(){typeof g<"u"&&g.forEach(function(C){k(C)})}function z(C,A){if(typeof f>"u")return;let I=typeof f=="string"?f:"",O=be.env();Object.keys(O).forEach(function(S){if(I===""||S.lastIndexOf(I,0)===0){let _=S.split("__").map(function(N,U){return U===0&&(N=N.substring(I.length)),Be(N)});(A&&d.configs[_.join(".")]||!A)&&!K(C,_)&&D(_.join("."),O[S])}})}function Y(C){let A,I=new Set;Object.keys(C).forEach(function(O){if(!I.has(O)&&(A=M(O,d.coercions),typeof A=="function"))try{let S=x(O,A(C[O]));[].concat(d.aliases[O]||[],O).forEach(_=>{I.add(_),C[_]=S})}catch(S){L=S}})}function V(C){return d.keys.forEach(A=>{~A.indexOf(".")||typeof C[A]>"u"&&(C[A]=void 0)}),C}function J(C,A,I,O=!1){Object.keys(I).forEach(function(S){K(C,S.split("."))||(te(C,S.split("."),I[S]),O&&(h[S]=!0),(A[S]||[]).forEach(function(_){K(C,_.split("."))||te(C,_.split("."),I[S])}))})}function K(C,A){let I=C;i["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(S){I=I[S]||{}});let O=A[A.length-1];return typeof I!="object"?!1:O in I}function te(C,A,I){let O=C;i["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Z){Z=zr(Z),typeof O=="object"&&O[Z]===void 0&&(O[Z]={}),typeof O[Z]!="object"||Array.isArray(O[Z])?(Array.isArray(O[Z])?O[Z].push({}):O[Z]=[O[Z],{}],O=O[Z][O[Z].length-1]):O=O[Z]});let S=zr(A[A.length-1]),_=M(A.join("."),d.arrays),N=Array.isArray(I),U=i["duplicate-arguments-array"];!U&&M(S,d.nargs)&&(U=!0,(!ge(O[S])&&d.nargs[S]===1||Array.isArray(O[S])&&O[S].length===d.nargs[S])&&(O[S]=void 0)),I===yt()?O[S]=yt(O[S]):Array.isArray(O[S])?U&&_&&N?O[S]=i["flatten-duplicate-arrays"]?O[S].concat(I):(Array.isArray(O[S][0])?O[S]:[O[S]]).concat([I]):!U&&!!_==!!N?O[S]=I:O[S]=O[S].concat([I]):O[S]===void 0&&_?O[S]=N?I:[I]:U&&!(O[S]===void 0||M(S,d.counts)||M(S,d.bools))?O[S]=[O[S],I]:O[S]=I}function $e(...C){C.forEach(function(A){Object.keys(A||{}).forEach(function(I){d.aliases[I]||(d.aliases[I]=[].concat(l[I]||[]),d.aliases[I].concat(I).forEach(function(O){if(/-/.test(O)&&i["camel-case-expansion"]){let S=Be(O);S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].concat(I).forEach(function(O){if(O.length>1&&/[A-Z]/.test(O)&&i["camel-case-expansion"]){let S=Xs(O,"-");S!==I&&d.aliases[I].indexOf(S)===-1&&(d.aliases[I].push(S),u[S]=!0)}}),d.aliases[I].forEach(function(O){d.aliases[O]=[I].concat(d.aliases[I].filter(function(S){return O!==S}))}))})})}function M(C,A){let I=[].concat(d.aliases[C]||[],C),O=Object.keys(A),S=I.find(_=>O.includes(_));return S?A[S]:!1}function Ye(C){let A=Object.keys(d);return[].concat(A.map(O=>d[O])).some(function(O){return Array.isArray(O)?O.includes(C):O[C]})}function Fo(C,...A){return[].concat(...A).some(function(O){let S=C.match(O);return S&&Ye(S[1])})}function _o(C){if(C.match(m)||!C.match(/^-[^-]+/))return!1;let A=!0,I,O=C.slice(1).split("");for(let S=0;S<O.length;S++){if(I=C.slice(S+2),!Ye(O[S])){A=!1;break}if(O[S+1]&&O[S+1]==="="||I==="-"||/[A-Za-z]/.test(O[S])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)||O[S+1]&&O[S+1].match(/\W/))break}return A}function Ke(C){return i["unknown-options-as-args"]&&Uo(C)}function Uo(C){return C=C.replace(/^-{3,}/,"--"),C.match(m)||_o(C)?!1:!Fo(C,/^-+([^=]+?)=[\s\S]*$/,w,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Oe(C){return!M(C,d.bools)&&!M(C,d.counts)&&`${C}`in o?o[C]:Go(jo(C))}function Go(C){return{[he.BOOLEAN]:!0,[he.STRING]:"",[he.NUMBER]:void 0,[he.ARRAY]:[]}[C]}function jo(C){let A=he.BOOLEAN;return M(C,d.strings)?A=he.STRING:M(C,d.numbers)?A=he.NUMBER:M(C,d.bools)?A=he.BOOLEAN:M(C,d.arrays)&&(A=he.ARRAY),A}function ge(C){return C===void 0}function Bo(){Object.keys(d.counts).find(C=>M(C,d.arrays)?(L=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",C)),!0):M(C,d.nargs)?(L=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",C)),!0):!1)}return{aliases:Object.assign({},d.aliases),argv:Object.assign(v,b),configuration:i,defaulted:Object.assign({},h),error:L,newAliases:Object.assign({},u)}}};function ea(t){let e=[],r=Object.create(null),n=!0;for(Object.keys(t).forEach(function(c){e.push([].concat(t[c],c))});n;){n=!1;for(let c=0;c<e.length;c++)for(let s=c+1;s<e.length;s++)if(e[c].filter(function(i){return e[s].indexOf(i)!==-1}).length){e[c]=e[c].concat(e[s]),e.splice(s,1),n=!0;break}}return e.forEach(function(c){c=c.filter(function(l,i,o){return o.indexOf(l)===i});let s=c.pop();s!==void 0&&typeof s=="string"&&(r[s]=c)}),r}function yt(t){return t!==void 0?t+1:1}function zr(t){return t==="__proto__"?"___proto___":t}function ta(t){return typeof t=="string"&&(t[0]==="'"||t[0]==='"')&&t[t.length-1]===t[0]?t.substring(1,t.length-1):t}var wt,vt,Lt,Hr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,Wr=(vt=(wt=process==null?void 0:process.versions)===null||wt===void 0?void 0:wt.node)!==null&&vt!==void 0?vt:(Lt=process==null?void 0:process.version)===null||Lt===void 0?void 0:Lt.slice(1);if(Wr&&Number(Wr.match(/^([^.]+)/)[1])<Hr)throw Error(`yargs parser supports a minimum Node.js version of ${Hr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var ra=process?process.env:{},kr=qr?qr(import.meta.url):void 0,Ks=new nr({cwd:process.cwd,env:()=>ra,format:Vo,normalize:Yo,resolve:Xo,require:t=>{if(typeof kr<"u")return kr(t);if(t.match(/\.json$/))return JSON.parse(Ko(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),Pe=function(e,r){return Ks.parse(e.slice(),r).argv};Pe.detailed=function(t,e){return Ks.parse(t.slice(),e)};Pe.camelCase=Be;Pe.decamelize=Xs;Pe.looksLikeNumber=Ys;var Js=t=>typeof t=="object"&&t!==null,Vr=t=>Js(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date)&&!(globalThis.Blob&&t instanceof globalThis.Blob),sa=Symbol("mapObjectSkip"),ir=(t,e,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(t))return n.get(t);n.set(t,r.target);let{target:c}=r;delete r.target;let s=l=>l.map(i=>Vr(i)?ir(i,e,r,n):i);if(Array.isArray(t))return s(t);for(let[l,i]of Object.entries(t)){let o=e(l,i,t);if(o===sa)continue;let[g,f,{shouldRecurse:E=!0}={}]=o;g!=="__proto__"&&(r.deep&&E&&Vr(f)&&(f=Array.isArray(f)?s(f):ir(f,e,r,n)),c[g]=f)}return c};function na(t,e,r){if(!Js(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);if(Array.isArray(t))throw new TypeError("Expected an object, got an array");return ir(t,e,r)}var ia=/[\p{Lu}]/u,oa=/[\p{Ll}]/u,Xr=/^[\p{Lu}](?![\p{Lu}])/gu,Zs=/([\p{Alpha}\p{N}_]|$)/u,ur=/[_.\- ]+/,aa=new RegExp("^"+ur.source),Yr=new RegExp(ur.source+Zs.source,"gu"),Kr=new RegExp("\\d+"+Zs.source,"gu"),ca=(t,e,r,n)=>{let c=!1,s=!1,l=!1,i=!1;for(let o=0;o<t.length;o++){let g=t[o];i=o>2?t[o-3]==="-":!0,c&&ia.test(g)?(t=t.slice(0,o)+"-"+t.slice(o),c=!1,l=s,s=!0,o++):s&&l&&oa.test(g)&&(!i||n)?(t=t.slice(0,o-1)+"-"+t.slice(o-1),l=s,s=!1,c=!0):(c=e(g)===g&&r(g)!==g,l=s,s=r(g)===g&&e(g)!==g)}return t},ua=(t,e)=>(Xr.lastIndex=0,t.replaceAll(Xr,r=>e(r))),la=(t,e)=>(Yr.lastIndex=0,Kr.lastIndex=0,t.replaceAll(Kr,(r,n,c)=>["_","-"].includes(t.charAt(c+r.length))?r:e(r)).replaceAll(Yr,(r,n)=>e(n)));function fa(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),n=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?ur.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=ca(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(aa,""),t=e.preserveConsecutiveUppercase?ua(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),la(t,n))}var ha=class extends Map{#n=0;#r=new Map;#e=new Map;#g;#w;#S;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#g=e.maxSize,this.#w=e.maxAge||Number.POSITIVE_INFINITY,this.#S=e.onEviction}get __oldCache(){return this.#e}#m(e){if(typeof this.#S=="function")for(let[r,n]of e)this.#S(r,n.value)}#f(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.#S=="function"&&this.#S(e,r.value),this.delete(e)):!1}#o(e,r){if(this.#f(e,r)===!1)return r.value}#a(e,r){return r.expiry?this.#o(e,r):r.value}#t(e,r){let n=r.get(e);return this.#a(e,n)}#i(e,r){this.#r.set(e,r),this.#n++,this.#n>=this.#g&&(this.#n=0,this.#m(this.#e),this.#e=this.#r,this.#r=new Map)}#s(e,r){this.#e.delete(e),this.#i(e,r)}*#l(){for(let e of this.#e){let[r,n]=e;this.#r.has(r)||this.#f(r,n)===!1&&(yield e)}for(let e of this.#r){let[r,n]=e;this.#f(r,n)===!1&&(yield e)}}get(e){if(this.#r.has(e)){let r=this.#r.get(e);return this.#a(e,r)}if(this.#e.has(e)){let r=this.#e.get(e);if(this.#f(e,r)===!1)return this.#s(e,r),r.value}}set(e,r,{maxAge:n=this.#w}={}){let c=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#r.has(e)?this.#r.set(e,{value:r,expiry:c}):this.#i(e,{value:r,expiry:c}),this}has(e){return this.#r.has(e)?!this.#f(e,this.#r.get(e)):this.#e.has(e)?!this.#f(e,this.#e.get(e)):!1}peek(e){if(this.#r.has(e))return this.#t(e,this.#r);if(this.#e.has(e))return this.#t(e,this.#e)}expiresIn(e){let r=this.#r.get(e)??this.#e.get(e);if(r)return r.expiry?r.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){let r=this.#r.delete(e);return r&&this.#n--,this.#e.delete(e)||r}clear(){this.#r.clear(),this.#e.clear(),this.#n=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this.#l()],n=r.length-e;n<0?(this.#r=new Map(r),this.#e=new Map,this.#n=r.length):(n>0&&this.#m(r.slice(0,n)),this.#e=new Map(r.slice(n)),this.#r=new Map,this.#n=0),this.#g=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#r){let[r,n]=e;this.#f(r,n)===!1&&(yield[r,n.value])}for(let e of this.#e){let[r,n]=e;this.#r.has(r)||this.#f(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let e=[...this.#r];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.#f(c,s)===!1&&(yield[c,s.value])}e=[...this.#e];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.#r.has(c)||this.#f(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this.#l())yield[e,r.value]}get size(){if(!this.#n)return this.#e.size;let e=0;for(let r of this.#e.keys())this.#r.has(r)||e++;return Math.min(this.#n+e,this.#g)}get maxSize(){return this.#g}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[n,c]of this.entriesAscending())e.call(r,c,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},pa=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),Ct=new ha({maxSize:1e5}),xe=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),Ne=(t,e={},r=new WeakMap,n)=>{if(!xe(t))return t;if(r.has(t))return r.get(t);let{exclude:c,pascalCase:s=!1,stopPaths:l,deep:i=!1,preserveConsecutiveUppercase:o=!1}=e,g=new Set(l);if(Array.isArray(t)){let h=[];r.set(t,h);for(let p of t)h.push(xe(p)?Ne(p,e,r,n):p);return h}let f={};r.set(t,f);let y=na(t,(h=>(p,d)=>{if(i&&xe(d)){let m=h===void 0?p:`${h}.${p}`;g.has(m)||(d=Array.isArray(d)?d.map(w=>xe(w)?Ne(w,e,r,m):w):Ne(d,e,r,m))}if(typeof p=="string"&&!(c&&pa(c,p))){let m=s?`${p}_`:p;if(Ct.has(m))p=Ct.get(m);else{let w=fa(p,{pascalCase:s,locale:!1,preserveConsecutiveUppercase:o});p.length<100&&Ct.set(m,w),p=w}}return[p,d]})(n),{deep:!1});Object.assign(f,y);let u=Object.getOwnPropertySymbols(t);for(let h of u)f[h]=i&&xe(t[h])?Ne(t[h],e,r,n):t[h];return f};function Qs(t,e){let r=new WeakMap;return Array.isArray(t)?t.map((n,c)=>xe(n)?Ne(n,e,r,String(c)):n):Ne(t,e,r)}function en(t){let e=0,r=t.length;for(;e<r&&(t[e]==="\r"||t[e]===`
7
7
  `);)e++;for(;r>e&&(t[r-1]==="\r"||t[r-1]===`
8
- `);)r--;return e>0||r<t.length?t.slice(e,r):t}function pa(t){let e=t.match(/^[ \t]*(?=\S)/gm);if(!e)return t;let r=Number.POSITIVE_INFINITY;for(let i of e)r=Math.min(r,i.length);return r===0||r===Number.POSITIVE_INFINITY?t:t.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),"")}function da(t,e=1,r={}){let{indent:i=" ",includeEmptyLines:c=!1}=r;if(typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof i!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i}\``);if(e===0)return t;let s=c?/^/gm:/^(?!\s*$)/gm;return t.replace(s,i.repeat(e))}function lr(t,e=0,r={}){return da(pa(t),e,r)}var Jr=t=>t instanceof URL?ks(t):t;function ma(t,{cwd:e=Ko.cwd(),type:r="file",stopAt:i}={}){let c=ye.resolve(Jr(e)??""),{root:s}=ye.parse(c);i=ye.resolve(c,Jr(i)??s);let l=ye.isAbsolute(t);for(;c;){let n=l?t:ye.join(c,t);try{let o=Vs.statSync(n,{throwIfNoEntry:!1});if(r==="file"&&o?.isFile()||r==="directory"&&o?.isDirectory())return n}catch{}if(c===i||c===s)break;c=ye.dirname(c)}}function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Re={},Ze={exports:{}},Zr;function ga(){if(Zr)return Ze.exports;Zr=1;let t=process||{},e=t.argv||[],r=t.env||{},i=!(r.NO_COLOR||e.includes("--no-color"))&&(!!r.FORCE_COLOR||e.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),c=(n,o,g=n)=>f=>{let E=""+f,y=E.indexOf(o,n.length);return~y?n+s(E,o,g,y)+o:n+E+o},s=(n,o,g,f)=>{let E="",y=0;do E+=n.substring(y,f)+g,y=f+o.length,f=n.indexOf(o,y);while(~f);return E+n.substring(y)},l=(n=i)=>{let o=n?c:()=>String;return{isColorSupported:n,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};return Ze.exports=l(),Ze.exports.createColors=l,Ze.exports}var Ue={},Qr;function ba(){return Qr||(Qr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.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,Ue.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}),Ue}var St={},Ie={},es;function Ea(){if(es)return Ie;es=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isIdentifierChar=o,Ie.isIdentifierName=g,Ie.isIdentifierStart=n;let 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-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",e="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",r=new RegExp("["+t+"]"),i=new RegExp("["+t+e+"]");t=e=null;let c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(f,E){let y=65536;for(let u=0,h=E.length;u<h;u+=2){if(y+=E[u],y>f)return!1;if(y+=E[u+1],y>=f)return!0}return!1}function n(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):l(f,c)}function o(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):l(f,c)||l(f,s)}function g(f){let E=!0;for(let y=0;y<f.length;y++){let u=f.charCodeAt(y);if((u&64512)===55296&&y+1<f.length){let h=f.charCodeAt(++y);(h&64512)===56320&&(u=65536+((u&1023)<<10)+(h&1023))}if(E){if(E=!1,!n(u))return!1}else if(!o(u))return!1}return!E}return Ie}var Ee={},ts;function ya(){if(ts)return Ee;ts=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isKeyword=o,Ee.isReservedWord=c,Ee.isStrictBindOnlyReservedWord=l,Ee.isStrictBindReservedWord=n,Ee.isStrictReservedWord=s;let t={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"]},e=new Set(t.keyword),r=new Set(t.strict),i=new Set(t.strictBind);function c(g,f){return f&&g==="await"||g==="enum"}function s(g,f){return c(g,f)||r.has(g)}function l(g){return i.has(g)}function n(g,f){return s(g,f)||l(g)}function o(g){return e.has(g)}return Ee}var rs;function wa(){return rs||(rs=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=Ea(),r=ya()})(St)),St}var ss;function va(){if(ss)return Re;ss=1,Object.defineProperty(Re,"__esModule",{value:!0});var t=ga(),e=ba(),r=wa();function i(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}let c=(C,a)=>b=>C(a(b));function s(C){return{keyword:C.cyan,capitalized:C.yellow,jsxIdentifier:C.yellow,punctuator:C.yellow,number:C.magenta,string:C.green,regex:C.magenta,comment:C.gray,invalid:c(c(C.white,C.bgRed),C.bold),gutter:C.gray,marker:c(C.red,C.bold),message:c(C.red,C.bold),reset:C.reset}}let l=s(t.createColors(!0)),n=s(t.createColors(!1));function o(C){return C?l:n}let g=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,E=/^[()[\]{}]$/,y;{let C=/^[a-z][\w-]*$/i,a=function(b,v,$){if(b.type==="name"){if(r.isKeyword(b.value)||r.isStrictReservedWord(b.value,!0)||g.has(b.value))return"keyword";if(C.test(b.value)&&($[v-1]==="<"||$.slice(v-2,v)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&E.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};y=function*(b){let v;for(;v=e.default.exec(b);){let $=e.matchToToken(v);yield{type:a($,v.index,b),value:$.value}}}}function u(C){if(C==="")return"";let a=o(!0),b="";for(let{type:v,value:$}of y(C))v in a?b+=$.split(f).map(R=>a[v](R)).join(`
9
- `):b+=$;return b}let h=!1,p=/\r\n|[\n\r\u2028\u2029]/;function d(C,a,b){let v=Object.assign({column:0,line:-1},C.start),$=Object.assign({},v,C.end),{linesAbove:R=2,linesBelow:F=3}=b||{},D=v.line,G=v.column,W=$.line,x=$.column,H=Math.max(D-(R+1),0),k=Math.min(a.length,W+F);D===-1&&(H=0),W===-1&&(k=a.length);let B=W-D,z={};if(B)for(let Y=0;Y<=B;Y++){let V=Y+D;if(!G)z[V]=!0;else if(Y===0){let J=a[V-1].length;z[V]=[G,J-G+1]}else if(Y===B)z[V]=[0,x];else{let J=a[V-Y].length;z[V]=[0,J]}}else G===x?G?z[D]=[G,0]:z[D]=!0:z[D]=[G,x-G];return{start:H,end:k,markerLines:z}}function m(C,a,b={}){let v=b.forceColor||i()&&b.highlightCode,$=o(v),R=C.split(p),{start:F,end:D,markerLines:G}=d(a,R,b),W=a.start&&typeof a.start.column=="number",x=String(D).length,k=(v?u(C):C).split(p,D).slice(F,D).map((B,z)=>{let Y=F+1+z,J=` ${` ${Y}`.slice(-x)} |`,K=G[Y],te=!G[Y+1];if(K){let $e="";if(Array.isArray(K)){let M=B.slice(0,Math.max(K[0]-1,0)).replace(/[^\t]/g," "),Ye=K[1]||1;$e=[`
8
+ `);)r--;return e>0||r<t.length?t.slice(e,r):t}function da(t){let e=t.match(/^[ \t]*(?=\S)/gm);if(!e)return t;let r=Number.POSITIVE_INFINITY;for(let n of e)r=Math.min(r,n.length);return r===0||r===Number.POSITIVE_INFINITY?t:t.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),"")}function ma(t,e=1,r={}){let{indent:n=" ",includeEmptyLines:c=!1}=r;if(typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return t;let s=c?/^/gm:/^(?!\s*$)/gm;return t.replace(s,n.repeat(e))}function lr(t,e=0,r={}){return ma(da(t),e,r)}var Jr=t=>t instanceof URL?ks(t):t;function ga(t,{cwd:e=Jo.cwd(),type:r="file",stopAt:n}={}){let c=ye.resolve(Jr(e)??""),{root:s}=ye.parse(c);n=ye.resolve(c,Jr(n)??s);let l=ye.isAbsolute(t);for(;c;){let i=l?t:ye.join(c,t);try{let o=Vs.statSync(i,{throwIfNoEntry:!1});if(r==="file"&&o?.isFile()||r==="directory"&&o?.isDirectory())return i}catch{}if(c===n||c===s)break;c=ye.dirname(c)}}function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Re={},Ze={exports:{}},Zr;function ba(){if(Zr)return Ze.exports;Zr=1;let t=process||{},e=t.argv||[],r=t.env||{},n=!(r.NO_COLOR||e.includes("--no-color"))&&(!!r.FORCE_COLOR||e.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&r.TERM!=="dumb"||!!r.CI),c=(i,o,g=i)=>f=>{let E=""+f,y=E.indexOf(o,i.length);return~y?i+s(E,o,g,y)+o:i+E+o},s=(i,o,g,f)=>{let E="",y=0;do E+=i.substring(y,f)+g,y=f+o.length,f=i.indexOf(o,y);while(~f);return E+i.substring(y)},l=(i=n)=>{let o=i?c:()=>String;return{isColorSupported:i,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};return Ze.exports=l(),Ze.exports.createColors=l,Ze.exports}var Ue={},Qr;function Ea(){return Qr||(Qr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.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,Ue.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!!(t[3]||t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}),Ue}var St={},Ie={},es;function ya(){if(es)return Ie;es=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.isIdentifierChar=o,Ie.isIdentifierName=g,Ie.isIdentifierStart=i;let 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-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",e="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",r=new RegExp("["+t+"]"),n=new RegExp("["+t+e+"]");t=e=null;let c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(f,E){let y=65536;for(let u=0,h=E.length;u<h;u+=2){if(y+=E[u],y>f)return!1;if(y+=E[u+1],y>=f)return!0}return!1}function i(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&r.test(String.fromCharCode(f)):l(f,c)}function o(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&n.test(String.fromCharCode(f)):l(f,c)||l(f,s)}function g(f){let E=!0;for(let y=0;y<f.length;y++){let u=f.charCodeAt(y);if((u&64512)===55296&&y+1<f.length){let h=f.charCodeAt(++y);(h&64512)===56320&&(u=65536+((u&1023)<<10)+(h&1023))}if(E){if(E=!1,!i(u))return!1}else if(!o(u))return!1}return!E}return Ie}var Ee={},ts;function wa(){if(ts)return Ee;ts=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isKeyword=o,Ee.isReservedWord=c,Ee.isStrictBindOnlyReservedWord=l,Ee.isStrictBindReservedWord=i,Ee.isStrictReservedWord=s;let t={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"]},e=new Set(t.keyword),r=new Set(t.strict),n=new Set(t.strictBind);function c(g,f){return f&&g==="await"||g==="enum"}function s(g,f){return c(g,f)||r.has(g)}function l(g){return n.has(g)}function i(g,f){return s(g,f)||l(g)}function o(g){return e.has(g)}return Ee}var rs;function va(){return rs||(rs=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=ya(),r=wa()})(St)),St}var ss;function La(){if(ss)return Re;ss=1,Object.defineProperty(Re,"__esModule",{value:!0});var t=ba(),e=Ea(),r=va();function n(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}let c=(L,a)=>b=>L(a(b));function s(L){return{keyword:L.cyan,capitalized:L.yellow,jsxIdentifier:L.yellow,punctuator:L.yellow,number:L.magenta,string:L.green,regex:L.magenta,comment:L.gray,invalid:c(c(L.white,L.bgRed),L.bold),gutter:L.gray,marker:c(L.red,L.bold),message:c(L.red,L.bold),reset:L.reset}}let l=s(t.createColors(!0)),i=s(t.createColors(!1));function o(L){return L?l:i}let g=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,E=/^[()[\]{}]$/,y;{let L=/^[a-z][\w-]*$/i,a=function(b,v,$){if(b.type==="name"){if(r.isKeyword(b.value)||r.isStrictReservedWord(b.value,!0)||g.has(b.value))return"keyword";if(L.test(b.value)&&($[v-1]==="<"||$.slice(v-2,v)==="</"))return"jsxIdentifier";if(b.value[0]!==b.value[0].toLowerCase())return"capitalized"}return b.type==="punctuator"&&E.test(b.value)?"bracket":b.type==="invalid"&&(b.value==="@"||b.value==="#")?"punctuator":b.type};y=function*(b){let v;for(;v=e.default.exec(b);){let $=e.matchToToken(v);yield{type:a($,v.index,b),value:$.value}}}}function u(L){if(L==="")return"";let a=o(!0),b="";for(let{type:v,value:$}of y(L))v in a?b+=$.split(f).map(R=>a[v](R)).join(`
9
+ `):b+=$;return b}let h=!1,p=/\r\n|[\n\r\u2028\u2029]/;function d(L,a,b){let v=Object.assign({column:0,line:-1},L.start),$=Object.assign({},v,L.end),{linesAbove:R=2,linesBelow:F=3}=b||{},D=v.line,G=v.column,W=$.line,x=$.column,H=Math.max(D-(R+1),0),k=Math.min(a.length,W+F);D===-1&&(H=0),W===-1&&(k=a.length);let B=W-D,z={};if(B)for(let Y=0;Y<=B;Y++){let V=Y+D;if(!G)z[V]=!0;else if(Y===0){let J=a[V-1].length;z[V]=[G,J-G+1]}else if(Y===B)z[V]=[0,x];else{let J=a[V-Y].length;z[V]=[0,J]}}else G===x?G?z[D]=[G,0]:z[D]=!0:z[D]=[G,x-G];return{start:H,end:k,markerLines:z}}function m(L,a,b={}){let v=b.forceColor||n()&&b.highlightCode,$=o(v),R=L.split(p),{start:F,end:D,markerLines:G}=d(a,R,b),W=a.start&&typeof a.start.column=="number",x=String(D).length,k=(v?u(L):L).split(p,D).slice(F,D).map((B,z)=>{let Y=F+1+z,J=` ${` ${Y}`.slice(-x)} |`,K=G[Y],te=!G[Y+1];if(K){let $e="";if(Array.isArray(K)){let M=B.slice(0,Math.max(K[0]-1,0)).replace(/[^\t]/g," "),Ye=K[1]||1;$e=[`
10
10
  `,$.gutter(J.replace(/\d/g," "))," ",M,$.marker("^").repeat(Ye)].join(""),te&&b.message&&($e+=" "+$.message(b.message))}return[$.marker(">"),$.gutter(J),B.length>0?` ${B}`:"",$e].join("")}else return` ${$.gutter(J)}${B.length>0?` ${B}`:""}`}).join(`
11
11
  `);return b.message&&!W&&(k=`${" ".repeat(x+1)}${b.message}
12
- ${k}`),v?$.reset(k):k}function w(C,a,b,v={}){if(!h){h=!0;let R="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(R,"DeprecationWarning");else{let F=new Error(R);F.name="DeprecationWarning",console.warn(new Error(R))}}return b=Math.max(b,0),m(C,{start:{column:b,line:a}},v)}return Re.codeFrameColumns=m,Re.default=w,Re.highlight=u,Re}var La=va();function Ca(t,e){let r=e===0?-1:t.lastIndexOf(`
13
- `,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function Sa(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let i=Ca(t,e);return r?{line:i.line+1,column:i.column+1}:i}var Aa=t=>`\\u{${t.codePointAt(0).toString(16)}}`,or=class t extends Error{name="JSONError";fileName;#i;#r;#e;#g;#w;constructor(e){if(typeof e=="string")super(),this.#e=e;else{let{jsonParseError:r,fileName:i,input:c}=e;super(void 0,{cause:r}),this.#i=c,this.#r=r,this.fileName=i}Error.captureStackTrace?.(this,t)}get message(){this.#e??=`${Oa(this.#r.message)}${this.#i===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${e?`
12
+ ${k}`),v?$.reset(k):k}function w(L,a,b,v={}){if(!h){h=!0;let R="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(R,"DeprecationWarning");else{let F=new Error(R);F.name="DeprecationWarning",console.warn(new Error(R))}}return b=Math.max(b,0),m(L,{start:{column:b,line:a}},v)}return Re.codeFrameColumns=m,Re.default=w,Re.highlight=u,Re}var Ca=La();function Sa(t,e){let r=e===0?-1:t.lastIndexOf(`
13
+ `,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function Aa(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let n=Sa(t,e);return r?{line:n.line+1,column:n.column+1}:n}var $a=t=>`\\u{${t.codePointAt(0).toString(16)}}`,or=class t extends Error{name="JSONError";fileName;#n;#r;#e;#g;#w;constructor(e){if(typeof e=="string")super(),this.#e=e;else{let{jsonParseError:r,fileName:n,input:c}=e;super(void 0,{cause:r}),this.#n=c,this.#r=r,this.fileName=n}Error.captureStackTrace?.(this,t)}get message(){this.#e??=`${Ra(this.#r.message)}${this.#n===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${e?`
14
14
 
15
15
  ${e}
16
- `:""}`}set message(e){this.#e=e}#S(e){if(!this.#r)return;let r=this.#i,i=$a(r,this.#r.message);if(i)return La.codeFrameColumns(r,{start:i},{highlightCode:e})}get codeFrame(){return this.#g??=this.#S(!0),this.#g}get rawCodeFrame(){return this.#w??=this.#S(!1),this.#w}},$a=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:i,line:c,column:s}=r.groups;return c&&s?{line:Number(c),column:Number(s)}:Sa(t,Number(i),{oneBased:!0})},Oa=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,i)=>`"${i}"(${Aa(i)})`);function Ra(t,e,r){try{return JSON.parse(t,e)}catch(i){throw new or({jsonParseError:i,fileName:r,input:t})}}var At,is;function ti(){return is||(is=1,At=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),At}var $t,ns;function ri(){if(ns)return $t;ns=1;let t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,c=e-6;return $t={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$t}var Qe={exports:{}},os;function Ia(){return os||(os=1,(function(t,e){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=ri(),s=ti();e=t.exports={};let l=e.re=[],n=e.safeRe=[],o=e.src=[],g=e.safeSrc=[],f=e.t={},E=0,y="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",c],[y,i]],h=d=>{for(let[m,w]of u)d=d.split(`${m}*`).join(`${m}{0,${w}}`).split(`${m}+`).join(`${m}{1,${w}}`);return d},p=(d,m,w)=>{let C=h(m),a=E++;s(d,a,m),f[d]=a,o[a]=m,g[a]=C,l[a]=new RegExp(m,w?"g":void 0),n[a]=new RegExp(C,w?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),p("MAINVERSION",`(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${o[f.PRERELEASEIDENTIFIER]}(?:\\.${o[f.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[f.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${y}+`),p("BUILD",`(?:\\+(${o[f.BUILDIDENTIFIER]}(?:\\.${o[f.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[f.MAINVERSION]}${o[f.PRERELEASE]}?${o[f.BUILD]}?`),p("FULL",`^${o[f.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[f.MAINVERSIONLOOSE]}${o[f.PRERELEASELOOSE]}?${o[f.BUILD]}?`),p("LOOSE",`^${o[f.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[f.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:${o[f.PRERELEASE]})?${o[f.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:${o[f.PRERELEASELOOSE]})?${o[f.BUILD]}?)?)?`),p("XRANGE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${o[f.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",o[f.COERCEPLAIN]+`(?:${o[f.PRERELEASE]})?(?:${o[f.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",o[f.COERCE],!0),p("COERCERTLFULL",o[f.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${o[f.LONECARET]}${o[f.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[f.LONECARET]}${o[f.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[f.GTLT]}\\s*(${o[f.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]}|${o[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[f.XRANGEPLAIN]})\\s+-\\s+(${o[f.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[f.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Qe,Qe.exports)),Qe.exports}var Ot,as;function xa(){if(as)return Ot;as=1;let t=Object.freeze({loose:!0}),e=Object.freeze({});return Ot=i=>i?typeof i!="object"?t:i:e,Ot}var Rt,cs;function Na(){if(cs)return Rt;cs=1;let t=/^[0-9]+$/,e=(i,c)=>{let s=t.test(i),l=t.test(c);return s&&l&&(i=+i,c=+c),i===c?0:s&&!l?-1:l&&!s?1:i<c?-1:1};return Rt={compareIdentifiers:e,rcompareIdentifiers:(i,c)=>e(c,i)},Rt}var It,us;function Pa(){if(us)return It;us=1;let t=ti(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=ri(),{safeRe:i,t:c}=Ia(),s=xa(),{compareIdentifiers:l}=Na();class n{constructor(g,f){if(f=s(f),g instanceof n){if(g.loose===!!f.loose&&g.includePrerelease===!!f.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",g,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;let E=g.trim().match(f.loose?i[c.LOOSE]:i[c.FULL]);if(!E)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){let u=+y;if(u>=0&&u<r)return u}return y}):this.prerelease=[],this.build=E[5]?E[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(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof n)){if(typeof g=="string"&&g===this.version)return 0;g=new n(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof n||(g=new n(g,this.options)),l(this.major,g.major)||l(this.minor,g.minor)||l(this.patch,g.patch)}comparePre(g){if(g instanceof n||(g=new n(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let f=0;do{let E=this.prerelease[f],y=g.prerelease[f];if(t("prerelease compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}compareBuild(g){g instanceof n||(g=new n(g,this.options));let f=0;do{let E=this.build[f],y=g.build[f];if(t("build compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}inc(g,f,E){if(g.startsWith("pre")){if(!f&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(f){let y=`-${f}`.match(this.options.loose?i[c.PRERELEASELOOSE]:i[c.PRERELEASE]);if(!y||y[1]!==f)throw new Error(`invalid identifier: ${f}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,E),this.inc("pre",f,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,E),this.inc("pre",f,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(f===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(f){let u=[f,y];E===!1&&(u=[f]),l(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return It=n,It}var xt,ls;function si(){if(ls)return xt;ls=1;let t=Pa();return xt=(r,i,c=!1)=>{if(r instanceof t)return r;try{return new t(r,i)}catch(s){if(!c)return null;throw s}},xt}var Nt,fs;function ii(){if(fs)return Nt;fs=1;let t=si();return Nt=(r,i)=>{let c=t(r,i);return c?c.version:null},Nt}var Pt,hs;function ni(){if(hs)return Pt;hs=1;let t=si();return Pt=(r,i)=>{let c=t(r.trim().replace(/^[=v]+/,""),i);return c?c.version:null},Pt}var oi=["0BSD","3D-Slicer-1.0","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","AMD-newlib","AMDPLPA","AML","AML-glslang","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-Display-PostScript","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","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","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-acpica","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-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","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","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","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-AU","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","CC-PDM-1.0","CC-SA-1.0","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","CMU-Mach-nodoc","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","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","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","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","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","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","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","LPD-document","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","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","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","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","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","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","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","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","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","Ruby-pty","SAX-PD","SAX-PD-2.0","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","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","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","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"],Ta=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],Da=["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-1.24","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","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-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"],Tt,ps;function Fa(){if(ps)return Tt;ps=1;var t=[].concat(oi).concat(Ta),e=Da;return Tt=function(r){var i=0;function c(){return i<r.length}function s(d){if(d instanceof RegExp){var m=r.slice(i),w=m.match(d);if(w)return i+=w[0].length,w[0]}else if(r.indexOf(d,i)===i)return i+=d.length,d}function l(){s(/[ ]*/)}function n(){for(var d,m=["WITH","AND","OR","(",")",":","+"],w=0;w<m.length&&(d=s(m[w]),!d);w++);if(d==="+"&&i>1&&r[i-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return s(/[A-Za-z0-9-.]+/)}function g(){var d=o();if(!d)throw new Error("Expected idstring at offset "+i);return d}function f(){if(s("DocumentRef-")){var d=g();return{type:"DOCUMENTREF",string:d}}}function E(){if(s("LicenseRef-")){var d=g();return{type:"LICENSEREF",string:d}}}function y(){var d=i,m=o();if(t.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(e.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};i=d}function u(){return n()||f()||E()||y()}for(var h=[];c()&&(l(),!!c());){var p=u();if(!p)throw new Error("Unexpected `"+r[i]+"` at offset "+i);h.push(p)}return h},Tt}var Dt,ds;function _a(){return ds||(ds=1,Dt=function(t){var e=0;function r(){return e<t.length}function i(){return r()?t[e]:null}function c(){if(!r())throw new Error;e++}function s(p){var d=i();if(d&&d.type==="OPERATOR"&&p===d.string)return c(),d.string}function l(){if(s("WITH")){var p=i();if(p&&p.type==="EXCEPTION")return c(),p.string;throw new Error("Expected exception after `WITH`")}}function n(){var p=e,d="",m=i();if(m.type==="DOCUMENTREF"&&(c(),d+="DocumentRef-"+m.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(m=i(),m.type==="LICENSEREF")return c(),d+="LicenseRef-"+m.string,{license:d};e=p}function o(){var p=i();if(p&&p.type==="LICENSE"){c();var d={license:p.string};s("+")&&(d.plus=!0);var m=l();return m&&(d.exception=m),d}}function g(){var p=s("(");if(p){var d=u();if(!s(")"))throw new Error("Expected `)`");return d}}function f(){return g()||n()||o()}function E(p,d){return function m(){var w=d();if(w){if(!s(p))return w;var C=m();if(!C)throw new Error("Expected expression");return{left:w,conjunction:p.toLowerCase(),right:C}}}}var y=E("AND",f),u=E("OR",y),h=u();if(!h||r())throw new Error("Syntax error");return h}),Dt}var Ft,ms;function ai(){if(ms)return Ft;ms=1;var t=Fa(),e=_a();return Ft=function(r){return e(t(r))},Ft}var _t,gs;function Ua(){if(gs)return _t;gs=1;var t=ai(),e=oi;function r(m){try{return t(m),!0}catch{return!1}}function i(m,w){var C=w[0].length-m[0].length;return C!==0?C:m[0].toUpperCase().localeCompare(w[0].toUpperCase())}var c=[["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(i),s=0,l=1,n=[function(m){return m.toUpperCase()},function(m){return m.trim()},function(m){return m.replace(/\./g,"")},function(m){return m.replace(/\s+/g,"")},function(m){return m.replace(/\s+/g,"-")},function(m){return m.replace("v","-")},function(m){return m.replace(/,?\s*(\d)/,"-$1")},function(m){return m.replace(/,?\s*(\d)/,"-$1.0")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(m){return m[0].toUpperCase()+m.slice(1)},function(m){return m.replace("/","-")},function(m){return m.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(m){return m.indexOf("3.0")!==-1?m+"-or-later":m+"-only"},function(m){return m+"only"},function(m){return m.replace(/(\d)$/,"-$1.0")},function(m){return m.replace(/(-| )?(\d)$/,"-$2-Clause")},function(m){return m.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(m){return m.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(m){return m.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(m){return m.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(m){return m.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(m){return m.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(m){return"CC-"+m},function(m){return"CC-"+m+"-4.0"},function(m){return m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(m){return"CC-"+m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],o=e.map(function(m){var w=/^(.*)-\d+\.\d+$/.exec(m);return w?[w[0],w[1]]:[m,null]}).reduce(function(m,w){var C=w[1];return m[C]=m[C]||[],m[C].push(w[0]),m},{}),g=Object.keys(o).map(function(w){return[w,o[w]]}).filter(function(w){return w[1].length===1&&w[0]!==null&&w[0]!=="APL"}).map(function(w){return[w[0],w[1][0]]});o=void 0;var f=[["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(g).sort(i),E=0,y=1,u=function(m){for(var w=0;w<n.length;w++){var C=n[w](m).trim();if(C!==m&&r(C))return C}return null},h=function(m){for(var w=m.toUpperCase(),C=0;C<f.length;C++){var a=f[C];if(w.indexOf(a[E])>-1)return a[y]}return null},p=function(m,w){for(var C=0;C<c.length;C++){var a=c[C],b=a[s];if(m.indexOf(b)>-1){var v=m.replace(b,a[l]),$=w(v);if($!==null)return $}}return null};_t=function(m,w){w=w||{};var C=w.upgrade===void 0?!0:!!w.upgrade;function a(R){return C?d(R):R}var b=typeof m=="string"&&m.trim().length!==0;if(!b)throw Error("Invalid argument. Expected non-empty string.");if(m=m.trim(),r(m))return a(m);var v=m.replace(/\+$/,"").trim();if(r(v))return a(v);var $=u(m);return $!==null||($=p(m,function(R){return r(R)?R:u(R)}),$!==null)||($=h(m),$!==null)||($=p(m,h),$!==null)?a($):null};function d(m){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(m)!==-1?m+"-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(m)!==-1?m.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(m)!==-1?m+"-or-later":m}return _t}var Ut,bs;function ci(){if(bs)return Ut;bs=1;var t=ai(),e=Ua(),r='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function c(l,n){return n.slice(0,l.length)===l}function s(l){if(l.hasOwnProperty("license")){var n=l.license;return c("LicenseRef",n)||c("DocumentRef",n)}else return s(l.left)||s(l.right)}return Ut=function(l){var n;try{n=t(l)}catch{var o;if(l==="UNLICENSED"||l==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(o=i.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:o[1]};var g={validForOldPackages:!1,validForNewPackages:!1,warnings:[r]};if(l.trim().length!==0){var f=e(l);f&&g.warnings.push('license is similar to the valid expression "'+f+'"')}return g}return s(n)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[r]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},Ut}var Ge={},Es;function Ga(){if(Es)return Ge;Es=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},i=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,i("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",u))}}let l=y=>!e.has(y),n=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>n(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#m;#f;#o;#a;#t;#n;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;static unsafeExposeInternals(u){return{starts:u.#d,ttls:u.#y,sizes:u.#v,keyMap:u.#o,keyList:u.#a,valList:u.#t,next:u.#n,prev:u.#s,get head(){return u.#l},get tail(){return u.#p},free:u.#b,isBackgroundFetch:h=>u.#h(h),backgroundFetch:(h,p,d,m)=>u.#N(h,p,d,m),moveToTail:h=>u.#F(h),indexes:h=>u.#R(h),rindexes:h=>u.#I(h),isStale:h=>u.#$(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#f}get size(){return this.#m}get fetchMethod(){return this.#w}get memoMethod(){return this.#S}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,disposeAfter:v,noDisposeOnSet:$,noUpdateTTL:R,maxSize:F=0,maxEntrySize:D=0,sizeCalculation:G,fetchMethod:W,memoMethod:x,noDeleteOnFetchRejection:H,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:z,ignoreFetchAbort:Y}=u;if(h!==0&&!n(h))throw new TypeError("max option must be a nonnegative integer");let V=h?o(h):Array;if(!V)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=F,this.maxEntrySize=D||this.#r,this.sizeCalculation=G,this.sizeCalculation){if(!this.#r&&!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(x!==void 0&&typeof x!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=x,W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=W,this.#A=!!W,this.#o=new Map,this.#a=new Array(h).fill(void 0),this.#t=new Array(h).fill(void 0),this.#n=new V(h),this.#s=new V(h),this.#l=0,this.#p=0,this.#b=f.create(h),this.#m=0,this.#f=0,typeof b=="function"&&(this.#e=b),typeof v=="function"?(this.#g=v,this.#u=[]):(this.#g=void 0,this.#u=void 0),this.#L=!!this.#e,this.#E=!!this.#g,this.noDisposeOnSet=!!$,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!H,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(this.#r!==0&&!n(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=n(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let J="LRU_CACHE_UNBOUNDED";l(J)&&(e.add(J),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,E))}}getRemainingTTL(u){return this.#o.has(u)?1/0:0}#T(){let u=new g(this.#i),h=new g(this.#i);this.#y=u,this.#d=h,this.#j=(m,w,C=t.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#$(m)&&this.#c(this.#a[m],"expire")},w+1);a.unref&&a.unref()}},this.#C=m=>{h[m]=u[m]!==0?t.now():0},this.#P=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=t.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#o.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#$=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#C=()=>{};#P=()=>{};#j=()=>{};#$=()=>!1;#D(){let u=new g(this.#i);this.#f=0,this.#v=u,this.#_=h=>{this.#f-=u[h],u[h]=0},this.#q=(h,p,d,m)=>{if(this.#h(p))return 0;if(!n(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!n(d))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 d},this.#O=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#f>m;)this.#x(!0)}this.#f+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#f)}}#_=u=>{};#O=(u,h,p)=>{};#q=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#p;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#l));)h=this.#s[h]}*#I({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#l;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#p));)h=this.#n[h]}#B(u){return u!==void 0&&this.#o.get(this.#a[u])===u}*entries(){for(let u of this.#R())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*rentries(){for(let u of this.#I())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*keys(){for(let u of this.#R()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*rkeys(){for(let u of this.#I()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*values(){for(let u of this.#R())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}*rvalues(){for(let u of this.#I())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#a[p],this))return this.get(this.#a[p],h)}}forEach(u,h=this){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}rforEach(u,h=this){for(let p of this.#I()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}purgeStale(){let u=!1;for(let h of this.#I({allowStale:!0}))this.#$(h)&&(this.#c(this.#a[h],"expire"),u=!0);return u}info(u){let h=this.#o.get(u);if(h===void 0)return;let p=this.#t[h],d=this.#h(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#y&&this.#d){let w=this.#y[h],C=this.#d[h];if(w&&C){let a=w-(t.now()-C);m.ttl=a,m.start=Date.now()}}return this.#v&&(m.size=this.#v[h]),m}dump(){let u=[];for(let h of this.#R({allowStale:!0})){let p=this.#a[h],d=this.#t[h],m=this.#h(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#y&&this.#d){w.ttl=this.#y[h];let C=t.now()-this.#d[h];w.start=Math.floor(Date.now()-C)}this.#v&&(w.size=this.#v[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=t.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#q(u,h,p.size||0,C);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#c(u,"set"),this;let $=this.#m===0?void 0:this.#o.get(u);if($===void 0)$=this.#m===0?this.#p:this.#b.length!==0?this.#b.pop():this.#m===this.#i?this.#x(!1):this.#m,this.#a[$]=u,this.#t[$]=h,this.#o.set(u,$),this.#n[this.#p]=$,this.#s[$]=this.#p,this.#p=$,this.#m++,this.#O($,v,a),a&&(a.set="add"),b=!1;else{this.#F($);let R=this.#t[$];if(h!==R){if(this.#A&&this.#h(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#L&&this.#e?.(F,u,"set"),this.#E&&this.#u?.push([F,u,"set"]))}else w||(this.#L&&this.#e?.(R,u,"set"),this.#E&&this.#u?.push([R,u,"set"]));if(this.#_($),this.#O($,v,a),this.#t[$]=h,a){a.set="replace";let F=R&&this.#h(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update")}if(d!==0&&!this.#y&&this.#T(),this.#y&&(b||this.#j($,d,m),a&&this.#P(a,$)),!w&&this.#E&&this.#u){let R=this.#u,F;for(;F=R?.shift();)this.#g?.(...F)}return this}pop(){try{for(;this.#m;){let u=this.#t[this.#l];if(this.#x(!0),this.#h(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#E&&this.#u){let u=this.#u,h;for(;h=u?.shift();)this.#g?.(...h)}}}#x(u){let h=this.#l,p=this.#a[h],d=this.#t[h];return this.#A&&this.#h(d)?d.__abortController.abort(new Error("evicted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(d,p,"evict"),this.#E&&this.#u?.push([d,p,"evict"])),this.#_(h),u&&(this.#a[h]=void 0,this.#t[h]=void 0,this.#b.push(h)),this.#m===1?(this.#l=this.#p=0,this.#b.length=0):this.#l=this.#n[h],this.#o.delete(p),this.#m--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#o.get(u);if(m!==void 0){let w=this.#t[m];if(this.#h(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#$(m))d&&(d.has="stale",this.#P(d,m));else return p&&this.#C(m),d&&(d.has="hit",this.#P(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#o.get(u);if(d===void 0||!p&&this.#$(d))return;let m=this.#t[d];return this.#h(m)?m.__staleWhileFetching:m}#N(u,h,p,d){let m=h===void 0?void 0:this.#t[h];if(this.#h(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#t[h]===F&&(G===void 0?k.__staleWhileFetching?this.#t[h]=k.__staleWhileFetching:this.#c(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#t[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#c(u,"fetch"):x||(this.#t[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#w?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#o.get(u)):this.#t[h]=D,D}#h(u){if(!this.#A)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#A)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#o.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#N(u,B,k,G);return z.__returned=z}else{let z=this.#t[B];if(this.#h(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#$(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#F(B),d&&this.#C(B),x&&this.#P(x,B),z;let V=this.#N(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#S;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#o.get(u);if(C!==void 0){let a=this.#t[C],b=this.#h(a);return w&&this.#P(w,C),this.#$(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#c(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#F(C),d&&this.#C(C),a))}else w&&(w.get="miss")}#G(u,h){this.#s[h]=u,this.#n[u]=h}#F(u){u!==this.#p&&(u===this.#l?this.#l=this.#n[u]:this.#G(this.#s[u],this.#n[u]),this.#G(this.#p,u),this.#p=u)}delete(u){return this.#c(u,"delete")}#c(u,h){let p=!1;if(this.#m!==0){let d=this.#o.get(u);if(d!==void 0)if(p=!0,this.#m===1)this.#M(h);else{this.#_(d);let m=this.#t[d];if(this.#h(m)?m.__abortController.abort(new Error("deleted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(m,u,h),this.#E&&this.#u?.push([m,u,h])),this.#o.delete(u),this.#a[d]=void 0,this.#t[d]=void 0,d===this.#p)this.#p=this.#s[d];else if(d===this.#l)this.#l=this.#n[d];else{let w=this.#s[d];this.#n[w]=this.#n[d];let C=this.#n[d];this.#s[C]=this.#s[d]}this.#m--,this.#b.push(d)}}if(this.#E&&this.#u?.length){let d=this.#u,m;for(;m=d?.shift();)this.#g?.(...m)}return p}clear(){return this.#M("delete")}#M(u){for(let h of this.#I({allowStale:!0})){let p=this.#t[h];if(this.#h(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#a[h];this.#L&&this.#e?.(p,d,u),this.#E&&this.#u?.push([p,d,u])}}if(this.#o.clear(),this.#t.fill(void 0),this.#a.fill(void 0),this.#y&&this.#d&&(this.#y.fill(0),this.#d.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#p=0,this.#b.length=0,this.#f=0,this.#m=0,this.#E&&this.#u){let h=this.#u,p;for(;p=h?.shift();)this.#g?.(...p)}}}return Ge.LRUCache=E,Ge}var Gt,ys;function ja(){if(ys)return Gt;ys=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:s,user:l,project:n,committish:o})=>`git@${s}:${l}/${n}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:n,committish:o})=>`git+ssh://git@${s}/${l}/${n}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:n,committish:o,treepath:g})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:n,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:n,treepath:o,committish:g})=>`https://${s}/${l}/${n}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:n,committish:o})=>`${s}:${l}/${n}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:n})=>`${s}/${l}${t("#",n)}`,bugstemplate:({domain:s,user:l,project:n})=>`https://${s}/${l}/${n}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:n,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${n}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://codeload.${s}/${l}/${n}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,n,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let n=l.split("/"),o=n.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=n.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:n})=>`git@${s}:${l}.git${t("#",n)}`,sshurltemplate:({domain:s,project:l,committish:n})=>`git+ssh://git@${s}/${l}.git${t("#",n)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g})=>`https://${s}/${l}/${n}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,browsetreetemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,httpstemplate:({domain:s,project:l,committish:n})=>`git+https://${s}/${l}.git${t("#",n)}`,filetemplate:({user:s,project:l,committish:n,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(n))}/${o}`,shortcuttemplate:({type:s,project:l,committish:n})=>`${s}:${l}${t("#",n)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:n})=>`git://${s}/${l}.git${t("#",n)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(o!=="raw"){if(!n){if(!l)return;n=l,l=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:l,project:n,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},i,l);return Gt=c,Gt}var jt,ws;function ui(){if(ws)return jt;ws=1;let t=cr,e=(s,l,n)=>{let o=s.indexOf(n);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},i=(s,l)=>{let n=s.indexOf(":"),o=s.slice(0,n+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>n?`git+ssh://${s}`:s:s.indexOf("//")===n+1?s:`${s.slice(0,n+1)}//${s.slice(n+1)}`},c=s=>{let l=e(s,"@","#"),n=e(s,":","#");return n>l&&(s=s.slice(0,n)+"/"+s.slice(n+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return jt=(s,l)=>{let n=l?i(s,l):s;return r(n)||r(c(n))},jt}var Bt,vs;function Ba(){if(vs)return Bt;vs=1;let t=ui(),e=r=>{let i=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),n=/\s/.exec(r),o=r.indexOf("@"),g=!n||i>-1&&n.index>i,f=o===-1||i>-1&&o>i,E=l===-1||i>-1&&l>i,y=s===-1||i>-1&&s>i,u=c>0,h=i>-1?r[i-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Bt=(r,i,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,n=t(l,s);if(!n)return;let o=c.byShortcut[n.protocol],g=c.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[n.protocol]?.auth&&(n.username||n.password)&&(y=`${n.username}${n.password?":"+n.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(n.protocol))return;let m=E.extract(n);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,i]},Bt}var Mt,Ls;function Ma(){if(Ls)return Mt;Ls=1;let{LRUCache:t}=Ga(),e=ja(),r=Ba(),i=ui(),c=new t({max:1e3});class s{constructor(n,o,g,f,E,y,u={}){Object.assign(this,s.#i[n],{type:n,user:o,auth:g,project:f,committish:E,default:y,opts:u})}static#i={byShortcut:{},byDomain:{}};static#r={"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(n,o){s.#i[n]=o,s.#i.byDomain[o.domain]=n,s.#i.byShortcut[`${n}:`]=n,s.#r[`${n}:`]={name:n}}static fromUrl(n,o){if(typeof n!="string")return;let g=n+JSON.stringify(o||{});if(!c.has(g)){let f=r(n,o,{gitHosts:s.#i,protocols:s.#r});c.set(g,f?new s(...f):void 0)}return c.get(g)}static parseUrl(n){return i(n)}#e(n,o){if(typeof n!="function")return null;let g={...this,...this.opts,...o};g.path||(g.path=""),g.path.startsWith("/")&&(g.path=g.path.slice(1)),g.noCommittish&&(g.committish=null);let f=n(g);return g.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(n){return this.#e(this.sshtemplate,n)}sshurl(n){return this.#e(this.sshurltemplate,n)}browse(n,...o){return typeof n!="string"?this.#e(this.browsetemplate,n):typeof o[0]!="string"?this.#e(this.browsetreetemplate,{...o[0],path:n}):this.#e(this.browsetreetemplate,{...o[1],fragment:o[0],path:n})}browseFile(n,...o){return typeof o[0]!="string"?this.#e(this.browseblobtemplate,{...o[0],path:n}):this.#e(this.browseblobtemplate,{...o[1],fragment:o[0],path:n})}docs(n){return this.#e(this.docstemplate,n)}bugs(n){return this.#e(this.bugstemplate,n)}https(n){return this.#e(this.httpstemplate,n)}git(n){return this.#e(this.gittemplate,n)}shortcut(n){return this.#e(this.shortcuttemplate,n)}path(n){return this.#e(this.pathtemplate,n)}tarball(n){return this.#e(this.tarballtemplate,{...n,noCommittish:!1})}file(n,o){return this.#e(this.filetemplate,{...o,path:n})}edit(n,o){return this.#e(this.edittemplate,{...o,path:n})}getDefaultRepresentation(){return this.default}toString(n){return this.default&&typeof this[this.default]=="function"?this[this.default](n):this.sshurl(n)}}for(let[l,n]of Object.entries(e))s.addHost(l,n);return Mt=s,Mt}var qt,Cs;function qa(){if(Cs)return qt;Cs=1,qt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
17
- `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let i=e.length,c=r+1;for(;c<i&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return qt}var za={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"},Ha={web:"url",name:"url"},Wa={server:"start",tests:"test"},ka={topLevel:za,bugs:Ha,script:Wa},zt,Ss;function Va(){if(Ss)return zt;Ss=1;var t=ii(),e=ni(),r=ci(),i=Ma(),c=Ws,s=["dependencies","devDependencies","optionalDependencies"],l=qa(),n=cr,o=ka,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");zt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=i.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=i.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!t(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=e(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),c.builtinModules.includes(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=l(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=i.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:n.parse(a.bugs).protocol?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(typeof v.url=="string"&&n.parse(v.url).protocol?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=i.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;n.parse(a.homepage).protocol||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!r(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){s.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function C(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return zt}var Xa="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Ya="No repository field.",Ka="Probably broken git url: %s",Ja="scripts must be an object",Za="script values must be string commands",Qa="Invalid 'files' member",ec="Invalid filename in 'files' list: %s",tc="Invalid 'bundleDependencies' list. Must be array of package names",rc="Invalid bundleDependencies member: %s",sc="Non-dependency in bundleDependencies: %s",ic="%s field must be an object",nc="Invalid dependency: %s %s",oc="specifying %s as array is deprecated",ac="modules field is deprecated",cc="keywords should be an array of strings",uc="keywords should be an array of strings",lc="%s is also the name of a node core module.",fc="'description' field should be a string",hc="No description",pc="No README data",dc="No license field.",mc="Bug string field must be url, email, or {email,url}",gc="bugs.url field must be a string url. Deleted.",bc="bugs.email field must be a string email. Deleted.",Ec="Normalized value of bugs field is an empty object. Deleted.",yc="homepage field must be a string url. Deleted.",wc="license should be a valid SPDX license expression",vc="%s should probably be %s.",Lc={repositories:Xa,missingRepository:Ya,brokenGitUrl:Ka,nonObjectScripts:Ja,nonStringScript:Za,nonArrayFiles:Qa,invalidFilename:ec,nonArrayBundleDependencies:tc,nonStringBundleDependency:rc,nonDependencyBundleDependency:sc,nonObjectDependencies:ic,nonStringDependency:nc,deprecatedArrayDependencies:oc,deprecatedModules:ac,nonArrayKeywords:cc,nonStringKeyword:uc,conflictingName:lc,nonStringDescription:fc,missingDescription:hc,missingReadme:pc,missingLicense:dc,nonEmailUrlBugsString:mc,nonUrlBugsUrlField:gc,nonEmailBugsEmailField:bc,emptyNormalizedBugs:Ec,nonUrlHomepage:yc,invalidLicense:wc,typo:vc},Ht,As;function Cc(){if(As)return Ht;As=1;var t=Hs,e=Lc;Ht=function(){var i=Array.prototype.slice.call(arguments,0),c=i.shift();if(c==="typo")return r.apply(null,i);var s=e[c]?e[c]:c+": '%s'";return i.unshift(s),t.format.apply(null,i)};function r(i,c,s){return s&&(i=s+"['"+i+"']",c=s+"['"+c+"']"),t.format(e.typo,i,c)}return Ht}var Wt,$s;function Sc(){if($s)return Wt;$s=1,Wt=s;var t=Va();s.fixer=t;var e=Cc(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],c=r.map(function(n){return l(n)+"Field"});c=c.concat(i);function s(n,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||n.private)&&(o=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](n,g)}),n._id=n.name+"@"+n.version}function l(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Wt}var Ac=Sc(),$c=rt(Ac);function Oc(t){return t instanceof URL?ks(t):t}var Rc=t=>ye.resolve(Oc(t)??".","package.json"),Ic=(t,e)=>{let r=typeof t=="string"?Ra(t):t;return e&&$c(r),r};function xc({cwd:t,normalize:e=!0}={}){let r=Vs.readFileSync(Rc(t),"utf8");return Ic(r,e)}function li(t){let e=ma("package.json",t);if(e)return{packageJson:xc({...t,cwd:ye.dirname(e)}),path:e}}var je={},Os;function Nc(){if(Os)return je;Os=1,Object.defineProperty(je,"__esModule",{value:!0}),je.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},i=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,i("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",u))}}let l=y=>!e.has(y),n=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>n(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#i=!1;static create(u){let h=o(u);if(!h)return[];f.#i=!0;let p=new f(u,h);return f.#i=!1,p}constructor(u,h){if(!f.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#i;#r;#e;#g;#w;#S;#m;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#t;#n;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;#T;#C;#P;static unsafeExposeInternals(u){return{starts:u.#L,ttls:u.#A,sizes:u.#y,keyMap:u.#t,keyList:u.#n,valList:u.#s,next:u.#l,prev:u.#p,get head(){return u.#b},get tail(){return u.#u},free:u.#v,isBackgroundFetch:h=>u.#c(h),backgroundFetch:(h,p,d,m)=>u.#F(h,p,d,m),moveToTail:h=>u.#z(h),indexes:h=>u.#x(h),rindexes:h=>u.#N(h),isStale:h=>u.#O(h)}}get max(){return this.#i}get maxSize(){return this.#r}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#S}get memoMethod(){return this.#m}get dispose(){return this.#e}get onInsert(){return this.#g}get disposeAfter(){return this.#w}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:C,allowStale:a,dispose:b,onInsert:v,disposeAfter:$,noDisposeOnSet:R,noUpdateTTL:F,maxSize:D=0,maxEntrySize:G=0,sizeCalculation:W,fetchMethod:x,memoMethod:H,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:Y,ignoreFetchAbort:V,perf:J}=u;if(J!==void 0&&typeof J?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=J??t,h!==0&&!n(h))throw new TypeError("max option must be a nonnegative integer");let K=h?o(h):Array;if(!K)throw new Error("invalid max value: "+h);if(this.#i=h,this.#r=D,this.maxEntrySize=G||this.#r,this.sizeCalculation=W,this.sizeCalculation){if(!this.#r&&!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(H!==void 0&&typeof H!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=H,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#S=x,this.#T=!!x,this.#t=new Map,this.#n=new Array(h).fill(void 0),this.#s=new Array(h).fill(void 0),this.#l=new K(h),this.#p=new K(h),this.#b=0,this.#u=0,this.#v=f.create(h),this.#o=0,this.#a=0,typeof b=="function"&&(this.#e=b),typeof v=="function"&&(this.#g=v),typeof $=="function"?(this.#w=$,this.#d=[]):(this.#w=void 0,this.#d=void 0),this.#E=!!this.#e,this.#P=!!this.#g,this.#C=!!this.#w,this.noDisposeOnSet=!!R,this.noUpdateTTL=!!F,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!z,this.allowStaleOnFetchAbort=!!Y,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(this.#r!==0&&!n(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!C,this.ttlResolution=n(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#i===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#r){let te="LRU_CACHE_UNBOUNDED";l(te)&&(e.add(te),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",te,E))}}getRemainingTTL(u){return this.#t.has(u)?1/0:0}#j(){let u=new g(this.#i),h=new g(this.#i);this.#A=u,this.#L=h,this.#_=(m,w,C=this.#f.now())=>{if(h[m]=w!==0?C:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#O(m)&&this.#U(this.#n[m],"expire")},w+1);a.unref&&a.unref()}},this.#$=m=>{h[m]=u[m]!==0?this.#f.now():0},this.#D=(m,w)=>{if(u[w]){let C=u[w],a=h[w];if(!C||!a)return;m.ttl=C,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=C-b}};let p=0,d=()=>{let m=this.#f.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#t.get(m);if(w===void 0)return 0;let C=u[w],a=h[w];if(!C||!a)return 1/0;let b=(p||d())-a;return C-b},this.#O=m=>{let w=h[m],C=u[m];return!!C&&!!w&&(p||d())-w>C}}#$=()=>{};#D=()=>{};#_=()=>{};#O=()=>!1;#q(){let u=new g(this.#i);this.#a=0,this.#y=u,this.#R=h=>{this.#a-=u[h],u[h]=0},this.#B=(h,p,d,m)=>{if(this.#c(p))return 0;if(!n(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!n(d))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 d},this.#I=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#a>m;)this.#G(!0)}this.#a+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#a)}}#R=u=>{};#I=(u,h,p)=>{};#B=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#u;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#b));)h=this.#p[h]}*#N({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#b;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#u));)h=this.#l[h]}#h(u){return u!==void 0&&this.#t.get(this.#n[u])===u}*entries(){for(let u of this.#x())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*rentries(){for(let u of this.#N())this.#s[u]!==void 0&&this.#n[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#n[u],this.#s[u]])}*keys(){for(let u of this.#x()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*rkeys(){for(let u of this.#N()){let h=this.#n[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*values(){for(let u of this.#x())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}*rvalues(){for(let u of this.#N())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#n[p],this))return this.get(this.#n[p],h)}}forEach(u,h=this){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}rforEach(u,h=this){for(let p of this.#N()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#n[p],this)}}purgeStale(){let u=!1;for(let h of this.#N({allowStale:!0}))this.#O(h)&&(this.#U(this.#n[h],"expire"),u=!0);return u}info(u){let h=this.#t.get(u);if(h===void 0)return;let p=this.#s[h],d=this.#c(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#A&&this.#L){let w=this.#A[h],C=this.#L[h];if(w&&C){let a=w-(this.#f.now()-C);m.ttl=a,m.start=Date.now()}}return this.#y&&(m.size=this.#y[h]),m}dump(){let u=[];for(let h of this.#x({allowStale:!0})){let p=this.#n[h],d=this.#s[h],m=this.#c(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#A&&this.#L){w.ttl=this.#A[h];let C=this.#f.now()-this.#L[h];w.start=Math.floor(Date.now()-C)}this.#y&&(w.size=this.#y[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=this.#f.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:C=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#B(u,h,p.size||0,C);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#U(u,"set"),this;let $=this.#o===0?void 0:this.#t.get(u);if($===void 0)$=this.#o===0?this.#u:this.#v.length!==0?this.#v.pop():this.#o===this.#i?this.#G(!1):this.#o,this.#n[$]=u,this.#s[$]=h,this.#t.set(u,$),this.#l[this.#u]=$,this.#p[$]=this.#u,this.#u=$,this.#o++,this.#I($,v,a),a&&(a.set="add"),b=!1,this.#P&&this.#g?.(h,u,"add");else{this.#z($);let R=this.#s[$];if(h!==R){if(this.#T&&this.#c(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#E&&this.#e?.(F,u,"set"),this.#C&&this.#d?.push([F,u,"set"]))}else w||(this.#E&&this.#e?.(R,u,"set"),this.#C&&this.#d?.push([R,u,"set"]));if(this.#R($),this.#I($,v,a),this.#s[$]=h,a){a.set="replace";let F=R&&this.#c(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update");this.#P&&this.onInsert?.(h,u,h===R?"update":"replace")}if(d!==0&&!this.#A&&this.#j(),this.#A&&(b||this.#_($,d,m),a&&this.#D(a,$)),!w&&this.#C&&this.#d){let R=this.#d,F;for(;F=R?.shift();)this.#w?.(...F)}return this}pop(){try{for(;this.#o;){let u=this.#s[this.#b];if(this.#G(!0),this.#c(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#C&&this.#d){let u=this.#d,h;for(;h=u?.shift();)this.#w?.(...h)}}}#G(u){let h=this.#b,p=this.#n[h],d=this.#s[h];return this.#T&&this.#c(d)?d.__abortController.abort(new Error("evicted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(d,p,"evict"),this.#C&&this.#d?.push([d,p,"evict"])),this.#R(h),u&&(this.#n[h]=void 0,this.#s[h]=void 0,this.#v.push(h)),this.#o===1?(this.#b=this.#u=0,this.#v.length=0):this.#b=this.#l[h],this.#t.delete(p),this.#o--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#t.get(u);if(m!==void 0){let w=this.#s[m];if(this.#c(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#O(m))d&&(d.has="stale",this.#D(d,m));else return p&&this.#$(m),d&&(d.has="hit",this.#D(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#t.get(u);if(d===void 0||!p&&this.#O(d))return;let m=this.#s[d];return this.#c(m)?m.__staleWhileFetching:m}#F(u,h,p,d){let m=h===void 0?void 0:this.#s[h];if(this.#c(m))return m;let w=new c,{signal:C}=p;C?.addEventListener("abort",()=>w.abort(C.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#s[h]===F&&(G===void 0?k.__staleWhileFetching!==void 0?this.#s[h]=k.__staleWhileFetching:this.#U(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#s[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#U(u,"fetch"):x||(this.#s[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#S?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#t.get(u)):this.#s[h]=D,D}#c(u){if(!this.#T)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:C=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#T)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:C,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#t.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#F(u,B,k,G);return z.__returned=z}else{let z=this.#s[B];if(this.#c(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#O(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#z(B),d&&this.#$(B),x&&this.#D(x,B),z;let V=this.#F(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#m;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,C=this.get(u,w);if(!m&&C!==void 0)return C;let a=p(u,C,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,C=this.#t.get(u);if(C!==void 0){let a=this.#s[C],b=this.#c(a);return w&&this.#D(w,C),this.#O(C)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#U(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#z(C),d&&this.#$(C),a))}else w&&(w.get="miss")}#M(u,h){this.#p[h]=u,this.#l[u]=h}#z(u){u!==this.#u&&(u===this.#b?this.#b=this.#l[u]:this.#M(this.#p[u],this.#l[u]),this.#M(this.#u,u),this.#u=u)}delete(u){return this.#U(u,"delete")}#U(u,h){let p=!1;if(this.#o!==0){let d=this.#t.get(u);if(d!==void 0)if(p=!0,this.#o===1)this.#H(h);else{this.#R(d);let m=this.#s[d];if(this.#c(m)?m.__abortController.abort(new Error("deleted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(m,u,h),this.#C&&this.#d?.push([m,u,h])),this.#t.delete(u),this.#n[d]=void 0,this.#s[d]=void 0,d===this.#u)this.#u=this.#p[d];else if(d===this.#b)this.#b=this.#l[d];else{let w=this.#p[d];this.#l[w]=this.#l[d];let C=this.#l[d];this.#p[C]=this.#p[d]}this.#o--,this.#v.push(d)}}if(this.#C&&this.#d?.length){let d=this.#d,m;for(;m=d?.shift();)this.#w?.(...m)}return p}clear(){return this.#H("delete")}#H(u){for(let h of this.#N({allowStale:!0})){let p=this.#s[h];if(this.#c(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#n[h];this.#E&&this.#e?.(p,d,u),this.#C&&this.#d?.push([p,d,u])}}if(this.#t.clear(),this.#s.fill(void 0),this.#n.fill(void 0),this.#A&&this.#L&&(this.#A.fill(0),this.#L.fill(0)),this.#y&&this.#y.fill(0),this.#b=0,this.#u=0,this.#v.length=0,this.#a=0,this.#o=0,this.#C&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#w?.(...p)}}}return je.LRUCache=E,je}var kt,Rs;function Pc(){if(Rs)return kt;Rs=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:s,user:l,project:n,committish:o})=>`git@${s}:${l}/${n}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:n,committish:o})=>`git+ssh://git@${s}/${l}/${n}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:n,committish:o,treepath:g})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:n,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${n}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:n,treepath:o,committish:g})=>`https://${s}/${l}/${n}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:n,committish:o})=>`${s}:${l}/${n}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:n})=>`${s}/${l}${t("#",n)}`,bugstemplate:({domain:s,user:l,project:n})=>`https://${s}/${l}/${n}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:n,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${n}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://codeload.${s}/${l}/${n}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,n,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:n,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${n}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:n,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${n}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let n=l.split("/"),o=n.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=n.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:n})=>`git@${s}:${l}.git${t("#",n)}`,sshurltemplate:({domain:s,project:l,committish:n})=>`git+ssh://git@${s}/${l}.git${t("#",n)}`,edittemplate:({domain:s,user:l,project:n,committish:o,editpath:g})=>`https://${s}/${l}/${n}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,browsetreetemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:n,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(n))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:n})=>`https://${s}/${l}${t("/",e(n))}`,httpstemplate:({domain:s,project:l,committish:n})=>`git+https://${s}/${l}.git${t("#",n)}`,filetemplate:({user:s,project:l,committish:n,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(n))}/${o}`,shortcuttemplate:({type:s,project:l,committish:n})=>`${s}:${l}${t("#",n)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:n})=>`git://${s}/${l}.git${t("#",n)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(o!=="raw"){if(!n){if(!l)return;n=l,l=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:l,project:n,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:n,committish:o,path:g})=>`https://${s}/${l}/${n}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:n,committish:o})=>`https://${s}/${l}/${n}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,n,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!l||!n)))return{user:l,project:n,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},i,l);return kt=c,kt}var Vt,Is;function fi(){if(Is)return Vt;Is=1;let t=cr,e=(s,l,n)=>{let o=s.indexOf(n);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},i=(s,l)=>{let n=s.indexOf(":"),o=s.slice(0,n+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>n?`git+ssh://${s}`:s:s.indexOf("//")===n+1?s:`${s.slice(0,n+1)}//${s.slice(n+1)}`},c=s=>{let l=e(s,"@","#"),n=e(s,":","#");return n>l&&(s=s.slice(0,n)+"/"+s.slice(n+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return Vt=(s,l)=>{let n=l?i(s,l):s;return r(n)||r(c(n))},Vt}var Xt,xs;function Tc(){if(xs)return Xt;xs=1;let t=fi(),e=r=>{let i=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),n=/\s/.exec(r),o=r.indexOf("@"),g=!n||i>-1&&n.index>i,f=o===-1||i>-1&&o>i,E=l===-1||i>-1&&l>i,y=s===-1||i>-1&&s>i,u=c>0,h=i>-1?r[i-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Xt=(r,i,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,n=t(l,s);if(!n)return;let o=c.byShortcut[n.protocol],g=c.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[n.protocol]?.auth&&(n.username||n.password)&&(y=`${n.username}${n.password?":"+n.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let C=m.lastIndexOf("/");C>-1?(h=decodeURIComponent(m.slice(0,C)),h||(h=null),p=decodeURIComponent(m.slice(C+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(n.protocol))return;let m=E.extract(n);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,i]},Xt}var Yt,Ns;function Dc(){if(Ns)return Yt;Ns=1;let{LRUCache:t}=Nc(),e=Pc(),r=Tc(),i=fi(),c=new t({max:1e3});function s(n){try{let{protocol:o,hostname:g,pathname:f}=new URL(n);if(!g)return null;let E=/(?:git\+)http:$/.test(o)?"http:":"https:",y=f.replace(/\.git$/,"");return`${E}//${g}${y}`}catch{return null}}class l{constructor(o,g,f,E,y,u,h={}){Object.assign(this,l.#i[o],{type:o,user:g,auth:f,project:E,committish:y,default:u,opts:h})}static#i={byShortcut:{},byDomain:{}};static#r={"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(o,g){l.#i[o]=g,l.#i.byDomain[g.domain]=o,l.#i.byShortcut[`${o}:`]=o,l.#r[`${o}:`]={name:o}}static fromUrl(o,g){if(typeof o!="string")return;let f=o+JSON.stringify(g||{});if(!c.has(f)){let E=r(o,g,{gitHosts:l.#i,protocols:l.#r});c.set(f,E?new l(...E):void 0)}return c.get(f)}static fromManifest(o,g={}){if(!o||typeof o!="object")return;let f=o.repository,E=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!E)throw new Error("no repository");let y=E&&l.fromUrl(E.replace(/^git\+/,""),g)||null;if(y)return y;let u=s(E);return l.fromUrl(u,g)||u}static parseUrl(o){return i(o)}#e(o,g){if(typeof o!="function")return null;let f={...this,...this.opts,...g};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let E=o(f);return f.noGitPlus&&E.startsWith("git+")?E.slice(4):E}hash(){return this.committish?`#${this.committish}`:""}ssh(o){return this.#e(this.sshtemplate,o)}sshurl(o){return this.#e(this.sshurltemplate,o)}browse(o,...g){return typeof o!="string"?this.#e(this.browsetemplate,o):typeof g[0]!="string"?this.#e(this.browsetreetemplate,{...g[0],path:o}):this.#e(this.browsetreetemplate,{...g[1],fragment:g[0],path:o})}browseFile(o,...g){return typeof g[0]!="string"?this.#e(this.browseblobtemplate,{...g[0],path:o}):this.#e(this.browseblobtemplate,{...g[1],fragment:g[0],path:o})}docs(o){return this.#e(this.docstemplate,o)}bugs(o){return this.#e(this.bugstemplate,o)}https(o){return this.#e(this.httpstemplate,o)}git(o){return this.#e(this.gittemplate,o)}shortcut(o){return this.#e(this.shortcuttemplate,o)}path(o){return this.#e(this.pathtemplate,o)}tarball(o){return this.#e(this.tarballtemplate,{...o,noCommittish:!1})}file(o,g){return this.#e(this.filetemplate,{...g,path:o})}edit(o,g){return this.#e(this.edittemplate,{...g,path:o})}getDefaultRepresentation(){return this.default}toString(o){return this.default&&typeof this[this.default]=="function"?this[this.default](o):this.sshurl(o)}}for(let[n,o]of Object.entries(e))l.addHost(n,o);return Yt=l,Yt}var Kt,Ps;function Fc(){if(Ps)return Kt;Ps=1,Kt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
18
- `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let i=e.length,c=r+1;for(;c<i&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return Kt}var _c={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"},Uc={web:"url",name:"url"},Gc={server:"start",tests:"test"},jc={topLevel:_c,bugs:Uc,script:Gc},Jt,Ts;function Bc(){if(Ts)return Jt;Ts=1;var{URL:t}=Jo,e=ii(),r=ni(),i=ci(),c=Dc(),{isBuiltin:s}=Ws,l=["dependencies","devDependencies","optionalDependencies"],n=Fc(),o=jc,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");Jt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=c.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=c.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!e(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=r(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),s(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=n(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:t.canParse(a.bugs)?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{C(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(t.canParse(v.url)?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;t.canParse(a.homepage)||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!i(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){l.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function C(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return Jt}var Mc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",qc="No repository field.",zc="Probably broken git url: %s",Hc="scripts must be an object",Wc="script values must be string commands",kc="Invalid 'files' member",Vc="Invalid filename in 'files' list: %s",Xc="Invalid 'bundleDependencies' list. Must be array of package names",Yc="Invalid bundleDependencies member: %s",Kc="Non-dependency in bundleDependencies: %s",Jc="%s field must be an object",Zc="Invalid dependency: %s %s",Qc="specifying %s as array is deprecated",eu="modules field is deprecated",tu="keywords should be an array of strings",ru="keywords should be an array of strings",su="%s is also the name of a node core module.",iu="'description' field should be a string",nu="No description",ou="No README data",au="No license field.",cu="Bug string field must be url, email, or {email,url}",uu="bugs.url field must be a string url. Deleted.",lu="bugs.email field must be a string email. Deleted.",fu="Normalized value of bugs field is an empty object. Deleted.",hu="homepage field must be a string url. Deleted.",pu="license should be a valid SPDX license expression",du="%s should probably be %s.",mu={repositories:Mc,missingRepository:qc,brokenGitUrl:zc,nonObjectScripts:Hc,nonStringScript:Wc,nonArrayFiles:kc,invalidFilename:Vc,nonArrayBundleDependencies:Xc,nonStringBundleDependency:Yc,nonDependencyBundleDependency:Kc,nonObjectDependencies:Jc,nonStringDependency:Zc,deprecatedArrayDependencies:Qc,deprecatedModules:eu,nonArrayKeywords:tu,nonStringKeyword:ru,conflictingName:su,nonStringDescription:iu,missingDescription:nu,missingReadme:ou,missingLicense:au,nonEmailUrlBugsString:cu,nonUrlBugsUrlField:uu,nonEmailBugsEmailField:lu,emptyNormalizedBugs:fu,nonUrlHomepage:hu,invalidLicense:pu,typo:du},Zt,Ds;function gu(){if(Ds)return Zt;Ds=1;var t=Hs,e=mu;Zt=function(){var i=Array.prototype.slice.call(arguments,0),c=i.shift();if(c==="typo")return r.apply(null,i);var s=e[c]?e[c]:c+": '%s'";return i.unshift(s),t.format.apply(null,i)};function r(i,c,s){return s&&(i=s+"['"+i+"']",c=s+"['"+c+"']"),t.format(e.typo,i,c)}return Zt}var Qt,Fs;function bu(){if(Fs)return Qt;Fs=1,Qt=s;var t=Bc();s.fixer=t;var e=gu(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],c=r.map(function(n){return l(n)+"Field"});c=c.concat(i);function s(n,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||n.private)&&(o=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](n,g)}),n._id=n.name+"@"+n.version}function l(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Qt}var Eu=bu(),hi=rt(Eu),yu=(t,e)=>(t=t.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),t.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,i,c)=>i+e+c.toLowerCase()));function fr(t,{separator:e="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(t.length<2)return r?t:t.toLowerCase();let i=`$1${e}$2`,c=t.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),i);return r?yu(c,e):c.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),i).toLowerCase()}var et={exports:{}},er,_s;function wu(){if(_s)return er;_s=1;var t=Object.prototype.toString;return er=function(e){var r;return t.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))},er}var tr,Us;function vu(){return Us||(Us=1,tr=function(t){return t==null?[]:Array.isArray(t)?t:[t]}),tr}var rr,Gs;function Lu(){if(Gs)return rr;Gs=1;var t=Object.prototype.toString;rr=function(E){if(E===void 0)return"undefined";if(E===null)return"null";var y=typeof E;if(y==="boolean")return"boolean";if(y==="string")return"string";if(y==="number")return"number";if(y==="symbol")return"symbol";if(y==="function")return l(E)?"generatorfunction":"function";if(r(E))return"array";if(g(E))return"buffer";if(o(E))return"arguments";if(c(E))return"date";if(i(E))return"error";if(s(E))return"regexp";switch(e(E)){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(n(E))return"generator";switch(y=t.call(E),y){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 y.slice(8,-1).toLowerCase().replace(/\s/g,"")};function e(f){return typeof f.constructor=="function"?f.constructor.name:null}function r(f){return Array.isArray?Array.isArray(f):f instanceof Array}function i(f){return f instanceof Error||typeof f.message=="string"&&f.constructor&&typeof f.constructor.stackTraceLimit=="number"}function c(f){return f instanceof Date?!0:typeof f.toDateString=="function"&&typeof f.getDate=="function"&&typeof f.setDate=="function"}function s(f){return f instanceof RegExp?!0:typeof f.flags=="string"&&typeof f.ignoreCase=="boolean"&&typeof f.multiline=="boolean"&&typeof f.global=="boolean"}function l(f,E){return e(f)==="GeneratorFunction"}function n(f){return typeof f.throw=="function"&&typeof f.return=="function"&&typeof f.next=="function"}function o(f){try{if(typeof f.length=="number"&&typeof f.callee=="function")return!0}catch(E){if(E.message.indexOf("callee")!==-1)return!0}return!1}function g(f){return f.constructor&&typeof f.constructor.isBuffer=="function"?f.constructor.isBuffer(f):!1}return rr}var js;function Cu(){if(js)return et.exports;js=1;let t=wu(),e=vu(),r=Lu(),i=(u,h,p)=>{u[h]||(u[h]=[]),u[h].push(p)},c=(u,h,p,d)=>{u[h]||(u[h]={}),u[h][p]=d},s=u=>Array.isArray(u)?`[${u.map(s).join(", ")}]`:r(u)==="string"?JSON.stringify(u):u,l=u=>{if(Array.isArray(u)&&u.length>0){let[h]=u;return`${r(h)}-array`}return r(u)},n=(u,h)=>{let p=u==="array"?"string-array":u;return f.includes(p)&&Array.isArray(h)&&h.length===0?"array":p},o=["stopEarly","unknown","--"],g=["string","boolean","number"],f=g.map(u=>`${u}-array`),E=[...g,"array",...f],y=u=>{u=u||{};let h={};return o.forEach(p=>{u[p]&&(h[p]=u[p])}),Object.keys(u).forEach(p=>{let d=u[p];if(p==="arguments"&&(p="_"),typeof d=="string"&&(d={type:d}),t(d)){let m=d,{type:w}=m;if(w){if(!E.includes(w))throw new TypeError(`Expected type of "${p}" to be one of ${s(E)}, got ${s(w)}`);if(f.includes(w)){let[C]=w.split("-");i(h,"array",{key:p,[C]:!0})}else i(h,w,p)}if({}.hasOwnProperty.call(m,"default")){let{default:C}=m,a=l(C),b=n(w,C);if(b&&b!==a)throw new TypeError(`Expected "${p}" default value to be of type "${b}", got ${s(a)}`);c(h,"default",p,C)}e(m.alias).forEach(C=>{c(h,"alias",C,p)})}}),h};return et.exports=y,et.exports.default=y,et.exports}var Su=Cu(),pi=rt(Su),tt={exports:{}},Bs;function Au(){if(Bs)return tt.exports;Bs=1;let t=c=>typeof c=="object"&&c!==null,e=Symbol("skip"),r=c=>t(c)&&!(c instanceof RegExp)&&!(c instanceof Error)&&!(c instanceof Date),i=(c,s,l,n=new WeakMap)=>{if(l={deep:!1,target:{},...l},n.has(c))return n.get(c);n.set(c,l.target);let{target:o}=l;delete l.target;let g=f=>f.map(E=>r(E)?i(E,s,l,n):E);if(Array.isArray(c))return g(c);for(let[f,E]of Object.entries(c)){let y=s(f,E,c);if(y===e)continue;let[u,h,{shouldRecurse:p=!0}={}]=y;u!=="__proto__"&&(l.deep&&p&&r(h)&&(h=Array.isArray(h)?g(h):i(h,s,l,n)),o[u]=h)}return o};return tt.exports=(c,s,l)=>{if(!t(c))throw new TypeError(`Expected an object, got \`${c}\` (${typeof c})`);return i(c,s,l)},tt.exports.mapObjectSkip=e,tt.exports}var $u=Au(),Ms=rt($u),ar=class extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[r,i]of e)this.onEviction(r,i.value)}_deleteIfExpired(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,r.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,r){if(this._deleteIfExpired(e,r)===!1)return r.value}_getItemValue(e,r){return r.expiry?this._getOrDeleteIfExpired(e,r):r.value}_peek(e,r){let i=r.get(e);return this._getItemValue(e,i)}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,r){this.oldCache.delete(e),this._set(e,r)}*_entriesAscending(){for(let e of this.oldCache){let[r,i]=e;this.cache.has(r)||this._deleteIfExpired(r,i)===!1&&(yield e)}for(let e of this.cache){let[r,i]=e;this._deleteIfExpired(r,i)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let r=this.cache.get(e);return this._getItemValue(e,r)}if(this.oldCache.has(e)){let r=this.oldCache.get(e);if(this._deleteIfExpired(e,r)===!1)return this._moveToRecent(e,r),r.value}}set(e,r,{maxAge:i=this.maxAge}={}){let c=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.cache.has(e)?this.cache.set(e,{value:r,expiry:c}):this._set(e,{value:r,expiry:c}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],i=r.length-e;i<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(i>0&&this._emitEvictions(r.slice(0,i)),this.oldCache=new Map(r.slice(i)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[r,i]=e;this._deleteIfExpired(r,i)===!1&&(yield[r,i.value])}for(let e of this.oldCache){let[r,i]=e;this.cache.has(r)||this._deleteIfExpired(r,i)===!1&&(yield[r,i.value])}}*entriesDescending(){let e=[...this.cache];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}e=[...this.oldCache];for(let r=e.length-1;r>=0;--r){let i=e[r],[c,s]=i;this.cache.has(c)||this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this._entriesAscending())yield[e,r.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[i,c]of this.entriesAscending())e.call(r,c,i,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Ou=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),sr=new ar({maxSize:1e5}),qs=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),zs=(t,e={})=>{if(!qs(t))return t;let{separator:r="_",exclude:i,deep:c=!1}=e,s=l=>(n,o)=>{if(c&&qs(o)&&(o=Ms(o,s())),!(i&&Ou(i,n))){let g=`${r}${n}`;if(sr.has(g))n=sr.get(g);else{let f=fr(n,{separator:r});n.length<100&&sr.set(g,f),n=f}}return[n,o]};return Ms(t,s())};function di(t,e){return Array.isArray(t)?Object.keys(t).map(r=>zs(t[r],e)):zs(t,e)}import Ru from"node:process";import Iu from"node:path";import{fileURLToPath as xu}from"node:url";var Le=t=>`--${fr(t,{separator:"-"})}`,Me=(t,e="--")=>`\`${e}${t.join(`\`, \`${e}`)}\``;var Nu=t=>{let e={flags:{keyContainsDashes:{filter:([i])=>i.includes("-")&&i!=="--",message:i=>`Flag keys may not contain '-'. Invalid flags: ${Me(i,"")}`},aliasIsSet:{filter:([,i])=>Object.hasOwn(i,"alias"),message:i=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Me(i)}`},choicesNotAnArray:{filter:([,i])=>Object.hasOwn(i,"choices")&&!Array.isArray(i.choices),message:i=>`The option \`choices\` must be an array. Invalid flags: ${Me(i)}`},choicesNotMatchFlagType:{filter:([,i])=>i.type&&Array.isArray(i.choices)&&i.choices.some(c=>typeof c!==i.type),message(i){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${i.map(s=>`(\`${Le(s)}\`, type: '${t.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,i])=>i.default&&Array.isArray(i.choices)&&![i.default].flat().every(c=>i.choices.includes(c)),message:i=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Me(i)}`}}},r=[];for(let[i,c]of Object.entries(e)){let s=Object.entries(t[i]);for(let{filter:l,message:n}of Object.values(c)){let o=s.filter(f=>l(f)),g=o.map(([f])=>f);o.length>0&&r.push(n(g))}}if(r.length>0)throw new Error(r.join(`
19
- `))},mi=(t,e)=>{if(typeof t!="string"&&(e=t,t=""),!e.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let i=e.pkg??li({cwd:Iu.dirname(xu(e.importMeta.url)),normalize:!1})?.packageJson??{};hi(i);let c={argv:Ru.argv.slice(2),flags:{},inferType:!1,input:"string",description:i.description??!1,help:t,version:i.version||"No version found",autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...e,pkg:i};return Nu(c),c};var Pu=({flags:t,booleanDefault:e})=>{let r={};for(let[i,c]of Object.entries(t)){let s={...c};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),e!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[e]:e),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default??=[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[i]=s}return r},gi=t=>{let e=Pu(t);return e.arguments=t.input,e=di(e,{separator:"-",exclude:["stopEarly","--"]}),t.inferType&&delete e.arguments,t.allowUnknownFlags||(t.autoHelp&&!e.help&&(e.help={type:"boolean"}),t.autoVersion&&!e.version&&(e.version={type:"boolean"})),e=pi(e),e.configuration={...e.configuration,"greedy-arrays":!1,"parse-numbers":t.inferType},e["--"]&&(e.configuration["populate--"]=!0),t.allowUnknownFlags||(e.configuration["unknown-options-as-args"]=!0),e};import bi from"node:process";var Tu=(t,e)=>{for(let[r,i]of Object.entries(e.flags))if(r!=="--"&&!i.isMultiple&&Array.isArray(t[r]))throw new Error(`The flag --${r} can only be set once.`)},Du=(t,e,r)=>{let{choices:i,isRequired:c}=e;if(!i)return;let s=`Value must be one of: [\`${i.join("`, `")}\`]`;if(!r)return c?`Flag \`${Le(t)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let l=r.filter(n=>!i.includes(n));if(l.length>0)return`Unknown ${l.length>1?"values":"value"} for flag \`${Le(t)}\`: \`${l.join("`, `")}\`. ${s}`}else if(!i.includes(r))return`Unknown value for flag \`${Le(t)}\`: \`${r}\`. ${s}`},Fu=(t,e)=>{let r=[];for(let[i,c]of Object.entries(t)){let s=e[i],l=Du(i,c,s);l&&r.push(l)}if(r.length>0)throw new Error(`${r.join(`
20
- `)}`)},Ei=(t,e)=>{Tu(t,e),Fu(e.flags,t)},_u=t=>{console.error([`Unknown flag${t.length>1?"s":""}`,...t].join(`
21
- `))},yi=t=>{let e=t.filter(r=>typeof r=="string"&&r.startsWith("-"));e.length>0&&(_u(e),bi.exit(2))},Uu=(t,e,r,i)=>{let c=e[t],s=!0;if(typeof c.isRequired=="function"&&(s=c.isRequired(r,i),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[t]===void 0||c.isMultiple&&r[t].length===0)&&s},Gu=t=>{console.error(`Missing required flag${t.length>1?"s":""}`);for(let e of t)console.error(` ${Le(e.key)}${e.shortFlag?`, -${e.shortFlag}`:""}`)},wi=(t,e,r)=>{let i=[];if(t===void 0)return[];for(let c of Object.keys(t))t[c].isRequired&&Uu(c,t,e,r)&&i.push({key:c,...t[c]});i.length>0&&(Gu(i),bi.exit(2))};var ju=({pkg:t,...e},r)=>{let i=Pe(e.argv,r),c="";if(e.help&&(c=ei((e.help||"").replace(/\t+\n*$/,"")),c.includes(`
16
+ `:""}`}set message(e){this.#e=e}#S(e){if(!this.#r)return;let r=this.#n,n=Oa(r,this.#r.message);if(n)return Ca.codeFrameColumns(r,{start:n},{highlightCode:e})}get codeFrame(){return this.#g??=this.#S(!0),this.#g}get rawCodeFrame(){return this.#w??=this.#S(!1),this.#w}},Oa=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:c,column:s}=r.groups;return c&&s?{line:Number(c),column:Number(s)}:Aa(t,Number(n),{oneBased:!0})},Ra=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,n)=>`"${n}"(${$a(n)})`);function Ia(t,e,r){try{return JSON.parse(t,e)}catch(n){throw new or({jsonParseError:n,fileName:r,input:t})}}var At,ns;function tn(){return ns||(ns=1,At=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),At}var $t,is;function rn(){if(is)return $t;is=1;let t="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,c=e-6;return $t={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$t}var Qe={exports:{}},os;function xa(){return os||(os=1,(function(t,e){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:c}=rn(),s=tn();e=t.exports={};let l=e.re=[],i=e.safeRe=[],o=e.src=[],g=e.safeSrc=[],f=e.t={},E=0,y="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",c],[y,n]],h=d=>{for(let[m,w]of u)d=d.split(`${m}*`).join(`${m}{0,${w}}`).split(`${m}+`).join(`${m}{1,${w}}`);return d},p=(d,m,w)=>{let L=h(m),a=E++;s(d,a,m),f[d]=a,o[a]=m,g[a]=L,l[a]=new RegExp(m,w?"g":void 0),i[a]=new RegExp(L,w?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),p("MAINVERSION",`(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})\\.(${o[f.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})\\.(${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[f.NONNUMERICIDENTIFIER]}|${o[f.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${o[f.PRERELEASEIDENTIFIER]}(?:\\.${o[f.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[f.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${y}+`),p("BUILD",`(?:\\+(${o[f.BUILDIDENTIFIER]}(?:\\.${o[f.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[f.MAINVERSION]}${o[f.PRERELEASE]}?${o[f.BUILD]}?`),p("FULL",`^${o[f.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[f.MAINVERSIONLOOSE]}${o[f.PRERELEASELOOSE]}?${o[f.BUILD]}?`),p("LOOSE",`^${o[f.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[f.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:\\.(${o[f.XRANGEIDENTIFIER]})(?:${o[f.PRERELEASE]})?${o[f.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[f.XRANGEIDENTIFIERLOOSE]})(?:${o[f.PRERELEASELOOSE]})?${o[f.BUILD]}?)?)?`),p("XRANGE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[f.GTLT]}\\s*${o[f.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${o[f.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",o[f.COERCEPLAIN]+`(?:${o[f.PRERELEASE]})?(?:${o[f.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",o[f.COERCE],!0),p("COERCERTLFULL",o[f.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[f.LONETILDE]}${o[f.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${o[f.LONECARET]}${o[f.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[f.LONECARET]}${o[f.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[f.GTLT]}\\s*(${o[f.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[f.GTLT]}\\s*(${o[f.LOOSEPLAIN]}|${o[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[f.XRANGEPLAIN]})\\s+-\\s+(${o[f.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[f.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Qe,Qe.exports)),Qe.exports}var Ot,as;function Na(){if(as)return Ot;as=1;let t=Object.freeze({loose:!0}),e=Object.freeze({});return Ot=n=>n?typeof n!="object"?t:n:e,Ot}var Rt,cs;function Pa(){if(cs)return Rt;cs=1;let t=/^[0-9]+$/,e=(n,c)=>{let s=t.test(n),l=t.test(c);return s&&l&&(n=+n,c=+c),n===c?0:s&&!l?-1:l&&!s?1:n<c?-1:1};return Rt={compareIdentifiers:e,rcompareIdentifiers:(n,c)=>e(c,n)},Rt}var It,us;function Ta(){if(us)return It;us=1;let t=tn(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=rn(),{safeRe:n,t:c}=xa(),s=Na(),{compareIdentifiers:l}=Pa();class i{constructor(g,f){if(f=s(f),g instanceof i){if(g.loose===!!f.loose&&g.includePrerelease===!!f.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",g,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;let E=g.trim().match(f.loose?n[c.LOOSE]:n[c.FULL]);if(!E)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){let u=+y;if(u>=0&&u<r)return u}return y}):this.prerelease=[],this.build=E[5]?E[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(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof i)){if(typeof g=="string"&&g===this.version)return 0;g=new i(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof i||(g=new i(g,this.options)),l(this.major,g.major)||l(this.minor,g.minor)||l(this.patch,g.patch)}comparePre(g){if(g instanceof i||(g=new i(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let f=0;do{let E=this.prerelease[f],y=g.prerelease[f];if(t("prerelease compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}compareBuild(g){g instanceof i||(g=new i(g,this.options));let f=0;do{let E=this.build[f],y=g.build[f];if(t("build compare",f,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++f)}inc(g,f,E){if(g.startsWith("pre")){if(!f&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(f){let y=`-${f}`.match(this.options.loose?n[c.PRERELEASELOOSE]:n[c.PRERELEASE]);if(!y||y[1]!==f)throw new Error(`invalid identifier: ${f}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,E),this.inc("pre",f,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,E),this.inc("pre",f,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(f===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(f){let u=[f,y];E===!1&&(u=[f]),l(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return It=i,It}var xt,ls;function sn(){if(ls)return xt;ls=1;let t=Ta();return xt=(r,n,c=!1)=>{if(r instanceof t)return r;try{return new t(r,n)}catch(s){if(!c)return null;throw s}},xt}var Nt,fs;function nn(){if(fs)return Nt;fs=1;let t=sn();return Nt=(r,n)=>{let c=t(r,n);return c?c.version:null},Nt}var Pt,hs;function on(){if(hs)return Pt;hs=1;let t=sn();return Pt=(r,n)=>{let c=t(r.trim().replace(/^[=v]+/,""),n);return c?c.version:null},Pt}var an=["0BSD","3D-Slicer-1.0","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","AMD-newlib","AMDPLPA","AML","AML-glslang","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-Display-PostScript","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","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","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-acpica","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-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","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","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","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-AU","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","CC-PDM-1.0","CC-SA-1.0","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","CMU-Mach-nodoc","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","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","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","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","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","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","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","LPD-document","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","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","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","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","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","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","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","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","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","Ruby-pty","SAX-PD","SAX-PD-2.0","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","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","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","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"],Da=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],Fa=["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-1.24","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","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-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"],Tt,ps;function _a(){if(ps)return Tt;ps=1;var t=[].concat(an).concat(Da),e=Fa;return Tt=function(r){var n=0;function c(){return n<r.length}function s(d){if(d instanceof RegExp){var m=r.slice(n),w=m.match(d);if(w)return n+=w[0].length,w[0]}else if(r.indexOf(d,n)===n)return n+=d.length,d}function l(){s(/[ ]*/)}function i(){for(var d,m=["WITH","AND","OR","(",")",":","+"],w=0;w<m.length&&(d=s(m[w]),!d);w++);if(d==="+"&&n>1&&r[n-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return s(/[A-Za-z0-9-.]+/)}function g(){var d=o();if(!d)throw new Error("Expected idstring at offset "+n);return d}function f(){if(s("DocumentRef-")){var d=g();return{type:"DOCUMENTREF",string:d}}}function E(){if(s("LicenseRef-")){var d=g();return{type:"LICENSEREF",string:d}}}function y(){var d=n,m=o();if(t.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(e.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};n=d}function u(){return i()||f()||E()||y()}for(var h=[];c()&&(l(),!!c());){var p=u();if(!p)throw new Error("Unexpected `"+r[n]+"` at offset "+n);h.push(p)}return h},Tt}var Dt,ds;function Ua(){return ds||(ds=1,Dt=function(t){var e=0;function r(){return e<t.length}function n(){return r()?t[e]:null}function c(){if(!r())throw new Error;e++}function s(p){var d=n();if(d&&d.type==="OPERATOR"&&p===d.string)return c(),d.string}function l(){if(s("WITH")){var p=n();if(p&&p.type==="EXCEPTION")return c(),p.string;throw new Error("Expected exception after `WITH`")}}function i(){var p=e,d="",m=n();if(m.type==="DOCUMENTREF"&&(c(),d+="DocumentRef-"+m.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(m=n(),m.type==="LICENSEREF")return c(),d+="LicenseRef-"+m.string,{license:d};e=p}function o(){var p=n();if(p&&p.type==="LICENSE"){c();var d={license:p.string};s("+")&&(d.plus=!0);var m=l();return m&&(d.exception=m),d}}function g(){var p=s("(");if(p){var d=u();if(!s(")"))throw new Error("Expected `)`");return d}}function f(){return g()||i()||o()}function E(p,d){return function m(){var w=d();if(w){if(!s(p))return w;var L=m();if(!L)throw new Error("Expected expression");return{left:w,conjunction:p.toLowerCase(),right:L}}}}var y=E("AND",f),u=E("OR",y),h=u();if(!h||r())throw new Error("Syntax error");return h}),Dt}var Ft,ms;function cn(){if(ms)return Ft;ms=1;var t=_a(),e=Ua();return Ft=function(r){return e(t(r))},Ft}var _t,gs;function Ga(){if(gs)return _t;gs=1;var t=cn(),e=an;function r(m){try{return t(m),!0}catch{return!1}}function n(m,w){var L=w[0].length-m[0].length;return L!==0?L:m[0].toUpperCase().localeCompare(w[0].toUpperCase())}var c=[["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),s=0,l=1,i=[function(m){return m.toUpperCase()},function(m){return m.trim()},function(m){return m.replace(/\./g,"")},function(m){return m.replace(/\s+/g,"")},function(m){return m.replace(/\s+/g,"-")},function(m){return m.replace("v","-")},function(m){return m.replace(/,?\s*(\d)/,"-$1")},function(m){return m.replace(/,?\s*(\d)/,"-$1.0")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(m){return m.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(m){return m[0].toUpperCase()+m.slice(1)},function(m){return m.replace("/","-")},function(m){return m.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(m){return m.indexOf("3.0")!==-1?m+"-or-later":m+"-only"},function(m){return m+"only"},function(m){return m.replace(/(\d)$/,"-$1.0")},function(m){return m.replace(/(-| )?(\d)$/,"-$2-Clause")},function(m){return m.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(m){return m.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(m){return m.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(m){return m.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(m){return m.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(m){return m.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(m){return"CC-"+m},function(m){return"CC-"+m+"-4.0"},function(m){return m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(m){return"CC-"+m.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],o=e.map(function(m){var w=/^(.*)-\d+\.\d+$/.exec(m);return w?[w[0],w[1]]:[m,null]}).reduce(function(m,w){var L=w[1];return m[L]=m[L]||[],m[L].push(w[0]),m},{}),g=Object.keys(o).map(function(w){return[w,o[w]]}).filter(function(w){return w[1].length===1&&w[0]!==null&&w[0]!=="APL"}).map(function(w){return[w[0],w[1][0]]});o=void 0;var f=[["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(g).sort(n),E=0,y=1,u=function(m){for(var w=0;w<i.length;w++){var L=i[w](m).trim();if(L!==m&&r(L))return L}return null},h=function(m){for(var w=m.toUpperCase(),L=0;L<f.length;L++){var a=f[L];if(w.indexOf(a[E])>-1)return a[y]}return null},p=function(m,w){for(var L=0;L<c.length;L++){var a=c[L],b=a[s];if(m.indexOf(b)>-1){var v=m.replace(b,a[l]),$=w(v);if($!==null)return $}}return null};_t=function(m,w){w=w||{};var L=w.upgrade===void 0?!0:!!w.upgrade;function a(R){return L?d(R):R}var b=typeof m=="string"&&m.trim().length!==0;if(!b)throw Error("Invalid argument. Expected non-empty string.");if(m=m.trim(),r(m))return a(m);var v=m.replace(/\+$/,"").trim();if(r(v))return a(v);var $=u(m);return $!==null||($=p(m,function(R){return r(R)?R:u(R)}),$!==null)||($=h(m),$!==null)||($=p(m,h),$!==null)?a($):null};function d(m){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(m)!==-1?m+"-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(m)!==-1?m.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(m)!==-1?m+"-or-later":m}return _t}var Ut,bs;function un(){if(bs)return Ut;bs=1;var t=cn(),e=Ga(),r='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',n=/^SEE LICEN[CS]E IN (.+)$/;function c(l,i){return i.slice(0,l.length)===l}function s(l){if(l.hasOwnProperty("license")){var i=l.license;return c("LicenseRef",i)||c("DocumentRef",i)}else return s(l.left)||s(l.right)}return Ut=function(l){var i;try{i=t(l)}catch{var o;if(l==="UNLICENSED"||l==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(o=n.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:o[1]};var g={validForOldPackages:!1,validForNewPackages:!1,warnings:[r]};if(l.trim().length!==0){var f=e(l);f&&g.warnings.push('license is similar to the valid expression "'+f+'"')}return g}return s(i)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[r]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},Ut}var Ge={},Es;function ja(){if(Es)return Ge;Es=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},n=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,n("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",u))}}let l=y=>!e.has(y),i=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>i(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#n=!1;static create(u){let h=o(u);if(!h)return[];f.#n=!0;let p=new f(u,h);return f.#n=!1,p}constructor(u,h){if(!f.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#n;#r;#e;#g;#w;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#m;#f;#o;#a;#t;#i;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;static unsafeExposeInternals(u){return{starts:u.#d,ttls:u.#y,sizes:u.#v,keyMap:u.#o,keyList:u.#a,valList:u.#t,next:u.#i,prev:u.#s,get head(){return u.#l},get tail(){return u.#p},free:u.#b,isBackgroundFetch:h=>u.#h(h),backgroundFetch:(h,p,d,m)=>u.#N(h,p,d,m),moveToTail:h=>u.#F(h),indexes:h=>u.#R(h),rindexes:h=>u.#I(h),isStale:h=>u.#$(h)}}get max(){return this.#n}get maxSize(){return this.#r}get calculatedSize(){return this.#f}get size(){return this.#m}get fetchMethod(){return this.#w}get memoMethod(){return this.#S}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:L,allowStale:a,dispose:b,disposeAfter:v,noDisposeOnSet:$,noUpdateTTL:R,maxSize:F=0,maxEntrySize:D=0,sizeCalculation:G,fetchMethod:W,memoMethod:x,noDeleteOnFetchRejection:H,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:z,ignoreFetchAbort:Y}=u;if(h!==0&&!i(h))throw new TypeError("max option must be a nonnegative integer");let V=h?o(h):Array;if(!V)throw new Error("invalid max value: "+h);if(this.#n=h,this.#r=F,this.maxEntrySize=D||this.#r,this.sizeCalculation=G,this.sizeCalculation){if(!this.#r&&!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(x!==void 0&&typeof x!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=x,W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#w=W,this.#A=!!W,this.#o=new Map,this.#a=new Array(h).fill(void 0),this.#t=new Array(h).fill(void 0),this.#i=new V(h),this.#s=new V(h),this.#l=0,this.#p=0,this.#b=f.create(h),this.#m=0,this.#f=0,typeof b=="function"&&(this.#e=b),typeof v=="function"?(this.#g=v,this.#u=[]):(this.#g=void 0,this.#u=void 0),this.#L=!!this.#e,this.#E=!!this.#g,this.noDisposeOnSet=!!$,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!H,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(this.#r!==0&&!i(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!L,this.ttlResolution=i(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#n===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#r){let J="LRU_CACHE_UNBOUNDED";l(J)&&(e.add(J),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,E))}}getRemainingTTL(u){return this.#o.has(u)?1/0:0}#T(){let u=new g(this.#n),h=new g(this.#n);this.#y=u,this.#d=h,this.#j=(m,w,L=t.now())=>{if(h[m]=w!==0?L:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#$(m)&&this.#c(this.#a[m],"expire")},w+1);a.unref&&a.unref()}},this.#C=m=>{h[m]=u[m]!==0?t.now():0},this.#P=(m,w)=>{if(u[w]){let L=u[w],a=h[w];if(!L||!a)return;m.ttl=L,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=L-b}};let p=0,d=()=>{let m=t.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#o.get(m);if(w===void 0)return 0;let L=u[w],a=h[w];if(!L||!a)return 1/0;let b=(p||d())-a;return L-b},this.#$=m=>{let w=h[m],L=u[m];return!!L&&!!w&&(p||d())-w>L}}#C=()=>{};#P=()=>{};#j=()=>{};#$=()=>!1;#D(){let u=new g(this.#n);this.#f=0,this.#v=u,this.#_=h=>{this.#f-=u[h],u[h]=0},this.#q=(h,p,d,m)=>{if(this.#h(p))return 0;if(!i(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!i(d))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 d},this.#O=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#f>m;)this.#x(!0)}this.#f+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#f)}}#_=u=>{};#O=(u,h,p)=>{};#q=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#p;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#l));)h=this.#s[h]}*#I({allowStale:u=this.allowStale}={}){if(this.#m)for(let h=this.#l;!(!this.#B(h)||((u||!this.#$(h))&&(yield h),h===this.#p));)h=this.#i[h]}#B(u){return u!==void 0&&this.#o.get(this.#a[u])===u}*entries(){for(let u of this.#R())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*rentries(){for(let u of this.#I())this.#t[u]!==void 0&&this.#a[u]!==void 0&&!this.#h(this.#t[u])&&(yield[this.#a[u],this.#t[u]])}*keys(){for(let u of this.#R()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*rkeys(){for(let u of this.#I()){let h=this.#a[u];h!==void 0&&!this.#h(this.#t[u])&&(yield h)}}*values(){for(let u of this.#R())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}*rvalues(){for(let u of this.#I())this.#t[u]!==void 0&&!this.#h(this.#t[u])&&(yield this.#t[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#a[p],this))return this.get(this.#a[p],h)}}forEach(u,h=this){for(let p of this.#R()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}rforEach(u,h=this){for(let p of this.#I()){let d=this.#t[p],m=this.#h(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#a[p],this)}}purgeStale(){let u=!1;for(let h of this.#I({allowStale:!0}))this.#$(h)&&(this.#c(this.#a[h],"expire"),u=!0);return u}info(u){let h=this.#o.get(u);if(h===void 0)return;let p=this.#t[h],d=this.#h(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#y&&this.#d){let w=this.#y[h],L=this.#d[h];if(w&&L){let a=w-(t.now()-L);m.ttl=a,m.start=Date.now()}}return this.#v&&(m.size=this.#v[h]),m}dump(){let u=[];for(let h of this.#R({allowStale:!0})){let p=this.#a[h],d=this.#t[h],m=this.#h(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#y&&this.#d){w.ttl=this.#y[h];let L=t.now()-this.#d[h];w.start=Math.floor(Date.now()-L)}this.#v&&(w.size=this.#v[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=t.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:L=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#q(u,h,p.size||0,L);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#c(u,"set"),this;let $=this.#m===0?void 0:this.#o.get(u);if($===void 0)$=this.#m===0?this.#p:this.#b.length!==0?this.#b.pop():this.#m===this.#n?this.#x(!1):this.#m,this.#a[$]=u,this.#t[$]=h,this.#o.set(u,$),this.#i[this.#p]=$,this.#s[$]=this.#p,this.#p=$,this.#m++,this.#O($,v,a),a&&(a.set="add"),b=!1;else{this.#F($);let R=this.#t[$];if(h!==R){if(this.#A&&this.#h(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#L&&this.#e?.(F,u,"set"),this.#E&&this.#u?.push([F,u,"set"]))}else w||(this.#L&&this.#e?.(R,u,"set"),this.#E&&this.#u?.push([R,u,"set"]));if(this.#_($),this.#O($,v,a),this.#t[$]=h,a){a.set="replace";let F=R&&this.#h(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update")}if(d!==0&&!this.#y&&this.#T(),this.#y&&(b||this.#j($,d,m),a&&this.#P(a,$)),!w&&this.#E&&this.#u){let R=this.#u,F;for(;F=R?.shift();)this.#g?.(...F)}return this}pop(){try{for(;this.#m;){let u=this.#t[this.#l];if(this.#x(!0),this.#h(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#E&&this.#u){let u=this.#u,h;for(;h=u?.shift();)this.#g?.(...h)}}}#x(u){let h=this.#l,p=this.#a[h],d=this.#t[h];return this.#A&&this.#h(d)?d.__abortController.abort(new Error("evicted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(d,p,"evict"),this.#E&&this.#u?.push([d,p,"evict"])),this.#_(h),u&&(this.#a[h]=void 0,this.#t[h]=void 0,this.#b.push(h)),this.#m===1?(this.#l=this.#p=0,this.#b.length=0):this.#l=this.#i[h],this.#o.delete(p),this.#m--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#o.get(u);if(m!==void 0){let w=this.#t[m];if(this.#h(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#$(m))d&&(d.has="stale",this.#P(d,m));else return p&&this.#C(m),d&&(d.has="hit",this.#P(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#o.get(u);if(d===void 0||!p&&this.#$(d))return;let m=this.#t[d];return this.#h(m)?m.__staleWhileFetching:m}#N(u,h,p,d){let m=h===void 0?void 0:this.#t[h];if(this.#h(m))return m;let w=new c,{signal:L}=p;L?.addEventListener("abort",()=>w.abort(L.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#t[h]===F&&(G===void 0?k.__staleWhileFetching?this.#t[h]=k.__staleWhileFetching:this.#c(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#t[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#c(u,"fetch"):x||(this.#t[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#w?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#o.get(u)):this.#t[h]=D,D}#h(u){if(!this.#A)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:L=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#A)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:L,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#o.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#N(u,B,k,G);return z.__returned=z}else{let z=this.#t[B];if(this.#h(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#$(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#F(B),d&&this.#C(B),x&&this.#P(x,B),z;let V=this.#N(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#S;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,L=this.get(u,w);if(!m&&L!==void 0)return L;let a=p(u,L,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,L=this.#o.get(u);if(L!==void 0){let a=this.#t[L],b=this.#h(a);return w&&this.#P(w,L),this.#$(L)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#c(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#F(L),d&&this.#C(L),a))}else w&&(w.get="miss")}#G(u,h){this.#s[h]=u,this.#i[u]=h}#F(u){u!==this.#p&&(u===this.#l?this.#l=this.#i[u]:this.#G(this.#s[u],this.#i[u]),this.#G(this.#p,u),this.#p=u)}delete(u){return this.#c(u,"delete")}#c(u,h){let p=!1;if(this.#m!==0){let d=this.#o.get(u);if(d!==void 0)if(p=!0,this.#m===1)this.#M(h);else{this.#_(d);let m=this.#t[d];if(this.#h(m)?m.__abortController.abort(new Error("deleted")):(this.#L||this.#E)&&(this.#L&&this.#e?.(m,u,h),this.#E&&this.#u?.push([m,u,h])),this.#o.delete(u),this.#a[d]=void 0,this.#t[d]=void 0,d===this.#p)this.#p=this.#s[d];else if(d===this.#l)this.#l=this.#i[d];else{let w=this.#s[d];this.#i[w]=this.#i[d];let L=this.#i[d];this.#s[L]=this.#s[d]}this.#m--,this.#b.push(d)}}if(this.#E&&this.#u?.length){let d=this.#u,m;for(;m=d?.shift();)this.#g?.(...m)}return p}clear(){return this.#M("delete")}#M(u){for(let h of this.#I({allowStale:!0})){let p=this.#t[h];if(this.#h(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#a[h];this.#L&&this.#e?.(p,d,u),this.#E&&this.#u?.push([p,d,u])}}if(this.#o.clear(),this.#t.fill(void 0),this.#a.fill(void 0),this.#y&&this.#d&&(this.#y.fill(0),this.#d.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#p=0,this.#b.length=0,this.#f=0,this.#m=0,this.#E&&this.#u){let h=this.#u,p;for(;p=h?.shift();)this.#g?.(...p)}}}return Ge.LRUCache=E,Ge}var Gt,ys;function Ba(){if(ys)return Gt;ys=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),n={sshtemplate:({domain:s,user:l,project:i,committish:o})=>`git@${s}:${l}/${i}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:i,committish:o})=>`git+ssh://git@${s}/${l}/${i}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:i,committish:o,treepath:g})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:i,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:i,treepath:o,committish:g})=>`https://${s}/${l}/${i}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:i,committish:o})=>`${s}:${l}/${i}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:i})=>`${s}/${l}${t("#",i)}`,bugstemplate:({domain:s,user:l,project:i})=>`https://${s}/${l}/${i}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:i,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${i}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://codeload.${s}/${l}/${i}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,i,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let i=l.split("/"),o=i.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=i.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:i})=>`git@${s}:${l}.git${t("#",i)}`,sshurltemplate:({domain:s,project:l,committish:i})=>`git+ssh://git@${s}/${l}.git${t("#",i)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g})=>`https://${s}/${l}/${i}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,browsetreetemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,httpstemplate:({domain:s,project:l,committish:i})=>`git+https://${s}/${l}.git${t("#",i)}`,filetemplate:({user:s,project:l,committish:i,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(i))}/${o}`,shortcuttemplate:({type:s,project:l,committish:i})=>`${s}:${l}${t("#",i)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:i})=>`git://${s}/${l}.git${t("#",i)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(o!=="raw"){if(!i){if(!l)return;i=l,l=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:l,project:i,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},n,l);return Gt=c,Gt}var jt,ws;function ln(){if(ws)return jt;ws=1;let t=cr,e=(s,l,i)=>{let o=s.indexOf(i);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},n=(s,l)=>{let i=s.indexOf(":"),o=s.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>i?`git+ssh://${s}`:s:s.indexOf("//")===i+1?s:`${s.slice(0,i+1)}//${s.slice(i+1)}`},c=s=>{let l=e(s,"@","#"),i=e(s,":","#");return i>l&&(s=s.slice(0,i)+"/"+s.slice(i+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return jt=(s,l)=>{let i=l?n(s,l):s;return r(i)||r(c(i))},jt}var Bt,vs;function Ma(){if(vs)return Bt;vs=1;let t=ln(),e=r=>{let n=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),i=/\s/.exec(r),o=r.indexOf("@"),g=!i||n>-1&&i.index>n,f=o===-1||n>-1&&o>n,E=l===-1||n>-1&&l>n,y=s===-1||n>-1&&s>n,u=c>0,h=n>-1?r[n-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Bt=(r,n,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,i=t(l,s);if(!i)return;let o=c.byShortcut[i.protocol],g=c.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[i.protocol]?.auth&&(i.username||i.password)&&(y=`${i.username}${i.password?":"+i.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let L=m.lastIndexOf("/");L>-1?(h=decodeURIComponent(m.slice(0,L)),h||(h=null),p=decodeURIComponent(m.slice(L+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),i.hash&&(u=decodeURIComponent(i.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(i.protocol))return;let m=E.extract(i);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,n]},Bt}var Mt,Ls;function qa(){if(Ls)return Mt;Ls=1;let{LRUCache:t}=ja(),e=Ba(),r=Ma(),n=ln(),c=new t({max:1e3});class s{constructor(i,o,g,f,E,y,u={}){Object.assign(this,s.#n[i],{type:i,user:o,auth:g,project:f,committish:E,default:y,opts:u})}static#n={byShortcut:{},byDomain:{}};static#r={"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(i,o){s.#n[i]=o,s.#n.byDomain[o.domain]=i,s.#n.byShortcut[`${i}:`]=i,s.#r[`${i}:`]={name:i}}static fromUrl(i,o){if(typeof i!="string")return;let g=i+JSON.stringify(o||{});if(!c.has(g)){let f=r(i,o,{gitHosts:s.#n,protocols:s.#r});c.set(g,f?new s(...f):void 0)}return c.get(g)}static parseUrl(i){return n(i)}#e(i,o){if(typeof i!="function")return null;let g={...this,...this.opts,...o};g.path||(g.path=""),g.path.startsWith("/")&&(g.path=g.path.slice(1)),g.noCommittish&&(g.committish=null);let f=i(g);return g.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(i){return this.#e(this.sshtemplate,i)}sshurl(i){return this.#e(this.sshurltemplate,i)}browse(i,...o){return typeof i!="string"?this.#e(this.browsetemplate,i):typeof o[0]!="string"?this.#e(this.browsetreetemplate,{...o[0],path:i}):this.#e(this.browsetreetemplate,{...o[1],fragment:o[0],path:i})}browseFile(i,...o){return typeof o[0]!="string"?this.#e(this.browseblobtemplate,{...o[0],path:i}):this.#e(this.browseblobtemplate,{...o[1],fragment:o[0],path:i})}docs(i){return this.#e(this.docstemplate,i)}bugs(i){return this.#e(this.bugstemplate,i)}https(i){return this.#e(this.httpstemplate,i)}git(i){return this.#e(this.gittemplate,i)}shortcut(i){return this.#e(this.shortcuttemplate,i)}path(i){return this.#e(this.pathtemplate,i)}tarball(i){return this.#e(this.tarballtemplate,{...i,noCommittish:!1})}file(i,o){return this.#e(this.filetemplate,{...o,path:i})}edit(i,o){return this.#e(this.edittemplate,{...o,path:i})}getDefaultRepresentation(){return this.default}toString(i){return this.default&&typeof this[this.default]=="function"?this[this.default](i):this.sshurl(i)}}for(let[l,i]of Object.entries(e))s.addHost(l,i);return Mt=s,Mt}var qt,Cs;function za(){if(Cs)return qt;Cs=1,qt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
17
+ `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let n=e.length,c=r+1;for(;c<n&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return qt}var Ha={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"},Wa={web:"url",name:"url"},ka={server:"start",tests:"test"},Va={topLevel:Ha,bugs:Wa,script:ka},zt,Ss;function Xa(){if(Ss)return zt;Ss=1;var t=nn(),e=on(),r=un(),n=qa(),c=Ws,s=["dependencies","devDependencies","optionalDependencies"],l=za(),i=cr,o=Va,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");zt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=n.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=n.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!t(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=e(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),c.builtinModules.includes(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=l(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=n.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:i.parse(a.bugs).protocol?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{L(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(typeof v.url=="string"&&i.parse(v.url).protocol?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=n.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;i.parse(a.homepage).protocol||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!r(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){s.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function L(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return zt}var Ya="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Ka="No repository field.",Ja="Probably broken git url: %s",Za="scripts must be an object",Qa="script values must be string commands",ec="Invalid 'files' member",tc="Invalid filename in 'files' list: %s",rc="Invalid 'bundleDependencies' list. Must be array of package names",sc="Invalid bundleDependencies member: %s",nc="Non-dependency in bundleDependencies: %s",ic="%s field must be an object",oc="Invalid dependency: %s %s",ac="specifying %s as array is deprecated",cc="modules field is deprecated",uc="keywords should be an array of strings",lc="keywords should be an array of strings",fc="%s is also the name of a node core module.",hc="'description' field should be a string",pc="No description",dc="No README data",mc="No license field.",gc="Bug string field must be url, email, or {email,url}",bc="bugs.url field must be a string url. Deleted.",Ec="bugs.email field must be a string email. Deleted.",yc="Normalized value of bugs field is an empty object. Deleted.",wc="homepage field must be a string url. Deleted.",vc="license should be a valid SPDX license expression",Lc="%s should probably be %s.",Cc={repositories:Ya,missingRepository:Ka,brokenGitUrl:Ja,nonObjectScripts:Za,nonStringScript:Qa,nonArrayFiles:ec,invalidFilename:tc,nonArrayBundleDependencies:rc,nonStringBundleDependency:sc,nonDependencyBundleDependency:nc,nonObjectDependencies:ic,nonStringDependency:oc,deprecatedArrayDependencies:ac,deprecatedModules:cc,nonArrayKeywords:uc,nonStringKeyword:lc,conflictingName:fc,nonStringDescription:hc,missingDescription:pc,missingReadme:dc,missingLicense:mc,nonEmailUrlBugsString:gc,nonUrlBugsUrlField:bc,nonEmailBugsEmailField:Ec,emptyNormalizedBugs:yc,nonUrlHomepage:wc,invalidLicense:vc,typo:Lc},Ht,As;function Sc(){if(As)return Ht;As=1;var t=Hs,e=Cc;Ht=function(){var n=Array.prototype.slice.call(arguments,0),c=n.shift();if(c==="typo")return r.apply(null,n);var s=e[c]?e[c]:c+": '%s'";return n.unshift(s),t.format.apply(null,n)};function r(n,c,s){return s&&(n=s+"['"+n+"']",c=s+"['"+c+"']"),t.format(e.typo,n,c)}return Ht}var Wt,$s;function Ac(){if($s)return Wt;$s=1,Wt=s;var t=Xa();s.fixer=t;var e=Sc(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],c=r.map(function(i){return l(i)+"Field"});c=c.concat(n);function s(i,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||i.private)&&(o=function(){}),i.scripts&&i.scripts.install==="node-gyp rebuild"&&!i.scripts.preinstall&&(i.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](i,g)}),i._id=i.name+"@"+i.version}function l(i){return i.charAt(0).toUpperCase()+i.slice(1)}return Wt}var $c=Ac(),Oc=rt($c);function Rc(t){return t instanceof URL?ks(t):t}var Ic=t=>ye.resolve(Rc(t)??".","package.json"),xc=(t,e)=>{let r=typeof t=="string"?Ia(t):t;return e&&Oc(r),r};function Nc({cwd:t,normalize:e=!0}={}){let r=Vs.readFileSync(Ic(t),"utf8");return xc(r,e)}function fn(t){let e=ga("package.json",t);if(e)return{packageJson:Nc({...t,cwd:ye.dirname(e)}),path:e}}var je={},Os;function Pc(){if(Os)return je;Os=1,Object.defineProperty(je,"__esModule",{value:!0}),je.LRUCache=void 0;let t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof process=="object"&&process?process:{},n=(y,u,h,p)=>{typeof r.emitWarning=="function"?r.emitWarning(y,u,h,p):console.error(`[${h}] ${u}: ${y}`)},c=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof c>"u"){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,d){this._onabort.push(d)}},c=class{constructor(){u()}signal=new s;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let d of this.signal._onabort)d(p);this.signal.onabort?.(p)}}};let y=r.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",u=()=>{y&&(y=!1,n("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",u))}}let l=y=>!e.has(y),i=y=>y&&y===Math.floor(y)&&y>0&&isFinite(y),o=y=>i(y)?y<=Math.pow(2,8)?Uint8Array:y<=Math.pow(2,16)?Uint16Array:y<=Math.pow(2,32)?Uint32Array:y<=Number.MAX_SAFE_INTEGER?g:null:null;class g extends Array{constructor(u){super(u),this.fill(0)}}class f{heap;length;static#n=!1;static create(u){let h=o(u);if(!h)return[];f.#n=!0;let p=new f(u,h);return f.#n=!1,p}constructor(u,h){if(!f.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new h(u),this.length=0}push(u){this.heap[this.length++]=u}pop(){return this.heap[--this.length]}}class E{#n;#r;#e;#g;#w;#S;#m;#f;get perf(){return this.#f}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#t;#i;#s;#l;#p;#b;#u;#v;#d;#y;#L;#A;#E;#T;#C;#P;static unsafeExposeInternals(u){return{starts:u.#L,ttls:u.#A,sizes:u.#y,keyMap:u.#t,keyList:u.#i,valList:u.#s,next:u.#l,prev:u.#p,get head(){return u.#b},get tail(){return u.#u},free:u.#v,isBackgroundFetch:h=>u.#c(h),backgroundFetch:(h,p,d,m)=>u.#F(h,p,d,m),moveToTail:h=>u.#z(h),indexes:h=>u.#x(h),rindexes:h=>u.#N(h),isStale:h=>u.#O(h)}}get max(){return this.#n}get maxSize(){return this.#r}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#S}get memoMethod(){return this.#m}get dispose(){return this.#e}get onInsert(){return this.#g}get disposeAfter(){return this.#w}constructor(u){let{max:h=0,ttl:p,ttlResolution:d=1,ttlAutopurge:m,updateAgeOnGet:w,updateAgeOnHas:L,allowStale:a,dispose:b,onInsert:v,disposeAfter:$,noDisposeOnSet:R,noUpdateTTL:F,maxSize:D=0,maxEntrySize:G=0,sizeCalculation:W,fetchMethod:x,memoMethod:H,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:Y,ignoreFetchAbort:V,perf:J}=u;if(J!==void 0&&typeof J?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#f=J??t,h!==0&&!i(h))throw new TypeError("max option must be a nonnegative integer");let K=h?o(h):Array;if(!K)throw new Error("invalid max value: "+h);if(this.#n=h,this.#r=D,this.maxEntrySize=G||this.#r,this.sizeCalculation=W,this.sizeCalculation){if(!this.#r&&!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(H!==void 0&&typeof H!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=H,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#S=x,this.#T=!!x,this.#t=new Map,this.#i=new Array(h).fill(void 0),this.#s=new Array(h).fill(void 0),this.#l=new K(h),this.#p=new K(h),this.#b=0,this.#u=0,this.#v=f.create(h),this.#o=0,this.#a=0,typeof b=="function"&&(this.#e=b),typeof v=="function"&&(this.#g=v),typeof $=="function"?(this.#w=$,this.#d=[]):(this.#w=void 0,this.#d=void 0),this.#E=!!this.#e,this.#P=!!this.#g,this.#C=!!this.#w,this.noDisposeOnSet=!!R,this.noUpdateTTL=!!F,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!z,this.allowStaleOnFetchAbort=!!Y,this.ignoreFetchAbort=!!V,this.maxEntrySize!==0){if(this.#r!==0&&!i(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!w,this.updateAgeOnHas=!!L,this.ttlResolution=i(d)||d===0?d:1,this.ttlAutopurge=!!m,this.ttl=p||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#n===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#r){let te="LRU_CACHE_UNBOUNDED";l(te)&&(e.add(te),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",te,E))}}getRemainingTTL(u){return this.#t.has(u)?1/0:0}#j(){let u=new g(this.#n),h=new g(this.#n);this.#A=u,this.#L=h,this.#_=(m,w,L=this.#f.now())=>{if(h[m]=w!==0?L:0,u[m]=w,w!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#O(m)&&this.#U(this.#i[m],"expire")},w+1);a.unref&&a.unref()}},this.#$=m=>{h[m]=u[m]!==0?this.#f.now():0},this.#D=(m,w)=>{if(u[w]){let L=u[w],a=h[w];if(!L||!a)return;m.ttl=L,m.start=a,m.now=p||d();let b=m.now-a;m.remainingTTL=L-b}};let p=0,d=()=>{let m=this.#f.now();if(this.ttlResolution>0){p=m;let w=setTimeout(()=>p=0,this.ttlResolution);w.unref&&w.unref()}return m};this.getRemainingTTL=m=>{let w=this.#t.get(m);if(w===void 0)return 0;let L=u[w],a=h[w];if(!L||!a)return 1/0;let b=(p||d())-a;return L-b},this.#O=m=>{let w=h[m],L=u[m];return!!L&&!!w&&(p||d())-w>L}}#$=()=>{};#D=()=>{};#_=()=>{};#O=()=>!1;#q(){let u=new g(this.#n);this.#a=0,this.#y=u,this.#R=h=>{this.#a-=u[h],u[h]=0},this.#B=(h,p,d,m)=>{if(this.#c(p))return 0;if(!i(d))if(m){if(typeof m!="function")throw new TypeError("sizeCalculation must be a function");if(d=m(p,h),!i(d))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 d},this.#I=(h,p,d)=>{if(u[h]=p,this.#r){let m=this.#r-u[h];for(;this.#a>m;)this.#G(!0)}this.#a+=u[h],d&&(d.entrySize=p,d.totalCalculatedSize=this.#a)}}#R=u=>{};#I=(u,h,p)=>{};#B=(u,h,p,d)=>{if(p||d)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#u;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#b));)h=this.#p[h]}*#N({allowStale:u=this.allowStale}={}){if(this.#o)for(let h=this.#b;!(!this.#h(h)||((u||!this.#O(h))&&(yield h),h===this.#u));)h=this.#l[h]}#h(u){return u!==void 0&&this.#t.get(this.#i[u])===u}*entries(){for(let u of this.#x())this.#s[u]!==void 0&&this.#i[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#i[u],this.#s[u]])}*rentries(){for(let u of this.#N())this.#s[u]!==void 0&&this.#i[u]!==void 0&&!this.#c(this.#s[u])&&(yield[this.#i[u],this.#s[u]])}*keys(){for(let u of this.#x()){let h=this.#i[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*rkeys(){for(let u of this.#N()){let h=this.#i[u];h!==void 0&&!this.#c(this.#s[u])&&(yield h)}}*values(){for(let u of this.#x())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}*rvalues(){for(let u of this.#N())this.#s[u]!==void 0&&!this.#c(this.#s[u])&&(yield this.#s[u])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(u,h={}){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;if(m!==void 0&&u(m,this.#i[p],this))return this.get(this.#i[p],h)}}forEach(u,h=this){for(let p of this.#x()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#i[p],this)}}rforEach(u,h=this){for(let p of this.#N()){let d=this.#s[p],m=this.#c(d)?d.__staleWhileFetching:d;m!==void 0&&u.call(h,m,this.#i[p],this)}}purgeStale(){let u=!1;for(let h of this.#N({allowStale:!0}))this.#O(h)&&(this.#U(this.#i[h],"expire"),u=!0);return u}info(u){let h=this.#t.get(u);if(h===void 0)return;let p=this.#s[h],d=this.#c(p)?p.__staleWhileFetching:p;if(d===void 0)return;let m={value:d};if(this.#A&&this.#L){let w=this.#A[h],L=this.#L[h];if(w&&L){let a=w-(this.#f.now()-L);m.ttl=a,m.start=Date.now()}}return this.#y&&(m.size=this.#y[h]),m}dump(){let u=[];for(let h of this.#x({allowStale:!0})){let p=this.#i[h],d=this.#s[h],m=this.#c(d)?d.__staleWhileFetching:d;if(m===void 0||p===void 0)continue;let w={value:m};if(this.#A&&this.#L){w.ttl=this.#A[h];let L=this.#f.now()-this.#L[h];w.start=Math.floor(Date.now()-L)}this.#y&&(w.size=this.#y[h]),u.unshift([p,w])}return u}load(u){this.clear();for(let[h,p]of u){if(p.start){let d=Date.now()-p.start;p.start=this.#f.now()-d}this.set(h,p.value,p)}}set(u,h,p={}){if(h===void 0)return this.delete(u),this;let{ttl:d=this.ttl,start:m,noDisposeOnSet:w=this.noDisposeOnSet,sizeCalculation:L=this.sizeCalculation,status:a}=p,{noUpdateTTL:b=this.noUpdateTTL}=p,v=this.#B(u,h,p.size||0,L);if(this.maxEntrySize&&v>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#U(u,"set"),this;let $=this.#o===0?void 0:this.#t.get(u);if($===void 0)$=this.#o===0?this.#u:this.#v.length!==0?this.#v.pop():this.#o===this.#n?this.#G(!1):this.#o,this.#i[$]=u,this.#s[$]=h,this.#t.set(u,$),this.#l[this.#u]=$,this.#p[$]=this.#u,this.#u=$,this.#o++,this.#I($,v,a),a&&(a.set="add"),b=!1,this.#P&&this.#g?.(h,u,"add");else{this.#z($);let R=this.#s[$];if(h!==R){if(this.#T&&this.#c(R)){R.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:F}=R;F!==void 0&&!w&&(this.#E&&this.#e?.(F,u,"set"),this.#C&&this.#d?.push([F,u,"set"]))}else w||(this.#E&&this.#e?.(R,u,"set"),this.#C&&this.#d?.push([R,u,"set"]));if(this.#R($),this.#I($,v,a),this.#s[$]=h,a){a.set="replace";let F=R&&this.#c(R)?R.__staleWhileFetching:R;F!==void 0&&(a.oldValue=F)}}else a&&(a.set="update");this.#P&&this.onInsert?.(h,u,h===R?"update":"replace")}if(d!==0&&!this.#A&&this.#j(),this.#A&&(b||this.#_($,d,m),a&&this.#D(a,$)),!w&&this.#C&&this.#d){let R=this.#d,F;for(;F=R?.shift();)this.#w?.(...F)}return this}pop(){try{for(;this.#o;){let u=this.#s[this.#b];if(this.#G(!0),this.#c(u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(this.#C&&this.#d){let u=this.#d,h;for(;h=u?.shift();)this.#w?.(...h)}}}#G(u){let h=this.#b,p=this.#i[h],d=this.#s[h];return this.#T&&this.#c(d)?d.__abortController.abort(new Error("evicted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(d,p,"evict"),this.#C&&this.#d?.push([d,p,"evict"])),this.#R(h),u&&(this.#i[h]=void 0,this.#s[h]=void 0,this.#v.push(h)),this.#o===1?(this.#b=this.#u=0,this.#v.length=0):this.#b=this.#l[h],this.#t.delete(p),this.#o--,h}has(u,h={}){let{updateAgeOnHas:p=this.updateAgeOnHas,status:d}=h,m=this.#t.get(u);if(m!==void 0){let w=this.#s[m];if(this.#c(w)&&w.__staleWhileFetching===void 0)return!1;if(this.#O(m))d&&(d.has="stale",this.#D(d,m));else return p&&this.#$(m),d&&(d.has="hit",this.#D(d,m)),!0}else d&&(d.has="miss");return!1}peek(u,h={}){let{allowStale:p=this.allowStale}=h,d=this.#t.get(u);if(d===void 0||!p&&this.#O(d))return;let m=this.#s[d];return this.#c(m)?m.__staleWhileFetching:m}#F(u,h,p,d){let m=h===void 0?void 0:this.#s[h];if(this.#c(m))return m;let w=new c,{signal:L}=p;L?.addEventListener("abort",()=>w.abort(L.reason),{signal:w.signal});let a={signal:w.signal,options:p,context:d},b=(G,W=!1)=>{let{aborted:x}=w.signal,H=p.ignoreFetchAbort&&G!==void 0;if(p.status&&(x&&!W?(p.status.fetchAborted=!0,p.status.fetchError=w.signal.reason,H&&(p.status.fetchAbortIgnored=!0)):p.status.fetchResolved=!0),x&&!H&&!W)return $(w.signal.reason);let k=F;return this.#s[h]===F&&(G===void 0?k.__staleWhileFetching!==void 0?this.#s[h]=k.__staleWhileFetching:this.#U(u,"fetch"):(p.status&&(p.status.fetchUpdated=!0),this.set(u,G,a.options))),G},v=G=>(p.status&&(p.status.fetchRejected=!0,p.status.fetchError=G),$(G)),$=G=>{let{aborted:W}=w.signal,x=W&&p.allowStaleOnFetchAbort,H=x||p.allowStaleOnFetchRejection,k=H||p.noDeleteOnFetchRejection,B=F;if(this.#s[h]===F&&(!k||B.__staleWhileFetching===void 0?this.#U(u,"fetch"):x||(this.#s[h]=B.__staleWhileFetching)),H)return p.status&&B.__staleWhileFetching!==void 0&&(p.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw G},R=(G,W)=>{let x=this.#S?.(u,m,a);x&&x instanceof Promise&&x.then(H=>G(H===void 0?void 0:H),W),w.signal.addEventListener("abort",()=>{(!p.ignoreFetchAbort||p.allowStaleOnFetchAbort)&&(G(void 0),p.allowStaleOnFetchAbort&&(G=H=>b(H,!0)))})};p.status&&(p.status.fetchDispatched=!0);let F=new Promise(R).then(b,v),D=Object.assign(F,{__abortController:w,__staleWhileFetching:m,__returned:void 0});return h===void 0?(this.set(u,D,{...a.options,status:void 0}),h=this.#t.get(u)):this.#s[h]=D,D}#c(u){if(!this.#T)return!1;let h=u;return!!h&&h instanceof Promise&&h.hasOwnProperty("__staleWhileFetching")&&h.__abortController instanceof c}async fetch(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,ttl:w=this.ttl,noDisposeOnSet:L=this.noDisposeOnSet,size:a=0,sizeCalculation:b=this.sizeCalculation,noUpdateTTL:v=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:F=this.ignoreFetchAbort,allowStaleOnFetchAbort:D=this.allowStaleOnFetchAbort,context:G,forceRefresh:W=!1,status:x,signal:H}=h;if(!this.#T)return x&&(x.fetch="get"),this.get(u,{allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,status:x});let k={allowStale:p,updateAgeOnGet:d,noDeleteOnStaleGet:m,ttl:w,noDisposeOnSet:L,size:a,sizeCalculation:b,noUpdateTTL:v,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,status:x,signal:H},B=this.#t.get(u);if(B===void 0){x&&(x.fetch="miss");let z=this.#F(u,B,k,G);return z.__returned=z}else{let z=this.#s[B];if(this.#c(z)){let te=p&&z.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",te&&(x.returnedStale=!0)),te?z.__staleWhileFetching:z.__returned=z}let Y=this.#O(B);if(!W&&!Y)return x&&(x.fetch="hit"),this.#z(B),d&&this.#$(B),x&&this.#D(x,B),z;let V=this.#F(u,B,k,G),K=V.__staleWhileFetching!==void 0&&p;return x&&(x.fetch=Y?"stale":"refresh",K&&Y&&(x.returnedStale=!0)),K?V.__staleWhileFetching:V.__returned=V}}async forceFetch(u,h={}){let p=await this.fetch(u,h);if(p===void 0)throw new Error("fetch() returned undefined");return p}memo(u,h={}){let p=this.#m;if(!p)throw new Error("no memoMethod provided to constructor");let{context:d,forceRefresh:m,...w}=h,L=this.get(u,w);if(!m&&L!==void 0)return L;let a=p(u,L,{options:w,context:d});return this.set(u,a,w),a}get(u,h={}){let{allowStale:p=this.allowStale,updateAgeOnGet:d=this.updateAgeOnGet,noDeleteOnStaleGet:m=this.noDeleteOnStaleGet,status:w}=h,L=this.#t.get(u);if(L!==void 0){let a=this.#s[L],b=this.#c(a);return w&&this.#D(w,L),this.#O(L)?(w&&(w.get="stale"),b?(w&&p&&a.__staleWhileFetching!==void 0&&(w.returnedStale=!0),p?a.__staleWhileFetching:void 0):(m||this.#U(u,"expire"),w&&p&&(w.returnedStale=!0),p?a:void 0)):(w&&(w.get="hit"),b?a.__staleWhileFetching:(this.#z(L),d&&this.#$(L),a))}else w&&(w.get="miss")}#M(u,h){this.#p[h]=u,this.#l[u]=h}#z(u){u!==this.#u&&(u===this.#b?this.#b=this.#l[u]:this.#M(this.#p[u],this.#l[u]),this.#M(this.#u,u),this.#u=u)}delete(u){return this.#U(u,"delete")}#U(u,h){let p=!1;if(this.#o!==0){let d=this.#t.get(u);if(d!==void 0)if(p=!0,this.#o===1)this.#H(h);else{this.#R(d);let m=this.#s[d];if(this.#c(m)?m.__abortController.abort(new Error("deleted")):(this.#E||this.#C)&&(this.#E&&this.#e?.(m,u,h),this.#C&&this.#d?.push([m,u,h])),this.#t.delete(u),this.#i[d]=void 0,this.#s[d]=void 0,d===this.#u)this.#u=this.#p[d];else if(d===this.#b)this.#b=this.#l[d];else{let w=this.#p[d];this.#l[w]=this.#l[d];let L=this.#l[d];this.#p[L]=this.#p[d]}this.#o--,this.#v.push(d)}}if(this.#C&&this.#d?.length){let d=this.#d,m;for(;m=d?.shift();)this.#w?.(...m)}return p}clear(){return this.#H("delete")}#H(u){for(let h of this.#N({allowStale:!0})){let p=this.#s[h];if(this.#c(p))p.__abortController.abort(new Error("deleted"));else{let d=this.#i[h];this.#E&&this.#e?.(p,d,u),this.#C&&this.#d?.push([p,d,u])}}if(this.#t.clear(),this.#s.fill(void 0),this.#i.fill(void 0),this.#A&&this.#L&&(this.#A.fill(0),this.#L.fill(0)),this.#y&&this.#y.fill(0),this.#b=0,this.#u=0,this.#v.length=0,this.#a=0,this.#o=0,this.#C&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#w?.(...p)}}}return je.LRUCache=E,je}var kt,Rs;function Tc(){if(Rs)return kt;Rs=1;let t=(...s)=>s.every(l=>l)?s.join(""):"",e=s=>s?encodeURIComponent(s):"",r=s=>s.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),n={sshtemplate:({domain:s,user:l,project:i,committish:o})=>`git@${s}:${l}/${i}.git${t("#",o)}`,sshurltemplate:({domain:s,user:l,project:i,committish:o})=>`git+ssh://git@${s}/${l}/${i}.git${t("#",o)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g,path:f})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f)}`,browsetemplate:({domain:s,user:l,project:i,committish:o,treepath:g})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o))}`,browsetreetemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,browseblobtemplate:({domain:s,user:l,project:i,committish:o,blobpath:g,path:f,fragment:E,hashformat:y})=>`https://${s}/${l}/${i}/${g}/${e(o||"HEAD")}/${f}${t("#",y(E||""))}`,docstemplate:({domain:s,user:l,project:i,treepath:o,committish:g})=>`https://${s}/${l}/${i}${t("/",o,"/",e(g))}#readme`,httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/raw/${e(o||"HEAD")}/${g}`,shortcuttemplate:({type:s,user:l,project:i,committish:o})=>`${s}:${l}/${i}${t("#",o)}`,pathtemplate:({user:s,project:l,committish:i})=>`${s}/${l}${t("#",i)}`,bugstemplate:({domain:s,user:l,project:i})=>`https://${s}/${l}/${i}/issues`,hashformat:r},c={};c.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:s,user:l,project:i,committish:o,path:g})=>`https://${t(s,"@")}raw.githubusercontent.com/${l}/${i}/${e(o||"HEAD")}/${g}`,gittemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://codeload.${s}/${l}/${i}/tar.gz/${e(o||"HEAD")}`,extract:s=>{let[,l,i,o,g]=s.pathname.split("/",5);if(!(o&&o!=="tree")&&(o||(g=s.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:g}}},c.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:s,user:l,project:i,committish:o,treepath:g,path:f,editpath:E})=>`https://${s}/${l}/${i}${t("/",g,"/",e(o||"HEAD"),"/",f,E)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/get/${e(o||"HEAD")}.tar.gz`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["get"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}},c.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:s,domain:l,user:i,project:o,committish:g})=>`git+https://${t(s,"@")}${l}/${i}/${o}.git${t("#",g)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/repository/archive.tar.gz?ref=${e(o||"HEAD")}`,extract:s=>{let l=s.pathname.slice(1);if(l.includes("/-/")||l.includes("/archive.tar.gz"))return;let i=l.split("/"),o=i.pop();o.endsWith(".git")&&(o=o.slice(0,-4));let g=i.join("/");if(!(!g||!o))return{user:g,project:o,committish:s.hash.slice(1)}}},c.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:s,project:l,committish:i})=>`git@${s}:${l}.git${t("#",i)}`,sshurltemplate:({domain:s,project:l,committish:i})=>`git+ssh://git@${s}/${l}.git${t("#",i)}`,edittemplate:({domain:s,user:l,project:i,committish:o,editpath:g})=>`https://${s}/${l}/${i}${t("/",e(o))}/${g}`,browsetemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,browsetreetemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,browseblobtemplate:({domain:s,project:l,committish:i,path:o,hashformat:g})=>`https://${s}/${l}${t("/",e(i))}${t("#",g(o))}`,docstemplate:({domain:s,project:l,committish:i})=>`https://${s}/${l}${t("/",e(i))}`,httpstemplate:({domain:s,project:l,committish:i})=>`git+https://${s}/${l}.git${t("#",i)}`,filetemplate:({user:s,project:l,committish:i,path:o})=>`https://gist.githubusercontent.com/${s}/${l}/raw${t("/",e(i))}/${o}`,shortcuttemplate:({type:s,project:l,committish:i})=>`${s}:${l}${t("#",i)}`,pathtemplate:({project:s,committish:l})=>`${s}${t("#",l)}`,bugstemplate:({domain:s,project:l})=>`https://${s}/${l}`,gittemplate:({domain:s,project:l,committish:i})=>`git://${s}/${l}.git${t("#",i)}`,tarballtemplate:({project:s,committish:l})=>`https://codeload.github.com/gist/${s}/tar.gz/${e(l||"HEAD")}`,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(o!=="raw"){if(!i){if(!l)return;i=l,l=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:l,project:i,committish:s.hash.slice(1)}}},hashformat:function(s){return s&&"file-"+r(s)}},c.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:s,user:l,project:i,committish:o,path:g})=>`https://${s}/${l}/${i}/blob/${e(o)||"HEAD"}/${g}`,httpstemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}.git${t("#",o)}`,tarballtemplate:({domain:s,user:l,project:i,committish:o})=>`https://${s}/${l}/${i}/archive/${e(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:s=>{let[,l,i,o]=s.pathname.split("/",4);if(!["archive"].includes(o)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!l||!i)))return{user:l,project:i,committish:s.hash.slice(1)}}};for(let[s,l]of Object.entries(c))c[s]=Object.assign({},n,l);return kt=c,kt}var Vt,Is;function hn(){if(Is)return Vt;Is=1;let t=cr,e=(s,l,i)=>{let o=s.indexOf(i);return s.lastIndexOf(l,o>-1?o:1/0)},r=s=>{try{return new t.URL(s)}catch{}},n=(s,l)=>{let i=s.indexOf(":"),o=s.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(l,o))return s;let g=s.indexOf("@");return g>-1?g>i?`git+ssh://${s}`:s:s.indexOf("//")===i+1?s:`${s.slice(0,i+1)}//${s.slice(i+1)}`},c=s=>{let l=e(s,"@","#"),i=e(s,":","#");return i>l&&(s=s.slice(0,i)+"/"+s.slice(i+1)),e(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return Vt=(s,l)=>{let i=l?n(s,l):s;return r(i)||r(c(i))},Vt}var Xt,xs;function Dc(){if(xs)return Xt;xs=1;let t=hn(),e=r=>{let n=r.indexOf("#"),c=r.indexOf("/"),s=r.indexOf("/",c+1),l=r.indexOf(":"),i=/\s/.exec(r),o=r.indexOf("@"),g=!i||n>-1&&i.index>n,f=o===-1||n>-1&&o>n,E=l===-1||n>-1&&l>n,y=s===-1||n>-1&&s>n,u=c>0,h=n>-1?r[n-1]!=="/":!r.endsWith("/"),p=!r.startsWith(".");return g&&u&&h&&p&&f&&E&&y};return Xt=(r,n,{gitHosts:c,protocols:s})=>{if(!r)return;let l=e(r)?`github:${r}`:r,i=t(l,s);if(!i)return;let o=c.byShortcut[i.protocol],g=c.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],f=o||g;if(!f)return;let E=c[o||g],y=null;s[i.protocol]?.auth&&(i.username||i.password)&&(y=`${i.username}${i.password?":"+i.password:""}`);let u=null,h=null,p=null,d=null;try{if(o){let m=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,w=m.indexOf("@");w>-1&&(m=m.slice(w+1));let L=m.lastIndexOf("/");L>-1?(h=decodeURIComponent(m.slice(0,L)),h||(h=null),p=decodeURIComponent(m.slice(L+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),i.hash&&(u=decodeURIComponent(i.hash.slice(1))),d="shortcut"}else{if(!E.protocols.includes(i.protocol))return;let m=E.extract(i);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),u=decodeURIComponent(m.committish),d=s[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[f,h,y,p,u,d,n]},Xt}var Yt,Ns;function Fc(){if(Ns)return Yt;Ns=1;let{LRUCache:t}=Pc(),e=Tc(),r=Dc(),n=hn(),c=new t({max:1e3});function s(i){try{let{protocol:o,hostname:g,pathname:f}=new URL(i);if(!g)return null;let E=/(?:git\+)http:$/.test(o)?"http:":"https:",y=f.replace(/\.git$/,"");return`${E}//${g}${y}`}catch{return null}}class l{constructor(o,g,f,E,y,u,h={}){Object.assign(this,l.#n[o],{type:o,user:g,auth:f,project:E,committish:y,default:u,opts:h})}static#n={byShortcut:{},byDomain:{}};static#r={"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(o,g){l.#n[o]=g,l.#n.byDomain[g.domain]=o,l.#n.byShortcut[`${o}:`]=o,l.#r[`${o}:`]={name:o}}static fromUrl(o,g){if(typeof o!="string")return;let f=o+JSON.stringify(g||{});if(!c.has(f)){let E=r(o,g,{gitHosts:l.#n,protocols:l.#r});c.set(f,E?new l(...E):void 0)}return c.get(f)}static fromManifest(o,g={}){if(!o||typeof o!="object")return;let f=o.repository,E=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!E)throw new Error("no repository");let y=E&&l.fromUrl(E.replace(/^git\+/,""),g)||null;if(y)return y;let u=s(E);return l.fromUrl(u,g)||u}static parseUrl(o){return n(o)}#e(o,g){if(typeof o!="function")return null;let f={...this,...this.opts,...g};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let E=o(f);return f.noGitPlus&&E.startsWith("git+")?E.slice(4):E}hash(){return this.committish?`#${this.committish}`:""}ssh(o){return this.#e(this.sshtemplate,o)}sshurl(o){return this.#e(this.sshurltemplate,o)}browse(o,...g){return typeof o!="string"?this.#e(this.browsetemplate,o):typeof g[0]!="string"?this.#e(this.browsetreetemplate,{...g[0],path:o}):this.#e(this.browsetreetemplate,{...g[1],fragment:g[0],path:o})}browseFile(o,...g){return typeof g[0]!="string"?this.#e(this.browseblobtemplate,{...g[0],path:o}):this.#e(this.browseblobtemplate,{...g[1],fragment:g[0],path:o})}docs(o){return this.#e(this.docstemplate,o)}bugs(o){return this.#e(this.bugstemplate,o)}https(o){return this.#e(this.httpstemplate,o)}git(o){return this.#e(this.gittemplate,o)}shortcut(o){return this.#e(this.shortcuttemplate,o)}path(o){return this.#e(this.pathtemplate,o)}tarball(o){return this.#e(this.tarballtemplate,{...o,noCommittish:!1})}file(o,g){return this.#e(this.filetemplate,{...g,path:o})}edit(o,g){return this.#e(this.edittemplate,{...g,path:o})}getDefaultRepresentation(){return this.default}toString(o){return this.default&&typeof this[this.default]=="function"?this[this.default](o):this.sshurl(o)}}for(let[i,o]of Object.entries(e))l.addHost(i,o);return Yt=l,Yt}var Kt,Ps;function _c(){if(Ps)return Kt;Ps=1,Kt=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
18
+ `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let n=e.length,c=r+1;for(;c<n&&e[c].trim();)c++;return e.slice(r,c).join(" ").trim()}return Kt}var Uc={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"},Gc={web:"url",name:"url"},jc={server:"start",tests:"test"},Bc={topLevel:Uc,bugs:Gc,script:jc},Jt,Ts;function Mc(){if(Ts)return Jt;Ts=1;var{URL:t}=Zo,e=nn(),r=on(),n=un(),c=Fc(),{isBuiltin:s}=Ws,l=["dependencies","devDependencies","optionalDependencies"],i=_c(),o=Bc,g=a=>a.includes("@")&&a.indexOf("@")<a.lastIndexOf(".");Jt={warn:function(){},fixRepositoryField:function(a){if(a.repositories&&(this.warn("repositories"),a.repository=a.repositories[0]),!a.repository)return this.warn("missingRepository");typeof a.repository=="string"&&(a.repository={type:"git",url:a.repository});var b=a.repository.url||"";if(b){var v=c.fromUrl(b);v&&(b=a.repository.url=v.getDefaultRepresentation()==="shortcut"?v.https():v.toString())}b.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",b)},fixTypos:function(a){Object.keys(o.topLevel).forEach(function(b){Object.prototype.hasOwnProperty.call(a,b)&&this.warn("typo",b,o.topLevel[b])},this)},fixScriptsField:function(a){if(a.scripts){if(typeof a.scripts!="object"){this.warn("nonObjectScripts"),delete a.scripts;return}Object.keys(a.scripts).forEach(function(b){typeof a.scripts[b]!="string"?(this.warn("nonStringScript"),delete a.scripts[b]):o.script[b]&&!a.scripts[o.script[b]]&&this.warn("typo",b,o.script[b],"scripts")},this)}},fixFilesField:function(a){var b=a.files;b&&!Array.isArray(b)?(this.warn("nonArrayFiles"),delete a.files):a.files&&(a.files=a.files.filter(function(v){return!v||typeof v!="string"?(this.warn("invalidFilename",v),!1):!0},this))},fixBinField:function(a){if(a.bin&&typeof a.bin=="string"){var b={},v;(v=a.name.match(/^@[^/]+[/](.*)$/))?b[v[1]]=a.bin:b[a.name]=a.bin,a.bin=b}},fixManField:function(a){a.man&&typeof a.man=="string"&&(a.man=[a.man])},fixBundleDependenciesField:function(a){var b="bundledDependencies",v="bundleDependencies";a[b]&&!a[v]&&(a[v]=a[b],delete a[b]),a[v]&&!Array.isArray(a[v])?(this.warn("nonArrayBundleDependencies"),delete a[v]):a[v]&&(a[v]=a[v].filter(function($){return!$||typeof $!="string"?(this.warn("nonStringBundleDependency",$),!1):(a.dependencies||(a.dependencies={}),Object.prototype.hasOwnProperty.call(a.dependencies,$)||(this.warn("nonDependencyBundleDependency",$),a.dependencies[$]="*"),!0)},this))},fixDependencies:function(a){w(a,this.warn),d(a,this.warn),this.fixBundleDependenciesField(a),["dependencies","devDependencies"].forEach(function(b){if(b in a){if(!a[b]||typeof a[b]!="object"){this.warn("nonObjectDependencies",b),delete a[b];return}Object.keys(a[b]).forEach(function(v){var $=a[b][v];typeof $!="string"&&(this.warn("nonStringDependency",v,JSON.stringify($)),delete a[b][v]);var R=c.fromUrl(a[b][v]);R&&(a[b][v]=R.toString())},this)}},this)},fixModulesField:function(a){a.modules&&(this.warn("deprecatedModules"),delete a.modules)},fixKeywordsField:function(a){typeof a.keywords=="string"&&(a.keywords=a.keywords.split(/,\s+/)),a.keywords&&!Array.isArray(a.keywords)?(delete a.keywords,this.warn("nonArrayKeywords")):a.keywords&&(a.keywords=a.keywords.filter(function(b){return typeof b!="string"||!b?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(a,b){var v=!b;if(!a.version)return a.version="",!0;if(!e(a.version,v))throw new Error('Invalid version: "'+a.version+'"');return a.version=r(a.version,v),!0},fixPeople:function(a){u(a,h),u(a,p)},fixNameField:function(a,b){typeof b=="boolean"?b={strict:b}:typeof b>"u"&&(b={});var v=b.strict;if(!a.name&&!v){a.name="";return}if(typeof a.name!="string")throw new Error("name field must be a string.");v||(a.name=a.name.trim()),y(a.name,v,b.allowLegacyCase),s(a.name)&&this.warn("conflictingName",a.name)},fixDescriptionField:function(a){a.description&&typeof a.description!="string"&&(this.warn("nonStringDescription"),delete a.description),a.readme&&!a.description&&(a.description=i(a.readme)),a.description===void 0&&delete a.description,a.description||this.warn("missingDescription")},fixReadmeField:function(a){a.readme||(this.warn("missingReadme"),a.readme="ERROR: No README data found!")},fixBugsField:function(a){if(!a.bugs&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.bugs()&&(a.bugs={url:b.bugs()})}else if(a.bugs){if(typeof a.bugs=="string")g(a.bugs)?a.bugs={email:a.bugs}:t.canParse(a.bugs)?a.bugs={url:a.bugs}:this.warn("nonEmailUrlBugsString");else{L(a.bugs,this.warn);var v=a.bugs;a.bugs={},v.url&&(t.canParse(v.url)?a.bugs.url=v.url:this.warn("nonUrlBugsUrlField")),v.email&&(typeof v.email=="string"&&g(v.email)?a.bugs.email=v.email:this.warn("nonEmailBugsEmailField"))}!a.bugs.email&&!a.bugs.url&&(delete a.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(a){if(!a.homepage&&a.repository&&a.repository.url){var b=c.fromUrl(a.repository.url);b&&b.docs()&&(a.homepage=b.docs())}if(a.homepage){if(typeof a.homepage!="string")return this.warn("nonUrlHomepage"),delete a.homepage;t.canParse(a.homepage)||(a.homepage="http://"+a.homepage)}},fixLicenseField:function(a){let b=a.license||a.licence;if(!b)return this.warn("missingLicense");if(typeof b!="string"||b.length<1||b.trim()==="")return this.warn("invalidLicense");if(!n(b).validForNewPackages)return this.warn("invalidLicense")}};function f(a){if(a.charAt(0)!=="@")return!1;var b=a.slice(1).split("/");return b.length!==2?!1:b[0]&&b[1]&&b[0]===encodeURIComponent(b[0])&&b[1]===encodeURIComponent(b[1])}function E(a){return!a.match(/[/@\s+%:]/)&&a===encodeURIComponent(a)}function y(a,b,v){if(a.charAt(0)==="."||!(f(a)||E(a))||b&&!v&&a!==a.toLowerCase()||a.toLowerCase()==="node_modules"||a.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(a))}function u(a,b){return a.author&&(a.author=b(a.author)),["maintainers","contributors"].forEach(function(v){Array.isArray(a[v])&&(a[v]=a[v].map(b))}),a}function h(a){if(typeof a=="string")return a;var b=a.name||"",v=a.url||a.web,$=v?" ("+v+")":"",R=a.email||a.mail,F=R?" <"+R+">":"";return b+F+$}function p(a){if(typeof a!="string")return a;var b=a.match(/^([^(<]+)/),v=a.match(/\(([^()]+)\)/),$=a.match(/<([^<>]+)>/),R={};return b&&b[0].trim()&&(R.name=b[0].trim()),$&&(R.email=$[1]),v&&(R.url=v[1]),R}function d(a){var b=a.optionalDependencies;if(b){var v=a.dependencies||{};Object.keys(b).forEach(function($){v[$]=b[$]}),a.dependencies=v}}function m(a,b,v){if(!a)return{};if(typeof a=="string"&&(a=a.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(a))return a;v("deprecatedArrayDependencies",b);var $={};return a.filter(function(R){return typeof R=="string"}).forEach(function(R){R=R.trim().split(/(:?[@\s><=])/);var F=R.shift(),D=R.join("");D=D.trim(),D=D.replace(/^@/,""),$[F]=D}),$}function w(a,b){l.forEach(function(v){a[v]&&(a[v]=m(a[v],v,b))})}function L(a,b){a&&Object.keys(a).forEach(function(v){o.bugs[v]&&(b("typo",v,o.bugs[v],"bugs"),a[o.bugs[v]]=a[v],delete a[v])})}return Jt}var qc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",zc="No repository field.",Hc="Probably broken git url: %s",Wc="scripts must be an object",kc="script values must be string commands",Vc="Invalid 'files' member",Xc="Invalid filename in 'files' list: %s",Yc="Invalid 'bundleDependencies' list. Must be array of package names",Kc="Invalid bundleDependencies member: %s",Jc="Non-dependency in bundleDependencies: %s",Zc="%s field must be an object",Qc="Invalid dependency: %s %s",eu="specifying %s as array is deprecated",tu="modules field is deprecated",ru="keywords should be an array of strings",su="keywords should be an array of strings",nu="%s is also the name of a node core module.",iu="'description' field should be a string",ou="No description",au="No README data",cu="No license field.",uu="Bug string field must be url, email, or {email,url}",lu="bugs.url field must be a string url. Deleted.",fu="bugs.email field must be a string email. Deleted.",hu="Normalized value of bugs field is an empty object. Deleted.",pu="homepage field must be a string url. Deleted.",du="license should be a valid SPDX license expression",mu="%s should probably be %s.",gu={repositories:qc,missingRepository:zc,brokenGitUrl:Hc,nonObjectScripts:Wc,nonStringScript:kc,nonArrayFiles:Vc,invalidFilename:Xc,nonArrayBundleDependencies:Yc,nonStringBundleDependency:Kc,nonDependencyBundleDependency:Jc,nonObjectDependencies:Zc,nonStringDependency:Qc,deprecatedArrayDependencies:eu,deprecatedModules:tu,nonArrayKeywords:ru,nonStringKeyword:su,conflictingName:nu,nonStringDescription:iu,missingDescription:ou,missingReadme:au,missingLicense:cu,nonEmailUrlBugsString:uu,nonUrlBugsUrlField:lu,nonEmailBugsEmailField:fu,emptyNormalizedBugs:hu,nonUrlHomepage:pu,invalidLicense:du,typo:mu},Zt,Ds;function bu(){if(Ds)return Zt;Ds=1;var t=Hs,e=gu;Zt=function(){var n=Array.prototype.slice.call(arguments,0),c=n.shift();if(c==="typo")return r.apply(null,n);var s=e[c]?e[c]:c+": '%s'";return n.unshift(s),t.format.apply(null,n)};function r(n,c,s){return s&&(n=s+"['"+n+"']",c=s+"['"+c+"']"),t.format(e.typo,n,c)}return Zt}var Qt,Fs;function Eu(){if(Fs)return Qt;Fs=1,Qt=s;var t=Mc();s.fixer=t;var e=bu(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],c=r.map(function(i){return l(i)+"Field"});c=c.concat(n);function s(i,o,g){o===!0&&(o=null,g=!0),g||(g=!1),(!o||i.private)&&(o=function(){}),i.scripts&&i.scripts.install==="node-gyp rebuild"&&!i.scripts.preinstall&&(i.gypfile=!0),t.warn=function(){o(e.apply(null,arguments))},c.forEach(function(f){t["fix"+l(f)](i,g)}),i._id=i.name+"@"+i.version}function l(i){return i.charAt(0).toUpperCase()+i.slice(1)}return Qt}var yu=Eu(),pn=rt(yu),wu=(t,e)=>(t=t.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),t.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,c)=>n+e+c.toLowerCase()));function fr(t,{separator:e="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(t.length<2)return r?t:t.toLowerCase();let n=`$1${e}$2`,c=t.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?wu(c,e):c.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var et={exports:{}},er,_s;function vu(){if(_s)return er;_s=1;var t=Object.prototype.toString;return er=function(e){var r;return t.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))},er}var tr,Us;function Lu(){return Us||(Us=1,tr=function(t){return t==null?[]:Array.isArray(t)?t:[t]}),tr}var rr,Gs;function Cu(){if(Gs)return rr;Gs=1;var t=Object.prototype.toString;rr=function(E){if(E===void 0)return"undefined";if(E===null)return"null";var y=typeof E;if(y==="boolean")return"boolean";if(y==="string")return"string";if(y==="number")return"number";if(y==="symbol")return"symbol";if(y==="function")return l(E)?"generatorfunction":"function";if(r(E))return"array";if(g(E))return"buffer";if(o(E))return"arguments";if(c(E))return"date";if(n(E))return"error";if(s(E))return"regexp";switch(e(E)){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(i(E))return"generator";switch(y=t.call(E),y){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 y.slice(8,-1).toLowerCase().replace(/\s/g,"")};function e(f){return typeof f.constructor=="function"?f.constructor.name:null}function r(f){return Array.isArray?Array.isArray(f):f instanceof Array}function n(f){return f instanceof Error||typeof f.message=="string"&&f.constructor&&typeof f.constructor.stackTraceLimit=="number"}function c(f){return f instanceof Date?!0:typeof f.toDateString=="function"&&typeof f.getDate=="function"&&typeof f.setDate=="function"}function s(f){return f instanceof RegExp?!0:typeof f.flags=="string"&&typeof f.ignoreCase=="boolean"&&typeof f.multiline=="boolean"&&typeof f.global=="boolean"}function l(f,E){return e(f)==="GeneratorFunction"}function i(f){return typeof f.throw=="function"&&typeof f.return=="function"&&typeof f.next=="function"}function o(f){try{if(typeof f.length=="number"&&typeof f.callee=="function")return!0}catch(E){if(E.message.indexOf("callee")!==-1)return!0}return!1}function g(f){return f.constructor&&typeof f.constructor.isBuffer=="function"?f.constructor.isBuffer(f):!1}return rr}var js;function Su(){if(js)return et.exports;js=1;let t=vu(),e=Lu(),r=Cu(),n=(u,h,p)=>{u[h]||(u[h]=[]),u[h].push(p)},c=(u,h,p,d)=>{u[h]||(u[h]={}),u[h][p]=d},s=u=>Array.isArray(u)?`[${u.map(s).join(", ")}]`:r(u)==="string"?JSON.stringify(u):u,l=u=>{if(Array.isArray(u)&&u.length>0){let[h]=u;return`${r(h)}-array`}return r(u)},i=(u,h)=>{let p=u==="array"?"string-array":u;return f.includes(p)&&Array.isArray(h)&&h.length===0?"array":p},o=["stopEarly","unknown","--"],g=["string","boolean","number"],f=g.map(u=>`${u}-array`),E=[...g,"array",...f],y=u=>{u=u||{};let h={};return o.forEach(p=>{u[p]&&(h[p]=u[p])}),Object.keys(u).forEach(p=>{let d=u[p];if(p==="arguments"&&(p="_"),typeof d=="string"&&(d={type:d}),t(d)){let m=d,{type:w}=m;if(w){if(!E.includes(w))throw new TypeError(`Expected type of "${p}" to be one of ${s(E)}, got ${s(w)}`);if(f.includes(w)){let[L]=w.split("-");n(h,"array",{key:p,[L]:!0})}else n(h,w,p)}if({}.hasOwnProperty.call(m,"default")){let{default:L}=m,a=l(L),b=i(w,L);if(b&&b!==a)throw new TypeError(`Expected "${p}" default value to be of type "${b}", got ${s(a)}`);c(h,"default",p,L)}e(m.alias).forEach(L=>{c(h,"alias",L,p)})}}),h};return et.exports=y,et.exports.default=y,et.exports}var Au=Su(),dn=rt(Au),tt={exports:{}},Bs;function $u(){if(Bs)return tt.exports;Bs=1;let t=c=>typeof c=="object"&&c!==null,e=Symbol("skip"),r=c=>t(c)&&!(c instanceof RegExp)&&!(c instanceof Error)&&!(c instanceof Date),n=(c,s,l,i=new WeakMap)=>{if(l={deep:!1,target:{},...l},i.has(c))return i.get(c);i.set(c,l.target);let{target:o}=l;delete l.target;let g=f=>f.map(E=>r(E)?n(E,s,l,i):E);if(Array.isArray(c))return g(c);for(let[f,E]of Object.entries(c)){let y=s(f,E,c);if(y===e)continue;let[u,h,{shouldRecurse:p=!0}={}]=y;u!=="__proto__"&&(l.deep&&p&&r(h)&&(h=Array.isArray(h)?g(h):n(h,s,l,i)),o[u]=h)}return o};return tt.exports=(c,s,l)=>{if(!t(c))throw new TypeError(`Expected an object, got \`${c}\` (${typeof c})`);return n(c,s,l)},tt.exports.mapObjectSkip=e,tt.exports}var Ou=$u(),Ms=rt(Ou),ar=class extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[r,n]of e)this.onEviction(r,n.value)}_deleteIfExpired(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,r.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,r){if(this._deleteIfExpired(e,r)===!1)return r.value}_getItemValue(e,r){return r.expiry?this._getOrDeleteIfExpired(e,r):r.value}_peek(e,r){let n=r.get(e);return this._getItemValue(e,n)}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,r){this.oldCache.delete(e),this._set(e,r)}*_entriesAscending(){for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield e)}for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let r=this.cache.get(e);return this._getItemValue(e,r)}if(this.oldCache.has(e)){let r=this.oldCache.get(e);if(this._deleteIfExpired(e,r)===!1)return this._moveToRecent(e,r),r.value}}set(e,r,{maxAge:n=this.maxAge}={}){let c=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(e)?this.cache.set(e,{value:r,expiry:c}):this._set(e,{value:r,expiry:c}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-e;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=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[r,n]=e;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let e of this.oldCache){let[r,n]=e;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let e=[...this.cache];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}e=[...this.oldCache];for(let r=e.length-1;r>=0;--r){let n=e[r],[c,s]=n;this.cache.has(c)||this._deleteIfExpired(c,s)===!1&&(yield[c,s.value])}}*entriesAscending(){for(let[e,r]of this._entriesAscending())yield[e,r.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,r=this){for(let[n,c]of this.entriesAscending())e.call(r,c,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Ru=(t,e)=>t.some(r=>typeof r=="string"?r===e:(r.lastIndex=0,r.test(e))),sr=new ar({maxSize:1e5}),qs=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),zs=(t,e={})=>{if(!qs(t))return t;let{separator:r="_",exclude:n,deep:c=!1}=e,s=l=>(i,o)=>{if(c&&qs(o)&&(o=Ms(o,s())),!(n&&Ru(n,i))){let g=`${r}${i}`;if(sr.has(g))i=sr.get(g);else{let f=fr(i,{separator:r});i.length<100&&sr.set(g,f),i=f}}return[i,o]};return Ms(t,s())};function mn(t,e){return Array.isArray(t)?Object.keys(t).map(r=>zs(t[r],e)):zs(t,e)}import Iu from"node:process";import xu from"node:path";import{fileURLToPath as Nu}from"node:url";var Le=t=>`--${fr(t,{separator:"-"})}`,Me=(t,e="--")=>`\`${e}${t.join(`\`, \`${e}`)}\``;var Pu=t=>{let e={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Me(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Me(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Me(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(c=>typeof c!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(s=>`(\`${Le(s)}\`, type: '${t.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(c=>n.choices.includes(c)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Me(n)}`}}},r=[];for(let[n,c]of Object.entries(e)){let s=Object.entries(t[n]);for(let{filter:l,message:i}of Object.values(c)){let o=s.filter(f=>l(f)),g=o.map(([f])=>f);o.length>0&&r.push(i(g))}}if(r.length>0)throw new Error(r.join(`
19
+ `))},gn=(t,e)=>{if(typeof t!="string"&&(e=t,t=""),!e.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let n=e.pkg??fn({cwd:xu.dirname(Nu(e.importMeta.url)),normalize:!1})?.packageJson??{};pn(n);let c={argv:Iu.argv.slice(2),flags:{},inferType:!1,input:"string",description:n.description??!1,help:t,version:n.version||"No version found",autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...e,pkg:n};return Pu(c),c};var Tu=({flags:t,booleanDefault:e})=>{let r={};for(let[n,c]of Object.entries(t)){let s={...c};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),e!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[e]:e),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default??=[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[n]=s}return r},bn=t=>{let e=Tu(t);return e.arguments=t.input,e=mn(e,{separator:"-",exclude:["stopEarly","--"]}),t.inferType&&delete e.arguments,t.allowUnknownFlags||(t.autoHelp&&!e.help&&(e.help={type:"boolean"}),t.autoVersion&&!e.version&&(e.version={type:"boolean"})),e=dn(e),e.configuration={...e.configuration,"greedy-arrays":!1,"parse-numbers":t.inferType},e["--"]&&(e.configuration["populate--"]=!0),t.allowUnknownFlags||(e.configuration["unknown-options-as-args"]=!0),e};import En from"node:process";var Du=(t,e)=>{for(let[r,n]of Object.entries(e.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(t[r]))throw new Error(`The flag --${r} can only be set once.`)},Fu=(t,e,r)=>{let{choices:n,isRequired:c}=e;if(!n)return;let s=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return c?`Flag \`${Le(t)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let l=r.filter(i=>!n.includes(i));if(l.length>0)return`Unknown ${l.length>1?"values":"value"} for flag \`${Le(t)}\`: \`${l.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${Le(t)}\`: \`${r}\`. ${s}`},_u=(t,e)=>{let r=[];for(let[n,c]of Object.entries(t)){let s=e[n],l=Fu(n,c,s);l&&r.push(l)}if(r.length>0)throw new Error(`${r.join(`
20
+ `)}`)},yn=(t,e)=>{Du(t,e),_u(e.flags,t)},Uu=t=>{console.error([`Unknown flag${t.length>1?"s":""}`,...t].join(`
21
+ `))},wn=t=>{let e=t.filter(r=>typeof r=="string"&&r.startsWith("-"));e.length>0&&(Uu(e),En.exit(2))},Gu=(t,e,r,n)=>{let c=e[t],s=!0;if(typeof c.isRequired=="function"&&(s=c.isRequired(r,n),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[t]===void 0||c.isMultiple&&r[t].length===0)&&s},ju=t=>{console.error(`Missing required flag${t.length>1?"s":""}`);for(let e of t)console.error(` ${Le(e.key)}${e.shortFlag?`, -${e.shortFlag}`:""}`)},vn=(t,e,r)=>{let n=[];if(t===void 0)return[];for(let c of Object.keys(t))t[c].isRequired&&Gu(c,t,e,r)&&n.push({key:c,...t[c]});n.length>0&&(ju(n),En.exit(2))};var Bu=({pkg:t,...e},r)=>{let n=Pe(e.argv,r),c="";if(e.help&&(c=en((e.help||"").replace(/\t+\n*$/,"")),c.includes(`
22
22
  `)&&(c=lr(c,e.helpIndent)),c=`
23
23
  ${c}`),e.description!==!1){let{description:f}=e;f&&(f=c?lr(`
24
24
  ${f}
25
25
  `,e.helpIndent):`
26
26
  ${f}`,c=`${f}${c}`)}c+=`
27
- `;let s=f=>{console.log(c),hr.exit(typeof f=="number"?f:2)},l=()=>{console.log(e.version),hr.exit(0)};i._.length===0&&e.argv.length===1&&(i.version===!0&&e.autoVersion?l():i.help===!0&&e.autoHelp&&s(0));let n=i._;delete i._,e.allowUnknownFlags||yi(n);let o=Qs(i,{exclude:["--",/^\w$/]}),g={...o};Ei(o,e);for(let f of Object.values(e.flags)){if(Array.isArray(f.aliases))for(let E of f.aliases)delete o[E];delete o[f.shortFlag]}return wi(e.flags,o,n),{input:n,flags:o,unnormalizedFlags:g,pkg:t,help:c,showHelp:s,showVersion:l}},vi=(t,e={})=>{let r=mi(t,e),i=gi(r),c=ju(r,i);return hr.title=c.pkg.bin?Object.keys(c.pkg.bin).at(0):c.pkg.name,c};var Po=Mr(Ti(),1),Ae=Mr(So(),1);import jr from"node:fs/promises";import Hp from"node:os";import Gr from"node:path";import Wp from"semantic-release";import{createRequire as ip}from"module";import{spawn as np}from"node:child_process";import{delimiter as Ao,dirname as op,normalize as ap,resolve as cp}from"node:path";import{cwd as up}from"node:process";import{PassThrough as lp}from"node:stream";import fp from"node:readline";var hp=Object.create,Io=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,dp=Object.getOwnPropertyNames,mp=Object.getPrototypeOf,gp=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var c=dp(e),s=0,l=c.length,n;s<l;s++)n=c[s],!gp.call(t,n)&&n!==r&&Io(t,n,{get:(o=>e[o]).bind(null,n),enumerable:!(i=pp(e,n))||i.enumerable});return t},Ep=(t,e,r)=>(r=t!=null?hp(mp(t)):{},bp(e||!t||!t.__esModule?Io(r,"default",{value:t,enumerable:!0}):r,t)),ve=ip(import.meta.url),yp=/^path$/i,$o={key:"PATH",value:""};function wp(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!yp.test(e))continue;let r=t[e];return r?{key:e,value:r}:$o}return $o}function vp(t,e){let r=e.value.split(Ao),i=t,c;do r.push(cp(i,"node_modules",".bin")),c=i,i=op(i);while(i!==c);return{key:e.key,value:r.join(Ao)}}function Lp(t,e){let r={...process.env,...e},i=vp(t,wp(r));return r[i.key]=i.value,r}var Cp=t=>{let e=t.length,r=new lp,i=()=>{--e===0&&r.emit("end")};for(let c of t)c.pipe(r,{end:!1}),c.on("end",i);return r},Sp=ce((t,e)=>{e.exports=s,s.sync=l;var r=ve("fs");function i(n,o){var g=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!g||(g=g.split(";"),g.indexOf("")!==-1))return!0;for(var f=0;f<g.length;f++){var E=g[f].toLowerCase();if(E&&n.substr(-E.length).toLowerCase()===E)return!0}return!1}function c(n,o,g){return!n.isSymbolicLink()&&!n.isFile()?!1:i(o,g)}function s(n,o,g){r.stat(n,function(f,E){g(f,f?!1:c(E,n,o))})}function l(n,o){return c(r.statSync(n),n,o)}}),Ap=ce((t,e)=>{e.exports=i,i.sync=c;var r=ve("fs");function i(n,o,g){r.stat(n,function(f,E){g(f,f?!1:s(E,o))})}function c(n,o){return s(r.statSync(n),o)}function s(n,o){return n.isFile()&&l(n,o)}function l(n,o){var g=n.mode,f=n.uid,E=n.gid,y=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),u=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),p=parseInt("010",8),d=parseInt("001",8),m=h|p,w=g&d||g&p&&E===u||g&h&&f===y||g&m&&y===0;return w}}),$p=ce((t,e)=>{var r=ve("fs"),i;process.platform==="win32"||global.TESTING_WINDOWS?i=Sp():i=Ap(),e.exports=c,c.sync=s;function c(l,n,o){if(typeof n=="function"&&(o=n,n={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(g,f){c(l,n||{},function(E,y){E?f(E):g(y)})})}i(l,n||{},function(g,f){g&&(g.code==="EACCES"||n&&n.ignoreErrors)&&(g=null,f=!1),o(g,f)})}function s(l,n){try{return i.sync(l,n||{})}catch(o){if(n&&n.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Op=ce((t,e)=>{let r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",i=ve("path"),c=r?";":":",s=$p(),l=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),n=(f,E)=>{let y=E.colon||c,u=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(E.path||process.env.PATH||"").split(y)],h=r?E.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",p=r?h.split(y):[""];return r&&f.indexOf(".")!==-1&&p[0]!==""&&p.unshift(""),{pathEnv:u,pathExt:p,pathExtExe:h}},o=(f,E,y)=>{typeof E=="function"&&(y=E,E={}),E||(E={});let{pathEnv:u,pathExt:h,pathExtExe:p}=n(f,E),d=[],m=C=>new Promise((a,b)=>{if(C===u.length)return E.all&&d.length?a(d):b(l(f));let v=u[C],$=/^".*"$/.test(v)?v.slice(1,-1):v,R=i.join($,f),F=!$&&/^\.[\\\/]/.test(f)?f.slice(0,2)+R:R;a(w(F,C,0))}),w=(C,a,b)=>new Promise((v,$)=>{if(b===h.length)return v(m(a+1));let R=h[b];s(C+R,{pathExt:p},(F,D)=>{if(!F&&D)if(E.all)d.push(C+R);else return v(C+R);return v(w(C,a,b+1))})});return y?m(0).then(C=>y(null,C),y):m(0)},g=(f,E)=>{E=E||{};let{pathEnv:y,pathExt:u,pathExtExe:h}=n(f,E),p=[];for(let d=0;d<y.length;d++){let m=y[d],w=/^".*"$/.test(m)?m.slice(1,-1):m,C=i.join(w,f),a=!w&&/^\.[\\\/]/.test(f)?f.slice(0,2)+C:C;for(let b=0;b<u.length;b++){let v=a+u[b];try{if(s.sync(v,{pathExt:h}))if(E.all)p.push(v);else return v}catch{}}}if(E.all&&p.length)return p;if(E.nothrow)return null;throw l(f)};e.exports=o,o.sync=g}),Rp=ce((t,e)=>{let r=(i={})=>{let c=i.env||process.env;return(i.platform||process.platform)!=="win32"?"PATH":Object.keys(c).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),Ip=ce((t,e)=>{let r=ve("path"),i=Op(),c=Rp();function s(n,o){let g=n.options.env||process.env,f=process.cwd(),E=n.options.cwd!=null,y=E&&process.chdir!==void 0&&!process.chdir.disabled;if(y)try{process.chdir(n.options.cwd)}catch{}let u;try{u=i.sync(n.command,{path:g[c({env:g})],pathExt:o?r.delimiter:void 0})}catch{}finally{y&&process.chdir(f)}return u&&(u=r.resolve(E?n.options.cwd:"",u)),u}function l(n){return s(n)||s(n,!0)}e.exports=l}),xp=ce((t,e)=>{let r=/([()\][%!^"`<>&|;, *?])/g;function i(s){return s=s.replace(r,"^$1"),s}function c(s,l){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),l&&(s=s.replace(r,"^$1")),s}e.exports.command=i,e.exports.argument=c}),Np=ce((t,e)=>{e.exports=/^#!(.*)/}),Pp=ce((t,e)=>{let r=Np();e.exports=(i="")=>{let c=i.match(r);if(!c)return null;let[s,l]=c[0].replace(/#! ?/,"").split(" "),n=s.split("/").pop();return n==="env"?l:l?`${n} ${l}`:n}}),Tp=ce((t,e)=>{let r=ve("fs"),i=Pp();function c(s){let n=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,n,0,150,0),r.closeSync(o)}catch{}return i(n.toString())}e.exports=c}),Dp=ce((t,e)=>{let r=ve("path"),i=Ip(),c=xp(),s=Tp(),l=process.platform==="win32",n=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function g(y){y.file=i(y);let u=y.file&&s(y.file);return u?(y.args.unshift(y.file),y.command=u,i(y)):y.file}function f(y){if(!l)return y;let u=g(y),h=!n.test(u);if(y.options.forceShell||h){let p=o.test(u);y.command=r.normalize(y.command),y.command=c.command(y.command),y.args=y.args.map(m=>c.argument(m,p));let d=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${d}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y}function E(y,u,h){u&&!Array.isArray(u)&&(h=u,u=null),u=u?u.slice(0):[],h=Object.assign({},h);let p={command:y,args:u,options:h,file:void 0,original:{command:y,args:u}};return h.shell?p:f(p)}e.exports=E}),Fp=ce((t,e)=>{let r=process.platform==="win32";function i(n,o){return Object.assign(new Error(`${o} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${n.command}`,path:n.command,spawnargs:n.args})}function c(n,o){if(!r)return;let g=n.emit;n.emit=function(f,E){if(f==="exit"){let y=s(E,o,"spawn");if(y)return g.call(n,"error",y)}return g.apply(n,arguments)}}function s(n,o){return r&&n===1&&!o.file?i(o.original,"spawn"):null}function l(n,o){return r&&n===1&&!o.file?i(o.original,"spawnSync"):null}e.exports={hookChildProcess:c,verifyENOENT:s,verifyENOENTSync:l,notFoundError:i}}),_p=ce((t,e)=>{let r=ve("child_process"),i=Dp(),c=Fp();function s(n,o,g){let f=i(n,o,g),E=r.spawn(f.command,f.args,f.options);return c.hookChildProcess(E,f),E}function l(n,o,g){let f=i(n,o,g),E=r.spawnSync(f.command,f.args,f.options);return E.error=E.error||c.verifyENOENTSync(E.status,f),E}e.exports=s,e.exports.spawn=s,e.exports.sync=l,e.exports._parse=i,e.exports._enoent=c}),Up=Ep(_p(),1),Oo=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}},Gp={timeout:void 0,persist:!1},jp={windowsHide:!0};function Bp(t,e){return{command:ap(t),args:e??[]}}function Mp(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;let i=()=>{e.abort(r.reason)};r.addEventListener("abort",i,{signal:e.signal})}return e.signal}async function Ro(t){let e="";for await(let r of t)e+=r.toString();return e}var qp=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,e,r){this._options={...Gp,...r},this._command=t,this._args=e??[],this._processClosed=new Promise(i=>{this._resolveClose=i})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,r){return _r(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=Cp(e),i=fp.createInterface({input:r});for await(let c of i)yield c.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this)}async _waitForOutput(){let t=this._process;if(!t)throw new Error("No process was started");let[e,r]=await Promise.all([this._streamOut?Ro(this._streamOut):"",this._streamErr?Ro(this._streamErr):""]);if(await this._processClosed,this._options?.stdin&&await this._options.stdin,t.removeAllListeners(),this._thrownError)throw this._thrownError;let i={stderr:r,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this,i);return i}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=up(),e=this._options,r={...jp,...e.nodeOptions},i=[];this._resetState(),e.timeout!==void 0&&i.push(AbortSignal.timeout(e.timeout)),e.signal!==void 0&&i.push(e.signal),e.persist===!0&&(r.detached=!0),i.length>0&&(r.signal=Mp(i)),r.env=Lp(t,r.env);let{command:c,args:s}=Bp(this._command,this._args),l=(0,Up._parse)(c,s,r),n=np(l.command,l.args,l.options);if(n.stderr&&(this._streamErr=n.stderr),n.stdout&&(this._streamOut=n.stdout),this._process=n,n.once("error",this._onError),n.once("close",this._onClose),e.stdin!==void 0&&n.stdin&&e.stdin.process){let{stdout:o}=e.stdin.process;o&&o.pipe(n.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}},zp=(t,e,r)=>{let i=new qp(t,e,r);return i.spawn(),i},_r=zp;var kp="main",de=(0,Po.default)("semantic-release-next-version"),Vp=["GITHUB_TOKEN","GH_TOKEN","GIT_TOKEN"],xo="__srnv_version_marker__",Xp=[/\$\{\s*version\s*\}/g,/<%=\s*version\s*%>/g];function Yp(t){return{repositoryUrl:".",branches:[t,{name:"*",prerelease:!0}],tagFormat:"${version}",plugins:["@semantic-release/commit-analyzer"]}}async function me(t,e){let r=await _r("git",e,{nodeOptions:{cwd:t},throwOnError:!0});if(r.exitCode)throw new Error(`git ${e.join(" ")} failed with code ${r.exitCode}`);return r.stdout.trim()}async function Kp(t){if(process.env.GITHUB_HEAD_REF)return process.env.GITHUB_HEAD_REF;if(process.env.GITHUB_REF_NAME)return process.env.GITHUB_REF_NAME;try{return await me(t,["rev-parse","--abbrev-ref","HEAD"])}catch{return""}}async function Jp(t){try{return await me(t,["config","--get","remote.origin.url"])}catch{return""}}async function Zp(t){try{return await me(t,["rev-parse","--is-shallow-repository"])==="true"}catch{return!1}}function Qp(t){return/^https?:\/\/[^/]*github\.com[:/]/i.test(t)}function ed(){return Vp.some(t=>process.env[t])}async function td(t,e,r){let i=await jr.mkdtemp(Gr.join(Hp.tmpdir(),"srnv-")),c=Gr.join(i,"remote.git");await me(t,["init","--bare",c]),de("created temp remote %s",c);try{await me(t,["--git-dir",c,"symbolic-ref","HEAD",`refs/heads/${r}`])}catch{}try{await me(t,["push",c,`HEAD:refs/heads/${r}`])}catch{}if(e&&e!==r){de("pushing current branch %s to temp remote",e);try{await me(t,["push",c,`HEAD:refs/heads/${e}`])}catch{}}try{await me(t,["push",c,"--tags"])}catch{}return{remote:c,root:i}}function rd(t,e){return t.some(r=>typeof r=="string"?r===e:r?.name===e)}function Ur(t){return t.replace(/[^0-9A-Za-z-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")||"prerelease"}function sd(t,e){if(!t)return"";if(e){let c=e,s=0;for(let l of Xp)c=c.replace(l,()=>(s+=1,xo));if(s===1){let[l,n]=c.split(xo);if(t.startsWith(l)&&t.endsWith(n)){let o=n?t.length-n.length:t.length;if(o>=l.length){let g=t.slice(l.length,o),f=Ae.default.parse(g);if(f)return`${f.major}.${f.minor}.${f.patch}`}}}}let r=Ae.default.clean(t),i=Ae.default.parse(r||"");return i?`${i.major}.${i.minor}.${i.patch}`:""}async function id(t,e){try{let i=(await me(t,["tag","--list"])).split(`
28
- `).map(c=>sd(c.trim(),e)).filter(Boolean);if(i.length>0)return Ae.default.rsort([...new Set(i)])[0]}catch{}try{let r=Gr.join(t,"package.json"),i=await jr.readFile(r,"utf8"),c=JSON.parse(i)?.version,s=Ae.default.parse(c);if(s)return`${s.major}.${s.minor}.${s.patch}`}catch{}throw new Error("semantic-release did not return a next version and no valid version was found in git tags or package.json.")}async function No(t,e){if(process.env.GITHUB_SHA)return process.env.GITHUB_SHA.slice(0,7);try{return await me(t,["rev-parse","--short","HEAD"])}catch{return e}}async function To({cwd:t=process.cwd(),config:e={},repositoryUrl:r,branches:i,tagFormat:c,plugins:s,release:l=!1,defaultBranch:n,mainBranch:o}={}){let g=n??o??kp;de("start getNextVersion"),de("cwd=%s defaultBranch=%s release=%s",t,g,l),de("env GITHUB_HEAD_REF=%s GITHUB_REF=%s GITHUB_REF_NAME=%s",process.env.GITHUB_HEAD_REF,process.env.GITHUB_REF,process.env.GITHUB_REF_NAME),process.env.GITHUB_HEAD_REF&&process.env.GITHUB_REF?.startsWith("refs/pull/")&&(process.env.GITHUB_REF=`refs/heads/${process.env.GITHUB_HEAD_REF}`,process.env.GITHUB_REF_NAME=process.env.GITHUB_HEAD_REF);let f=await Kp(t)||g;if(de("currentBranch=%s",f),await Zp(t))throw new Error("Shallow git clone detected. This tool requires full git history and tags; use actions/checkout with fetch-depth: 0 (or run git fetch --unshallow --tags).");let E=r||e.repositoryUrl||(l?await Jp(t):".")||".",y="";if(!l&&E==="."||l&&Qp(E)&&!ed())try{let{remote:b,root:v}=await td(t,f,g);E=b,y=v}catch(b){de("failed to create temp remote: %o",b)}let h={...Yp(g),...e,repositoryUrl:E,...c?{tagFormat:c}:{},...s?{plugins:s}:{}};de("loadedConfig.branches=%o overrideBranches=%o repositoryUrl=%s",h.branches,i,h.repositoryUrl);let p=i??h.branches,d=Array.isArray(p)?[...p]:p?[p]:[];de("branches before ensure current=%o",d),rd(d,f)||d.push({name:f,prerelease:f!==g?Ur(f):!1}),de("final branches=%o",d);let m;try{m=await Wp({...h,branches:d,dryRun:!0,ci:!1,repositoryUrl:h.repositoryUrl},{cwd:t,env:{...process.env,GIT_NOTE_REF:"semantic-release-next-version-empty",GIT_NOTES_REF:"",GIT_NOTES_DISPLAY_REF:""},stdout:process.stderr,stderr:process.stderr})}finally{if(y)try{await jr.rm(y,{recursive:!0,force:!0})}catch{}}if(!m){if(!l){let b=await id(t,h.tagFormat),v=await No(t,Ur(f||"preview"));return`${b}-preview-${v}`}throw new Error("semantic-release did not return a next version.")}let w=Ae.default.parse(m.nextRelease.version);if(!w)throw new Error(`Unable to parse semantic-release version: ${m.nextRelease.version}`);let C=`${w.major}.${w.minor}.${w.patch}`;if(l)return C;let a=await No(t,Ur(f||"preview"));return`${C}-preview-${a}`}var od=`
27
+ `;let s=f=>{console.log(c),hr.exit(typeof f=="number"?f:2)},l=()=>{console.log(e.version),hr.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?l():n.help===!0&&e.autoHelp&&s(0));let i=n._;delete n._,e.allowUnknownFlags||wn(i);let o=Qs(n,{exclude:["--",/^\w$/]}),g={...o};yn(o,e);for(let f of Object.values(e.flags)){if(Array.isArray(f.aliases))for(let E of f.aliases)delete o[E];delete o[f.shortFlag]}return vn(e.flags,o,i),{input:i,flags:o,unnormalizedFlags:g,pkg:t,help:c,showHelp:s,showVersion:l}},Ln=(t,e={})=>{let r=gn(t,e),n=bn(r),c=Bu(r,n);return hr.title=c.pkg.bin?Object.keys(c.pkg.bin).at(0):c.pkg.name,c};var To=Mr(Dn(),1),Ae=Mr(So(),1);import jr from"node:fs/promises";import Wp from"node:os";import Gr from"node:path";import kp from"semantic-release";import{createRequire as ip}from"module";import{spawn as op}from"node:child_process";import{delimiter as Ao,dirname as ap,normalize as cp,resolve as up}from"node:path";import{cwd as lp}from"node:process";import{PassThrough as fp}from"node:stream";import hp from"node:readline";var pp=Object.create,Io=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,mp=Object.getOwnPropertyNames,gp=Object.getPrototypeOf,bp=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ep=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var c=mp(e),s=0,l=c.length,i;s<l;s++)i=c[s],!bp.call(t,i)&&i!==r&&Io(t,i,{get:(o=>e[o]).bind(null,i),enumerable:!(n=dp(e,i))||n.enumerable});return t},yp=(t,e,r)=>(r=t!=null?pp(gp(t)):{},Ep(e||!t||!t.__esModule?Io(r,"default",{value:t,enumerable:!0}):r,t)),ve=ip(import.meta.url),wp=/^path$/i,$o={key:"PATH",value:""};function vp(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!wp.test(e))continue;let r=t[e];return r?{key:e,value:r}:$o}return $o}function Lp(t,e){let r=e.value.split(Ao),n=t,c;do r.push(up(n,"node_modules",".bin")),c=n,n=ap(n);while(n!==c);return{key:e.key,value:r.join(Ao)}}function Cp(t,e){let r={...process.env,...e},n=Lp(t,vp(r));return r[n.key]=n.value,r}var Sp=t=>{let e=t.length,r=new fp,n=()=>{--e===0&&r.emit("end")};for(let c of t)c.pipe(r,{end:!1}),c.on("end",n);return r},Ap=ce((t,e)=>{e.exports=s,s.sync=l;var r=ve("fs");function n(i,o){var g=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!g||(g=g.split(";"),g.indexOf("")!==-1))return!0;for(var f=0;f<g.length;f++){var E=g[f].toLowerCase();if(E&&i.substr(-E.length).toLowerCase()===E)return!0}return!1}function c(i,o,g){return!i.isSymbolicLink()&&!i.isFile()?!1:n(o,g)}function s(i,o,g){r.stat(i,function(f,E){g(f,f?!1:c(E,i,o))})}function l(i,o){return c(r.statSync(i),i,o)}}),$p=ce((t,e)=>{e.exports=n,n.sync=c;var r=ve("fs");function n(i,o,g){r.stat(i,function(f,E){g(f,f?!1:s(E,o))})}function c(i,o){return s(r.statSync(i),o)}function s(i,o){return i.isFile()&&l(i,o)}function l(i,o){var g=i.mode,f=i.uid,E=i.gid,y=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),u=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),p=parseInt("010",8),d=parseInt("001",8),m=h|p,w=g&d||g&p&&E===u||g&h&&f===y||g&m&&y===0;return w}}),Op=ce((t,e)=>{var r=ve("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=Ap():n=$p(),e.exports=c,c.sync=s;function c(l,i,o){if(typeof i=="function"&&(o=i,i={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(g,f){c(l,i||{},function(E,y){E?f(E):g(y)})})}n(l,i||{},function(g,f){g&&(g.code==="EACCES"||i&&i.ignoreErrors)&&(g=null,f=!1),o(g,f)})}function s(l,i){try{return n.sync(l,i||{})}catch(o){if(i&&i.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),Rp=ce((t,e)=>{let r=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ve("path"),c=r?";":":",s=Op(),l=f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),i=(f,E)=>{let y=E.colon||c,u=f.match(/\//)||r&&f.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(E.path||process.env.PATH||"").split(y)],h=r?E.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",p=r?h.split(y):[""];return r&&f.indexOf(".")!==-1&&p[0]!==""&&p.unshift(""),{pathEnv:u,pathExt:p,pathExtExe:h}},o=(f,E,y)=>{typeof E=="function"&&(y=E,E={}),E||(E={});let{pathEnv:u,pathExt:h,pathExtExe:p}=i(f,E),d=[],m=L=>new Promise((a,b)=>{if(L===u.length)return E.all&&d.length?a(d):b(l(f));let v=u[L],$=/^".*"$/.test(v)?v.slice(1,-1):v,R=n.join($,f),F=!$&&/^\.[\\\/]/.test(f)?f.slice(0,2)+R:R;a(w(F,L,0))}),w=(L,a,b)=>new Promise((v,$)=>{if(b===h.length)return v(m(a+1));let R=h[b];s(L+R,{pathExt:p},(F,D)=>{if(!F&&D)if(E.all)d.push(L+R);else return v(L+R);return v(w(L,a,b+1))})});return y?m(0).then(L=>y(null,L),y):m(0)},g=(f,E)=>{E=E||{};let{pathEnv:y,pathExt:u,pathExtExe:h}=i(f,E),p=[];for(let d=0;d<y.length;d++){let m=y[d],w=/^".*"$/.test(m)?m.slice(1,-1):m,L=n.join(w,f),a=!w&&/^\.[\\\/]/.test(f)?f.slice(0,2)+L:L;for(let b=0;b<u.length;b++){let v=a+u[b];try{if(s.sync(v,{pathExt:h}))if(E.all)p.push(v);else return v}catch{}}}if(E.all&&p.length)return p;if(E.nothrow)return null;throw l(f)};e.exports=o,o.sync=g}),Ip=ce((t,e)=>{let r=(n={})=>{let c=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(c).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};e.exports=r,e.exports.default=r}),xp=ce((t,e)=>{let r=ve("path"),n=Rp(),c=Ip();function s(i,o){let g=i.options.env||process.env,f=process.cwd(),E=i.options.cwd!=null,y=E&&process.chdir!==void 0&&!process.chdir.disabled;if(y)try{process.chdir(i.options.cwd)}catch{}let u;try{u=n.sync(i.command,{path:g[c({env:g})],pathExt:o?r.delimiter:void 0})}catch{}finally{y&&process.chdir(f)}return u&&(u=r.resolve(E?i.options.cwd:"",u)),u}function l(i){return s(i)||s(i,!0)}e.exports=l}),Np=ce((t,e)=>{let r=/([()\][%!^"`<>&|;, *?])/g;function n(s){return s=s.replace(r,"^$1"),s}function c(s,l){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(r,"^$1"),l&&(s=s.replace(r,"^$1")),s}e.exports.command=n,e.exports.argument=c}),Pp=ce((t,e)=>{e.exports=/^#!(.*)/}),Tp=ce((t,e)=>{let r=Pp();e.exports=(n="")=>{let c=n.match(r);if(!c)return null;let[s,l]=c[0].replace(/#! ?/,"").split(" "),i=s.split("/").pop();return i==="env"?l:l?`${i} ${l}`:i}}),Dp=ce((t,e)=>{let r=ve("fs"),n=Tp();function c(s){let i=Buffer.alloc(150),o;try{o=r.openSync(s,"r"),r.readSync(o,i,0,150,0),r.closeSync(o)}catch{}return n(i.toString())}e.exports=c}),Fp=ce((t,e)=>{let r=ve("path"),n=xp(),c=Np(),s=Dp(),l=process.platform==="win32",i=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function g(y){y.file=n(y);let u=y.file&&s(y.file);return u?(y.args.unshift(y.file),y.command=u,n(y)):y.file}function f(y){if(!l)return y;let u=g(y),h=!i.test(u);if(y.options.forceShell||h){let p=o.test(u);y.command=r.normalize(y.command),y.command=c.command(y.command),y.args=y.args.map(m=>c.argument(m,p));let d=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${d}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y}function E(y,u,h){u&&!Array.isArray(u)&&(h=u,u=null),u=u?u.slice(0):[],h=Object.assign({},h);let p={command:y,args:u,options:h,file:void 0,original:{command:y,args:u}};return h.shell?p:f(p)}e.exports=E}),_p=ce((t,e)=>{let r=process.platform==="win32";function n(i,o){return Object.assign(new Error(`${o} ${i.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${i.command}`,path:i.command,spawnargs:i.args})}function c(i,o){if(!r)return;let g=i.emit;i.emit=function(f,E){if(f==="exit"){let y=s(E,o,"spawn");if(y)return g.call(i,"error",y)}return g.apply(i,arguments)}}function s(i,o){return r&&i===1&&!o.file?n(o.original,"spawn"):null}function l(i,o){return r&&i===1&&!o.file?n(o.original,"spawnSync"):null}e.exports={hookChildProcess:c,verifyENOENT:s,verifyENOENTSync:l,notFoundError:n}}),Up=ce((t,e)=>{let r=ve("child_process"),n=Fp(),c=_p();function s(i,o,g){let f=n(i,o,g),E=r.spawn(f.command,f.args,f.options);return c.hookChildProcess(E,f),E}function l(i,o,g){let f=n(i,o,g),E=r.spawnSync(f.command,f.args,f.options);return E.error=E.error||c.verifyENOENTSync(E.status,f),E}e.exports=s,e.exports.spawn=s,e.exports.sync=l,e.exports._parse=n,e.exports._enoent=c}),Gp=yp(Up(),1),Oo=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}},jp={timeout:void 0,persist:!1},Bp={windowsHide:!0};function Mp(t,e){return{command:cp(t),args:e??[]}}function qp(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;let n=()=>{e.abort(r.reason)};r.addEventListener("abort",n,{signal:e.signal})}return e.signal}async function Ro(t){let e="";for await(let r of t)e+=r.toString();return e}var zp=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,e,r){this._options={...jp,...r},this._command=t,this._args=e??[],this._processClosed=new Promise(n=>{this._resolveClose=n})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,r){return _r(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=Sp(e),n=hp.createInterface({input:r});for await(let c of n)yield c.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this)}async _waitForOutput(){let t=this._process;if(!t)throw new Error("No process was started");let[e,r]=await Promise.all([this._streamOut?Ro(this._streamOut):"",this._streamErr?Ro(this._streamErr):""]);if(await this._processClosed,this._options?.stdin&&await this._options.stdin,t.removeAllListeners(),this._thrownError)throw this._thrownError;let n={stderr:r,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new Oo(this,n);return n}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=lp(),e=this._options,r={...Bp,...e.nodeOptions},n=[];this._resetState(),e.timeout!==void 0&&n.push(AbortSignal.timeout(e.timeout)),e.signal!==void 0&&n.push(e.signal),e.persist===!0&&(r.detached=!0),n.length>0&&(r.signal=qp(n)),r.env=Cp(t,r.env);let{command:c,args:s}=Mp(this._command,this._args),l=(0,Gp._parse)(c,s,r),i=op(l.command,l.args,l.options);if(i.stderr&&(this._streamErr=i.stderr),i.stdout&&(this._streamOut=i.stdout),this._process=i,i.once("error",this._onError),i.once("close",this._onClose),e.stdin!==void 0&&i.stdin&&e.stdin.process){let{stdout:o}=e.stdin.process;o&&o.pipe(i.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}},Hp=(t,e,r)=>{let n=new zp(t,e,r);return n.spawn(),n},_r=Hp;var Vp="main",de=(0,To.default)("semantic-release-next-version"),Xp=["GITHUB_TOKEN","GH_TOKEN","GIT_TOKEN"],xo="__srnv_version_marker__",Yp=[/\$\{\s*version\s*\}/g,/<%=\s*version\s*%>/g],No=["error","current","preview"];function Kp(t){return{repositoryUrl:".",branches:[t,{name:"*",prerelease:!0}],tagFormat:"${version}",plugins:["@semantic-release/commit-analyzer"]}}async function me(t,e){let r=await _r("git",e,{nodeOptions:{cwd:t},throwOnError:!0});if(r.exitCode)throw new Error(`git ${e.join(" ")} failed with code ${r.exitCode}`);return r.stdout.trim()}async function Jp(t){if(process.env.GITHUB_HEAD_REF)return process.env.GITHUB_HEAD_REF;if(process.env.GITHUB_REF_NAME)return process.env.GITHUB_REF_NAME;try{return await me(t,["rev-parse","--abbrev-ref","HEAD"])}catch{return""}}async function Zp(t){try{return await me(t,["config","--get","remote.origin.url"])}catch{return""}}async function Qp(t){try{return await me(t,["rev-parse","--is-shallow-repository"])==="true"}catch{return!1}}function ed(t){return/^https?:\/\/[^/]*github\.com[:/]/i.test(t)}function td(){return Xp.some(t=>process.env[t])}async function rd(t,e,r){let n=await jr.mkdtemp(Gr.join(Wp.tmpdir(),"srnv-")),c=Gr.join(n,"remote.git");await me(t,["init","--bare",c]),de("created temp remote %s",c);try{await me(t,["--git-dir",c,"symbolic-ref","HEAD",`refs/heads/${r}`])}catch{}try{await me(t,["push",c,`HEAD:refs/heads/${r}`])}catch{}if(e&&e!==r){de("pushing current branch %s to temp remote",e);try{await me(t,["push",c,`HEAD:refs/heads/${e}`])}catch{}}try{await me(t,["push",c,"--tags"])}catch{}return{remote:c,root:n}}function sd(t,e){return t.some(r=>typeof r=="string"?r===e:r?.name===e)}function Ur(t){return t.replace(/[^0-9A-Za-z-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")||"prerelease"}function nd(t,e){if(!t)return"";if(e){let c=e,s=0;for(let l of Yp)c=c.replace(l,()=>(s+=1,xo));if(s===1){let[l,i]=c.split(xo);if(t.startsWith(l)&&t.endsWith(i)){let o=i?t.length-i.length:t.length;if(o>=l.length){let g=t.slice(l.length,o),f=Ae.default.parse(g);if(f)return`${f.major}.${f.minor}.${f.patch}`}}}}let r=Ae.default.clean(t),n=Ae.default.parse(r||"");return n?`${n.major}.${n.minor}.${n.patch}`:""}async function id(t,e){try{let n=(await me(t,["tag","--list"])).split(`
28
+ `).map(c=>nd(c.trim(),e)).filter(Boolean);if(n.length>0)return Ae.default.rsort([...new Set(n)])[0]}catch{}try{let r=Gr.join(t,"package.json"),n=await jr.readFile(r,"utf8"),c=JSON.parse(n)?.version,s=Ae.default.parse(c);if(s)return`${s.major}.${s.minor}.${s.patch}`}catch{}throw new Error("semantic-release did not return a next version and no valid version was found in git tags or package.json.")}async function Po(t,e){if(process.env.GITHUB_SHA)return process.env.GITHUB_SHA.slice(0,7);try{return await me(t,["rev-parse","--short","HEAD"])}catch{return e}}async function Do({cwd:t=process.cwd(),config:e={},repositoryUrl:r,branches:n,tagFormat:c,plugins:s,release:l=!1,onNoRelease:i="error",defaultBranch:o,mainBranch:g}={}){if(!No.includes(i))throw new Error(`Invalid onNoRelease option: ${String(i)}. Expected one of: ${No.join(", ")}.`);let f=o??g??Vp;de("start getNextVersion"),de("cwd=%s defaultBranch=%s release=%s onNoRelease=%s",t,f,l,i),de("env GITHUB_HEAD_REF=%s GITHUB_REF=%s GITHUB_REF_NAME=%s",process.env.GITHUB_HEAD_REF,process.env.GITHUB_REF,process.env.GITHUB_REF_NAME),process.env.GITHUB_HEAD_REF&&process.env.GITHUB_REF?.startsWith("refs/pull/")&&(process.env.GITHUB_REF=`refs/heads/${process.env.GITHUB_HEAD_REF}`,process.env.GITHUB_REF_NAME=process.env.GITHUB_HEAD_REF);let E=await Jp(t)||f;if(de("currentBranch=%s",E),await Qp(t))throw new Error("Shallow git clone detected. This tool requires full git history and tags; use actions/checkout with fetch-depth: 0 (or run git fetch --unshallow --tags).");let y=r||e.repositoryUrl||(l?await Zp(t):".")||".",u="";if(!l&&y==="."||l&&ed(y)&&!td())try{let{remote:v,root:$}=await rd(t,E,f);y=v,u=$}catch(v){de("failed to create temp remote: %o",v)}let p={...Kp(f),...e,repositoryUrl:y,...c?{tagFormat:c}:{},...s?{plugins:s}:{}};de("loadedConfig.branches=%o overrideBranches=%o repositoryUrl=%s",p.branches,n,p.repositoryUrl);let d=n??p.branches,m=Array.isArray(d)?[...d]:d?[d]:[];de("branches before ensure current=%o",m),sd(m,E)||m.push({name:E,prerelease:E!==f?Ur(E):!1}),de("final branches=%o",m);let w;try{w=await kp({...p,branches:m,dryRun:!0,ci:!1,repositoryUrl:p.repositoryUrl},{cwd:t,env:{...process.env,GIT_NOTE_REF:"semantic-release-next-version-empty",GIT_NOTES_REF:"",GIT_NOTES_DISPLAY_REF:""},stdout:process.stderr,stderr:process.stderr})}finally{if(u)try{await jr.rm(u,{recursive:!0,force:!0})}catch{}}if(!w){if(!l||i==="current"||i==="preview"){let v=await id(t,p.tagFormat);if(l&&i==="current")return v;let $=await Po(t,Ur(E||"preview"));return`${v}-preview-${$}`}throw new Error("semantic-release did not return a next version.")}let L=Ae.default.parse(w.nextRelease.version);if(!L)throw new Error(`Unable to parse semantic-release version: ${w.nextRelease.version}`);let a=`${L.major}.${L.minor}.${L.patch}`;if(l)return a;let b=await Po(t,Ur(E||"preview"));return`${a}-preview-${b}`}var ad=`
29
29
  Usage
30
- $ next-version-helper [--release] [--cwd <path>] [--default-branch <name>]
30
+ $ next-version-helper [--release] [--on-no-release <mode>] [--cwd <path>] [--default-branch <name>]
31
31
 
32
32
  Options
33
33
  --release Return the plain next release version (x.y.z)
34
+ --on-no-release Behavior when --release has no releasable commits:
35
+ error | current | preview (default: error)
34
36
  --cwd <path> Working directory (defaults to current)
35
37
  --default-branch
36
38
  Name of the default release branch (default: main)
37
39
  --main-branch Deprecated alias for --default-branch
38
40
  --help, -h Show this help
39
41
  --version, -v Show package version
40
- `;async function ad(t=process.argv){let e=Array.from(t),r=import.meta,i;try{i=vi(od,{importMeta:r,allowUnknownFlags:!1,autoHelp:!1,autoVersion:!1,argv:e.slice(2),flags:{release:{type:"boolean",default:!1},cwd:{type:"string"},defaultBranch:{type:"string"},mainBranch:{type:"string"},help:{type:"boolean",shortFlag:"h"},version:{type:"boolean",shortFlag:"v"}}})}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}if(i.flags.help)return console.log(i.help),0;if(i.flags.version){let c=process.env.npm_package_version||i.pkg?.version||"";return console.log(c),0}try{let c=await To({cwd:i.flags.cwd,release:!!i.flags.release,defaultBranch:i.flags.defaultBranch??i.flags.mainBranch});return console.log(c),0}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}}var cd=nd(process.argv[1]??"").href===import.meta.url;cd&&ad(process.argv).then(t=>{process.exitCode=t});export{ad as run};
42
+ `;async function cd(t=process.argv){let e=Array.from(t),r=import.meta,n;try{n=Ln(ad,{importMeta:r,allowUnknownFlags:!1,autoHelp:!1,autoVersion:!1,argv:e.slice(2),flags:{release:{type:"boolean",default:!1},onNoRelease:{type:"string"},cwd:{type:"string"},defaultBranch:{type:"string"},mainBranch:{type:"string"},help:{type:"boolean",shortFlag:"h"},version:{type:"boolean",shortFlag:"v"}}})}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}if(n.flags.help)return console.log(n.help),0;if(n.flags.version){let c=process.env.npm_package_version||n.pkg?.version||"";return console.log(c),0}try{let c=await Do({cwd:n.flags.cwd,release:!!n.flags.release,defaultBranch:n.flags.defaultBranch??n.flags.mainBranch,...n.flags.onNoRelease?{onNoRelease:n.flags.onNoRelease}:{}});return console.log(c),0}catch(c){let s=c instanceof Error?c.message:String(c);return console.error(s),1}}var ud=od(process.argv[1]??"").href===import.meta.url;ud&&cd(process.argv).then(t=>{process.exitCode=t});export{cd as run};
41
43
  //# sourceMappingURL=cli.js.map