@mcp-use/inspector 0.4.10-canary.0 → 0.4.10

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.
@@ -1,4 +1,4 @@
1
- import{g as pe}from"./index-BqTUQboh.js";var _e={},at;function jn(){if(at)return _e;at=1,_e.byteLength=o,_e.toByteArray=l,_e.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=n.length;s<u;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function i(m){var d=m.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=m.indexOf("=");p===-1&&(p=d);var v=p===d?0:4-p%4;return[p,v]}function o(m){var d=i(m),p=d[0],v=d[1];return(p+v)*3/4-v}function c(m,d,p){return(d+p)*3/4-p}function l(m){var d,p=i(m),v=p[0],g=p[1],_=new r(c(m,v,g)),y=0,C=g>0?v-4:v,q;for(q=0;q<C;q+=4)d=t[m.charCodeAt(q)]<<18|t[m.charCodeAt(q+1)]<<12|t[m.charCodeAt(q+2)]<<6|t[m.charCodeAt(q+3)],_[y++]=d>>16&255,_[y++]=d>>8&255,_[y++]=d&255;return g===2&&(d=t[m.charCodeAt(q)]<<2|t[m.charCodeAt(q+1)]>>4,_[y++]=d&255),g===1&&(d=t[m.charCodeAt(q)]<<10|t[m.charCodeAt(q+1)]<<4|t[m.charCodeAt(q+2)]>>2,_[y++]=d>>8&255,_[y++]=d&255),_}function a(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function f(m,d,p){for(var v,g=[],_=d;_<p;_+=3)v=(m[_]<<16&16711680)+(m[_+1]<<8&65280)+(m[_+2]&255),g.push(a(v));return g.join("")}function h(m){for(var d,p=m.length,v=p%3,g=[],_=16383,y=0,C=p-v;y<C;y+=_)g.push(f(m,y,y+_>C?C:y+_));return v===1?(d=m[p-1],g.push(e[d>>2]+e[d<<4&63]+"==")):v===2&&(d=(m[p-2]<<8)+m[p-1],g.push(e[d>>10]+e[d>>4&63]+e[d<<2&63]+"=")),g.join("")}return _e}var Je,ut;function Dn(){return ut||(ut=1,Je=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}),Je}var Fn=Dn();const Zi=pe(Fn);var Ne={exports:{}},ct;function Un(){if(ct)return Ne.exports;ct=1;const e=/[\p{Lu}]/u,t=/[\p{Ll}]/u,r=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,s=/[_.\- ]+/,u=new RegExp("^"+s.source),i=new RegExp(s.source+n.source,"gu"),o=new RegExp("\\d+"+n.source,"gu"),c=(h,m,d)=>{let p=!1,v=!1,g=!1;for(let _=0;_<h.length;_++){const y=h[_];p&&e.test(y)?(h=h.slice(0,_)+"-"+h.slice(_),p=!1,g=v,v=!0,_++):v&&g&&t.test(y)?(h=h.slice(0,_-1)+"-"+h.slice(_-1),g=v,v=!1,p=!0):(p=m(y)===y&&d(y)!==y,g=v,v=d(y)===y&&m(y)!==y)}return h},l=(h,m)=>(r.lastIndex=0,h.replace(r,d=>m(d))),a=(h,m)=>(i.lastIndex=0,o.lastIndex=0,h.replace(i,(d,p)=>m(p)).replace(o,d=>m(d))),f=(h,m)=>{if(!(typeof h=="string"||Array.isArray(h)))throw new TypeError("Expected the input to be `string | string[]`");if(m={pascalCase:!1,preserveConsecutiveUppercase:!1,...m},Array.isArray(h)?h=h.map(g=>g.trim()).filter(g=>g.length).join("-"):h=h.trim(),h.length===0)return"";const d=m.locale===!1?g=>g.toLowerCase():g=>g.toLocaleLowerCase(m.locale),p=m.locale===!1?g=>g.toUpperCase():g=>g.toLocaleUpperCase(m.locale);return h.length===1?m.pascalCase?p(h):d(h):(h!==d(h)&&(h=c(h,d,p)),h=h.replace(u,""),m.preserveConsecutiveUppercase?h=l(h,d):h=d(h),m.pascalCase&&(h=p(h.charAt(0))+h.slice(1)),a(h,p))};return Ne.exports=f,Ne.exports.default=f,Ne.exports}var Mn=Un();const Xi=pe(Mn),Gn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Bn(e){return typeof e=="string"&&Gn.test(e)}function Vn(e){if(!Bn(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var H=[];for(var He=0;He<256;++He)H.push((He+256).toString(16).slice(1));function In(e,t=0){return(H[e[t+0]]+H[e[t+1]]+H[e[t+2]]+H[e[t+3]]+"-"+H[e[t+4]]+H[e[t+5]]+"-"+H[e[t+6]]+H[e[t+7]]+"-"+H[e[t+8]]+H[e[t+9]]+"-"+H[e[t+10]]+H[e[t+11]]+H[e[t+12]]+H[e[t+13]]+H[e[t+14]]+H[e[t+15]]).toLowerCase()}var ke,Zn=new Uint8Array(16);function Xn(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(Zn)}function Jn(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Hn="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Yn="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kn(e,t,r){function n(s,u,i,o){var c;if(typeof s=="string"&&(s=Jn(s)),typeof u=="string"&&(u=Vn(u)),((c=u)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+s.length);if(l.set(u),l.set(s,u.length),l=r(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=l[a];return i}return In(l)}try{n.name=e}catch{}return n.DNS=Hn,n.URL=Yn,n}var Wn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lt={randomUUID:Wn};function Ji(e,t,r){if(lt.randomUUID&&!e)return lt.randomUUID();e=e||{};var n=e.random||(e.rng||Xn)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,In(n)}function Qn(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function Ye(e,t){return e<<t|e>>>32-t}function es(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=[];for(var s=0;s<n.length;++s)e.push(n.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,i=Math.ceil(u/16),o=new Array(i),c=0;c<i;++c){for(var l=new Uint32Array(16),a=0;a<16;++a)l[a]=e[c*64+a*4]<<24|e[c*64+a*4+1]<<16|e[c*64+a*4+2]<<8|e[c*64+a*4+3];o[c]=l}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(var f=0;f<i;++f){for(var h=new Uint32Array(80),m=0;m<16;++m)h[m]=o[f][m];for(var d=16;d<80;++d)h[d]=Ye(h[d-3]^h[d-8]^h[d-14]^h[d-16],1);for(var p=r[0],v=r[1],g=r[2],_=r[3],y=r[4],C=0;C<80;++C){var q=Math.floor(C/20),U=Ye(p,5)+Qn(q,v,g,_)+y+t[q]+h[C]>>>0;y=_,_=g,g=Ye(v,30)>>>0,v=p,p=U}r[0]=r[0]+p>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+_>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Hi=Kn("v5",80,es),$e={exports:{}},Ke={},We,ft;function rs(){if(ft)return We;ft=1;function e(t,r){typeof r=="boolean"&&(r={forever:r}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=r||{},this._maxRetryTime=r&&r.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}return We=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var r=new Date().getTime();if(t&&r-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var s=this;return this._timer=setTimeout(function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout(function(){s._operationTimeoutCb(s._attempts)},s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)},n),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,r){this._fn=t,r&&(r.timeout&&(this._operationTimeout=r.timeout),r.cb&&(this._operationTimeoutCb=r.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},r=null,n=0,s=0;s<this._errors.length;s++){var u=this._errors[s],i=u.message,o=(t[i]||0)+1;t[i]=o,o>=n&&(r=u,n=o)}return r},We}var dt;function ts(){return dt||(dt=1,(function(e){var t=rs();e.operation=function(r){var n=e.timeouts(r);return new t(n,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},e.timeouts=function(r){if(r instanceof Array)return[].concat(r);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in r)n[s]=r[s];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var u=[],i=0;i<n.retries;i++)u.push(this.createTimeout(i,n));return r&&r.forever&&!u.length&&u.push(this.createTimeout(i,n)),u.sort(function(o,c){return o-c}),u},e.createTimeout=function(r,n){var s=n.randomize?Math.random()+1:1,u=Math.round(s*Math.max(n.minTimeout,1)*Math.pow(n.factor,r));return u=Math.min(u,n.maxTimeout),u},e.wrap=function(r,n,s){if(n instanceof Array&&(s=n,n=null),!s){s=[];for(var u in r)typeof r[u]=="function"&&s.push(u)}for(var i=0;i<s.length;i++){var o=s[i],c=r[o];r[o]=(function(a){var f=e.operation(n),h=Array.prototype.slice.call(arguments,1),m=h.pop();h.push(function(d){f.retry(d)||(d&&(arguments[0]=f.mainError()),m.apply(this,arguments))}),f.attempt(function(){a.apply(r,h)})}).bind(r,c),r[o].options=n}}})(Ke)),Ke}var Qe,ht;function ns(){return ht||(ht=1,Qe=ts()),Qe}var pt;function ss(){if(pt)return $e.exports;pt=1;const e=ns(),t=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class r extends Error{constructor(o){super(),o instanceof Error?(this.originalError=o,{message:o}=o):(this.originalError=new Error(o),this.originalError.stack=this.stack),this.name="AbortError",this.message=o}}const n=(i,o,c)=>{const l=c.retries-(o-1);return i.attemptNumber=o,i.retriesLeft=l,i},s=i=>t.includes(i),u=(i,o)=>new Promise((c,l)=>{o={onFailedAttempt:()=>{},retries:10,...o};const a=e.operation(o);a.attempt(async f=>{try{c(await i(f))}catch(h){if(!(h instanceof Error)){l(new TypeError(`Non-error was thrown: "${h}". You should only throw errors.`));return}if(h instanceof r)a.stop(),l(h.originalError);else if(h instanceof TypeError&&!s(h.message))a.stop(),l(h);else{n(h,f,o);try{await o.onFailedAttempt(h)}catch(m){l(m);return}a.retry(h)||l(a.mainError())}}})});return $e.exports=u,$e.exports.default=u,$e.exports.AbortError=r,$e.exports}var is=ss();const Yi=pe(is);var ze={},er={exports:{}},mt;function os(){return mt||(mt=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(c,l,a){this.fn=c,this.context=l,this.once=a||!1}function u(c,l,a,f,h){if(typeof a!="function")throw new TypeError("The listener must be a function");var m=new s(a,f||c,h),d=r?r+l:l;return c._events[d]?c._events[d].fn?c._events[d]=[c._events[d],m]:c._events[d].push(m):(c._events[d]=m,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var l=[],a,f;if(this._eventsCount===0)return l;for(f in a=this._events)t.call(a,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(a)):l},o.prototype.listeners=function(l){var a=r?r+l:l,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,m=f.length,d=new Array(m);h<m;h++)d[h]=f[h].fn;return d},o.prototype.listenerCount=function(l){var a=r?r+l:l,f=this._events[a];return f?f.fn?1:f.length:0},o.prototype.emit=function(l,a,f,h,m,d){var p=r?r+l:l;if(!this._events[p])return!1;var v=this._events[p],g=arguments.length,_,y;if(v.fn){switch(v.once&&this.removeListener(l,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,a),!0;case 3:return v.fn.call(v.context,a,f),!0;case 4:return v.fn.call(v.context,a,f,h),!0;case 5:return v.fn.call(v.context,a,f,h,m),!0;case 6:return v.fn.call(v.context,a,f,h,m,d),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];v.fn.apply(v.context,_)}else{var C=v.length,q;for(y=0;y<C;y++)switch(v[y].once&&this.removeListener(l,v[y].fn,void 0,!0),g){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,a);break;case 3:v[y].fn.call(v[y].context,a,f);break;case 4:v[y].fn.call(v[y].context,a,f,h);break;default:if(!_)for(q=1,_=new Array(g-1);q<g;q++)_[q-1]=arguments[q];v[y].fn.apply(v[y].context,_)}}return!0},o.prototype.on=function(l,a,f){return u(this,l,a,f,!1)},o.prototype.once=function(l,a,f){return u(this,l,a,f,!0)},o.prototype.removeListener=function(l,a,f,h){var m=r?r+l:l;if(!this._events[m])return this;if(!a)return i(this,m),this;var d=this._events[m];if(d.fn)d.fn===a&&(!h||d.once)&&(!f||d.context===f)&&i(this,m);else{for(var p=0,v=[],g=d.length;p<g;p++)(d[p].fn!==a||h&&!d[p].once||f&&d[p].context!==f)&&v.push(d[p]);v.length?this._events[m]=v.length===1?v[0]:v:i(this,m)}return this},o.prototype.removeAllListeners=function(l){var a;return l?(a=r?r+l:l,this._events[a]&&i(this,a)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(er)),er.exports}var Ee={exports:{}},rr,vt;function as(){return vt||(vt=1,rr=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))),rr}var gt;function us(){if(gt)return Ee.exports;gt=1;const e=as();class t extends Error{constructor(s){super(s),this.name="TimeoutError"}}const r=(n,s,u)=>new Promise((i,o)=>{if(typeof s!="number"||s<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(s===1/0){i(n);return}const c=setTimeout(()=>{if(typeof u=="function"){try{i(u())}catch(f){o(f)}return}const l=typeof u=="string"?u:`Promise timed out after ${s} milliseconds`,a=u instanceof Error?u:new t(l);typeof n.cancel=="function"&&n.cancel(),o(a)},s);e(n.then(i,o),()=>{clearTimeout(c)})});return Ee.exports=r,Ee.exports.default=r,Ee.exports.TimeoutError=t,Ee.exports}var Ce={},Le={},yt;function cs(){if(yt)return Le;yt=1,Object.defineProperty(Le,"__esModule",{value:!0});function e(t,r,n){let s=0,u=t.length;for(;u>0;){const i=u/2|0;let o=s+i;n(t[o],r)<=0?(s=++o,u-=i+1):u=i}return s}return Le.default=e,Le}var _t;function ls(){if(_t)return Ce;_t=1,Object.defineProperty(Ce,"__esModule",{value:!0});const e=cs();class t{constructor(){this._queue=[]}enqueue(n,s){s=Object.assign({priority:0},s);const u={priority:s.priority,run:n};if(this.size&&this._queue[this.size-1].priority>=s.priority){this._queue.push(u);return}const i=e.default(this._queue,u,(o,c)=>c.priority-o.priority);this._queue.splice(i,0,u)}dequeue(){const n=this._queue.shift();return n?.run}filter(n){return this._queue.filter(s=>s.priority===n.priority).map(s=>s.run)}get size(){return this._queue.length}}return Ce.default=t,Ce}var $t;function fs(){if($t)return ze;$t=1,Object.defineProperty(ze,"__esModule",{value:!0});const e=os(),t=us(),r=ls(),n=()=>{},s=new t.TimeoutError;class u extends e{constructor(o){var c,l,a,f;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=n,this._resolveIdle=n,o=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:r.default},o),!(typeof o.intervalCap=="number"&&o.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(l=(c=o.intervalCap)===null||c===void 0?void 0:c.toString())!==null&&l!==void 0?l:""}\` (${typeof o.intervalCap})`);if(o.interval===void 0||!(Number.isFinite(o.interval)&&o.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(f=(a=o.interval)===null||a===void 0?void 0:a.toString())!==null&&f!==void 0?f:""}\` (${typeof o.interval})`);this._carryoverConcurrencyCount=o.carryoverConcurrencyCount,this._isIntervalIgnored=o.intervalCap===1/0||o.interval===0,this._intervalCap=o.intervalCap,this._interval=o.interval,this._queue=new o.queueClass,this._queueClass=o.queueClass,this.concurrency=o.concurrency,this._timeout=o.timeout,this._throwOnTimeout=o.throwOnTimeout===!0,this._isPaused=o.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=n,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=n,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const o=Date.now();if(this._intervalId===void 0){const c=this._intervalEnd-o;if(c<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},c)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const o=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const c=this._queue.dequeue();return c?(this.emit("active"),c(),o&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(o){if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);this._concurrency=o,this._processQueue()}async add(o,c={}){return new Promise((l,a)=>{const f=async()=>{this._pendingCount++,this._intervalCount++;try{const h=this._timeout===void 0&&c.timeout===void 0?o():t.default(Promise.resolve(o()),c.timeout===void 0?this._timeout:c.timeout,()=>{(c.throwOnTimeout===void 0?this._throwOnTimeout:c.throwOnTimeout)&&a(s)});l(await h)}catch(h){a(h)}this._next()};this._queue.enqueue(f,c),this._tryToStartAnother(),this.emit("add")})}async addAll(o,c){return Promise.all(o.map(async l=>this.add(l,c)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(o=>{const c=this._resolveEmpty;this._resolveEmpty=()=>{c(),o()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(o=>{const c=this._resolveIdle;this._resolveIdle=()=>{c(),o()}})}get size(){return this._queue.size}sizeBy(o){return this._queue.filter(o).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(o){this._timeout=o}}return ze.default=u,ze}var ds=fs();const Ki=pe(ds);var qe={exports:{}},tr,Et;function Fe(){if(Et)return tr;Et=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,s=t-6;return tr={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},tr}var nr,wt;function Ue(){if(wt)return nr;wt=1;var e={};return nr=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},nr}var Rt;function Ie(){return Rt||(Rt=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=Fe(),u=Ue();t=e.exports={};const i=t.re=[],o=t.safeRe=[],c=t.src=[],l=t.safeSrc=[],a=t.t={};let f=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,n]],d=v=>{for(const[g,_]of m)v=v.split(`${g}*`).join(`${g}{0,${_}}`).split(`${g}+`).join(`${g}{1,${_}}`);return v},p=(v,g,_)=>{const y=d(g),C=f++;u(v,C,g),a[v]=C,c[C]=g,l[C]=y,i[C]=new RegExp(g,_?"g":void 0),o[C]=new RegExp(y,_?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[a.NONNUMERICIDENTIFIER]}|${c[a.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[a.NONNUMERICIDENTIFIER]}|${c[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${c[a.PRERELEASEIDENTIFIER]}(?:\\.${c[a.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[a.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${c[a.BUILDIDENTIFIER]}(?:\\.${c[a.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[a.MAINVERSION]}${c[a.PRERELEASE]}?${c[a.BUILD]}?`),p("FULL",`^${c[a.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[a.MAINVERSIONLOOSE]}${c[a.PRERELEASELOOSE]}?${c[a.BUILD]}?`),p("LOOSE",`^${c[a.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[a.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:${c[a.PRERELEASE]})?${c[a.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:${c[a.PRERELEASELOOSE]})?${c[a.BUILD]}?)?)?`),p("XRANGE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${c[a.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",c[a.COERCEPLAIN]+`(?:${c[a.PRERELEASE]})?(?:${c[a.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",c[a.COERCE],!0),p("COERCERTLFULL",c[a.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${c[a.LONECARET]}${c[a.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[a.LONECARET]}${c[a.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[a.GTLT]}\\s*(${c[a.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]}|${c[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[a.XRANGEPLAIN]})\\s+-\\s+(${c[a.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[a.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 sr,bt;function Hr(){if(bt)return sr;bt=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return sr=n=>n?typeof n!="object"?e:n:t,sr}var ir,It;function xn(){if(It)return ir;It=1;const e=/^[0-9]+$/,t=(n,s)=>{if(typeof n=="number"&&typeof s=="number")return n===s?0:n<s?-1:1;const u=e.test(n),i=e.test(s);return u&&i&&(n=+n,s=+s),n===s?0:u&&!i?-1:i&&!u?1:n<s?-1:1};return ir={compareIdentifiers:t,rcompareIdentifiers:(n,s)=>t(s,n)},ir}var or,xt;function K(){if(xt)return or;xt=1;const e=Ue(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Fe(),{safeRe:n,t:s}=Ie(),u=Hr(),{compareIdentifiers:i}=xn();class o{constructor(l,a){if(a=u(a),l instanceof o){if(l.loose===!!a.loose&&l.includePrerelease===!!a.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const f=l.trim().match(a.loose?n[s.LOOSE]:n[s.FULL]);if(!f)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+f[1],this.minor=+f[2],this.patch=+f[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");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const m=+h;if(m>=0&&m<r)return m}return h}):this.prerelease=[],this.build=f[5]?f[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(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof o)){if(typeof l=="string"&&l===this.version)return 0;l=new o(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof o||(l=new o(l,this.options)),this.major<l.major?-1:this.major>l.major?1:this.minor<l.minor?-1:this.minor>l.minor?1:this.patch<l.patch?-1:this.patch>l.patch?1:0}comparePre(l){if(l instanceof o||(l=new o(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let a=0;do{const f=this.prerelease[a],h=l.prerelease[a];if(e("prerelease compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return i(f,h)}while(++a)}compareBuild(l){l instanceof o||(l=new o(l,this.options));let a=0;do{const f=this.build[a],h=l.build[a];if(e("build compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return i(f,h)}while(++a)}inc(l,a,f){if(l.startsWith("pre")){if(!a&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(a){const h=`-${a}`.match(this.options.loose?n[s.PRERELEASELOOSE]:n[s.PRERELEASE]);if(!h||h[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,f),this.inc("pre",a,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,f),this.inc("pre",a,f);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":{const h=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(a===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(a){let m=[a,h];f===!1&&(m=[a]),i(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return or=o,or}var ar,Ot;function me(){if(Ot)return ar;Ot=1;const e=K();return ar=(r,n,s=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(u){if(!s)return null;throw u}},ar}var ur,Tt;function hs(){if(Tt)return ur;Tt=1;const e=me();return ur=(r,n)=>{const s=e(r,n);return s?s.version:null},ur}var cr,St;function ps(){if(St)return cr;St=1;const e=me();return cr=(r,n)=>{const s=e(r.trim().replace(/^[=v]+/,""),n);return s?s.version:null},cr}var lr,At;function ms(){if(At)return lr;At=1;const e=K();return lr=(r,n,s,u,i)=>{typeof s=="string"&&(i=u,u=s,s=void 0);try{return new e(r instanceof e?r.version:r,s).inc(n,u,i).version}catch{return null}},lr}var fr,Pt;function vs(){if(Pt)return fr;Pt=1;const e=me();return fr=(r,n)=>{const s=e(r,null,!0),u=e(n,null,!0),i=s.compare(u);if(i===0)return null;const o=i>0,c=o?s:u,l=o?u:s,a=!!c.prerelease.length;if(!!l.prerelease.length&&!a){if(!l.patch&&!l.minor)return"major";if(l.compareMain(c)===0)return l.minor&&!l.patch?"minor":"patch"}const h=a?"pre":"";return s.major!==u.major?h+"major":s.minor!==u.minor?h+"minor":s.patch!==u.patch?h+"patch":"prerelease"},fr}var dr,Nt;function gs(){if(Nt)return dr;Nt=1;const e=K();return dr=(r,n)=>new e(r,n).major,dr}var hr,kt;function ys(){if(kt)return hr;kt=1;const e=K();return hr=(r,n)=>new e(r,n).minor,hr}var pr,zt;function _s(){if(zt)return pr;zt=1;const e=K();return pr=(r,n)=>new e(r,n).patch,pr}var mr,Ct;function $s(){if(Ct)return mr;Ct=1;const e=me();return mr=(r,n)=>{const s=e(r,n);return s&&s.prerelease.length?s.prerelease:null},mr}var vr,Lt;function ee(){if(Lt)return vr;Lt=1;const e=K();return vr=(r,n,s)=>new e(r,s).compare(new e(n,s)),vr}var gr,qt;function Es(){if(qt)return gr;qt=1;const e=ee();return gr=(r,n,s)=>e(n,r,s),gr}var yr,jt;function ws(){if(jt)return yr;jt=1;const e=ee();return yr=(r,n)=>e(r,n,!0),yr}var _r,Dt;function Yr(){if(Dt)return _r;Dt=1;const e=K();return _r=(r,n,s)=>{const u=new e(r,s),i=new e(n,s);return u.compare(i)||u.compareBuild(i)},_r}var $r,Ft;function Rs(){if(Ft)return $r;Ft=1;const e=Yr();return $r=(r,n)=>r.sort((s,u)=>e(s,u,n)),$r}var Er,Ut;function bs(){if(Ut)return Er;Ut=1;const e=Yr();return Er=(r,n)=>r.sort((s,u)=>e(u,s,n)),Er}var wr,Mt;function Me(){if(Mt)return wr;Mt=1;const e=ee();return wr=(r,n,s)=>e(r,n,s)>0,wr}var Rr,Gt;function Kr(){if(Gt)return Rr;Gt=1;const e=ee();return Rr=(r,n,s)=>e(r,n,s)<0,Rr}var br,Bt;function On(){if(Bt)return br;Bt=1;const e=ee();return br=(r,n,s)=>e(r,n,s)===0,br}var Ir,Vt;function Tn(){if(Vt)return Ir;Vt=1;const e=ee();return Ir=(r,n,s)=>e(r,n,s)!==0,Ir}var xr,Zt;function Wr(){if(Zt)return xr;Zt=1;const e=ee();return xr=(r,n,s)=>e(r,n,s)>=0,xr}var Or,Xt;function Qr(){if(Xt)return Or;Xt=1;const e=ee();return Or=(r,n,s)=>e(r,n,s)<=0,Or}var Tr,Jt;function Sn(){if(Jt)return Tr;Jt=1;const e=On(),t=Tn(),r=Me(),n=Wr(),s=Kr(),u=Qr();return Tr=(o,c,l,a)=>{switch(c){case"===":return typeof o=="object"&&(o=o.version),typeof l=="object"&&(l=l.version),o===l;case"!==":return typeof o=="object"&&(o=o.version),typeof l=="object"&&(l=l.version),o!==l;case"":case"=":case"==":return e(o,l,a);case"!=":return t(o,l,a);case">":return r(o,l,a);case">=":return n(o,l,a);case"<":return s(o,l,a);case"<=":return u(o,l,a);default:throw new TypeError(`Invalid operator: ${c}`)}},Tr}var Sr,Ht;function Is(){if(Ht)return Sr;Ht=1;const e=K(),t=me(),{safeRe:r,t:n}=Ie();return Sr=(u,i)=>{if(u instanceof e)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;i=i||{};let o=null;if(!i.rtl)o=u.match(i.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const m=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let d;for(;(d=m.exec(u))&&(!o||o.index+o[0].length!==u.length);)(!o||d.index+d[0].length!==o.index+o[0].length)&&(o=d),m.lastIndex=d.index+d[1].length+d[2].length;m.lastIndex=-1}if(o===null)return null;const c=o[2],l=o[3]||"0",a=o[4]||"0",f=i.includePrerelease&&o[5]?`-${o[5]}`:"",h=i.includePrerelease&&o[6]?`+${o[6]}`:"";return t(`${c}.${l}.${a}${f}${h}`,i)},Sr}var Ar,Yt;function xs(){if(Yt)return Ar;Yt=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(r,n)}return this}}return Ar=e,Ar}var Pr,Kt;function re(){if(Kt)return Pr;Kt=1;const e=/\s+/g;class t{constructor($,T){if(T=s(T),$ instanceof t)return $.loose===!!T.loose&&$.includePrerelease===!!T.includePrerelease?$:new t($.raw,T);if($ instanceof u)return this.raw=$.value,this.set=[[$]],this.formatted=void 0,this;if(this.options=T,this.loose=!!T.loose,this.includePrerelease=!!T.includePrerelease,this.raw=$.trim().replace(e," "),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){const I=this.set[0];if(this.set=this.set.filter(S=>!p(S[0])),this.set.length===0)this.set=[I];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&v(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let $=0;$<this.set.length;$++){$>0&&(this.formatted+="||");const T=this.set[$];for(let I=0;I<T.length;I++)I>0&&(this.formatted+=" "),this.formatted+=T[I].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($){const I=((this.options.includePrerelease&&m)|(this.options.loose&&d))+":"+$,S=n.get(I);if(S)return S;const x=this.options.loose,N=x?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];$=$.replace(N,de(this.options.includePrerelease)),i("hyphen replace",$),$=$.replace(c[l.COMPARATORTRIM],a),i("comparator trim",$),$=$.replace(c[l.TILDETRIM],f),i("tilde trim",$),$=$.replace(c[l.CARETTRIM],h),i("caret trim",$);let D=$.split(" ").map(F=>_(F,this.options)).join(" ").split(/\s+/).map(F=>oe(F,this.options));x&&(D=D.filter(F=>(i("loose invalid filter",F,this.options),!!F.match(c[l.COMPARATORLOOSE])))),i("range list",D);const j=new Map,M=D.map(F=>new u(F,this.options));for(const F of M){if(p(F))return[F];j.set(F.value,F)}j.size>1&&j.has("")&&j.delete("");const J=[...j.values()];return n.set(I,J),J}intersects($,T){if(!($ instanceof t))throw new TypeError("a Range is required");return this.set.some(I=>g(I,T)&&$.set.some(S=>g(S,T)&&I.every(x=>S.every(N=>x.intersects(N,T)))))}test($){if(!$)return!1;if(typeof $=="string")try{$=new o($,this.options)}catch{return!1}for(let T=0;T<this.set.length;T++)if(he(this.set[T],$,this.options))return!0;return!1}}Pr=t;const r=xs(),n=new r,s=Hr(),u=Ge(),i=Ue(),o=K(),{safeRe:c,t:l,comparatorTrimReplace:a,tildeTrimReplace:f,caretTrimReplace:h}=Ie(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:d}=Fe(),p=w=>w.value==="<0.0.0-0",v=w=>w.value==="",g=(w,$)=>{let T=!0;const I=w.slice();let S=I.pop();for(;T&&I.length;)T=I.every(x=>S.intersects(x,$)),S=I.pop();return T},_=(w,$)=>(w=w.replace(c[l.BUILD],""),i("comp",w,$),w=U(w,$),i("caret",w),w=C(w,$),i("tildes",w),w=L(w,$),i("xrange",w),w=ie(w,$),i("stars",w),w),y=w=>!w||w.toLowerCase()==="x"||w==="*",C=(w,$)=>w.trim().split(/\s+/).map(T=>q(T,$)).join(" "),q=(w,$)=>{const T=$.loose?c[l.TILDELOOSE]:c[l.TILDE];return w.replace(T,(I,S,x,N,D)=>{i("tilde",w,I,S,x,N,D);let j;return y(S)?j="":y(x)?j=`>=${S}.0.0 <${+S+1}.0.0-0`:y(N)?j=`>=${S}.${x}.0 <${S}.${+x+1}.0-0`:D?(i("replaceTilde pr",D),j=`>=${S}.${x}.${N}-${D} <${S}.${+x+1}.0-0`):j=`>=${S}.${x}.${N} <${S}.${+x+1}.0-0`,i("tilde return",j),j})},U=(w,$)=>w.trim().split(/\s+/).map(T=>V(T,$)).join(" "),V=(w,$)=>{i("caret",w,$);const T=$.loose?c[l.CARETLOOSE]:c[l.CARET],I=$.includePrerelease?"-0":"";return w.replace(T,(S,x,N,D,j)=>{i("caret",w,S,x,N,D,j);let M;return y(x)?M="":y(N)?M=`>=${x}.0.0${I} <${+x+1}.0.0-0`:y(D)?x==="0"?M=`>=${x}.${N}.0${I} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.0${I} <${+x+1}.0.0-0`:j?(i("replaceCaret pr",j),x==="0"?N==="0"?M=`>=${x}.${N}.${D}-${j} <${x}.${N}.${+D+1}-0`:M=`>=${x}.${N}.${D}-${j} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.${D}-${j} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?N==="0"?M=`>=${x}.${N}.${D}${I} <${x}.${N}.${+D+1}-0`:M=`>=${x}.${N}.${D}${I} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.${D} <${+x+1}.0.0-0`),i("caret return",M),M})},L=(w,$)=>(i("replaceXRanges",w,$),w.split(/\s+/).map(T=>te(T,$)).join(" ")),te=(w,$)=>{w=w.trim();const T=$.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return w.replace(T,(I,S,x,N,D,j)=>{i("xRange",w,I,S,x,N,D,j);const M=y(x),J=M||y(N),F=J||y(D),ne=F;return S==="="&&ne&&(S=""),j=$.includePrerelease?"-0":"",M?S===">"||S==="<"?I="<0.0.0-0":I="*":S&&ne?(J&&(N=0),D=0,S===">"?(S=">=",J?(x=+x+1,N=0,D=0):(N=+N+1,D=0)):S==="<="&&(S="<",J?x=+x+1:N=+N+1),S==="<"&&(j="-0"),I=`${S+x}.${N}.${D}${j}`):J?I=`>=${x}.0.0${j} <${+x+1}.0.0-0`:F&&(I=`>=${x}.${N}.0${j} <${x}.${+N+1}.0-0`),i("xRange return",I),I})},ie=(w,$)=>(i("replaceStars",w,$),w.trim().replace(c[l.STAR],"")),oe=(w,$)=>(i("replaceGTE0",w,$),w.trim().replace(c[$.includePrerelease?l.GTE0PRE:l.GTE0],"")),de=w=>($,T,I,S,x,N,D,j,M,J,F,ne)=>(y(I)?T="":y(S)?T=`>=${I}.0.0${w?"-0":""}`:y(x)?T=`>=${I}.${S}.0${w?"-0":""}`:N?T=`>=${T}`:T=`>=${T}${w?"-0":""}`,y(M)?j="":y(J)?j=`<${+M+1}.0.0-0`:y(F)?j=`<${M}.${+J+1}.0-0`:ne?j=`<=${M}.${J}.${F}-${ne}`:w?j=`<${M}.${J}.${+F+1}-0`:j=`<=${j}`,`${T} ${j}`.trim()),he=(w,$,T)=>{for(let I=0;I<w.length;I++)if(!w[I].test($))return!1;if($.prerelease.length&&!T.includePrerelease){for(let I=0;I<w.length;I++)if(i(w[I].semver),w[I].semver!==u.ANY&&w[I].semver.prerelease.length>0){const S=w[I].semver;if(S.major===$.major&&S.minor===$.minor&&S.patch===$.patch)return!0}return!1}return!0};return Pr}var Nr,Wt;function Ge(){if(Wt)return Nr;Wt=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,f){if(f=r(f),a instanceof t){if(a.loose===!!f.loose)return a;a=a.value}a=a.trim().split(/\s+/).join(" "),i("comparator",a,f),this.options=f,this.loose=!!f.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(a){const f=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],h=a.match(f);if(!h)throw new TypeError(`Invalid comparator: ${a}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new o(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(i("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new o(a,this.options)}catch{return!1}return u(a,this.operator,this.semver,this.options)}intersects(a,f){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(a.value,f).test(this.value):a.operator===""?a.value===""?!0:new c(this.value,f).test(a.semver):(f=r(f),f.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||u(this.semver,"<",a.semver,f)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||u(this.semver,">",a.semver,f)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}Nr=t;const r=Hr(),{safeRe:n,t:s}=Ie(),u=Sn(),i=Ue(),o=K(),c=re();return Nr}var kr,Qt;function Be(){if(Qt)return kr;Qt=1;const e=re();return kr=(r,n,s)=>{try{n=new e(n,s)}catch{return!1}return n.test(r)},kr}var zr,en;function Os(){if(en)return zr;en=1;const e=re();return zr=(r,n)=>new e(r,n).set.map(s=>s.map(u=>u.value).join(" ").trim().split(" ")),zr}var Cr,rn;function Ts(){if(rn)return Cr;rn=1;const e=K(),t=re();return Cr=(n,s,u)=>{let i=null,o=null,c=null;try{c=new t(s,u)}catch{return null}return n.forEach(l=>{c.test(l)&&(!i||o.compare(l)===-1)&&(i=l,o=new e(i,u))}),i},Cr}var Lr,tn;function Ss(){if(tn)return Lr;tn=1;const e=K(),t=re();return Lr=(n,s,u)=>{let i=null,o=null,c=null;try{c=new t(s,u)}catch{return null}return n.forEach(l=>{c.test(l)&&(!i||o.compare(l)===1)&&(i=l,o=new e(i,u))}),i},Lr}var qr,nn;function As(){if(nn)return qr;nn=1;const e=K(),t=re(),r=Me();return qr=(s,u)=>{s=new t(s,u);let i=new e("0.0.0");if(s.test(i)||(i=new e("0.0.0-0"),s.test(i)))return i;i=null;for(let o=0;o<s.set.length;++o){const c=s.set[o];let l=null;c.forEach(a=>{const f=new e(a.semver.version);switch(a.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||r(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),l&&(!i||r(i,l))&&(i=l)}return i&&s.test(i)?i:null},qr}var jr,sn;function Ps(){if(sn)return jr;sn=1;const e=re();return jr=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},jr}var Dr,on;function et(){if(on)return Dr;on=1;const e=K(),t=Ge(),{ANY:r}=t,n=re(),s=Be(),u=Me(),i=Kr(),o=Qr(),c=Wr();return Dr=(a,f,h,m)=>{a=new e(a,m),f=new n(f,m);let d,p,v,g,_;switch(h){case">":d=u,p=o,v=i,g=">",_=">=";break;case"<":d=i,p=c,v=u,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(a,f,m))return!1;for(let y=0;y<f.set.length;++y){const C=f.set[y];let q=null,U=null;if(C.forEach(V=>{V.semver===r&&(V=new t(">=0.0.0")),q=q||V,U=U||V,d(V.semver,q.semver,m)?q=V:v(V.semver,U.semver,m)&&(U=V)}),q.operator===g||q.operator===_||(!U.operator||U.operator===g)&&p(a,U.semver))return!1;if(U.operator===_&&v(a,U.semver))return!1}return!0},Dr}var Fr,an;function Ns(){if(an)return Fr;an=1;const e=et();return Fr=(r,n,s)=>e(r,n,">",s),Fr}var Ur,un;function ks(){if(un)return Ur;un=1;const e=et();return Ur=(r,n,s)=>e(r,n,"<",s),Ur}var Mr,cn;function zs(){if(cn)return Mr;cn=1;const e=re();return Mr=(r,n,s)=>(r=new e(r,s),n=new e(n,s),r.intersects(n,s)),Mr}var Gr,ln;function Cs(){if(ln)return Gr;ln=1;const e=Be(),t=ee();return Gr=(r,n,s)=>{const u=[];let i=null,o=null;const c=r.sort((h,m)=>t(h,m,s));for(const h of c)e(h,n,s)?(o=h,i||(i=h)):(o&&u.push([i,o]),o=null,i=null);i&&u.push([i,null]);const l=[];for(const[h,m]of u)h===m?l.push(h):!m&&h===c[0]?l.push("*"):m?h===c[0]?l.push(`<=${m}`):l.push(`${h} - ${m}`):l.push(`>=${h}`);const a=l.join(" || "),f=typeof n.raw=="string"?n.raw:String(n);return a.length<f.length?a:n},Gr}var Br,fn;function Ls(){if(fn)return Br;fn=1;const e=re(),t=Ge(),{ANY:r}=t,n=Be(),s=ee(),u=(f,h,m={})=>{if(f===h)return!0;f=new e(f,m),h=new e(h,m);let d=!1;e:for(const p of f.set){for(const v of h.set){const g=c(p,v,m);if(d=d||g!==null,g)continue e}if(d)return!1}return!0},i=[new t(">=0.0.0-0")],o=[new t(">=0.0.0")],c=(f,h,m)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;m.includePrerelease?f=i:f=o}if(h.length===1&&h[0].semver===r){if(m.includePrerelease)return!0;h=o}const d=new Set;let p,v;for(const L of f)L.operator===">"||L.operator===">="?p=l(p,L,m):L.operator==="<"||L.operator==="<="?v=a(v,L,m):d.add(L.semver);if(d.size>1)return null;let g;if(p&&v){if(g=s(p.semver,v.semver,m),g>0)return null;if(g===0&&(p.operator!==">="||v.operator!=="<="))return null}for(const L of d){if(p&&!n(L,String(p),m)||v&&!n(L,String(v),m))return null;for(const te of h)if(!n(L,String(te),m))return!1;return!0}let _,y,C,q,U=v&&!m.includePrerelease&&v.semver.prerelease.length?v.semver:!1,V=p&&!m.includePrerelease&&p.semver.prerelease.length?p.semver:!1;U&&U.prerelease.length===1&&v.operator==="<"&&U.prerelease[0]===0&&(U=!1);for(const L of h){if(q=q||L.operator===">"||L.operator===">=",C=C||L.operator==="<"||L.operator==="<=",p){if(V&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===V.major&&L.semver.minor===V.minor&&L.semver.patch===V.patch&&(V=!1),L.operator===">"||L.operator===">="){if(_=l(p,L,m),_===L&&_!==p)return!1}else if(p.operator===">="&&!n(p.semver,String(L),m))return!1}if(v){if(U&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===U.major&&L.semver.minor===U.minor&&L.semver.patch===U.patch&&(U=!1),L.operator==="<"||L.operator==="<="){if(y=a(v,L,m),y===L&&y!==v)return!1}else if(v.operator==="<="&&!n(v.semver,String(L),m))return!1}if(!L.operator&&(v||p)&&g!==0)return!1}return!(p&&C&&!v&&g!==0||v&&q&&!p&&g!==0||V||U)},l=(f,h,m)=>{if(!f)return h;const d=s(f.semver,h.semver,m);return d>0?f:d<0||h.operator===">"&&f.operator===">="?h:f},a=(f,h,m)=>{if(!f)return h;const d=s(f.semver,h.semver,m);return d<0?f:d>0||h.operator==="<"&&f.operator==="<="?h:f};return Br=u,Br}var Vr,dn;function qs(){if(dn)return Vr;dn=1;const e=Ie(),t=Fe(),r=K(),n=xn(),s=me(),u=hs(),i=ps(),o=ms(),c=vs(),l=gs(),a=ys(),f=_s(),h=$s(),m=ee(),d=Es(),p=ws(),v=Yr(),g=Rs(),_=bs(),y=Me(),C=Kr(),q=On(),U=Tn(),V=Wr(),L=Qr(),te=Sn(),ie=Is(),oe=Ge(),de=re(),he=Be(),w=Os(),$=Ts(),T=Ss(),I=As(),S=Ps(),x=et(),N=Ns(),D=ks(),j=zs(),M=Cs(),J=Ls();return Vr={parse:s,valid:u,clean:i,inc:o,diff:c,major:l,minor:a,patch:f,prerelease:h,compare:m,rcompare:d,compareLoose:p,compareBuild:v,sort:g,rsort:_,gt:y,lt:C,eq:q,neq:U,gte:V,lte:L,cmp:te,coerce:ie,Comparator:oe,Range:de,satisfies:he,toComparators:w,maxSatisfying:$,minSatisfying:T,minVersion:I,validRange:S,outside:x,gtr:N,ltr:D,intersects:j,simplifyRange:M,subset:J,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Vr}qs();var De={exports:{}};De.exports;var hn;function js(){return hn||(hn=1,(function(e){const r=(u=0)=>i=>`\x1B[${38+u};5;${i}m`,n=(u=0)=>(i,o,c)=>`\x1B[${38+u};2;${i};${o};${c}m`;function s(){const u=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[o,c]of Object.entries(i)){for(const[l,a]of Object.entries(c))i[l]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},c[l]=i[l],u.set(a[0],a[1]);Object.defineProperty(i,o,{value:c,enumerable:!1})}return Object.defineProperty(i,"codes",{value:u,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(o,c,l)=>o===c&&c===l?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(c/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:o=>{const c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(o.toString(16));if(!c)return[0,0,0];let{colorString:l}=c.groups;l.length===3&&(l=l.split("").map(f=>f+f).join(""));const a=Number.parseInt(l,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:o=>i.rgbToAnsi256(...i.hexToRgb(o)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(De)),De.exports}var Ds=js();const Wi=pe(Ds);function G(e,t,r){function n(o,c){var l;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(l=o._zod).traits??(l.traits=new Set),o._zod.traits.add(e),t(o,c);for(const a in i.prototype)a in o||Object.defineProperty(o,a,{value:i.prototype[a].bind(o)});o._zod.constr=i,o._zod.def=c}const s=r?.Parent??Object;class u extends s{}Object.defineProperty(u,"name",{value:e});function i(o){var c;const l=r?.Parent?new u:this;n(l,o),(c=l._zod).deferred??(c.deferred=[]);for(const a of l._zod.deferred)a();return l}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class be extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Fs={};function le(e){return Fs}function Us(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,s])=>t.indexOf(+n)===-1).map(([n,s])=>s)}function Ms(e,t){return typeof t=="bigint"?t.toString():t}function rt(e){return e==null}function tt(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Z(e,t,r){Object.defineProperty(e,t,{get(){{const n=r();return e[t]=n,n}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Gs(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}const An=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Zr(e){if(pn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(pn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Pn(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ve(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Qi(e,t){if(!Zr(t))throw new Error("Invalid input to extend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Gs(this,"shape",n),n},checks:[]};return Pn(e,r)}function eo(e,t,r){const n=t._zod.def.shape,s={...n};for(const u in n)s[u]=e?new e({type:"optional",innerType:n[u]}):n[u];return Pn(t,{...t._zod.def,shape:s,checks:[]})}function we(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Bs(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function je(e){return typeof e=="string"?e:e?.message}function fe(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const s=je(e.inst?._zod.def?.error?.(e))??je(t?.error?.(e))??je(r.customError?.(e))??je(r.localeError?.(e))??"Invalid input";n.message=s}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function nt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Vs(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const Nn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Ms,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zs=G("$ZodError",Nn),Ve=G("$ZodError",Nn,{Parent:Error});function ro(e,t=r=>r.message){const r={},n=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):n.push(t(s));return{formErrors:n,fieldErrors:r}}function to(e,t){const r=t||function(u){return u.message},n={_errors:[]},s=u=>{for(const i of u.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(o=>s({issues:o}));else if(i.code==="invalid_key")s({issues:i.issues});else if(i.code==="invalid_element")s({issues:i.issues});else if(i.path.length===0)n._errors.push(r(i));else{let o=n,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(r(i))):o[l]=o[l]||{_errors:[]},o=o[l],c++}}};return s(e),n}function Xs(e){const t=[];for(const r of e)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function no(e){const t=[],r=[...e.issues].sort((n,s)=>n.path.length-s.path.length);for(const n of r)t.push(`✖ ${n.message}`),n.path?.length&&t.push(` → at ${Xs(n.path)}`);return t.join(`
1
+ import{g as pe}from"./index-BxUJEXs5.js";var _e={},at;function jn(){if(at)return _e;at=1,_e.byteLength=o,_e.toByteArray=l,_e.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=n.length;s<u;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function i(m){var d=m.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=m.indexOf("=");p===-1&&(p=d);var v=p===d?0:4-p%4;return[p,v]}function o(m){var d=i(m),p=d[0],v=d[1];return(p+v)*3/4-v}function c(m,d,p){return(d+p)*3/4-p}function l(m){var d,p=i(m),v=p[0],g=p[1],_=new r(c(m,v,g)),y=0,C=g>0?v-4:v,q;for(q=0;q<C;q+=4)d=t[m.charCodeAt(q)]<<18|t[m.charCodeAt(q+1)]<<12|t[m.charCodeAt(q+2)]<<6|t[m.charCodeAt(q+3)],_[y++]=d>>16&255,_[y++]=d>>8&255,_[y++]=d&255;return g===2&&(d=t[m.charCodeAt(q)]<<2|t[m.charCodeAt(q+1)]>>4,_[y++]=d&255),g===1&&(d=t[m.charCodeAt(q)]<<10|t[m.charCodeAt(q+1)]<<4|t[m.charCodeAt(q+2)]>>2,_[y++]=d>>8&255,_[y++]=d&255),_}function a(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function f(m,d,p){for(var v,g=[],_=d;_<p;_+=3)v=(m[_]<<16&16711680)+(m[_+1]<<8&65280)+(m[_+2]&255),g.push(a(v));return g.join("")}function h(m){for(var d,p=m.length,v=p%3,g=[],_=16383,y=0,C=p-v;y<C;y+=_)g.push(f(m,y,y+_>C?C:y+_));return v===1?(d=m[p-1],g.push(e[d>>2]+e[d<<4&63]+"==")):v===2&&(d=(m[p-2]<<8)+m[p-1],g.push(e[d>>10]+e[d>>4&63]+e[d<<2&63]+"=")),g.join("")}return _e}var Je,ut;function Dn(){return ut||(ut=1,Je=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}),Je}var Fn=Dn();const Zi=pe(Fn);var Ne={exports:{}},ct;function Un(){if(ct)return Ne.exports;ct=1;const e=/[\p{Lu}]/u,t=/[\p{Ll}]/u,r=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,s=/[_.\- ]+/,u=new RegExp("^"+s.source),i=new RegExp(s.source+n.source,"gu"),o=new RegExp("\\d+"+n.source,"gu"),c=(h,m,d)=>{let p=!1,v=!1,g=!1;for(let _=0;_<h.length;_++){const y=h[_];p&&e.test(y)?(h=h.slice(0,_)+"-"+h.slice(_),p=!1,g=v,v=!0,_++):v&&g&&t.test(y)?(h=h.slice(0,_-1)+"-"+h.slice(_-1),g=v,v=!1,p=!0):(p=m(y)===y&&d(y)!==y,g=v,v=d(y)===y&&m(y)!==y)}return h},l=(h,m)=>(r.lastIndex=0,h.replace(r,d=>m(d))),a=(h,m)=>(i.lastIndex=0,o.lastIndex=0,h.replace(i,(d,p)=>m(p)).replace(o,d=>m(d))),f=(h,m)=>{if(!(typeof h=="string"||Array.isArray(h)))throw new TypeError("Expected the input to be `string | string[]`");if(m={pascalCase:!1,preserveConsecutiveUppercase:!1,...m},Array.isArray(h)?h=h.map(g=>g.trim()).filter(g=>g.length).join("-"):h=h.trim(),h.length===0)return"";const d=m.locale===!1?g=>g.toLowerCase():g=>g.toLocaleLowerCase(m.locale),p=m.locale===!1?g=>g.toUpperCase():g=>g.toLocaleUpperCase(m.locale);return h.length===1?m.pascalCase?p(h):d(h):(h!==d(h)&&(h=c(h,d,p)),h=h.replace(u,""),m.preserveConsecutiveUppercase?h=l(h,d):h=d(h),m.pascalCase&&(h=p(h.charAt(0))+h.slice(1)),a(h,p))};return Ne.exports=f,Ne.exports.default=f,Ne.exports}var Mn=Un();const Xi=pe(Mn),Gn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Bn(e){return typeof e=="string"&&Gn.test(e)}function Vn(e){if(!Bn(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var H=[];for(var He=0;He<256;++He)H.push((He+256).toString(16).slice(1));function In(e,t=0){return(H[e[t+0]]+H[e[t+1]]+H[e[t+2]]+H[e[t+3]]+"-"+H[e[t+4]]+H[e[t+5]]+"-"+H[e[t+6]]+H[e[t+7]]+"-"+H[e[t+8]]+H[e[t+9]]+"-"+H[e[t+10]]+H[e[t+11]]+H[e[t+12]]+H[e[t+13]]+H[e[t+14]]+H[e[t+15]]).toLowerCase()}var ke,Zn=new Uint8Array(16);function Xn(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(Zn)}function Jn(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Hn="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Yn="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kn(e,t,r){function n(s,u,i,o){var c;if(typeof s=="string"&&(s=Jn(s)),typeof u=="string"&&(u=Vn(u)),((c=u)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+s.length);if(l.set(u),l.set(s,u.length),l=r(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=l[a];return i}return In(l)}try{n.name=e}catch{}return n.DNS=Hn,n.URL=Yn,n}var Wn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lt={randomUUID:Wn};function Ji(e,t,r){if(lt.randomUUID&&!e)return lt.randomUUID();e=e||{};var n=e.random||(e.rng||Xn)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,In(n)}function Qn(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function Ye(e,t){return e<<t|e>>>32-t}function es(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=[];for(var s=0;s<n.length;++s)e.push(n.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,i=Math.ceil(u/16),o=new Array(i),c=0;c<i;++c){for(var l=new Uint32Array(16),a=0;a<16;++a)l[a]=e[c*64+a*4]<<24|e[c*64+a*4+1]<<16|e[c*64+a*4+2]<<8|e[c*64+a*4+3];o[c]=l}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(var f=0;f<i;++f){for(var h=new Uint32Array(80),m=0;m<16;++m)h[m]=o[f][m];for(var d=16;d<80;++d)h[d]=Ye(h[d-3]^h[d-8]^h[d-14]^h[d-16],1);for(var p=r[0],v=r[1],g=r[2],_=r[3],y=r[4],C=0;C<80;++C){var q=Math.floor(C/20),U=Ye(p,5)+Qn(q,v,g,_)+y+t[q]+h[C]>>>0;y=_,_=g,g=Ye(v,30)>>>0,v=p,p=U}r[0]=r[0]+p>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+_>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Hi=Kn("v5",80,es),$e={exports:{}},Ke={},We,ft;function rs(){if(ft)return We;ft=1;function e(t,r){typeof r=="boolean"&&(r={forever:r}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=r||{},this._maxRetryTime=r&&r.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}return We=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var r=new Date().getTime();if(t&&r-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var s=this;return this._timer=setTimeout(function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout(function(){s._operationTimeoutCb(s._attempts)},s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)},n),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,r){this._fn=t,r&&(r.timeout&&(this._operationTimeout=r.timeout),r.cb&&(this._operationTimeoutCb=r.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},r=null,n=0,s=0;s<this._errors.length;s++){var u=this._errors[s],i=u.message,o=(t[i]||0)+1;t[i]=o,o>=n&&(r=u,n=o)}return r},We}var dt;function ts(){return dt||(dt=1,(function(e){var t=rs();e.operation=function(r){var n=e.timeouts(r);return new t(n,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},e.timeouts=function(r){if(r instanceof Array)return[].concat(r);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in r)n[s]=r[s];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var u=[],i=0;i<n.retries;i++)u.push(this.createTimeout(i,n));return r&&r.forever&&!u.length&&u.push(this.createTimeout(i,n)),u.sort(function(o,c){return o-c}),u},e.createTimeout=function(r,n){var s=n.randomize?Math.random()+1:1,u=Math.round(s*Math.max(n.minTimeout,1)*Math.pow(n.factor,r));return u=Math.min(u,n.maxTimeout),u},e.wrap=function(r,n,s){if(n instanceof Array&&(s=n,n=null),!s){s=[];for(var u in r)typeof r[u]=="function"&&s.push(u)}for(var i=0;i<s.length;i++){var o=s[i],c=r[o];r[o]=(function(a){var f=e.operation(n),h=Array.prototype.slice.call(arguments,1),m=h.pop();h.push(function(d){f.retry(d)||(d&&(arguments[0]=f.mainError()),m.apply(this,arguments))}),f.attempt(function(){a.apply(r,h)})}).bind(r,c),r[o].options=n}}})(Ke)),Ke}var Qe,ht;function ns(){return ht||(ht=1,Qe=ts()),Qe}var pt;function ss(){if(pt)return $e.exports;pt=1;const e=ns(),t=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class r extends Error{constructor(o){super(),o instanceof Error?(this.originalError=o,{message:o}=o):(this.originalError=new Error(o),this.originalError.stack=this.stack),this.name="AbortError",this.message=o}}const n=(i,o,c)=>{const l=c.retries-(o-1);return i.attemptNumber=o,i.retriesLeft=l,i},s=i=>t.includes(i),u=(i,o)=>new Promise((c,l)=>{o={onFailedAttempt:()=>{},retries:10,...o};const a=e.operation(o);a.attempt(async f=>{try{c(await i(f))}catch(h){if(!(h instanceof Error)){l(new TypeError(`Non-error was thrown: "${h}". You should only throw errors.`));return}if(h instanceof r)a.stop(),l(h.originalError);else if(h instanceof TypeError&&!s(h.message))a.stop(),l(h);else{n(h,f,o);try{await o.onFailedAttempt(h)}catch(m){l(m);return}a.retry(h)||l(a.mainError())}}})});return $e.exports=u,$e.exports.default=u,$e.exports.AbortError=r,$e.exports}var is=ss();const Yi=pe(is);var ze={},er={exports:{}},mt;function os(){return mt||(mt=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(c,l,a){this.fn=c,this.context=l,this.once=a||!1}function u(c,l,a,f,h){if(typeof a!="function")throw new TypeError("The listener must be a function");var m=new s(a,f||c,h),d=r?r+l:l;return c._events[d]?c._events[d].fn?c._events[d]=[c._events[d],m]:c._events[d].push(m):(c._events[d]=m,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var l=[],a,f;if(this._eventsCount===0)return l;for(f in a=this._events)t.call(a,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(a)):l},o.prototype.listeners=function(l){var a=r?r+l:l,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,m=f.length,d=new Array(m);h<m;h++)d[h]=f[h].fn;return d},o.prototype.listenerCount=function(l){var a=r?r+l:l,f=this._events[a];return f?f.fn?1:f.length:0},o.prototype.emit=function(l,a,f,h,m,d){var p=r?r+l:l;if(!this._events[p])return!1;var v=this._events[p],g=arguments.length,_,y;if(v.fn){switch(v.once&&this.removeListener(l,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,a),!0;case 3:return v.fn.call(v.context,a,f),!0;case 4:return v.fn.call(v.context,a,f,h),!0;case 5:return v.fn.call(v.context,a,f,h,m),!0;case 6:return v.fn.call(v.context,a,f,h,m,d),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];v.fn.apply(v.context,_)}else{var C=v.length,q;for(y=0;y<C;y++)switch(v[y].once&&this.removeListener(l,v[y].fn,void 0,!0),g){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,a);break;case 3:v[y].fn.call(v[y].context,a,f);break;case 4:v[y].fn.call(v[y].context,a,f,h);break;default:if(!_)for(q=1,_=new Array(g-1);q<g;q++)_[q-1]=arguments[q];v[y].fn.apply(v[y].context,_)}}return!0},o.prototype.on=function(l,a,f){return u(this,l,a,f,!1)},o.prototype.once=function(l,a,f){return u(this,l,a,f,!0)},o.prototype.removeListener=function(l,a,f,h){var m=r?r+l:l;if(!this._events[m])return this;if(!a)return i(this,m),this;var d=this._events[m];if(d.fn)d.fn===a&&(!h||d.once)&&(!f||d.context===f)&&i(this,m);else{for(var p=0,v=[],g=d.length;p<g;p++)(d[p].fn!==a||h&&!d[p].once||f&&d[p].context!==f)&&v.push(d[p]);v.length?this._events[m]=v.length===1?v[0]:v:i(this,m)}return this},o.prototype.removeAllListeners=function(l){var a;return l?(a=r?r+l:l,this._events[a]&&i(this,a)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(er)),er.exports}var Ee={exports:{}},rr,vt;function as(){return vt||(vt=1,rr=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))),rr}var gt;function us(){if(gt)return Ee.exports;gt=1;const e=as();class t extends Error{constructor(s){super(s),this.name="TimeoutError"}}const r=(n,s,u)=>new Promise((i,o)=>{if(typeof s!="number"||s<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(s===1/0){i(n);return}const c=setTimeout(()=>{if(typeof u=="function"){try{i(u())}catch(f){o(f)}return}const l=typeof u=="string"?u:`Promise timed out after ${s} milliseconds`,a=u instanceof Error?u:new t(l);typeof n.cancel=="function"&&n.cancel(),o(a)},s);e(n.then(i,o),()=>{clearTimeout(c)})});return Ee.exports=r,Ee.exports.default=r,Ee.exports.TimeoutError=t,Ee.exports}var Ce={},Le={},yt;function cs(){if(yt)return Le;yt=1,Object.defineProperty(Le,"__esModule",{value:!0});function e(t,r,n){let s=0,u=t.length;for(;u>0;){const i=u/2|0;let o=s+i;n(t[o],r)<=0?(s=++o,u-=i+1):u=i}return s}return Le.default=e,Le}var _t;function ls(){if(_t)return Ce;_t=1,Object.defineProperty(Ce,"__esModule",{value:!0});const e=cs();class t{constructor(){this._queue=[]}enqueue(n,s){s=Object.assign({priority:0},s);const u={priority:s.priority,run:n};if(this.size&&this._queue[this.size-1].priority>=s.priority){this._queue.push(u);return}const i=e.default(this._queue,u,(o,c)=>c.priority-o.priority);this._queue.splice(i,0,u)}dequeue(){const n=this._queue.shift();return n?.run}filter(n){return this._queue.filter(s=>s.priority===n.priority).map(s=>s.run)}get size(){return this._queue.length}}return Ce.default=t,Ce}var $t;function fs(){if($t)return ze;$t=1,Object.defineProperty(ze,"__esModule",{value:!0});const e=os(),t=us(),r=ls(),n=()=>{},s=new t.TimeoutError;class u extends e{constructor(o){var c,l,a,f;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=n,this._resolveIdle=n,o=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:r.default},o),!(typeof o.intervalCap=="number"&&o.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(l=(c=o.intervalCap)===null||c===void 0?void 0:c.toString())!==null&&l!==void 0?l:""}\` (${typeof o.intervalCap})`);if(o.interval===void 0||!(Number.isFinite(o.interval)&&o.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(f=(a=o.interval)===null||a===void 0?void 0:a.toString())!==null&&f!==void 0?f:""}\` (${typeof o.interval})`);this._carryoverConcurrencyCount=o.carryoverConcurrencyCount,this._isIntervalIgnored=o.intervalCap===1/0||o.interval===0,this._intervalCap=o.intervalCap,this._interval=o.interval,this._queue=new o.queueClass,this._queueClass=o.queueClass,this.concurrency=o.concurrency,this._timeout=o.timeout,this._throwOnTimeout=o.throwOnTimeout===!0,this._isPaused=o.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=n,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=n,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const o=Date.now();if(this._intervalId===void 0){const c=this._intervalEnd-o;if(c<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},c)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const o=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const c=this._queue.dequeue();return c?(this.emit("active"),c(),o&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(o){if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);this._concurrency=o,this._processQueue()}async add(o,c={}){return new Promise((l,a)=>{const f=async()=>{this._pendingCount++,this._intervalCount++;try{const h=this._timeout===void 0&&c.timeout===void 0?o():t.default(Promise.resolve(o()),c.timeout===void 0?this._timeout:c.timeout,()=>{(c.throwOnTimeout===void 0?this._throwOnTimeout:c.throwOnTimeout)&&a(s)});l(await h)}catch(h){a(h)}this._next()};this._queue.enqueue(f,c),this._tryToStartAnother(),this.emit("add")})}async addAll(o,c){return Promise.all(o.map(async l=>this.add(l,c)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(o=>{const c=this._resolveEmpty;this._resolveEmpty=()=>{c(),o()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(o=>{const c=this._resolveIdle;this._resolveIdle=()=>{c(),o()}})}get size(){return this._queue.size}sizeBy(o){return this._queue.filter(o).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(o){this._timeout=o}}return ze.default=u,ze}var ds=fs();const Ki=pe(ds);var qe={exports:{}},tr,Et;function Fe(){if(Et)return tr;Et=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,s=t-6;return tr={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},tr}var nr,wt;function Ue(){if(wt)return nr;wt=1;var e={};return nr=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},nr}var Rt;function Ie(){return Rt||(Rt=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=Fe(),u=Ue();t=e.exports={};const i=t.re=[],o=t.safeRe=[],c=t.src=[],l=t.safeSrc=[],a=t.t={};let f=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,n]],d=v=>{for(const[g,_]of m)v=v.split(`${g}*`).join(`${g}{0,${_}}`).split(`${g}+`).join(`${g}{1,${_}}`);return v},p=(v,g,_)=>{const y=d(g),C=f++;u(v,C,g),a[v]=C,c[C]=g,l[C]=y,i[C]=new RegExp(g,_?"g":void 0),o[C]=new RegExp(y,_?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})\\.(${c[a.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})\\.(${c[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[a.NONNUMERICIDENTIFIER]}|${c[a.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[a.NONNUMERICIDENTIFIER]}|${c[a.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${c[a.PRERELEASEIDENTIFIER]}(?:\\.${c[a.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[a.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${c[a.BUILDIDENTIFIER]}(?:\\.${c[a.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[a.MAINVERSION]}${c[a.PRERELEASE]}?${c[a.BUILD]}?`),p("FULL",`^${c[a.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[a.MAINVERSIONLOOSE]}${c[a.PRERELEASELOOSE]}?${c[a.BUILD]}?`),p("LOOSE",`^${c[a.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[a.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:\\.(${c[a.XRANGEIDENTIFIER]})(?:${c[a.PRERELEASE]})?${c[a.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[a.XRANGEIDENTIFIERLOOSE]})(?:${c[a.PRERELEASELOOSE]})?${c[a.BUILD]}?)?)?`),p("XRANGE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[a.GTLT]}\\s*${c[a.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),p("COERCE",`${c[a.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",c[a.COERCEPLAIN]+`(?:${c[a.PRERELEASE]})?(?:${c[a.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",c[a.COERCE],!0),p("COERCERTLFULL",c[a.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[a.LONETILDE]}${c[a.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${c[a.LONECARET]}${c[a.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[a.LONECARET]}${c[a.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[a.GTLT]}\\s*(${c[a.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[a.GTLT]}\\s*(${c[a.LOOSEPLAIN]}|${c[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[a.XRANGEPLAIN]})\\s+-\\s+(${c[a.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[a.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 sr,bt;function Hr(){if(bt)return sr;bt=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return sr=n=>n?typeof n!="object"?e:n:t,sr}var ir,It;function xn(){if(It)return ir;It=1;const e=/^[0-9]+$/,t=(n,s)=>{if(typeof n=="number"&&typeof s=="number")return n===s?0:n<s?-1:1;const u=e.test(n),i=e.test(s);return u&&i&&(n=+n,s=+s),n===s?0:u&&!i?-1:i&&!u?1:n<s?-1:1};return ir={compareIdentifiers:t,rcompareIdentifiers:(n,s)=>t(s,n)},ir}var or,xt;function K(){if(xt)return or;xt=1;const e=Ue(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Fe(),{safeRe:n,t:s}=Ie(),u=Hr(),{compareIdentifiers:i}=xn();class o{constructor(l,a){if(a=u(a),l instanceof o){if(l.loose===!!a.loose&&l.includePrerelease===!!a.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const f=l.trim().match(a.loose?n[s.LOOSE]:n[s.FULL]);if(!f)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+f[1],this.minor=+f[2],this.patch=+f[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");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const m=+h;if(m>=0&&m<r)return m}return h}):this.prerelease=[],this.build=f[5]?f[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(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof o)){if(typeof l=="string"&&l===this.version)return 0;l=new o(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof o||(l=new o(l,this.options)),this.major<l.major?-1:this.major>l.major?1:this.minor<l.minor?-1:this.minor>l.minor?1:this.patch<l.patch?-1:this.patch>l.patch?1:0}comparePre(l){if(l instanceof o||(l=new o(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let a=0;do{const f=this.prerelease[a],h=l.prerelease[a];if(e("prerelease compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return i(f,h)}while(++a)}compareBuild(l){l instanceof o||(l=new o(l,this.options));let a=0;do{const f=this.build[a],h=l.build[a];if(e("build compare",a,f,h),f===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(f===void 0)return-1;if(f===h)continue;return i(f,h)}while(++a)}inc(l,a,f){if(l.startsWith("pre")){if(!a&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(a){const h=`-${a}`.match(this.options.loose?n[s.PRERELEASELOOSE]:n[s.PRERELEASE]);if(!h||h[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,f),this.inc("pre",a,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,f),this.inc("pre",a,f);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":{const h=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(a===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(a){let m=[a,h];f===!1&&(m=[a]),i(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return or=o,or}var ar,Ot;function me(){if(Ot)return ar;Ot=1;const e=K();return ar=(r,n,s=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(u){if(!s)return null;throw u}},ar}var ur,Tt;function hs(){if(Tt)return ur;Tt=1;const e=me();return ur=(r,n)=>{const s=e(r,n);return s?s.version:null},ur}var cr,St;function ps(){if(St)return cr;St=1;const e=me();return cr=(r,n)=>{const s=e(r.trim().replace(/^[=v]+/,""),n);return s?s.version:null},cr}var lr,At;function ms(){if(At)return lr;At=1;const e=K();return lr=(r,n,s,u,i)=>{typeof s=="string"&&(i=u,u=s,s=void 0);try{return new e(r instanceof e?r.version:r,s).inc(n,u,i).version}catch{return null}},lr}var fr,Pt;function vs(){if(Pt)return fr;Pt=1;const e=me();return fr=(r,n)=>{const s=e(r,null,!0),u=e(n,null,!0),i=s.compare(u);if(i===0)return null;const o=i>0,c=o?s:u,l=o?u:s,a=!!c.prerelease.length;if(!!l.prerelease.length&&!a){if(!l.patch&&!l.minor)return"major";if(l.compareMain(c)===0)return l.minor&&!l.patch?"minor":"patch"}const h=a?"pre":"";return s.major!==u.major?h+"major":s.minor!==u.minor?h+"minor":s.patch!==u.patch?h+"patch":"prerelease"},fr}var dr,Nt;function gs(){if(Nt)return dr;Nt=1;const e=K();return dr=(r,n)=>new e(r,n).major,dr}var hr,kt;function ys(){if(kt)return hr;kt=1;const e=K();return hr=(r,n)=>new e(r,n).minor,hr}var pr,zt;function _s(){if(zt)return pr;zt=1;const e=K();return pr=(r,n)=>new e(r,n).patch,pr}var mr,Ct;function $s(){if(Ct)return mr;Ct=1;const e=me();return mr=(r,n)=>{const s=e(r,n);return s&&s.prerelease.length?s.prerelease:null},mr}var vr,Lt;function ee(){if(Lt)return vr;Lt=1;const e=K();return vr=(r,n,s)=>new e(r,s).compare(new e(n,s)),vr}var gr,qt;function Es(){if(qt)return gr;qt=1;const e=ee();return gr=(r,n,s)=>e(n,r,s),gr}var yr,jt;function ws(){if(jt)return yr;jt=1;const e=ee();return yr=(r,n)=>e(r,n,!0),yr}var _r,Dt;function Yr(){if(Dt)return _r;Dt=1;const e=K();return _r=(r,n,s)=>{const u=new e(r,s),i=new e(n,s);return u.compare(i)||u.compareBuild(i)},_r}var $r,Ft;function Rs(){if(Ft)return $r;Ft=1;const e=Yr();return $r=(r,n)=>r.sort((s,u)=>e(s,u,n)),$r}var Er,Ut;function bs(){if(Ut)return Er;Ut=1;const e=Yr();return Er=(r,n)=>r.sort((s,u)=>e(u,s,n)),Er}var wr,Mt;function Me(){if(Mt)return wr;Mt=1;const e=ee();return wr=(r,n,s)=>e(r,n,s)>0,wr}var Rr,Gt;function Kr(){if(Gt)return Rr;Gt=1;const e=ee();return Rr=(r,n,s)=>e(r,n,s)<0,Rr}var br,Bt;function On(){if(Bt)return br;Bt=1;const e=ee();return br=(r,n,s)=>e(r,n,s)===0,br}var Ir,Vt;function Tn(){if(Vt)return Ir;Vt=1;const e=ee();return Ir=(r,n,s)=>e(r,n,s)!==0,Ir}var xr,Zt;function Wr(){if(Zt)return xr;Zt=1;const e=ee();return xr=(r,n,s)=>e(r,n,s)>=0,xr}var Or,Xt;function Qr(){if(Xt)return Or;Xt=1;const e=ee();return Or=(r,n,s)=>e(r,n,s)<=0,Or}var Tr,Jt;function Sn(){if(Jt)return Tr;Jt=1;const e=On(),t=Tn(),r=Me(),n=Wr(),s=Kr(),u=Qr();return Tr=(o,c,l,a)=>{switch(c){case"===":return typeof o=="object"&&(o=o.version),typeof l=="object"&&(l=l.version),o===l;case"!==":return typeof o=="object"&&(o=o.version),typeof l=="object"&&(l=l.version),o!==l;case"":case"=":case"==":return e(o,l,a);case"!=":return t(o,l,a);case">":return r(o,l,a);case">=":return n(o,l,a);case"<":return s(o,l,a);case"<=":return u(o,l,a);default:throw new TypeError(`Invalid operator: ${c}`)}},Tr}var Sr,Ht;function Is(){if(Ht)return Sr;Ht=1;const e=K(),t=me(),{safeRe:r,t:n}=Ie();return Sr=(u,i)=>{if(u instanceof e)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;i=i||{};let o=null;if(!i.rtl)o=u.match(i.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const m=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let d;for(;(d=m.exec(u))&&(!o||o.index+o[0].length!==u.length);)(!o||d.index+d[0].length!==o.index+o[0].length)&&(o=d),m.lastIndex=d.index+d[1].length+d[2].length;m.lastIndex=-1}if(o===null)return null;const c=o[2],l=o[3]||"0",a=o[4]||"0",f=i.includePrerelease&&o[5]?`-${o[5]}`:"",h=i.includePrerelease&&o[6]?`+${o[6]}`:"";return t(`${c}.${l}.${a}${f}${h}`,i)},Sr}var Ar,Yt;function xs(){if(Yt)return Ar;Yt=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(r,n)}return this}}return Ar=e,Ar}var Pr,Kt;function re(){if(Kt)return Pr;Kt=1;const e=/\s+/g;class t{constructor($,T){if(T=s(T),$ instanceof t)return $.loose===!!T.loose&&$.includePrerelease===!!T.includePrerelease?$:new t($.raw,T);if($ instanceof u)return this.raw=$.value,this.set=[[$]],this.formatted=void 0,this;if(this.options=T,this.loose=!!T.loose,this.includePrerelease=!!T.includePrerelease,this.raw=$.trim().replace(e," "),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){const I=this.set[0];if(this.set=this.set.filter(S=>!p(S[0])),this.set.length===0)this.set=[I];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&v(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let $=0;$<this.set.length;$++){$>0&&(this.formatted+="||");const T=this.set[$];for(let I=0;I<T.length;I++)I>0&&(this.formatted+=" "),this.formatted+=T[I].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($){const I=((this.options.includePrerelease&&m)|(this.options.loose&&d))+":"+$,S=n.get(I);if(S)return S;const x=this.options.loose,N=x?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];$=$.replace(N,de(this.options.includePrerelease)),i("hyphen replace",$),$=$.replace(c[l.COMPARATORTRIM],a),i("comparator trim",$),$=$.replace(c[l.TILDETRIM],f),i("tilde trim",$),$=$.replace(c[l.CARETTRIM],h),i("caret trim",$);let D=$.split(" ").map(F=>_(F,this.options)).join(" ").split(/\s+/).map(F=>oe(F,this.options));x&&(D=D.filter(F=>(i("loose invalid filter",F,this.options),!!F.match(c[l.COMPARATORLOOSE])))),i("range list",D);const j=new Map,M=D.map(F=>new u(F,this.options));for(const F of M){if(p(F))return[F];j.set(F.value,F)}j.size>1&&j.has("")&&j.delete("");const J=[...j.values()];return n.set(I,J),J}intersects($,T){if(!($ instanceof t))throw new TypeError("a Range is required");return this.set.some(I=>g(I,T)&&$.set.some(S=>g(S,T)&&I.every(x=>S.every(N=>x.intersects(N,T)))))}test($){if(!$)return!1;if(typeof $=="string")try{$=new o($,this.options)}catch{return!1}for(let T=0;T<this.set.length;T++)if(he(this.set[T],$,this.options))return!0;return!1}}Pr=t;const r=xs(),n=new r,s=Hr(),u=Ge(),i=Ue(),o=K(),{safeRe:c,t:l,comparatorTrimReplace:a,tildeTrimReplace:f,caretTrimReplace:h}=Ie(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:d}=Fe(),p=w=>w.value==="<0.0.0-0",v=w=>w.value==="",g=(w,$)=>{let T=!0;const I=w.slice();let S=I.pop();for(;T&&I.length;)T=I.every(x=>S.intersects(x,$)),S=I.pop();return T},_=(w,$)=>(w=w.replace(c[l.BUILD],""),i("comp",w,$),w=U(w,$),i("caret",w),w=C(w,$),i("tildes",w),w=L(w,$),i("xrange",w),w=ie(w,$),i("stars",w),w),y=w=>!w||w.toLowerCase()==="x"||w==="*",C=(w,$)=>w.trim().split(/\s+/).map(T=>q(T,$)).join(" "),q=(w,$)=>{const T=$.loose?c[l.TILDELOOSE]:c[l.TILDE];return w.replace(T,(I,S,x,N,D)=>{i("tilde",w,I,S,x,N,D);let j;return y(S)?j="":y(x)?j=`>=${S}.0.0 <${+S+1}.0.0-0`:y(N)?j=`>=${S}.${x}.0 <${S}.${+x+1}.0-0`:D?(i("replaceTilde pr",D),j=`>=${S}.${x}.${N}-${D} <${S}.${+x+1}.0-0`):j=`>=${S}.${x}.${N} <${S}.${+x+1}.0-0`,i("tilde return",j),j})},U=(w,$)=>w.trim().split(/\s+/).map(T=>V(T,$)).join(" "),V=(w,$)=>{i("caret",w,$);const T=$.loose?c[l.CARETLOOSE]:c[l.CARET],I=$.includePrerelease?"-0":"";return w.replace(T,(S,x,N,D,j)=>{i("caret",w,S,x,N,D,j);let M;return y(x)?M="":y(N)?M=`>=${x}.0.0${I} <${+x+1}.0.0-0`:y(D)?x==="0"?M=`>=${x}.${N}.0${I} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.0${I} <${+x+1}.0.0-0`:j?(i("replaceCaret pr",j),x==="0"?N==="0"?M=`>=${x}.${N}.${D}-${j} <${x}.${N}.${+D+1}-0`:M=`>=${x}.${N}.${D}-${j} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.${D}-${j} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?N==="0"?M=`>=${x}.${N}.${D}${I} <${x}.${N}.${+D+1}-0`:M=`>=${x}.${N}.${D}${I} <${x}.${+N+1}.0-0`:M=`>=${x}.${N}.${D} <${+x+1}.0.0-0`),i("caret return",M),M})},L=(w,$)=>(i("replaceXRanges",w,$),w.split(/\s+/).map(T=>te(T,$)).join(" ")),te=(w,$)=>{w=w.trim();const T=$.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return w.replace(T,(I,S,x,N,D,j)=>{i("xRange",w,I,S,x,N,D,j);const M=y(x),J=M||y(N),F=J||y(D),ne=F;return S==="="&&ne&&(S=""),j=$.includePrerelease?"-0":"",M?S===">"||S==="<"?I="<0.0.0-0":I="*":S&&ne?(J&&(N=0),D=0,S===">"?(S=">=",J?(x=+x+1,N=0,D=0):(N=+N+1,D=0)):S==="<="&&(S="<",J?x=+x+1:N=+N+1),S==="<"&&(j="-0"),I=`${S+x}.${N}.${D}${j}`):J?I=`>=${x}.0.0${j} <${+x+1}.0.0-0`:F&&(I=`>=${x}.${N}.0${j} <${x}.${+N+1}.0-0`),i("xRange return",I),I})},ie=(w,$)=>(i("replaceStars",w,$),w.trim().replace(c[l.STAR],"")),oe=(w,$)=>(i("replaceGTE0",w,$),w.trim().replace(c[$.includePrerelease?l.GTE0PRE:l.GTE0],"")),de=w=>($,T,I,S,x,N,D,j,M,J,F,ne)=>(y(I)?T="":y(S)?T=`>=${I}.0.0${w?"-0":""}`:y(x)?T=`>=${I}.${S}.0${w?"-0":""}`:N?T=`>=${T}`:T=`>=${T}${w?"-0":""}`,y(M)?j="":y(J)?j=`<${+M+1}.0.0-0`:y(F)?j=`<${M}.${+J+1}.0-0`:ne?j=`<=${M}.${J}.${F}-${ne}`:w?j=`<${M}.${J}.${+F+1}-0`:j=`<=${j}`,`${T} ${j}`.trim()),he=(w,$,T)=>{for(let I=0;I<w.length;I++)if(!w[I].test($))return!1;if($.prerelease.length&&!T.includePrerelease){for(let I=0;I<w.length;I++)if(i(w[I].semver),w[I].semver!==u.ANY&&w[I].semver.prerelease.length>0){const S=w[I].semver;if(S.major===$.major&&S.minor===$.minor&&S.patch===$.patch)return!0}return!1}return!0};return Pr}var Nr,Wt;function Ge(){if(Wt)return Nr;Wt=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,f){if(f=r(f),a instanceof t){if(a.loose===!!f.loose)return a;a=a.value}a=a.trim().split(/\s+/).join(" "),i("comparator",a,f),this.options=f,this.loose=!!f.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(a){const f=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],h=a.match(f);if(!h)throw new TypeError(`Invalid comparator: ${a}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new o(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(i("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new o(a,this.options)}catch{return!1}return u(a,this.operator,this.semver,this.options)}intersects(a,f){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(a.value,f).test(this.value):a.operator===""?a.value===""?!0:new c(this.value,f).test(a.semver):(f=r(f),f.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||u(this.semver,"<",a.semver,f)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||u(this.semver,">",a.semver,f)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}Nr=t;const r=Hr(),{safeRe:n,t:s}=Ie(),u=Sn(),i=Ue(),o=K(),c=re();return Nr}var kr,Qt;function Be(){if(Qt)return kr;Qt=1;const e=re();return kr=(r,n,s)=>{try{n=new e(n,s)}catch{return!1}return n.test(r)},kr}var zr,en;function Os(){if(en)return zr;en=1;const e=re();return zr=(r,n)=>new e(r,n).set.map(s=>s.map(u=>u.value).join(" ").trim().split(" ")),zr}var Cr,rn;function Ts(){if(rn)return Cr;rn=1;const e=K(),t=re();return Cr=(n,s,u)=>{let i=null,o=null,c=null;try{c=new t(s,u)}catch{return null}return n.forEach(l=>{c.test(l)&&(!i||o.compare(l)===-1)&&(i=l,o=new e(i,u))}),i},Cr}var Lr,tn;function Ss(){if(tn)return Lr;tn=1;const e=K(),t=re();return Lr=(n,s,u)=>{let i=null,o=null,c=null;try{c=new t(s,u)}catch{return null}return n.forEach(l=>{c.test(l)&&(!i||o.compare(l)===1)&&(i=l,o=new e(i,u))}),i},Lr}var qr,nn;function As(){if(nn)return qr;nn=1;const e=K(),t=re(),r=Me();return qr=(s,u)=>{s=new t(s,u);let i=new e("0.0.0");if(s.test(i)||(i=new e("0.0.0-0"),s.test(i)))return i;i=null;for(let o=0;o<s.set.length;++o){const c=s.set[o];let l=null;c.forEach(a=>{const f=new e(a.semver.version);switch(a.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||r(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),l&&(!i||r(i,l))&&(i=l)}return i&&s.test(i)?i:null},qr}var jr,sn;function Ps(){if(sn)return jr;sn=1;const e=re();return jr=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},jr}var Dr,on;function et(){if(on)return Dr;on=1;const e=K(),t=Ge(),{ANY:r}=t,n=re(),s=Be(),u=Me(),i=Kr(),o=Qr(),c=Wr();return Dr=(a,f,h,m)=>{a=new e(a,m),f=new n(f,m);let d,p,v,g,_;switch(h){case">":d=u,p=o,v=i,g=">",_=">=";break;case"<":d=i,p=c,v=u,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(a,f,m))return!1;for(let y=0;y<f.set.length;++y){const C=f.set[y];let q=null,U=null;if(C.forEach(V=>{V.semver===r&&(V=new t(">=0.0.0")),q=q||V,U=U||V,d(V.semver,q.semver,m)?q=V:v(V.semver,U.semver,m)&&(U=V)}),q.operator===g||q.operator===_||(!U.operator||U.operator===g)&&p(a,U.semver))return!1;if(U.operator===_&&v(a,U.semver))return!1}return!0},Dr}var Fr,an;function Ns(){if(an)return Fr;an=1;const e=et();return Fr=(r,n,s)=>e(r,n,">",s),Fr}var Ur,un;function ks(){if(un)return Ur;un=1;const e=et();return Ur=(r,n,s)=>e(r,n,"<",s),Ur}var Mr,cn;function zs(){if(cn)return Mr;cn=1;const e=re();return Mr=(r,n,s)=>(r=new e(r,s),n=new e(n,s),r.intersects(n,s)),Mr}var Gr,ln;function Cs(){if(ln)return Gr;ln=1;const e=Be(),t=ee();return Gr=(r,n,s)=>{const u=[];let i=null,o=null;const c=r.sort((h,m)=>t(h,m,s));for(const h of c)e(h,n,s)?(o=h,i||(i=h)):(o&&u.push([i,o]),o=null,i=null);i&&u.push([i,null]);const l=[];for(const[h,m]of u)h===m?l.push(h):!m&&h===c[0]?l.push("*"):m?h===c[0]?l.push(`<=${m}`):l.push(`${h} - ${m}`):l.push(`>=${h}`);const a=l.join(" || "),f=typeof n.raw=="string"?n.raw:String(n);return a.length<f.length?a:n},Gr}var Br,fn;function Ls(){if(fn)return Br;fn=1;const e=re(),t=Ge(),{ANY:r}=t,n=Be(),s=ee(),u=(f,h,m={})=>{if(f===h)return!0;f=new e(f,m),h=new e(h,m);let d=!1;e:for(const p of f.set){for(const v of h.set){const g=c(p,v,m);if(d=d||g!==null,g)continue e}if(d)return!1}return!0},i=[new t(">=0.0.0-0")],o=[new t(">=0.0.0")],c=(f,h,m)=>{if(f===h)return!0;if(f.length===1&&f[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;m.includePrerelease?f=i:f=o}if(h.length===1&&h[0].semver===r){if(m.includePrerelease)return!0;h=o}const d=new Set;let p,v;for(const L of f)L.operator===">"||L.operator===">="?p=l(p,L,m):L.operator==="<"||L.operator==="<="?v=a(v,L,m):d.add(L.semver);if(d.size>1)return null;let g;if(p&&v){if(g=s(p.semver,v.semver,m),g>0)return null;if(g===0&&(p.operator!==">="||v.operator!=="<="))return null}for(const L of d){if(p&&!n(L,String(p),m)||v&&!n(L,String(v),m))return null;for(const te of h)if(!n(L,String(te),m))return!1;return!0}let _,y,C,q,U=v&&!m.includePrerelease&&v.semver.prerelease.length?v.semver:!1,V=p&&!m.includePrerelease&&p.semver.prerelease.length?p.semver:!1;U&&U.prerelease.length===1&&v.operator==="<"&&U.prerelease[0]===0&&(U=!1);for(const L of h){if(q=q||L.operator===">"||L.operator===">=",C=C||L.operator==="<"||L.operator==="<=",p){if(V&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===V.major&&L.semver.minor===V.minor&&L.semver.patch===V.patch&&(V=!1),L.operator===">"||L.operator===">="){if(_=l(p,L,m),_===L&&_!==p)return!1}else if(p.operator===">="&&!n(p.semver,String(L),m))return!1}if(v){if(U&&L.semver.prerelease&&L.semver.prerelease.length&&L.semver.major===U.major&&L.semver.minor===U.minor&&L.semver.patch===U.patch&&(U=!1),L.operator==="<"||L.operator==="<="){if(y=a(v,L,m),y===L&&y!==v)return!1}else if(v.operator==="<="&&!n(v.semver,String(L),m))return!1}if(!L.operator&&(v||p)&&g!==0)return!1}return!(p&&C&&!v&&g!==0||v&&q&&!p&&g!==0||V||U)},l=(f,h,m)=>{if(!f)return h;const d=s(f.semver,h.semver,m);return d>0?f:d<0||h.operator===">"&&f.operator===">="?h:f},a=(f,h,m)=>{if(!f)return h;const d=s(f.semver,h.semver,m);return d<0?f:d>0||h.operator==="<"&&f.operator==="<="?h:f};return Br=u,Br}var Vr,dn;function qs(){if(dn)return Vr;dn=1;const e=Ie(),t=Fe(),r=K(),n=xn(),s=me(),u=hs(),i=ps(),o=ms(),c=vs(),l=gs(),a=ys(),f=_s(),h=$s(),m=ee(),d=Es(),p=ws(),v=Yr(),g=Rs(),_=bs(),y=Me(),C=Kr(),q=On(),U=Tn(),V=Wr(),L=Qr(),te=Sn(),ie=Is(),oe=Ge(),de=re(),he=Be(),w=Os(),$=Ts(),T=Ss(),I=As(),S=Ps(),x=et(),N=Ns(),D=ks(),j=zs(),M=Cs(),J=Ls();return Vr={parse:s,valid:u,clean:i,inc:o,diff:c,major:l,minor:a,patch:f,prerelease:h,compare:m,rcompare:d,compareLoose:p,compareBuild:v,sort:g,rsort:_,gt:y,lt:C,eq:q,neq:U,gte:V,lte:L,cmp:te,coerce:ie,Comparator:oe,Range:de,satisfies:he,toComparators:w,maxSatisfying:$,minSatisfying:T,minVersion:I,validRange:S,outside:x,gtr:N,ltr:D,intersects:j,simplifyRange:M,subset:J,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Vr}qs();var De={exports:{}};De.exports;var hn;function js(){return hn||(hn=1,(function(e){const r=(u=0)=>i=>`\x1B[${38+u};5;${i}m`,n=(u=0)=>(i,o,c)=>`\x1B[${38+u};2;${i};${o};${c}m`;function s(){const u=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[o,c]of Object.entries(i)){for(const[l,a]of Object.entries(c))i[l]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},c[l]=i[l],u.set(a[0],a[1]);Object.defineProperty(i,o,{value:c,enumerable:!1})}return Object.defineProperty(i,"codes",{value:u,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(o,c,l)=>o===c&&c===l?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(c/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:o=>{const c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(o.toString(16));if(!c)return[0,0,0];let{colorString:l}=c.groups;l.length===3&&(l=l.split("").map(f=>f+f).join(""));const a=Number.parseInt(l,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:o=>i.rgbToAnsi256(...i.hexToRgb(o)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(De)),De.exports}var Ds=js();const Wi=pe(Ds);function G(e,t,r){function n(o,c){var l;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(l=o._zod).traits??(l.traits=new Set),o._zod.traits.add(e),t(o,c);for(const a in i.prototype)a in o||Object.defineProperty(o,a,{value:i.prototype[a].bind(o)});o._zod.constr=i,o._zod.def=c}const s=r?.Parent??Object;class u extends s{}Object.defineProperty(u,"name",{value:e});function i(o){var c;const l=r?.Parent?new u:this;n(l,o),(c=l._zod).deferred??(c.deferred=[]);for(const a of l._zod.deferred)a();return l}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class be extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Fs={};function le(e){return Fs}function Us(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,s])=>t.indexOf(+n)===-1).map(([n,s])=>s)}function Ms(e,t){return typeof t=="bigint"?t.toString():t}function rt(e){return e==null}function tt(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Z(e,t,r){Object.defineProperty(e,t,{get(){{const n=r();return e[t]=n,n}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Gs(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}const An=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Zr(e){if(pn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(pn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Pn(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ve(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Qi(e,t){if(!Zr(t))throw new Error("Invalid input to extend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Gs(this,"shape",n),n},checks:[]};return Pn(e,r)}function eo(e,t,r){const n=t._zod.def.shape,s={...n};for(const u in n)s[u]=e?new e({type:"optional",innerType:n[u]}):n[u];return Pn(t,{...t._zod.def,shape:s,checks:[]})}function we(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Bs(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function je(e){return typeof e=="string"?e:e?.message}function fe(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const s=je(e.inst?._zod.def?.error?.(e))??je(t?.error?.(e))??je(r.customError?.(e))??je(r.localeError?.(e))??"Invalid input";n.message=s}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function nt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Vs(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const Nn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Ms,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zs=G("$ZodError",Nn),Ve=G("$ZodError",Nn,{Parent:Error});function ro(e,t=r=>r.message){const r={},n=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):n.push(t(s));return{formErrors:n,fieldErrors:r}}function to(e,t){const r=t||function(u){return u.message},n={_errors:[]},s=u=>{for(const i of u.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(o=>s({issues:o}));else if(i.code==="invalid_key")s({issues:i.issues});else if(i.code==="invalid_element")s({issues:i.issues});else if(i.path.length===0)n._errors.push(r(i));else{let o=n,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(r(i))):o[l]=o[l]||{_errors:[]},o=o[l],c++}}};return s(e),n}function Xs(e){const t=[];for(const r of e)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function no(e){const t=[],r=[...e.issues].sort((n,s)=>n.path.length-s.path.length);for(const n of r)t.push(`✖ ${n.message}`),n.path?.length&&t.push(` → at ${Xs(n.path)}`);return t.join(`
2
2
  `)}const Js=e=>(t,r,n,s)=>{const u=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},u);if(i instanceof Promise)throw new be;if(i.issues.length){const o=new(s?.Err??e)(i.issues.map(c=>fe(c,u,le())));throw An(o,s?.callee),o}return i.value},so=Js(Ve),Hs=e=>async(t,r,n,s)=>{const u=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},u);if(i instanceof Promise&&(i=await i),i.issues.length){const o=new(s?.Err??e)(i.issues.map(c=>fe(c,u,le())));throw An(o,s?.callee),o}return i.value},io=Hs(Ve),Ys=e=>(t,r,n)=>{const s=n?{...n,async:!1}:{async:!1},u=t._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new be;return u.issues.length?{success:!1,error:new(e??Zs)(u.issues.map(i=>fe(i,s,le())))}:{success:!0,data:u.value}},Ks=Ys(Ve),Ws=e=>async(t,r,n)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let u=t._zod.run({value:r,issues:[]},s);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(i=>fe(i,s,le())))}:{success:!0,data:u.value}},Qs=Ws(Ve),xe=G("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),ei=G("$ZodCheckMaxLength",(e,t)=>{var r;xe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!rt(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const s=n.value;if(s.length<=t.maximum)return;const i=nt(s);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ri=G("$ZodCheckMinLength",(e,t)=>{var r;xe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!rt(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const s=n.value;if(s.length>=t.minimum)return;const i=nt(s);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ti=G("$ZodCheckLengthEquals",(e,t)=>{var r;xe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const s=n.value;return!rt(s)&&s.length!==void 0}),e._zod.onattach.push(n=>{const s=n._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=n=>{const s=n.value,u=s.length;if(u===t.length)return;const i=nt(s),o=u>t.length;n.issues.push({origin:i,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ni=G("$ZodCheckOverwrite",(e,t)=>{xe.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),si={major:4,minor:0,patch:0},Y=G("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=si;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const s of n)for(const u of s._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,i,o)=>{let c=we(u),l;for(const a of i){if(a._zod.def.when){if(!a._zod.def.when(u))continue}else if(c)continue;const f=u.issues.length,h=a._zod.check(u);if(h instanceof Promise&&o?.async===!1)throw new be;if(l||h instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await h,u.issues.length!==f&&(c||(c=we(u,f)))});else{if(u.issues.length===f)continue;c||(c=we(u,f))}}return l?l.then(()=>u):u};e._zod.run=(u,i)=>{const o=e._zod.parse(u,i);if(o instanceof Promise){if(i.async===!1)throw new be;return o.then(c=>s(c,n,i))}return s(o,n,i)}}e["~standard"]={validate:s=>{try{const u=Ks(e,s);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return Qs(e,s).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),oo=G("$ZodAny",(e,t)=>{Y.init(e,t),e._zod.parse=r=>r}),ao=G("$ZodUnknown",(e,t)=>{Y.init(e,t),e._zod.parse=r=>r}),uo=G("$ZodNever",(e,t)=>{Y.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function mn(e,t,r){e.issues.length&&t.issues.push(...Bs(r,e.issues)),t.value[r]=e.value}const co=G("$ZodArray",(e,t)=>{Y.init(e,t),e._zod.parse=(r,n)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const u=[];for(let i=0;i<s.length;i++){const o=s[i],c=t.element._zod.run({value:o,issues:[]},n);c instanceof Promise?u.push(c.then(l=>mn(l,r,i))):mn(c,r,i)}return u.length?Promise.all(u).then(()=>r):r}});function vn(e,t,r,n){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(u=>fe(u,n,le())))}),t}const lo=G("$ZodUnion",(e,t)=>{Y.init(e,t),Z(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Z(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>tt(n.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let s=!1;const u=[];for(const i of t.options){const o=i._zod.run({value:r.value,issues:[]},n);if(o instanceof Promise)u.push(o),s=!0;else{if(o.issues.length===0)return o;u.push(o)}}return s?Promise.all(u).then(i=>vn(i,r,e,n)):vn(u,r,e,n)}}),fo=G("$ZodIntersection",(e,t)=>{Y.init(e,t),e._zod.parse=(r,n)=>{const s=r.value,u=t.left._zod.run({value:s,issues:[]},n),i=t.right._zod.run({value:s,issues:[]},n);return u instanceof Promise||i instanceof Promise?Promise.all([u,i]).then(([c,l])=>gn(r,c,l)):gn(r,u,i)}});function Xr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Zr(e)&&Zr(t)){const r=Object.keys(t),n=Object.keys(e).filter(u=>r.indexOf(u)!==-1),s={...e,...t};for(const u of n){const i=Xr(e[u],t[u]);if(!i.valid)return{valid:!1,mergeErrorPath:[u,...i.mergeErrorPath]};s[u]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const s=e[n],u=t[n],i=Xr(s,u);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function gn(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),we(e))return e;const n=Xr(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const ho=G("$ZodTransform",(e,t)=>{Y.init(e,t),e._zod.parse=(r,n)=>{const s=t.transform(r.value,r);if(n.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(r.value=i,r));if(s instanceof Promise)throw new be;return r.value=s,r}}),po=G("$ZodOptional",(e,t)=>{Y.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${tt(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(r,n):r.value===void 0?r:t.innerType._zod.run(r,n)}),mo=G("$ZodNullable",(e,t)=>{Y.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${tt(r.source)}|null)$`):void 0}),Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),vo=G("$ZodDefault",(e,t)=>{Y.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(u=>yn(u,t)):yn(s,t)}});function yn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const go=G("$ZodPrefault",(e,t)=>{Y.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),yo=G("$ZodNonOptional",(e,t)=>{Y.init(e,t),Z(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(u=>_n(u,e)):_n(s,e)}});function _n(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const _o=G("$ZodCatch",(e,t)=>{Y.init(e,t),e._zod.optin="optional",Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(u=>(r.value=u.value,u.issues.length&&(r.value=t.catchValue({...r,error:{issues:u.issues.map(i=>fe(i,n,le()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(u=>fe(u,n,le()))},input:r.value}),r.issues=[]),r)}}),$o=G("$ZodPipe",(e,t)=>{Y.init(e,t),Z(e._zod,"values",()=>t.in._zod.values),Z(e._zod,"optin",()=>t.in._zod.optin),Z(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(r,n)=>{const s=t.in._zod.run(r,n);return s instanceof Promise?s.then(u=>$n(u,t,n)):$n(s,t,n)}});function $n(e,t,r){return we(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}const Eo=G("$ZodReadonly",(e,t)=>{Y.init(e,t),Z(e._zod,"propValues",()=>t.innerType._zod.propValues),Z(e._zod,"values",()=>t.innerType._zod.values),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{const s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(En):En(s)}});function En(e){return e.value=Object.freeze(e.value),e}const wo=G("$ZodCustom",(e,t)=>{xe.init(e,t),Y.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,s=t.fn(n);if(s instanceof Promise)return s.then(u=>wn(u,r,n,e));wn(s,r,n,e)}});function wn(e,t,r,n){if(!e){const s={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),t.issues.push(Vs(s))}}class kn{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};return delete n.id,{...n,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function ii(){return new kn}const oi=ii();function Ro(e){return new e({type:"any"})}function bo(e){return new e({type:"unknown"})}function Io(e,t){return new e({type:"never",...ve(t)})}function xo(e,t){return new ei({check:"max_length",...ve(t),maximum:e})}function Oo(e,t){return new ri({check:"min_length",...ve(t),minimum:e})}function To(e,t){return new ti({check:"length_equals",...ve(t),length:e})}function So(e){return new ni({check:"overwrite",tx:e})}function Ao(e,t,r){return new e({type:"array",element:t,...ve(r)})}function Po(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ve(r)})}class Rn{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??oi,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var n;const s=t._zod.def,u={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;const o={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,o);const c=t._zod.toJSONSchema?.();if(c)o.schema=c;else{const f={...r,schemaPath:[...r.schemaPath,t],path:r.path},h=t._zod.parent;if(h)o.ref=h,this.process(h,f),this.seen.get(h).isParent=!0;else{const m=o.schema;switch(s.type){case"string":{const d=m;d.type="string";const{minimum:p,maximum:v,format:g,patterns:_,contentEncoding:y}=t._zod.bag;if(typeof p=="number"&&(d.minLength=p),typeof v=="number"&&(d.maxLength=v),g&&(d.format=u[g]??g,d.format===""&&delete d.format),y&&(d.contentEncoding=y),_&&_.size>0){const C=[..._];C.length===1?d.pattern=C[0].source:C.length>1&&(o.schema.allOf=[...C.map(q=>({...this.target==="draft-7"?{type:"string"}:{},pattern:q.source}))])}break}case"number":{const d=m,{minimum:p,maximum:v,format:g,multipleOf:_,exclusiveMaximum:y,exclusiveMinimum:C}=t._zod.bag;typeof g=="string"&&g.includes("int")?d.type="integer":d.type="number",typeof C=="number"&&(d.exclusiveMinimum=C),typeof p=="number"&&(d.minimum=p,typeof C=="number"&&(C>=p?delete d.minimum:delete d.exclusiveMinimum)),typeof y=="number"&&(d.exclusiveMaximum=y),typeof v=="number"&&(d.maximum=v,typeof y=="number"&&(y<=v?delete d.maximum:delete d.exclusiveMaximum)),typeof _=="number"&&(d.multipleOf=_);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:p,maximum:v}=t._zod.bag;typeof p=="number"&&(d.minItems=p),typeof v=="number"&&(d.maxItems=v),d.type="array",d.items=this.process(s.element,{...f,path:[...f.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const p=s.shape;for(const _ in p)d.properties[_]=this.process(p[_],{...f,path:[...f.path,"properties",_]});const v=new Set(Object.keys(p)),g=new Set([...v].filter(_=>{const y=s.shape[_]._zod;return this.io==="input"?y.optin===void 0:y.optout===void 0}));g.size>0&&(d.required=Array.from(g)),s.catchall?._zod.def.type==="never"?d.additionalProperties=!1:s.catchall?s.catchall&&(d.additionalProperties=this.process(s.catchall,{...f,path:[...f.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=s.options.map((p,v)=>this.process(p,{...f,path:[...f.path,"anyOf",v]}));break}case"intersection":{const d=m,p=this.process(s.left,{...f,path:[...f.path,"allOf",0]}),v=this.process(s.right,{...f,path:[...f.path,"allOf",1]}),g=y=>"allOf"in y&&Object.keys(y).length===1,_=[...g(p)?p.allOf:[p],...g(v)?v.allOf:[v]];d.allOf=_;break}case"tuple":{const d=m;d.type="array";const p=s.items.map((_,y)=>this.process(_,{...f,path:[...f.path,"prefixItems",y]}));if(this.target==="draft-2020-12"?d.prefixItems=p:d.items=p,s.rest){const _=this.process(s.rest,{...f,path:[...f.path,"items"]});this.target==="draft-2020-12"?d.items=_:d.additionalItems=_}s.rest&&(d.items=this.process(s.rest,{...f,path:[...f.path,"items"]}));const{minimum:v,maximum:g}=t._zod.bag;typeof v=="number"&&(d.minItems=v),typeof g=="number"&&(d.maxItems=g);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(s.keyType,{...f,path:[...f.path,"propertyNames"]}),d.additionalProperties=this.process(s.valueType,{...f,path:[...f.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,p=Us(s.entries);p.every(v=>typeof v=="number")&&(d.type="number"),p.every(v=>typeof v=="string")&&(d.type="string"),d.enum=p;break}case"literal":{const d=m,p=[];for(const v of s.values)if(v===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof v=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");p.push(Number(v))}else p.push(v);if(p.length!==0)if(p.length===1){const v=p[0];d.type=v===null?"null":typeof v,d.const=v}else p.every(v=>typeof v=="number")&&(d.type="number"),p.every(v=>typeof v=="string")&&(d.type="string"),p.every(v=>typeof v=="boolean")&&(d.type="string"),p.every(v=>v===null)&&(d.type="null"),d.enum=p;break}case"file":{const d=m,p={type:"string",format:"binary",contentEncoding:"binary"},{minimum:v,maximum:g,mime:_}=t._zod.bag;v!==void 0&&(p.minLength=v),g!==void 0&&(p.maxLength=g),_?_.length===1?(p.contentMediaType=_[0],Object.assign(d,p)):d.anyOf=_.map(y=>({...p,contentMediaType:y})):Object.assign(d,p);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(s.innerType,f);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(s.innerType,f),o.ref=s.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(s.innerType,f),o.ref=s.innerType,m.default=JSON.parse(JSON.stringify(s.defaultValue));break}case"prefault":{this.process(s.innerType,f),o.ref=s.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(s.defaultValue)));break}case"catch":{this.process(s.innerType,f),o.ref=s.innerType;let d;try{d=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,p=t._zod.pattern;if(!p)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=p.source;break}case"pipe":{const d=this.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;this.process(d,f),o.ref=d;break}case"readonly":{this.process(s.innerType,f),o.ref=s.innerType,m.readOnly=!0;break}case"promise":{this.process(s.innerType,f),o.ref=s.innerType;break}case"optional":{this.process(s.innerType,f),o.ref=s.innerType;break}case"lazy":{const d=t._zod.innerType;this.process(d,f),o.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const l=this.metadataRegistry.get(t);return l&&Object.assign(o.schema,l),this.io==="input"&&X(t)&&(delete o.schema.examples,delete o.schema.default),this.io==="input"&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,this.seen.get(t).schema}emit(t,r){const n={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},s=this.seen.get(t);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=a=>{const f=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const p=n.external.registry.get(a[0])?.id,v=n.external.uri??(_=>_);if(p)return{ref:v(p)};const g=a[1].defId??a[1].schema.id??`schema${this.counter++}`;return a[1].defId=g,{defId:g,ref:`${v("__shared")}#/${f}/${g}`}}if(a[1]===s)return{ref:"#"};const m=`#/${f}/`,d=a[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},i=a=>{if(a[1].schema.$ref)return;const f=a[1],{ref:h,defId:m}=u(a);f.def={...f.schema},m&&(f.defId=m);const d=f.schema;for(const p in d)delete d[p];d.$ref=h};if(n.cycles==="throw")for(const a of this.seen.entries()){const f=a[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
3
3
 
4
4
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of this.seen.entries()){const f=a[1];if(t===a[0]){i(a);continue}if(n.external){const m=n.external.registry.get(a[0])?.id;if(t!==a[0]&&m){i(a);continue}}if(this.metadataRegistry.get(a[0])?.id){i(a);continue}if(f.cycle){i(a);continue}if(f.count>1&&n.reused==="ref"){i(a);continue}}const o=(a,f)=>{const h=this.seen.get(a),m=h.def??h.schema,d={...m};if(h.ref===null)return;const p=h.ref;if(h.ref=null,p){o(p,f);const v=this.seen.get(p).schema;v.$ref&&f.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(v)):(Object.assign(m,v),Object.assign(m,d))}h.isParent||this.override({zodSchema:a,jsonSchema:m,path:h.path??[]})};for(const a of[...this.seen.entries()].reverse())o(a[0],{target:this.target});const c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){const a=n.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");c.$id=n.external.uri(a)}Object.assign(c,s.def);const l=n.external?.defs??{};for(const a of this.seen.entries()){const f=a[1];f.def&&f.defId&&(l[f.defId]=f.def)}n.external||Object.keys(l).length>0&&(this.target==="draft-2020-12"?c.$defs=l:c.definitions=l);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}}function No(e,t){if(e instanceof kn){const n=new Rn(t),s={};for(const o of e._idmap.entries()){const[c,l]=o;n.process(l)}const u={},i={registry:e,uri:t?.uri,defs:s};for(const o of e._idmap.entries()){const[c,l]=o;u[c]=n.emit(l,{...t,external:i})}if(Object.keys(s).length>0){const o=n.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[o]:s}}return{schemas:u}}const r=new Rn(t);return r.process(e),r.emit(e,t)}function X(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const s=e._zod.def;switch(s.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return X(s.element,r);case"object":{for(const u in s.shape)if(X(s.shape[u],r))return!0;return!1}case"union":{for(const u of s.options)if(X(u,r))return!0;return!1}case"intersection":return X(s.left,r)||X(s.right,r);case"tuple":{for(const u of s.items)if(X(u,r))return!0;return!!(s.rest&&X(s.rest,r))}case"record":return X(s.keyType,r)||X(s.valueType,r);case"map":return X(s.keyType,r)||X(s.valueType,r);case"set":return X(s.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return X(s.innerType,r);case"lazy":return X(s.getter(),r);case"default":return X(s.innerType,r);case"prefault":return X(s.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return X(s.in,r)||X(s.out,r);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${s.type}`)}function Re(e,t){const r=typeof e;if(r!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(!Re(e[s],t[s]))return!1;return!0}if(r==="object"){if(!e||!t)return e===t;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const i of n)if(!Re(e[i],t[i]))return!1;return!0}return e===t}function Q(e){return encodeURI(ai(e))}function ai(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}const ui={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},ci={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},li={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let fi=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function ce(e,t=Object.create(null),r=fi,n=""){if(e&&typeof e=="object"&&!Array.isArray(e)){const u=e.$id||e.id;if(u){const i=new URL(u,r.href);i.hash.length>1?t[i.href]=e:(i.hash="",n===""?r=i:ce(e,t,r))}}else if(e!==!0&&e!==!1)return t;const s=r.href+(n?"#"+n:"");if(t[s]!==void 0)throw new Error(`Duplicate schema URI "${s}".`);if(t[s]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:s}),e.$ref&&e.__absolute_ref__===void 0){const u=new URL(e.$ref,r.href);u.hash=u.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:u.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){const u=new URL(e.$recursiveRef,r.href);u.hash=u.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:u.href})}if(e.$anchor){const u=new URL("#"+e.$anchor,r.href);t[u.href]=e}for(let u in e){if(li[u])continue;const i=`${n}/${Q(u)}`,o=e[u];if(Array.isArray(o)){if(ui[u]){const c=o.length;for(let l=0;l<c;l++)ce(o[l],t,r,`${i}/${l}`)}}else if(ci[u])for(let c in o)ce(o[c],t,r,`${i}/${Q(c)}`);else ce(o,t,r,i)}return t}const di=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,hi=[0,31,28,31,30,31,30,31,31,30,31,30,31],pi=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,mi=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,vi=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,gi=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,yi=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,_i=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,$i=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ei=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,wi=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Ri=e=>{if(e[0]==='"')return!1;const[t,r,...n]=e.split("@");return!t||!r||n.length!==0||t.length>64||r.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(r)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(t)?!1:r.split(".").every(s=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(s))},bi=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Ii=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,xi=e=>e.length>1&&e.length<80&&(/^P\d+([.,]\d+)?W$/.test(e)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(e)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(e));function se(e){return e.test.bind(e)}const bn={date:zn,time:Cn.bind(void 0,!1),"date-time":Si,duration:xi,uri:Ni,"uri-reference":se(vi),"uri-template":se(gi),url:se(yi),email:Ri,hostname:se(mi),ipv4:se(bi),ipv6:se(Ii),regex:zi,uuid:se(_i),"json-pointer":se($i),"json-pointer-uri-fragment":se(Ei),"relative-json-pointer":se(wi)};function Oi(e){return e%4===0&&(e%100!==0||e%400===0)}function zn(e){const t=e.match(di);if(!t)return!1;const r=+t[1],n=+t[2],s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&Oi(r)?29:hi[n])}function Cn(e,t){const r=t.match(pi);if(!r)return!1;const n=+r[1],s=+r[2],u=+r[3],i=!!r[5];return(n<=23&&s<=59&&u<=59||n==23&&s==59&&u==60)&&(!e||i)}const Ti=/t|\s/i;function Si(e){const t=e.split(Ti);return t.length==2&&zn(t[0])&&Cn(!0,t[1])}const Ai=/\/|:/,Pi=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Ni(e){return Ai.test(e)&&Pi.test(e)}const ki=/[^\\]\\Z/;function zi(e){if(ki.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function Ci(e){let t=0,r=e.length,n=0,s;for(;n<r;)t++,s=e.charCodeAt(n++),s>=55296&&s<=56319&&n<r&&(s=e.charCodeAt(n),(s&64512)==56320&&n++);return t}function B(e,t,r="2019-09",n=ce(t),s=!0,u=null,i="#",o="#",c=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:i,keyword:"false",keywordLocation:i,error:"False boolean schema."}]};const l=typeof e;let a;switch(l){case"boolean":case"number":case"string":a=l;break;case"object":e===null?a="null":Array.isArray(e)?a="array":a="object";break;default:throw new Error(`Instances of "${l}" type are not supported.`)}const{$ref:f,$recursiveRef:h,$recursiveAnchor:m,type:d,const:p,enum:v,required:g,not:_,anyOf:y,allOf:C,oneOf:q,if:U,then:V,else:L,format:te,properties:ie,patternProperties:oe,additionalProperties:de,unevaluatedProperties:he,minProperties:w,maxProperties:$,propertyNames:T,dependentRequired:I,dependentSchemas:S,dependencies:x,prefixItems:N,items:D,additionalItems:j,unevaluatedItems:M,contains:J,minContains:F,maxContains:ne,minItems:Ze,maxItems:Xe,uniqueItems:Ln,minimum:ae,maximum:ue,exclusiveMinimum:ge,exclusiveMaximum:ye,multipleOf:Oe,minLength:Te,maxLength:Se,pattern:st,__absolute_ref__:Ae,__absolute_recursive_ref__:qn}=t,R=[];if(m===!0&&u===null&&(u=t),h==="#"){const A=u===null?n[qn]:u,O=`${o}/$recursiveRef`,z=B(e,u===null?t:u,r,n,s,A,i,O,c);z.valid||R.push({instanceLocation:i,keyword:"$recursiveRef",keywordLocation:O,error:"A subschema had errors."},...z.errors)}if(f!==void 0){const O=n[Ae||f];if(O===void 0){let E=`Unresolved $ref "${f}".`;throw Ae&&Ae!==f&&(E+=` Absolute URI "${Ae}".`),E+=`
@@ -1 +1 @@
1
- import{_ as e,A as d}from"./index-BAM9P4Uc.js";var l={};e(l,{chunkArray:()=>u});const u=(r,n)=>r.reduce((a,o,s)=>{const c=Math.floor(s/n),t=a[c]||[];return a[c]=t.concat([o]),a},[]);var _={};e(_,{Embeddings:()=>h});var h=class{caller;constructor(r){this.caller=new d(r??{})}};
1
+ import{_ as e,A as d}from"./index-Dnm19mgK.js";var l={};e(l,{chunkArray:()=>u});const u=(r,n)=>r.reduce((a,o,s)=>{const c=Math.floor(s/n),t=a[c]||[];return a[c]=t.concat([o]),a},[]);var _={};e(_,{Embeddings:()=>h});var h=class{caller;constructor(r){this.caller=new d(r??{})}};