@activepieces/piece-google-contacts 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/i18n/translation.json +8 -2
- package/src/index.js +40 -40
package/src/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
"use strict";var QU=Object.create;var hs=Object.defineProperty;var eM=Object.getOwnPropertyDescriptor;var tM=Object.getOwnPropertyNames;var rM=Object.getPrototypeOf,nM=Object.prototype.hasOwnProperty;var a=(t,e)=>hs(t,"name",{value:e,configurable:!0});var Ct=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(o){throw r=[o],o}};var z=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Xt=(t,e)=>{for(var r in e)hs(t,r,{get:e[r],enumerable:!0})},jT=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tM(e))!nM.call(t,n)&&n!==r&&hs(t,n,{get:()=>e[n],enumerable:!(o=eM(e,n))||o.enumerable});return t};var xt=(t,e,r)=>(r=t!=null?QU(rM(t)):{},jT(e||!t||!t.__esModule?hs(r,"default",{value:t,enumerable:!0}):r,t)),oM=t=>jT(hs({},"__esModule",{value:!0}),t);var Mw=z((Uw,ff)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},o=new RegExp("^0[0-7]+$","i"),n=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${e}\\.${e}\\.${e}\\.${e}(${i})?$`,"i")};function l(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let P=0,E=-1,x=(h.match(u.zoneIndex)||[])[0],k,L;for(x&&(x=x.substring(1),h=h.replace(/%.+$/,""));(E=h.indexOf(":",E+1))>=0;)P++;if(h.substr(0,2)==="::"&&P--,h.substr(-2,2)==="::"&&P--,P>_)return null;for(L=_-P,k=":";L--;)k+="0:";return h=h.replace("::",k),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let Y=h.split(":"),H=[];for(let X=0;X<Y.length;X++)H.push(parseInt(Y[X],16));return H})(),{parts:_,zoneId:x}}a(l,"expandIPv6");function p(h,_,P,E){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,k;for(;E>0;){if(k=P-E,k<0&&(k=0),h[x]>>k!==_[x]>>k)return!1;E-=P,x+=1}return!0}a(p,"matchCIDR");function f(h){if(n.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function y(h,_){for(;h.length<_;)h=`0${h}`;return h}a(y,"padPart");let m={};m.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,E;for(P=0;P<_.length;P++)if(E=_[P],!(0<=E&&E<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,P){let E;if(P===void 0&&(E=_,_=E[0],P=E[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,E={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,k,L;for(x=3;x>=0;x-=1)if(k=this.octets[x],k in E){if(L=E[k],P&&L!==0)return null;L!==8&&(P=!0),_+=L}else return null;return 32-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),m.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),E=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],k=0;for(;k<4;)x.push(parseInt(P[k],10)|parseInt(E[k],10)^255),k++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(h){return this.parser(h)!==null},m.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(h){return!!(m.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(h)||!_?!1:m.IPv4.isValidFourPartDecimal(_[1])},m.IPv4.networkAddressFromCIDR=function(h){let _,P,E,x,k;try{for(_=this.parseCIDR(h),E=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],P=0;P<4;)x.push(parseInt(E[P],10)&parseInt(k[P],10)),P++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},m.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let P=parseInt(_[2]);if(P>=0&&P<=32){let E=[this.parse(_[1]),P];return Object.defineProperty(E,"toString",{value:a(function(){return this.join("/")},"value")}),E}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,P,E;if(_=h.match(r.fourOctet))return(function(){let x=_.slice(1,6),k=[];for(let L=0;L<x.length;L++)P=x[L],k.push(f(P));return k})();if(_=h.match(r.longValue)){if(E=f(_[1]),E>4294967295||E<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],k;for(k=0;k<=24;k+=8)x.push(E>>k&255);return x})().reverse()}else return(_=h.match(r.twoOctet))?(function(){let x=_.slice(1,4),k=[];if(E=f(x[1]),E>16777215||E<0)throw new Error("ipaddr: address outside defined range");return k.push(f(x[0])),k.push(E>>16&255),k.push(E>>8&255),k.push(E&255),k})():(_=h.match(r.threeOctet))?(function(){let x=_.slice(1,5),k=[];if(E=f(x[2]),E>65535||E<0)throw new Error("ipaddr: address outside defined range");return k.push(f(x[0])),k.push(f(x[1])),k.push(E>>8&255),k.push(E&255),k})():null},m.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],P=0,E=Math.floor(h/8);for(;P<E;)_[P]=255,P++;return E<4&&(_[E]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,P){let E,x;if(_.length===16)for(this.parts=[],E=0;E<=14;E+=2)this.parts.push(_[E]<<8|_[E+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(E=0;E<this.parts.length;E++)if(x=this.parts[E],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,P){let E;if(P===void 0&&(E=_,_=E[0],P=E[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,E={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},x,k;for(let L=7;L>=0;L-=1)if(x=this.parts[L],x in E){if(k=E[x],P&&k!==0)return null;k!==16&&(P=!0),_+=k}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,P=[],E=this.parts;for(let x=0;x<E.length;x++)_=E[x],P.push(_>>8),P.push(_&255);return P},h.prototype.toFixedLengthString=function(){let _=(function(){let E=[];for(let x=0;x<this.parts.length;x++)E.push(y(this.parts[x].toString(16),4));return E}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),P=_[0],E=_[1];return new m.IPv4([P>>8,P&255,E>>8,E&255])},h.prototype.toNormalizedString=function(){let _=(function(){let E=[];for(let x=0;x<this.parts.length;x++)E.push(this.parts[x].toString(16));return E}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),E=0,x=-1,k;for(;k=_.exec(P);)k[0].length>x&&(E=k.index,x=k[0].length);return x<0?P:`${P.substring(0,E)}::${P.substring(E+x)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),E=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],k=0;for(;k<16;)x.push(parseInt(P[k],10)|parseInt(E[k],10)^255),k++;return new this(x)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},m.IPv6.isIPv6=function(h){return this.parser(h)!==null},m.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(h){let _,P,E,x,k;try{for(_=this.parseCIDR(h),E=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],P=0;P<16;)x.push(parseInt(E[P],10)&parseInt(k[P],10)),P++;return new this(x)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},m.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},m.IPv6.parseCIDR=function(h){let _,P,E;if((P=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(P[2]),_>=0&&_<=128))return E=[this.parse(P[1]),_],Object.defineProperty(E,"toString",{value:a(function(){return this.join("/")},"value")}),E;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,P,E,x,k,L;if(E=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${E[1]}`);if(u.native.test(h))return l(h,8);if((E=h.match(u.transitional))&&(L=E[6]||"",_=E[1],E[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+L,6),_.parts)){for(k=[parseInt(E[2]),parseInt(E[3]),parseInt(E[4]),parseInt(E[5])],P=0;P<k.length;P++)if(x=k[P],!(0<=x&&x<=255))return null;return _.parts.push(k[0]<<8|k[1]),_.parts.push(k[2]<<8|k[3]),{parts:_.parts,zoneId:_.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,E=Math.floor(h/8);for(;P<E;)_[P]=255,P++;return E<16&&(_[E]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.fromByteArray=function(h){let _=h.length;if(_===4)return new m.IPv4(h);if(_===16)return new m.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(h){return m.IPv6.isValid(h)||m.IPv4.isValid(h)},m.isValidCIDR=function(h){return m.IPv6.isValidCIDR(h)||m.IPv4.isValidCIDR(h)},m.parse=function(h){if(m.IPv6.isValid(h))return m.IPv6.parse(h);if(m.IPv4.isValid(h))return m.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(h){try{return m.IPv6.parseCIDR(h)}catch{try{return m.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},m.subnetMatch=function(h,_,P){let E,x,k,L;P==null&&(P="unicast");for(x in _)if(Object.prototype.hasOwnProperty.call(_,x)){for(k=_[x],k[0]&&!(k[0]instanceof Array)&&(k=[k]),E=0;E<k.length;E++)if(L=k[E],h.kind()===L[0].kind()&&h.match.apply(h,L))return x}return P},typeof ff<"u"&&ff.exports?ff.exports=m:t.ipaddr=m})(Uw)});var HI=z((nne,VI)=>{var GI=require("stream").Stream,YF=require("util");VI.exports=Kr;function Kr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Kr,"DelayedStream");YF.inherits(Kr,GI);Kr.create=function(t,e){var r=new this;e=e||{};for(var o in e)r[o]=e[o];r.source=t;var n=t.emit;return t.emit=function(){return r._handleEmit(arguments),n.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Kr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Kr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kr.prototype.pause=function(){this.source.pause()};Kr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Kr.prototype.pipe=function(){var t=GI.prototype.pipe.apply(this,arguments);return this.resume(),t};Kr.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Kr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var JI=z((ine,KI)=>{var QF=require("util"),WI=require("stream").Stream,ZI=HI();KI.exports=yt;function yt(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}a(yt,"CombinedStream");QF.inherits(yt,WI);yt.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};yt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};yt.prototype.append=function(t){var e=yt.isStreamLike(t);if(e){if(!(t instanceof ZI)){var r=ZI.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};yt.prototype.pipe=function(t,e){return WI.prototype.pipe.call(this,t,e),this.resume(),t};yt.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};yt.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var o=yt.isStreamLike(r);o&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};yt.prototype._pipeNext=function(t){this._currentStream=t;var e=yt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};yt.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};yt.prototype.write=function(t){this.emit("data",t)};yt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};yt.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};yt.prototype.end=function(){this._reset(),this.emit("end")};yt.prototype.destroy=function(){this._reset(),this.emit("close")};yt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};yt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};yt.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};yt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var YI=z((sne,XI)=>{"use strict";XI.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var tC=z(rr=>{"use strict";var vf=YI(),eB=require("path").extname,QI=/^\s*([^;\s]*)(?:;|\s|$)/,tB=/^text\//i;rr.charset=eC;rr.charsets={lookup:eC};rr.contentType=rB;rr.extension=nB;rr.extensions=Object.create(null);rr.lookup=oB;rr.types=Object.create(null);iB(rr.extensions,rr.types);function eC(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&vf[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&tB.test(e[1])?"UTF-8":!1}a(eC,"charset");function rB(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?rr.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=rr.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}a(rB,"contentType");function nB(t){if(!t||typeof t!="string")return!1;var e=QI.exec(t),r=e&&rr.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(nB,"extension");function oB(t){if(!t||typeof t!="string")return!1;var e=eB("x."+t).toLowerCase().substr(1);return e&&rr.types[e]||!1}a(oB,"lookup");function iB(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(vf).forEach(a(function(n){var i=vf[n],s=i.extensions;if(!(!s||!s.length)){t[n]=s;for(var u=0;u<s.length;u++){var l=s[u];if(e[l]){var p=r.indexOf(vf[e[l]].source),f=r.indexOf(i.source);if(e[l]!=="application/octet-stream"&&(p>f||p===f&&e[l].substr(0,12)==="application/"))continue}e[l]=n}}},"forEachMimeType"))}a(iB,"populateMaps")});var nC=z((lne,rC)=>{rC.exports=aB;function aB(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}a(aB,"defer")});var fb=z((pne,iC)=>{var oC=nC();iC.exports=sB;function sB(t){var e=!1;return oC(function(){e=!0}),a(function(o,n){e?t(o,n):oC(a(function(){t(o,n)},"nextTick_callback"))},"async_callback")}a(sB,"async")});var mb=z((mne,aC)=>{aC.exports=cB;function cB(t){Object.keys(t.jobs).forEach(uB.bind(t)),t.jobs={}}a(cB,"abort");function uB(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}a(uB,"clean")});var hb=z((gne,cC)=>{var sC=fb(),lB=mb();cC.exports=dB;function dB(t,e,r,o){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=pB(e,n,t[n],function(i,s){n in r.jobs&&(delete r.jobs[n],i?lB(r):r.results[n]=s,o(i,r.results))})}a(dB,"iterate");function pB(t,e,r,o){var n;return t.length==2?n=t(r,sC(o)):n=t(r,e,sC(o)),n}a(pB,"runJob")});var gb=z((_ne,uC)=>{uC.exports=fB;function fB(t,e){var r=!Array.isArray(t),o={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&o.keyedList.sort(r?e:function(n,i){return e(t[n],t[i])}),o}a(fB,"state")});var yb=z((bne,lC)=>{var mB=mb(),hB=fb();lC.exports=gB;function gB(t){Object.keys(this.jobs).length&&(this.index=this.size,mB(this),hB(t)(null,this.results))}a(gB,"terminator")});var pC=z((Pne,dC)=>{var yB=hb(),_B=gb(),vB=yb();dC.exports=bB;function bB(t,e,r){for(var o=_B(t);o.index<(o.keyedList||t).length;)yB(t,e,o,function(n,i){if(n){r(n,i);return}if(Object.keys(o.jobs).length===0){r(null,o.results);return}}),o.index++;return vB.bind(o,r)}a(bB,"parallel")});var _b=z((Tne,bf)=>{var fC=hb(),SB=gb(),PB=yb();bf.exports=EB;bf.exports.ascending=mC;bf.exports.descending=TB;function EB(t,e,r,o){var n=SB(t,r);return fC(t,e,n,a(function i(s,u){if(s){o(s,u);return}if(n.index++,n.index<(n.keyedList||t).length){fC(t,e,n,i);return}o(null,n.results)},"iteratorHandler")),PB.bind(n,o)}a(EB,"serialOrdered");function mC(t,e){return t<e?-1:t>e?1:0}a(mC,"ascending");function TB(t,e){return-1*mC(t,e)}a(TB,"descending")});var gC=z((Ane,hC)=>{var xB=_b();hC.exports=AB;function AB(t,e,r){return xB(t,e,null,r)}a(AB,"serial")});var _C=z((Ine,yC)=>{yC.exports={parallel:pC(),serial:gC(),serialOrdered:_b()}});var vb=z((Cne,vC)=>{"use strict";vC.exports=Object});var SC=z((Rne,bC)=>{"use strict";bC.exports=Error});var EC=z((One,PC)=>{"use strict";PC.exports=EvalError});var xC=z((kne,TC)=>{"use strict";TC.exports=RangeError});var wC=z((Nne,AC)=>{"use strict";AC.exports=ReferenceError});var CC=z(($ne,IC)=>{"use strict";IC.exports=SyntaxError});var To=z((zne,RC)=>{"use strict";RC.exports=TypeError});var kC=z((Dne,OC)=>{"use strict";OC.exports=URIError});var $C=z((Une,NC)=>{"use strict";NC.exports=Math.abs});var DC=z((Mne,zC)=>{"use strict";zC.exports=Math.floor});var MC=z((Lne,UC)=>{"use strict";UC.exports=Math.max});var jC=z((jne,LC)=>{"use strict";LC.exports=Math.min});var BC=z((Fne,FC)=>{"use strict";FC.exports=Math.pow});var GC=z((Bne,qC)=>{"use strict";qC.exports=Math.round});var HC=z((qne,VC)=>{"use strict";VC.exports=Number.isNaN||a(function(e){return e!==e},"isNaN")});var WC=z((Vne,ZC)=>{"use strict";var wB=HC();ZC.exports=a(function(e){return wB(e)||e===0?e:e<0?-1:1},"sign")});var JC=z((Zne,KC)=>{"use strict";KC.exports=Object.getOwnPropertyDescriptor});var bb=z((Wne,XC)=>{"use strict";var Sf=JC();if(Sf)try{Sf([],"length")}catch{Sf=null}XC.exports=Sf});var QC=z((Kne,YC)=>{"use strict";var Pf=Object.defineProperty||!1;if(Pf)try{Pf({},"a",{value:1})}catch{Pf=!1}YC.exports=Pf});var Sb=z((Jne,eR)=>{"use strict";eR.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==n||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var nR=z((Yne,rR)=>{"use strict";var tR=typeof Symbol<"u"&&Symbol,IB=Sb();rR.exports=a(function(){return typeof tR!="function"||typeof Symbol!="function"||typeof tR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IB()},"hasNativeSymbols")});var Pb=z((eoe,oR)=>{"use strict";oR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Eb=z((toe,iR)=>{"use strict";var CB=vb();iR.exports=CB.getPrototypeOf||null});var cR=z((roe,sR)=>{"use strict";var RB="Function.prototype.bind called on incompatible ",OB=Object.prototype.toString,kB=Math.max,NB="[object Function]",aR=a(function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},"concatty"),$B=a(function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},"slicy"),zB=a(function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r},"joiny");sR.exports=a(function(e){var r=this;if(typeof r!="function"||OB.apply(r)!==NB)throw new TypeError(RB+r);for(var o=$B(arguments,1),n,i=a(function(){if(this instanceof n){var f=r.apply(this,aR(o,arguments));return Object(f)===f?f:this}return r.apply(e,aR(o,arguments))},"binder"),s=kB(0,r.length-o.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(n=Function("binder","return function ("+zB(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=a(function(){},"Empty");p.prototype=r.prototype,n.prototype=new p,p.prototype=null}return n},"bind")});var wa=z((ooe,uR)=>{"use strict";var DB=cR();uR.exports=Function.prototype.bind||DB});var Ef=z((ioe,lR)=>{"use strict";lR.exports=Function.prototype.call});var Tb=z((aoe,dR)=>{"use strict";dR.exports=Function.prototype.apply});var fR=z((soe,pR)=>{"use strict";pR.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var hR=z((coe,mR)=>{"use strict";var UB=wa(),MB=Tb(),LB=Ef(),jB=fR();mR.exports=jB||UB.call(LB,MB)});var xb=z((uoe,gR)=>{"use strict";var FB=wa(),BB=To(),qB=Ef(),GB=hR();gR.exports=a(function(e){if(e.length<1||typeof e[0]!="function")throw new BB("a function is required");return GB(FB,qB,e)},"callBindBasic")});var PR=z((doe,SR)=>{"use strict";var VB=xb(),yR=bb(),vR;try{vR=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Ab=!!vR&&yR&&yR(Object.prototype,"__proto__"),bR=Object,_R=bR.getPrototypeOf;SR.exports=Ab&&typeof Ab.get=="function"?VB([Ab.get]):typeof _R=="function"?a(function(e){return _R(e==null?e:bR(e))},"getDunder"):!1});var wR=z((foe,AR)=>{"use strict";var ER=Pb(),TR=Eb(),xR=PR();AR.exports=ER?a(function(e){return ER(e)},"getProto"):TR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return TR(e)},"getProto"):xR?a(function(e){return xR(e)},"getProto"):null});var wb=z((hoe,IR)=>{"use strict";var HB=Function.prototype.call,ZB=Object.prototype.hasOwnProperty,WB=wa();IR.exports=WB.call(HB,ZB)});var vu=z((goe,$R)=>{"use strict";var Be,KB=vb(),JB=SC(),XB=EC(),YB=xC(),QB=wC(),Oa=CC(),Ra=To(),eq=kC(),tq=$C(),rq=DC(),nq=MC(),oq=jC(),iq=BC(),aq=GC(),sq=WC(),kR=Function,Ib=a(function(t){try{return kR('"use strict"; return ('+t+").constructor;")()}catch{}},"getEvalledConstructor"),gu=bb(),cq=QC(),Cb=a(function(){throw new Ra},"throwTypeError"),uq=gu?(function(){try{return arguments.callee,Cb}catch{try{return gu(arguments,"callee").get}catch{return Cb}}})():Cb,Ia=nR()(),Nt=wR(),lq=Eb(),dq=Pb(),NR=Tb(),yu=Ef(),Ca={},pq=typeof Uint8Array>"u"||!Nt?Be:Nt(Uint8Array),mi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":Ia&&Nt?Nt([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":Ca,"%AsyncGenerator%":Ca,"%AsyncGeneratorFunction%":Ca,"%AsyncIteratorPrototype%":Ca,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JB,"%eval%":eval,"%EvalError%":XB,"%Float16Array%":typeof Float16Array>"u"?Be:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":kR,"%GeneratorFunction%":Ca,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ia&&Nt?Nt(Nt([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ia||!Nt?Be:Nt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KB,"%Object.getOwnPropertyDescriptor%":gu,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":YB,"%ReferenceError%":QB,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ia||!Nt?Be:Nt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ia&&Nt?Nt(""[Symbol.iterator]()):Be,"%Symbol%":Ia?Symbol:Be,"%SyntaxError%":Oa,"%ThrowTypeError%":uq,"%TypedArray%":pq,"%TypeError%":Ra,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":eq,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet,"%Function.prototype.call%":yu,"%Function.prototype.apply%":NR,"%Object.defineProperty%":cq,"%Object.getPrototypeOf%":lq,"%Math.abs%":tq,"%Math.floor%":rq,"%Math.max%":nq,"%Math.min%":oq,"%Math.pow%":iq,"%Math.round%":aq,"%Math.sign%":sq,"%Reflect.getPrototypeOf%":dq};if(Nt)try{null.error}catch(t){CR=Nt(Nt(t)),mi["%Error.prototype%"]=CR}var CR,fq=a(function t(e){var r;if(e==="%AsyncFunction%")r=Ib("async function () {}");else if(e==="%GeneratorFunction%")r=Ib("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ib("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&Nt&&(r=Nt(n.prototype))}return mi[e]=r,r},"doEval"),RR={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_u=wa(),Tf=wb(),mq=_u.call(yu,Array.prototype.concat),hq=_u.call(NR,Array.prototype.splice),OR=_u.call(yu,String.prototype.replace),xf=_u.call(yu,String.prototype.slice),gq=_u.call(yu,RegExp.prototype.exec),yq=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_q=/\\(\\)?/g,vq=a(function(e){var r=xf(e,0,1),o=xf(e,-1);if(r==="%"&&o!=="%")throw new Oa("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Oa("invalid intrinsic syntax, expected opening `%`");var n=[];return OR(e,yq,function(i,s,u,l){n[n.length]=u?OR(l,_q,"$1"):s||i}),n},"stringToPath"),bq=a(function(e,r){var o=e,n;if(Tf(RR,o)&&(n=RR[o],o="%"+n[0]+"%"),Tf(mi,o)){var i=mi[o];if(i===Ca&&(i=fq(o)),typeof i>"u"&&!r)throw new Ra("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Oa("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");$R.exports=a(function(e,r){if(typeof e!="string"||e.length===0)throw new Ra("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ra('"allowMissing" argument must be a boolean');if(gq(/^%?[^%]*%?$/,e)===null)throw new Oa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=vq(e),n=o.length>0?o[0]:"",i=bq("%"+n+"%",r),s=i.name,u=i.value,l=!1,p=i.alias;p&&(n=p[0],hq(o,mq([0,1],p)));for(var f=1,y=!0;f<o.length;f+=1){var m=o[f],h=xf(m,0,1),_=xf(m,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new Oa("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),n+="."+m,s="%"+n+"%",Tf(mi,s))u=mi[s];else if(u!=null){if(!(m in u)){if(!r)throw new Ra("base intrinsic for "+e+" exists, but the property is not available.");return}if(gu&&f+1>=o.length){var P=gu(u,m);y=!!P,y&&"get"in P&&!("originalValue"in P.get)?u=P.get:u=u[m]}else y=Tf(u,m),u=u[m];y&&!l&&(mi[s]=u)}}return u},"GetIntrinsic")});var DR=z((_oe,zR)=>{"use strict";var Sq=Sb();zR.exports=a(function(){return Sq()&&!!Symbol.toStringTag},"hasToStringTagShams")});var LR=z((boe,MR)=>{"use strict";var Pq=vu(),UR=Pq("%Object.defineProperty%",!0),Eq=DR()(),Tq=wb(),xq=To(),Af=Eq?Symbol.toStringTag:null;MR.exports=a(function(e,r){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new xq("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Af&&(o||!Tq(e,Af))&&(UR?UR(e,Af,{configurable:!n,enumerable:!1,value:r,writable:!1}):e[Af]=r)},"setToStringTag")});var FR=z((Poe,jR)=>{"use strict";var Aq=Function.prototype.call,wq=Object.prototype.hasOwnProperty,Iq=wa();jR.exports=Iq.call(Aq,wq)});var qR=z((Eoe,BR)=>{"use strict";BR.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var HR=z((Toe,VR)=>{"use strict";var Nb=JI(),Cq=require("util"),Rb=require("path"),Rq=require("http"),Oq=require("https"),kq=require("url").parse,Nq=require("fs"),$q=require("stream").Stream,zq=require("crypto"),Ob=tC(),Dq=_C(),Uq=LR(),xo=FR(),kb=qR();function GR(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(GR,"escapeHeaderParam");function We(t){if(!(this instanceof We))return new We(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Nb.call(this),t=t||{};for(var e in t)this[e]=t[e]}a(We,"FormData");Cq.inherits(We,Nb);We.LINE_BREAK=`\r
|
|
2
|
-
`;We.DEFAULT_CONTENT_TYPE="application/octet-stream";We.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var o=Nb.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(t,e,r),i=this._multiPartFooter();o(n),o(e),o(i),this._trackLength(n,e,r)};We.prototype._trackLength=function(t,e,r){var o=0;r.knownLength!=null?o+=Number(r.knownLength):Buffer.isBuffer(e)?o=e.length:typeof e=="string"&&(o=Buffer.byteLength(e)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(t)+We.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&xo(e,"httpVersion"))&&!(e instanceof $q))&&(r.knownLength||this._valuesToMeasure.push(e))};We.prototype._lengthRetriever=function(t,e){xo(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):Nq.stat(t.path,function(r,o){if(r){e(r);return}var n=o.size-(t.start?t.start:0);e(null,n)}):xo(t,"httpVersion")?e(null,Number(t.headers["content-length"])):xo(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};We.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var o=this._getContentDisposition(e,r),n=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+GR(t)+'"'].concat(o||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&kb(s,r.header);var u;for(var l in s)if(xo(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=l+": "+u.join("; ")+We.LINE_BREAK)}return"--"+this.getBoundary()+We.LINE_BREAK+i+We.LINE_BREAK};We.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=Rb.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=Rb.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&xo(t,"httpVersion")&&(r=Rb.basename(t.client._httpMessage.path||"")),r)return'filename="'+GR(r)+'"'};We.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Ob.lookup(t.name)),!r&&t&&t.path&&(r=Ob.lookup(t.path)),!r&&t&&t.readable&&xo(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Ob.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=We.DEFAULT_CONTENT_TYPE),r};We.prototype._multiPartFooter=function(){return function(t){var e=We.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};We.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+We.LINE_BREAK};We.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)xo(t,e)&&(r[e.toLowerCase()]=t[e]);return r};We.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};We.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};We.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,o=this._streams.length;r<o;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(We.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};We.prototype._generateBoundary=function(){this._boundary="--------------------------"+zq.randomBytes(12).toString("hex")};We.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};We.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};We.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}Dq.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,o){if(r){t(r);return}o.forEach(function(n){e+=n}),t(null,e)})};We.prototype.submit=function(t,e){var r,o,n={method:"post"};return typeof t=="string"?(t=kq(t),o=kb({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},n)):(o=kb(t,n),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(t.headers),o.protocol==="https:"?r=Oq.request(o):r=Rq.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var u,l=a(function(p,f){return r.removeListener("error",l),r.removeListener("response",u),e.call(this,p,f)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};We.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};We.prototype.toString=function(){return"[object FormData]"};Uq(We.prototype,"FormData");VR.exports=We});var Pu=z((Yoe,nO)=>{"use strict";var wf=Object.prototype.hasOwnProperty,rO=Object.prototype.toString,JR=Object.defineProperty,XR=Object.getOwnPropertyDescriptor,YR=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):rO.call(e)==="[object Array]"},"isArray"),QR=a(function(e){if(!e||rO.call(e)!=="[object Object]")return!1;var r=wf.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&wf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;var n;for(n in e);return typeof n>"u"||wf.call(e,n)},"isPlainObject"),eO=a(function(e,r){JR&&r.name==="__proto__"?JR(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),tO=a(function(e,r){if(r==="__proto__")if(wf.call(e,r)){if(XR)return XR(e,r).value}else return;return e[r]},"getProperty");nO.exports=a(function t(){var e,r,o,n,i,s,u=arguments[0],l=1,p=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(e=arguments[l],e!=null)for(r in e)o=tO(u,r),n=tO(e,r),u!==n&&(f&&n&&(QR(n)||(i=YR(n)))?(i?(i=!1,s=o&&YR(o)?o:[]):s=o&&QR(o)?o:{},eO(u,{name:r,newValue:t(f,s,n)})):typeof n<"u"&&eO(u,{name:r,newValue:n}));return u},"extend")});var oO=z((eie,a4)=>{a4.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var aO=z((tie,iO)=>{"use strict";var s4=oO();iO.exports={pkg:s4}});var Mb=z(Nr=>{"use strict";var cO=Nr&&Nr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.GaxiosError=Nr.GAXIOS_ERROR_SYMBOL=void 0;Nr.defaultErrorRedactor=uO;var sO=cO(Pu()),c4=cO(aO()),Db=c4.default.pkg;Nr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${Db.name}-gaxios-error`);var Ub=class t extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Nr.GAXIOS_ERROR_SYMBOL]=Db.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&Nr.GAXIOS_ERROR_SYMBOL in e&&e[Nr.GAXIOS_ERROR_SYMBOL]===Db.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,r,o,n){if(super(e,{cause:n}),this.config=r,this.response=o,this.error=n instanceof Error?n:void 0,this.config=(0,sO.default)(!0,{},r),this.response&&(this.response.config=(0,sO.default)(!0,{},this.response.config)),this.response){try{this.response.data=u4(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}n instanceof DOMException?this.code=n.name:n&&typeof n=="object"&&"code"in n&&(typeof n.code=="string"||typeof n.code=="number")&&(this.code=n.code)}static extractAPIErrorFromResponse(e,r="The request failed"){let o=r;if(typeof e.data=="string"&&(o=e.data),e.data&&typeof e.data=="object"&&"error"in e.data&&e.data.error&&!e.ok){if(typeof e.data.error=="string")return{message:e.data.error,code:e.status,status:e.statusText};if(typeof e.data.error=="object"){o="message"in e.data.error&&typeof e.data.error.message=="string"?e.data.error.message:o;let n="status"in e.data.error&&typeof e.data.error.status=="string"?e.data.error.status:e.statusText,i="code"in e.data.error&&typeof e.data.error.code=="number"?e.data.error.code:e.status;if("errors"in e.data.error&&Array.isArray(e.data.error.errors)){let s=[];for(let u of e.data.error.errors)typeof u=="object"&&"message"in u&&typeof u.message=="string"&&s.push(u.message);return Object.assign({message:s.join(`
|
|
3
|
-
`)||o,code:i,status:n},e.data.error)}return Object.assign({message:o,code:i,status:n},e.data.error)}}return{message:o,code:e.status,status:e.statusText}}};Nr.GaxiosError=Ub;function u4(t,e){switch(t){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}a(u4,"translateData");function uO(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function r(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,e)})}a(r,"redactHeaders");function o(i,s){if(typeof i=="object"&&i!==null&&typeof i[s]=="string"){let u=i[s];(/grant_type=/i.test(u)||/assertion=/i.test(u)||/secret/i.test(u))&&(i[s]=e)}}a(o,"redactString");function n(i){!i||typeof i!="object"||(i instanceof FormData||i instanceof URLSearchParams||"forEach"in i&&"set"in i?i.forEach((s,u)=>{(["grant_type","assertion"].includes(u)||/secret/.test(u))&&i.set(u,e)}):("grant_type"in i&&(i.grant_type=e),"assertion"in i&&(i.assertion=e),"client_secret"in i&&(i.client_secret=e)))}return a(n,"redactObject"),t.config&&(r(t.config.headers),o(t.config,"data"),n(t.config.data),o(t.config,"body"),n(t.config.body),t.config.url.searchParams.has("token")&&t.config.url.searchParams.set("token",e),t.config.url.searchParams.has("client_secret")&&t.config.url.searchParams.set("client_secret",e)),t.response&&(uO({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),n(t.response.data))),t}a(uO,"defaultErrorRedactor")});var dO=z(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.getRetryConfig=l4;async function l4(t){let e=lO(t);if(!t||!t.config||!e&&!t.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let r=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||r,t.config.retryConfig=e,!await(e.shouldRetry||d4)(t))return{shouldRetry:!1,config:t.config};let n=p4(e);t.config.retryConfig.currentRetryAttempt+=1;let i=e.retryBackoff?e.retryBackoff(t,n):new Promise(s=>{setTimeout(s,n)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await i,{shouldRetry:!0,config:t.config}}a(l4,"getRetryConfig");function d4(t){let e=lO(t);if(t.config.signal?.aborted&&t.code!=="TimeoutError"||t.code==="AbortError"||!e||e.retry===0||!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries||!e.httpMethodsToRetry||!e.httpMethodsToRetry.includes(t.config.method?.toUpperCase()||"GET"))return!1;if(t.response&&t.response.status){let r=!1;for(let[o,n]of e.statusCodesToRetry){let i=t.response.status;if(i>=o&&i<=n){r=!0;break}}if(!r)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}a(d4,"shouldRetryRequest");function lO(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(lO,"getConfig");function p4(t){let r=(t.currentRetryAttempt?0:t.retryDelay??100)+(Math.pow(t.retryDelayMultiplier,t.currentRetryAttempt)-1)/2*1e3,o=t.totalTimeout-(Date.now()-t.timeOfFirstRequest);return Math.min(r,o,t.maxRetryDelay)}a(p4,"getNextRetryDelay")});var Fb=z(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.GaxiosInterceptorManager=void 0;var jb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};If.GaxiosInterceptorManager=jb});var fO=z((cie,pO)=>{var ka=1e3,Na=ka*60,$a=Na*60,hi=$a*24,f4=hi*7,m4=hi*365.25;pO.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return h4(t);if(r==="number"&&isFinite(t))return e.long?y4(t):g4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function h4(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*m4;case"weeks":case"week":case"w":return r*f4;case"days":case"day":case"d":return r*hi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$a;case"minutes":case"minute":case"mins":case"min":case"m":return r*Na;case"seconds":case"second":case"secs":case"sec":case"s":return r*ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a(h4,"parse");function g4(t){var e=Math.abs(t);return e>=hi?Math.round(t/hi)+"d":e>=$a?Math.round(t/$a)+"h":e>=Na?Math.round(t/Na)+"m":e>=ka?Math.round(t/ka)+"s":t+"ms"}a(g4,"fmtShort");function y4(t){var e=Math.abs(t);return e>=hi?Cf(t,e,hi,"day"):e>=$a?Cf(t,e,$a,"hour"):e>=Na?Cf(t,e,Na,"minute"):e>=ka?Cf(t,e,ka,"second"):t+" ms"}a(y4,"fmtLong");function Cf(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}a(Cf,"plural")});var Bb=z((lie,mO)=>{function _4(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=n,r.enabled=u,r.humanize=fO(),r.destroy=p,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let y=0;for(let m=0;m<f.length;m++)y=(y<<5)-y+f.charCodeAt(m),y|=0;return r.colors[Math.abs(y)%r.colors.length]}a(e,"selectColor"),r.selectColor=e;function r(f){let y,m=null,h,_;function P(...E){if(!P.enabled)return;let x=P,k=Number(new Date),L=k-(y||k);x.diff=L,x.prev=y,x.curr=k,y=k,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let Y=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(X,re)=>{if(X==="%%")return"%";Y++;let ce=r.formatters[re];if(typeof ce=="function"){let ee=E[Y];X=ce.call(x,ee),E.splice(Y,1),Y--}return X}),r.formatArgs.call(x,E),(x.log||r.log).apply(x,E)}return a(P,"debug"),P.namespace=f,P.useColors=r.useColors(),P.color=r.selectColor(f),P.extend=o,P.destroy=r.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(f)),_),"get"),set:a(E=>{m=E},"set")}),typeof r.init=="function"&&r.init(P),P}a(r,"createDebug");function o(f,y){let m=r(this.namespace+(typeof y>"u"?":":y)+f);return m.log=this.log,m}a(o,"extend");function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let y=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of y)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}a(n,"enable");function i(f,y){let m=0,h=0,_=-1,P=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,P=m,h++):(m++,h++);else if(_!==-1)h=_+1,P++,m=P;else return!1;for(;h<y.length&&y[h]==="*";)h++;return h===y.length}a(i,"matchesTemplate");function s(){let f=[...r.names,...r.skips.map(y=>"-"+y)].join(",");return r.enable(""),f}a(s,"disable");function u(f){for(let y of r.skips)if(i(f,y))return!1;for(let y of r.names)if(i(f,y))return!0;return!1}a(u,"enabled");function l(f){return f instanceof Error?f.stack||f.message:f}a(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(p,"destroy"),r.enable(r.load()),r}a(_4,"setup");mO.exports=_4});var hO=z((nr,Rf)=>{nr.formatArgs=b4;nr.save=S4;nr.load=P4;nr.useColors=v4;nr.storage=E4();nr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();nr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function v4(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(v4,"useColors");function b4(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Rf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}a(b4,"formatArgs");nr.log=console.debug||console.log||(()=>{});function S4(t){try{t?nr.storage.setItem("debug",t):nr.storage.removeItem("debug")}catch{}}a(S4,"save");function P4(){let t;try{t=nr.storage.getItem("debug")||nr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}a(P4,"load");function E4(){try{return localStorage}catch{}}a(E4,"localstorage");Rf.exports=Bb()(nr);var{formatters:T4}=Rf.exports;T4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var yO=z((fie,gO)=>{"use strict";gO.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}});var bO=z((mie,vO)=>{"use strict";var x4=require("os"),_O=require("tty"),$r=yO(),{env:$t}=process,wo;$r("no-color")||$r("no-colors")||$r("color=false")||$r("color=never")?wo=0:($r("color")||$r("colors")||$r("color=true")||$r("color=always"))&&(wo=1);"FORCE_COLOR"in $t&&($t.FORCE_COLOR==="true"?wo=1:$t.FORCE_COLOR==="false"?wo=0:wo=$t.FORCE_COLOR.length===0?1:Math.min(parseInt($t.FORCE_COLOR,10),3));function qb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}a(qb,"translateLevel");function Gb(t,e){if(wo===0)return 0;if($r("color=16m")||$r("color=full")||$r("color=truecolor"))return 3;if($r("color=256"))return 2;if(t&&!e&&wo===void 0)return 0;let r=wo||0;if($t.TERM==="dumb")return r;if(process.platform==="win32"){let o=x4.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in $t)||$t.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let o=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:r}a(Gb,"supportsColor");function A4(t){let e=Gb(t,t&&t.isTTY);return qb(e)}a(A4,"getSupportLevel");vO.exports={supportsColor:A4,stdout:qb(Gb(!0,_O.isatty(1))),stderr:qb(Gb(!0,_O.isatty(2)))}});var PO=z((zt,kf)=>{var w4=require("tty"),Of=require("util");zt.init=$4;zt.log=O4;zt.formatArgs=C4;zt.save=k4;zt.load=N4;zt.useColors=I4;zt.destroy=Of.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");zt.colors=[6,2,3,4,5,1];try{let t=bO();t&&(t.stderr||t).level>=2&&(zt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}zt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function I4(){return"colors"in zt.inspectOpts?!!zt.inspectOpts.colors:w4.isatty(process.stderr.fd)}a(I4,"useColors");function C4(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${n};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
|
|
1
|
+
"use strict";var lM=Object.create;var hs=Object.defineProperty;var dM=Object.getOwnPropertyDescriptor;var pM=Object.getOwnPropertyNames;var fM=Object.getPrototypeOf,mM=Object.prototype.hasOwnProperty;var a=(t,e)=>hs(t,"name",{value:e,configurable:!0});var Ct=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(o){throw r=[o],o}};var D=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Xt=(t,e)=>{for(var r in e)hs(t,r,{get:e[r],enumerable:!0})},GT=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pM(e))!mM.call(t,n)&&n!==r&&hs(t,n,{get:()=>e[n],enumerable:!(o=dM(e,n))||o.enumerable});return t};var xt=(t,e,r)=>(r=t!=null?lM(fM(t)):{},GT(e||!t||!t.__esModule?hs(r,"default",{value:t,enumerable:!0}):r,t)),hM=t=>GT(hs({},"__esModule",{value:!0}),t);var Bw=D((Fw,ff)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},o=new RegExp("^0[0-7]+$","i"),n=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${e}\\.${e}\\.${e}\\.${e}(${i})?$`,"i")};function l(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let S=0,E=-1,T=(h.match(u.zoneIndex)||[])[0],k,F;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(E=h.indexOf(":",E+1))>=0;)S++;if(h.substr(0,2)==="::"&&S--,h.substr(-2,2)==="::"&&S--,S>_)return null;for(F=_-S,k=":";F--;)k+="0:";return h=h.replace("::",k),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let Y=h.split(":"),H=[];for(let W=0;W<Y.length;W++)H.push(parseInt(Y[W],16));return H})(),{parts:_,zoneId:T}}a(l,"expandIPv6");function p(h,_,S,E){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,k;for(;E>0;){if(k=S-E,k<0&&(k=0),h[T]>>k!==_[T]>>k)return!1;E-=S,T+=1}return!0}a(p,"matchCIDR");function f(h){if(n.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function y(h,_){for(;h.length<_;)h=`0${h}`;return h}a(y,"padPart");let m={};m.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let S,E;for(S=0;S<_.length;S++)if(E=_[S],!(0<=E&&E<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,S){let E;if(S===void 0&&(E=_,_=E[0],S=E[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,S)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,S=!1,E={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,k,F;for(T=3;T>=0;T-=1)if(k=this.octets[T],k in E){if(F=E[k],S&&F!==0)return null;F!==8&&(S=!0),_+=F}else return null;return 32-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),m.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),S=_[0].toByteArray(),E=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<4;)T.push(parseInt(S[k],10)|parseInt(E[k],10)^255),k++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(h){return this.parser(h)!==null},m.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(h){return!!(m.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(h)||!_?!1:m.IPv4.isValidFourPartDecimal(_[1])},m.IPv4.networkAddressFromCIDR=function(h){let _,S,E,T,k;try{for(_=this.parseCIDR(h),E=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],S=0;S<4;)T.push(parseInt(E[S],10)&parseInt(k[S],10)),S++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},m.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let S=parseInt(_[2]);if(S>=0&&S<=32){let E=[this.parse(_[1]),S];return Object.defineProperty(E,"toString",{value:a(function(){return this.join("/")},"value")}),E}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,S,E;if(_=h.match(r.fourOctet))return(function(){let T=_.slice(1,6),k=[];for(let F=0;F<T.length;F++)S=T[F],k.push(f(S));return k})();if(_=h.match(r.longValue)){if(E=f(_[1]),E>4294967295||E<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],k;for(k=0;k<=24;k+=8)T.push(E>>k&255);return T})().reverse()}else return(_=h.match(r.twoOctet))?(function(){let T=_.slice(1,4),k=[];if(E=f(T[1]),E>16777215||E<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(E>>16&255),k.push(E>>8&255),k.push(E&255),k})():(_=h.match(r.threeOctet))?(function(){let T=_.slice(1,5),k=[];if(E=f(T[2]),E>65535||E<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(f(T[1])),k.push(E>>8&255),k.push(E&255),k})():null},m.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],S=0,E=Math.floor(h/8);for(;S<E;)_[S]=255,S++;return E<4&&(_[E]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,S){let E,T;if(_.length===16)for(this.parts=[],E=0;E<=14;E+=2)this.parts.push(_[E]<<8|_[E+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(E=0;E<this.parts.length;E++)if(T=this.parts[E],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");S&&(this.zoneId=S)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,S){let E;if(S===void 0&&(E=_,_=E[0],S=E[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,S)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,S=!1,E={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},T,k;for(let F=7;F>=0;F-=1)if(T=this.parts[F],T in E){if(k=E[T],S&&k!==0)return null;k!==16&&(S=!0),_+=k}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,S=[],E=this.parts;for(let T=0;T<E.length;T++)_=E[T],S.push(_>>8),S.push(_&255);return S},h.prototype.toFixedLengthString=function(){let _=(function(){let E=[];for(let T=0;T<this.parts.length;T++)E.push(y(this.parts[T].toString(16),4));return E}).call(this).join(":"),S="";return this.zoneId&&(S=`%${this.zoneId}`),_+S},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),S=_[0],E=_[1];return new m.IPv4([S>>8,S&255,E>>8,E&255])},h.prototype.toNormalizedString=function(){let _=(function(){let E=[];for(let T=0;T<this.parts.length;T++)E.push(this.parts[T].toString(16));return E}).call(this).join(":"),S="";return this.zoneId&&(S=`%${this.zoneId}`),_+S},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,S=this.toNormalizedString(),E=0,T=-1,k;for(;k=_.exec(S);)k[0].length>T&&(E=k.index,T=k[0].length);return T<0?S:`${S.substring(0,E)}::${S.substring(E+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),S=_[0].toByteArray(),E=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<16;)T.push(parseInt(S[k],10)|parseInt(E[k],10)^255),k++;return new this(T)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},m.IPv6.isIPv6=function(h){return this.parser(h)!==null},m.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(h){let _,S,E,T,k;try{for(_=this.parseCIDR(h),E=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],S=0;S<16;)T.push(parseInt(E[S],10)&parseInt(k[S],10)),S++;return new this(T)}catch(F){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${F})`)}},m.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},m.IPv6.parseCIDR=function(h){let _,S,E;if((S=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(S[2]),_>=0&&_<=128))return E=[this.parse(S[1]),_],Object.defineProperty(E,"toString",{value:a(function(){return this.join("/")},"value")}),E;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,S,E,T,k,F;if(E=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${E[1]}`);if(u.native.test(h))return l(h,8);if((E=h.match(u.transitional))&&(F=E[6]||"",_=E[1],E[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+F,6),_.parts)){for(k=[parseInt(E[2]),parseInt(E[3]),parseInt(E[4]),parseInt(E[5])],S=0;S<k.length;S++)if(T=k[S],!(0<=T&&T<=255))return null;return _.parts.push(k[0]<<8|k[1]),_.parts.push(k[2]<<8|k[3]),{parts:_.parts,zoneId:_.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0,E=Math.floor(h/8);for(;S<E;)_[S]=255,S++;return E<16&&(_[E]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.fromByteArray=function(h){let _=h.length;if(_===4)return new m.IPv4(h);if(_===16)return new m.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(h){return m.IPv6.isValid(h)||m.IPv4.isValid(h)},m.isValidCIDR=function(h){return m.IPv6.isValidCIDR(h)||m.IPv4.isValidCIDR(h)},m.parse=function(h){if(m.IPv6.isValid(h))return m.IPv6.parse(h);if(m.IPv4.isValid(h))return m.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(h){try{return m.IPv6.parseCIDR(h)}catch{try{return m.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},m.subnetMatch=function(h,_,S){let E,T,k,F;S==null&&(S="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(k=_[T],k[0]&&!(k[0]instanceof Array)&&(k=[k]),E=0;E<k.length;E++)if(F=k[E],h.kind()===F[0].kind()&&h.match.apply(h,F))return T}return S},typeof ff<"u"&&ff.exports?ff.exports=m:t.ipaddr=m})(Fw)});var nC=D((Pne,rC)=>{var tC=require("stream").Stream,hB=require("util");rC.exports=Kr;function Kr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Kr,"DelayedStream");hB.inherits(Kr,tC);Kr.create=function(t,e){var r=new this;e=e||{};for(var o in e)r[o]=e[o];r.source=t;var n=t.emit;return t.emit=function(){return r._handleEmit(arguments),n.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Kr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Kr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kr.prototype.pause=function(){this.source.pause()};Kr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Kr.prototype.pipe=function(){var t=tC.prototype.pipe.apply(this,arguments);return this.resume(),t};Kr.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Kr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var sC=D((Ene,aC)=>{var gB=require("util"),iC=require("stream").Stream,oC=nC();aC.exports=yt;function yt(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}a(yt,"CombinedStream");gB.inherits(yt,iC);yt.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};yt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};yt.prototype.append=function(t){var e=yt.isStreamLike(t);if(e){if(!(t instanceof oC)){var r=oC.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};yt.prototype.pipe=function(t,e){return iC.prototype.pipe.call(this,t,e),this.resume(),t};yt.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};yt.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var o=yt.isStreamLike(r);o&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};yt.prototype._pipeNext=function(t){this._currentStream=t;var e=yt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};yt.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};yt.prototype.write=function(t){this.emit("data",t)};yt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};yt.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};yt.prototype.end=function(){this._reset(),this.emit("end")};yt.prototype.destroy=function(){this._reset(),this.emit("close")};yt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};yt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};yt.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};yt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var uC=D((xne,cC)=>{"use strict";cC.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var pC=D(rr=>{"use strict";var bf=uC(),yB=require("path").extname,lC=/^\s*([^;\s]*)(?:;|\s|$)/,_B=/^text\//i;rr.charset=dC;rr.charsets={lookup:dC};rr.contentType=vB;rr.extension=bB;rr.extensions=Object.create(null);rr.lookup=PB;rr.types=Object.create(null);SB(rr.extensions,rr.types);function dC(t){if(!t||typeof t!="string")return!1;var e=lC.exec(t),r=e&&bf[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&_B.test(e[1])?"UTF-8":!1}a(dC,"charset");function vB(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?rr.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=rr.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}a(vB,"contentType");function bB(t){if(!t||typeof t!="string")return!1;var e=lC.exec(t),r=e&&rr.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}a(bB,"extension");function PB(t){if(!t||typeof t!="string")return!1;var e=yB("x."+t).toLowerCase().substr(1);return e&&rr.types[e]||!1}a(PB,"lookup");function SB(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(bf).forEach(a(function(n){var i=bf[n],s=i.extensions;if(!(!s||!s.length)){t[n]=s;for(var u=0;u<s.length;u++){var l=s[u];if(e[l]){var p=r.indexOf(bf[e[l]].source),f=r.indexOf(i.source);if(e[l]!=="application/octet-stream"&&(p>f||p===f&&e[l].substr(0,12)==="application/"))continue}e[l]=n}}},"forEachMimeType"))}a(SB,"populateMaps")});var mC=D((Ine,fC)=>{fC.exports=EB;function EB(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}a(EB,"defer")});var yb=D((Rne,gC)=>{var hC=mC();gC.exports=TB;function TB(t){var e=!1;return hC(function(){e=!0}),a(function(o,n){e?t(o,n):hC(a(function(){t(o,n)},"nextTick_callback"))},"async_callback")}a(TB,"async")});var _b=D((kne,yC)=>{yC.exports=xB;function xB(t){Object.keys(t.jobs).forEach(AB.bind(t)),t.jobs={}}a(xB,"abort");function AB(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}a(AB,"clean")});var vb=D(($ne,vC)=>{var _C=yb(),wB=_b();vC.exports=IB;function IB(t,e,r,o){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=CB(e,n,t[n],function(i,s){n in r.jobs&&(delete r.jobs[n],i?wB(r):r.results[n]=s,o(i,r.results))})}a(IB,"iterate");function CB(t,e,r,o){var n;return t.length==2?n=t(r,_C(o)):n=t(r,e,_C(o)),n}a(CB,"runJob")});var bb=D((zne,bC)=>{bC.exports=RB;function RB(t,e){var r=!Array.isArray(t),o={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&o.keyedList.sort(r?e:function(n,i){return e(t[n],t[i])}),o}a(RB,"state")});var Pb=D((Mne,PC)=>{var OB=_b(),kB=yb();PC.exports=NB;function NB(t){Object.keys(this.jobs).length&&(this.index=this.size,OB(this),kB(t)(null,this.results))}a(NB,"terminator")});var EC=D((jne,SC)=>{var $B=vb(),DB=bb(),zB=Pb();SC.exports=UB;function UB(t,e,r){for(var o=DB(t);o.index<(o.keyedList||t).length;)$B(t,e,o,function(n,i){if(n){r(n,i);return}if(Object.keys(o.jobs).length===0){r(null,o.results);return}}),o.index++;return zB.bind(o,r)}a(UB,"parallel")});var Sb=D((Bne,Pf)=>{var TC=vb(),MB=bb(),LB=Pb();Pf.exports=jB;Pf.exports.ascending=xC;Pf.exports.descending=FB;function jB(t,e,r,o){var n=MB(t,r);return TC(t,e,n,a(function i(s,u){if(s){o(s,u);return}if(n.index++,n.index<(n.keyedList||t).length){TC(t,e,n,i);return}o(null,n.results)},"iteratorHandler")),LB.bind(n,o)}a(jB,"serialOrdered");function xC(t,e){return t<e?-1:t>e?1:0}a(xC,"ascending");function FB(t,e){return-1*xC(t,e)}a(FB,"descending")});var wC=D((Gne,AC)=>{var BB=Sb();AC.exports=qB;function qB(t,e,r){return BB(t,e,null,r)}a(qB,"serial")});var CC=D((Hne,IC)=>{IC.exports={parallel:EC(),serial:wC(),serialOrdered:Sb()}});var Eb=D((Zne,RC)=>{"use strict";RC.exports=Object});var kC=D((Wne,OC)=>{"use strict";OC.exports=Error});var $C=D((Kne,NC)=>{"use strict";NC.exports=EvalError});var zC=D((Jne,DC)=>{"use strict";DC.exports=RangeError});var MC=D((Xne,UC)=>{"use strict";UC.exports=ReferenceError});var jC=D((Yne,LC)=>{"use strict";LC.exports=SyntaxError});var To=D((Qne,FC)=>{"use strict";FC.exports=TypeError});var qC=D((eoe,BC)=>{"use strict";BC.exports=URIError});var VC=D((toe,GC)=>{"use strict";GC.exports=Math.abs});var ZC=D((roe,HC)=>{"use strict";HC.exports=Math.floor});var KC=D((noe,WC)=>{"use strict";WC.exports=Math.max});var XC=D((ooe,JC)=>{"use strict";JC.exports=Math.min});var QC=D((ioe,YC)=>{"use strict";YC.exports=Math.pow});var tR=D((aoe,eR)=>{"use strict";eR.exports=Math.round});var nR=D((soe,rR)=>{"use strict";rR.exports=Number.isNaN||a(function(e){return e!==e},"isNaN")});var iR=D((uoe,oR)=>{"use strict";var GB=nR();oR.exports=a(function(e){return GB(e)||e===0?e:e<0?-1:1},"sign")});var sR=D((doe,aR)=>{"use strict";aR.exports=Object.getOwnPropertyDescriptor});var Tb=D((poe,cR)=>{"use strict";var Sf=sR();if(Sf)try{Sf([],"length")}catch{Sf=null}cR.exports=Sf});var lR=D((foe,uR)=>{"use strict";var Ef=Object.defineProperty||!1;if(Ef)try{Ef({},"a",{value:1})}catch{Ef=!1}uR.exports=Ef});var xb=D((moe,dR)=>{"use strict";dR.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==n||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var mR=D((goe,fR)=>{"use strict";var pR=typeof Symbol<"u"&&Symbol,VB=xb();fR.exports=a(function(){return typeof pR!="function"||typeof Symbol!="function"||typeof pR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:VB()},"hasNativeSymbols")});var Ab=D((_oe,hR)=>{"use strict";hR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var wb=D((voe,gR)=>{"use strict";var HB=Eb();gR.exports=HB.getPrototypeOf||null});var vR=D((boe,_R)=>{"use strict";var ZB="Function.prototype.bind called on incompatible ",WB=Object.prototype.toString,KB=Math.max,JB="[object Function]",yR=a(function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},"concatty"),XB=a(function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},"slicy"),YB=a(function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r},"joiny");_R.exports=a(function(e){var r=this;if(typeof r!="function"||WB.apply(r)!==JB)throw new TypeError(ZB+r);for(var o=XB(arguments,1),n,i=a(function(){if(this instanceof n){var f=r.apply(this,yR(o,arguments));return Object(f)===f?f:this}return r.apply(e,yR(o,arguments))},"binder"),s=KB(0,r.length-o.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(n=Function("binder","return function ("+YB(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=a(function(){},"Empty");p.prototype=r.prototype,n.prototype=new p,p.prototype=null}return n},"bind")});var wa=D((Soe,bR)=>{"use strict";var QB=vR();bR.exports=Function.prototype.bind||QB});var Tf=D((Eoe,PR)=>{"use strict";PR.exports=Function.prototype.call});var Ib=D((Toe,SR)=>{"use strict";SR.exports=Function.prototype.apply});var TR=D((xoe,ER)=>{"use strict";ER.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var AR=D((Aoe,xR)=>{"use strict";var eq=wa(),tq=Ib(),rq=Tf(),nq=TR();xR.exports=nq||eq.call(rq,tq)});var Cb=D((woe,wR)=>{"use strict";var oq=wa(),iq=To(),aq=Tf(),sq=AR();wR.exports=a(function(e){if(e.length<1||typeof e[0]!="function")throw new iq("a function is required");return sq(oq,aq,e)},"callBindBasic")});var NR=D((Coe,kR)=>{"use strict";var cq=Cb(),IR=Tb(),RR;try{RR=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Rb=!!RR&&IR&&IR(Object.prototype,"__proto__"),OR=Object,CR=OR.getPrototypeOf;kR.exports=Rb&&typeof Rb.get=="function"?cq([Rb.get]):typeof CR=="function"?a(function(e){return CR(e==null?e:OR(e))},"getDunder"):!1});var MR=D((Ooe,UR)=>{"use strict";var $R=Ab(),DR=wb(),zR=NR();UR.exports=$R?a(function(e){return $R(e)},"getProto"):DR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return DR(e)},"getProto"):zR?a(function(e){return zR(e)},"getProto"):null});var Ob=D((Noe,LR)=>{"use strict";var uq=Function.prototype.call,lq=Object.prototype.hasOwnProperty,dq=wa();LR.exports=dq.call(uq,lq)});var vu=D(($oe,VR)=>{"use strict";var Be,pq=Eb(),fq=kC(),mq=$C(),hq=zC(),gq=MC(),Oa=jC(),Ra=To(),yq=qC(),_q=VC(),vq=ZC(),bq=KC(),Pq=XC(),Sq=QC(),Eq=tR(),Tq=iR(),qR=Function,kb=a(function(t){try{return qR('"use strict"; return ('+t+").constructor;")()}catch{}},"getEvalledConstructor"),gu=Tb(),xq=lR(),Nb=a(function(){throw new Ra},"throwTypeError"),Aq=gu?(function(){try{return arguments.callee,Nb}catch{try{return gu(arguments,"callee").get}catch{return Nb}}})():Nb,Ia=mR()(),Nt=MR(),wq=wb(),Iq=Ab(),GR=Ib(),yu=Tf(),Ca={},Cq=typeof Uint8Array>"u"||!Nt?Be:Nt(Uint8Array),hi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":Ia&&Nt?Nt([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":Ca,"%AsyncGenerator%":Ca,"%AsyncGeneratorFunction%":Ca,"%AsyncIteratorPrototype%":Ca,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fq,"%eval%":eval,"%EvalError%":mq,"%Float16Array%":typeof Float16Array>"u"?Be:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":qR,"%GeneratorFunction%":Ca,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ia&&Nt?Nt(Nt([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ia||!Nt?Be:Nt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":pq,"%Object.getOwnPropertyDescriptor%":gu,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":hq,"%ReferenceError%":gq,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ia||!Nt?Be:Nt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ia&&Nt?Nt(""[Symbol.iterator]()):Be,"%Symbol%":Ia?Symbol:Be,"%SyntaxError%":Oa,"%ThrowTypeError%":Aq,"%TypedArray%":Cq,"%TypeError%":Ra,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":yq,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet,"%Function.prototype.call%":yu,"%Function.prototype.apply%":GR,"%Object.defineProperty%":xq,"%Object.getPrototypeOf%":wq,"%Math.abs%":_q,"%Math.floor%":vq,"%Math.max%":bq,"%Math.min%":Pq,"%Math.pow%":Sq,"%Math.round%":Eq,"%Math.sign%":Tq,"%Reflect.getPrototypeOf%":Iq};if(Nt)try{null.error}catch(t){jR=Nt(Nt(t)),hi["%Error.prototype%"]=jR}var jR,Rq=a(function t(e){var r;if(e==="%AsyncFunction%")r=kb("async function () {}");else if(e==="%GeneratorFunction%")r=kb("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=kb("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&Nt&&(r=Nt(n.prototype))}return hi[e]=r,r},"doEval"),FR={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_u=wa(),xf=Ob(),Oq=_u.call(yu,Array.prototype.concat),kq=_u.call(GR,Array.prototype.splice),BR=_u.call(yu,String.prototype.replace),Af=_u.call(yu,String.prototype.slice),Nq=_u.call(yu,RegExp.prototype.exec),$q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dq=/\\(\\)?/g,zq=a(function(e){var r=Af(e,0,1),o=Af(e,-1);if(r==="%"&&o!=="%")throw new Oa("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Oa("invalid intrinsic syntax, expected opening `%`");var n=[];return BR(e,$q,function(i,s,u,l){n[n.length]=u?BR(l,Dq,"$1"):s||i}),n},"stringToPath"),Uq=a(function(e,r){var o=e,n;if(xf(FR,o)&&(n=FR[o],o="%"+n[0]+"%"),xf(hi,o)){var i=hi[o];if(i===Ca&&(i=Rq(o)),typeof i>"u"&&!r)throw new Ra("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Oa("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");VR.exports=a(function(e,r){if(typeof e!="string"||e.length===0)throw new Ra("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ra('"allowMissing" argument must be a boolean');if(Nq(/^%?[^%]*%?$/,e)===null)throw new Oa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=zq(e),n=o.length>0?o[0]:"",i=Uq("%"+n+"%",r),s=i.name,u=i.value,l=!1,p=i.alias;p&&(n=p[0],kq(o,Oq([0,1],p)));for(var f=1,y=!0;f<o.length;f+=1){var m=o[f],h=Af(m,0,1),_=Af(m,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new Oa("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),n+="."+m,s="%"+n+"%",xf(hi,s))u=hi[s];else if(u!=null){if(!(m in u)){if(!r)throw new Ra("base intrinsic for "+e+" exists, but the property is not available.");return}if(gu&&f+1>=o.length){var S=gu(u,m);y=!!S,y&&"get"in S&&!("originalValue"in S.get)?u=S.get:u=u[m]}else y=xf(u,m),u=u[m];y&&!l&&(hi[s]=u)}}return u},"GetIntrinsic")});var ZR=D((zoe,HR)=>{"use strict";var Mq=xb();HR.exports=a(function(){return Mq()&&!!Symbol.toStringTag},"hasToStringTagShams")});var JR=D((Moe,KR)=>{"use strict";var Lq=vu(),WR=Lq("%Object.defineProperty%",!0),jq=ZR()(),Fq=Ob(),Bq=To(),wf=jq?Symbol.toStringTag:null;KR.exports=a(function(e,r){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Bq("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");wf&&(o||!Fq(e,wf))&&(WR?WR(e,wf,{configurable:!n,enumerable:!1,value:r,writable:!1}):e[wf]=r)},"setToStringTag")});var YR=D((joe,XR)=>{"use strict";var qq=Function.prototype.call,Gq=Object.prototype.hasOwnProperty,Vq=wa();XR.exports=Vq.call(qq,Gq)});var eO=D((Foe,QR)=>{"use strict";QR.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var nO=D((Boe,rO)=>{"use strict";var Ub=sC(),Hq=require("util"),$b=require("path"),Zq=require("http"),Wq=require("https"),Kq=require("url").parse,Jq=require("fs"),Xq=require("stream").Stream,Yq=require("crypto"),Db=pC(),Qq=CC(),e4=JR(),xo=YR(),zb=eO();function tO(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(tO,"escapeHeaderParam");function We(t){if(!(this instanceof We))return new We(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ub.call(this),t=t||{};for(var e in t)this[e]=t[e]}a(We,"FormData");Hq.inherits(We,Ub);We.LINE_BREAK=`\r
|
|
2
|
+
`;We.DEFAULT_CONTENT_TYPE="application/octet-stream";We.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var o=Ub.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(t,e,r),i=this._multiPartFooter();o(n),o(e),o(i),this._trackLength(n,e,r)};We.prototype._trackLength=function(t,e,r){var o=0;r.knownLength!=null?o+=Number(r.knownLength):Buffer.isBuffer(e)?o=e.length:typeof e=="string"&&(o=Buffer.byteLength(e)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(t)+We.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&xo(e,"httpVersion"))&&!(e instanceof Xq))&&(r.knownLength||this._valuesToMeasure.push(e))};We.prototype._lengthRetriever=function(t,e){xo(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):Jq.stat(t.path,function(r,o){if(r){e(r);return}var n=o.size-(t.start?t.start:0);e(null,n)}):xo(t,"httpVersion")?e(null,Number(t.headers["content-length"])):xo(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};We.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var o=this._getContentDisposition(e,r),n=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+tO(t)+'"'].concat(o||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&zb(s,r.header);var u;for(var l in s)if(xo(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=l+": "+u.join("; ")+We.LINE_BREAK)}return"--"+this.getBoundary()+We.LINE_BREAK+i+We.LINE_BREAK};We.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=$b.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=$b.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&xo(t,"httpVersion")&&(r=$b.basename(t.client._httpMessage.path||"")),r)return'filename="'+tO(r)+'"'};We.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Db.lookup(t.name)),!r&&t&&t.path&&(r=Db.lookup(t.path)),!r&&t&&t.readable&&xo(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Db.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=We.DEFAULT_CONTENT_TYPE),r};We.prototype._multiPartFooter=function(){return function(t){var e=We.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};We.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+We.LINE_BREAK};We.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)xo(t,e)&&(r[e.toLowerCase()]=t[e]);return r};We.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};We.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};We.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,o=this._streams.length;r<o;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(We.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};We.prototype._generateBoundary=function(){this._boundary="--------------------------"+Yq.randomBytes(12).toString("hex")};We.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};We.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};We.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}Qq.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,o){if(r){t(r);return}o.forEach(function(n){e+=n}),t(null,e)})};We.prototype.submit=function(t,e){var r,o,n={method:"post"};return typeof t=="string"?(t=Kq(t),o=zb({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},n)):(o=zb(t,n),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(t.headers),o.protocol==="https:"?r=Wq.request(o):r=Zq.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var u,l=a(function(p,f){return r.removeListener("error",l),r.removeListener("response",u),e.call(this,p,f)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};We.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};We.prototype.toString=function(){return"[object FormData]"};e4(We.prototype,"FormData");rO.exports=We});var Su=D((gie,mO)=>{"use strict";var If=Object.prototype.hasOwnProperty,fO=Object.prototype.toString,sO=Object.defineProperty,cO=Object.getOwnPropertyDescriptor,uO=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):fO.call(e)==="[object Array]"},"isArray"),lO=a(function(e){if(!e||fO.call(e)!=="[object Object]")return!1;var r=If.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&If.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;var n;for(n in e);return typeof n>"u"||If.call(e,n)},"isPlainObject"),dO=a(function(e,r){sO&&r.name==="__proto__"?sO(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),pO=a(function(e,r){if(r==="__proto__")if(If.call(e,r)){if(cO)return cO(e,r).value}else return;return e[r]},"getProperty");mO.exports=a(function t(){var e,r,o,n,i,s,u=arguments[0],l=1,p=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(e=arguments[l],e!=null)for(r in e)o=pO(u,r),n=pO(e,r),u!==n&&(f&&n&&(lO(n)||(i=uO(n)))?(i?(i=!1,s=o&&uO(o)?o:[]):s=o&&lO(o)?o:{},dO(u,{name:r,newValue:t(f,s,n)})):typeof n<"u"&&dO(u,{name:r,newValue:n}));return u},"extend")});var hO=D((_ie,E4)=>{E4.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var yO=D((vie,gO)=>{"use strict";var T4=hO();gO.exports={pkg:T4}});var Bb=D(Nr=>{"use strict";var vO=Nr&&Nr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.GaxiosError=Nr.GAXIOS_ERROR_SYMBOL=void 0;Nr.defaultErrorRedactor=bO;var _O=vO(Su()),x4=vO(yO()),jb=x4.default.pkg;Nr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${jb.name}-gaxios-error`);var Fb=class t extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Nr.GAXIOS_ERROR_SYMBOL]=jb.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&Nr.GAXIOS_ERROR_SYMBOL in e&&e[Nr.GAXIOS_ERROR_SYMBOL]===jb.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,r,o,n){if(super(e,{cause:n}),this.config=r,this.response=o,this.error=n instanceof Error?n:void 0,this.config=(0,_O.default)(!0,{},r),this.response&&(this.response.config=(0,_O.default)(!0,{},this.response.config)),this.response){try{this.response.data=A4(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}n instanceof DOMException?this.code=n.name:n&&typeof n=="object"&&"code"in n&&(typeof n.code=="string"||typeof n.code=="number")&&(this.code=n.code)}static extractAPIErrorFromResponse(e,r="The request failed"){let o=r;if(typeof e.data=="string"&&(o=e.data),e.data&&typeof e.data=="object"&&"error"in e.data&&e.data.error&&!e.ok){if(typeof e.data.error=="string")return{message:e.data.error,code:e.status,status:e.statusText};if(typeof e.data.error=="object"){o="message"in e.data.error&&typeof e.data.error.message=="string"?e.data.error.message:o;let n="status"in e.data.error&&typeof e.data.error.status=="string"?e.data.error.status:e.statusText,i="code"in e.data.error&&typeof e.data.error.code=="number"?e.data.error.code:e.status;if("errors"in e.data.error&&Array.isArray(e.data.error.errors)){let s=[];for(let u of e.data.error.errors)typeof u=="object"&&"message"in u&&typeof u.message=="string"&&s.push(u.message);return Object.assign({message:s.join(`
|
|
3
|
+
`)||o,code:i,status:n},e.data.error)}return Object.assign({message:o,code:i,status:n},e.data.error)}}return{message:o,code:e.status,status:e.statusText}}};Nr.GaxiosError=Fb;function A4(t,e){switch(t){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}a(A4,"translateData");function bO(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function r(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,e)})}a(r,"redactHeaders");function o(i,s){if(typeof i=="object"&&i!==null&&typeof i[s]=="string"){let u=i[s];(/grant_type=/i.test(u)||/assertion=/i.test(u)||/secret/i.test(u))&&(i[s]=e)}}a(o,"redactString");function n(i){!i||typeof i!="object"||(i instanceof FormData||i instanceof URLSearchParams||"forEach"in i&&"set"in i?i.forEach((s,u)=>{(["grant_type","assertion"].includes(u)||/secret/.test(u))&&i.set(u,e)}):("grant_type"in i&&(i.grant_type=e),"assertion"in i&&(i.assertion=e),"client_secret"in i&&(i.client_secret=e)))}return a(n,"redactObject"),t.config&&(r(t.config.headers),o(t.config,"data"),n(t.config.data),o(t.config,"body"),n(t.config.body),t.config.url.searchParams.has("token")&&t.config.url.searchParams.set("token",e),t.config.url.searchParams.has("client_secret")&&t.config.url.searchParams.set("client_secret",e)),t.response&&(bO({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),n(t.response.data))),t}a(bO,"defaultErrorRedactor")});var SO=D(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});qb.getRetryConfig=w4;async function w4(t){let e=PO(t);if(!t||!t.config||!e&&!t.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let r=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||r,t.config.retryConfig=e,!await(e.shouldRetry||I4)(t))return{shouldRetry:!1,config:t.config};let n=C4(e);t.config.retryConfig.currentRetryAttempt+=1;let i=e.retryBackoff?e.retryBackoff(t,n):new Promise(s=>{setTimeout(s,n)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await i,{shouldRetry:!0,config:t.config}}a(w4,"getRetryConfig");function I4(t){let e=PO(t);if(t.config.signal?.aborted&&t.code!=="TimeoutError"||t.code==="AbortError"||!e||e.retry===0||!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries||!e.httpMethodsToRetry||!e.httpMethodsToRetry.includes(t.config.method?.toUpperCase()||"GET"))return!1;if(t.response&&t.response.status){let r=!1;for(let[o,n]of e.statusCodesToRetry){let i=t.response.status;if(i>=o&&i<=n){r=!0;break}}if(!r)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}a(I4,"shouldRetryRequest");function PO(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(PO,"getConfig");function C4(t){let r=(t.currentRetryAttempt?0:t.retryDelay??100)+(Math.pow(t.retryDelayMultiplier,t.currentRetryAttempt)-1)/2*1e3,o=t.totalTimeout-(Date.now()-t.timeOfFirstRequest);return Math.min(r,o,t.maxRetryDelay)}a(C4,"getNextRetryDelay")});var Vb=D(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.GaxiosInterceptorManager=void 0;var Gb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};Cf.GaxiosInterceptorManager=Gb});var TO=D((Aie,EO)=>{var ka=1e3,Na=ka*60,$a=Na*60,gi=$a*24,R4=gi*7,O4=gi*365.25;EO.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return k4(t);if(r==="number"&&isFinite(t))return e.long?$4(t):N4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function k4(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*O4;case"weeks":case"week":case"w":return r*R4;case"days":case"day":case"d":return r*gi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$a;case"minutes":case"minute":case"mins":case"min":case"m":return r*Na;case"seconds":case"second":case"secs":case"sec":case"s":return r*ka;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a(k4,"parse");function N4(t){var e=Math.abs(t);return e>=gi?Math.round(t/gi)+"d":e>=$a?Math.round(t/$a)+"h":e>=Na?Math.round(t/Na)+"m":e>=ka?Math.round(t/ka)+"s":t+"ms"}a(N4,"fmtShort");function $4(t){var e=Math.abs(t);return e>=gi?Rf(t,e,gi,"day"):e>=$a?Rf(t,e,$a,"hour"):e>=Na?Rf(t,e,Na,"minute"):e>=ka?Rf(t,e,ka,"second"):t+" ms"}a($4,"fmtLong");function Rf(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}a(Rf,"plural")});var Hb=D((Iie,xO)=>{function D4(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=n,r.enabled=u,r.humanize=TO(),r.destroy=p,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let y=0;for(let m=0;m<f.length;m++)y=(y<<5)-y+f.charCodeAt(m),y|=0;return r.colors[Math.abs(y)%r.colors.length]}a(e,"selectColor"),r.selectColor=e;function r(f){let y,m=null,h,_;function S(...E){if(!S.enabled)return;let T=S,k=Number(new Date),F=k-(y||k);T.diff=F,T.prev=y,T.curr=k,y=k,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let Y=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(W,re)=>{if(W==="%%")return"%";Y++;let ce=r.formatters[re];if(typeof ce=="function"){let ee=E[Y];W=ce.call(T,ee),E.splice(Y,1),Y--}return W}),r.formatArgs.call(T,E),(T.log||r.log).apply(T,E)}return a(S,"debug"),S.namespace=f,S.useColors=r.useColors(),S.color=r.selectColor(f),S.extend=o,S.destroy=r.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(f)),_),"get"),set:a(E=>{m=E},"set")}),typeof r.init=="function"&&r.init(S),S}a(r,"createDebug");function o(f,y){let m=r(this.namespace+(typeof y>"u"?":":y)+f);return m.log=this.log,m}a(o,"extend");function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let y=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of y)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}a(n,"enable");function i(f,y){let m=0,h=0,_=-1,S=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,S=m,h++):(m++,h++);else if(_!==-1)h=_+1,S++,m=S;else return!1;for(;h<y.length&&y[h]==="*";)h++;return h===y.length}a(i,"matchesTemplate");function s(){let f=[...r.names,...r.skips.map(y=>"-"+y)].join(",");return r.enable(""),f}a(s,"disable");function u(f){for(let y of r.skips)if(i(f,y))return!1;for(let y of r.names)if(i(f,y))return!0;return!1}a(u,"enabled");function l(f){return f instanceof Error?f.stack||f.message:f}a(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(p,"destroy"),r.enable(r.load()),r}a(D4,"setup");xO.exports=D4});var AO=D((nr,Of)=>{nr.formatArgs=U4;nr.save=M4;nr.load=L4;nr.useColors=z4;nr.storage=j4();nr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();nr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function z4(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(z4,"useColors");function U4(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Of.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}a(U4,"formatArgs");nr.log=console.debug||console.log||(()=>{});function M4(t){try{t?nr.storage.setItem("debug",t):nr.storage.removeItem("debug")}catch{}}a(M4,"save");function L4(){let t;try{t=nr.storage.getItem("debug")||nr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}a(L4,"load");function j4(){try{return localStorage}catch{}}a(j4,"localstorage");Of.exports=Hb()(nr);var{formatters:F4}=Of.exports;F4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var IO=D((Oie,wO)=>{"use strict";wO.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}});var OO=D((kie,RO)=>{"use strict";var B4=require("os"),CO=require("tty"),$r=IO(),{env:$t}=process,wo;$r("no-color")||$r("no-colors")||$r("color=false")||$r("color=never")?wo=0:($r("color")||$r("colors")||$r("color=true")||$r("color=always"))&&(wo=1);"FORCE_COLOR"in $t&&($t.FORCE_COLOR==="true"?wo=1:$t.FORCE_COLOR==="false"?wo=0:wo=$t.FORCE_COLOR.length===0?1:Math.min(parseInt($t.FORCE_COLOR,10),3));function Zb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}a(Zb,"translateLevel");function Wb(t,e){if(wo===0)return 0;if($r("color=16m")||$r("color=full")||$r("color=truecolor"))return 3;if($r("color=256"))return 2;if(t&&!e&&wo===void 0)return 0;let r=wo||0;if($t.TERM==="dumb")return r;if(process.platform==="win32"){let o=B4.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in $t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in $t)||$t.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($t.TEAMCITY_VERSION)?1:0;if($t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $t){let o=parseInt(($t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($t.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($t.TERM)||"COLORTERM"in $t?1:r}a(Wb,"supportsColor");function q4(t){let e=Wb(t,t&&t.isTTY);return Zb(e)}a(q4,"getSupportLevel");RO.exports={supportsColor:q4,stdout:Zb(Wb(!0,CO.isatty(1))),stderr:Zb(Wb(!0,CO.isatty(2)))}});var NO=D((Dt,Nf)=>{var G4=require("tty"),kf=require("util");Dt.init=X4;Dt.log=W4;Dt.formatArgs=H4;Dt.save=K4;Dt.load=J4;Dt.useColors=V4;Dt.destroy=kf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Dt.colors=[6,2,3,4,5,1];try{let t=OO();t&&(t.stderr||t).level>=2&&(Dt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Dt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function V4(){return"colors"in Dt.inspectOpts?!!Dt.inspectOpts.colors:G4.isatty(process.stderr.fd)}a(V4,"useColors");function H4(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${n};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
|
|
4
4
|
`).join(`
|
|
5
|
-
`+i),t.push(n+"m+"+
|
|
6
|
-
`)}a(
|
|
7
|
-
`).map(e=>e.trim()).join(" ")};
|
|
8
|
-
`).some(o=>o.indexOf("(https.js:")!==-1||o.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new
|
|
5
|
+
`+i),t.push(n+"m+"+Nf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Z4()+e+" "+t[0]}a(H4,"formatArgs");function Z4(){return Dt.inspectOpts.hideDate?"":new Date().toISOString()+" "}a(Z4,"getDate");function W4(...t){return process.stderr.write(kf.formatWithOptions(Dt.inspectOpts,...t)+`
|
|
6
|
+
`)}a(W4,"log");function K4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}a(K4,"save");function J4(){return process.env.DEBUG}a(J4,"load");function X4(t){t.inspectOpts={};let e=Object.keys(Dt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dt.inspectOpts[e[r]]}a(X4,"init");Nf.exports=Hb()(Dt);var{formatters:kO}=Nf.exports;kO.o=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts).split(`
|
|
7
|
+
`).map(e=>e.trim()).join(" ")};kO.O=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts)}});var Jb=D((Die,Kb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kb.exports=AO():Kb.exports=NO()});var zO=D(or=>{"use strict";var Y4=or&&or.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),Q4=or&&or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$O=or&&or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Y4(e,t,r);return Q4(e,t),e};Object.defineProperty(or,"__esModule",{value:!0});or.req=or.json=or.toBuffer=void 0;var e6=$O(require("http")),t6=$O(require("https"));async function DO(t){let e=0,r=[];for await(let o of t)e+=o.length,r.push(o);return Buffer.concat(r,e)}a(DO,"toBuffer");or.toBuffer=DO;async function r6(t){let r=(await DO(t)).toString("utf8");try{return JSON.parse(r)}catch(o){let n=o;throw n.message+=` (input: ${r})`,n}}a(r6,"json");or.json=r6;function n6(t,e={}){let o=((typeof t=="string"?t:t.href).startsWith("https:")?t6:e6).request(t,e),n=new Promise((i,s)=>{o.once("response",i).once("error",s).end()});return o.then=n.then.bind(n),o}a(n6,"req");or.req=n6});var jO=D(mr=>{"use strict";var MO=mr&&mr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),o6=mr&&mr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LO=mr&&mr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&MO(e,t,r);return o6(e,t),e},i6=mr&&mr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&MO(e,t,r)};Object.defineProperty(mr,"__esModule",{value:!0});mr.Agent=void 0;var a6=LO(require("net")),UO=LO(require("http")),s6=require("https");i6(zO(),mr);var dn=Symbol("AgentBaseInternalState"),Xb=class extends UO.Agent{static{a(this,"Agent")}constructor(e){super(e),this[dn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
|
8
|
+
`).some(o=>o.indexOf("(https.js:")!==-1||o.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new a6.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let o=this.sockets[e],n=o.indexOf(r);n!==-1&&(o.splice(n,1),this.totalSocketCount--,o.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s6.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,o){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),s=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(u=>{if(this.decrementSockets(i,s),u instanceof UO.Agent)try{return u.addRequest(e,n)}catch(l){return o(l)}this[dn].currentSocket=u,super.createSocket(e,r,o)},u=>{this.decrementSockets(i,s),o(u)})}createConnection(){let e=this[dn].currentSocket;if(this[dn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[dn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[dn]&&(this[dn].defaultPort=e)}get protocol(){return this[dn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[dn]&&(this[dn].protocol=e)}};mr.Agent=Xb});var FO=D(Da=>{"use strict";var c6=Da&&Da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Da,"__esModule",{value:!0});Da.parseProxyResponse=void 0;var u6=c6(Jb()),$f=(0,u6.default)("https-proxy-agent:parse-proxy-response");function l6(t){return new Promise((e,r)=>{let o=0,n=[];function i(){let f=t.read();f?p(f):t.once("readable",i)}a(i,"read");function s(){t.removeListener("end",u),t.removeListener("error",l),t.removeListener("readable",i)}a(s,"cleanup");function u(){s(),$f("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}a(u,"onend");function l(f){s(),$f("onerror %o",f),r(f)}a(l,"onerror");function p(f){n.push(f),o+=f.length;let y=Buffer.concat(n,o),m=y.indexOf(`\r
|
|
9
9
|
\r
|
|
10
|
-
`);if(m===-1){
|
|
11
|
-
`),_=h.shift();if(!_)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let
|
|
10
|
+
`);if(m===-1){$f("have not received end of HTTP headers yet..."),i();return}let h=y.slice(0,m).toString("ascii").split(`\r
|
|
11
|
+
`),_=h.shift();if(!_)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let S=_.split(" "),E=+S[1],T=S.slice(2).join(" "),k={};for(let F of h){if(!F)continue;let Y=F.indexOf(":");if(Y===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${F}"`));let H=F.slice(0,Y).toLowerCase(),W=F.slice(Y+1).trimStart(),re=k[H];typeof re=="string"?k[H]=[re,W]:Array.isArray(re)?re.push(W):k[H]=W}$f("got proxy server response: %o %o",_,k),s(),e({connect:{statusCode:E,statusText:T,headers:k},buffered:y})}a(p,"ondata"),t.on("error",l),t.on("end",u),i()})}a(l6,"parseProxyResponse");Da.parseProxyResponse=l6});var ZO=D(Dr=>{"use strict";var d6=Dr&&Dr.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),p6=Dr&&Dr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VO=Dr&&Dr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&d6(e,t,r);return p6(e,t),e},HO=Dr&&Dr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.HttpsProxyAgent=void 0;var Df=VO(require("net")),BO=VO(require("tls")),f6=HO(require("assert")),m6=HO(Jb()),h6=jO(),g6=require("url"),y6=FO(),Eu=(0,m6.default)("https-proxy-agent"),qO=a(t=>t.servername===void 0&&t.host&&!Df.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),zf=class extends h6.Agent{static{a(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new g6.URL(e):e,this.proxyHeaders=r?.headers??{},Eu("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GO(r,"headers"):null,host:o,port:n}}async connect(e,r){let{proxy:o}=this;if(!r.host)throw new TypeError('No "host" provided');let n;o.protocol==="https:"?(Eu("Creating `tls.Socket`: %o",this.connectOpts),n=BO.connect(qO(this.connectOpts))):(Eu("Creating `net.Socket`: %o",this.connectOpts),n=Df.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=Df.isIPv6(r.host)?`[${r.host}]`:r.host,u=`CONNECT ${s}:${r.port} HTTP/1.1\r
|
|
12
12
|
`;if(o.username||o.password){let m=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))u+=`${m}: ${i[m]}\r
|
|
13
|
-
`;let l=(0,
|
|
14
|
-
`);let{connect:p,buffered:f}=await l;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",t6),r.secureEndpoint?(Eu("Upgrading socket connection to TLS"),OO.connect({...NO(kO(r),"host","path","port"),socket:n})):n;n.destroy();let y=new $f.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{Eu("Replaying proxy buffer for failed request"),(0,J4.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};zf.protocols=["http","https"];zr.HttpsProxyAgent=zf;function t6(t){t.resume()}a(t6,"resume");function NO(t,...e){let r={},o;for(o in t)e.includes(o)||(r[o]=t[o]);return r}a(NO,"omit")});function r6(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),o="",n=!1,i=r[0]||"text/plain",s=i;for(let f=1;f<r.length;f++)r[f]==="base64"?n=!0:r[f]&&(s+=`;${r[f]}`,r[f].indexOf("charset=")===0&&(o=r[f].substring(8)));!r[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=n?"base64":"ascii",l=unescape(t.substring(e+1)),p=Buffer.from(l,u);return p.type=i,p.typeFull=s,p.charset=o,p}var UO,MO=Ct(()=>{a(r6,"dataUriToBuffer");UO=r6});var jO=z((Df,LO)=>{(function(t,e){typeof Df=="object"&&typeof LO<"u"?e(Df):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(Df,(function(t){"use strict";function e(){}a(e,"noop");function r(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(r,"typeIsObject");let o=e;function n(c,d){try{Object.defineProperty(c,"name",{value:d,configurable:!0})}catch{}}a(n,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function l(c){return new i(c)}a(l,"newPromise");function p(c){return l(d=>d(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function y(c,d,g){return s.call(c,d,g)}a(y,"PerformPromiseThen");function m(c,d,g){y(y(c,d,g),void 0,o)}a(m,"uponPromise");function h(c,d){m(c,d)}a(h,"uponFulfillment");function _(c,d){m(c,void 0,d)}a(_,"uponRejection");function P(c,d,g){return y(c,d,g)}a(P,"transformPromiseWith");function E(c){y(c,void 0,o)}a(E,"setPromiseIsHandledToTrue");let x=a(c=>{if(typeof queueMicrotask=="function")x=queueMicrotask;else{let d=p(void 0);x=a(g=>y(d,g),"_queueMicrotask")}return x(c)},"_queueMicrotask");function k(c,d,g){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,d,g)}a(k,"reflectCall");function L(c,d,g){try{return p(k(c,d,g))}catch(S){return f(S)}}a(L,"promiseCall");let Y=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(d){let g=this._back,S=g;g._elements.length===Y-1&&(S={_elements:[],_next:void 0}),g._elements.push(d),S!==g&&(this._back=S,g._next=S),++this._size}shift(){let d=this._front,g=d,S=this._cursor,I=S+1,F=d._elements,V=F[S];return I===Y&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),F[S]=void 0,V}forEach(d){let g=this._cursor,S=this._front,I=S._elements;for(;(g!==I.length||S._next!==void 0)&&!(g===I.length&&(S=S._next,I=S._elements,g=0,I.length===0));)d(I[g]),++g}peek(){let d=this._front,g=this._cursor;return d._elements[g]}}let X=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ce=Symbol("[[CancelSteps]]"),ee=Symbol("[[PullSteps]]"),Le=Symbol("[[ReleaseSteps]]");function le(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?Q(c):d._state==="closed"?me(c):de(c,d._storedError)}a(le,"ReadableStreamReaderGenericInitialize");function W(c,d){let g=c._ownerReadableStream;return qr(g,d)}a(W,"ReadableStreamReaderGenericCancel");function Z(c){let d=c._ownerReadableStream;d._state==="readable"?ze(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):je(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),d._readableStreamController[Le](),d._reader=void 0,c._ownerReadableStream=void 0}a(Z,"ReadableStreamReaderGenericRelease");function oe(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(oe,"readerLockException");function Q(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g})}a(Q,"defaultReaderClosedPromiseInitialize");function de(c,d){Q(c),ze(c,d)}a(de,"defaultReaderClosedPromiseInitializeAsRejected");function me(c){Q(c),Qe(c)}a(me,"defaultReaderClosedPromiseInitializeAsResolved");function ze(c,d){c._closedPromise_reject!==void 0&&(E(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ze,"defaultReaderClosedPromiseReject");function je(c,d){de(c,d)}a(je,"defaultReaderClosedPromiseResetToRejected");function Qe(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Qe,"defaultReaderClosedPromiseResolve");let it=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},It=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function se(c){return typeof c=="object"||typeof c=="function"}a(se,"isDictionary");function gt(c,d){if(c!==void 0&&!se(c))throw new TypeError(`${d} is not an object.`)}a(gt,"assertDictionary");function _t(c,d){if(typeof c!="function")throw new TypeError(`${d} is not a function.`)}a(_t,"assertFunction");function sr(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(sr,"isObject");function Je(c,d){if(!sr(c))throw new TypeError(`${d} is not an object.`)}a(Je,"assertObject");function et(c,d,g){if(c===void 0)throw new TypeError(`Parameter ${d} is required in '${g}'.`)}a(et,"assertRequiredArgument");function b(c,d,g){if(c===void 0)throw new TypeError(`${d} is required in '${g}'.`)}a(b,"assertRequiredField");function T(c){return Number(c)}a(T,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function M(c){return A(It(c))}a(M,"integerPart");function R(c,d){let S=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!it(I))throw new TypeError(`${d} is not a finite number`);if(I=M(I),I<0||I>S)throw new TypeError(`${d} is outside the accepted range of 0 to ${S}, inclusive`);return!it(I)||I===0?0:I}a(R,"convertUnsignedLongLongWithEnforceRange");function $(c,d){if(!to(c))throw new TypeError(`${d} is not a ReadableStream.`)}a($,"assertReadableStream");function B(c){return new J(c)}a(B,"AcquireReadableStreamDefaultReader");function C(c,d){c._reader._readRequests.push(d)}a(C,"ReadableStreamAddReadRequest");function N(c,d,g){let I=c._reader._readRequests.shift();g?I._closeSteps():I._chunkSteps(d)}a(N,"ReadableStreamFulfillReadRequest");function j(c){return c._reader._readRequests.length}a(j,"ReadableStreamGetNumReadRequests");function U(c){let d=c._reader;return!(d===void 0||!he(d))}a(U,"ReadableStreamHasDefaultReader");class J{static{a(this,"ReadableStreamDefaultReader")}constructor(d){if(et(d,1,"ReadableStreamDefaultReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");le(this,d),this._readRequests=new H}get closed(){return he(this)?this._closedPromise:f(lt("closed"))}cancel(d=void 0){return he(this)?this._ownerReadableStream===void 0?f(oe("cancel")):W(this,d):f(lt("cancel"))}read(){if(!he(this))return f(lt("read"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let d,g,S=l((F,V)=>{d=F,g=V});return ye(this,{_chunkSteps:a(F=>d({value:F,done:!1}),"_chunkSteps"),_closeSteps:a(()=>d({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(F=>g(F),"_errorSteps")}),S}releaseLock(){if(!he(this))throw lt("releaseLock");this._ownerReadableStream!==void 0&&Ze(this)}}Object.defineProperties(J.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(J.prototype.cancel,"cancel"),n(J.prototype.read,"read"),n(J.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(J.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function he(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof J}a(he,"IsReadableStreamDefaultReader");function ye(c,d){let g=c._ownerReadableStream;g._disturbed=!0,g._state==="closed"?d._closeSteps():g._state==="errored"?d._errorSteps(g._storedError):g._readableStreamController[ee](d)}a(ye,"ReadableStreamDefaultReaderRead");function Ze(c){Z(c);let d=new TypeError("Reader was released");ut(c,d)}a(Ze,"ReadableStreamDefaultReaderRelease");function ut(c,d){let g=c._readRequests;c._readRequests=new H,g.forEach(S=>{S._errorSteps(d)})}a(ut,"ReadableStreamDefaultReaderErrorReadRequests");function lt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(lt,"defaultReaderBrandCheckException");let Ve=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Ke{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(d,g){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=d,this._preventCancel=g}next(){let d=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?P(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?P(this._ongoingPromise,g,g):g()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let d=this._reader,g,S,I=l((V,fe)=>{g=V,S=fe});return ye(d,{_chunkSteps:a(V=>{this._ongoingPromise=void 0,x(()=>g({value:V,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),g({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(V=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),S(V)},"_errorSteps")}),I}_returnSteps(d){if(this._isFinished)return Promise.resolve({value:d,done:!0});this._isFinished=!0;let g=this._reader;if(!this._preventCancel){let S=W(g,d);return Z(g),P(S,()=>({value:d,done:!0}))}return Z(g),p({value:d,done:!0})}}let Et={next(){return Oi(this)?this._asyncIteratorImpl.next():f(ki("next"))},return(c){return Oi(this)?this._asyncIteratorImpl.return(c):f(ki("return"))}};Object.setPrototypeOf(Et,Ve);function Ri(c,d){let g=B(c),S=new Ke(g,d),I=Object.create(Et);return I._asyncIteratorImpl=S,I}a(Ri,"AcquireReadableStreamAsyncIterator");function Oi(c){if(!r(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Ke}catch{return!1}}a(Oi,"IsReadableStreamAsyncIterator");function ki(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(ki,"streamAsyncIteratorBrandCheckException");let cr=Number.isNaN||function(c){return c!==c};var An,Lt,Tt;function tt(c){return c.slice()}a(tt,"CreateArrayFromList");function ME(c,d,g,S,I){new Uint8Array(c).set(new Uint8Array(g,S,I),d)}a(ME,"CopyDataBlockBytes");let wn=a(c=>(typeof c.transfer=="function"?wn=a(d=>d.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?wn=a(d=>structuredClone(d,{transfer:[d]}),"TransferArrayBuffer"):wn=a(d=>d,"TransferArrayBuffer"),wn(c)),"TransferArrayBuffer"),Xn=a(c=>(typeof c.detached=="boolean"?Xn=a(d=>d.detached,"IsDetachedBuffer"):Xn=a(d=>d.byteLength===0,"IsDetachedBuffer"),Xn(c)),"IsDetachedBuffer");function LE(c,d,g){if(c.slice)return c.slice(d,g);let S=g-d,I=new ArrayBuffer(S);return ME(I,0,c,d,S),I}a(LE,"ArrayBufferSlice");function pl(c,d){let g=c[d];if(g!=null){if(typeof g!="function")throw new TypeError(`${String(d)} is not a function`);return g}}a(pl,"GetMethod");function _D(c){let d={[Symbol.iterator]:()=>c.iterator},g=(async function*(){return yield*d})(),S=g.next;return{iterator:g,nextMethod:S,done:!1}}a(_D,"CreateAsyncFromSyncIterator");let uh=(Tt=(An=Symbol.asyncIterator)!==null&&An!==void 0?An:(Lt=Symbol.for)===null||Lt===void 0?void 0:Lt.call(Symbol,"Symbol.asyncIterator"))!==null&&Tt!==void 0?Tt:"@@asyncIterator";function jE(c,d="sync",g){if(g===void 0)if(d==="async"){if(g=pl(c,uh),g===void 0){let F=pl(c,Symbol.iterator),V=jE(c,"sync",F);return _D(V)}}else g=pl(c,Symbol.iterator);if(g===void 0)throw new TypeError("The object is not iterable");let S=k(g,c,[]);if(!r(S))throw new TypeError("The iterator method must return an object");let I=S.next;return{iterator:S,nextMethod:I,done:!1}}a(jE,"GetIterator");function vD(c){let d=k(c.nextMethod,c.iterator,[]);if(!r(d))throw new TypeError("The iterator.next() method must return an object");return d}a(vD,"IteratorNext");function bD(c){return!!c.done}a(bD,"IteratorComplete");function SD(c){return c.value}a(SD,"IteratorValue");function PD(c){return!(typeof c!="number"||cr(c)||c<0)}a(PD,"IsNonNegativeNumber");function FE(c){let d=LE(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(FE,"CloneAsUint8Array");function lh(c){let d=c._queue.shift();return c._queueTotalSize-=d.size,c._queueTotalSize<0&&(c._queueTotalSize=0),d.value}a(lh,"DequeueValue");function dh(c,d,g){if(!PD(g)||g===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:d,size:g}),c._queueTotalSize+=g}a(dh,"EnqueueValueWithSize");function ED(c){return c._queue.peek().value}a(ED,"PeekQueueValue");function Yn(c){c._queue=new H,c._queueTotalSize=0}a(Yn,"ResetQueue");function BE(c){return c===DataView}a(BE,"isDataViewConstructor");function TD(c){return BE(c.constructor)}a(TD,"isDataView");function xD(c){return BE(c)?1:c.BYTES_PER_ELEMENT}a(xD,"arrayBufferViewElementSize");class Uo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!ph(this))throw yh("view");return this._view}respond(d){if(!ph(this))throw yh("respond");if(et(d,1,"respond"),d=R(d,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");gl(this._associatedReadableByteStreamController,d)}respondWithNewView(d){if(!ph(this))throw yh("respondWithNewView");if(et(d,1,"respondWithNewView"),!ArrayBuffer.isView(d))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(d.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");yl(this._associatedReadableByteStreamController,d)}}Object.defineProperties(Uo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),n(Uo.prototype.respond,"respond"),n(Uo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Uo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class In{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Mo(this))throw cs("byobRequest");return gh(this)}get desiredSize(){if(!Mo(this))throw cs("desiredSize");return YE(this)}close(){if(!Mo(this))throw cs("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let d=this._controlledReadableByteStream._state;if(d!=="readable")throw new TypeError(`The stream (in ${d} state) is not in the readable state and cannot be closed`);ss(this)}enqueue(d){if(!Mo(this))throw cs("enqueue");if(et(d,1,"enqueue"),!ArrayBuffer.isView(d))throw new TypeError("chunk must be an array buffer view");if(d.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(d.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let g=this._controlledReadableByteStream._state;if(g!=="readable")throw new TypeError(`The stream (in ${g} state) is not in the readable state and cannot be enqueued to`);hl(this,d)}error(d=void 0){if(!Mo(this))throw cs("error");wr(this,d)}[ce](d){qE(this),Yn(this);let g=this._cancelAlgorithm(d);return ml(this),g}[ee](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){XE(this,d);return}let S=this._autoAllocateChunkSize;if(S!==void 0){let I;try{I=new ArrayBuffer(S)}catch(V){d._errorSteps(V);return}let F={buffer:I,bufferByteLength:S,byteOffset:0,byteLength:S,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(F)}C(g,d),Lo(this)}[Le](){if(this._pendingPullIntos.length>0){let d=this._pendingPullIntos.peek();d.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(d)}}}Object.defineProperties(In.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),n(In.prototype.close,"close"),n(In.prototype.enqueue,"enqueue"),n(In.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(In.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Mo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof In}a(Mo,"IsReadableByteStreamController");function ph(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Uo}a(ph,"IsReadableStreamBYOBRequest");function Lo(c){if(!RD(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Lo(c)),null),S=>(wr(c,S),null))}a(Lo,"ReadableByteStreamControllerCallPullIfNeeded");function qE(c){mh(c),c._pendingPullIntos=new H}a(qE,"ReadableByteStreamControllerClearPendingPullIntos");function fh(c,d){let g=!1;c._state==="closed"&&(g=!0);let S=GE(d);d.readerType==="default"?N(c,S,g):DD(c,S,g)}a(fh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function GE(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(GE,"ReadableByteStreamControllerConvertPullIntoDescriptor");function fl(c,d,g,S){c._queue.push({buffer:d,byteOffset:g,byteLength:S}),c._queueTotalSize+=S}a(fl,"ReadableByteStreamControllerEnqueueChunkToQueue");function VE(c,d,g,S){let I;try{I=LE(d,g,g+S)}catch(F){throw wr(c,F),F}fl(c,I,0,S)}a(VE,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function HE(c,d){d.bytesFilled>0&&VE(c,d.buffer,d.byteOffset,d.bytesFilled),Ni(c)}a(HE,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function ZE(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),S=d.bytesFilled+g,I=g,F=!1,V=S%d.elementSize,fe=S-V;fe>=d.minimumFill&&(I=fe-d.bytesFilled,F=!0);let Ie=c._queue;for(;I>0;){let _e=Ie.peek(),Ne=Math.min(I,_e.byteLength),Fe=d.byteOffset+d.bytesFilled;ME(d.buffer,Fe,_e.buffer,_e.byteOffset,Ne),_e.byteLength===Ne?Ie.shift():(_e.byteOffset+=Ne,_e.byteLength-=Ne),c._queueTotalSize-=Ne,WE(c,Ne,d),I-=Ne}return F}a(ZE,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function WE(c,d,g){g.bytesFilled+=d}a(WE,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function KE(c){c._queueTotalSize===0&&c._closeRequested?(ml(c),ms(c._controlledReadableByteStream)):Lo(c)}a(KE,"ReadableByteStreamControllerHandleQueueDrain");function mh(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(mh,"ReadableByteStreamControllerInvalidateBYOBRequest");function hh(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let d=c._pendingPullIntos.peek();ZE(c,d)&&(Ni(c),fh(c._controlledReadableByteStream,d))}}a(hh,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function AD(c){let d=c._controlledReadableByteStream._reader;for(;d._readRequests.length>0;){if(c._queueTotalSize===0)return;let g=d._readRequests.shift();XE(c,g)}}a(AD,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function wD(c,d,g,S){let I=c._controlledReadableByteStream,F=d.constructor,V=xD(F),{byteOffset:fe,byteLength:Ie}=d,_e=g*V,Ne;try{Ne=wn(d.buffer)}catch(at){S._errorSteps(at);return}let Fe={buffer:Ne,bufferByteLength:Ne.byteLength,byteOffset:fe,byteLength:Ie,bytesFilled:0,minimumFill:_e,elementSize:V,viewConstructor:F,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Fe),tT(I,S);return}if(I._state==="closed"){let at=new F(Fe.buffer,Fe.byteOffset,0);S._closeSteps(at);return}if(c._queueTotalSize>0){if(ZE(c,Fe)){let at=GE(Fe);KE(c),S._chunkSteps(at);return}if(c._closeRequested){let at=new TypeError("Insufficient bytes to fill elements in the given buffer");wr(c,at),S._errorSteps(at);return}}c._pendingPullIntos.push(Fe),tT(I,S),Lo(c)}a(wD,"ReadableByteStreamControllerPullInto");function ID(c,d){d.readerType==="none"&&Ni(c);let g=c._controlledReadableByteStream;if(_h(g))for(;rT(g)>0;){let S=Ni(c);fh(g,S)}}a(ID,"ReadableByteStreamControllerRespondInClosedState");function CD(c,d,g){if(WE(c,d,g),g.readerType==="none"){HE(c,g),hh(c);return}if(g.bytesFilled<g.minimumFill)return;Ni(c);let S=g.bytesFilled%g.elementSize;if(S>0){let I=g.byteOffset+g.bytesFilled;VE(c,g.buffer,I-S,S)}g.bytesFilled-=S,fh(c._controlledReadableByteStream,g),hh(c)}a(CD,"ReadableByteStreamControllerRespondInReadableState");function JE(c,d){let g=c._pendingPullIntos.peek();mh(c),c._controlledReadableByteStream._state==="closed"?ID(c,g):CD(c,d,g),Lo(c)}a(JE,"ReadableByteStreamControllerRespondInternal");function Ni(c){return c._pendingPullIntos.shift()}a(Ni,"ReadableByteStreamControllerShiftPendingPullInto");function RD(c){let d=c._controlledReadableByteStream;return d._state!=="readable"||c._closeRequested||!c._started?!1:!!(U(d)&&j(d)>0||_h(d)&&rT(d)>0||YE(c)>0)}a(RD,"ReadableByteStreamControllerShouldCallPull");function ml(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(ml,"ReadableByteStreamControllerClearAlgorithms");function ss(c){let d=c._controlledReadableByteStream;if(!(c._closeRequested||d._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let g=c._pendingPullIntos.peek();if(g.bytesFilled%g.elementSize!==0){let S=new TypeError("Insufficient bytes to fill elements in the given buffer");throw wr(c,S),S}}ml(c),ms(d)}}a(ss,"ReadableByteStreamControllerClose");function hl(c,d){let g=c._controlledReadableByteStream;if(c._closeRequested||g._state!=="readable")return;let{buffer:S,byteOffset:I,byteLength:F}=d;if(Xn(S))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let V=wn(S);if(c._pendingPullIntos.length>0){let fe=c._pendingPullIntos.peek();if(Xn(fe.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");mh(c),fe.buffer=wn(fe.buffer),fe.readerType==="none"&&HE(c,fe)}if(U(g))if(AD(c),j(g)===0)fl(c,V,I,F);else{c._pendingPullIntos.length>0&&Ni(c);let fe=new Uint8Array(V,I,F);N(g,fe,!1)}else _h(g)?(fl(c,V,I,F),hh(c)):fl(c,V,I,F);Lo(c)}a(hl,"ReadableByteStreamControllerEnqueue");function wr(c,d){let g=c._controlledReadableByteStream;g._state==="readable"&&(qE(c),Yn(c),ml(c),AT(g,d))}a(wr,"ReadableByteStreamControllerError");function XE(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,KE(c);let S=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(S)}a(XE,"ReadableByteStreamControllerFillReadRequestFromQueue");function gh(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let d=c._pendingPullIntos.peek(),g=new Uint8Array(d.buffer,d.byteOffset+d.bytesFilled,d.byteLength-d.bytesFilled),S=Object.create(Uo.prototype);kD(S,c,g),c._byobRequest=S}return c._byobRequest}a(gh,"ReadableByteStreamControllerGetBYOBRequest");function YE(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(YE,"ReadableByteStreamControllerGetDesiredSize");function gl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(d===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(g.bytesFilled+d>g.byteLength)throw new RangeError("bytesWritten out of range")}g.buffer=wn(g.buffer),JE(c,d)}a(gl,"ReadableByteStreamControllerRespond");function yl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(d.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(g.byteOffset+g.bytesFilled!==d.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(g.bufferByteLength!==d.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(g.bytesFilled+d.byteLength>g.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=d.byteLength;g.buffer=wn(d.buffer),JE(c,I)}a(yl,"ReadableByteStreamControllerRespondWithNewView");function QE(c,d,g,S,I,F,V){d._controlledReadableByteStream=c,d._pullAgain=!1,d._pulling=!1,d._byobRequest=null,d._queue=d._queueTotalSize=void 0,Yn(d),d._closeRequested=!1,d._started=!1,d._strategyHWM=F,d._pullAlgorithm=S,d._cancelAlgorithm=I,d._autoAllocateChunkSize=V,d._pendingPullIntos=new H,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,Lo(d),null),Ie=>(wr(d,Ie),null))}a(QE,"SetUpReadableByteStreamController");function OD(c,d,g){let S=Object.create(In.prototype),I,F,V;d.start!==void 0?I=a(()=>d.start(S),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?F=a(()=>d.pull(S),"pullAlgorithm"):F=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?V=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):V=a(()=>p(void 0),"cancelAlgorithm");let fe=d.autoAllocateChunkSize;if(fe===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");QE(c,S,I,F,V,g,fe)}a(OD,"SetUpReadableByteStreamControllerFromUnderlyingSource");function kD(c,d,g){c._associatedReadableByteStreamController=d,c._view=g}a(kD,"SetUpReadableStreamBYOBRequest");function yh(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(yh,"byobRequestBrandCheckException");function cs(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(cs,"byteStreamControllerBrandCheckException");function ND(c,d){gt(c,d);let g=c?.mode;return{mode:g===void 0?void 0:$D(g,`${d} has member 'mode' that`)}}a(ND,"convertReaderOptions");function $D(c,d){if(c=`${c}`,c!=="byob")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a($D,"convertReadableStreamReaderMode");function zD(c,d){var g;gt(c,d);let S=(g=c?.min)!==null&&g!==void 0?g:1;return{min:R(S,`${d} has member 'min' that`)}}a(zD,"convertByobReadOptions");function eT(c){return new Qn(c)}a(eT,"AcquireReadableStreamBYOBReader");function tT(c,d){c._reader._readIntoRequests.push(d)}a(tT,"ReadableStreamAddReadIntoRequest");function DD(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(DD,"ReadableStreamFulfillReadIntoRequest");function rT(c){return c._reader._readIntoRequests.length}a(rT,"ReadableStreamGetNumReadIntoRequests");function _h(c){let d=c._reader;return!(d===void 0||!jo(d))}a(_h,"ReadableStreamHasBYOBReader");class Qn{static{a(this,"ReadableStreamBYOBReader")}constructor(d){if(et(d,1,"ReadableStreamBYOBReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Mo(d._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");le(this,d),this._readIntoRequests=new H}get closed(){return jo(this)?this._closedPromise:f(_l("closed"))}cancel(d=void 0){return jo(this)?this._ownerReadableStream===void 0?f(oe("cancel")):W(this,d):f(_l("cancel"))}read(d,g={}){if(!jo(this))return f(_l("read"));if(!ArrayBuffer.isView(d))return f(new TypeError("view must be an array buffer view"));if(d.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(d.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Xn(d.buffer))return f(new TypeError("view's buffer has been detached"));let S;try{S=zD(g,"options")}catch(_e){return f(_e)}let I=S.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(TD(d)){if(I>d.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>d.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let F,V,fe=l((_e,Ne)=>{F=_e,V=Ne});return nT(this,d,I,{_chunkSteps:a(_e=>F({value:_e,done:!1}),"_chunkSteps"),_closeSteps:a(_e=>F({value:_e,done:!0}),"_closeSteps"),_errorSteps:a(_e=>V(_e),"_errorSteps")}),fe}releaseLock(){if(!jo(this))throw _l("releaseLock");this._ownerReadableStream!==void 0&&UD(this)}}Object.defineProperties(Qn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(Qn.prototype.cancel,"cancel"),n(Qn.prototype.read,"read"),n(Qn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function jo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Qn}a(jo,"IsReadableStreamBYOBReader");function nT(c,d,g,S){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?S._errorSteps(I._storedError):wD(I._readableStreamController,d,g,S)}a(nT,"ReadableStreamBYOBReaderRead");function UD(c){Z(c);let d=new TypeError("Reader was released");oT(c,d)}a(UD,"ReadableStreamBYOBReaderRelease");function oT(c,d){let g=c._readIntoRequests;c._readIntoRequests=new H,g.forEach(S=>{S._errorSteps(d)})}a(oT,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _l(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(_l,"byobReaderBrandCheckException");function us(c,d){let{highWaterMark:g}=c;if(g===void 0)return d;if(cr(g)||g<0)throw new RangeError("Invalid highWaterMark");return g}a(us,"ExtractHighWaterMark");function vl(c){let{size:d}=c;return d||(()=>1)}a(vl,"ExtractSizeAlgorithm");function bl(c,d){gt(c,d);let g=c?.highWaterMark,S=c?.size;return{highWaterMark:g===void 0?void 0:T(g),size:S===void 0?void 0:MD(S,`${d} has member 'size' that`)}}a(bl,"convertQueuingStrategy");function MD(c,d){return _t(c,d),g=>T(c(g))}a(MD,"convertQueuingStrategySize");function LD(c,d){gt(c,d);let g=c?.abort,S=c?.close,I=c?.start,F=c?.type,V=c?.write;return{abort:g===void 0?void 0:jD(g,c,`${d} has member 'abort' that`),close:S===void 0?void 0:FD(S,c,`${d} has member 'close' that`),start:I===void 0?void 0:BD(I,c,`${d} has member 'start' that`),write:V===void 0?void 0:qD(V,c,`${d} has member 'write' that`),type:F}}a(LD,"convertUnderlyingSink");function jD(c,d,g){return _t(c,g),S=>L(c,d,[S])}a(jD,"convertUnderlyingSinkAbortCallback");function FD(c,d,g){return _t(c,g),()=>L(c,d,[])}a(FD,"convertUnderlyingSinkCloseCallback");function BD(c,d,g){return _t(c,g),S=>k(c,d,[S])}a(BD,"convertUnderlyingSinkStartCallback");function qD(c,d,g){return _t(c,g),(S,I)=>L(c,d,[S,I])}a(qD,"convertUnderlyingSinkWriteCallback");function iT(c,d){if(!$i(c))throw new TypeError(`${d} is not a WritableStream.`)}a(iT,"assertWritableStream");function GD(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(GD,"isAbortSignal");let VD=typeof AbortController=="function";function HD(){if(VD)return new AbortController}a(HD,"createAbortController");class eo{static{a(this,"WritableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let S=bl(g,"Second parameter"),I=LD(d,"First parameter");if(sT(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=vl(S),fe=us(S,1);aU(this,I,fe,V)}get locked(){if(!$i(this))throw xl("locked");return zi(this)}abort(d=void 0){return $i(this)?zi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):Sl(this,d):f(xl("abort"))}close(){return $i(this)?zi(this)?f(new TypeError("Cannot close a stream that already has a writer")):sn(this)?f(new TypeError("Cannot close an already-closing stream")):cT(this):f(xl("close"))}getWriter(){if(!$i(this))throw xl("getWriter");return aT(this)}}Object.defineProperties(eo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),n(eo.prototype.abort,"abort"),n(eo.prototype.close,"close"),n(eo.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function aT(c){return new Cn(c)}a(aT,"AcquireWritableStreamDefaultWriter");function ZD(c,d,g,S,I=1,F=()=>1){let V=Object.create(eo.prototype);sT(V);let fe=Object.create(Di.prototype);return mT(V,fe,c,d,g,S,I,F),V}a(ZD,"CreateWritableStream");function sT(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(sT,"InitializeWritableStream");function $i(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof eo}a($i,"IsWritableStream");function zi(c){return c._writer!==void 0}a(zi,"IsWritableStreamLocked");function Sl(c,d){var g;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=d,(g=c._writableStreamController._abortController)===null||g===void 0||g.abort(d);let S=c._state;if(S==="closed"||S==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;S==="erroring"&&(I=!0,d=void 0);let F=l((V,fe)=>{c._pendingAbortRequest={_promise:void 0,_resolve:V,_reject:fe,_reason:d,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=F,I||bh(c,d),F}a(Sl,"WritableStreamAbort");function cT(c){let d=c._state;if(d==="closed"||d==="errored")return f(new TypeError(`The stream (in ${d} state) is not in the writable state and cannot be closed`));let g=l((I,F)=>{let V={_resolve:I,_reject:F};c._closeRequest=V}),S=c._writer;return S!==void 0&&c._backpressure&&d==="writable"&&Ih(S),sU(c._writableStreamController),g}a(cT,"WritableStreamClose");function WD(c){return l((g,S)=>{let I={_resolve:g,_reject:S};c._writeRequests.push(I)})}a(WD,"WritableStreamAddWriteRequest");function vh(c,d){if(c._state==="writable"){bh(c,d);return}Sh(c)}a(vh,"WritableStreamDealWithRejection");function bh(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let S=c._writer;S!==void 0&&lT(S,d),!QD(c)&&g._started&&Sh(c)}a(bh,"WritableStreamStartErroring");function Sh(c){c._state="errored",c._writableStreamController[re]();let d=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(d)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){Pl(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),Pl(c);return}let S=c._writableStreamController[X](g._reason);m(S,()=>(g._resolve(),Pl(c),null),I=>(g._reject(I),Pl(c),null))}a(Sh,"WritableStreamFinishErroring");function KD(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(KD,"WritableStreamFinishInFlightWrite");function JD(c,d){c._inFlightWriteRequest._reject(d),c._inFlightWriteRequest=void 0,vh(c,d)}a(JD,"WritableStreamFinishInFlightWriteWithError");function XD(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let g=c._writer;g!==void 0&&_T(g)}a(XD,"WritableStreamFinishInFlightClose");function YD(c,d){c._inFlightCloseRequest._reject(d),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(d),c._pendingAbortRequest=void 0),vh(c,d)}a(YD,"WritableStreamFinishInFlightCloseWithError");function sn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(sn,"WritableStreamCloseQueuedOrInFlight");function QD(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(QD,"WritableStreamHasOperationMarkedInFlight");function eU(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(eU,"WritableStreamMarkCloseRequestInFlight");function tU(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(tU,"WritableStreamMarkFirstWriteRequestInFlight");function Pl(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let d=c._writer;d!==void 0&&Ah(d,c._storedError)}a(Pl,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Ph(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?mU(g):Ih(g)),c._backpressure=d}a(Ph,"WritableStreamUpdateBackpressure");class Cn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(et(d,1,"WritableStreamDefaultWriter"),iT(d,"First parameter"),zi(d))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=d,d._writer=this;let g=d._state;if(g==="writable")!sn(d)&&d._backpressure?wl(this):vT(this),Al(this);else if(g==="erroring")wh(this,d._storedError),Al(this);else if(g==="closed")vT(this),pU(this);else{let S=d._storedError;wh(this,S),yT(this,S)}}get closed(){return Fo(this)?this._closedPromise:f(Bo("closed"))}get desiredSize(){if(!Fo(this))throw Bo("desiredSize");if(this._ownerWritableStream===void 0)throw ds("desiredSize");return iU(this)}get ready(){return Fo(this)?this._readyPromise:f(Bo("ready"))}abort(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("abort")):rU(this,d):f(Bo("abort"))}close(){if(!Fo(this))return f(Bo("close"));let d=this._ownerWritableStream;return d===void 0?f(ds("close")):sn(d)?f(new TypeError("Cannot close an already-closing stream")):uT(this)}releaseLock(){if(!Fo(this))throw Bo("releaseLock");this._ownerWritableStream!==void 0&&dT(this)}write(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("write to")):pT(this,d):f(Bo("write"))}}Object.defineProperties(Cn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),n(Cn.prototype.abort,"abort"),n(Cn.prototype.close,"close"),n(Cn.prototype.releaseLock,"releaseLock"),n(Cn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Cn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Fo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Cn}a(Fo,"IsWritableStreamDefaultWriter");function rU(c,d){let g=c._ownerWritableStream;return Sl(g,d)}a(rU,"WritableStreamDefaultWriterAbort");function uT(c){let d=c._ownerWritableStream;return cT(d)}a(uT,"WritableStreamDefaultWriterClose");function nU(c){let d=c._ownerWritableStream,g=d._state;return sn(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):uT(c)}a(nU,"WritableStreamDefaultWriterCloseWithErrorPropagation");function oU(c,d){c._closedPromiseState==="pending"?Ah(c,d):fU(c,d)}a(oU,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function lT(c,d){c._readyPromiseState==="pending"?bT(c,d):hU(c,d)}a(lT,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function iU(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:hT(d._writableStreamController)}a(iU,"WritableStreamDefaultWriterGetDesiredSize");function dT(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");lT(c,g),oU(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(dT,"WritableStreamDefaultWriterRelease");function pT(c,d){let g=c._ownerWritableStream,S=g._writableStreamController,I=cU(S,d);if(g!==c._ownerWritableStream)return f(ds("write to"));let F=g._state;if(F==="errored")return f(g._storedError);if(sn(g)||F==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(F==="erroring")return f(g._storedError);let V=WD(g);return uU(S,d,I),V}a(pT,"WritableStreamDefaultWriterWrite");let fT={};class Di{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Eh(this))throw xh("abortReason");return this._abortReason}get signal(){if(!Eh(this))throw xh("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!Eh(this))throw xh("error");this._controlledWritableStream._state==="writable"&&gT(this,d)}[X](d){let g=this._abortAlgorithm(d);return El(this),g}[re](){Yn(this)}}Object.defineProperties(Di.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Di.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Eh(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Di}a(Eh,"IsWritableStreamDefaultController");function mT(c,d,g,S,I,F,V,fe){d._controlledWritableStream=c,c._writableStreamController=d,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._abortReason=void 0,d._abortController=HD(),d._started=!1,d._strategySizeAlgorithm=fe,d._strategyHWM=V,d._writeAlgorithm=S,d._closeAlgorithm=I,d._abortAlgorithm=F;let Ie=Th(d);Ph(c,Ie);let _e=g(),Ne=p(_e);m(Ne,()=>(d._started=!0,Tl(d),null),Fe=>(d._started=!0,vh(c,Fe),null))}a(mT,"SetUpWritableStreamDefaultController");function aU(c,d,g,S){let I=Object.create(Di.prototype),F,V,fe,Ie;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.write!==void 0?V=a(_e=>d.write(_e,I),"writeAlgorithm"):V=a(()=>p(void 0),"writeAlgorithm"),d.close!==void 0?fe=a(()=>d.close(),"closeAlgorithm"):fe=a(()=>p(void 0),"closeAlgorithm"),d.abort!==void 0?Ie=a(_e=>d.abort(_e),"abortAlgorithm"):Ie=a(()=>p(void 0),"abortAlgorithm"),mT(c,I,F,V,fe,Ie,g,S)}a(aU,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function El(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(El,"WritableStreamDefaultControllerClearAlgorithms");function sU(c){dh(c,fT,0),Tl(c)}a(sU,"WritableStreamDefaultControllerClose");function cU(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return ls(c,g),1}}a(cU,"WritableStreamDefaultControllerGetChunkSize");function hT(c){return c._strategyHWM-c._queueTotalSize}a(hT,"WritableStreamDefaultControllerGetDesiredSize");function uU(c,d,g){try{dh(c,d,g)}catch(I){ls(c,I);return}let S=c._controlledWritableStream;if(!sn(S)&&S._state==="writable"){let I=Th(c);Ph(S,I)}Tl(c)}a(uU,"WritableStreamDefaultControllerWrite");function Tl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){Sh(d);return}if(c._queue.length===0)return;let S=ED(c);S===fT?lU(c):dU(c,S)}a(Tl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ls(c,d){c._controlledWritableStream._state==="writable"&&gT(c,d)}a(ls,"WritableStreamDefaultControllerErrorIfNeeded");function lU(c){let d=c._controlledWritableStream;eU(d),lh(c);let g=c._closeAlgorithm();El(c),m(g,()=>(XD(d),null),S=>(YD(d,S),null))}a(lU,"WritableStreamDefaultControllerProcessClose");function dU(c,d){let g=c._controlledWritableStream;tU(g);let S=c._writeAlgorithm(d);m(S,()=>{KD(g);let I=g._state;if(lh(c),!sn(g)&&I==="writable"){let F=Th(c);Ph(g,F)}return Tl(c),null},I=>(g._state==="writable"&&El(c),JD(g,I),null))}a(dU,"WritableStreamDefaultControllerProcessWrite");function Th(c){return hT(c)<=0}a(Th,"WritableStreamDefaultControllerGetBackpressure");function gT(c,d){let g=c._controlledWritableStream;El(c),bh(g,d)}a(gT,"WritableStreamDefaultControllerError");function xl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(xl,"streamBrandCheckException$2");function xh(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(xh,"defaultControllerBrandCheckException$2");function Bo(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Bo,"defaultWriterBrandCheckException");function ds(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(ds,"defaultWriterLockException");function Al(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g,c._closedPromiseState="pending"})}a(Al,"defaultWriterClosedPromiseInitialize");function yT(c,d){Al(c),Ah(c,d)}a(yT,"defaultWriterClosedPromiseInitializeAsRejected");function pU(c){Al(c),_T(c)}a(pU,"defaultWriterClosedPromiseInitializeAsResolved");function Ah(c,d){c._closedPromise_reject!==void 0&&(E(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(Ah,"defaultWriterClosedPromiseReject");function fU(c,d){yT(c,d)}a(fU,"defaultWriterClosedPromiseResetToRejected");function _T(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(_T,"defaultWriterClosedPromiseResolve");function wl(c){c._readyPromise=l((d,g)=>{c._readyPromise_resolve=d,c._readyPromise_reject=g}),c._readyPromiseState="pending"}a(wl,"defaultWriterReadyPromiseInitialize");function wh(c,d){wl(c),bT(c,d)}a(wh,"defaultWriterReadyPromiseInitializeAsRejected");function vT(c){wl(c),Ih(c)}a(vT,"defaultWriterReadyPromiseInitializeAsResolved");function bT(c,d){c._readyPromise_reject!==void 0&&(E(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(bT,"defaultWriterReadyPromiseReject");function mU(c){wl(c)}a(mU,"defaultWriterReadyPromiseReset");function hU(c,d){wh(c,d)}a(hU,"defaultWriterReadyPromiseResetToRejected");function Ih(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(Ih,"defaultWriterReadyPromiseResolve");function gU(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(gU,"getGlobals");let Ch=gU();function yU(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(yU,"isDOMExceptionConstructor");function _U(){let c=Ch?.DOMException;return yU(c)?c:void 0}a(_U,"getFromGlobal");function vU(){let c=a(function(g,S){this.message=g||"",this.name=S||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return n(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(vU,"createPolyfill");let bU=_U()||vU();function ST(c,d,g,S,I,F){let V=B(c),fe=aT(d);c._disturbed=!0;let Ie=!1,_e=p(void 0);return l((Ne,Fe)=>{let at;if(F!==void 0){if(at=a(()=>{let be=F.reason!==void 0?F.reason:new bU("Aborted","AbortError"),qe=[];S||qe.push(()=>d._state==="writable"?Sl(d,be):p(void 0)),I||qe.push(()=>c._state==="readable"?qr(c,be):p(void 0)),Jt(()=>Promise.all(qe.map(st=>st())),!0,be)},"abortAlgorithm"),F.aborted){at();return}F.addEventListener("abort",at)}function Gr(){return l((be,qe)=>{function st(ur){ur?be():y(ji(),st,qe)}a(st,"next"),st(!1)})}a(Gr,"pipeLoop");function ji(){return Ie?p(!0):y(fe._readyPromise,()=>l((be,qe)=>{ye(V,{_chunkSteps:a(st=>{_e=y(pT(fe,st),void 0,e),be(!1)},"_chunkSteps"),_closeSteps:a(()=>be(!0),"_closeSteps"),_errorSteps:qe})}))}if(a(ji,"pipeStep"),On(c,V._closedPromise,be=>(S?Ir(!0,be):Jt(()=>Sl(d,be),!0,be),null)),On(d,fe._closedPromise,be=>(I?Ir(!0,be):Jt(()=>qr(c,be),!0,be),null)),Gt(c,V._closedPromise,()=>(g?Ir():Jt(()=>nU(fe)),null)),sn(d)||d._state==="closed"){let be=new TypeError("the destination writable stream closed before all data could be piped to it");I?Ir(!0,be):Jt(()=>qr(c,be),!0,be)}E(Gr());function oo(){let be=_e;return y(_e,()=>be!==_e?oo():void 0)}a(oo,"waitForWritesToFinish");function On(be,qe,st){be._state==="errored"?st(be._storedError):_(qe,st)}a(On,"isOrBecomesErrored");function Gt(be,qe,st){be._state==="closed"?st():h(qe,st)}a(Gt,"isOrBecomesClosed");function Jt(be,qe,st){if(Ie)return;Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),ur):ur();function ur(){return m(be(),()=>kn(qe,st),Fi=>kn(!0,Fi)),null}a(ur,"doTheRest")}a(Jt,"shutdownWithAction");function Ir(be,qe){Ie||(Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),()=>kn(be,qe)):kn(be,qe))}a(Ir,"shutdown");function kn(be,qe){return dT(fe),Z(V),F!==void 0&&F.removeEventListener("abort",at),be?Fe(qe):Ne(void 0),null}a(kn,"finalize")})}a(ST,"ReadableStreamPipeTo");class Rn{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Il(this))throw Rl("desiredSize");return Rh(this)}close(){if(!Il(this))throw Rl("close");if(!Mi(this))throw new TypeError("The stream is not in a state that permits close");qo(this)}enqueue(d=void 0){if(!Il(this))throw Rl("enqueue");if(!Mi(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ui(this,d)}error(d=void 0){if(!Il(this))throw Rl("error");Br(this,d)}[ce](d){Yn(this);let g=this._cancelAlgorithm(d);return Cl(this),g}[ee](d){let g=this._controlledReadableStream;if(this._queue.length>0){let S=lh(this);this._closeRequested&&this._queue.length===0?(Cl(this),ms(g)):ps(this),d._chunkSteps(S)}else C(g,d),ps(this)}[Le](){}}Object.defineProperties(Rn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Rn.prototype.close,"close"),n(Rn.prototype.enqueue,"enqueue"),n(Rn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Rn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Il(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Rn}a(Il,"IsReadableStreamDefaultController");function ps(c){if(!PT(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,ps(c)),null),S=>(Br(c,S),null))}a(ps,"ReadableStreamDefaultControllerCallPullIfNeeded");function PT(c){let d=c._controlledReadableStream;return!Mi(c)||!c._started?!1:!!(ro(d)&&j(d)>0||Rh(c)>0)}a(PT,"ReadableStreamDefaultControllerShouldCallPull");function Cl(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Cl,"ReadableStreamDefaultControllerClearAlgorithms");function qo(c){if(!Mi(c))return;let d=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Cl(c),ms(d))}a(qo,"ReadableStreamDefaultControllerClose");function Ui(c,d){if(!Mi(c))return;let g=c._controlledReadableStream;if(ro(g)&&j(g)>0)N(g,d,!1);else{let S;try{S=c._strategySizeAlgorithm(d)}catch(I){throw Br(c,I),I}try{dh(c,d,S)}catch(I){throw Br(c,I),I}}ps(c)}a(Ui,"ReadableStreamDefaultControllerEnqueue");function Br(c,d){let g=c._controlledReadableStream;g._state==="readable"&&(Yn(c),Cl(c),AT(g,d))}a(Br,"ReadableStreamDefaultControllerError");function Rh(c){let d=c._controlledReadableStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Rh,"ReadableStreamDefaultControllerGetDesiredSize");function SU(c){return!PT(c)}a(SU,"ReadableStreamDefaultControllerHasBackpressure");function Mi(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Mi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function ET(c,d,g,S,I,F,V){d._controlledReadableStream=c,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._started=!1,d._closeRequested=!1,d._pullAgain=!1,d._pulling=!1,d._strategySizeAlgorithm=V,d._strategyHWM=F,d._pullAlgorithm=S,d._cancelAlgorithm=I,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,ps(d),null),Ie=>(Br(d,Ie),null))}a(ET,"SetUpReadableStreamDefaultController");function PU(c,d,g,S){let I=Object.create(Rn.prototype),F,V,fe;d.start!==void 0?F=a(()=>d.start(I),"startAlgorithm"):F=a(()=>{},"startAlgorithm"),d.pull!==void 0?V=a(()=>d.pull(I),"pullAlgorithm"):V=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?fe=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):fe=a(()=>p(void 0),"cancelAlgorithm"),ET(c,I,F,V,fe,g,S)}a(PU,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Rl,"defaultControllerBrandCheckException$1");function EU(c,d){return Mo(c._readableStreamController)?xU(c):TU(c)}a(EU,"ReadableStreamTee");function TU(c,d){let g=B(c),S=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(Gt=>{Fe=Gt});function Gr(){return S?(I=!0,p(void 0)):(S=!0,ye(g,{_chunkSteps:a(Jt=>{x(()=>{I=!1;let Ir=Jt,kn=Jt;F||Ui(_e._readableStreamController,Ir),V||Ui(Ne._readableStreamController,kn),S=!1,I&&Gr()})},"_chunkSteps"),_closeSteps:a(()=>{S=!1,F||qo(_e._readableStreamController),V||qo(Ne._readableStreamController),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{S=!1},"_errorSteps")}),p(void 0))}a(Gr,"pullAlgorithm");function ji(Gt){if(F=!0,fe=Gt,V){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(ji,"cancel1Algorithm");function oo(Gt){if(V=!0,Ie=Gt,F){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(oo,"cancel2Algorithm");function On(){}return a(On,"startAlgorithm"),_e=fs(On,Gr,ji),Ne=fs(On,Gr,oo),_(g._closedPromise,Gt=>(Br(_e._readableStreamController,Gt),Br(Ne._readableStreamController,Gt),(!F||!V)&&Fe(void 0),null)),[_e,Ne]}a(TU,"ReadableStreamDefaultTee");function xU(c){let d=B(c),g=!1,S=!1,I=!1,F=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(be=>{Fe=be});function Gr(be){_(be._closedPromise,qe=>(be!==d||(wr(_e._readableStreamController,qe),wr(Ne._readableStreamController,qe),(!F||!V)&&Fe(void 0)),null))}a(Gr,"forwardReaderError");function ji(){jo(d)&&(Z(d),d=B(c),Gr(d)),ye(d,{_chunkSteps:a(qe=>{x(()=>{S=!1,I=!1;let st=qe,ur=qe;if(!F&&!V)try{ur=FE(qe)}catch(Fi){wr(_e._readableStreamController,Fi),wr(Ne._readableStreamController,Fi),Fe(qr(c,Fi));return}F||hl(_e._readableStreamController,st),V||hl(Ne._readableStreamController,ur),g=!1,S?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(()=>{g=!1,F||ss(_e._readableStreamController),V||ss(Ne._readableStreamController),_e._readableStreamController._pendingPullIntos.length>0&&gl(_e._readableStreamController,0),Ne._readableStreamController._pendingPullIntos.length>0&&gl(Ne._readableStreamController,0),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(ji,"pullWithDefaultReader");function oo(be,qe){he(d)&&(Z(d),d=eT(c),Gr(d));let st=qe?Ne:_e,ur=qe?_e:Ne;nT(d,be,1,{_chunkSteps:a(Bi=>{x(()=>{S=!1,I=!1;let qi=qe?V:F;if(qe?F:V)qi||yl(st._readableStreamController,Bi);else{let LT;try{LT=FE(Bi)}catch(zh){wr(st._readableStreamController,zh),wr(ur._readableStreamController,zh),Fe(qr(c,zh));return}qi||yl(st._readableStreamController,Bi),hl(ur._readableStreamController,LT)}g=!1,S?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(Bi=>{g=!1;let qi=qe?V:F,Ml=qe?F:V;qi||ss(st._readableStreamController),Ml||ss(ur._readableStreamController),Bi!==void 0&&(qi||yl(st._readableStreamController,Bi),!Ml&&ur._readableStreamController._pendingPullIntos.length>0&&gl(ur._readableStreamController,0)),(!qi||!Ml)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(oo,"pullWithBYOBReader");function On(){if(g)return S=!0,p(void 0);g=!0;let be=gh(_e._readableStreamController);return be===null?ji():oo(be._view,!1),p(void 0)}a(On,"pull1Algorithm");function Gt(){if(g)return I=!0,p(void 0);g=!0;let be=gh(Ne._readableStreamController);return be===null?ji():oo(be._view,!0),p(void 0)}a(Gt,"pull2Algorithm");function Jt(be){if(F=!0,fe=be,V){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Jt,"cancel1Algorithm");function Ir(be){if(V=!0,Ie=be,F){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Ir,"cancel2Algorithm");function kn(){}return a(kn,"startAlgorithm"),_e=xT(kn,On,Jt),Ne=xT(kn,Gt,Ir),Gr(d),[_e,Ne]}a(xU,"ReadableByteStreamTee");function AU(c){return r(c)&&typeof c.getReader<"u"}a(AU,"isReadableStreamLike");function wU(c){return AU(c)?CU(c.getReader()):IU(c)}a(wU,"ReadableStreamFrom");function IU(c){let d,g=jE(c,"async"),S=e;function I(){let V;try{V=vD(g)}catch(Ie){return f(Ie)}let fe=p(V);return P(fe,Ie=>{if(!r(Ie))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(bD(Ie))qo(d._readableStreamController);else{let Ne=SD(Ie);Ui(d._readableStreamController,Ne)}})}a(I,"pullAlgorithm");function F(V){let fe=g.iterator,Ie;try{Ie=pl(fe,"return")}catch(Fe){return f(Fe)}if(Ie===void 0)return p(void 0);let _e;try{_e=k(Ie,fe,[V])}catch(Fe){return f(Fe)}let Ne=p(_e);return P(Ne,Fe=>{if(!r(Fe))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(F,"cancelAlgorithm"),d=fs(S,I,F,0),d}a(IU,"ReadableStreamFromIterable");function CU(c){let d,g=e;function S(){let F;try{F=c.read()}catch(V){return f(V)}return P(F,V=>{if(!r(V))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(V.done)qo(d._readableStreamController);else{let fe=V.value;Ui(d._readableStreamController,fe)}})}a(S,"pullAlgorithm");function I(F){try{return p(c.cancel(F))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=fs(g,S,I,0),d}a(CU,"ReadableStreamFromDefaultReader");function RU(c,d){gt(c,d);let g=c,S=g?.autoAllocateChunkSize,I=g?.cancel,F=g?.pull,V=g?.start,fe=g?.type;return{autoAllocateChunkSize:S===void 0?void 0:R(S,`${d} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:OU(I,g,`${d} has member 'cancel' that`),pull:F===void 0?void 0:kU(F,g,`${d} has member 'pull' that`),start:V===void 0?void 0:NU(V,g,`${d} has member 'start' that`),type:fe===void 0?void 0:$U(fe,`${d} has member 'type' that`)}}a(RU,"convertUnderlyingDefaultOrByteSource");function OU(c,d,g){return _t(c,g),S=>L(c,d,[S])}a(OU,"convertUnderlyingSourceCancelCallback");function kU(c,d,g){return _t(c,g),S=>L(c,d,[S])}a(kU,"convertUnderlyingSourcePullCallback");function NU(c,d,g){return _t(c,g),S=>k(c,d,[S])}a(NU,"convertUnderlyingSourceStartCallback");function $U(c,d){if(c=`${c}`,c!=="bytes")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a($U,"convertReadableStreamType");function zU(c,d){return gt(c,d),{preventCancel:!!c?.preventCancel}}a(zU,"convertIteratorOptions");function TT(c,d){gt(c,d);let g=c?.preventAbort,S=c?.preventCancel,I=c?.preventClose,F=c?.signal;return F!==void 0&&DU(F,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!S,preventClose:!!I,signal:F}}a(TT,"convertPipeOptions");function DU(c,d){if(!GD(c))throw new TypeError(`${d} is not an AbortSignal.`)}a(DU,"assertAbortSignal");function UU(c,d){gt(c,d);let g=c?.readable;b(g,"readable","ReadableWritablePair"),$(g,`${d} has member 'readable' that`);let S=c?.writable;return b(S,"writable","ReadableWritablePair"),iT(S,`${d} has member 'writable' that`),{readable:g,writable:S}}a(UU,"convertReadableWritablePair");class jt{static{a(this,"ReadableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let S=bl(g,"Second parameter"),I=RU(d,"First parameter");if(Oh(this),I.type==="bytes"){if(S.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let F=us(S,0);OD(this,I,F)}else{let F=vl(S),V=us(S,1);PU(this,I,V,F)}}get locked(){if(!to(this))throw Go("locked");return ro(this)}cancel(d=void 0){return to(this)?ro(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):qr(this,d):f(Go("cancel"))}getReader(d=void 0){if(!to(this))throw Go("getReader");return ND(d,"First parameter").mode===void 0?B(this):eT(this)}pipeThrough(d,g={}){if(!to(this))throw Go("pipeThrough");et(d,1,"pipeThrough");let S=UU(d,"First parameter"),I=TT(g,"Second parameter");if(ro(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(zi(S.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let F=ST(this,S.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return E(F),S.readable}pipeTo(d,g={}){if(!to(this))return f(Go("pipeTo"));if(d===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!$i(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let S;try{S=TT(g,"Second parameter")}catch(I){return f(I)}return ro(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):zi(d)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ST(this,d,S.preventClose,S.preventAbort,S.preventCancel,S.signal)}tee(){if(!to(this))throw Go("tee");let d=EU(this);return tt(d)}values(d=void 0){if(!to(this))throw Go("values");let g=zU(d,"First parameter");return Ri(this,g.preventCancel)}[uh](d){return this.values(d)}static from(d){return wU(d)}}Object.defineProperties(jt,{from:{enumerable:!0}}),Object.defineProperties(jt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),n(jt.from,"from"),n(jt.prototype.cancel,"cancel"),n(jt.prototype.getReader,"getReader"),n(jt.prototype.pipeThrough,"pipeThrough"),n(jt.prototype.pipeTo,"pipeTo"),n(jt.prototype.tee,"tee"),n(jt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(jt.prototype,uh,{value:jt.prototype.values,writable:!0,configurable:!0});function fs(c,d,g,S=1,I=()=>1){let F=Object.create(jt.prototype);Oh(F);let V=Object.create(Rn.prototype);return ET(F,V,c,d,g,S,I),F}a(fs,"CreateReadableStream");function xT(c,d,g){let S=Object.create(jt.prototype);Oh(S);let I=Object.create(In.prototype);return QE(S,I,c,d,g,0,void 0),S}a(xT,"CreateReadableByteStream");function Oh(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(Oh,"InitializeReadableStream");function to(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof jt}a(to,"IsReadableStream");function ro(c){return c._reader!==void 0}a(ro,"IsReadableStreamLocked");function qr(c,d){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);ms(c);let g=c._reader;if(g!==void 0&&jo(g)){let I=g._readIntoRequests;g._readIntoRequests=new H,I.forEach(F=>{F._closeSteps(void 0)})}let S=c._readableStreamController[ce](d);return P(S,e)}a(qr,"ReadableStreamCancel");function ms(c){c._state="closed";let d=c._reader;if(d!==void 0&&(Qe(d),he(d))){let g=d._readRequests;d._readRequests=new H,g.forEach(S=>{S._closeSteps()})}}a(ms,"ReadableStreamClose");function AT(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(ze(g,d),he(g)?ut(g,d):oT(g,d))}a(AT,"ReadableStreamError");function Go(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Go,"streamBrandCheckException$1");function wT(c,d){gt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:T(g)}}a(wT,"convertQueuingStrategyInit");let IT=a(c=>c.byteLength,"byteLengthSizeFunction");n(IT,"size");class Ol{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){et(d,1,"ByteLengthQueuingStrategy"),d=wT(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!RT(this))throw CT("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!RT(this))throw CT("size");return IT}}Object.defineProperties(Ol.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ol.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function CT(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(CT,"byteLengthBrandCheckException");function RT(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Ol}a(RT,"IsByteLengthQueuingStrategy");let OT=a(()=>1,"countSizeFunction");n(OT,"size");class kl{static{a(this,"CountQueuingStrategy")}constructor(d){et(d,1,"CountQueuingStrategy"),d=wT(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!NT(this))throw kT("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!NT(this))throw kT("size");return OT}}Object.defineProperties(kl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(kl.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function kT(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(kT,"countBrandCheckException");function NT(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof kl}a(NT,"IsCountQueuingStrategy");function MU(c,d){gt(c,d);let g=c?.cancel,S=c?.flush,I=c?.readableType,F=c?.start,V=c?.transform,fe=c?.writableType;return{cancel:g===void 0?void 0:BU(g,c,`${d} has member 'cancel' that`),flush:S===void 0?void 0:LU(S,c,`${d} has member 'flush' that`),readableType:I,start:F===void 0?void 0:jU(F,c,`${d} has member 'start' that`),transform:V===void 0?void 0:FU(V,c,`${d} has member 'transform' that`),writableType:fe}}a(MU,"convertTransformer");function LU(c,d,g){return _t(c,g),S=>L(c,d,[S])}a(LU,"convertTransformerFlushCallback");function jU(c,d,g){return _t(c,g),S=>k(c,d,[S])}a(jU,"convertTransformerStartCallback");function FU(c,d,g){return _t(c,g),(S,I)=>L(c,d,[S,I])}a(FU,"convertTransformerTransformCallback");function BU(c,d,g){return _t(c,g),S=>L(c,d,[S])}a(BU,"convertTransformerCancelCallback");class Nl{static{a(this,"TransformStream")}constructor(d={},g={},S={}){d===void 0&&(d=null);let I=bl(g,"Second parameter"),F=bl(S,"Third parameter"),V=MU(d,"First parameter");if(V.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(V.writableType!==void 0)throw new RangeError("Invalid writableType specified");let fe=us(F,0),Ie=vl(F),_e=us(I,1),Ne=vl(I),Fe,at=l(Gr=>{Fe=Gr});qU(this,at,_e,Ne,fe,Ie),VU(this,V),V.start!==void 0?Fe(V.start(this._transformStreamController)):Fe(void 0)}get readable(){if(!$T(this))throw MT("readable");return this._readable}get writable(){if(!$T(this))throw MT("writable");return this._writable}}Object.defineProperties(Nl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function qU(c,d,g,S,I,F){function V(){return d}a(V,"startAlgorithm");function fe(at){return WU(c,at)}a(fe,"writeAlgorithm");function Ie(at){return KU(c,at)}a(Ie,"abortAlgorithm");function _e(){return JU(c)}a(_e,"closeAlgorithm"),c._writable=ZD(V,fe,_e,Ie,g,S);function Ne(){return XU(c)}a(Ne,"pullAlgorithm");function Fe(at){return YU(c,at)}a(Fe,"cancelAlgorithm"),c._readable=fs(V,Ne,Fe,I,F),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,$l(c,!0),c._transformStreamController=void 0}a(qU,"InitializeTransformStream");function $T(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Nl}a($T,"IsTransformStream");function zT(c,d){Br(c._readable._readableStreamController,d),kh(c,d)}a(zT,"TransformStreamError");function kh(c,d){Dl(c._transformStreamController),ls(c._writable._writableStreamController,d),Nh(c)}a(kh,"TransformStreamErrorWritableAndUnblockWrite");function Nh(c){c._backpressure&&$l(c,!1)}a(Nh,"TransformStreamUnblockWrite");function $l(c,d){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(g=>{c._backpressureChangePromise_resolve=g}),c._backpressure=d}a($l,"TransformStreamSetBackpressure");class no{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!zl(this))throw Ul("desiredSize");let d=this._controlledTransformStream._readable._readableStreamController;return Rh(d)}enqueue(d=void 0){if(!zl(this))throw Ul("enqueue");DT(this,d)}error(d=void 0){if(!zl(this))throw Ul("error");HU(this,d)}terminate(){if(!zl(this))throw Ul("terminate");ZU(this)}}Object.defineProperties(no.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),n(no.prototype.enqueue,"enqueue"),n(no.prototype.error,"error"),n(no.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(no.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function zl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof no}a(zl,"IsTransformStreamDefaultController");function GU(c,d,g,S,I){d._controlledTransformStream=c,c._transformStreamController=d,d._transformAlgorithm=g,d._flushAlgorithm=S,d._cancelAlgorithm=I,d._finishPromise=void 0,d._finishPromise_resolve=void 0,d._finishPromise_reject=void 0}a(GU,"SetUpTransformStreamDefaultController");function VU(c,d){let g=Object.create(no.prototype),S,I,F;d.transform!==void 0?S=a(V=>d.transform(V,g),"transformAlgorithm"):S=a(V=>{try{return DT(g,V),p(void 0)}catch(fe){return f(fe)}},"transformAlgorithm"),d.flush!==void 0?I=a(()=>d.flush(g),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),d.cancel!==void 0?F=a(V=>d.cancel(V),"cancelAlgorithm"):F=a(()=>p(void 0),"cancelAlgorithm"),GU(c,g,S,I,F)}a(VU,"SetUpTransformStreamDefaultControllerFromTransformer");function Dl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Dl,"TransformStreamDefaultControllerClearAlgorithms");function DT(c,d){let g=c._controlledTransformStream,S=g._readable._readableStreamController;if(!Mi(S))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ui(S,d)}catch(F){throw kh(g,F),g._readable._storedError}SU(S)!==g._backpressure&&$l(g,!0)}a(DT,"TransformStreamDefaultControllerEnqueue");function HU(c,d){zT(c._controlledTransformStream,d)}a(HU,"TransformStreamDefaultControllerError");function UT(c,d){let g=c._transformAlgorithm(d);return P(g,void 0,S=>{throw zT(c._controlledTransformStream,S),S})}a(UT,"TransformStreamDefaultControllerPerformTransform");function ZU(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;qo(g);let S=new TypeError("TransformStream terminated");kh(d,S)}a(ZU,"TransformStreamDefaultControllerTerminate");function WU(c,d){let g=c._transformStreamController;if(c._backpressure){let S=c._backpressureChangePromise;return P(S,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return UT(g,d)})}return UT(g,d)}a(WU,"TransformStreamDefaultSinkWriteAlgorithm");function KU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let S=c._readable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(S._state==="errored"?Li(g,S._storedError):(Br(S._readableStreamController,d),$h(g)),null),F=>(Br(S._readableStreamController,F),Li(g,F),null)),g._finishPromise}a(KU,"TransformStreamDefaultSinkAbortAlgorithm");function JU(c){let d=c._transformStreamController;if(d._finishPromise!==void 0)return d._finishPromise;let g=c._readable;d._finishPromise=l((I,F)=>{d._finishPromise_resolve=I,d._finishPromise_reject=F});let S=d._flushAlgorithm();return Dl(d),m(S,()=>(g._state==="errored"?Li(d,g._storedError):(qo(g._readableStreamController),$h(d)),null),I=>(Br(g._readableStreamController,I),Li(d,I),null)),d._finishPromise}a(JU,"TransformStreamDefaultSinkCloseAlgorithm");function XU(c){return $l(c,!1),c._backpressureChangePromise}a(XU,"TransformStreamDefaultSourcePullAlgorithm");function YU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let S=c._writable;g._finishPromise=l((F,V)=>{g._finishPromise_resolve=F,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return Dl(g),m(I,()=>(S._state==="errored"?Li(g,S._storedError):(ls(S._writableStreamController,d),Nh(c),$h(g)),null),F=>(ls(S._writableStreamController,F),Nh(c),Li(g,F),null)),g._finishPromise}a(YU,"TransformStreamDefaultSourceCancelAlgorithm");function Ul(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(Ul,"defaultControllerBrandCheckException");function $h(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a($h,"defaultControllerFinishPromiseResolve");function Li(c,d){c._finishPromise_reject!==void 0&&(E(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Li,"defaultControllerFinishPromiseReject");function MT(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(MT,"streamBrandCheckException"),t.ByteLengthQueuingStrategy=Ol,t.CountQueuingStrategy=kl,t.ReadableByteStreamController=In,t.ReadableStream=jt,t.ReadableStreamBYOBReader=Qn,t.ReadableStreamBYOBRequest=Uo,t.ReadableStreamDefaultController=Rn,t.ReadableStreamDefaultReader=J,t.TransformStream=Nl,t.TransformStreamDefaultController=no,t.WritableStream=eo,t.WritableStreamDefaultController=Di,t.WritableStreamDefaultWriter=Cn}))});var FO=z(()=>{if(!globalThis.ReadableStream)try{let t=require("node:process"),{emitWarning:e}=t;try{t.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),t.emitWarning=e}catch(r){throw t.emitWarning=e,r}}catch{Object.assign(globalThis,jO())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=a(function(r){let o=0,n=this;return new ReadableStream({type:"bytes",async pull(i){let u=await n.slice(o,Math.min(n.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===n.size&&i.close()}})},"name"))}catch{}});async function*Wb(t,e=!0){for(let r of t)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(e){let o=r.byteOffset,n=r.byteOffset+r.byteLength;for(;o!==n;){let i=Math.min(n-o,BO),s=r.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield r;else{let o=0,n=r;for(;o!==n.size;){let s=await n.slice(o,Math.min(n.size,o+BO)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var kie,BO,qO,n6,Jr,Tu=Ct(()=>{kie=xt(FO(),1);BO=65536;a(Wb,"toIterator");qO=class Kb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(e=[],r={}){if(typeof e!="object"||e===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof e[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let o=new TextEncoder;for(let i of e){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Kb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let n=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(n)?n:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,r="";for await(let o of Wb(this.#e,!1))r+=e.decode(o,{stream:!0});return r+=e.decode(),r}async arrayBuffer(){let e=new Uint8Array(this.size),r=0;for await(let o of Wb(this.#e,!1))e.set(o,r),r+=o.length;return e.buffer}stream(){let e=Wb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let o=await e.next();o.done?r.close():r.enqueue(o.value)},async cancel(){await e.return()}})}slice(e=0,r=this.size,o=""){let{size:n}=this,i=e<0?Math.max(n+e,0):Math.min(e,n),s=r<0?Math.max(n+r,0):Math.min(r,n),u=Math.max(s-i,0),l=this.#e,p=[],f=0;for(let m of l){if(f>=u)break;let h=ArrayBuffer.isView(m)?m.byteLength:m.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(m)?(_=m.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=m.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let y=new Kb([],{type:String(o).toLowerCase()});return y.#r=u,y.#e=p,y}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e=="object"&&typeof e.constructor=="function"&&(typeof e.stream=="function"||typeof e.arrayBuffer=="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}};Object.defineProperties(qO.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});n6=qO,Jr=n6});var o6,i6,Io,Jb=Ct(()=>{Tu();o6=class extends Jr{static{a(this,"File")}#e=0;#t="";constructor(e,r,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,o),o===null&&(o={});let n=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(n)||(this.#e=n),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof Jr&&/^(File)$/.test(e[Symbol.toStringTag])}},i6=o6,Io=i6});function HO(t,e=Jr){var r=`${GO()}${GO()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],n=`--${r}\r
|
|
15
|
-
Content-Disposition: form-data; name="`;return t.forEach((i,s)=>typeof i=="string"?o.push(n+
|
|
13
|
+
`;let l=(0,y6.parseProxyResponse)(n);n.write(`${u}\r
|
|
14
|
+
`);let{connect:p,buffered:f}=await l;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",_6),r.secureEndpoint?(Eu("Upgrading socket connection to TLS"),BO.connect({...GO(qO(r),"host","path","port"),socket:n})):n;n.destroy();let y=new Df.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{Eu("Replaying proxy buffer for failed request"),(0,f6.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};zf.protocols=["http","https"];Dr.HttpsProxyAgent=zf;function _6(t){t.resume()}a(_6,"resume");function GO(t,...e){let r={},o;for(o in t)e.includes(o)||(r[o]=t[o]);return r}a(GO,"omit")});function v6(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let r=t.substring(5,e).split(";"),o="",n=!1,i=r[0]||"text/plain",s=i;for(let f=1;f<r.length;f++)r[f]==="base64"?n=!0:r[f]&&(s+=`;${r[f]}`,r[f].indexOf("charset=")===0&&(o=r[f].substring(8)));!r[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=n?"base64":"ascii",l=unescape(t.substring(e+1)),p=Buffer.from(l,u);return p.type=i,p.typeFull=s,p.charset=o,p}var WO,KO=Ct(()=>{a(v6,"dataUriToBuffer");WO=v6});var XO=D((Uf,JO)=>{(function(t,e){typeof Uf=="object"&&typeof JO<"u"?e(Uf):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(Uf,(function(t){"use strict";function e(){}a(e,"noop");function r(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(r,"typeIsObject");let o=e;function n(c,d){try{Object.defineProperty(c,"name",{value:d,configurable:!0})}catch{}}a(n,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function l(c){return new i(c)}a(l,"newPromise");function p(c){return l(d=>d(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function y(c,d,g){return s.call(c,d,g)}a(y,"PerformPromiseThen");function m(c,d,g){y(y(c,d,g),void 0,o)}a(m,"uponPromise");function h(c,d){m(c,d)}a(h,"uponFulfillment");function _(c,d){m(c,void 0,d)}a(_,"uponRejection");function S(c,d,g){return y(c,d,g)}a(S,"transformPromiseWith");function E(c){y(c,void 0,o)}a(E,"setPromiseIsHandledToTrue");let T=a(c=>{if(typeof queueMicrotask=="function")T=queueMicrotask;else{let d=p(void 0);T=a(g=>y(d,g),"_queueMicrotask")}return T(c)},"_queueMicrotask");function k(c,d,g){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,d,g)}a(k,"reflectCall");function F(c,d,g){try{return p(k(c,d,g))}catch(P){return f(P)}}a(F,"promiseCall");let Y=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(d){let g=this._back,P=g;g._elements.length===Y-1&&(P={_elements:[],_next:void 0}),g._elements.push(d),P!==g&&(this._back=P,g._next=P),++this._size}shift(){let d=this._front,g=d,P=this._cursor,I=P+1,j=d._elements,V=j[P];return I===Y&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),j[P]=void 0,V}forEach(d){let g=this._cursor,P=this._front,I=P._elements;for(;(g!==I.length||P._next!==void 0)&&!(g===I.length&&(P=P._next,I=P._elements,g=0,I.length===0));)d(I[g]),++g}peek(){let d=this._front,g=this._cursor;return d._elements[g]}}let W=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ce=Symbol("[[CancelSteps]]"),ee=Symbol("[[PullSteps]]"),Le=Symbol("[[ReleaseSteps]]");function le(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?Q(c):d._state==="closed"?me(c):de(c,d._storedError)}a(le,"ReadableStreamReaderGenericInitialize");function K(c,d){let g=c._ownerReadableStream;return qr(g,d)}a(K,"ReadableStreamReaderGenericCancel");function Z(c){let d=c._ownerReadableStream;d._state==="readable"?De(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):je(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),d._readableStreamController[Le](),d._reader=void 0,c._ownerReadableStream=void 0}a(Z,"ReadableStreamReaderGenericRelease");function oe(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(oe,"readerLockException");function Q(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g})}a(Q,"defaultReaderClosedPromiseInitialize");function de(c,d){Q(c),De(c,d)}a(de,"defaultReaderClosedPromiseInitializeAsRejected");function me(c){Q(c),Qe(c)}a(me,"defaultReaderClosedPromiseInitializeAsResolved");function De(c,d){c._closedPromise_reject!==void 0&&(E(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(De,"defaultReaderClosedPromiseReject");function je(c,d){de(c,d)}a(je,"defaultReaderClosedPromiseResetToRejected");function Qe(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Qe,"defaultReaderClosedPromiseResolve");let it=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},It=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function se(c){return typeof c=="object"||typeof c=="function"}a(se,"isDictionary");function gt(c,d){if(c!==void 0&&!se(c))throw new TypeError(`${d} is not an object.`)}a(gt,"assertDictionary");function _t(c,d){if(typeof c!="function")throw new TypeError(`${d} is not a function.`)}a(_t,"assertFunction");function sr(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(sr,"isObject");function Je(c,d){if(!sr(c))throw new TypeError(`${d} is not an object.`)}a(Je,"assertObject");function et(c,d,g){if(c===void 0)throw new TypeError(`Parameter ${d} is required in '${g}'.`)}a(et,"assertRequiredArgument");function b(c,d,g){if(c===void 0)throw new TypeError(`${d} is required in '${g}'.`)}a(b,"assertRequiredField");function x(c){return Number(c)}a(x,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function M(c){return A(It(c))}a(M,"integerPart");function O(c,d){let P=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!it(I))throw new TypeError(`${d} is not a finite number`);if(I=M(I),I<0||I>P)throw new TypeError(`${d} is outside the accepted range of 0 to ${P}, inclusive`);return!it(I)||I===0?0:I}a(O,"convertUnsignedLongLongWithEnforceRange");function $(c,d){if(!to(c))throw new TypeError(`${d} is not a ReadableStream.`)}a($,"assertReadableStream");function q(c){return new X(c)}a(q,"AcquireReadableStreamDefaultReader");function C(c,d){c._reader._readRequests.push(d)}a(C,"ReadableStreamAddReadRequest");function N(c,d,g){let I=c._reader._readRequests.shift();g?I._closeSteps():I._chunkSteps(d)}a(N,"ReadableStreamFulfillReadRequest");function L(c){return c._reader._readRequests.length}a(L,"ReadableStreamGetNumReadRequests");function U(c){let d=c._reader;return!(d===void 0||!he(d))}a(U,"ReadableStreamHasDefaultReader");class X{static{a(this,"ReadableStreamDefaultReader")}constructor(d){if(et(d,1,"ReadableStreamDefaultReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");le(this,d),this._readRequests=new H}get closed(){return he(this)?this._closedPromise:f(lt("closed"))}cancel(d=void 0){return he(this)?this._ownerReadableStream===void 0?f(oe("cancel")):K(this,d):f(lt("cancel"))}read(){if(!he(this))return f(lt("read"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let d,g,P=l((j,V)=>{d=j,g=V});return ye(this,{_chunkSteps:a(j=>d({value:j,done:!1}),"_chunkSteps"),_closeSteps:a(()=>d({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(j=>g(j),"_errorSteps")}),P}releaseLock(){if(!he(this))throw lt("releaseLock");this._ownerReadableStream!==void 0&&Ze(this)}}Object.defineProperties(X.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(X.prototype.cancel,"cancel"),n(X.prototype.read,"read"),n(X.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(X.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function he(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof X}a(he,"IsReadableStreamDefaultReader");function ye(c,d){let g=c._ownerReadableStream;g._disturbed=!0,g._state==="closed"?d._closeSteps():g._state==="errored"?d._errorSteps(g._storedError):g._readableStreamController[ee](d)}a(ye,"ReadableStreamDefaultReaderRead");function Ze(c){Z(c);let d=new TypeError("Reader was released");ut(c,d)}a(Ze,"ReadableStreamDefaultReaderRelease");function ut(c,d){let g=c._readRequests;c._readRequests=new H,g.forEach(P=>{P._errorSteps(d)})}a(ut,"ReadableStreamDefaultReaderErrorReadRequests");function lt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(lt,"defaultReaderBrandCheckException");let Ve=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Ke{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(d,g){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=d,this._preventCancel=g}next(){let d=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?S(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?S(this._ongoingPromise,g,g):g()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let d=this._reader,g,P,I=l((V,fe)=>{g=V,P=fe});return ye(d,{_chunkSteps:a(V=>{this._ongoingPromise=void 0,T(()=>g({value:V,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),g({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(V=>{this._ongoingPromise=void 0,this._isFinished=!0,Z(d),P(V)},"_errorSteps")}),I}_returnSteps(d){if(this._isFinished)return Promise.resolve({value:d,done:!0});this._isFinished=!0;let g=this._reader;if(!this._preventCancel){let P=K(g,d);return Z(g),S(P,()=>({value:d,done:!0}))}return Z(g),p({value:d,done:!0})}}let Et={next(){return ki(this)?this._asyncIteratorImpl.next():f(Ni("next"))},return(c){return ki(this)?this._asyncIteratorImpl.return(c):f(Ni("return"))}};Object.setPrototypeOf(Et,Ve);function Oi(c,d){let g=q(c),P=new Ke(g,d),I=Object.create(Et);return I._asyncIteratorImpl=P,I}a(Oi,"AcquireReadableStreamAsyncIterator");function ki(c){if(!r(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Ke}catch{return!1}}a(ki,"IsReadableStreamAsyncIterator");function Ni(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(Ni,"streamAsyncIteratorBrandCheckException");let cr=Number.isNaN||function(c){return c!==c};var An,Lt,Tt;function tt(c){return c.slice()}a(tt,"CreateArrayFromList");function BE(c,d,g,P,I){new Uint8Array(c).set(new Uint8Array(g,P,I),d)}a(BE,"CopyDataBlockBytes");let wn=a(c=>(typeof c.transfer=="function"?wn=a(d=>d.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?wn=a(d=>structuredClone(d,{transfer:[d]}),"TransferArrayBuffer"):wn=a(d=>d,"TransferArrayBuffer"),wn(c)),"TransferArrayBuffer"),Xn=a(c=>(typeof c.detached=="boolean"?Xn=a(d=>d.detached,"IsDetachedBuffer"):Xn=a(d=>d.byteLength===0,"IsDetachedBuffer"),Xn(c)),"IsDetachedBuffer");function qE(c,d,g){if(c.slice)return c.slice(d,g);let P=g-d,I=new ArrayBuffer(P);return BE(I,0,c,d,P),I}a(qE,"ArrayBufferSlice");function pl(c,d){let g=c[d];if(g!=null){if(typeof g!="function")throw new TypeError(`${String(d)} is not a function`);return g}}a(pl,"GetMethod");function Cz(c){let d={[Symbol.iterator]:()=>c.iterator},g=(async function*(){return yield*d})(),P=g.next;return{iterator:g,nextMethod:P,done:!1}}a(Cz,"CreateAsyncFromSyncIterator");let lh=(Tt=(An=Symbol.asyncIterator)!==null&&An!==void 0?An:(Lt=Symbol.for)===null||Lt===void 0?void 0:Lt.call(Symbol,"Symbol.asyncIterator"))!==null&&Tt!==void 0?Tt:"@@asyncIterator";function GE(c,d="sync",g){if(g===void 0)if(d==="async"){if(g=pl(c,lh),g===void 0){let j=pl(c,Symbol.iterator),V=GE(c,"sync",j);return Cz(V)}}else g=pl(c,Symbol.iterator);if(g===void 0)throw new TypeError("The object is not iterable");let P=k(g,c,[]);if(!r(P))throw new TypeError("The iterator method must return an object");let I=P.next;return{iterator:P,nextMethod:I,done:!1}}a(GE,"GetIterator");function Rz(c){let d=k(c.nextMethod,c.iterator,[]);if(!r(d))throw new TypeError("The iterator.next() method must return an object");return d}a(Rz,"IteratorNext");function Oz(c){return!!c.done}a(Oz,"IteratorComplete");function kz(c){return c.value}a(kz,"IteratorValue");function Nz(c){return!(typeof c!="number"||cr(c)||c<0)}a(Nz,"IsNonNegativeNumber");function VE(c){let d=qE(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(VE,"CloneAsUint8Array");function dh(c){let d=c._queue.shift();return c._queueTotalSize-=d.size,c._queueTotalSize<0&&(c._queueTotalSize=0),d.value}a(dh,"DequeueValue");function ph(c,d,g){if(!Nz(g)||g===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:d,size:g}),c._queueTotalSize+=g}a(ph,"EnqueueValueWithSize");function $z(c){return c._queue.peek().value}a($z,"PeekQueueValue");function Yn(c){c._queue=new H,c._queueTotalSize=0}a(Yn,"ResetQueue");function HE(c){return c===DataView}a(HE,"isDataViewConstructor");function Dz(c){return HE(c.constructor)}a(Dz,"isDataView");function zz(c){return HE(c)?1:c.BYTES_PER_ELEMENT}a(zz,"arrayBufferViewElementSize");class Uo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!fh(this))throw _h("view");return this._view}respond(d){if(!fh(this))throw _h("respond");if(et(d,1,"respond"),d=O(d,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");gl(this._associatedReadableByteStreamController,d)}respondWithNewView(d){if(!fh(this))throw _h("respondWithNewView");if(et(d,1,"respondWithNewView"),!ArrayBuffer.isView(d))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Xn(d.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");yl(this._associatedReadableByteStreamController,d)}}Object.defineProperties(Uo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),n(Uo.prototype.respond,"respond"),n(Uo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Uo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class In{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Mo(this))throw cs("byobRequest");return yh(this)}get desiredSize(){if(!Mo(this))throw cs("desiredSize");return rT(this)}close(){if(!Mo(this))throw cs("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let d=this._controlledReadableByteStream._state;if(d!=="readable")throw new TypeError(`The stream (in ${d} state) is not in the readable state and cannot be closed`);ss(this)}enqueue(d){if(!Mo(this))throw cs("enqueue");if(et(d,1,"enqueue"),!ArrayBuffer.isView(d))throw new TypeError("chunk must be an array buffer view");if(d.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(d.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let g=this._controlledReadableByteStream._state;if(g!=="readable")throw new TypeError(`The stream (in ${g} state) is not in the readable state and cannot be enqueued to`);hl(this,d)}error(d=void 0){if(!Mo(this))throw cs("error");wr(this,d)}[ce](d){ZE(this),Yn(this);let g=this._cancelAlgorithm(d);return ml(this),g}[ee](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){tT(this,d);return}let P=this._autoAllocateChunkSize;if(P!==void 0){let I;try{I=new ArrayBuffer(P)}catch(V){d._errorSteps(V);return}let j={buffer:I,bufferByteLength:P,byteOffset:0,byteLength:P,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(j)}C(g,d),Lo(this)}[Le](){if(this._pendingPullIntos.length>0){let d=this._pendingPullIntos.peek();d.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(d)}}}Object.defineProperties(In.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),n(In.prototype.close,"close"),n(In.prototype.enqueue,"enqueue"),n(In.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(In.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Mo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof In}a(Mo,"IsReadableByteStreamController");function fh(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Uo}a(fh,"IsReadableStreamBYOBRequest");function Lo(c){if(!Fz(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Lo(c)),null),P=>(wr(c,P),null))}a(Lo,"ReadableByteStreamControllerCallPullIfNeeded");function ZE(c){hh(c),c._pendingPullIntos=new H}a(ZE,"ReadableByteStreamControllerClearPendingPullIntos");function mh(c,d){let g=!1;c._state==="closed"&&(g=!0);let P=WE(d);d.readerType==="default"?N(c,P,g):Zz(c,P,g)}a(mh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function WE(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(WE,"ReadableByteStreamControllerConvertPullIntoDescriptor");function fl(c,d,g,P){c._queue.push({buffer:d,byteOffset:g,byteLength:P}),c._queueTotalSize+=P}a(fl,"ReadableByteStreamControllerEnqueueChunkToQueue");function KE(c,d,g,P){let I;try{I=qE(d,g,g+P)}catch(j){throw wr(c,j),j}fl(c,I,0,P)}a(KE,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function JE(c,d){d.bytesFilled>0&&KE(c,d.buffer,d.byteOffset,d.bytesFilled),$i(c)}a(JE,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function XE(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),P=d.bytesFilled+g,I=g,j=!1,V=P%d.elementSize,fe=P-V;fe>=d.minimumFill&&(I=fe-d.bytesFilled,j=!0);let Ie=c._queue;for(;I>0;){let _e=Ie.peek(),Ne=Math.min(I,_e.byteLength),Fe=d.byteOffset+d.bytesFilled;BE(d.buffer,Fe,_e.buffer,_e.byteOffset,Ne),_e.byteLength===Ne?Ie.shift():(_e.byteOffset+=Ne,_e.byteLength-=Ne),c._queueTotalSize-=Ne,YE(c,Ne,d),I-=Ne}return j}a(XE,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function YE(c,d,g){g.bytesFilled+=d}a(YE,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function QE(c){c._queueTotalSize===0&&c._closeRequested?(ml(c),ms(c._controlledReadableByteStream)):Lo(c)}a(QE,"ReadableByteStreamControllerHandleQueueDrain");function hh(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(hh,"ReadableByteStreamControllerInvalidateBYOBRequest");function gh(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let d=c._pendingPullIntos.peek();XE(c,d)&&($i(c),mh(c._controlledReadableByteStream,d))}}a(gh,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function Uz(c){let d=c._controlledReadableByteStream._reader;for(;d._readRequests.length>0;){if(c._queueTotalSize===0)return;let g=d._readRequests.shift();tT(c,g)}}a(Uz,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function Mz(c,d,g,P){let I=c._controlledReadableByteStream,j=d.constructor,V=zz(j),{byteOffset:fe,byteLength:Ie}=d,_e=g*V,Ne;try{Ne=wn(d.buffer)}catch(at){P._errorSteps(at);return}let Fe={buffer:Ne,bufferByteLength:Ne.byteLength,byteOffset:fe,byteLength:Ie,bytesFilled:0,minimumFill:_e,elementSize:V,viewConstructor:j,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Fe),iT(I,P);return}if(I._state==="closed"){let at=new j(Fe.buffer,Fe.byteOffset,0);P._closeSteps(at);return}if(c._queueTotalSize>0){if(XE(c,Fe)){let at=WE(Fe);QE(c),P._chunkSteps(at);return}if(c._closeRequested){let at=new TypeError("Insufficient bytes to fill elements in the given buffer");wr(c,at),P._errorSteps(at);return}}c._pendingPullIntos.push(Fe),iT(I,P),Lo(c)}a(Mz,"ReadableByteStreamControllerPullInto");function Lz(c,d){d.readerType==="none"&&$i(c);let g=c._controlledReadableByteStream;if(vh(g))for(;aT(g)>0;){let P=$i(c);mh(g,P)}}a(Lz,"ReadableByteStreamControllerRespondInClosedState");function jz(c,d,g){if(YE(c,d,g),g.readerType==="none"){JE(c,g),gh(c);return}if(g.bytesFilled<g.minimumFill)return;$i(c);let P=g.bytesFilled%g.elementSize;if(P>0){let I=g.byteOffset+g.bytesFilled;KE(c,g.buffer,I-P,P)}g.bytesFilled-=P,mh(c._controlledReadableByteStream,g),gh(c)}a(jz,"ReadableByteStreamControllerRespondInReadableState");function eT(c,d){let g=c._pendingPullIntos.peek();hh(c),c._controlledReadableByteStream._state==="closed"?Lz(c,g):jz(c,d,g),Lo(c)}a(eT,"ReadableByteStreamControllerRespondInternal");function $i(c){return c._pendingPullIntos.shift()}a($i,"ReadableByteStreamControllerShiftPendingPullInto");function Fz(c){let d=c._controlledReadableByteStream;return d._state!=="readable"||c._closeRequested||!c._started?!1:!!(U(d)&&L(d)>0||vh(d)&&aT(d)>0||rT(c)>0)}a(Fz,"ReadableByteStreamControllerShouldCallPull");function ml(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(ml,"ReadableByteStreamControllerClearAlgorithms");function ss(c){let d=c._controlledReadableByteStream;if(!(c._closeRequested||d._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let g=c._pendingPullIntos.peek();if(g.bytesFilled%g.elementSize!==0){let P=new TypeError("Insufficient bytes to fill elements in the given buffer");throw wr(c,P),P}}ml(c),ms(d)}}a(ss,"ReadableByteStreamControllerClose");function hl(c,d){let g=c._controlledReadableByteStream;if(c._closeRequested||g._state!=="readable")return;let{buffer:P,byteOffset:I,byteLength:j}=d;if(Xn(P))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let V=wn(P);if(c._pendingPullIntos.length>0){let fe=c._pendingPullIntos.peek();if(Xn(fe.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");hh(c),fe.buffer=wn(fe.buffer),fe.readerType==="none"&&JE(c,fe)}if(U(g))if(Uz(c),L(g)===0)fl(c,V,I,j);else{c._pendingPullIntos.length>0&&$i(c);let fe=new Uint8Array(V,I,j);N(g,fe,!1)}else vh(g)?(fl(c,V,I,j),gh(c)):fl(c,V,I,j);Lo(c)}a(hl,"ReadableByteStreamControllerEnqueue");function wr(c,d){let g=c._controlledReadableByteStream;g._state==="readable"&&(ZE(c),Yn(c),ml(c),RT(g,d))}a(wr,"ReadableByteStreamControllerError");function tT(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,QE(c);let P=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(P)}a(tT,"ReadableByteStreamControllerFillReadRequestFromQueue");function yh(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let d=c._pendingPullIntos.peek(),g=new Uint8Array(d.buffer,d.byteOffset+d.bytesFilled,d.byteLength-d.bytesFilled),P=Object.create(Uo.prototype);qz(P,c,g),c._byobRequest=P}return c._byobRequest}a(yh,"ReadableByteStreamControllerGetBYOBRequest");function rT(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(rT,"ReadableByteStreamControllerGetDesiredSize");function gl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(d===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(g.bytesFilled+d>g.byteLength)throw new RangeError("bytesWritten out of range")}g.buffer=wn(g.buffer),eT(c,d)}a(gl,"ReadableByteStreamControllerRespond");function yl(c,d){let g=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(d.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(d.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(g.byteOffset+g.bytesFilled!==d.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(g.bufferByteLength!==d.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(g.bytesFilled+d.byteLength>g.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=d.byteLength;g.buffer=wn(d.buffer),eT(c,I)}a(yl,"ReadableByteStreamControllerRespondWithNewView");function nT(c,d,g,P,I,j,V){d._controlledReadableByteStream=c,d._pullAgain=!1,d._pulling=!1,d._byobRequest=null,d._queue=d._queueTotalSize=void 0,Yn(d),d._closeRequested=!1,d._started=!1,d._strategyHWM=j,d._pullAlgorithm=P,d._cancelAlgorithm=I,d._autoAllocateChunkSize=V,d._pendingPullIntos=new H,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,Lo(d),null),Ie=>(wr(d,Ie),null))}a(nT,"SetUpReadableByteStreamController");function Bz(c,d,g){let P=Object.create(In.prototype),I,j,V;d.start!==void 0?I=a(()=>d.start(P),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?j=a(()=>d.pull(P),"pullAlgorithm"):j=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?V=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):V=a(()=>p(void 0),"cancelAlgorithm");let fe=d.autoAllocateChunkSize;if(fe===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");nT(c,P,I,j,V,g,fe)}a(Bz,"SetUpReadableByteStreamControllerFromUnderlyingSource");function qz(c,d,g){c._associatedReadableByteStreamController=d,c._view=g}a(qz,"SetUpReadableStreamBYOBRequest");function _h(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(_h,"byobRequestBrandCheckException");function cs(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(cs,"byteStreamControllerBrandCheckException");function Gz(c,d){gt(c,d);let g=c?.mode;return{mode:g===void 0?void 0:Vz(g,`${d} has member 'mode' that`)}}a(Gz,"convertReaderOptions");function Vz(c,d){if(c=`${c}`,c!=="byob")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a(Vz,"convertReadableStreamReaderMode");function Hz(c,d){var g;gt(c,d);let P=(g=c?.min)!==null&&g!==void 0?g:1;return{min:O(P,`${d} has member 'min' that`)}}a(Hz,"convertByobReadOptions");function oT(c){return new Qn(c)}a(oT,"AcquireReadableStreamBYOBReader");function iT(c,d){c._reader._readIntoRequests.push(d)}a(iT,"ReadableStreamAddReadIntoRequest");function Zz(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(Zz,"ReadableStreamFulfillReadIntoRequest");function aT(c){return c._reader._readIntoRequests.length}a(aT,"ReadableStreamGetNumReadIntoRequests");function vh(c){let d=c._reader;return!(d===void 0||!jo(d))}a(vh,"ReadableStreamHasBYOBReader");class Qn{static{a(this,"ReadableStreamBYOBReader")}constructor(d){if(et(d,1,"ReadableStreamBYOBReader"),$(d,"First parameter"),ro(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Mo(d._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");le(this,d),this._readIntoRequests=new H}get closed(){return jo(this)?this._closedPromise:f(_l("closed"))}cancel(d=void 0){return jo(this)?this._ownerReadableStream===void 0?f(oe("cancel")):K(this,d):f(_l("cancel"))}read(d,g={}){if(!jo(this))return f(_l("read"));if(!ArrayBuffer.isView(d))return f(new TypeError("view must be an array buffer view"));if(d.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(d.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Xn(d.buffer))return f(new TypeError("view's buffer has been detached"));let P;try{P=Hz(g,"options")}catch(_e){return f(_e)}let I=P.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(Dz(d)){if(I>d.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>d.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(oe("read from"));let j,V,fe=l((_e,Ne)=>{j=_e,V=Ne});return sT(this,d,I,{_chunkSteps:a(_e=>j({value:_e,done:!1}),"_chunkSteps"),_closeSteps:a(_e=>j({value:_e,done:!0}),"_closeSteps"),_errorSteps:a(_e=>V(_e),"_errorSteps")}),fe}releaseLock(){if(!jo(this))throw _l("releaseLock");this._ownerReadableStream!==void 0&&Wz(this)}}Object.defineProperties(Qn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),n(Qn.prototype.cancel,"cancel"),n(Qn.prototype.read,"read"),n(Qn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function jo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Qn}a(jo,"IsReadableStreamBYOBReader");function sT(c,d,g,P){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?P._errorSteps(I._storedError):Mz(I._readableStreamController,d,g,P)}a(sT,"ReadableStreamBYOBReaderRead");function Wz(c){Z(c);let d=new TypeError("Reader was released");cT(c,d)}a(Wz,"ReadableStreamBYOBReaderRelease");function cT(c,d){let g=c._readIntoRequests;c._readIntoRequests=new H,g.forEach(P=>{P._errorSteps(d)})}a(cT,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _l(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(_l,"byobReaderBrandCheckException");function us(c,d){let{highWaterMark:g}=c;if(g===void 0)return d;if(cr(g)||g<0)throw new RangeError("Invalid highWaterMark");return g}a(us,"ExtractHighWaterMark");function vl(c){let{size:d}=c;return d||(()=>1)}a(vl,"ExtractSizeAlgorithm");function bl(c,d){gt(c,d);let g=c?.highWaterMark,P=c?.size;return{highWaterMark:g===void 0?void 0:x(g),size:P===void 0?void 0:Kz(P,`${d} has member 'size' that`)}}a(bl,"convertQueuingStrategy");function Kz(c,d){return _t(c,d),g=>x(c(g))}a(Kz,"convertQueuingStrategySize");function Jz(c,d){gt(c,d);let g=c?.abort,P=c?.close,I=c?.start,j=c?.type,V=c?.write;return{abort:g===void 0?void 0:Xz(g,c,`${d} has member 'abort' that`),close:P===void 0?void 0:Yz(P,c,`${d} has member 'close' that`),start:I===void 0?void 0:Qz(I,c,`${d} has member 'start' that`),write:V===void 0?void 0:eU(V,c,`${d} has member 'write' that`),type:j}}a(Jz,"convertUnderlyingSink");function Xz(c,d,g){return _t(c,g),P=>F(c,d,[P])}a(Xz,"convertUnderlyingSinkAbortCallback");function Yz(c,d,g){return _t(c,g),()=>F(c,d,[])}a(Yz,"convertUnderlyingSinkCloseCallback");function Qz(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(Qz,"convertUnderlyingSinkStartCallback");function eU(c,d,g){return _t(c,g),(P,I)=>F(c,d,[P,I])}a(eU,"convertUnderlyingSinkWriteCallback");function uT(c,d){if(!Di(c))throw new TypeError(`${d} is not a WritableStream.`)}a(uT,"assertWritableStream");function tU(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(tU,"isAbortSignal");let rU=typeof AbortController=="function";function nU(){if(rU)return new AbortController}a(nU,"createAbortController");class eo{static{a(this,"WritableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let P=bl(g,"Second parameter"),I=Jz(d,"First parameter");if(dT(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=vl(P),fe=us(P,1);yU(this,I,fe,V)}get locked(){if(!Di(this))throw xl("locked");return zi(this)}abort(d=void 0){return Di(this)?zi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):Pl(this,d):f(xl("abort"))}close(){return Di(this)?zi(this)?f(new TypeError("Cannot close a stream that already has a writer")):sn(this)?f(new TypeError("Cannot close an already-closing stream")):pT(this):f(xl("close"))}getWriter(){if(!Di(this))throw xl("getWriter");return lT(this)}}Object.defineProperties(eo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),n(eo.prototype.abort,"abort"),n(eo.prototype.close,"close"),n(eo.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function lT(c){return new Cn(c)}a(lT,"AcquireWritableStreamDefaultWriter");function oU(c,d,g,P,I=1,j=()=>1){let V=Object.create(eo.prototype);dT(V);let fe=Object.create(Ui.prototype);return _T(V,fe,c,d,g,P,I,j),V}a(oU,"CreateWritableStream");function dT(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(dT,"InitializeWritableStream");function Di(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof eo}a(Di,"IsWritableStream");function zi(c){return c._writer!==void 0}a(zi,"IsWritableStreamLocked");function Pl(c,d){var g;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=d,(g=c._writableStreamController._abortController)===null||g===void 0||g.abort(d);let P=c._state;if(P==="closed"||P==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;P==="erroring"&&(I=!0,d=void 0);let j=l((V,fe)=>{c._pendingAbortRequest={_promise:void 0,_resolve:V,_reject:fe,_reason:d,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=j,I||Ph(c,d),j}a(Pl,"WritableStreamAbort");function pT(c){let d=c._state;if(d==="closed"||d==="errored")return f(new TypeError(`The stream (in ${d} state) is not in the writable state and cannot be closed`));let g=l((I,j)=>{let V={_resolve:I,_reject:j};c._closeRequest=V}),P=c._writer;return P!==void 0&&c._backpressure&&d==="writable"&&Ch(P),_U(c._writableStreamController),g}a(pT,"WritableStreamClose");function iU(c){return l((g,P)=>{let I={_resolve:g,_reject:P};c._writeRequests.push(I)})}a(iU,"WritableStreamAddWriteRequest");function bh(c,d){if(c._state==="writable"){Ph(c,d);return}Sh(c)}a(bh,"WritableStreamDealWithRejection");function Ph(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let P=c._writer;P!==void 0&&mT(P,d),!lU(c)&&g._started&&Sh(c)}a(Ph,"WritableStreamStartErroring");function Sh(c){c._state="errored",c._writableStreamController[re]();let d=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(d)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){Sl(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),Sl(c);return}let P=c._writableStreamController[W](g._reason);m(P,()=>(g._resolve(),Sl(c),null),I=>(g._reject(I),Sl(c),null))}a(Sh,"WritableStreamFinishErroring");function aU(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(aU,"WritableStreamFinishInFlightWrite");function sU(c,d){c._inFlightWriteRequest._reject(d),c._inFlightWriteRequest=void 0,bh(c,d)}a(sU,"WritableStreamFinishInFlightWriteWithError");function cU(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let g=c._writer;g!==void 0&&ST(g)}a(cU,"WritableStreamFinishInFlightClose");function uU(c,d){c._inFlightCloseRequest._reject(d),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(d),c._pendingAbortRequest=void 0),bh(c,d)}a(uU,"WritableStreamFinishInFlightCloseWithError");function sn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(sn,"WritableStreamCloseQueuedOrInFlight");function lU(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(lU,"WritableStreamHasOperationMarkedInFlight");function dU(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(dU,"WritableStreamMarkCloseRequestInFlight");function pU(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(pU,"WritableStreamMarkFirstWriteRequestInFlight");function Sl(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let d=c._writer;d!==void 0&&wh(d,c._storedError)}a(Sl,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Eh(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?xU(g):Ch(g)),c._backpressure=d}a(Eh,"WritableStreamUpdateBackpressure");class Cn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(et(d,1,"WritableStreamDefaultWriter"),uT(d,"First parameter"),zi(d))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=d,d._writer=this;let g=d._state;if(g==="writable")!sn(d)&&d._backpressure?wl(this):ET(this),Al(this);else if(g==="erroring")Ih(this,d._storedError),Al(this);else if(g==="closed")ET(this),EU(this);else{let P=d._storedError;Ih(this,P),PT(this,P)}}get closed(){return Fo(this)?this._closedPromise:f(Bo("closed"))}get desiredSize(){if(!Fo(this))throw Bo("desiredSize");if(this._ownerWritableStream===void 0)throw ds("desiredSize");return gU(this)}get ready(){return Fo(this)?this._readyPromise:f(Bo("ready"))}abort(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("abort")):fU(this,d):f(Bo("abort"))}close(){if(!Fo(this))return f(Bo("close"));let d=this._ownerWritableStream;return d===void 0?f(ds("close")):sn(d)?f(new TypeError("Cannot close an already-closing stream")):fT(this)}releaseLock(){if(!Fo(this))throw Bo("releaseLock");this._ownerWritableStream!==void 0&&hT(this)}write(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("write to")):gT(this,d):f(Bo("write"))}}Object.defineProperties(Cn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),n(Cn.prototype.abort,"abort"),n(Cn.prototype.close,"close"),n(Cn.prototype.releaseLock,"releaseLock"),n(Cn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Cn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Fo(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof Cn}a(Fo,"IsWritableStreamDefaultWriter");function fU(c,d){let g=c._ownerWritableStream;return Pl(g,d)}a(fU,"WritableStreamDefaultWriterAbort");function fT(c){let d=c._ownerWritableStream;return pT(d)}a(fT,"WritableStreamDefaultWriterClose");function mU(c){let d=c._ownerWritableStream,g=d._state;return sn(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):fT(c)}a(mU,"WritableStreamDefaultWriterCloseWithErrorPropagation");function hU(c,d){c._closedPromiseState==="pending"?wh(c,d):TU(c,d)}a(hU,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function mT(c,d){c._readyPromiseState==="pending"?TT(c,d):AU(c,d)}a(mT,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function gU(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:vT(d._writableStreamController)}a(gU,"WritableStreamDefaultWriterGetDesiredSize");function hT(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");mT(c,g),hU(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(hT,"WritableStreamDefaultWriterRelease");function gT(c,d){let g=c._ownerWritableStream,P=g._writableStreamController,I=vU(P,d);if(g!==c._ownerWritableStream)return f(ds("write to"));let j=g._state;if(j==="errored")return f(g._storedError);if(sn(g)||j==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(j==="erroring")return f(g._storedError);let V=iU(g);return bU(P,d,I),V}a(gT,"WritableStreamDefaultWriterWrite");let yT={};class Ui{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Th(this))throw Ah("abortReason");return this._abortReason}get signal(){if(!Th(this))throw Ah("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!Th(this))throw Ah("error");this._controlledWritableStream._state==="writable"&&bT(this,d)}[W](d){let g=this._abortAlgorithm(d);return El(this),g}[re](){Yn(this)}}Object.defineProperties(Ui.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ui.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Th(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Ui}a(Th,"IsWritableStreamDefaultController");function _T(c,d,g,P,I,j,V,fe){d._controlledWritableStream=c,c._writableStreamController=d,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._abortReason=void 0,d._abortController=nU(),d._started=!1,d._strategySizeAlgorithm=fe,d._strategyHWM=V,d._writeAlgorithm=P,d._closeAlgorithm=I,d._abortAlgorithm=j;let Ie=xh(d);Eh(c,Ie);let _e=g(),Ne=p(_e);m(Ne,()=>(d._started=!0,Tl(d),null),Fe=>(d._started=!0,bh(c,Fe),null))}a(_T,"SetUpWritableStreamDefaultController");function yU(c,d,g,P){let I=Object.create(Ui.prototype),j,V,fe,Ie;d.start!==void 0?j=a(()=>d.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),d.write!==void 0?V=a(_e=>d.write(_e,I),"writeAlgorithm"):V=a(()=>p(void 0),"writeAlgorithm"),d.close!==void 0?fe=a(()=>d.close(),"closeAlgorithm"):fe=a(()=>p(void 0),"closeAlgorithm"),d.abort!==void 0?Ie=a(_e=>d.abort(_e),"abortAlgorithm"):Ie=a(()=>p(void 0),"abortAlgorithm"),_T(c,I,j,V,fe,Ie,g,P)}a(yU,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function El(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(El,"WritableStreamDefaultControllerClearAlgorithms");function _U(c){ph(c,yT,0),Tl(c)}a(_U,"WritableStreamDefaultControllerClose");function vU(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return ls(c,g),1}}a(vU,"WritableStreamDefaultControllerGetChunkSize");function vT(c){return c._strategyHWM-c._queueTotalSize}a(vT,"WritableStreamDefaultControllerGetDesiredSize");function bU(c,d,g){try{ph(c,d,g)}catch(I){ls(c,I);return}let P=c._controlledWritableStream;if(!sn(P)&&P._state==="writable"){let I=xh(c);Eh(P,I)}Tl(c)}a(bU,"WritableStreamDefaultControllerWrite");function Tl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){Sh(d);return}if(c._queue.length===0)return;let P=$z(c);P===yT?PU(c):SU(c,P)}a(Tl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ls(c,d){c._controlledWritableStream._state==="writable"&&bT(c,d)}a(ls,"WritableStreamDefaultControllerErrorIfNeeded");function PU(c){let d=c._controlledWritableStream;dU(d),dh(c);let g=c._closeAlgorithm();El(c),m(g,()=>(cU(d),null),P=>(uU(d,P),null))}a(PU,"WritableStreamDefaultControllerProcessClose");function SU(c,d){let g=c._controlledWritableStream;pU(g);let P=c._writeAlgorithm(d);m(P,()=>{aU(g);let I=g._state;if(dh(c),!sn(g)&&I==="writable"){let j=xh(c);Eh(g,j)}return Tl(c),null},I=>(g._state==="writable"&&El(c),sU(g,I),null))}a(SU,"WritableStreamDefaultControllerProcessWrite");function xh(c){return vT(c)<=0}a(xh,"WritableStreamDefaultControllerGetBackpressure");function bT(c,d){let g=c._controlledWritableStream;El(c),Ph(g,d)}a(bT,"WritableStreamDefaultControllerError");function xl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(xl,"streamBrandCheckException$2");function Ah(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Ah,"defaultControllerBrandCheckException$2");function Bo(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Bo,"defaultWriterBrandCheckException");function ds(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(ds,"defaultWriterLockException");function Al(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g,c._closedPromiseState="pending"})}a(Al,"defaultWriterClosedPromiseInitialize");function PT(c,d){Al(c),wh(c,d)}a(PT,"defaultWriterClosedPromiseInitializeAsRejected");function EU(c){Al(c),ST(c)}a(EU,"defaultWriterClosedPromiseInitializeAsResolved");function wh(c,d){c._closedPromise_reject!==void 0&&(E(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(wh,"defaultWriterClosedPromiseReject");function TU(c,d){PT(c,d)}a(TU,"defaultWriterClosedPromiseResetToRejected");function ST(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(ST,"defaultWriterClosedPromiseResolve");function wl(c){c._readyPromise=l((d,g)=>{c._readyPromise_resolve=d,c._readyPromise_reject=g}),c._readyPromiseState="pending"}a(wl,"defaultWriterReadyPromiseInitialize");function Ih(c,d){wl(c),TT(c,d)}a(Ih,"defaultWriterReadyPromiseInitializeAsRejected");function ET(c){wl(c),Ch(c)}a(ET,"defaultWriterReadyPromiseInitializeAsResolved");function TT(c,d){c._readyPromise_reject!==void 0&&(E(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(TT,"defaultWriterReadyPromiseReject");function xU(c){wl(c)}a(xU,"defaultWriterReadyPromiseReset");function AU(c,d){Ih(c,d)}a(AU,"defaultWriterReadyPromiseResetToRejected");function Ch(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(Ch,"defaultWriterReadyPromiseResolve");function wU(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(wU,"getGlobals");let Rh=wU();function IU(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(IU,"isDOMExceptionConstructor");function CU(){let c=Rh?.DOMException;return IU(c)?c:void 0}a(CU,"getFromGlobal");function RU(){let c=a(function(g,P){this.message=g||"",this.name=P||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return n(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(RU,"createPolyfill");let OU=CU()||RU();function xT(c,d,g,P,I,j){let V=q(c),fe=lT(d);c._disturbed=!0;let Ie=!1,_e=p(void 0);return l((Ne,Fe)=>{let at;if(j!==void 0){if(at=a(()=>{let be=j.reason!==void 0?j.reason:new OU("Aborted","AbortError"),qe=[];P||qe.push(()=>d._state==="writable"?Pl(d,be):p(void 0)),I||qe.push(()=>c._state==="readable"?qr(c,be):p(void 0)),Jt(()=>Promise.all(qe.map(st=>st())),!0,be)},"abortAlgorithm"),j.aborted){at();return}j.addEventListener("abort",at)}function Gr(){return l((be,qe)=>{function st(ur){ur?be():y(Fi(),st,qe)}a(st,"next"),st(!1)})}a(Gr,"pipeLoop");function Fi(){return Ie?p(!0):y(fe._readyPromise,()=>l((be,qe)=>{ye(V,{_chunkSteps:a(st=>{_e=y(gT(fe,st),void 0,e),be(!1)},"_chunkSteps"),_closeSteps:a(()=>be(!0),"_closeSteps"),_errorSteps:qe})}))}if(a(Fi,"pipeStep"),On(c,V._closedPromise,be=>(P?Ir(!0,be):Jt(()=>Pl(d,be),!0,be),null)),On(d,fe._closedPromise,be=>(I?Ir(!0,be):Jt(()=>qr(c,be),!0,be),null)),Gt(c,V._closedPromise,()=>(g?Ir():Jt(()=>mU(fe)),null)),sn(d)||d._state==="closed"){let be=new TypeError("the destination writable stream closed before all data could be piped to it");I?Ir(!0,be):Jt(()=>qr(c,be),!0,be)}E(Gr());function oo(){let be=_e;return y(_e,()=>be!==_e?oo():void 0)}a(oo,"waitForWritesToFinish");function On(be,qe,st){be._state==="errored"?st(be._storedError):_(qe,st)}a(On,"isOrBecomesErrored");function Gt(be,qe,st){be._state==="closed"?st():h(qe,st)}a(Gt,"isOrBecomesClosed");function Jt(be,qe,st){if(Ie)return;Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),ur):ur();function ur(){return m(be(),()=>kn(qe,st),Bi=>kn(!0,Bi)),null}a(ur,"doTheRest")}a(Jt,"shutdownWithAction");function Ir(be,qe){Ie||(Ie=!0,d._state==="writable"&&!sn(d)?h(oo(),()=>kn(be,qe)):kn(be,qe))}a(Ir,"shutdown");function kn(be,qe){return hT(fe),Z(V),j!==void 0&&j.removeEventListener("abort",at),be?Fe(qe):Ne(void 0),null}a(kn,"finalize")})}a(xT,"ReadableStreamPipeTo");class Rn{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Il(this))throw Rl("desiredSize");return Oh(this)}close(){if(!Il(this))throw Rl("close");if(!Li(this))throw new TypeError("The stream is not in a state that permits close");qo(this)}enqueue(d=void 0){if(!Il(this))throw Rl("enqueue");if(!Li(this))throw new TypeError("The stream is not in a state that permits enqueue");return Mi(this,d)}error(d=void 0){if(!Il(this))throw Rl("error");Br(this,d)}[ce](d){Yn(this);let g=this._cancelAlgorithm(d);return Cl(this),g}[ee](d){let g=this._controlledReadableStream;if(this._queue.length>0){let P=dh(this);this._closeRequested&&this._queue.length===0?(Cl(this),ms(g)):ps(this),d._chunkSteps(P)}else C(g,d),ps(this)}[Le](){}}Object.defineProperties(Rn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),n(Rn.prototype.close,"close"),n(Rn.prototype.enqueue,"enqueue"),n(Rn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Rn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Il(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Rn}a(Il,"IsReadableStreamDefaultController");function ps(c){if(!AT(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let g=c._pullAlgorithm();m(g,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,ps(c)),null),P=>(Br(c,P),null))}a(ps,"ReadableStreamDefaultControllerCallPullIfNeeded");function AT(c){let d=c._controlledReadableStream;return!Li(c)||!c._started?!1:!!(ro(d)&&L(d)>0||Oh(c)>0)}a(AT,"ReadableStreamDefaultControllerShouldCallPull");function Cl(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Cl,"ReadableStreamDefaultControllerClearAlgorithms");function qo(c){if(!Li(c))return;let d=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Cl(c),ms(d))}a(qo,"ReadableStreamDefaultControllerClose");function Mi(c,d){if(!Li(c))return;let g=c._controlledReadableStream;if(ro(g)&&L(g)>0)N(g,d,!1);else{let P;try{P=c._strategySizeAlgorithm(d)}catch(I){throw Br(c,I),I}try{ph(c,d,P)}catch(I){throw Br(c,I),I}}ps(c)}a(Mi,"ReadableStreamDefaultControllerEnqueue");function Br(c,d){let g=c._controlledReadableStream;g._state==="readable"&&(Yn(c),Cl(c),RT(g,d))}a(Br,"ReadableStreamDefaultControllerError");function Oh(c){let d=c._controlledReadableStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Oh,"ReadableStreamDefaultControllerGetDesiredSize");function kU(c){return!AT(c)}a(kU,"ReadableStreamDefaultControllerHasBackpressure");function Li(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Li,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function wT(c,d,g,P,I,j,V){d._controlledReadableStream=c,d._queue=void 0,d._queueTotalSize=void 0,Yn(d),d._started=!1,d._closeRequested=!1,d._pullAgain=!1,d._pulling=!1,d._strategySizeAlgorithm=V,d._strategyHWM=j,d._pullAlgorithm=P,d._cancelAlgorithm=I,c._readableStreamController=d;let fe=g();m(p(fe),()=>(d._started=!0,ps(d),null),Ie=>(Br(d,Ie),null))}a(wT,"SetUpReadableStreamDefaultController");function NU(c,d,g,P){let I=Object.create(Rn.prototype),j,V,fe;d.start!==void 0?j=a(()=>d.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),d.pull!==void 0?V=a(()=>d.pull(I),"pullAlgorithm"):V=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?fe=a(Ie=>d.cancel(Ie),"cancelAlgorithm"):fe=a(()=>p(void 0),"cancelAlgorithm"),wT(c,I,j,V,fe,g,P)}a(NU,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Rl,"defaultControllerBrandCheckException$1");function $U(c,d){return Mo(c._readableStreamController)?zU(c):DU(c)}a($U,"ReadableStreamTee");function DU(c,d){let g=q(c),P=!1,I=!1,j=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(Gt=>{Fe=Gt});function Gr(){return P?(I=!0,p(void 0)):(P=!0,ye(g,{_chunkSteps:a(Jt=>{T(()=>{I=!1;let Ir=Jt,kn=Jt;j||Mi(_e._readableStreamController,Ir),V||Mi(Ne._readableStreamController,kn),P=!1,I&&Gr()})},"_chunkSteps"),_closeSteps:a(()=>{P=!1,j||qo(_e._readableStreamController),V||qo(Ne._readableStreamController),(!j||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{P=!1},"_errorSteps")}),p(void 0))}a(Gr,"pullAlgorithm");function Fi(Gt){if(j=!0,fe=Gt,V){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(Fi,"cancel1Algorithm");function oo(Gt){if(V=!0,Ie=Gt,j){let Jt=tt([fe,Ie]),Ir=qr(c,Jt);Fe(Ir)}return at}a(oo,"cancel2Algorithm");function On(){}return a(On,"startAlgorithm"),_e=fs(On,Gr,Fi),Ne=fs(On,Gr,oo),_(g._closedPromise,Gt=>(Br(_e._readableStreamController,Gt),Br(Ne._readableStreamController,Gt),(!j||!V)&&Fe(void 0),null)),[_e,Ne]}a(DU,"ReadableStreamDefaultTee");function zU(c){let d=q(c),g=!1,P=!1,I=!1,j=!1,V=!1,fe,Ie,_e,Ne,Fe,at=l(be=>{Fe=be});function Gr(be){_(be._closedPromise,qe=>(be!==d||(wr(_e._readableStreamController,qe),wr(Ne._readableStreamController,qe),(!j||!V)&&Fe(void 0)),null))}a(Gr,"forwardReaderError");function Fi(){jo(d)&&(Z(d),d=q(c),Gr(d)),ye(d,{_chunkSteps:a(qe=>{T(()=>{P=!1,I=!1;let st=qe,ur=qe;if(!j&&!V)try{ur=VE(qe)}catch(Bi){wr(_e._readableStreamController,Bi),wr(Ne._readableStreamController,Bi),Fe(qr(c,Bi));return}j||hl(_e._readableStreamController,st),V||hl(Ne._readableStreamController,ur),g=!1,P?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(()=>{g=!1,j||ss(_e._readableStreamController),V||ss(Ne._readableStreamController),_e._readableStreamController._pendingPullIntos.length>0&&gl(_e._readableStreamController,0),Ne._readableStreamController._pendingPullIntos.length>0&&gl(Ne._readableStreamController,0),(!j||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(Fi,"pullWithDefaultReader");function oo(be,qe){he(d)&&(Z(d),d=oT(c),Gr(d));let st=qe?Ne:_e,ur=qe?_e:Ne;sT(d,be,1,{_chunkSteps:a(qi=>{T(()=>{P=!1,I=!1;let Gi=qe?V:j;if(qe?j:V)Gi||yl(st._readableStreamController,qi);else{let qT;try{qT=VE(qi)}catch(zh){wr(st._readableStreamController,zh),wr(ur._readableStreamController,zh),Fe(qr(c,zh));return}Gi||yl(st._readableStreamController,qi),hl(ur._readableStreamController,qT)}g=!1,P?On():I&&Gt()})},"_chunkSteps"),_closeSteps:a(qi=>{g=!1;let Gi=qe?V:j,Ml=qe?j:V;Gi||ss(st._readableStreamController),Ml||ss(ur._readableStreamController),qi!==void 0&&(Gi||yl(st._readableStreamController,qi),!Ml&&ur._readableStreamController._pendingPullIntos.length>0&&gl(ur._readableStreamController,0)),(!Gi||!Ml)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(oo,"pullWithBYOBReader");function On(){if(g)return P=!0,p(void 0);g=!0;let be=yh(_e._readableStreamController);return be===null?Fi():oo(be._view,!1),p(void 0)}a(On,"pull1Algorithm");function Gt(){if(g)return I=!0,p(void 0);g=!0;let be=yh(Ne._readableStreamController);return be===null?Fi():oo(be._view,!0),p(void 0)}a(Gt,"pull2Algorithm");function Jt(be){if(j=!0,fe=be,V){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Jt,"cancel1Algorithm");function Ir(be){if(V=!0,Ie=be,j){let qe=tt([fe,Ie]),st=qr(c,qe);Fe(st)}return at}a(Ir,"cancel2Algorithm");function kn(){}return a(kn,"startAlgorithm"),_e=CT(kn,On,Jt),Ne=CT(kn,Gt,Ir),Gr(d),[_e,Ne]}a(zU,"ReadableByteStreamTee");function UU(c){return r(c)&&typeof c.getReader<"u"}a(UU,"isReadableStreamLike");function MU(c){return UU(c)?jU(c.getReader()):LU(c)}a(MU,"ReadableStreamFrom");function LU(c){let d,g=GE(c,"async"),P=e;function I(){let V;try{V=Rz(g)}catch(Ie){return f(Ie)}let fe=p(V);return S(fe,Ie=>{if(!r(Ie))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(Oz(Ie))qo(d._readableStreamController);else{let Ne=kz(Ie);Mi(d._readableStreamController,Ne)}})}a(I,"pullAlgorithm");function j(V){let fe=g.iterator,Ie;try{Ie=pl(fe,"return")}catch(Fe){return f(Fe)}if(Ie===void 0)return p(void 0);let _e;try{_e=k(Ie,fe,[V])}catch(Fe){return f(Fe)}let Ne=p(_e);return S(Ne,Fe=>{if(!r(Fe))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(j,"cancelAlgorithm"),d=fs(P,I,j,0),d}a(LU,"ReadableStreamFromIterable");function jU(c){let d,g=e;function P(){let j;try{j=c.read()}catch(V){return f(V)}return S(j,V=>{if(!r(V))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(V.done)qo(d._readableStreamController);else{let fe=V.value;Mi(d._readableStreamController,fe)}})}a(P,"pullAlgorithm");function I(j){try{return p(c.cancel(j))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=fs(g,P,I,0),d}a(jU,"ReadableStreamFromDefaultReader");function FU(c,d){gt(c,d);let g=c,P=g?.autoAllocateChunkSize,I=g?.cancel,j=g?.pull,V=g?.start,fe=g?.type;return{autoAllocateChunkSize:P===void 0?void 0:O(P,`${d} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:BU(I,g,`${d} has member 'cancel' that`),pull:j===void 0?void 0:qU(j,g,`${d} has member 'pull' that`),start:V===void 0?void 0:GU(V,g,`${d} has member 'start' that`),type:fe===void 0?void 0:VU(fe,`${d} has member 'type' that`)}}a(FU,"convertUnderlyingDefaultOrByteSource");function BU(c,d,g){return _t(c,g),P=>F(c,d,[P])}a(BU,"convertUnderlyingSourceCancelCallback");function qU(c,d,g){return _t(c,g),P=>F(c,d,[P])}a(qU,"convertUnderlyingSourcePullCallback");function GU(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(GU,"convertUnderlyingSourceStartCallback");function VU(c,d){if(c=`${c}`,c!=="bytes")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a(VU,"convertReadableStreamType");function HU(c,d){return gt(c,d),{preventCancel:!!c?.preventCancel}}a(HU,"convertIteratorOptions");function IT(c,d){gt(c,d);let g=c?.preventAbort,P=c?.preventCancel,I=c?.preventClose,j=c?.signal;return j!==void 0&&ZU(j,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!P,preventClose:!!I,signal:j}}a(IT,"convertPipeOptions");function ZU(c,d){if(!tU(c))throw new TypeError(`${d} is not an AbortSignal.`)}a(ZU,"assertAbortSignal");function WU(c,d){gt(c,d);let g=c?.readable;b(g,"readable","ReadableWritablePair"),$(g,`${d} has member 'readable' that`);let P=c?.writable;return b(P,"writable","ReadableWritablePair"),uT(P,`${d} has member 'writable' that`),{readable:g,writable:P}}a(WU,"convertReadableWritablePair");class jt{static{a(this,"ReadableStream")}constructor(d={},g={}){d===void 0?d=null:Je(d,"First parameter");let P=bl(g,"Second parameter"),I=FU(d,"First parameter");if(kh(this),I.type==="bytes"){if(P.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let j=us(P,0);Bz(this,I,j)}else{let j=vl(P),V=us(P,1);NU(this,I,V,j)}}get locked(){if(!to(this))throw Go("locked");return ro(this)}cancel(d=void 0){return to(this)?ro(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):qr(this,d):f(Go("cancel"))}getReader(d=void 0){if(!to(this))throw Go("getReader");return Gz(d,"First parameter").mode===void 0?q(this):oT(this)}pipeThrough(d,g={}){if(!to(this))throw Go("pipeThrough");et(d,1,"pipeThrough");let P=WU(d,"First parameter"),I=IT(g,"Second parameter");if(ro(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(zi(P.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let j=xT(this,P.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return E(j),P.readable}pipeTo(d,g={}){if(!to(this))return f(Go("pipeTo"));if(d===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!Di(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let P;try{P=IT(g,"Second parameter")}catch(I){return f(I)}return ro(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):zi(d)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):xT(this,d,P.preventClose,P.preventAbort,P.preventCancel,P.signal)}tee(){if(!to(this))throw Go("tee");let d=$U(this);return tt(d)}values(d=void 0){if(!to(this))throw Go("values");let g=HU(d,"First parameter");return Oi(this,g.preventCancel)}[lh](d){return this.values(d)}static from(d){return MU(d)}}Object.defineProperties(jt,{from:{enumerable:!0}}),Object.defineProperties(jt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),n(jt.from,"from"),n(jt.prototype.cancel,"cancel"),n(jt.prototype.getReader,"getReader"),n(jt.prototype.pipeThrough,"pipeThrough"),n(jt.prototype.pipeTo,"pipeTo"),n(jt.prototype.tee,"tee"),n(jt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(jt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(jt.prototype,lh,{value:jt.prototype.values,writable:!0,configurable:!0});function fs(c,d,g,P=1,I=()=>1){let j=Object.create(jt.prototype);kh(j);let V=Object.create(Rn.prototype);return wT(j,V,c,d,g,P,I),j}a(fs,"CreateReadableStream");function CT(c,d,g){let P=Object.create(jt.prototype);kh(P);let I=Object.create(In.prototype);return nT(P,I,c,d,g,0,void 0),P}a(CT,"CreateReadableByteStream");function kh(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(kh,"InitializeReadableStream");function to(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof jt}a(to,"IsReadableStream");function ro(c){return c._reader!==void 0}a(ro,"IsReadableStreamLocked");function qr(c,d){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);ms(c);let g=c._reader;if(g!==void 0&&jo(g)){let I=g._readIntoRequests;g._readIntoRequests=new H,I.forEach(j=>{j._closeSteps(void 0)})}let P=c._readableStreamController[ce](d);return S(P,e)}a(qr,"ReadableStreamCancel");function ms(c){c._state="closed";let d=c._reader;if(d!==void 0&&(Qe(d),he(d))){let g=d._readRequests;d._readRequests=new H,g.forEach(P=>{P._closeSteps()})}}a(ms,"ReadableStreamClose");function RT(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(De(g,d),he(g)?ut(g,d):cT(g,d))}a(RT,"ReadableStreamError");function Go(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Go,"streamBrandCheckException$1");function OT(c,d){gt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(g)}}a(OT,"convertQueuingStrategyInit");let kT=a(c=>c.byteLength,"byteLengthSizeFunction");n(kT,"size");class Ol{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){et(d,1,"ByteLengthQueuingStrategy"),d=OT(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!$T(this))throw NT("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!$T(this))throw NT("size");return kT}}Object.defineProperties(Ol.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ol.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function NT(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(NT,"byteLengthBrandCheckException");function $T(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Ol}a($T,"IsByteLengthQueuingStrategy");let DT=a(()=>1,"countSizeFunction");n(DT,"size");class kl{static{a(this,"CountQueuingStrategy")}constructor(d){et(d,1,"CountQueuingStrategy"),d=OT(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!UT(this))throw zT("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!UT(this))throw zT("size");return DT}}Object.defineProperties(kl.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(kl.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function zT(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(zT,"countBrandCheckException");function UT(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof kl}a(UT,"IsCountQueuingStrategy");function KU(c,d){gt(c,d);let g=c?.cancel,P=c?.flush,I=c?.readableType,j=c?.start,V=c?.transform,fe=c?.writableType;return{cancel:g===void 0?void 0:QU(g,c,`${d} has member 'cancel' that`),flush:P===void 0?void 0:JU(P,c,`${d} has member 'flush' that`),readableType:I,start:j===void 0?void 0:XU(j,c,`${d} has member 'start' that`),transform:V===void 0?void 0:YU(V,c,`${d} has member 'transform' that`),writableType:fe}}a(KU,"convertTransformer");function JU(c,d,g){return _t(c,g),P=>F(c,d,[P])}a(JU,"convertTransformerFlushCallback");function XU(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(XU,"convertTransformerStartCallback");function YU(c,d,g){return _t(c,g),(P,I)=>F(c,d,[P,I])}a(YU,"convertTransformerTransformCallback");function QU(c,d,g){return _t(c,g),P=>F(c,d,[P])}a(QU,"convertTransformerCancelCallback");class Nl{static{a(this,"TransformStream")}constructor(d={},g={},P={}){d===void 0&&(d=null);let I=bl(g,"Second parameter"),j=bl(P,"Third parameter"),V=KU(d,"First parameter");if(V.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(V.writableType!==void 0)throw new RangeError("Invalid writableType specified");let fe=us(j,0),Ie=vl(j),_e=us(I,1),Ne=vl(I),Fe,at=l(Gr=>{Fe=Gr});eM(this,at,_e,Ne,fe,Ie),rM(this,V),V.start!==void 0?Fe(V.start(this._transformStreamController)):Fe(void 0)}get readable(){if(!MT(this))throw BT("readable");return this._readable}get writable(){if(!MT(this))throw BT("writable");return this._writable}}Object.defineProperties(Nl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function eM(c,d,g,P,I,j){function V(){return d}a(V,"startAlgorithm");function fe(at){return iM(c,at)}a(fe,"writeAlgorithm");function Ie(at){return aM(c,at)}a(Ie,"abortAlgorithm");function _e(){return sM(c)}a(_e,"closeAlgorithm"),c._writable=oU(V,fe,_e,Ie,g,P);function Ne(){return cM(c)}a(Ne,"pullAlgorithm");function Fe(at){return uM(c,at)}a(Fe,"cancelAlgorithm"),c._readable=fs(V,Ne,Fe,I,j),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,$l(c,!0),c._transformStreamController=void 0}a(eM,"InitializeTransformStream");function MT(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Nl}a(MT,"IsTransformStream");function LT(c,d){Br(c._readable._readableStreamController,d),Nh(c,d)}a(LT,"TransformStreamError");function Nh(c,d){zl(c._transformStreamController),ls(c._writable._writableStreamController,d),$h(c)}a(Nh,"TransformStreamErrorWritableAndUnblockWrite");function $h(c){c._backpressure&&$l(c,!1)}a($h,"TransformStreamUnblockWrite");function $l(c,d){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(g=>{c._backpressureChangePromise_resolve=g}),c._backpressure=d}a($l,"TransformStreamSetBackpressure");class no{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Dl(this))throw Ul("desiredSize");let d=this._controlledTransformStream._readable._readableStreamController;return Oh(d)}enqueue(d=void 0){if(!Dl(this))throw Ul("enqueue");jT(this,d)}error(d=void 0){if(!Dl(this))throw Ul("error");nM(this,d)}terminate(){if(!Dl(this))throw Ul("terminate");oM(this)}}Object.defineProperties(no.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),n(no.prototype.enqueue,"enqueue"),n(no.prototype.error,"error"),n(no.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(no.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Dl(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof no}a(Dl,"IsTransformStreamDefaultController");function tM(c,d,g,P,I){d._controlledTransformStream=c,c._transformStreamController=d,d._transformAlgorithm=g,d._flushAlgorithm=P,d._cancelAlgorithm=I,d._finishPromise=void 0,d._finishPromise_resolve=void 0,d._finishPromise_reject=void 0}a(tM,"SetUpTransformStreamDefaultController");function rM(c,d){let g=Object.create(no.prototype),P,I,j;d.transform!==void 0?P=a(V=>d.transform(V,g),"transformAlgorithm"):P=a(V=>{try{return jT(g,V),p(void 0)}catch(fe){return f(fe)}},"transformAlgorithm"),d.flush!==void 0?I=a(()=>d.flush(g),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),d.cancel!==void 0?j=a(V=>d.cancel(V),"cancelAlgorithm"):j=a(()=>p(void 0),"cancelAlgorithm"),tM(c,g,P,I,j)}a(rM,"SetUpTransformStreamDefaultControllerFromTransformer");function zl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(zl,"TransformStreamDefaultControllerClearAlgorithms");function jT(c,d){let g=c._controlledTransformStream,P=g._readable._readableStreamController;if(!Li(P))throw new TypeError("Readable side is not in a state that permits enqueue");try{Mi(P,d)}catch(j){throw Nh(g,j),g._readable._storedError}kU(P)!==g._backpressure&&$l(g,!0)}a(jT,"TransformStreamDefaultControllerEnqueue");function nM(c,d){LT(c._controlledTransformStream,d)}a(nM,"TransformStreamDefaultControllerError");function FT(c,d){let g=c._transformAlgorithm(d);return S(g,void 0,P=>{throw LT(c._controlledTransformStream,P),P})}a(FT,"TransformStreamDefaultControllerPerformTransform");function oM(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;qo(g);let P=new TypeError("TransformStream terminated");Nh(d,P)}a(oM,"TransformStreamDefaultControllerTerminate");function iM(c,d){let g=c._transformStreamController;if(c._backpressure){let P=c._backpressureChangePromise;return S(P,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return FT(g,d)})}return FT(g,d)}a(iM,"TransformStreamDefaultSinkWriteAlgorithm");function aM(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let P=c._readable;g._finishPromise=l((j,V)=>{g._finishPromise_resolve=j,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return zl(g),m(I,()=>(P._state==="errored"?ji(g,P._storedError):(Br(P._readableStreamController,d),Dh(g)),null),j=>(Br(P._readableStreamController,j),ji(g,j),null)),g._finishPromise}a(aM,"TransformStreamDefaultSinkAbortAlgorithm");function sM(c){let d=c._transformStreamController;if(d._finishPromise!==void 0)return d._finishPromise;let g=c._readable;d._finishPromise=l((I,j)=>{d._finishPromise_resolve=I,d._finishPromise_reject=j});let P=d._flushAlgorithm();return zl(d),m(P,()=>(g._state==="errored"?ji(d,g._storedError):(qo(g._readableStreamController),Dh(d)),null),I=>(Br(g._readableStreamController,I),ji(d,I),null)),d._finishPromise}a(sM,"TransformStreamDefaultSinkCloseAlgorithm");function cM(c){return $l(c,!1),c._backpressureChangePromise}a(cM,"TransformStreamDefaultSourcePullAlgorithm");function uM(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let P=c._writable;g._finishPromise=l((j,V)=>{g._finishPromise_resolve=j,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return zl(g),m(I,()=>(P._state==="errored"?ji(g,P._storedError):(ls(P._writableStreamController,d),$h(c),Dh(g)),null),j=>(ls(P._writableStreamController,j),$h(c),ji(g,j),null)),g._finishPromise}a(uM,"TransformStreamDefaultSourceCancelAlgorithm");function Ul(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(Ul,"defaultControllerBrandCheckException");function Dh(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Dh,"defaultControllerFinishPromiseResolve");function ji(c,d){c._finishPromise_reject!==void 0&&(E(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(ji,"defaultControllerFinishPromiseReject");function BT(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(BT,"streamBrandCheckException"),t.ByteLengthQueuingStrategy=Ol,t.CountQueuingStrategy=kl,t.ReadableByteStreamController=In,t.ReadableStream=jt,t.ReadableStreamBYOBReader=Qn,t.ReadableStreamBYOBRequest=Uo,t.ReadableStreamDefaultController=Rn,t.ReadableStreamDefaultReader=X,t.TransformStream=Nl,t.TransformStreamDefaultController=no,t.WritableStream=eo,t.WritableStreamDefaultController=Ui,t.WritableStreamDefaultWriter=Cn}))});var YO=D(()=>{if(!globalThis.ReadableStream)try{let t=require("node:process"),{emitWarning:e}=t;try{t.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),t.emitWarning=e}catch(r){throw t.emitWarning=e,r}}catch{Object.assign(globalThis,XO())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=a(function(r){let o=0,n=this;return new ReadableStream({type:"bytes",async pull(i){let u=await n.slice(o,Math.min(n.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===n.size&&i.close()}})},"name"))}catch{}});async function*Yb(t,e=!0){for(let r of t)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(e){let o=r.byteOffset,n=r.byteOffset+r.byteLength;for(;o!==n;){let i=Math.min(n-o,QO),s=r.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield r;else{let o=0,n=r;for(;o!==n.size;){let s=await n.slice(o,Math.min(n.size,o+QO)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var Jie,QO,ek,b6,Jr,Tu=Ct(()=>{Jie=xt(YO(),1);QO=65536;a(Yb,"toIterator");ek=class Qb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(e=[],r={}){if(typeof e!="object"||e===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof e[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let o=new TextEncoder;for(let i of e){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Qb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${r.endings===void 0?"transparent":r.endings}`;let n=r.type===void 0?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(n)?n:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,r="";for await(let o of Yb(this.#e,!1))r+=e.decode(o,{stream:!0});return r+=e.decode(),r}async arrayBuffer(){let e=new Uint8Array(this.size),r=0;for await(let o of Yb(this.#e,!1))e.set(o,r),r+=o.length;return e.buffer}stream(){let e=Yb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let o=await e.next();o.done?r.close():r.enqueue(o.value)},async cancel(){await e.return()}})}slice(e=0,r=this.size,o=""){let{size:n}=this,i=e<0?Math.max(n+e,0):Math.min(e,n),s=r<0?Math.max(n+r,0):Math.min(r,n),u=Math.max(s-i,0),l=this.#e,p=[],f=0;for(let m of l){if(f>=u)break;let h=ArrayBuffer.isView(m)?m.byteLength:m.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(m)?(_=m.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=m.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let y=new Qb([],{type:String(o).toLowerCase()});return y.#r=u,y.#e=p,y}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&typeof e=="object"&&typeof e.constructor=="function"&&(typeof e.stream=="function"||typeof e.arrayBuffer=="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}};Object.defineProperties(ek.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});b6=ek,Jr=b6});var P6,S6,Io,eP=Ct(()=>{Tu();P6=class extends Jr{static{a(this,"File")}#e=0;#t="";constructor(e,r,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,o),o===null&&(o={});let n=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(n)||(this.#e=n),this.#t=String(r)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof Jr&&/^(File)$/.test(e[Symbol.toStringTag])}},S6=P6,Io=S6});function nk(t,e=Jr){var r=`${tk()}${tk()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],n=`--${r}\r
|
|
15
|
+
Content-Disposition: form-data; name="`;return t.forEach((i,s)=>typeof i=="string"?o.push(n+tP(s)+`"\r
|
|
16
16
|
\r
|
|
17
17
|
${i.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
18
18
|
`)}\r
|
|
19
|
-
`):o.push(n+
|
|
19
|
+
`):o.push(n+tP(s)+`"; filename="${tP(i.name,1)}"\r
|
|
20
20
|
Content-Type: ${i.type||"application/octet-stream"}\r
|
|
21
21
|
\r
|
|
22
22
|
`,i,`\r
|
|
23
|
-
`)),o.push(`--${r}--`),new e(o,{type:"multipart/form-data; boundary="+r})}var xu,
|
|
24
|
-
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),
|
|
25
|
-
--`+e;let r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o),this.boundaryChars[r[o]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ct.START_BOUNDARY}write(e){let r=0,o=e.length,n=this.index,{lookbehind:i,boundary:s,boundaryChars:u,index:l,state:p,flags:f}=this,y=this.boundary.length,m=y-1,h=e.length,_,P,E=a(Y=>{this[Y+"Mark"]=r},"mark"),x=a(Y=>{delete this[Y+"Mark"]},"clear"),k=a((Y,H,X,re)=>{(H===void 0||H!==X)&&this[Y](re&&re.subarray(H,X))},"callback"),L=a((Y,H)=>{let X=Y+"Mark";X in this&&(H?(k(Y,this[X],r,e),delete this[X]):(k(Y,this[X],e.length,e),this[X]=0))},"dataCallback");for(r=0;r<o;r++)switch(_=e[r],p){case ct.START_BOUNDARY:if(l===s.length-2){if(_===wu)f|=Ro.LAST_BOUNDARY;else if(_!==qf)return;l++;break}else if(l-1===s.length-2){if(f&Ro.LAST_BOUNDARY&&_===wu)p=ct.END,f=0;else if(!(f&Ro.LAST_BOUNDARY)&&_===Bf)l=0,k("onPartBegin"),p=ct.HEADER_FIELD_START;else return;break}_!==s[l+2]&&(l=-2),_===s[l+2]&&l++;break;case ct.HEADER_FIELD_START:p=ct.HEADER_FIELD,E("onHeaderField"),l=0;case ct.HEADER_FIELD:if(_===qf){x("onHeaderField"),p=ct.HEADERS_ALMOST_DONE;break}if(l++,_===wu)break;if(_===l6){if(l===1)return;L("onHeaderField",!0),p=ct.HEADER_VALUE_START;break}if(P=f6(_),P<d6||P>p6)return;break;case ct.HEADER_VALUE_START:if(_===u6)break;E("onHeaderValue"),p=ct.HEADER_VALUE;case ct.HEADER_VALUE:_===qf&&(L("onHeaderValue",!0),k("onHeaderEnd"),p=ct.HEADER_VALUE_ALMOST_DONE);break;case ct.HEADER_VALUE_ALMOST_DONE:if(_!==Bf)return;p=ct.HEADER_FIELD_START;break;case ct.HEADERS_ALMOST_DONE:if(_!==Bf)return;k("onHeadersEnd"),p=ct.PART_DATA_START;break;case ct.PART_DATA_START:p=ct.PART_DATA,E("onPartData");case ct.PART_DATA:if(n=l,l===0){for(r+=m;r<h&&!(e[r]in u);)r+=y;r-=m,_=e[r]}if(l<s.length)s[l]===_?(l===0&&L("onPartData",!0),l++):l=0;else if(l===s.length)l++,_===qf?f|=Ro.PART_BOUNDARY:_===wu?f|=Ro.LAST_BOUNDARY:l=0;else if(l-1===s.length)if(f&Ro.PART_BOUNDARY){if(l=0,_===Bf){f&=~Ro.PART_BOUNDARY,k("onPartEnd"),k("onPartBegin"),p=ct.HEADER_FIELD_START;break}}else f&Ro.LAST_BOUNDARY&&_===wu?(k("onPartEnd"),p=ct.END,f=0):l=0;if(l>0)i[l-1]=_;else if(n>0){let Y=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);k("onPartData",0,n,Y),n=0,E("onPartData"),r--}break;case ct.END:break;default:throw new Error(`Unexpected state entered: ${p}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=l,this.state=p,this.flags=f}end(){if(this.state===ct.HEADER_FIELD_START&&this.index===0||this.state===ct.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ct.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a(m6,"_fileName");a(h6,"toFormData")});async function nS(t){if(t[ir].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[ir].disturbed=!0,t[ir].error)throw t[ir].error;let{body:e}=t;if(e===null)return hr.Buffer.alloc(0);if(!(e instanceof Dr.default))return hr.Buffer.alloc(0);let r=[],o=0;try{for await(let n of e){if(t.size>0&&o+n.length>t.size){let i=new Wt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(i),i}o+=n.length,r.push(n)}}catch(n){throw n instanceof Bn?n:new Wt(`Invalid response body while trying to fetch ${t.url}: ${n.message}`,"system",n)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return r.every(n=>typeof n=="string")?hr.Buffer.from(r.join("")):hr.Buffer.concat(r,o)}catch(n){throw new Wt(`Could not create Buffer from response body for ${t.url}: ${n.message}`,"system",n)}else throw new Wt(`Premature close of server response while trying to fetch ${t.url}`)}var Dr,qn,hr,g6,ir,fn,Da,y6,Gf,uk,lk,Vf=Ct(()=>{Dr=xt(require("node:stream"),1),qn=require("node:util"),hr=require("node:buffer");Tu();Uf();Yb();Mf();jf();g6=(0,qn.promisify)(Dr.default.pipeline),ir=Symbol("Body internals"),fn=class{static{a(this,"Body")}constructor(e,{size:r=0}={}){let o=null;e===null?e=null:Qb(e)?e=hr.Buffer.from(e.toString()):Au(e)||hr.Buffer.isBuffer(e)||(qn.types.isAnyArrayBuffer(e)?e=hr.Buffer.from(e):ArrayBuffer.isView(e)?e=hr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Dr.default||(e instanceof Co?(e=HO(e),o=e.type.split("=")[1]):e=hr.Buffer.from(String(e))));let n=e;hr.Buffer.isBuffer(e)?n=Dr.default.Readable.from(e):Au(e)&&(n=Dr.default.Readable.from(e.stream())),this[ir]={body:e,stream:n,boundary:o,disturbed:!1,error:null},this.size=r,e instanceof Dr.default&&e.on("error",i=>{let s=i instanceof Bn?i:new Wt(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[ir].error=s})}get body(){return this[ir].stream}get bodyUsed(){return this[ir].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:r,byteLength:o}=await nS(this);return e.slice(r,r+o)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let o=new Co,n=new URLSearchParams(await this.text());for(let[i,s]of n)o.append(i,s);return o}let{toFormData:r}=await Promise.resolve().then(()=>(ck(),sk));return r(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[ir].body&&this[ir].body.type||"",r=await this.arrayBuffer();return new Jr([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await nS(this);return new TextDecoder().decode(e)}buffer(){return nS(this)}};fn.prototype.buffer=(0,qn.deprecate)(fn.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(fn.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,qn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});a(nS,"consumeBody");Da=a((t,e)=>{let r,o,{body:n}=t[ir];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof Dr.default&&typeof n.getBoundary!="function"&&(r=new Dr.PassThrough({highWaterMark:e}),o=new Dr.PassThrough({highWaterMark:e}),n.pipe(r),n.pipe(o),t[ir].stream=r,n=o),n},"clone"),y6=(0,qn.deprecate)(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Gf=a((t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":Qb(t)?"application/x-www-form-urlencoded;charset=UTF-8":Au(t)?t.type||null:hr.Buffer.isBuffer(t)||qn.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof Co?`multipart/form-data; boundary=${e[ir].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${y6(t)}`:t instanceof Dr.default?null:"text/plain;charset=UTF-8","extractContentType"),uk=a(t=>{let{body:e}=t[ir];return e===null?0:Au(e)?e.size:hr.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),lk=a(async(t,{body:e})=>{e===null?t.end():await g6(e,t)},"writeToStream")});function dk(t=[]){return new ar(t.reduce((e,r,o,n)=>(o%2===0&&e.push(n.slice(o,o+2)),e),[]).filter(([e,r])=>{try{return Hf(e),iS(e,String(r)),!0}catch{return!1}}))}var oS,Iu,Hf,iS,ar,Zf=Ct(()=>{oS=require("node:util"),Iu=xt(require("node:http"),1),Hf=typeof Iu.default.validateHeaderName=="function"?Iu.default.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},iS=typeof Iu.default.validateHeaderValue=="function"?Iu.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let r=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},ar=class t extends URLSearchParams{static{a(this,"Headers")}constructor(e){let r=[];if(e instanceof t){let o=e.raw();for(let[n,i]of Object.entries(o))r.push(...i.map(s=>[n,s]))}else if(e!=null)if(typeof e=="object"&&!oS.types.isBoxedPrimitive(e)){let o=e[Symbol.iterator];if(o==null)r.push(...Object.entries(e));else{if(typeof o!="function")throw new TypeError("Header pairs must be iterable");r=[...e].map(n=>{if(typeof n!="object"||oS.types.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map(n=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([o,n])=>(Hf(o),iS(o,String(n)),[String(o).toLowerCase(),String(n)])):void 0,super(r),new Proxy(this,{get(o,n,i){switch(n){case"append":case"set":return(s,u)=>(Hf(s),iS(s,String(u)),URLSearchParams.prototype[n].call(o,String(s).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return s=>(Hf(s),URLSearchParams.prototype[n].call(o,String(s).toLowerCase()));case"keys":return()=>(o.sort(),new Set(URLSearchParams.prototype.keys.call(o)).keys());default:return Reflect.get(o,n,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let r=this.getAll(e);if(r.length===0)return null;let o=r.join(", ");return/^content-encoding$/i.test(e)&&(o=o.toLowerCase()),o}forEach(e,r=void 0){for(let o of this.keys())Reflect.apply(e,r,[this.get(o),o,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,r)=>(e[r]=this.getAll(r),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,r)=>{let o=this.getAll(r);return r==="host"?e[r]=o[0]:e[r]=o.length>1?o:o[0],e},{})}};Object.defineProperties(ar.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));a(dk,"fromRawHeaders")});var _6,Cu,aS=Ct(()=>{_6=new Set([301,302,303,307,308]),Cu=a(t=>_6.has(t),"isRedirect")});var Xr,gr,pk=Ct(()=>{Zf();Vf();aS();Xr=Symbol("Response internals"),gr=class t extends fn{static{a(this,"Response")}constructor(e=null,r={}){super(e,r);let o=r.status!=null?r.status:200,n=new ar(r.headers);if(e!==null&&!n.has("Content-Type")){let i=Gf(e,this);i&&n.append("Content-Type",i)}this[Xr]={type:"default",url:r.url,status:o,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Xr].type}get url(){return this[Xr].url||""}get status(){return this[Xr].status}get ok(){return this[Xr].status>=200&&this[Xr].status<300}get redirected(){return this[Xr].counter>0}get statusText(){return this[Xr].statusText}get headers(){return this[Xr].headers}get highWaterMark(){return this[Xr].highWaterMark}clone(){return new t(Da(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,r=302){if(!Cu(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:r})}static error(){let e=new t(null,{status:0,statusText:""});return e[Xr].type="error",e}static json(e=void 0,r={}){let o=JSON.stringify(e);if(o===void 0)throw new TypeError("data is not JSON serializable");let n=new ar(r&&r.headers);return n.has("content-type")||n.set("content-type","application/json"),new t(o,{...r,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(gr.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var fk,mk=Ct(()=>{fk=a(t=>{if(t.search)return t.search;let e=t.href.length-1,r=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-r.length]==="?"?"?":""},"getSearch")});function hk(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function vk(t){if(!yk.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function v6(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,gk.isIP)(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function Ua(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:v6(t)}function bk(t,{referrerURLCallback:e,referrerOriginCallback:r}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let o=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let n=t.referrer,i=hk(n),s=hk(n,!0);i.toString().length>4096&&(i=s),e&&(i=e(i)),r&&(s=r(s));let u=new URL(t.url);switch(o){case"no-referrer":return"no-referrer";case"origin":return s;case"unsafe-url":return i;case"strict-origin":return Ua(i)&&!Ua(u)?"no-referrer":s.toString();case"strict-origin-when-cross-origin":return i.origin===u.origin?i:Ua(i)&&!Ua(u)?"no-referrer":s;case"same-origin":return i.origin===u.origin?i:"no-referrer";case"origin-when-cross-origin":return i.origin===u.origin?i:s;case"no-referrer-when-downgrade":return Ua(i)&&!Ua(u)?"no-referrer":i;default:throw new TypeError(`Invalid referrerPolicy: ${o}`)}}function Sk(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let o of e)o&&yk.has(o)&&(r=o);return r}var gk,yk,_k,sS=Ct(()=>{gk=require("node:net");a(hk,"stripURLForUseAsAReferrer");yk=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),_k="strict-origin-when-cross-origin";a(vk,"validateReferrerPolicy");a(v6,"isOriginPotentiallyTrustworthy");a(Ua,"isUrlPotentiallyTrustworthy");a(bk,"determineRequestsReferrer");a(Sk,"parseReferrerPolicyFromHeader")});var Pk,Ek,Dt,Ru,b6,Oo,Tk,xk=Ct(()=>{Pk=require("node:url"),Ek=require("node:util");Zf();Vf();jf();mk();sS();Dt=Symbol("Request internals"),Ru=a(t=>typeof t=="object"&&typeof t[Dt]=="object","isRequest"),b6=(0,Ek.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Oo=class t extends fn{static{a(this,"Request")}constructor(e,r={}){let o;if(Ru(e)?o=new URL(e.url):(o=new URL(e),e={}),o.username!==""||o.password!=="")throw new TypeError(`${o} is an url with embedded credentials.`);let n=r.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!Ru(r)&&"data"in r&&b6(),(r.body!=null||Ru(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=r.body?r.body:Ru(e)&&e.body!==null?Da(e):null;super(i,{size:r.size||e.size||0});let s=new ar(r.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){let p=Gf(i,this);p&&s.set("Content-Type",p)}let u=Ru(e)?e.signal:null;if("signal"in r&&(u=r.signal),u!=null&&!ZO(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=r.referrer==null?e.referrer:r.referrer;if(l==="")l="no-referrer";else if(l){let p=new URL(l);l=/^about:(\/\/)?client$/.test(p)?"client":p}else l=void 0;this[Dt]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:o,signal:u,referrer:l},this.follow=r.follow===void 0?e.follow===void 0?20:e.follow:r.follow,this.compress=r.compress===void 0?e.compress===void 0?!0:e.compress:r.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent,this.highWaterMark=r.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||e.referrerPolicy||""}get method(){return this[Dt].method}get url(){return(0,Pk.format)(this[Dt].parsedURL)}get headers(){return this[Dt].headers}get redirect(){return this[Dt].redirect}get signal(){return this[Dt].signal}get referrer(){if(this[Dt].referrer==="no-referrer")return"";if(this[Dt].referrer==="client")return"about:client";if(this[Dt].referrer)return this[Dt].referrer.toString()}get referrerPolicy(){return this[Dt].referrerPolicy}set referrerPolicy(e){this[Dt].referrerPolicy=vk(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Oo.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});Tk=a(t=>{let{parsedURL:e}=t[Dt],r=new ar(t[Dt].headers);r.has("Accept")||r.set("Accept","*/*");let o=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(o="0"),t.body!==null){let u=uk(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&r.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=_k),t.referrer&&t.referrer!=="no-referrer"?t[Dt].referrer=bk(t):t[Dt].referrer="no-referrer",t[Dt].referrer instanceof URL&&r.set("Referer",t.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:n}=t;typeof n=="function"&&(n=n(e));let i=fk(e),s={path:e.pathname+i,method:t.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:n};return{parsedURL:e,options:s}},"getNodeRequestOptions")});var Ou,Ak=Ct(()=>{Mf();Ou=class extends Bn{static{a(this,"AbortError")}constructor(e,r="aborted"){super(e,r)}}});var Ck={};Xt(Ck,{AbortError:()=>Ou,Blob:()=>Jr,FetchError:()=>Wt,File:()=>Io,FormData:()=>Co,Headers:()=>ar,Request:()=>Oo,Response:()=>gr,blobFrom:()=>tk,blobFromSync:()=>ek,default:()=>cS,fileFrom:()=>rk,fileFromSync:()=>nk,isRedirect:()=>Cu});async function cS(t,e){return new Promise((r,o)=>{let n=new Oo(t,e),{parsedURL:i,options:s}=Tk(n);if(!S6.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=UO(n.url),P=new gr(_,{headers:{"Content-Type":_.typeFull}});r(P);return}let u=(i.protocol==="https:"?Ik.default:wk.default).request,{signal:l}=n,p=null,f=a(()=>{let _=new Ou("The operation was aborted.");o(_),n.body&&n.body instanceof yr.default.Readable&&n.body.destroy(_),!(!p||!p.body)&&p.body.emit("error",_)},"abort");if(l&&l.aborted){f();return}let y=a(()=>{f(),h()},"abortAndFinalize"),m=u(i.toString(),s);l&&l.addEventListener("abort",y);let h=a(()=>{m.abort(),l&&l.removeEventListener("abort",y)},"finalize");m.on("error",_=>{o(new Wt(`request to ${n.url} failed, reason: ${_.message}`,"system",_)),h()}),P6(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let P;_.prependListener("end",()=>{P=_._eventsCount}),_.prependListener("close",E=>{if(p&&P<_._eventsCount&&!E){let x=new Error("Premature close");x.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",x)}})}),m.on("response",_=>{m.setTimeout(0);let P=dk(_.rawHeaders);if(Cu(_.statusCode)){let Y=P.get("Location"),H=null;try{H=Y===null?null:new URL(Y,n.url)}catch{if(n.redirect!=="manual"){o(new Wt(`uri requested responds with an invalid redirect URL: ${Y}`,"invalid-redirect")),h();return}}switch(n.redirect){case"error":o(new Wt(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),h();return;case"manual":break;case"follow":{if(H===null)break;if(n.counter>=n.follow){o(new Wt(`maximum redirect reached at: ${n.url}`,"max-redirect")),h();return}let X={headers:new ar(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:Da(n),signal:n.signal,size:n.size,referrer:n.referrer,referrerPolicy:n.referrerPolicy};if(!WO(n.url,H)||!KO(n.url,H))for(let ce of["authorization","www-authenticate","cookie","cookie2"])X.headers.delete(ce);if(_.statusCode!==303&&n.body&&e.body instanceof yr.default.Readable){o(new Wt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),h();return}(_.statusCode===303||(_.statusCode===301||_.statusCode===302)&&n.method==="POST")&&(X.method="GET",X.body=void 0,X.headers.delete("content-length"));let re=Sk(P);re&&(X.referrerPolicy=re),r(cS(new Oo(H,X))),h();return}default:return o(new TypeError(`Redirect option '${n.redirect}' is not a valid value of RequestRedirect`))}}l&&_.once("end",()=>{l.removeEventListener("abort",y)});let E=(0,yr.pipeline)(_,new yr.PassThrough,Y=>{Y&&o(Y)});process.version<"v12.10"&&_.on("aborted",y);let x={url:n.url,status:_.statusCode,statusText:_.statusMessage,headers:P,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},k=P.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||k===null||_.statusCode===204||_.statusCode===304){p=new gr(E,x),r(p);return}let L={flush:vi.default.Z_SYNC_FLUSH,finishFlush:vi.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){E=(0,yr.pipeline)(E,vi.default.createGunzip(L),Y=>{Y&&o(Y)}),p=new gr(E,x),r(p);return}if(k==="deflate"||k==="x-deflate"){let Y=(0,yr.pipeline)(_,new yr.PassThrough,H=>{H&&o(H)});Y.once("data",H=>{(H[0]&15)===8?E=(0,yr.pipeline)(E,vi.default.createInflate(),X=>{X&&o(X)}):E=(0,yr.pipeline)(E,vi.default.createInflateRaw(),X=>{X&&o(X)}),p=new gr(E,x),r(p)}),Y.once("end",()=>{p||(p=new gr(E,x),r(p))});return}if(k==="br"){E=(0,yr.pipeline)(E,vi.default.createBrotliDecompress(),Y=>{Y&&o(Y)}),p=new gr(E,x),r(p);return}p=new gr(E,x),r(p)}),lk(m,n).catch(o)})}function P6(t,e){let r=ku.Buffer.from(`0\r
|
|
23
|
+
`)),o.push(`--${r}--`),new e(o,{type:"multipart/form-data; boundary="+r})}var xu,E6,T6,tk,x6,rk,tP,yi,Co,Mf=Ct(()=>{Tu();eP();({toStringTag:xu,iterator:E6,hasInstance:T6}=Symbol),tk=Math.random,x6="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),rk=a((t,e,r)=>(t+="",/^(Blob|File)$/.test(e&&e[xu])?[(r=r!==void 0?r+"":e[xu]=="File"?e.name:"blob",t),e.name!==r||e[xu]=="blob"?new Io([e],r,e):e]:[t,e+""]),"f"),tP=a((t,e)=>(e?t:t.replace(/\r?\n|\r/g,`\r
|
|
24
|
+
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),yi=a((t,e,r)=>{if(e.length<r)throw new TypeError(`Failed to execute '${t}' on 'FormData': ${r} arguments required, but only ${e.length} present.`)},"x"),Co=class{static{a(this,"FormData")}#e=[];constructor(...e){if(e.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[xu](){return"FormData"}[E6](){return this.entries()}static[T6](e){return e&&typeof e=="object"&&e[xu]==="FormData"&&!x6.some(r=>typeof e[r]!="function")}append(...e){yi("append",arguments,2),this.#e.push(rk(...e))}delete(e){yi("delete",arguments,1),e+="",this.#e=this.#e.filter(([r])=>r!==e)}get(e){yi("get",arguments,1),e+="";for(var r=this.#e,o=r.length,n=0;n<o;n++)if(r[n][0]===e)return r[n][1];return null}getAll(e,r){return yi("getAll",arguments,1),r=[],e+="",this.#e.forEach(o=>o[0]===e&&r.push(o[1])),r}has(e){return yi("has",arguments,1),e+="",this.#e.some(r=>r[0]===e)}forEach(e,r){yi("forEach",arguments,1);for(var[o,n]of this)e.call(r,n,o,this)}set(...e){yi("set",arguments,2);var r=[],o=!0;e=rk(...e),this.#e.forEach(n=>{n[0]===e[0]?o&&(o=!r.push(e)):r.push(n)}),o&&r.push(e),this.#e=r}*entries(){yield*this.#e}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}};a(nk,"formDataToBlob")});var Bn,Lf=Ct(()=>{Bn=class extends Error{static{a(this,"FetchBaseError")}constructor(e,r){super(e),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}});var Wt,rP=Ct(()=>{Lf();Wt=class extends Bn{static{a(this,"FetchError")}constructor(e,r,o){super(e,r),o&&(this.code=this.errno=o.code,this.erroredSysCall=o.syscall)}}});var jf,nP,Au,ok,ik,ak,Ff=Ct(()=>{jf=Symbol.toStringTag,nP=a(t=>typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&typeof t.sort=="function"&&t[jf]==="URLSearchParams","isURLSearchParameters"),Au=a(t=>t&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&/^(Blob|File)$/.test(t[jf]),"isBlob"),ok=a(t=>typeof t=="object"&&(t[jf]==="AbortSignal"||t[jf]==="EventTarget"),"isAbortSignal"),ik=a((t,e)=>{let r=new URL(e).hostname,o=new URL(t).hostname;return r===o||r.endsWith(`.${o}`)},"isDomainOrSubdomain"),ak=a((t,e)=>{let r=new URL(e).protocol,o=new URL(t).protocol;return r===o},"isSameProtocol")});var ck=D((hae,sk)=>{if(!globalThis.DOMException)try{let{MessageChannel:t}=require("worker_threads"),e=new t().port1,r=new ArrayBuffer;e.postMessage(r,[r,r])}catch(t){t.constructor.name==="DOMException"&&(globalThis.DOMException=t.constructor)}sk.exports=globalThis.DOMException});var _i,uk,lk,oP,dk,pk,fk,mk,hk,gk,Bf,iP=Ct(()=>{_i=require("node:fs"),uk=require("node:path"),lk=xt(ck(),1);eP();Tu();({stat:oP}=_i.promises),dk=a((t,e)=>hk((0,_i.statSync)(t),t,e),"blobFromSync"),pk=a((t,e)=>oP(t).then(r=>hk(r,t,e)),"blobFrom"),fk=a((t,e)=>oP(t).then(r=>gk(r,t,e)),"fileFrom"),mk=a((t,e)=>gk((0,_i.statSync)(t),t,e),"fileFromSync"),hk=a((t,e,r="")=>new Jr([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],{type:r}),"fromBlob"),gk=a((t,e,r="")=>new Io([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],(0,uk.basename)(e),{type:r,lastModified:t.mtimeMs}),"fromFile"),Bf=class t{static{a(this,"BlobDataItem")}#e;#t;constructor(e){this.#e=e.path,this.#t=e.start,this.size=e.size,this.lastModified=e.lastModified}slice(e,r){return new t({path:this.#e,lastModified:this.lastModified,size:r-e,start:this.#t+e})}async*stream(){let{mtimeMs:e}=await oP(this.#e);if(e>this.lastModified)throw new lk.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.","NotReadableError");yield*(0,_i.createReadStream)(this.#e,{start:this.#t,end:this.#t+this.size-1})}get[Symbol.toStringTag](){return"Blob"}}});var _k={};Xt(_k,{toFormData:()=>k6});function O6(t){let e=t.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!e)return;let r=e[2]||e[3]||"",o=r.slice(r.lastIndexOf("\\")+1);return o=o.replace(/%22/g,'"'),o=o.replace(/&#(\d{4});/g,(n,i)=>String.fromCharCode(i)),o}async function k6(t,e){if(!/multipart/i.test(e))throw new TypeError("Failed to fetch");let r=e.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let o=new aP(r[1]||r[2]),n,i,s,u,l,p,f=[],y=new Co,m=a(T=>{s+=E.decode(T,{stream:!0})},"onPartData"),h=a(T=>{f.push(T)},"appendToFile"),_=a(()=>{let T=new Io(f,p,{type:l});y.append(u,T)},"appendFileToFormData"),S=a(()=>{y.append(u,s)},"appendEntryToFormData"),E=new TextDecoder("utf-8");E.decode(),o.onPartBegin=function(){o.onPartData=m,o.onPartEnd=S,n="",i="",s="",u="",l="",p=null,f.length=0},o.onHeaderField=function(T){n+=E.decode(T,{stream:!0})},o.onHeaderValue=function(T){i+=E.decode(T,{stream:!0})},o.onHeaderEnd=function(){if(i+=E.decode(),n=n.toLowerCase(),n==="content-disposition"){let T=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);T&&(u=T[2]||T[3]||""),p=O6(i),p&&(o.onPartData=h,o.onPartEnd=_)}else n==="content-type"&&(l=i);i="",n=""};for await(let T of t)o.write(T);return o.end(),y}var pn,ct,yk,Ro,qf,Gf,A6,wu,w6,I6,C6,R6,vi,aP,vk=Ct(()=>{iP();Mf();pn=0,ct={START_BOUNDARY:pn++,HEADER_FIELD_START:pn++,HEADER_FIELD:pn++,HEADER_VALUE_START:pn++,HEADER_VALUE:pn++,HEADER_VALUE_ALMOST_DONE:pn++,HEADERS_ALMOST_DONE:pn++,PART_DATA_START:pn++,PART_DATA:pn++,END:pn++},yk=1,Ro={PART_BOUNDARY:yk,LAST_BOUNDARY:yk*=2},qf=10,Gf=13,A6=32,wu=45,w6=58,I6=97,C6=122,R6=a(t=>t|32,"lower"),vi=a(()=>{},"noop"),aP=class{static{a(this,"MultipartParser")}constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=vi,this.onHeaderField=vi,this.onHeadersEnd=vi,this.onHeaderValue=vi,this.onPartBegin=vi,this.onPartData=vi,this.onPartEnd=vi,this.boundaryChars={},e=`\r
|
|
25
|
+
--`+e;let r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o),this.boundaryChars[r[o]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ct.START_BOUNDARY}write(e){let r=0,o=e.length,n=this.index,{lookbehind:i,boundary:s,boundaryChars:u,index:l,state:p,flags:f}=this,y=this.boundary.length,m=y-1,h=e.length,_,S,E=a(Y=>{this[Y+"Mark"]=r},"mark"),T=a(Y=>{delete this[Y+"Mark"]},"clear"),k=a((Y,H,W,re)=>{(H===void 0||H!==W)&&this[Y](re&&re.subarray(H,W))},"callback"),F=a((Y,H)=>{let W=Y+"Mark";W in this&&(H?(k(Y,this[W],r,e),delete this[W]):(k(Y,this[W],e.length,e),this[W]=0))},"dataCallback");for(r=0;r<o;r++)switch(_=e[r],p){case ct.START_BOUNDARY:if(l===s.length-2){if(_===wu)f|=Ro.LAST_BOUNDARY;else if(_!==Gf)return;l++;break}else if(l-1===s.length-2){if(f&Ro.LAST_BOUNDARY&&_===wu)p=ct.END,f=0;else if(!(f&Ro.LAST_BOUNDARY)&&_===qf)l=0,k("onPartBegin"),p=ct.HEADER_FIELD_START;else return;break}_!==s[l+2]&&(l=-2),_===s[l+2]&&l++;break;case ct.HEADER_FIELD_START:p=ct.HEADER_FIELD,E("onHeaderField"),l=0;case ct.HEADER_FIELD:if(_===Gf){T("onHeaderField"),p=ct.HEADERS_ALMOST_DONE;break}if(l++,_===wu)break;if(_===w6){if(l===1)return;F("onHeaderField",!0),p=ct.HEADER_VALUE_START;break}if(S=R6(_),S<I6||S>C6)return;break;case ct.HEADER_VALUE_START:if(_===A6)break;E("onHeaderValue"),p=ct.HEADER_VALUE;case ct.HEADER_VALUE:_===Gf&&(F("onHeaderValue",!0),k("onHeaderEnd"),p=ct.HEADER_VALUE_ALMOST_DONE);break;case ct.HEADER_VALUE_ALMOST_DONE:if(_!==qf)return;p=ct.HEADER_FIELD_START;break;case ct.HEADERS_ALMOST_DONE:if(_!==qf)return;k("onHeadersEnd"),p=ct.PART_DATA_START;break;case ct.PART_DATA_START:p=ct.PART_DATA,E("onPartData");case ct.PART_DATA:if(n=l,l===0){for(r+=m;r<h&&!(e[r]in u);)r+=y;r-=m,_=e[r]}if(l<s.length)s[l]===_?(l===0&&F("onPartData",!0),l++):l=0;else if(l===s.length)l++,_===Gf?f|=Ro.PART_BOUNDARY:_===wu?f|=Ro.LAST_BOUNDARY:l=0;else if(l-1===s.length)if(f&Ro.PART_BOUNDARY){if(l=0,_===qf){f&=~Ro.PART_BOUNDARY,k("onPartEnd"),k("onPartBegin"),p=ct.HEADER_FIELD_START;break}}else f&Ro.LAST_BOUNDARY&&_===wu?(k("onPartEnd"),p=ct.END,f=0):l=0;if(l>0)i[l-1]=_;else if(n>0){let Y=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);k("onPartData",0,n,Y),n=0,E("onPartData"),r--}break;case ct.END:break;default:throw new Error(`Unexpected state entered: ${p}`)}F("onHeaderField"),F("onHeaderValue"),F("onPartData"),this.index=l,this.state=p,this.flags=f}end(){if(this.state===ct.HEADER_FIELD_START&&this.index===0||this.state===ct.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ct.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a(O6,"_fileName");a(k6,"toFormData")});async function sP(t){if(t[ir].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[ir].disturbed=!0,t[ir].error)throw t[ir].error;let{body:e}=t;if(e===null)return hr.Buffer.alloc(0);if(!(e instanceof zr.default))return hr.Buffer.alloc(0);let r=[],o=0;try{for await(let n of e){if(t.size>0&&o+n.length>t.size){let i=new Wt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(i),i}o+=n.length,r.push(n)}}catch(n){throw n instanceof Bn?n:new Wt(`Invalid response body while trying to fetch ${t.url}: ${n.message}`,"system",n)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return r.every(n=>typeof n=="string")?hr.Buffer.from(r.join("")):hr.Buffer.concat(r,o)}catch(n){throw new Wt(`Could not create Buffer from response body for ${t.url}: ${n.message}`,"system",n)}else throw new Wt(`Premature close of server response while trying to fetch ${t.url}`)}var zr,qn,hr,N6,ir,fn,za,$6,Vf,bk,Pk,Hf=Ct(()=>{zr=xt(require("node:stream"),1),qn=require("node:util"),hr=require("node:buffer");Tu();Mf();rP();Lf();Ff();N6=(0,qn.promisify)(zr.default.pipeline),ir=Symbol("Body internals"),fn=class{static{a(this,"Body")}constructor(e,{size:r=0}={}){let o=null;e===null?e=null:nP(e)?e=hr.Buffer.from(e.toString()):Au(e)||hr.Buffer.isBuffer(e)||(qn.types.isAnyArrayBuffer(e)?e=hr.Buffer.from(e):ArrayBuffer.isView(e)?e=hr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof zr.default||(e instanceof Co?(e=nk(e),o=e.type.split("=")[1]):e=hr.Buffer.from(String(e))));let n=e;hr.Buffer.isBuffer(e)?n=zr.default.Readable.from(e):Au(e)&&(n=zr.default.Readable.from(e.stream())),this[ir]={body:e,stream:n,boundary:o,disturbed:!1,error:null},this.size=r,e instanceof zr.default&&e.on("error",i=>{let s=i instanceof Bn?i:new Wt(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[ir].error=s})}get body(){return this[ir].stream}get bodyUsed(){return this[ir].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:r,byteLength:o}=await sP(this);return e.slice(r,r+o)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let o=new Co,n=new URLSearchParams(await this.text());for(let[i,s]of n)o.append(i,s);return o}let{toFormData:r}=await Promise.resolve().then(()=>(vk(),_k));return r(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[ir].body&&this[ir].body.type||"",r=await this.arrayBuffer();return new Jr([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await sP(this);return new TextDecoder().decode(e)}buffer(){return sP(this)}};fn.prototype.buffer=(0,qn.deprecate)(fn.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(fn.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,qn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});a(sP,"consumeBody");za=a((t,e)=>{let r,o,{body:n}=t[ir];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof zr.default&&typeof n.getBoundary!="function"&&(r=new zr.PassThrough({highWaterMark:e}),o=new zr.PassThrough({highWaterMark:e}),n.pipe(r),n.pipe(o),t[ir].stream=r,n=o),n},"clone"),$6=(0,qn.deprecate)(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Vf=a((t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":nP(t)?"application/x-www-form-urlencoded;charset=UTF-8":Au(t)?t.type||null:hr.Buffer.isBuffer(t)||qn.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof Co?`multipart/form-data; boundary=${e[ir].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${$6(t)}`:t instanceof zr.default?null:"text/plain;charset=UTF-8","extractContentType"),bk=a(t=>{let{body:e}=t[ir];return e===null?0:Au(e)?e.size:hr.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),Pk=a(async(t,{body:e})=>{e===null?t.end():await N6(e,t)},"writeToStream")});function Sk(t=[]){return new ar(t.reduce((e,r,o,n)=>(o%2===0&&e.push(n.slice(o,o+2)),e),[]).filter(([e,r])=>{try{return Zf(e),uP(e,String(r)),!0}catch{return!1}}))}var cP,Iu,Zf,uP,ar,Wf=Ct(()=>{cP=require("node:util"),Iu=xt(require("node:http"),1),Zf=typeof Iu.default.validateHeaderName=="function"?Iu.default.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},uP=typeof Iu.default.validateHeaderValue=="function"?Iu.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let r=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},ar=class t extends URLSearchParams{static{a(this,"Headers")}constructor(e){let r=[];if(e instanceof t){let o=e.raw();for(let[n,i]of Object.entries(o))r.push(...i.map(s=>[n,s]))}else if(e!=null)if(typeof e=="object"&&!cP.types.isBoxedPrimitive(e)){let o=e[Symbol.iterator];if(o==null)r.push(...Object.entries(e));else{if(typeof o!="function")throw new TypeError("Header pairs must be iterable");r=[...e].map(n=>{if(typeof n!="object"||cP.types.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map(n=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([o,n])=>(Zf(o),uP(o,String(n)),[String(o).toLowerCase(),String(n)])):void 0,super(r),new Proxy(this,{get(o,n,i){switch(n){case"append":case"set":return(s,u)=>(Zf(s),uP(s,String(u)),URLSearchParams.prototype[n].call(o,String(s).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return s=>(Zf(s),URLSearchParams.prototype[n].call(o,String(s).toLowerCase()));case"keys":return()=>(o.sort(),new Set(URLSearchParams.prototype.keys.call(o)).keys());default:return Reflect.get(o,n,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let r=this.getAll(e);if(r.length===0)return null;let o=r.join(", ");return/^content-encoding$/i.test(e)&&(o=o.toLowerCase()),o}forEach(e,r=void 0){for(let o of this.keys())Reflect.apply(e,r,[this.get(o),o,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,r)=>(e[r]=this.getAll(r),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,r)=>{let o=this.getAll(r);return r==="host"?e[r]=o[0]:e[r]=o.length>1?o:o[0],e},{})}};Object.defineProperties(ar.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));a(Sk,"fromRawHeaders")});var D6,Cu,lP=Ct(()=>{D6=new Set([301,302,303,307,308]),Cu=a(t=>D6.has(t),"isRedirect")});var Xr,gr,Ek=Ct(()=>{Wf();Hf();lP();Xr=Symbol("Response internals"),gr=class t extends fn{static{a(this,"Response")}constructor(e=null,r={}){super(e,r);let o=r.status!=null?r.status:200,n=new ar(r.headers);if(e!==null&&!n.has("Content-Type")){let i=Vf(e,this);i&&n.append("Content-Type",i)}this[Xr]={type:"default",url:r.url,status:o,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Xr].type}get url(){return this[Xr].url||""}get status(){return this[Xr].status}get ok(){return this[Xr].status>=200&&this[Xr].status<300}get redirected(){return this[Xr].counter>0}get statusText(){return this[Xr].statusText}get headers(){return this[Xr].headers}get highWaterMark(){return this[Xr].highWaterMark}clone(){return new t(za(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,r=302){if(!Cu(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:r})}static error(){let e=new t(null,{status:0,statusText:""});return e[Xr].type="error",e}static json(e=void 0,r={}){let o=JSON.stringify(e);if(o===void 0)throw new TypeError("data is not JSON serializable");let n=new ar(r&&r.headers);return n.has("content-type")||n.set("content-type","application/json"),new t(o,{...r,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(gr.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var Tk,xk=Ct(()=>{Tk=a(t=>{if(t.search)return t.search;let e=t.href.length-1,r=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-r.length]==="?"?"?":""},"getSearch")});function Ak(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Rk(t){if(!Ik.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function z6(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,wk.isIP)(e);return r===4&&/^127\./.test(e)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function Ua(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:z6(t)}function Ok(t,{referrerURLCallback:e,referrerOriginCallback:r}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let o=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let n=t.referrer,i=Ak(n),s=Ak(n,!0);i.toString().length>4096&&(i=s),e&&(i=e(i)),r&&(s=r(s));let u=new URL(t.url);switch(o){case"no-referrer":return"no-referrer";case"origin":return s;case"unsafe-url":return i;case"strict-origin":return Ua(i)&&!Ua(u)?"no-referrer":s.toString();case"strict-origin-when-cross-origin":return i.origin===u.origin?i:Ua(i)&&!Ua(u)?"no-referrer":s;case"same-origin":return i.origin===u.origin?i:"no-referrer";case"origin-when-cross-origin":return i.origin===u.origin?i:s;case"no-referrer-when-downgrade":return Ua(i)&&!Ua(u)?"no-referrer":i;default:throw new TypeError(`Invalid referrerPolicy: ${o}`)}}function kk(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let o of e)o&&Ik.has(o)&&(r=o);return r}var wk,Ik,Ck,dP=Ct(()=>{wk=require("node:net");a(Ak,"stripURLForUseAsAReferrer");Ik=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),Ck="strict-origin-when-cross-origin";a(Rk,"validateReferrerPolicy");a(z6,"isOriginPotentiallyTrustworthy");a(Ua,"isUrlPotentiallyTrustworthy");a(Ok,"determineRequestsReferrer");a(kk,"parseReferrerPolicyFromHeader")});var Nk,$k,zt,Ru,U6,Oo,Dk,zk=Ct(()=>{Nk=require("node:url"),$k=require("node:util");Wf();Hf();Ff();xk();dP();zt=Symbol("Request internals"),Ru=a(t=>typeof t=="object"&&typeof t[zt]=="object","isRequest"),U6=(0,$k.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Oo=class t extends fn{static{a(this,"Request")}constructor(e,r={}){let o;if(Ru(e)?o=new URL(e.url):(o=new URL(e),e={}),o.username!==""||o.password!=="")throw new TypeError(`${o} is an url with embedded credentials.`);let n=r.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!Ru(r)&&"data"in r&&U6(),(r.body!=null||Ru(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=r.body?r.body:Ru(e)&&e.body!==null?za(e):null;super(i,{size:r.size||e.size||0});let s=new ar(r.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){let p=Vf(i,this);p&&s.set("Content-Type",p)}let u=Ru(e)?e.signal:null;if("signal"in r&&(u=r.signal),u!=null&&!ok(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=r.referrer==null?e.referrer:r.referrer;if(l==="")l="no-referrer";else if(l){let p=new URL(l);l=/^about:(\/\/)?client$/.test(p)?"client":p}else l=void 0;this[zt]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:o,signal:u,referrer:l},this.follow=r.follow===void 0?e.follow===void 0?20:e.follow:r.follow,this.compress=r.compress===void 0?e.compress===void 0?!0:e.compress:r.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent,this.highWaterMark=r.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||e.referrerPolicy||""}get method(){return this[zt].method}get url(){return(0,Nk.format)(this[zt].parsedURL)}get headers(){return this[zt].headers}get redirect(){return this[zt].redirect}get signal(){return this[zt].signal}get referrer(){if(this[zt].referrer==="no-referrer")return"";if(this[zt].referrer==="client")return"about:client";if(this[zt].referrer)return this[zt].referrer.toString()}get referrerPolicy(){return this[zt].referrerPolicy}set referrerPolicy(e){this[zt].referrerPolicy=Rk(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Oo.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});Dk=a(t=>{let{parsedURL:e}=t[zt],r=new ar(t[zt].headers);r.has("Accept")||r.set("Accept","*/*");let o=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(o="0"),t.body!==null){let u=bk(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&r.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=Ck),t.referrer&&t.referrer!=="no-referrer"?t[zt].referrer=Ok(t):t[zt].referrer="no-referrer",t[zt].referrer instanceof URL&&r.set("Referer",t.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:n}=t;typeof n=="function"&&(n=n(e));let i=Tk(e),s={path:e.pathname+i,method:t.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:n};return{parsedURL:e,options:s}},"getNodeRequestOptions")});var Ou,Uk=Ct(()=>{Lf();Ou=class extends Bn{static{a(this,"AbortError")}constructor(e,r="aborted"){super(e,r)}}});var jk={};Xt(jk,{AbortError:()=>Ou,Blob:()=>Jr,FetchError:()=>Wt,File:()=>Io,FormData:()=>Co,Headers:()=>ar,Request:()=>Oo,Response:()=>gr,blobFrom:()=>pk,blobFromSync:()=>dk,default:()=>pP,fileFrom:()=>fk,fileFromSync:()=>mk,isRedirect:()=>Cu});async function pP(t,e){return new Promise((r,o)=>{let n=new Oo(t,e),{parsedURL:i,options:s}=Dk(n);if(!M6.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=WO(n.url),S=new gr(_,{headers:{"Content-Type":_.typeFull}});r(S);return}let u=(i.protocol==="https:"?Lk.default:Mk.default).request,{signal:l}=n,p=null,f=a(()=>{let _=new Ou("The operation was aborted.");o(_),n.body&&n.body instanceof yr.default.Readable&&n.body.destroy(_),!(!p||!p.body)&&p.body.emit("error",_)},"abort");if(l&&l.aborted){f();return}let y=a(()=>{f(),h()},"abortAndFinalize"),m=u(i.toString(),s);l&&l.addEventListener("abort",y);let h=a(()=>{m.abort(),l&&l.removeEventListener("abort",y)},"finalize");m.on("error",_=>{o(new Wt(`request to ${n.url} failed, reason: ${_.message}`,"system",_)),h()}),L6(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let S;_.prependListener("end",()=>{S=_._eventsCount}),_.prependListener("close",E=>{if(p&&S<_._eventsCount&&!E){let T=new Error("Premature close");T.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",T)}})}),m.on("response",_=>{m.setTimeout(0);let S=Sk(_.rawHeaders);if(Cu(_.statusCode)){let Y=S.get("Location"),H=null;try{H=Y===null?null:new URL(Y,n.url)}catch{if(n.redirect!=="manual"){o(new Wt(`uri requested responds with an invalid redirect URL: ${Y}`,"invalid-redirect")),h();return}}switch(n.redirect){case"error":o(new Wt(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),h();return;case"manual":break;case"follow":{if(H===null)break;if(n.counter>=n.follow){o(new Wt(`maximum redirect reached at: ${n.url}`,"max-redirect")),h();return}let W={headers:new ar(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:za(n),signal:n.signal,size:n.size,referrer:n.referrer,referrerPolicy:n.referrerPolicy};if(!ik(n.url,H)||!ak(n.url,H))for(let ce of["authorization","www-authenticate","cookie","cookie2"])W.headers.delete(ce);if(_.statusCode!==303&&n.body&&e.body instanceof yr.default.Readable){o(new Wt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),h();return}(_.statusCode===303||(_.statusCode===301||_.statusCode===302)&&n.method==="POST")&&(W.method="GET",W.body=void 0,W.headers.delete("content-length"));let re=kk(S);re&&(W.referrerPolicy=re),r(pP(new Oo(H,W))),h();return}default:return o(new TypeError(`Redirect option '${n.redirect}' is not a valid value of RequestRedirect`))}}l&&_.once("end",()=>{l.removeEventListener("abort",y)});let E=(0,yr.pipeline)(_,new yr.PassThrough,Y=>{Y&&o(Y)});process.version<"v12.10"&&_.on("aborted",y);let T={url:n.url,status:_.statusCode,statusText:_.statusMessage,headers:S,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},k=S.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||k===null||_.statusCode===204||_.statusCode===304){p=new gr(E,T),r(p);return}let F={flush:bi.default.Z_SYNC_FLUSH,finishFlush:bi.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){E=(0,yr.pipeline)(E,bi.default.createGunzip(F),Y=>{Y&&o(Y)}),p=new gr(E,T),r(p);return}if(k==="deflate"||k==="x-deflate"){let Y=(0,yr.pipeline)(_,new yr.PassThrough,H=>{H&&o(H)});Y.once("data",H=>{(H[0]&15)===8?E=(0,yr.pipeline)(E,bi.default.createInflate(),W=>{W&&o(W)}):E=(0,yr.pipeline)(E,bi.default.createInflateRaw(),W=>{W&&o(W)}),p=new gr(E,T),r(p)}),Y.once("end",()=>{p||(p=new gr(E,T),r(p))});return}if(k==="br"){E=(0,yr.pipeline)(E,bi.default.createBrotliDecompress(),Y=>{Y&&o(Y)}),p=new gr(E,T),r(p);return}p=new gr(E,T),r(p)}),Pk(m,n).catch(o)})}function L6(t,e){let r=ku.Buffer.from(`0\r
|
|
26
26
|
\r
|
|
27
|
-
`),o=!1,n=!1,i;t.on("response",s=>{let{headers:u}=s;o=u["transfer-encoding"]==="chunked"&&!u["content-length"]}),t.on("socket",s=>{let u=a(()=>{if(o&&!n){let p=new Error("Premature close");p.code="ERR_STREAM_PREMATURE_CLOSE",e(p)}},"onSocketClose"),l=a(p=>{n=ku.Buffer.compare(p.slice(-5),r)===0,!n&&i&&(n=ku.Buffer.compare(i.slice(-3),r.slice(0,3))===0&&ku.Buffer.compare(p.slice(-2),r.slice(3))===0),i=p},"onData");s.prependListener("close",u),s.on("data",l),t.on("close",()=>{s.removeListener("close",u),s.removeListener("data",l)})})}var
|
|
27
|
+
`),o=!1,n=!1,i;t.on("response",s=>{let{headers:u}=s;o=u["transfer-encoding"]==="chunked"&&!u["content-length"]}),t.on("socket",s=>{let u=a(()=>{if(o&&!n){let p=new Error("Premature close");p.code="ERR_STREAM_PREMATURE_CLOSE",e(p)}},"onSocketClose"),l=a(p=>{n=ku.Buffer.compare(p.slice(-5),r)===0,!n&&i&&(n=ku.Buffer.compare(i.slice(-3),r.slice(0,3))===0&&ku.Buffer.compare(p.slice(-2),r.slice(3))===0),i=p},"onData");s.prependListener("close",u),s.on("data",l),t.on("close",()=>{s.removeListener("close",u),s.removeListener("data",l)})})}var Mk,Lk,bi,yr,ku,M6,Fk=Ct(()=>{Mk=xt(require("node:http"),1),Lk=xt(require("node:https"),1),bi=xt(require("node:zlib"),1),yr=xt(require("node:stream"),1),ku=require("node:buffer");KO();Hf();Ek();Wf();zk();rP();Uk();lP();Mf();Ff();dP();iP();M6=new Set(["data:","http:","https:"]);a(pP,"fetch");a(L6,"fixResponseChunkedTransferBadEnding")});var Gk=D(La=>{"use strict";var j6=La&&La.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Ma;Object.defineProperty(La,"__esModule",{value:!0});La.Gaxios=void 0;var F6=j6(Su()),B6=require("https"),Pi=Bb(),q6=SO(),Bk=require("stream"),qk=Vb(),G6=a(async()=>globalThis.crypto?.randomUUID()||(await import("crypto")).randomUUID(),"randomUUID"),V6=204,Kf=class{static{a(this,"Gaxios")}agentCache=new Map;defaults;interceptors;constructor(e){this.defaults=e||{},this.interceptors={request:new qk.GaxiosInterceptorManager,response:new qk.GaxiosInterceptorManager}}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&Ma.mergeHeaders(i,r.headers),o&&Ma.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}async request(e={}){let r=await this.#n(e);return r=await this.#t(r),this.#r(this._request(r))}async _defaultAdapter(e){let r=e.fetchImplementation||this.defaults.fetchImplementation||await Ma.#c(),o={...e};delete o.data;let n=await r(e.url,o),i=await this.getResponseData(e,n);return Object.getOwnPropertyDescriptor(n,"data")?.configurable||Object.defineProperties(n,{data:{configurable:!0,writable:!0,enumerable:!0,value:i}}),Object.assign(n,{config:e,data:i})}async _request(e){try{let r;if(e.adapter?r=await e.adapter(e,this._defaultAdapter.bind(this)):r=await this._defaultAdapter(e),!e.validateStatus(r.status)){if(e.responseType==="stream"){let n=[];for await(let i of r.data)n.push(i);r.data=n.toString()}let o=Pi.GaxiosError.extractAPIErrorFromResponse(r,`Request failed with status code ${r.status}`);throw new Pi.GaxiosError(o?.message,e,r,o)}return r}catch(r){let o;r instanceof Pi.GaxiosError?o=r:r instanceof Error?o=new Pi.GaxiosError(r.message,e,void 0,r):o=new Pi.GaxiosError("Unexpected Gaxios Error",e,void 0,r);let{shouldRetry:n,config:i}=await(0,q6.getRetryConfig)(o);if(n&&i)return o.config.retryConfig.currentRetryAttempt=i.retryConfig.currentRetryAttempt,e.retryConfig=o.config?.retryConfig,this.#o(e),this._request(e);throw e.errorRedactor&&e.errorRedactor(o),o}}async getResponseData(e,r){if(r.status===V6)return"";if(e.maxContentLength&&r.headers.has("content-length")&&e.maxContentLength<Number.parseInt(r.headers?.get("content-length")||""))throw new Pi.GaxiosError("Response's `Content-Length` is over the limit.",e,Object.assign(r,{config:e}));switch(e.responseType){case"stream":return r.body;case"json":{let o=await r.text();try{return JSON.parse(o)}catch{return o}}case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"text":return r.text();default:return this.getResponseDataFromContentType(r)}}#e(e,r=[]){let o=new URL(e),n=[...r],i=(process.env.NO_PROXY??process.env.no_proxy)?.split(",")||[];for(let s of i)n.push(s.trim());for(let s of n)if(s instanceof RegExp){if(s.test(o.toString()))return!1}else if(s instanceof URL){if(s.origin===o.origin)return!1}else if(s.startsWith("*.")||s.startsWith(".")){let u=s.replace(/^\*\./,".");if(o.hostname.endsWith(u))return!1}else if(s===o.origin||s===o.hostname||s===o.href)return!1;return!0}async#t(e){let r=Promise.resolve(e);for(let o of this.interceptors.request.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#r(e){let r=Promise.resolve(e);for(let o of this.interceptors.response.values())o&&(r=r.then(o.resolved,o.rejected));return r}async#n(e){let r=new Headers(this.defaults.headers);Ma.mergeHeaders(r,e.headers);let o=(0,F6.default)(!0,{},this.defaults,e);if(!o.url)throw new Error("URL is required.");if(o.baseURL&&(o.url=new URL(o.url,o.baseURL)),o.url=new URL(o.url),o.params)if(o.paramsSerializer){let s=o.paramsSerializer(o.params);s.startsWith("?")&&(s=s.slice(1));let u=o.url.toString().includes("?")?"&":"?";o.url=o.url+u+s}else{let s=o.url instanceof URL?o.url:new URL(o.url);for(let[u,l]of new URLSearchParams(o.params))s.searchParams.append(u,l);o.url=s}typeof e.maxContentLength=="number"&&(o.size=e.maxContentLength),typeof e.maxRedirects=="number"&&(o.follow=e.maxRedirects);let n=typeof o.data=="string"||o.data instanceof ArrayBuffer||o.data instanceof Blob||globalThis.File&&o.data instanceof File||o.data instanceof FormData||o.data instanceof Bk.Readable||o.data instanceof ReadableStream||o.data instanceof String||o.data instanceof URLSearchParams||ArrayBuffer.isView(o.data)||["Blob","File","FormData"].includes(o.data?.constructor?.name||"");if(o.multipart?.length){let s=await G6();r.set("content-type",`multipart/related; boundary=${s}`),o.body=Bk.Readable.from(this.getMultipartRequest(o.multipart,s))}else n?o.body=o.data:typeof o.data=="object"?r.get("Content-Type")==="application/x-www-form-urlencoded"?o.body=o.paramsSerializer?o.paramsSerializer(o.data):new URLSearchParams(o.data):(r.has("content-type")||r.set("content-type","application/json"),o.body=JSON.stringify(o.data)):o.data&&(o.body=o.data);o.validateStatus=o.validateStatus||this.validateStatus,o.responseType=o.responseType||"unknown",!r.has("accept")&&o.responseType==="json"&&r.set("accept","application/json");let i=o.proxy||process?.env?.HTTPS_PROXY||process?.env?.https_proxy||process?.env?.HTTP_PROXY||process?.env?.http_proxy;if(!o.agent)if(i&&this.#e(o.url,o.noProxy)){let s=await Ma.#s();this.agentCache.has(i)?o.agent=this.agentCache.get(i):(o.agent=new s(i,{cert:o.cert,key:o.key}),this.agentCache.set(i,o.agent))}else o.cert&&o.key&&(this.agentCache.has(o.key)?o.agent=this.agentCache.get(o.key):(o.agent=new B6.Agent({cert:o.cert,key:o.key}),this.agentCache.set(o.key,o.agent)));return typeof o.errorRedactor!="function"&&o.errorRedactor!==!1&&(o.errorRedactor=Pi.defaultErrorRedactor),o.body&&!("duplex"in o)&&(o.duplex="half"),this.#o(o),Object.assign(o,{headers:r,url:o.url instanceof URL?o.url:new URL(o.url)})}#o(e){if(e.timeout){let r=AbortSignal.timeout(e.timeout);e.signal&&!e.signal.aborted?e.signal=AbortSignal.any([e.signal,r]):e.signal=r}}validateStatus(e){return e>=200&&e<300}async getResponseDataFromContentType(e){let r=e.headers.get("Content-Type");if(r===null)return e.text();if(r=r.toLowerCase(),r.includes("application/json")){let o=await e.text();try{o=JSON.parse(o)}catch{}return o}else return r.match(/^text\//)?e.text():e.blob()}async*getMultipartRequest(e,r){let o=`--${r}--`;for(let n of e){let i=n.headers.get("Content-Type")||"application/octet-stream";yield`--${r}\r
|
|
28
28
|
Content-Type: ${i}\r
|
|
29
29
|
\r
|
|
30
30
|
`,typeof n.content=="string"?yield n.content:yield*n.content,yield`\r
|
|
31
|
-
`}yield o}static#i;static#a;static async#s(){return this.#i||=(await Promise.resolve().then(()=>xt(DO()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(Rk(),Ck))).default,this.#a}static mergeHeaders(e,...r){e=e instanceof Headers?e:new Headers(e);for(let o of r)(o instanceof Headers?o:new Headers(o)).forEach((i,s)=>{s==="set-cookie"?e.append(s,i):e.set(s,i)});return e}};La.Gaxios=Wf;Ma=Wf});var bt=z(Kt=>{"use strict";var C6=Kt&&Kt.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),R6=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&C6(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.instance=Kt.Gaxios=Kt.GaxiosError=void 0;Kt.request=k6;var $k=Nk();Object.defineProperty(Kt,"Gaxios",{enumerable:!0,get:a(function(){return $k.Gaxios},"get")});var O6=Mb();Object.defineProperty(Kt,"GaxiosError",{enumerable:!0,get:a(function(){return O6.GaxiosError},"get")});R6(Fb(),Kt);Kt.instance=new $k.Gaxios;async function k6(t){return Kt.instance.request(t)}a(k6,"request")});var uS=z((zk,Kf)=>{(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,n=Math.floor,i="[BigNumber Error] ",s=i+"Number primitive has more than 15 significant digits: ",u=1e14,l=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,m=1e9;function h(H){var X,re,ce,ee=se.prototype={constructor:se,toString:null,valueOf:null},Le=new se(1),le=20,W=4,Z=-7,oe=21,Q=-1e7,de=1e7,me=!1,ze=1,je=0,Qe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},it="0123456789abcdefghijklmnopqrstuvwxyz",It=!0;function se(b,T){var A,M,R,$,B,C,N,j,U=this;if(!(U instanceof se))return new se(b,T);if(T==null){if(b&&b._isBigNumber===!0){U.s=b.s,!b.c||b.e>de?U.c=U.e=null:b.e<Q?U.c=[U.e=0]:(U.e=b.e,U.c=b.c.slice());return}if((C=typeof b=="number")&&b*0==0){if(U.s=1/b<0?(b=-b,-1):1,b===~~b){for($=0,B=b;B>=10;B/=10,$++);$>de?U.c=U.e=null:(U.e=$,U.c=[b]);return}j=String(b)}else{if(!r.test(j=String(b)))return ce(U,j,C);U.s=j.charCodeAt(0)==45?(j=j.slice(1),-1):1}($=j.indexOf("."))>-1&&(j=j.replace(".","")),(B=j.search(/e/i))>0?($<0&&($=B),$+=+j.slice(B+1),j=j.substring(0,B)):$<0&&($=j.length)}else{if(x(T,2,it.length,"Base"),T==10&&It)return U=new se(b),Je(U,le+U.e+1,W);if(j=String(b),C=typeof b=="number"){if(b*0!=0)return ce(U,j,C,T);if(U.s=1/b<0?(j=j.slice(1),-1):1,se.DEBUG&&j.replace(/^0\.0*|\./,"").length>15)throw Error(s+b)}else U.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1;for(A=it.slice(0,T),$=B=0,N=j.length;B<N;B++)if(A.indexOf(M=j.charAt(B))<0){if(M=="."){if(B>$){$=N;continue}}else if(!R&&(j==j.toUpperCase()&&(j=j.toLowerCase())||j==j.toLowerCase()&&(j=j.toUpperCase()))){R=!0,B=-1,$=0;continue}return ce(U,String(b),C,T)}C=!1,j=re(j,T,10,U.s),($=j.indexOf("."))>-1?j=j.replace(".",""):$=j.length}for(B=0;j.charCodeAt(B)===48;B++);for(N=j.length;j.charCodeAt(--N)===48;);if(j=j.slice(B,++N)){if(N-=B,C&&se.DEBUG&&N>15&&(b>p||b!==n(b)))throw Error(s+U.s*b);if(($=$-B-1)>de)U.c=U.e=null;else if($<Q)U.c=[U.e=0];else{if(U.e=$,U.c=[],B=($+1)%l,$<0&&(B+=l),B<N){for(B&&U.c.push(+j.slice(0,B)),N-=l;B<N;)U.c.push(+j.slice(B,B+=l));B=l-(j=j.slice(B)).length}else B-=N;for(;B--;j+="0");U.c.push(+j)}}else U.c=[U.e=0]}a(se,"BigNumber"),se.clone=h,se.ROUND_UP=0,se.ROUND_DOWN=1,se.ROUND_CEIL=2,se.ROUND_FLOOR=3,se.ROUND_HALF_UP=4,se.ROUND_HALF_DOWN=5,se.ROUND_HALF_EVEN=6,se.ROUND_HALF_CEIL=7,se.ROUND_HALF_FLOOR=8,se.EUCLID=9,se.config=se.set=function(b){var T,A;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(T="DECIMAL_PLACES")&&(A=b[T],x(A,0,m,T),le=A),b.hasOwnProperty(T="ROUNDING_MODE")&&(A=b[T],x(A,0,8,T),W=A),b.hasOwnProperty(T="EXPONENTIAL_AT")&&(A=b[T],A&&A.pop?(x(A[0],-m,0,T),x(A[1],0,m,T),Z=A[0],oe=A[1]):(x(A,-m,m,T),Z=-(oe=A<0?-A:A))),b.hasOwnProperty(T="RANGE"))if(A=b[T],A&&A.pop)x(A[0],-m,-1,T),x(A[1],1,m,T),Q=A[0],de=A[1];else if(x(A,-m,m,T),A)Q=-(de=A<0?-A:A);else throw Error(i+T+" cannot be zero: "+A);if(b.hasOwnProperty(T="CRYPTO"))if(A=b[T],A===!!A)if(A)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))me=A;else throw me=!A,Error(i+"crypto unavailable");else me=A;else throw Error(i+T+" not true or false: "+A);if(b.hasOwnProperty(T="MODULO_MODE")&&(A=b[T],x(A,0,9,T),ze=A),b.hasOwnProperty(T="POW_PRECISION")&&(A=b[T],x(A,0,m,T),je=A),b.hasOwnProperty(T="FORMAT"))if(A=b[T],typeof A=="object")Qe=A;else throw Error(i+T+" not an object: "+A);if(b.hasOwnProperty(T="ALPHABET"))if(A=b[T],typeof A=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(A))It=A.slice(0,10)=="0123456789",it=A;else throw Error(i+T+" invalid: "+A)}else throw Error(i+"Object expected: "+b);return{DECIMAL_PLACES:le,ROUNDING_MODE:W,EXPONENTIAL_AT:[Z,oe],RANGE:[Q,de],CRYPTO:me,MODULO_MODE:ze,POW_PRECISION:je,FORMAT:Qe,ALPHABET:it}},se.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!se.DEBUG)return!0;var T,A,M=b.c,R=b.e,$=b.s;e:if({}.toString.call(M)=="[object Array]"){if(($===1||$===-1)&&R>=-m&&R<=m&&R===n(R)){if(M[0]===0){if(R===0&&M.length===1)return!0;break e}if(T=(R+1)%l,T<1&&(T+=l),String(M[0]).length==T){for(T=0;T<M.length;T++)if(A=M[T],A<0||A>=u||A!==n(A))break e;if(A!==0)return!0}}}else if(M===null&&R===null&&($===null||$===1||$===-1))return!0;throw Error(i+"Invalid BigNumber: "+b)},se.maximum=se.max=function(){return _t(arguments,-1)},se.minimum=se.min=function(){return _t(arguments,1)},se.random=(function(){var b=9007199254740992,T=Math.random()*b&2097151?function(){return n(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var M,R,$,B,C,N=0,j=[],U=new se(Le);if(A==null?A=le:x(A,0,m),B=o(A/l),me)if(crypto.getRandomValues){for(M=crypto.getRandomValues(new Uint32Array(B*=2));N<B;)C=M[N]*131072+(M[N+1]>>>11),C>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),M[N]=R[0],M[N+1]=R[1]):(j.push(C%1e14),N+=2);N=B/2}else if(crypto.randomBytes){for(M=crypto.randomBytes(B*=7);N<B;)C=(M[N]&31)*281474976710656+M[N+1]*1099511627776+M[N+2]*4294967296+M[N+3]*16777216+(M[N+4]<<16)+(M[N+5]<<8)+M[N+6],C>=9e15?crypto.randomBytes(7).copy(M,N):(j.push(C%1e14),N+=7);N=B/7}else throw me=!1,Error(i+"crypto unavailable");if(!me)for(;N<B;)C=T(),C<9e15&&(j[N++]=C%1e14);for(B=j[--N],A%=l,B&&A&&(C=f[l-A],j[N]=n(B/C)*C);j[N]===0;j.pop(),N--);if(N<0)j=[$=0];else{for($=-1;j[0]===0;j.splice(0,1),$-=l);for(N=1,C=j[0];C>=10;C/=10,N++);N<l&&($-=l-N)}return U.e=$,U.c=j,U}})(),se.sum=function(){for(var b=1,T=arguments,A=new se(T[0]);b<T.length;)A=A.plus(T[b++]);return A},re=(function(){var b="0123456789";function T(A,M,R,$){for(var B,C=[0],N,j=0,U=A.length;j<U;){for(N=C.length;N--;C[N]*=M);for(C[0]+=$.indexOf(A.charAt(j++)),B=0;B<C.length;B++)C[B]>R-1&&(C[B+1]==null&&(C[B+1]=0),C[B+1]+=C[B]/R|0,C[B]%=R)}return C.reverse()}return a(T,"toBaseOut"),function(A,M,R,$,B){var C,N,j,U,J,he,ye,Ze,ut=A.indexOf("."),lt=le,Ve=W;for(ut>=0&&(U=je,je=0,A=A.replace(".",""),Ze=new se(M),he=Ze.pow(A.length-ut),je=U,Ze.c=T(Y(P(he.c),he.e,"0"),10,R,b),Ze.e=Ze.c.length),ye=T(A,M,R,B?(C=it,b):(C=b,it)),j=U=ye.length;ye[--U]==0;ye.pop());if(!ye[0])return C.charAt(0);if(ut<0?--j:(he.c=ye,he.e=j,he.s=$,he=X(he,Ze,lt,Ve,R),ye=he.c,J=he.r,j=he.e),N=j+lt+1,ut=ye[N],U=R/2,J=J||N<0||ye[N+1]!=null,J=Ve<4?(ut!=null||J)&&(Ve==0||Ve==(he.s<0?3:2)):ut>U||ut==U&&(Ve==4||J||Ve==6&&ye[N-1]&1||Ve==(he.s<0?8:7)),N<1||!ye[0])A=J?Y(C.charAt(1),-lt,C.charAt(0)):C.charAt(0);else{if(ye.length=N,J)for(--R;++ye[--N]>R;)ye[N]=0,N||(++j,ye=[1].concat(ye));for(U=ye.length;!ye[--U];);for(ut=0,A="";ut<=U;A+=C.charAt(ye[ut++]));A=Y(A,j,C.charAt(0))}return A}})(),X=(function(){function b(M,R,$){var B,C,N,j,U=0,J=M.length,he=R%y,ye=R/y|0;for(M=M.slice();J--;)N=M[J]%y,j=M[J]/y|0,B=ye*N+j*he,C=he*N+B%y*y+U,U=(C/$|0)+(B/y|0)+ye*j,M[J]=C%$;return U&&(M=[U].concat(M)),M}a(b,"multiply");function T(M,R,$,B){var C,N;if($!=B)N=$>B?1:-1;else for(C=N=0;C<$;C++)if(M[C]!=R[C]){N=M[C]>R[C]?1:-1;break}return N}a(T,"compare");function A(M,R,$,B){for(var C=0;$--;)M[$]-=C,C=M[$]<R[$]?1:0,M[$]=C*B+M[$]-R[$];for(;!M[0]&&M.length>1;M.splice(0,1));}return a(A,"subtract"),function(M,R,$,B,C){var N,j,U,J,he,ye,Ze,ut,lt,Ve,Ke,Et,Ri,Oi,ki,cr,An,Lt=M.s==R.s?1:-1,Tt=M.c,tt=R.c;if(!Tt||!Tt[0]||!tt||!tt[0])return new se(!M.s||!R.s||(Tt?tt&&Tt[0]==tt[0]:!tt)?NaN:Tt&&Tt[0]==0||!tt?Lt*0:Lt/0);for(ut=new se(Lt),lt=ut.c=[],j=M.e-R.e,Lt=$+j+1,C||(C=u,j=_(M.e/l)-_(R.e/l),Lt=Lt/l|0),U=0;tt[U]==(Tt[U]||0);U++);if(tt[U]>(Tt[U]||0)&&j--,Lt<0)lt.push(1),J=!0;else{for(Oi=Tt.length,cr=tt.length,U=0,Lt+=2,he=n(C/(tt[0]+1)),he>1&&(tt=b(tt,he,C),Tt=b(Tt,he,C),cr=tt.length,Oi=Tt.length),Ri=cr,Ve=Tt.slice(0,cr),Ke=Ve.length;Ke<cr;Ve[Ke++]=0);An=tt.slice(),An=[0].concat(An),ki=tt[0],tt[1]>=C/2&&ki++;do{if(he=0,N=T(tt,Ve,cr,Ke),N<0){if(Et=Ve[0],cr!=Ke&&(Et=Et*C+(Ve[1]||0)),he=n(Et/ki),he>1)for(he>=C&&(he=C-1),ye=b(tt,he,C),Ze=ye.length,Ke=Ve.length;T(ye,Ve,Ze,Ke)==1;)he--,A(ye,cr<Ze?An:tt,Ze,C),Ze=ye.length,N=1;else he==0&&(N=he=1),ye=tt.slice(),Ze=ye.length;if(Ze<Ke&&(ye=[0].concat(ye)),A(Ve,ye,Ke,C),Ke=Ve.length,N==-1)for(;T(tt,Ve,cr,Ke)<1;)he++,A(Ve,cr<Ke?An:tt,Ke,C),Ke=Ve.length}else N===0&&(he++,Ve=[0]);lt[U++]=he,Ve[0]?Ve[Ke++]=Tt[Ri]||0:(Ve=[Tt[Ri]],Ke=1)}while((Ri++<Oi||Ve[0]!=null)&&Lt--);J=Ve[0]!=null,lt[0]||lt.splice(0,1)}if(C==u){for(U=1,Lt=lt[0];Lt>=10;Lt/=10,U++);Je(ut,$+(ut.e=U+j*l-1)+1,B,J)}else ut.e=j,ut.r=+J;return ut}})();function gt(b,T,A,M){var R,$,B,C,N;if(A==null?A=W:x(A,0,8),!b.c)return b.toString();if(R=b.c[0],B=b.e,T==null)N=P(b.c),N=M==1||M==2&&(B<=Z||B>=oe)?L(N,B):Y(N,B,"0");else if(b=Je(new se(b),T,A),$=b.e,N=P(b.c),C=N.length,M==1||M==2&&(T<=$||$<=Z)){for(;C<T;N+="0",C++);N=L(N,$)}else if(T-=B+(M===2&&$>B),N=Y(N,$,"0"),$+1>C){if(--T>0)for(N+=".";T--;N+="0");}else if(T+=$-C,T>0)for($+1==C&&(N+=".");T--;N+="0");return b.s<0&&R?"-"+N:N}a(gt,"format");function _t(b,T){for(var A,M,R=1,$=new se(b[0]);R<b.length;R++)M=new se(b[R]),(!M.s||(A=E($,M))===T||A===0&&$.s===T)&&($=M);return $}a(_t,"maxOrMin");function sr(b,T,A){for(var M=1,R=T.length;!T[--R];T.pop());for(R=T[0];R>=10;R/=10,M++);return(A=M+A*l-1)>de?b.c=b.e=null:A<Q?b.c=[b.e=0]:(b.e=A,b.c=T),b}a(sr,"normalise"),ce=(function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,T=/^([^.]+)\.$/,A=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function($,B,C,N){var j,U=C?B:B.replace(R,"");if(M.test(U))$.s=isNaN(U)?null:U<0?-1:1;else{if(!C&&(U=U.replace(b,function(J,he,ye){return j=(ye=ye.toLowerCase())=="x"?16:ye=="b"?2:8,!N||N==j?he:J}),N&&(j=N,U=U.replace(T,"$1").replace(A,"0.$1")),B!=U))return new se(U,j);if(se.DEBUG)throw Error(i+"Not a"+(N?" base "+N:"")+" number: "+B);$.s=null}$.c=$.e=null}})();function Je(b,T,A,M){var R,$,B,C,N,j,U,J=b.c,he=f;if(J){e:{for(R=1,C=J[0];C>=10;C/=10,R++);if($=T-R,$<0)$+=l,B=T,N=J[j=0],U=n(N/he[R-B-1]%10);else if(j=o(($+1)/l),j>=J.length)if(M){for(;J.length<=j;J.push(0));N=U=0,R=1,$%=l,B=$-l+1}else break e;else{for(N=C=J[j],R=1;C>=10;C/=10,R++);$%=l,B=$-l+R,U=B<0?0:n(N/he[R-B-1]%10)}if(M=M||T<0||J[j+1]!=null||(B<0?N:N%he[R-B-1]),M=A<4?(U||M)&&(A==0||A==(b.s<0?3:2)):U>5||U==5&&(A==4||M||A==6&&($>0?B>0?N/he[R-B]:0:J[j-1])%10&1||A==(b.s<0?8:7)),T<1||!J[0])return J.length=0,M?(T-=b.e+1,J[0]=he[(l-T%l)%l],b.e=-T||0):J[0]=b.e=0,b;if($==0?(J.length=j,C=1,j--):(J.length=j+1,C=he[l-$],J[j]=B>0?n(N/he[R-B]%he[B])*C:0),M)for(;;)if(j==0){for($=1,B=J[0];B>=10;B/=10,$++);for(B=J[0]+=C,C=1;B>=10;B/=10,C++);$!=C&&(b.e++,J[0]==u&&(J[0]=1));break}else{if(J[j]+=C,J[j]!=u)break;J[j--]=0,C=1}for($=J.length;J[--$]===0;J.pop());}b.e>de?b.c=b.e=null:b.e<Q&&(b.c=[b.e=0])}return b}a(Je,"round");function et(b){var T,A=b.e;return A===null?b.toString():(T=P(b.c),T=A<=Z||A>=oe?L(T,A):Y(T,A,"0"),b.s<0?"-"+T:T)}return a(et,"valueOf"),ee.absoluteValue=ee.abs=function(){var b=new se(this);return b.s<0&&(b.s=1),b},ee.comparedTo=function(b,T){return E(this,new se(b,T))},ee.decimalPlaces=ee.dp=function(b,T){var A,M,R,$=this;if(b!=null)return x(b,0,m),T==null?T=W:x(T,0,8),Je(new se($),b+$.e+1,T);if(!(A=$.c))return null;if(M=((R=A.length-1)-_(this.e/l))*l,R=A[R])for(;R%10==0;R/=10,M--);return M<0&&(M=0),M},ee.dividedBy=ee.div=function(b,T){return X(this,new se(b,T),le,W)},ee.dividedToIntegerBy=ee.idiv=function(b,T){return X(this,new se(b,T),0,1)},ee.exponentiatedBy=ee.pow=function(b,T){var A,M,R,$,B,C,N,j,U,J=this;if(b=new se(b),b.c&&!b.isInteger())throw Error(i+"Exponent not an integer: "+et(b));if(T!=null&&(T=new se(T)),C=b.e>14,!J.c||!J.c[0]||J.c[0]==1&&!J.e&&J.c.length==1||!b.c||!b.c[0])return U=new se(Math.pow(+et(J),C?b.s*(2-k(b)):+et(b))),T?U.mod(T):U;if(N=b.s<0,T){if(T.c?!T.c[0]:!T.s)return new se(NaN);M=!N&&J.isInteger()&&T.isInteger(),M&&(J=J.mod(T))}else{if(b.e>9&&(J.e>0||J.e<-1||(J.e==0?J.c[0]>1||C&&J.c[1]>=24e7:J.c[0]<8e13||C&&J.c[0]<=9999975e7)))return $=J.s<0&&k(b)?-0:0,J.e>-1&&($=1/$),new se(N?1/$:$);je&&($=o(je/l+2))}for(C?(A=new se(.5),N&&(b.s=1),j=k(b)):(R=Math.abs(+et(b)),j=R%2),U=new se(Le);;){if(j){if(U=U.times(J),!U.c)break;$?U.c.length>$&&(U.c.length=$):M&&(U=U.mod(T))}if(R){if(R=n(R/2),R===0)break;j=R%2}else if(b=b.times(A),Je(b,b.e+1,1),b.e>14)j=k(b);else{if(R=+et(b),R===0)break;j=R%2}J=J.times(J),$?J.c&&J.c.length>$&&(J.c.length=$):M&&(J=J.mod(T))}return M?U:(N&&(U=Le.div(U)),T?U.mod(T):$?Je(U,je,W,B):U)},ee.integerValue=function(b){var T=new se(this);return b==null?b=W:x(b,0,8),Je(T,T.e+1,b)},ee.isEqualTo=ee.eq=function(b,T){return E(this,new se(b,T))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(b,T){return E(this,new se(b,T))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(b,T){return(T=E(this,new se(b,T)))===1||T===0},ee.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},ee.isLessThan=ee.lt=function(b,T){return E(this,new se(b,T))<0},ee.isLessThanOrEqualTo=ee.lte=function(b,T){return(T=E(this,new se(b,T)))===-1||T===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(b,T){var A,M,R,$,B=this,C=B.s;if(b=new se(b,T),T=b.s,!C||!T)return new se(NaN);if(C!=T)return b.s=-T,B.plus(b);var N=B.e/l,j=b.e/l,U=B.c,J=b.c;if(!N||!j){if(!U||!J)return U?(b.s=-T,b):new se(J?B:NaN);if(!U[0]||!J[0])return J[0]?(b.s=-T,b):new se(U[0]?B:W==3?-0:0)}if(N=_(N),j=_(j),U=U.slice(),C=N-j){for(($=C<0)?(C=-C,R=U):(j=N,R=J),R.reverse(),T=C;T--;R.push(0));R.reverse()}else for(M=($=(C=U.length)<(T=J.length))?C:T,C=T=0;T<M;T++)if(U[T]!=J[T]){$=U[T]<J[T];break}if($&&(R=U,U=J,J=R,b.s=-b.s),T=(M=J.length)-(A=U.length),T>0)for(;T--;U[A++]=0);for(T=u-1;M>C;){if(U[--M]<J[M]){for(A=M;A&&!U[--A];U[A]=T);--U[A],U[M]+=u}U[M]-=J[M]}for(;U[0]==0;U.splice(0,1),--j);return U[0]?sr(b,U,j):(b.s=W==3?-1:1,b.c=[b.e=0],b)},ee.modulo=ee.mod=function(b,T){var A,M,R=this;return b=new se(b,T),!R.c||!b.s||b.c&&!b.c[0]?new se(NaN):!b.c||R.c&&!R.c[0]?new se(R):(ze==9?(M=b.s,b.s=1,A=X(R,b,0,3),b.s=M,A.s*=M):A=X(R,b,0,ze),b=R.minus(A.times(b)),!b.c[0]&&ze==1&&(b.s=R.s),b)},ee.multipliedBy=ee.times=function(b,T){var A,M,R,$,B,C,N,j,U,J,he,ye,Ze,ut,lt,Ve=this,Ke=Ve.c,Et=(b=new se(b,T)).c;if(!Ke||!Et||!Ke[0]||!Et[0])return!Ve.s||!b.s||Ke&&!Ke[0]&&!Et||Et&&!Et[0]&&!Ke?b.c=b.e=b.s=null:(b.s*=Ve.s,!Ke||!Et?b.c=b.e=null:(b.c=[0],b.e=0)),b;for(M=_(Ve.e/l)+_(b.e/l),b.s*=Ve.s,N=Ke.length,J=Et.length,N<J&&(Ze=Ke,Ke=Et,Et=Ze,R=N,N=J,J=R),R=N+J,Ze=[];R--;Ze.push(0));for(ut=u,lt=y,R=J;--R>=0;){for(A=0,he=Et[R]%lt,ye=Et[R]/lt|0,B=N,$=R+B;$>R;)j=Ke[--B]%lt,U=Ke[B]/lt|0,C=ye*j+U*he,j=he*j+C%lt*lt+Ze[$]+A,A=(j/ut|0)+(C/lt|0)+ye*U,Ze[$--]=j%ut;Ze[$]=A}return A?++M:Ze.splice(0,1),sr(b,Ze,M)},ee.negated=function(){var b=new se(this);return b.s=-b.s||null,b},ee.plus=function(b,T){var A,M=this,R=M.s;if(b=new se(b,T),T=b.s,!R||!T)return new se(NaN);if(R!=T)return b.s=-T,M.minus(b);var $=M.e/l,B=b.e/l,C=M.c,N=b.c;if(!$||!B){if(!C||!N)return new se(R/0);if(!C[0]||!N[0])return N[0]?b:new se(C[0]?M:R*0)}if($=_($),B=_(B),C=C.slice(),R=$-B){for(R>0?(B=$,A=N):(R=-R,A=C),A.reverse();R--;A.push(0));A.reverse()}for(R=C.length,T=N.length,R-T<0&&(A=N,N=C,C=A,T=R),R=0;T;)R=(C[--T]=C[T]+N[T]+R)/u|0,C[T]=u===C[T]?0:C[T]%u;return R&&(C=[R].concat(C),++B),sr(b,C,B)},ee.precision=ee.sd=function(b,T){var A,M,R,$=this;if(b!=null&&b!==!!b)return x(b,1,m),T==null?T=W:x(T,0,8),Je(new se($),b,T);if(!(A=$.c))return null;if(R=A.length-1,M=R*l+1,R=A[R]){for(;R%10==0;R/=10,M--);for(R=A[0];R>=10;R/=10,M++);}return b&&$.e+1>M&&(M=$.e+1),M},ee.shiftedBy=function(b){return x(b,-p,p),this.times("1e"+b)},ee.squareRoot=ee.sqrt=function(){var b,T,A,M,R,$=this,B=$.c,C=$.s,N=$.e,j=le+4,U=new se("0.5");if(C!==1||!B||!B[0])return new se(!C||C<0&&(!B||B[0])?NaN:B?$:1/0);if(C=Math.sqrt(+et($)),C==0||C==1/0?(T=P(B),(T.length+N)%2==0&&(T+="0"),C=Math.sqrt(+T),N=_((N+1)/2)-(N<0||N%2),C==1/0?T="5e"+N:(T=C.toExponential(),T=T.slice(0,T.indexOf("e")+1)+N),A=new se(T)):A=new se(C+""),A.c[0]){for(N=A.e,C=N+j,C<3&&(C=0);;)if(R=A,A=U.times(R.plus(X($,R,j,1))),P(R.c).slice(0,C)===(T=P(A.c)).slice(0,C))if(A.e<N&&--C,T=T.slice(C-3,C+1),T=="9999"||!M&&T=="4999"){if(!M&&(Je(R,R.e+le+2,0),R.times(R).eq($))){A=R;break}j+=4,C+=4,M=1}else{(!+T||!+T.slice(1)&&T.charAt(0)=="5")&&(Je(A,A.e+le+2,1),b=!A.times(A).eq($));break}}return Je(A,A.e+le+1,W,b)},ee.toExponential=function(b,T){return b!=null&&(x(b,0,m),b++),gt(this,b,T,1)},ee.toFixed=function(b,T){return b!=null&&(x(b,0,m),b=b+this.e+1),gt(this,b,T)},ee.toFormat=function(b,T,A){var M,R=this;if(A==null)b!=null&&T&&typeof T=="object"?(A=T,T=null):b&&typeof b=="object"?(A=b,b=T=null):A=Qe;else if(typeof A!="object")throw Error(i+"Argument not an object: "+A);if(M=R.toFixed(b,T),R.c){var $,B=M.split("."),C=+A.groupSize,N=+A.secondaryGroupSize,j=A.groupSeparator||"",U=B[0],J=B[1],he=R.s<0,ye=he?U.slice(1):U,Ze=ye.length;if(N&&($=C,C=N,N=$,Ze-=$),C>0&&Ze>0){for($=Ze%C||C,U=ye.substr(0,$);$<Ze;$+=C)U+=j+ye.substr($,C);N>0&&(U+=j+ye.slice($)),he&&(U="-"+U)}M=J?U+(A.decimalSeparator||"")+((N=+A.fractionGroupSize)?J.replace(new RegExp("\\d{"+N+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):J):U}return(A.prefix||"")+M+(A.suffix||"")},ee.toFraction=function(b){var T,A,M,R,$,B,C,N,j,U,J,he,ye=this,Ze=ye.c;if(b!=null&&(C=new se(b),!C.isInteger()&&(C.c||C.s!==1)||C.lt(Le)))throw Error(i+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+et(C));if(!Ze)return new se(ye);for(T=new se(Le),j=A=new se(Le),M=N=new se(Le),he=P(Ze),$=T.e=he.length-ye.e-1,T.c[0]=f[(B=$%l)<0?l+B:B],b=!b||C.comparedTo(T)>0?$>0?T:j:C,B=de,de=1/0,C=new se(he),N.c[0]=0;U=X(C,T,0,1),R=A.plus(U.times(M)),R.comparedTo(b)!=1;)A=M,M=R,j=N.plus(U.times(R=j)),N=R,T=C.minus(U.times(R=T)),C=R;return R=X(b.minus(A),M,0,1),N=N.plus(R.times(j)),A=A.plus(R.times(M)),N.s=j.s=ye.s,$=$*2,J=X(j,M,$,W).minus(ye).abs().comparedTo(X(N,A,$,W).minus(ye).abs())<1?[j,M]:[N,A],de=B,J},ee.toNumber=function(){return+et(this)},ee.toPrecision=function(b,T){return b!=null&&x(b,1,m),gt(this,b,T,2)},ee.toString=function(b){var T,A=this,M=A.s,R=A.e;return R===null?M?(T="Infinity",M<0&&(T="-"+T)):T="NaN":(b==null?T=R<=Z||R>=oe?L(P(A.c),R):Y(P(A.c),R,"0"):b===10&&It?(A=Je(new se(A),le+R+1,W),T=Y(P(A.c),A.e,"0")):(x(b,2,it.length,"Base"),T=re(Y(P(A.c),R,"0"),10,b,M,!0)),M<0&&A.c[0]&&(T="-"+T)),T},ee.valueOf=ee.toJSON=function(){return et(this)},ee._isBigNumber=!0,H!=null&&se.set(H),se}a(h,"clone");function _(H){var X=H|0;return H>0||H===X?X:X-1}a(_,"bitFloor");function P(H){for(var X,re,ce=1,ee=H.length,Le=H[0]+"";ce<ee;){for(X=H[ce++]+"",re=l-X.length;re--;X="0"+X);Le+=X}for(ee=Le.length;Le.charCodeAt(--ee)===48;);return Le.slice(0,ee+1||1)}a(P,"coeffToString");function E(H,X){var re,ce,ee=H.c,Le=X.c,le=H.s,W=X.s,Z=H.e,oe=X.e;if(!le||!W)return null;if(re=ee&&!ee[0],ce=Le&&!Le[0],re||ce)return re?ce?0:-W:le;if(le!=W)return le;if(re=le<0,ce=Z==oe,!ee||!Le)return ce?0:!ee^re?1:-1;if(!ce)return Z>oe^re?1:-1;for(W=(Z=ee.length)<(oe=Le.length)?Z:oe,le=0;le<W;le++)if(ee[le]!=Le[le])return ee[le]>Le[le]^re?1:-1;return Z==oe?0:Z>oe^re?1:-1}a(E,"compare");function x(H,X,re,ce){if(H<X||H>re||H!==n(H))throw Error(i+(ce||"Argument")+(typeof H=="number"?H<X||H>re?" out of range: ":" not an integer: ":" not a primitive number: ")+String(H))}a(x,"intCheck");function k(H){var X=H.c.length-1;return _(H.e/l)==X&&H.c[X]%2!=0}a(k,"isOdd");function L(H,X){return(H.length>1?H.charAt(0)+"."+H.slice(1):H)+(X<0?"e":"e+")+X}a(L,"toExponential");function Y(H,X,re){var ce,ee;if(X<0){for(ee=re+".";++X;ee+=re);H=ee+H}else if(ce=H.length,++X>ce){for(ee=re,X-=ce;--X;ee+=re);H+=ee}else X<ce&&(H=H.slice(0,X)+"."+H.slice(X));return H}a(Y,"toFixedPoint"),e=h(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Kf<"u"&&Kf.exports?Kf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(zk)});var Lk=z((Qae,Mk)=>{var Dk=uS(),Uk=Mk.exports;(function(){"use strict";function t(p){return p<10?"0"+p:p}a(t,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,n,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function u(p){return r.lastIndex=0,r.test(p)?'"'+p.replace(r,function(f){var y=i[f];return typeof y=="string"?y:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}a(u,"quote");function l(p,f){var y,m,h,_,P=o,E,x=f[p],k=x!=null&&(x instanceof Dk||Dk.isBigNumber(x));switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(p)),typeof s=="function"&&(x=s.call(f,p,x)),typeof x){case"string":return k?x:u(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":case"bigint":return String(x);case"object":if(!x)return"null";if(o+=n,E=[],Object.prototype.toString.apply(x)==="[object Array]"){for(_=x.length,y=0;y<_;y+=1)E[y]=l(y,x)||"null";return h=E.length===0?"[]":o?`[
|
|
31
|
+
`}yield o}static#i;static#a;static async#s(){return this.#i||=(await Promise.resolve().then(()=>xt(ZO()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(Fk(),jk))).default,this.#a}static mergeHeaders(e,...r){e=e instanceof Headers?e:new Headers(e);for(let o of r)(o instanceof Headers?o:new Headers(o)).forEach((i,s)=>{s==="set-cookie"?e.append(s,i):e.set(s,i)});return e}};La.Gaxios=Kf;Ma=Kf});var bt=D(Kt=>{"use strict";var H6=Kt&&Kt.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),Z6=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&H6(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.instance=Kt.Gaxios=Kt.GaxiosError=void 0;Kt.request=K6;var Vk=Gk();Object.defineProperty(Kt,"Gaxios",{enumerable:!0,get:a(function(){return Vk.Gaxios},"get")});var W6=Bb();Object.defineProperty(Kt,"GaxiosError",{enumerable:!0,get:a(function(){return W6.GaxiosError},"get")});Z6(Vb(),Kt);Kt.instance=new Vk.Gaxios;async function K6(t){return Kt.instance.request(t)}a(K6,"request")});var fP=D((Hk,Jf)=>{(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,n=Math.floor,i="[BigNumber Error] ",s=i+"Number primitive has more than 15 significant digits: ",u=1e14,l=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,m=1e9;function h(H){var W,re,ce,ee=se.prototype={constructor:se,toString:null,valueOf:null},Le=new se(1),le=20,K=4,Z=-7,oe=21,Q=-1e7,de=1e7,me=!1,De=1,je=0,Qe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},it="0123456789abcdefghijklmnopqrstuvwxyz",It=!0;function se(b,x){var A,M,O,$,q,C,N,L,U=this;if(!(U instanceof se))return new se(b,x);if(x==null){if(b&&b._isBigNumber===!0){U.s=b.s,!b.c||b.e>de?U.c=U.e=null:b.e<Q?U.c=[U.e=0]:(U.e=b.e,U.c=b.c.slice());return}if((C=typeof b=="number")&&b*0==0){if(U.s=1/b<0?(b=-b,-1):1,b===~~b){for($=0,q=b;q>=10;q/=10,$++);$>de?U.c=U.e=null:(U.e=$,U.c=[b]);return}L=String(b)}else{if(!r.test(L=String(b)))return ce(U,L,C);U.s=L.charCodeAt(0)==45?(L=L.slice(1),-1):1}($=L.indexOf("."))>-1&&(L=L.replace(".","")),(q=L.search(/e/i))>0?($<0&&($=q),$+=+L.slice(q+1),L=L.substring(0,q)):$<0&&($=L.length)}else{if(T(x,2,it.length,"Base"),x==10&&It)return U=new se(b),Je(U,le+U.e+1,K);if(L=String(b),C=typeof b=="number"){if(b*0!=0)return ce(U,L,C,x);if(U.s=1/b<0?(L=L.slice(1),-1):1,se.DEBUG&&L.replace(/^0\.0*|\./,"").length>15)throw Error(s+b)}else U.s=L.charCodeAt(0)===45?(L=L.slice(1),-1):1;for(A=it.slice(0,x),$=q=0,N=L.length;q<N;q++)if(A.indexOf(M=L.charAt(q))<0){if(M=="."){if(q>$){$=N;continue}}else if(!O&&(L==L.toUpperCase()&&(L=L.toLowerCase())||L==L.toLowerCase()&&(L=L.toUpperCase()))){O=!0,q=-1,$=0;continue}return ce(U,String(b),C,x)}C=!1,L=re(L,x,10,U.s),($=L.indexOf("."))>-1?L=L.replace(".",""):$=L.length}for(q=0;L.charCodeAt(q)===48;q++);for(N=L.length;L.charCodeAt(--N)===48;);if(L=L.slice(q,++N)){if(N-=q,C&&se.DEBUG&&N>15&&(b>p||b!==n(b)))throw Error(s+U.s*b);if(($=$-q-1)>de)U.c=U.e=null;else if($<Q)U.c=[U.e=0];else{if(U.e=$,U.c=[],q=($+1)%l,$<0&&(q+=l),q<N){for(q&&U.c.push(+L.slice(0,q)),N-=l;q<N;)U.c.push(+L.slice(q,q+=l));q=l-(L=L.slice(q)).length}else q-=N;for(;q--;L+="0");U.c.push(+L)}}else U.c=[U.e=0]}a(se,"BigNumber"),se.clone=h,se.ROUND_UP=0,se.ROUND_DOWN=1,se.ROUND_CEIL=2,se.ROUND_FLOOR=3,se.ROUND_HALF_UP=4,se.ROUND_HALF_DOWN=5,se.ROUND_HALF_EVEN=6,se.ROUND_HALF_CEIL=7,se.ROUND_HALF_FLOOR=8,se.EUCLID=9,se.config=se.set=function(b){var x,A;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(x="DECIMAL_PLACES")&&(A=b[x],T(A,0,m,x),le=A),b.hasOwnProperty(x="ROUNDING_MODE")&&(A=b[x],T(A,0,8,x),K=A),b.hasOwnProperty(x="EXPONENTIAL_AT")&&(A=b[x],A&&A.pop?(T(A[0],-m,0,x),T(A[1],0,m,x),Z=A[0],oe=A[1]):(T(A,-m,m,x),Z=-(oe=A<0?-A:A))),b.hasOwnProperty(x="RANGE"))if(A=b[x],A&&A.pop)T(A[0],-m,-1,x),T(A[1],1,m,x),Q=A[0],de=A[1];else if(T(A,-m,m,x),A)Q=-(de=A<0?-A:A);else throw Error(i+x+" cannot be zero: "+A);if(b.hasOwnProperty(x="CRYPTO"))if(A=b[x],A===!!A)if(A)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))me=A;else throw me=!A,Error(i+"crypto unavailable");else me=A;else throw Error(i+x+" not true or false: "+A);if(b.hasOwnProperty(x="MODULO_MODE")&&(A=b[x],T(A,0,9,x),De=A),b.hasOwnProperty(x="POW_PRECISION")&&(A=b[x],T(A,0,m,x),je=A),b.hasOwnProperty(x="FORMAT"))if(A=b[x],typeof A=="object")Qe=A;else throw Error(i+x+" not an object: "+A);if(b.hasOwnProperty(x="ALPHABET"))if(A=b[x],typeof A=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(A))It=A.slice(0,10)=="0123456789",it=A;else throw Error(i+x+" invalid: "+A)}else throw Error(i+"Object expected: "+b);return{DECIMAL_PLACES:le,ROUNDING_MODE:K,EXPONENTIAL_AT:[Z,oe],RANGE:[Q,de],CRYPTO:me,MODULO_MODE:De,POW_PRECISION:je,FORMAT:Qe,ALPHABET:it}},se.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!se.DEBUG)return!0;var x,A,M=b.c,O=b.e,$=b.s;e:if({}.toString.call(M)=="[object Array]"){if(($===1||$===-1)&&O>=-m&&O<=m&&O===n(O)){if(M[0]===0){if(O===0&&M.length===1)return!0;break e}if(x=(O+1)%l,x<1&&(x+=l),String(M[0]).length==x){for(x=0;x<M.length;x++)if(A=M[x],A<0||A>=u||A!==n(A))break e;if(A!==0)return!0}}}else if(M===null&&O===null&&($===null||$===1||$===-1))return!0;throw Error(i+"Invalid BigNumber: "+b)},se.maximum=se.max=function(){return _t(arguments,-1)},se.minimum=se.min=function(){return _t(arguments,1)},se.random=(function(){var b=9007199254740992,x=Math.random()*b&2097151?function(){return n(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var M,O,$,q,C,N=0,L=[],U=new se(Le);if(A==null?A=le:T(A,0,m),q=o(A/l),me)if(crypto.getRandomValues){for(M=crypto.getRandomValues(new Uint32Array(q*=2));N<q;)C=M[N]*131072+(M[N+1]>>>11),C>=9e15?(O=crypto.getRandomValues(new Uint32Array(2)),M[N]=O[0],M[N+1]=O[1]):(L.push(C%1e14),N+=2);N=q/2}else if(crypto.randomBytes){for(M=crypto.randomBytes(q*=7);N<q;)C=(M[N]&31)*281474976710656+M[N+1]*1099511627776+M[N+2]*4294967296+M[N+3]*16777216+(M[N+4]<<16)+(M[N+5]<<8)+M[N+6],C>=9e15?crypto.randomBytes(7).copy(M,N):(L.push(C%1e14),N+=7);N=q/7}else throw me=!1,Error(i+"crypto unavailable");if(!me)for(;N<q;)C=x(),C<9e15&&(L[N++]=C%1e14);for(q=L[--N],A%=l,q&&A&&(C=f[l-A],L[N]=n(q/C)*C);L[N]===0;L.pop(),N--);if(N<0)L=[$=0];else{for($=-1;L[0]===0;L.splice(0,1),$-=l);for(N=1,C=L[0];C>=10;C/=10,N++);N<l&&($-=l-N)}return U.e=$,U.c=L,U}})(),se.sum=function(){for(var b=1,x=arguments,A=new se(x[0]);b<x.length;)A=A.plus(x[b++]);return A},re=(function(){var b="0123456789";function x(A,M,O,$){for(var q,C=[0],N,L=0,U=A.length;L<U;){for(N=C.length;N--;C[N]*=M);for(C[0]+=$.indexOf(A.charAt(L++)),q=0;q<C.length;q++)C[q]>O-1&&(C[q+1]==null&&(C[q+1]=0),C[q+1]+=C[q]/O|0,C[q]%=O)}return C.reverse()}return a(x,"toBaseOut"),function(A,M,O,$,q){var C,N,L,U,X,he,ye,Ze,ut=A.indexOf("."),lt=le,Ve=K;for(ut>=0&&(U=je,je=0,A=A.replace(".",""),Ze=new se(M),he=Ze.pow(A.length-ut),je=U,Ze.c=x(Y(S(he.c),he.e,"0"),10,O,b),Ze.e=Ze.c.length),ye=x(A,M,O,q?(C=it,b):(C=b,it)),L=U=ye.length;ye[--U]==0;ye.pop());if(!ye[0])return C.charAt(0);if(ut<0?--L:(he.c=ye,he.e=L,he.s=$,he=W(he,Ze,lt,Ve,O),ye=he.c,X=he.r,L=he.e),N=L+lt+1,ut=ye[N],U=O/2,X=X||N<0||ye[N+1]!=null,X=Ve<4?(ut!=null||X)&&(Ve==0||Ve==(he.s<0?3:2)):ut>U||ut==U&&(Ve==4||X||Ve==6&&ye[N-1]&1||Ve==(he.s<0?8:7)),N<1||!ye[0])A=X?Y(C.charAt(1),-lt,C.charAt(0)):C.charAt(0);else{if(ye.length=N,X)for(--O;++ye[--N]>O;)ye[N]=0,N||(++L,ye=[1].concat(ye));for(U=ye.length;!ye[--U];);for(ut=0,A="";ut<=U;A+=C.charAt(ye[ut++]));A=Y(A,L,C.charAt(0))}return A}})(),W=(function(){function b(M,O,$){var q,C,N,L,U=0,X=M.length,he=O%y,ye=O/y|0;for(M=M.slice();X--;)N=M[X]%y,L=M[X]/y|0,q=ye*N+L*he,C=he*N+q%y*y+U,U=(C/$|0)+(q/y|0)+ye*L,M[X]=C%$;return U&&(M=[U].concat(M)),M}a(b,"multiply");function x(M,O,$,q){var C,N;if($!=q)N=$>q?1:-1;else for(C=N=0;C<$;C++)if(M[C]!=O[C]){N=M[C]>O[C]?1:-1;break}return N}a(x,"compare");function A(M,O,$,q){for(var C=0;$--;)M[$]-=C,C=M[$]<O[$]?1:0,M[$]=C*q+M[$]-O[$];for(;!M[0]&&M.length>1;M.splice(0,1));}return a(A,"subtract"),function(M,O,$,q,C){var N,L,U,X,he,ye,Ze,ut,lt,Ve,Ke,Et,Oi,ki,Ni,cr,An,Lt=M.s==O.s?1:-1,Tt=M.c,tt=O.c;if(!Tt||!Tt[0]||!tt||!tt[0])return new se(!M.s||!O.s||(Tt?tt&&Tt[0]==tt[0]:!tt)?NaN:Tt&&Tt[0]==0||!tt?Lt*0:Lt/0);for(ut=new se(Lt),lt=ut.c=[],L=M.e-O.e,Lt=$+L+1,C||(C=u,L=_(M.e/l)-_(O.e/l),Lt=Lt/l|0),U=0;tt[U]==(Tt[U]||0);U++);if(tt[U]>(Tt[U]||0)&&L--,Lt<0)lt.push(1),X=!0;else{for(ki=Tt.length,cr=tt.length,U=0,Lt+=2,he=n(C/(tt[0]+1)),he>1&&(tt=b(tt,he,C),Tt=b(Tt,he,C),cr=tt.length,ki=Tt.length),Oi=cr,Ve=Tt.slice(0,cr),Ke=Ve.length;Ke<cr;Ve[Ke++]=0);An=tt.slice(),An=[0].concat(An),Ni=tt[0],tt[1]>=C/2&&Ni++;do{if(he=0,N=x(tt,Ve,cr,Ke),N<0){if(Et=Ve[0],cr!=Ke&&(Et=Et*C+(Ve[1]||0)),he=n(Et/Ni),he>1)for(he>=C&&(he=C-1),ye=b(tt,he,C),Ze=ye.length,Ke=Ve.length;x(ye,Ve,Ze,Ke)==1;)he--,A(ye,cr<Ze?An:tt,Ze,C),Ze=ye.length,N=1;else he==0&&(N=he=1),ye=tt.slice(),Ze=ye.length;if(Ze<Ke&&(ye=[0].concat(ye)),A(Ve,ye,Ke,C),Ke=Ve.length,N==-1)for(;x(tt,Ve,cr,Ke)<1;)he++,A(Ve,cr<Ke?An:tt,Ke,C),Ke=Ve.length}else N===0&&(he++,Ve=[0]);lt[U++]=he,Ve[0]?Ve[Ke++]=Tt[Oi]||0:(Ve=[Tt[Oi]],Ke=1)}while((Oi++<ki||Ve[0]!=null)&&Lt--);X=Ve[0]!=null,lt[0]||lt.splice(0,1)}if(C==u){for(U=1,Lt=lt[0];Lt>=10;Lt/=10,U++);Je(ut,$+(ut.e=U+L*l-1)+1,q,X)}else ut.e=L,ut.r=+X;return ut}})();function gt(b,x,A,M){var O,$,q,C,N;if(A==null?A=K:T(A,0,8),!b.c)return b.toString();if(O=b.c[0],q=b.e,x==null)N=S(b.c),N=M==1||M==2&&(q<=Z||q>=oe)?F(N,q):Y(N,q,"0");else if(b=Je(new se(b),x,A),$=b.e,N=S(b.c),C=N.length,M==1||M==2&&(x<=$||$<=Z)){for(;C<x;N+="0",C++);N=F(N,$)}else if(x-=q+(M===2&&$>q),N=Y(N,$,"0"),$+1>C){if(--x>0)for(N+=".";x--;N+="0");}else if(x+=$-C,x>0)for($+1==C&&(N+=".");x--;N+="0");return b.s<0&&O?"-"+N:N}a(gt,"format");function _t(b,x){for(var A,M,O=1,$=new se(b[0]);O<b.length;O++)M=new se(b[O]),(!M.s||(A=E($,M))===x||A===0&&$.s===x)&&($=M);return $}a(_t,"maxOrMin");function sr(b,x,A){for(var M=1,O=x.length;!x[--O];x.pop());for(O=x[0];O>=10;O/=10,M++);return(A=M+A*l-1)>de?b.c=b.e=null:A<Q?b.c=[b.e=0]:(b.e=A,b.c=x),b}a(sr,"normalise"),ce=(function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,A=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,O=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function($,q,C,N){var L,U=C?q:q.replace(O,"");if(M.test(U))$.s=isNaN(U)?null:U<0?-1:1;else{if(!C&&(U=U.replace(b,function(X,he,ye){return L=(ye=ye.toLowerCase())=="x"?16:ye=="b"?2:8,!N||N==L?he:X}),N&&(L=N,U=U.replace(x,"$1").replace(A,"0.$1")),q!=U))return new se(U,L);if(se.DEBUG)throw Error(i+"Not a"+(N?" base "+N:"")+" number: "+q);$.s=null}$.c=$.e=null}})();function Je(b,x,A,M){var O,$,q,C,N,L,U,X=b.c,he=f;if(X){e:{for(O=1,C=X[0];C>=10;C/=10,O++);if($=x-O,$<0)$+=l,q=x,N=X[L=0],U=n(N/he[O-q-1]%10);else if(L=o(($+1)/l),L>=X.length)if(M){for(;X.length<=L;X.push(0));N=U=0,O=1,$%=l,q=$-l+1}else break e;else{for(N=C=X[L],O=1;C>=10;C/=10,O++);$%=l,q=$-l+O,U=q<0?0:n(N/he[O-q-1]%10)}if(M=M||x<0||X[L+1]!=null||(q<0?N:N%he[O-q-1]),M=A<4?(U||M)&&(A==0||A==(b.s<0?3:2)):U>5||U==5&&(A==4||M||A==6&&($>0?q>0?N/he[O-q]:0:X[L-1])%10&1||A==(b.s<0?8:7)),x<1||!X[0])return X.length=0,M?(x-=b.e+1,X[0]=he[(l-x%l)%l],b.e=-x||0):X[0]=b.e=0,b;if($==0?(X.length=L,C=1,L--):(X.length=L+1,C=he[l-$],X[L]=q>0?n(N/he[O-q]%he[q])*C:0),M)for(;;)if(L==0){for($=1,q=X[0];q>=10;q/=10,$++);for(q=X[0]+=C,C=1;q>=10;q/=10,C++);$!=C&&(b.e++,X[0]==u&&(X[0]=1));break}else{if(X[L]+=C,X[L]!=u)break;X[L--]=0,C=1}for($=X.length;X[--$]===0;X.pop());}b.e>de?b.c=b.e=null:b.e<Q&&(b.c=[b.e=0])}return b}a(Je,"round");function et(b){var x,A=b.e;return A===null?b.toString():(x=S(b.c),x=A<=Z||A>=oe?F(x,A):Y(x,A,"0"),b.s<0?"-"+x:x)}return a(et,"valueOf"),ee.absoluteValue=ee.abs=function(){var b=new se(this);return b.s<0&&(b.s=1),b},ee.comparedTo=function(b,x){return E(this,new se(b,x))},ee.decimalPlaces=ee.dp=function(b,x){var A,M,O,$=this;if(b!=null)return T(b,0,m),x==null?x=K:T(x,0,8),Je(new se($),b+$.e+1,x);if(!(A=$.c))return null;if(M=((O=A.length-1)-_(this.e/l))*l,O=A[O])for(;O%10==0;O/=10,M--);return M<0&&(M=0),M},ee.dividedBy=ee.div=function(b,x){return W(this,new se(b,x),le,K)},ee.dividedToIntegerBy=ee.idiv=function(b,x){return W(this,new se(b,x),0,1)},ee.exponentiatedBy=ee.pow=function(b,x){var A,M,O,$,q,C,N,L,U,X=this;if(b=new se(b),b.c&&!b.isInteger())throw Error(i+"Exponent not an integer: "+et(b));if(x!=null&&(x=new se(x)),C=b.e>14,!X.c||!X.c[0]||X.c[0]==1&&!X.e&&X.c.length==1||!b.c||!b.c[0])return U=new se(Math.pow(+et(X),C?b.s*(2-k(b)):+et(b))),x?U.mod(x):U;if(N=b.s<0,x){if(x.c?!x.c[0]:!x.s)return new se(NaN);M=!N&&X.isInteger()&&x.isInteger(),M&&(X=X.mod(x))}else{if(b.e>9&&(X.e>0||X.e<-1||(X.e==0?X.c[0]>1||C&&X.c[1]>=24e7:X.c[0]<8e13||C&&X.c[0]<=9999975e7)))return $=X.s<0&&k(b)?-0:0,X.e>-1&&($=1/$),new se(N?1/$:$);je&&($=o(je/l+2))}for(C?(A=new se(.5),N&&(b.s=1),L=k(b)):(O=Math.abs(+et(b)),L=O%2),U=new se(Le);;){if(L){if(U=U.times(X),!U.c)break;$?U.c.length>$&&(U.c.length=$):M&&(U=U.mod(x))}if(O){if(O=n(O/2),O===0)break;L=O%2}else if(b=b.times(A),Je(b,b.e+1,1),b.e>14)L=k(b);else{if(O=+et(b),O===0)break;L=O%2}X=X.times(X),$?X.c&&X.c.length>$&&(X.c.length=$):M&&(X=X.mod(x))}return M?U:(N&&(U=Le.div(U)),x?U.mod(x):$?Je(U,je,K,q):U)},ee.integerValue=function(b){var x=new se(this);return b==null?b=K:T(b,0,8),Je(x,x.e+1,b)},ee.isEqualTo=ee.eq=function(b,x){return E(this,new se(b,x))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(b,x){return E(this,new se(b,x))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(b,x){return(x=E(this,new se(b,x)))===1||x===0},ee.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},ee.isLessThan=ee.lt=function(b,x){return E(this,new se(b,x))<0},ee.isLessThanOrEqualTo=ee.lte=function(b,x){return(x=E(this,new se(b,x)))===-1||x===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(b,x){var A,M,O,$,q=this,C=q.s;if(b=new se(b,x),x=b.s,!C||!x)return new se(NaN);if(C!=x)return b.s=-x,q.plus(b);var N=q.e/l,L=b.e/l,U=q.c,X=b.c;if(!N||!L){if(!U||!X)return U?(b.s=-x,b):new se(X?q:NaN);if(!U[0]||!X[0])return X[0]?(b.s=-x,b):new se(U[0]?q:K==3?-0:0)}if(N=_(N),L=_(L),U=U.slice(),C=N-L){for(($=C<0)?(C=-C,O=U):(L=N,O=X),O.reverse(),x=C;x--;O.push(0));O.reverse()}else for(M=($=(C=U.length)<(x=X.length))?C:x,C=x=0;x<M;x++)if(U[x]!=X[x]){$=U[x]<X[x];break}if($&&(O=U,U=X,X=O,b.s=-b.s),x=(M=X.length)-(A=U.length),x>0)for(;x--;U[A++]=0);for(x=u-1;M>C;){if(U[--M]<X[M]){for(A=M;A&&!U[--A];U[A]=x);--U[A],U[M]+=u}U[M]-=X[M]}for(;U[0]==0;U.splice(0,1),--L);return U[0]?sr(b,U,L):(b.s=K==3?-1:1,b.c=[b.e=0],b)},ee.modulo=ee.mod=function(b,x){var A,M,O=this;return b=new se(b,x),!O.c||!b.s||b.c&&!b.c[0]?new se(NaN):!b.c||O.c&&!O.c[0]?new se(O):(De==9?(M=b.s,b.s=1,A=W(O,b,0,3),b.s=M,A.s*=M):A=W(O,b,0,De),b=O.minus(A.times(b)),!b.c[0]&&De==1&&(b.s=O.s),b)},ee.multipliedBy=ee.times=function(b,x){var A,M,O,$,q,C,N,L,U,X,he,ye,Ze,ut,lt,Ve=this,Ke=Ve.c,Et=(b=new se(b,x)).c;if(!Ke||!Et||!Ke[0]||!Et[0])return!Ve.s||!b.s||Ke&&!Ke[0]&&!Et||Et&&!Et[0]&&!Ke?b.c=b.e=b.s=null:(b.s*=Ve.s,!Ke||!Et?b.c=b.e=null:(b.c=[0],b.e=0)),b;for(M=_(Ve.e/l)+_(b.e/l),b.s*=Ve.s,N=Ke.length,X=Et.length,N<X&&(Ze=Ke,Ke=Et,Et=Ze,O=N,N=X,X=O),O=N+X,Ze=[];O--;Ze.push(0));for(ut=u,lt=y,O=X;--O>=0;){for(A=0,he=Et[O]%lt,ye=Et[O]/lt|0,q=N,$=O+q;$>O;)L=Ke[--q]%lt,U=Ke[q]/lt|0,C=ye*L+U*he,L=he*L+C%lt*lt+Ze[$]+A,A=(L/ut|0)+(C/lt|0)+ye*U,Ze[$--]=L%ut;Ze[$]=A}return A?++M:Ze.splice(0,1),sr(b,Ze,M)},ee.negated=function(){var b=new se(this);return b.s=-b.s||null,b},ee.plus=function(b,x){var A,M=this,O=M.s;if(b=new se(b,x),x=b.s,!O||!x)return new se(NaN);if(O!=x)return b.s=-x,M.minus(b);var $=M.e/l,q=b.e/l,C=M.c,N=b.c;if(!$||!q){if(!C||!N)return new se(O/0);if(!C[0]||!N[0])return N[0]?b:new se(C[0]?M:O*0)}if($=_($),q=_(q),C=C.slice(),O=$-q){for(O>0?(q=$,A=N):(O=-O,A=C),A.reverse();O--;A.push(0));A.reverse()}for(O=C.length,x=N.length,O-x<0&&(A=N,N=C,C=A,x=O),O=0;x;)O=(C[--x]=C[x]+N[x]+O)/u|0,C[x]=u===C[x]?0:C[x]%u;return O&&(C=[O].concat(C),++q),sr(b,C,q)},ee.precision=ee.sd=function(b,x){var A,M,O,$=this;if(b!=null&&b!==!!b)return T(b,1,m),x==null?x=K:T(x,0,8),Je(new se($),b,x);if(!(A=$.c))return null;if(O=A.length-1,M=O*l+1,O=A[O]){for(;O%10==0;O/=10,M--);for(O=A[0];O>=10;O/=10,M++);}return b&&$.e+1>M&&(M=$.e+1),M},ee.shiftedBy=function(b){return T(b,-p,p),this.times("1e"+b)},ee.squareRoot=ee.sqrt=function(){var b,x,A,M,O,$=this,q=$.c,C=$.s,N=$.e,L=le+4,U=new se("0.5");if(C!==1||!q||!q[0])return new se(!C||C<0&&(!q||q[0])?NaN:q?$:1/0);if(C=Math.sqrt(+et($)),C==0||C==1/0?(x=S(q),(x.length+N)%2==0&&(x+="0"),C=Math.sqrt(+x),N=_((N+1)/2)-(N<0||N%2),C==1/0?x="5e"+N:(x=C.toExponential(),x=x.slice(0,x.indexOf("e")+1)+N),A=new se(x)):A=new se(C+""),A.c[0]){for(N=A.e,C=N+L,C<3&&(C=0);;)if(O=A,A=U.times(O.plus(W($,O,L,1))),S(O.c).slice(0,C)===(x=S(A.c)).slice(0,C))if(A.e<N&&--C,x=x.slice(C-3,C+1),x=="9999"||!M&&x=="4999"){if(!M&&(Je(O,O.e+le+2,0),O.times(O).eq($))){A=O;break}L+=4,C+=4,M=1}else{(!+x||!+x.slice(1)&&x.charAt(0)=="5")&&(Je(A,A.e+le+2,1),b=!A.times(A).eq($));break}}return Je(A,A.e+le+1,K,b)},ee.toExponential=function(b,x){return b!=null&&(T(b,0,m),b++),gt(this,b,x,1)},ee.toFixed=function(b,x){return b!=null&&(T(b,0,m),b=b+this.e+1),gt(this,b,x)},ee.toFormat=function(b,x,A){var M,O=this;if(A==null)b!=null&&x&&typeof x=="object"?(A=x,x=null):b&&typeof b=="object"?(A=b,b=x=null):A=Qe;else if(typeof A!="object")throw Error(i+"Argument not an object: "+A);if(M=O.toFixed(b,x),O.c){var $,q=M.split("."),C=+A.groupSize,N=+A.secondaryGroupSize,L=A.groupSeparator||"",U=q[0],X=q[1],he=O.s<0,ye=he?U.slice(1):U,Ze=ye.length;if(N&&($=C,C=N,N=$,Ze-=$),C>0&&Ze>0){for($=Ze%C||C,U=ye.substr(0,$);$<Ze;$+=C)U+=L+ye.substr($,C);N>0&&(U+=L+ye.slice($)),he&&(U="-"+U)}M=X?U+(A.decimalSeparator||"")+((N=+A.fractionGroupSize)?X.replace(new RegExp("\\d{"+N+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):X):U}return(A.prefix||"")+M+(A.suffix||"")},ee.toFraction=function(b){var x,A,M,O,$,q,C,N,L,U,X,he,ye=this,Ze=ye.c;if(b!=null&&(C=new se(b),!C.isInteger()&&(C.c||C.s!==1)||C.lt(Le)))throw Error(i+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+et(C));if(!Ze)return new se(ye);for(x=new se(Le),L=A=new se(Le),M=N=new se(Le),he=S(Ze),$=x.e=he.length-ye.e-1,x.c[0]=f[(q=$%l)<0?l+q:q],b=!b||C.comparedTo(x)>0?$>0?x:L:C,q=de,de=1/0,C=new se(he),N.c[0]=0;U=W(C,x,0,1),O=A.plus(U.times(M)),O.comparedTo(b)!=1;)A=M,M=O,L=N.plus(U.times(O=L)),N=O,x=C.minus(U.times(O=x)),C=O;return O=W(b.minus(A),M,0,1),N=N.plus(O.times(L)),A=A.plus(O.times(M)),N.s=L.s=ye.s,$=$*2,X=W(L,M,$,K).minus(ye).abs().comparedTo(W(N,A,$,K).minus(ye).abs())<1?[L,M]:[N,A],de=q,X},ee.toNumber=function(){return+et(this)},ee.toPrecision=function(b,x){return b!=null&&T(b,1,m),gt(this,b,x,2)},ee.toString=function(b){var x,A=this,M=A.s,O=A.e;return O===null?M?(x="Infinity",M<0&&(x="-"+x)):x="NaN":(b==null?x=O<=Z||O>=oe?F(S(A.c),O):Y(S(A.c),O,"0"):b===10&&It?(A=Je(new se(A),le+O+1,K),x=Y(S(A.c),A.e,"0")):(T(b,2,it.length,"Base"),x=re(Y(S(A.c),O,"0"),10,b,M,!0)),M<0&&A.c[0]&&(x="-"+x)),x},ee.valueOf=ee.toJSON=function(){return et(this)},ee._isBigNumber=!0,H!=null&&se.set(H),se}a(h,"clone");function _(H){var W=H|0;return H>0||H===W?W:W-1}a(_,"bitFloor");function S(H){for(var W,re,ce=1,ee=H.length,Le=H[0]+"";ce<ee;){for(W=H[ce++]+"",re=l-W.length;re--;W="0"+W);Le+=W}for(ee=Le.length;Le.charCodeAt(--ee)===48;);return Le.slice(0,ee+1||1)}a(S,"coeffToString");function E(H,W){var re,ce,ee=H.c,Le=W.c,le=H.s,K=W.s,Z=H.e,oe=W.e;if(!le||!K)return null;if(re=ee&&!ee[0],ce=Le&&!Le[0],re||ce)return re?ce?0:-K:le;if(le!=K)return le;if(re=le<0,ce=Z==oe,!ee||!Le)return ce?0:!ee^re?1:-1;if(!ce)return Z>oe^re?1:-1;for(K=(Z=ee.length)<(oe=Le.length)?Z:oe,le=0;le<K;le++)if(ee[le]!=Le[le])return ee[le]>Le[le]^re?1:-1;return Z==oe?0:Z>oe^re?1:-1}a(E,"compare");function T(H,W,re,ce){if(H<W||H>re||H!==n(H))throw Error(i+(ce||"Argument")+(typeof H=="number"?H<W||H>re?" out of range: ":" not an integer: ":" not a primitive number: ")+String(H))}a(T,"intCheck");function k(H){var W=H.c.length-1;return _(H.e/l)==W&&H.c[W]%2!=0}a(k,"isOdd");function F(H,W){return(H.length>1?H.charAt(0)+"."+H.slice(1):H)+(W<0?"e":"e+")+W}a(F,"toExponential");function Y(H,W,re){var ce,ee;if(W<0){for(ee=re+".";++W;ee+=re);H=ee+H}else if(ce=H.length,++W>ce){for(ee=re,W-=ce;--W;ee+=re);H+=ee}else W<ce&&(H=H.slice(0,W)+"."+H.slice(W));return H}a(Y,"toFixedPoint"),e=h(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Jf<"u"&&Jf.exports?Jf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(Hk)});var Jk=D((yse,Kk)=>{var Zk=fP(),Wk=Kk.exports;(function(){"use strict";function t(p){return p<10?"0"+p:p}a(t,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,n,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function u(p){return r.lastIndex=0,r.test(p)?'"'+p.replace(r,function(f){var y=i[f];return typeof y=="string"?y:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}a(u,"quote");function l(p,f){var y,m,h,_,S=o,E,T=f[p],k=T!=null&&(T instanceof Zk||Zk.isBigNumber(T));switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(p)),typeof s=="function"&&(T=s.call(f,p,T)),typeof T){case"string":return k?T:u(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":case"bigint":return String(T);case"object":if(!T)return"null";if(o+=n,E=[],Object.prototype.toString.apply(T)==="[object Array]"){for(_=T.length,y=0;y<_;y+=1)E[y]=l(y,T)||"null";return h=E.length===0?"[]":o?`[
|
|
32
32
|
`+o+E.join(`,
|
|
33
33
|
`+o)+`
|
|
34
|
-
`+
|
|
34
|
+
`+S+"]":"["+E.join(",")+"]",o=S,h}if(s&&typeof s=="object")for(_=s.length,y=0;y<_;y+=1)typeof s[y]=="string"&&(m=s[y],h=l(m,T),h&&E.push(u(m)+(o?": ":":")+h));else Object.keys(T).forEach(function(F){var Y=l(F,T);Y&&E.push(u(F)+(o?": ":":")+Y)});return h=E.length===0?"{}":o?`{
|
|
35
35
|
`+o+E.join(`,
|
|
36
36
|
`+o)+`
|
|
37
|
-
`+
|
|
38
|
-
`,r:"\r",t:" "},i,s=a(function(P){throw{name:"SyntaxError",message:P,at:r,text:i}},"error"),u=a(function(P){return P&&P!==o&&s("Expected '"+P+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},"next"),l=a(function(){var P,E="";for(o==="-"&&(E="-",u("-"));o>="0"&&o<="9";)E+=o,u();if(o===".")for(E+=".";u()&&o>="0"&&o<="9";)E+=o;if(o==="e"||o==="E")for(E+=o,u(),(o==="-"||o==="+")&&(E+=o,u());o>="0"&&o<="9";)E+=o,u();if(P=+E,!isFinite(P))s("Bad number");else return Jf==null&&(Jf=uS()),E.length>15?e.storeAsString?E:e.useNativeBigInt?BigInt(E):new Jf(E):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(P):new Jf(P):P},"number"),p=a(function(){var P,E,x="",k;if(o==='"')for(var L=r;u();){if(o==='"')return r-1>L&&(x+=i.substring(L,r-1)),u(),x;if(o==="\\"){if(r-1>L&&(x+=i.substring(L,r-1)),u(),o==="u"){for(k=0,E=0;E<4&&(P=parseInt(u(),16),!!isFinite(P));E+=1)k=k*16+P;x+=String.fromCharCode(k)}else if(typeof n[o]=="string")x+=n[o];else break;L=r}}s("Bad string")},"string"),f=a(function(){for(;o&&o<=" ";)u()},"white"),y=a(function(){switch(o){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}s("Unexpected '"+o+"'")},"word"),m,h=a(function(){var P=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),P;for(;o;){if(P.push(m()),f(),o==="]")return u("]"),P;u(","),f()}}s("Bad array")},"array"),_=a(function(){var P,E=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),E;for(;o;){if(P=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(E,P)&&s('Duplicate key "'+P+'"'),N6.test(P)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():E[P]=m():$6.test(P)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():E[P]=m():E[P]=m(),f(),o==="}")return u("}"),E;u(","),f()}}s("Bad object")},"object");return m=a(function(){switch(f(),o){case"{":return _();case"[":return h();case'"':return p();case"-":return l();default:return o>="0"&&o<="9"?l():y()}},"value"),function(P,E){var x;return i=P+"",r=0,o=" ",x=m(),f(),o&&s("Syntax error"),typeof E=="function"?a((function k(L,Y){var H,X,re=L[Y];return re&&typeof re=="object"&&Object.keys(re).forEach(function(ce){X=k(re,ce),X!==void 0?re[ce]=X:delete re[ce]}),E.call(L,Y,re)}),"walk")({"":x},""):x}},"json_parse");jk.exports=z6});var Gk=z((nse,Xf)=>{var Bk=Lk().stringify,qk=Fk();Xf.exports=function(t){return{parse:qk(t),stringify:Bk}};Xf.exports.parse=qk();Xf.exports.stringify=Bk});var lS=z(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.GCE_LINUX_BIOS_PATHS=void 0;Yr.isGoogleCloudServerless=Zk;Yr.isGoogleComputeEngineLinux=Wk;Yr.isGoogleComputeEngineMACAddress=Kk;Yr.isGoogleComputeEngine=Jk;Yr.detectGCPResidency=U6;var Vk=require("fs"),Hk=require("os");Yr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var D6=/^42:01/;function Zk(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(Zk,"isGoogleCloudServerless");function Wk(){if((0,Hk.platform)()!=="linux")return!1;try{(0,Vk.statSync)(Yr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,Vk.readFileSync)(Yr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(Wk,"isGoogleComputeEngineLinux");function Kk(){let t=(0,Hk.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:r}of e)if(D6.test(r))return!0}return!1}a(Kk,"isGoogleComputeEngineMACAddress");function Jk(){return Wk()||Kk()}a(Jk,"isGoogleComputeEngine");function U6(){return Zk()||Jk()}a(U6,"detectGCPResidency")});var Xk=z(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.Colours=void 0;var Bt=class t{static{a(this,"Colours")}static isEnabled(e){return e&&e.isTTY&&(typeof e.getColorDepth=="function"?e.getColorDepth()>2:!0)}static refresh(){t.enabled=t.isEnabled(process==null?void 0:process.stderr),this.enabled?(t.reset="\x1B[0m",t.bright="\x1B[1m",t.dim="\x1B[2m",t.red="\x1B[31m",t.green="\x1B[32m",t.yellow="\x1B[33m",t.blue="\x1B[34m",t.magenta="\x1B[35m",t.cyan="\x1B[36m",t.white="\x1B[37m",t.grey="\x1B[90m"):(t.reset="",t.bright="",t.dim="",t.red="",t.green="",t.yellow="",t.blue="",t.magenta="",t.cyan="",t.white="",t.grey="")}};Yf.Colours=Bt;Bt.enabled=!1;Bt.reset="";Bt.bright="";Bt.dim="";Bt.red="";Bt.green="";Bt.yellow="";Bt.blue="";Bt.magenta="";Bt.cyan="";Bt.white="";Bt.grey="";Bt.refresh()});var t0=z(ot=>{"use strict";var M6=ot&&ot.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),L6=ot&&ot.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yk=ot&&ot.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&M6(r,e,o[n]);return L6(r,e),r}})();Object.defineProperty(ot,"__esModule",{value:!0});ot.env=ot.DebugLogBackendBase=ot.placeholder=ot.AdhocDebugLogger=ot.LogSeverity=void 0;ot.getNodeBackend=pS;ot.getDebugBackend=F6;ot.getStructuredBackend=B6;ot.setBackend=q6;ot.log=e0;var j6=require("events"),Nu=Yk(require("process")),Qk=Yk(require("util")),_r=Xk(),Qr;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(Qr||(ot.LogSeverity=Qr={}));var $u=class extends j6.EventEmitter{static{a(this,"AdhocDebugLogger")}constructor(e,r){super(),this.namespace=e,this.upstream=r,this.func=Object.assign(this.invoke.bind(this),{instance:this,on:a((o,n)=>this.on(o,n),"on")}),this.func.debug=(...o)=>this.invokeSeverity(Qr.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(Qr.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(Qr.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(Qr.ERROR,...o),this.func.sublog=o=>e0(o,this.func)}invoke(e,...r){if(this.upstream)try{this.upstream(e,...r)}catch{}try{this.emit("log",e,r)}catch{}}invokeSeverity(e,...r){this.invoke({severity:e},...r)}};ot.AdhocDebugLogger=$u;ot.placeholder=new $u("",()=>{}).func;var ja=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let r=(e=Nu.env[ot.env.nodeEnables])!==null&&e!==void 0?e:"*";r==="all"&&(r="*"),this.filters=r.split(",")}log(e,r,...o){try{this.filtersSet||(this.setFilters(),this.filtersSet=!0);let n=this.cached.get(e);n||(n=this.makeLogger(e),this.cached.set(e,n)),n(r,...o)}catch(n){console.error(n)}}};ot.DebugLogBackendBase=ja;var dS=class extends ja{static{a(this,"NodeBackend")}constructor(){super(...arguments),this.enabledRegexp=/.*/g}isEnabled(e){return this.enabledRegexp.test(e)}makeLogger(e){return this.enabledRegexp.test(e)?(r,...o)=>{var n;let i=`${_r.Colours.green}${e}${_r.Colours.reset}`,s=`${_r.Colours.yellow}${Nu.pid}${_r.Colours.reset}`,u;switch(r.severity){case Qr.ERROR:u=`${_r.Colours.red}${r.severity}${_r.Colours.reset}`;break;case Qr.INFO:u=`${_r.Colours.magenta}${r.severity}${_r.Colours.reset}`;break;case Qr.WARNING:u=`${_r.Colours.yellow}${r.severity}${_r.Colours.reset}`;break;default:u=(n=r.severity)!==null&&n!==void 0?n:Qr.DEFAULT;break}let l=Qk.formatWithOptions({colors:_r.Colours.enabled},...o),p=Object.assign({},r);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${_r.Colours.grey}${f}${_r.Colours.reset}`:"";console.error("%s [%s|%s] %s%s",s,i,u,l,f?` ${y}`:"")}:()=>{}}setFilters(){let r=this.filters.join(",").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^");this.enabledRegexp=new RegExp(`^${r}$`,"i")}};function pS(){return new dS}a(pS,"getNodeBackend");var fS=class extends ja{static{a(this,"DebugBackend")}constructor(e){super(),this.debugPkg=e}makeLogger(e){let r=this.debugPkg(e);return(o,...n)=>{r(n[0],...n.slice(1))}}setFilters(){var e;let r=(e=Nu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";Nu.env.NODE_DEBUG=`${r}${r?",":""}${this.filters.join(",")}`}};function F6(t){return new fS(t)}a(F6,"getDebugBackend");var mS=class extends ja{static{a(this,"StructuredBackend")}constructor(e){var r;super(),this.upstream=(r=e)!==null&&r!==void 0?r:void 0}makeLogger(e){var r;let o=(r=this.upstream)===null||r===void 0?void 0:r.makeLogger(e);return(n,...i)=>{var s;let u=(s=n.severity)!==null&&s!==void 0?s:Qr.INFO,l=Object.assign({severity:u,message:Qk.format(...i)},n),p=JSON.stringify(l);o?o(n,p):console.log("%s",p)}}setFilters(){var e;(e=this.upstream)===null||e===void 0||e.setFilters()}};function B6(t){return new mS(t)}a(B6,"getStructuredBackend");ot.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var hS=new Map,vr;function q6(t){vr=t,hS.clear()}a(q6,"setBackend");function e0(t,e){if(!vr&&!Nu.env[ot.env.nodeEnables]||!t)return ot.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let r=hS.get(t);if(r)return r.func;if(vr===null)return ot.placeholder;vr===void 0&&(vr=pS());let o=(()=>{let n;return new $u(t,(s,...u)=>{if(n!==vr){if(vr===null)return;vr===void 0&&(vr=pS()),n=vr}vr?.log(t,s,...u)})})();return hS.set(t,o),o.func}a(e0,"log")});var gS=z(Si=>{"use strict";var G6=Si&&Si.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),V6=Si&&Si.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&G6(e,t,r)};Object.defineProperty(Si,"__esModule",{value:!0});V6(t0(),Si)});var Du=z(Pe=>{"use strict";var n0=Pe&&Pe.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),H6=Pe&&Pe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z6=Pe&&Pe.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&n0(r,e,o[n]);return H6(r,e),r}})(),W6=Pe&&Pe.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&n0(e,t,r)};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.gcpResidencyCache=Pe.METADATA_SERVER_DETECTION=Pe.HEADERS=Pe.HEADER_VALUE=Pe.HEADER_NAME=Pe.SECONDARY_HOST_ADDRESS=Pe.HOST_ADDRESS=Pe.BASE_PATH=void 0;Pe.instance=eG;Pe.project=tG;Pe.universe=rG;Pe.bulk=nG;Pe.isAvailable=iG;Pe.resetIsAvailableCache=aG;Pe.getGCPResidency=vS;Pe.setGCPResidency=o0;Pe.requestTimeout=i0;var yS=bt(),K6=Gk(),J6=lS(),X6=Z6(gS());Pe.BASE_PATH="/computeMetadata/v1";Pe.HOST_ADDRESS="http://169.254.169.254";Pe.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";Pe.HEADER_NAME="Metadata-Flavor";Pe.HEADER_VALUE="Google";Pe.HEADERS=Object.freeze({[Pe.HEADER_NAME]:Pe.HEADER_VALUE});var r0=X6.log("gcp-metadata");Pe.METADATA_SERVER_DETECTION=Object.freeze({"assume-present":"don't try to ping the metadata server, but assume it's present",none:"don't try to ping the metadata server, but don't try to use it either","bios-only":"treat the result of a BIOS probe as canonical (don't fall back to pinging)","ping-only":"skip the BIOS probe, and go straight to pinging"});function _S(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||Pe.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(Pe.BASE_PATH,t).href}a(_S,"getBaseUrl");function Y6(t){Object.keys(t).forEach(e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}})}a(Y6,"validate");async function zu(t,e={},r=3,o=!1){let n=new Headers(Pe.HEADERS),i="",s={};if(typeof t=="object"){let y=t;new Headers(y.headers).forEach((m,h)=>n.set(h,m)),i=y.metadataKey,s=y.params||s,r=y.noResponseRetries||r,o=y.fastFail||o}else i=t;typeof e=="string"?i+=`/${e}`:(Y6(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>n.set(m,y)),s=e.params||s);let u=o?Q6:yS.request,l={url:`${_S()}/${i}`,headers:n,retryConfig:{noResponseRetries:r},params:s,responseType:"text",timeout:i0()};r0.info("instance request %j",l);let p=await u(l);r0.info("instance metadata is %s",p.data);let f=p.headers.get(Pe.HEADER_NAME);if(f!==Pe.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${Pe.HEADER_NAME} header. Expected '${Pe.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return K6.parse(p.data)}catch{}return p.data}a(zu,"metadataAccessor");async function Q6(t){let e={...t,url:t.url?.toString().replace(_S(),_S(Pe.SECONDARY_HOST_ADDRESS))},r=(0,yS.request)(t),o=(0,yS.request)(e);return Promise.any([r,o])}a(Q6,"fastFailMetadataRequest");function eG(t){return zu("instance",t)}a(eG,"instance");function tG(t){return zu("project",t)}a(tG,"project");function rG(t){return zu("universe",t)}a(rG,"universe");async function nG(t){let e={};return await Promise.all(t.map(r=>(async()=>{let o=await zu(r),n=r.metadataKey;e[n]=o})())),e}a(nG,"bulk");function oG(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(oG,"detectGCPAvailableRetries");var Qf;async function iG(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in Pe.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(Pe.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return vS();case"ping-only":}}try{return Qf===void 0&&(Qf=zu("instance",void 0,oG(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))),await Qf,!0}catch(t){let e=t;if(process.env.DEBUG_AUTH&&console.info(e),e.type==="request-timeout"||e.response&&e.response.status===404)return!1;if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code.toString()))){let r="UNKNOWN";e.code&&(r=e.code.toString()),process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return!1}}a(iG,"isAvailable");function aG(){Qf=void 0}a(aG,"resetIsAvailableCache");Pe.gcpResidencyCache=null;function vS(){return Pe.gcpResidencyCache===null&&o0(),Pe.gcpResidencyCache}a(vS,"getGCPResidency");function o0(t=null){Pe.gcpResidencyCache=t!==null?t:(0,J6.detectGCPResidency)()}a(o0,"setGCPResidency");function i0(){return vS()?0:3e3}a(i0,"requestTimeout");W6(lS(),Pe)});var c0=z(em=>{"use strict";em.byteLength=cG;em.toByteArray=lG;em.fromByteArray=fG;var mn=[],Ur=[],sG=typeof Uint8Array<"u"?Uint8Array:Array,bS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Pi=0,a0=bS.length;Pi<a0;++Pi)mn[Pi]=bS[Pi],Ur[bS.charCodeAt(Pi)]=Pi;var Pi,a0;Ur[45]=62;Ur[95]=63;function s0(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var o=r===e?0:4-r%4;return[r,o]}a(s0,"getLens");function cG(t){var e=s0(t),r=e[0],o=e[1];return(r+o)*3/4-o}a(cG,"byteLength");function uG(t,e,r){return(e+r)*3/4-r}a(uG,"_byteLength");function lG(t){var e,r=s0(t),o=r[0],n=r[1],i=new sG(uG(t,o,n)),s=0,u=n>0?o-4:o,l;for(l=0;l<u;l+=4)e=Ur[t.charCodeAt(l)]<<18|Ur[t.charCodeAt(l+1)]<<12|Ur[t.charCodeAt(l+2)]<<6|Ur[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=Ur[t.charCodeAt(l)]<<2|Ur[t.charCodeAt(l+1)]>>4,i[s++]=e&255),n===1&&(e=Ur[t.charCodeAt(l)]<<10|Ur[t.charCodeAt(l+1)]<<4|Ur[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}a(lG,"toByteArray");function dG(t){return mn[t>>18&63]+mn[t>>12&63]+mn[t>>6&63]+mn[t&63]}a(dG,"tripletToBase64");function pG(t,e,r){for(var o,n=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),n.push(dG(o));return n.join("")}a(pG,"encodeChunk");function fG(t){for(var e,r=t.length,o=r%3,n=[],i=16383,s=0,u=r-o;s<u;s+=i)n.push(pG(t,s,s+i>u?u:s+i));return o===1?(e=t[r-1],n.push(mn[e>>2]+mn[e<<4&63]+"==")):o===2&&(e=(t[r-2]<<8)+t[r-1],n.push(mn[e>>10]+mn[e>>4&63]+mn[e<<2&63]+"=")),n.join("")}a(fG,"fromByteArray")});var PS=z(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.fromArrayBufferToHex=mG;function mG(t){return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}a(mG,"fromArrayBufferToHex")});var u0=z(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.BrowserCrypto=void 0;var Fa=c0(),hG=PS(),ES=class t{static{a(this,"BrowserCrypto")}constructor(){if(typeof window>"u"||window.crypto===void 0||window.crypto.subtle===void 0)throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}async sha256DigestBase64(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return Fa.fromByteArray(new Uint8Array(o))}randomBytesBase64(e){let r=new Uint8Array(e);return window.crypto.getRandomValues(r),Fa.fromByteArray(r)}static padBase64(e){for(;e.length%4!==0;)e+="=";return e}async verify(e,r,o){let n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},i=new TextEncoder().encode(r),s=Fa.toByteArray(t.padBase64(o)),u=await window.crypto.subtle.importKey("jwk",e,n,!0,["verify"]);return await window.crypto.subtle.verify(n,u,s,i)}async sign(e,r){let o={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=new TextEncoder().encode(r),i=await window.crypto.subtle.importKey("jwk",e,o,!0,["sign"]),s=await window.crypto.subtle.sign(o,i,n);return Fa.fromByteArray(new Uint8Array(s))}decodeBase64StringUtf8(e){let r=Fa.toByteArray(t.padBase64(e));return new TextDecoder().decode(r)}encodeBase64StringUtf8(e){let r=new TextEncoder().encode(e);return Fa.fromByteArray(r)}async sha256DigestHex(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return(0,hG.fromArrayBufferToHex)(o)}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:String.fromCharCode(...new Uint16Array(e)),n=new TextEncoder,i=await window.crypto.subtle.importKey("raw",n.encode(o),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return window.crypto.subtle.sign("HMAC",i,n.encode(r))}};tm.BrowserCrypto=ES});var l0=z(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.NodeCrypto=void 0;var Ba=require("crypto"),TS=class{static{a(this,"NodeCrypto")}async sha256DigestBase64(e){return Ba.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return Ba.randomBytes(e).toString("base64")}async verify(e,r,o){let n=Ba.createVerify("RSA-SHA256");return n.update(r),n.end(),n.verify(e,o,"base64")}async sign(e,r){let o=Ba.createSign("RSA-SHA256");return o.update(r),o.end(),o.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return Ba.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:yG(e);return gG(Ba.createHmac("sha256",o).update(r).digest())}};rm.NodeCrypto=TS;function gG(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(gG,"toArrayBuffer");function yG(t){return Buffer.from(t)}a(yG,"toBuffer")});var Uu=z(Gn=>{"use strict";var _G=Gn&&Gn.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),vG=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_G(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createCrypto=PG;Gn.hasBrowserCrypto=d0;var bG=u0(),SG=l0();vG(PS(),Gn);function PG(){return d0()?new bG.BrowserCrypto:new SG.NodeCrypto}a(PG,"createCrypto");function d0(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(d0,"hasBrowserCrypto")});var qa=z((xS,f0)=>{var nm=require("buffer"),hn=nm.Buffer;function p0(t,e){for(var r in t)e[r]=t[r]}a(p0,"copyProps");hn.from&&hn.alloc&&hn.allocUnsafe&&hn.allocUnsafeSlow?f0.exports=nm:(p0(nm,xS),xS.Buffer=Ei);function Ei(t,e,r){return hn(t,e,r)}a(Ei,"SafeBuffer");Ei.prototype=Object.create(hn.prototype);p0(hn,Ei);Ei.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return hn(t,e,r)};Ei.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=hn(t);return e!==void 0?typeof r=="string"?o.fill(e,r):o.fill(e):o.fill(0),o};Ei.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return hn(t)};Ei.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nm.SlowBuffer(t)}});var h0=z((xse,m0)=>{"use strict";function AS(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(AS,"getParamSize");var EG={ES256:AS(256),ES384:AS(384),ES512:AS(521)};function TG(t){var e=EG[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a(TG,"getParamBytesForAlg");m0.exports=TG});var wS=z((wse,S0)=>{"use strict";var om=qa().Buffer,y0=h0(),im=128,_0=0,xG=32,AG=16,wG=2,v0=AG|xG|_0<<6,am=wG|_0<<6;function IG(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(IG,"base64Url");function b0(t){if(om.isBuffer(t))return t;if(typeof t=="string")return om.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}a(b0,"signatureAsBuffer");function CG(t,e){t=b0(t);var r=y0(e),o=r+1,n=t.length,i=0;if(t[i++]!==v0)throw new Error('Could not find expected "seq"');var s=t[i++];if(s===(im|1)&&(s=t[i++]),n-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(n-i)+'" remaining');if(t[i++]!==am)throw new Error('Could not find expected "int" for "r"');var u=t[i++];if(n-i-2<u)throw new Error('"r" specified length of "'+u+'", only "'+(n-i-2)+'" available');if(o<u)throw new Error('"r" specified length of "'+u+'", max of "'+o+'" is acceptable');var l=i;if(i+=u,t[i++]!==am)throw new Error('Could not find expected "int" for "s"');var p=t[i++];if(n-i!==p)throw new Error('"s" specified length of "'+p+'", expected "'+(n-i)+'"');if(o<p)throw new Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var f=i;if(i+=p,i!==n)throw new Error('Expected to consume entire buffer, but "'+(n-i)+'" bytes remain');var y=r-u,m=r-p,h=om.allocUnsafe(y+u+m+p);for(i=0;i<y;++i)h[i]=0;t.copy(h,i,l+Math.max(-y,0),l+u),i=r;for(var _=i;i<_+m;++i)h[i]=0;return t.copy(h,i,f+Math.max(-m,0),f+p),h=h.toString("base64"),h=IG(h),h}a(CG,"derToJose");function g0(t,e,r){for(var o=0;e+o<r&&t[e+o]===0;)++o;var n=t[e+o]>=im;return n&&--o,o}a(g0,"countPadding");function RG(t,e){t=b0(t);var r=y0(e),o=t.length;if(o!==r*2)throw new TypeError('"'+e+'" signatures must be "'+r*2+'" bytes, saw "'+o+'"');var n=g0(t,0,r),i=g0(t,r,t.length),s=r-n,u=r-i,l=2+s+1+1+u,p=l<im,f=om.allocUnsafe((p?2:3)+l),y=0;return f[y++]=v0,p?f[y++]=l:(f[y++]=im|1,f[y++]=l&255),f[y++]=am,f[y++]=s,n<0?(f[y++]=0,y+=t.copy(f,y,0,r)):y+=t.copy(f,y,n,r),f[y++]=am,f[y++]=u,i<0?(f[y++]=0,t.copy(f,y,r)):t.copy(f,y,r+i),f}a(RG,"joseToDer");S0.exports={derToJose:CG,joseToDer:RG}});var en=z(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.LRUCache=void 0;Vn.snakeToCamel=E0;Vn.originalOrCamelOptions=$G;Vn.removeUndefinedValuesInObject=zG;Vn.isValidFile=DG;Vn.getWellKnownCertificateConfigFileLocation=UG;var OG=require("fs"),kG=require("os"),IS=require("path"),NG="certificate_config.json",P0="gcloud";function E0(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a(E0,"snakeToCamel");function $G(t){function e(r){let o=t||{};return o[r]??o[E0(r)]}return a(e,"get"),{get:e}}a($G,"originalOrCamelOptions");var CS=class{static{a(this,"LRUCache")}capacity;#e=new Map;maxAge;constructor(e){this.capacity=e.capacity,this.maxAge=e.maxAge}#t(e,r){this.#e.delete(e),this.#e.set(e,{value:r,lastAccessed:Date.now()})}set(e,r){this.#t(e,r),this.#r()}get(e){let r=this.#e.get(e);if(r)return this.#t(e,r.value),this.#r(),r.value}#r(){let e=this.maxAge?Date.now()-this.maxAge:0,r=this.#e.entries().next();for(;!r.done&&(this.#e.size>this.capacity||r.value[1].lastAccessed<e);)this.#e.delete(r.value[0]),r=this.#e.entries().next()}};Vn.LRUCache=CS;function zG(t){return Object.entries(t).forEach(([e,r])=>{(r===void 0||r==="undefined")&&delete t[e]}),t}a(zG,"removeUndefinedValuesInObject");async function DG(t){try{return(await OG.promises.lstat(t)).isFile()}catch{return!1}}a(DG,"isValidFile");function UG(){let t=process.env.CLOUDSDK_CONFIG||(MG()?IS.join(process.env.APPDATA||"",P0):IS.join(process.env.HOME||"",".config",P0));return IS.join(t,NG)}a(UG,"getWellKnownCertificateConfigFileLocation");function MG(){return kG.platform().startsWith("win")}a(MG,"_isWindows")});var T0=z((Ose,LG)=>{LG.exports={name:"google-auth-library",version:"10.5.0",author:"Google Inc.",description:"Google APIs Authentication Client Library for Node.js",engines:{node:">=18"},main:"./build/src/index.js",types:"./build/src/index.d.ts",repository:"googleapis/google-auth-library-nodejs.git",keywords:["google","api","google apis","client","client library"],dependencies:{"base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11",gaxios:"^7.0.0","gcp-metadata":"^8.0.0","google-logging-utils":"^1.0.0",gtoken:"^8.0.0",jws:"^4.0.0"},devDependencies:{"@types/base64-js":"^1.2.5","@types/jws":"^3.1.0","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","assert-rejects":"^1.0.0",c8:"^10.0.0",codecov:"^3.0.2",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",keypair:"^1.0.4",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","ts-loader":"^8.0.0",typescript:"5.8.2",webpack:"^5.21.2","webpack-cli":"^4.0.0"},files:["build/src","!build/src/**/*.map"],scripts:{test:"c8 mocha build/test",clean:"gts clean",prepare:"npm run compile",lint:"gts check --no-inline-config",compile:"tsc -p .",fix:"gts fix",pretest:"npm run compile -- --sourceMap",docs:"jsdoc -c .jsdoc.js","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile -- --sourceMap",webpack:"webpack","browser-test":"karma start","docs-test":"echo 'disabled until linkinator is fixed'","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm install"},license:"Apache-2.0"}});var RS=z(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.USER_AGENT=ko.PRODUCT_NAME=ko.pkg=void 0;var x0=T0();ko.pkg=x0;var A0="google-api-nodejs-client";ko.PRODUCT_NAME=A0;var jG=`${A0}/${x0.version}`;ko.USER_AGENT=jG});var br=z(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.AuthClient=tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=tn.DEFAULT_UNIVERSE=void 0;var FG=require("events"),OS=bt(),BG=en(),qG=gS(),kS=RS();tn.DEFAULT_UNIVERSE="googleapis.com";tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var NS=class t extends FG.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=tn.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let r=(0,BG.originalOrCamelOptions)(e);this.apiKey=e.apiKey,this.projectId=r.get("project_id")??null,this.quotaProjectId=r.get("quota_project_id"),this.credentials=r.get("credentials")??{},this.universeDomain=r.get("universe_domain")??tn.DEFAULT_UNIVERSE,this.transporter=e.transporter??new OS.Gaxios(e.transporterOptions),r.get("useAuthRequestParameters")!==!1&&(this.transporter.interceptors.request.add(t.DEFAULT_REQUEST_INTERCEPTOR),this.transporter.interceptors.response.add(t.DEFAULT_RESPONSE_INTERCEPTOR)),e.eagerRefreshThresholdMillis&&(this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis),this.forceRefreshOnFailure=e.forceRefreshOnFailure??!1}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&OS.Gaxios.mergeHeaders(i,r.headers),o&&OS.Gaxios.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){return!e.has("x-goog-user-project")&&this.quotaProjectId&&e.set("x-goog-user-project",this.quotaProjectId),e}addUserProjectAndAuthHeaders(e,r){let o=r.get("x-goog-user-project"),n=r.get("authorization");return o&&e.set("x-goog-user-project",o),n&&e.set("authorization",n),e}static log=(0,qG.log)("auth");static DEFAULT_REQUEST_INTERCEPTOR={resolved:a(async e=>{if(!e.headers.has("x-goog-api-client")){let o=process.version.replace(/^v/,"");e.headers.set("x-goog-api-client",`gl-node/${o}`)}let r=e.headers.get("User-Agent");r?r.includes(`${kS.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${r} ${kS.USER_AGENT}`):e.headers.set("User-Agent",kS.USER_AGENT);try{let o=e,n=o[t.RequestMethodNameSymbol],i=`${Math.floor(Math.random()*1e3)}`;o[t.RequestLogIdSymbol]=i;let s={url:e.url,headers:e.headers};n?t.log.info("%s [%s] request %j",n,i,s):t.log.info("[%s] request %j",i,s)}catch{}return e},"resolved")};static DEFAULT_RESPONSE_INTERCEPTOR={resolved:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] response %j",o,n,e.data):t.log.info("[%s] response %j",n,e.data)}catch{}return e},"resolved"),rejected:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] error %j",o,n,e.response?.data):t.log.error("[%s] error %j",n,e.response?.data)}catch{}throw e},"rejected")};static setMethodName(e,r){try{let o=e;o[t.RequestMethodNameSymbol]=r}catch{}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};tn.AuthClient=NS});var zS=z(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.LoginTicket=void 0;var $S=class{static{a(this,"LoginTicket")}envelope;payload;constructor(e,r){this.envelope=e,this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){let e=this.getPayload();return e&&e.sub?e.sub:null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}};sm.LoginTicket=$S});var Ti=z(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.OAuth2Client=gn.ClientAuthentication=gn.CertificateFormat=gn.CodeChallengeMethod=void 0;var w0=bt(),GG=require("querystring"),VG=require("stream"),HG=wS(),I0=en(),DS=Uu(),Ga=br(),ZG=zS(),C0;(function(t){t.Plain="plain",t.S256="S256"})(C0||(gn.CodeChallengeMethod=C0={}));var Hn;(function(t){t.PEM="PEM",t.JWK="JWK"})(Hn||(gn.CertificateFormat=Hn={}));var Mu;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(Mu||(gn.ClientAuthentication=Mu={}));var US=class t extends Ga.AuthClient{static{a(this,"OAuth2Client")}redirectUri;certificateCache={};certificateExpiry=null;certificateCacheFormat=Hn.PEM;refreshTokenPromises=new Map;endpoints;issuers;clientAuthentication;_clientId;_clientSecret;refreshHandler;constructor(e={},r,o){super(typeof e=="object"?e:{}),typeof e!="object"&&(e={clientId:e,clientSecret:r,redirectUri:o}),this._clientId=e.clientId||e.client_id,this._clientSecret=e.clientSecret||e.client_secret,this.redirectUri=e.redirectUri||e.redirect_uris?.[0],this.endpoints={tokenInfoUrl:"https://oauth2.googleapis.com/tokeninfo",oauth2AuthBaseUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauth2TokenUrl:"https://oauth2.googleapis.com/token",oauth2RevokeUrl:"https://oauth2.googleapis.com/revoke",oauth2FederatedSignonPemCertsUrl:"https://www.googleapis.com/oauth2/v1/certs",oauth2FederatedSignonJwkCertsUrl:"https://www.googleapis.com/oauth2/v3/certs",oauth2IapPublicKeyUrl:"https://www.gstatic.com/iap/verify/public_key",...e.endpoints},this.clientAuthentication=e.clientAuthentication||Mu.ClientSecretPost,this.issuers=e.issuers||["accounts.google.com","https://accounts.google.com",this.universeDomain]}static GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";static CLOCK_SKEW_SECS_=300;static DEFAULT_MAX_TOKEN_LIFETIME_SECS_=86400;generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge)throw new Error("If a code_challenge_method is provided, code_challenge must be included.");return e.response_type=e.response_type||"code",e.client_id=e.client_id||this._clientId,e.redirect_uri=e.redirect_uri||this.redirectUri,Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),this.endpoints.oauth2AuthBaseUrl.toString()+"?"+GG.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,DS.createCrypto)(),o=e.randomBytesBase64(96).replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-"),i=(await e.sha256DigestBase64(o)).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:o,codeChallenge:i}}getToken(e,r){let o=typeof e=="string"?{code:e}:e;if(r)this.getTokenAsync(o).then(n=>r(null,n.tokens,n.res),n=>r(n,null,n.response));else return this.getTokenAsync(o)}async getTokenAsync(e){let r=this.endpoints.oauth2TokenUrl.toString(),o=new Headers,n={client_id:e.client_id||this._clientId,code_verifier:e.codeVerifier,code:e.code,grant_type:"authorization_code",redirect_uri:e.redirect_uri||this.redirectUri};if(this.clientAuthentication===Mu.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===Mu.ClientSecretPost&&(n.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,I0.removeUndefinedValuesInObject)(n)),headers:o};Ga.AuthClient.setMethodName(i,"getTokenAsync");let s=await this.transporter.request(i),u=s.data;return s.data&&s.data.expires_in&&(u.expiry_date=new Date().getTime()+s.data.expires_in*1e3,delete u.expires_in),this.emit("tokens",u),{tokens:u,res:s}}async refreshToken(e){if(!e)return this.refreshTokenNoCache(e);if(this.refreshTokenPromises.has(e))return this.refreshTokenPromises.get(e);let r=this.refreshTokenNoCache(e).then(o=>(this.refreshTokenPromises.delete(e),o),o=>{throw this.refreshTokenPromises.delete(e),o});return this.refreshTokenPromises.set(e,r),r}async refreshTokenNoCache(e){if(!e)throw new Error("No refresh token is set.");let r=this.endpoints.oauth2TokenUrl.toString(),o={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"},n;try{let s={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,I0.removeUndefinedValuesInObject)(o))};Ga.AuthClient.setMethodName(s,"refreshTokenNoCache"),n=await this.transporter.request(s)}catch(s){throw s instanceof w0.GaxiosError&&s.message==="invalid_grant"&&s.response?.data&&/ReAuth/i.test(s.response.data.error_description)&&(s.message=JSON.stringify(s.response.data)),s}let i=n.data;return n.data&&n.data.expires_in&&(i.expiry_date=new Date().getTime()+n.data.expires_in*1e3,delete i.expires_in),this.emit("tokens",i),{tokens:i,res:n}}refreshAccessToken(e){if(e)this.refreshAccessTokenAsync().then(r=>e(null,r.credentials,r.res),e);else return this.refreshAccessTokenAsync()}async refreshAccessTokenAsync(){let e=await this.refreshToken(this.credentials.refresh_token),r=e.tokens;return r.refresh_token=this.credentials.refresh_token,this.credentials=r,{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e)this.getAccessTokenAsync().then(r=>e(null,r.token,r.res),e);else return this.getAccessTokenAsync()}async getAccessTokenAsync(){if(!this.credentials.access_token||this.isTokenExpiring()){if(!this.credentials.refresh_token)if(this.refreshHandler){let o=await this.processAndValidateRefreshHandler();if(o?.access_token)return this.setCredentials(o),{token:this.credentials.access_token}}else throw new Error("No refresh token or refresh handler callback is set.");let r=await this.refreshAccessTokenAsync();if(!r.credentials||r.credentials&&!r.credentials.access_token)throw new Error("Could not refresh access token.");return{token:r.credentials.access_token,res:r.res}}else return{token:this.credentials.access_token}}async getRequestHeaders(e){return(await this.getRequestMetadataAsync(e)).headers}async getRequestMetadataAsync(e){let r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler)throw new Error("No access, refresh token, API key or refresh handler callback is set.");if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";let u=new Headers({authorization:r.token_type+" "+r.access_token});return{headers:this.addSharedMetadataHeaders(u)}}if(this.refreshHandler){let u=await this.processAndValidateRefreshHandler();if(u?.access_token){this.setCredentials(u);let l=new Headers({authorization:"Bearer "+this.credentials.access_token});return{headers:this.addSharedMetadataHeaders(l)}}}if(this.apiKey)return{headers:new Headers({"X-Goog-Api-Key":this.apiKey})};let o=null,n=null;try{o=await this.refreshToken(r.refresh_token),n=o.tokens}catch(u){let l=u;throw l.response&&(l.response.status===403||l.response.status===404)&&(l.message=`Could not refresh access token: ${l.message}`),l}let i=this.credentials;i.token_type=i.token_type||"Bearer",n.refresh_token=i.refresh_token,this.credentials=n;let s=new Headers({authorization:i.token_type+" "+n.access_token});return{headers:this.addSharedMetadataHeaders(s),res:o.res}}static getRevokeTokenUrl(e){return new t().getRevokeTokenURL(e).toString()}getRevokeTokenURL(e){let r=new URL(this.endpoints.oauth2RevokeUrl);return r.searchParams.append("token",e),r}revokeToken(e,r){let o={...t.RETRY_CONFIG,url:this.getRevokeTokenURL(e).toString(),method:"POST"};if(Ga.AuthClient.setMethodName(o,"revokeToken"),r)this.transporter.request(o).then(n=>r(null,n),r);else return this.transporter.request(o)}revokeCredentials(e){if(e)this.revokeCredentialsAsync().then(r=>e(null,r),e);else return this.revokeCredentialsAsync()}async revokeCredentialsAsync(){let e=this.credentials.access_token;if(this.credentials={},e)return this.revokeToken(e);throw new Error("No access token to revoke.")}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){try{let o=await this.getRequestMetadataAsync();return e.headers=w0.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,o.headers),this.apiKey&&e.headers.set("X-Goog-Api-Key",this.apiKey),await this.transporter.request(e)}catch(o){let n=o.response;if(n){let i=n.status,s=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure),u=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler,l=n.config.data instanceof VG.Readable,p=i===401||i===403;if(!r&&p&&!l&&s)return await this.refreshAccessTokenAsync(),this.requestAsync(e,!0);if(!r&&p&&!l&&u){let f=await this.processAndValidateRefreshHandler();return f?.access_token&&this.setCredentials(f),this.requestAsync(e,!0)}}throw o}}verifyIdToken(e,r){if(r&&typeof r!="function")throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.");if(r)this.verifyIdTokenAsync(e).then(o=>r(null,o),r);else return this.verifyIdTokenAsync(e)}async verifyIdTokenAsync(e){if(!e.idToken)throw new Error("The verifyIdToken method requires an ID Token");let r=await this.getFederatedSignonCertsAsync();return await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,this.issuers,e.maxExpiry)}async getTokenInfo(e){let{data:r}=await this.transporter.request({...t.RETRY_CONFIG,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8",authorization:`Bearer ${e}`},url:this.endpoints.tokenInfoUrl.toString()}),o=Object.assign({expiry_date:new Date().getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);return delete o.expires_in,delete o.scope,o}getFederatedSignonCerts(e){if(e)this.getFederatedSignonCertsAsync().then(r=>e(null,r.certs,r.res),e);else return this.getFederatedSignonCertsAsync()}async getFederatedSignonCertsAsync(){let e=new Date().getTime(),r=(0,DS.hasBrowserCrypto)()?Hn.JWK:Hn.PEM;if(this.certificateExpiry&&e<this.certificateExpiry.getTime()&&this.certificateCacheFormat===r)return{certs:this.certificateCache,format:r};let o,n;switch(r){case Hn.PEM:n=this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();break;case Hn.JWK:n=this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();break;default:throw new Error(`Unsupported certificate format ${r}`)}try{let p={...t.RETRY_CONFIG,url:n};Ga.AuthClient.setMethodName(p,"getFederatedSignonCertsAsync"),o=await this.transporter.request(p)}catch(p){throw p instanceof Error&&(p.message=`Failed to retrieve verification certificates: ${p.message}`),p}let i=o?.headers.get("cache-control"),s=-1;if(i){let p=/max-age=(?<maxAge>[0-9]+)/.exec(i)?.groups?.maxAge;p&&(s=Number(p)*1e3)}let u={};switch(r){case Hn.PEM:u=o.data;break;case Hn.JWK:for(let p of o.data.keys)u[p.kid]=p;break;default:throw new Error(`Unsupported certificate format ${r}`)}let l=new Date;return this.certificateExpiry=s===-1?null:new Date(l.getTime()+s),this.certificateCache=u,this.certificateCacheFormat=r,{certs:u,format:r,res:o}}getIapPublicKeys(e){if(e)this.getIapPublicKeysAsync().then(r=>e(null,r.pubkeys,r.res),e);else return this.getIapPublicKeysAsync()}async getIapPublicKeysAsync(){let e,r=this.endpoints.oauth2IapPublicKeyUrl.toString();try{let o={...t.RETRY_CONFIG,url:r};Ga.AuthClient.setMethodName(o,"getIapPublicKeysAsync"),e=await this.transporter.request(o)}catch(o){throw o instanceof Error&&(o.message=`Failed to retrieve verification certificates: ${o.message}`),o}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,o,n,i){let s=(0,DS.createCrypto)();i||(i=t.DEFAULT_MAX_TOKEN_LIFETIME_SECS_);let u=e.split(".");if(u.length!==3)throw new Error("Wrong number of segments in token: "+e);let l=u[0]+"."+u[1],p=u[2],f,y;try{f=JSON.parse(s.decodeBase64StringUtf8(u[0]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token envelope: ${u[0]}': ${L.message}`),L}if(!f)throw new Error("Can't parse token envelope: "+u[0]);try{y=JSON.parse(s.decodeBase64StringUtf8(u[1]))}catch(L){throw L instanceof Error&&(L.message=`Can't parse token payload '${u[0]}`),L}if(!y)throw new Error("Can't parse token payload: "+u[1]);if(!Object.prototype.hasOwnProperty.call(r,f.kid))throw new Error("No pem found for envelope: "+JSON.stringify(f));let m=r[f.kid];if(f.alg==="ES256"&&(p=HG.joseToDer(p,"ES256").toString("base64")),!await s.verify(m,l,p))throw new Error("Invalid token signature: "+e);if(!y.iat)throw new Error("No issue time in token: "+JSON.stringify(y));if(!y.exp)throw new Error("No expiration time in token: "+JSON.stringify(y));let _=Number(y.iat);if(isNaN(_))throw new Error("iat field using invalid format");let P=Number(y.exp);if(isNaN(P))throw new Error("exp field using invalid format");let E=new Date().getTime()/1e3;if(P>=E+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let x=_-t.CLOCK_SKEW_SECS_,k=P+t.CLOCK_SKEW_SECS_;if(E<x)throw new Error("Token used too early, "+E+" < "+x+": "+JSON.stringify(y));if(E>k)throw new Error("Token used too late, "+E+" > "+k+": "+JSON.stringify(y));if(n&&n.indexOf(y.iss)<0)throw new Error("Invalid issuer, expected one of ["+n+"], but got "+y.iss);if(typeof o<"u"&&o!==null){let L=y.aud,Y=!1;if(o.constructor===Array?Y=o.indexOf(L)>-1:Y=L===o,!Y)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new ZG.LoginTicket(f,y)}async processAndValidateRefreshHandler(){if(this.refreshHandler){let e=await this.refreshHandler();if(!e.access_token)throw new Error("No access token is returned by the refreshHandler callback.");return e}}isTokenExpiring(){let e=this.credentials.expiry_date;return e?e<=new Date().getTime()+this.eagerRefreshThresholdMillis:!1}};gn.OAuth2Client=US});var LS=z(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.Compute=void 0;var WG=bt(),R0=Du(),KG=Ti(),MS=class extends KG.OAuth2Client{static{a(this,"Compute")}serviceAccountEmail;scopes;constructor(e={}){super(e),this.credentials={expiry_date:1,refresh_token:"compute-placeholder"},this.serviceAccountEmail=e.serviceAccountEmail||"default",this.scopes=Array.isArray(e.scopes)?e.scopes:e.scopes?[e.scopes]:[]}async refreshTokenNoCache(){let e=`service-accounts/${this.serviceAccountEmail}/token`,r;try{let n={property:e};this.scopes.length>0&&(n.params={scopes:this.scopes.join(",")}),r=await R0.instance(n)}catch(n){throw n instanceof WG.GaxiosError&&(n.message=`Could not refresh access token: ${n.message}`,this.wrapError(n)),n}let o=r;return r&&r.expires_in&&(o.expiry_date=new Date().getTime()+r.expires_in*1e3,delete o.expires_in),this.emit("tokens",o),{tokens:o,res:null}}async fetchIdToken(e){let r=`service-accounts/${this.serviceAccountEmail}/identity?format=full&audience=${e}`,o;try{let n={property:r};o=await R0.instance(n)}catch(n){throw n instanceof Error&&(n.message=`Could not fetch ID token: ${n.message}`),n}return o}wrapError(e){let r=e.response;r&&r.status&&(e.status=r.status,r.status===403?e.message="A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified: "+e.message:r.status===404&&(e.message="A Not Found error was returned while attempting to retrieve an accesstoken for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have any permission scopes specified: "+e.message))}};cm.Compute=MS});var FS=z(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.IdTokenClient=void 0;var JG=Ti(),jS=class extends JG.OAuth2Client{static{a(this,"IdTokenClient")}targetAudience;idTokenProvider;constructor(e){super(e),this.targetAudience=e.targetAudience,this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(){if(!this.credentials.id_token||!this.credentials.expiry_date||this.isTokenExpiring()){let r=await this.idTokenProvider.fetchIdToken(this.targetAudience);this.credentials={id_token:r,expiry_date:this.getIdTokenExpiryDate(r)}}return{headers:new Headers({authorization:"Bearer "+this.credentials.id_token})}}getIdTokenExpiryDate(e){let r=e.split(".")[1];if(r)return JSON.parse(Buffer.from(r,"base64").toString("ascii")).exp*1e3}};um.IdTokenClient=jS});var BS=z(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.GCPEnv=void 0;Va.clear=XG;Va.getEnv=YG;var O0=Du(),yn;(function(t){t.APP_ENGINE="APP_ENGINE",t.KUBERNETES_ENGINE="KUBERNETES_ENGINE",t.CLOUD_FUNCTIONS="CLOUD_FUNCTIONS",t.COMPUTE_ENGINE="COMPUTE_ENGINE",t.CLOUD_RUN="CLOUD_RUN",t.CLOUD_RUN_JOBS="CLOUD_RUN_JOBS",t.NONE="NONE"})(yn||(Va.GCPEnv=yn={}));var Lu;function XG(){Lu=void 0}a(XG,"clear");async function YG(){return Lu||(Lu=QG(),Lu)}a(YG,"getEnv");async function QG(){let t=yn.NONE;return eV()?t=yn.APP_ENGINE:tV()?t=yn.CLOUD_FUNCTIONS:await iV()?await oV()?t=yn.KUBERNETES_ENGINE:rV()?t=yn.CLOUD_RUN:nV()?t=yn.CLOUD_RUN_JOBS:t=yn.COMPUTE_ENGINE:t=yn.NONE,t}a(QG,"getEnvMemoized");function eV(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(eV,"isAppEngine");function tV(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(tV,"isCloudFunction");function rV(){return!!process.env.K_CONFIGURATION}a(rV,"isCloudRun");function nV(){return!!process.env.CLOUD_RUN_JOB}a(nV,"isCloudRunJob");async function oV(){try{return await O0.instance("attributes/cluster-name"),!0}catch{return!1}}a(oV,"isKubernetesEngine");async function iV(){return O0.isAvailable()}a(iV,"isComputeEngine")});var qS=z((Vse,k0)=>{var lm=qa().Buffer,aV=require("stream"),sV=require("util");function dm(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=lm.alloc(0),this;if(typeof t.pipe=="function")return this.buffer=lm.alloc(0),t.pipe(this),this;if(t.length||typeof t=="object")return this.buffer=t,this.writable=!1,process.nextTick(function(){this.emit("end",t),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof t+")")}a(dm,"DataStream");sV.inherits(dm,aV);dm.prototype.write=a(function(e){this.buffer=lm.concat([this.buffer,lm.from(e)]),this.emit("data",e)},"write");dm.prototype.end=a(function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},"end");k0.exports=dm});var $0=z((Zse,N0)=>{"use strict";var ju=require("buffer").Buffer,GS=require("buffer").SlowBuffer;N0.exports=pm;function pm(t,e){if(!ju.isBuffer(t)||!ju.isBuffer(e)||t.length!==e.length)return!1;for(var r=0,o=0;o<t.length;o++)r|=t[o]^e[o];return r===0}a(pm,"bufferEq");pm.install=function(){ju.prototype.equal=GS.prototype.equal=a(function(e){return pm(this,e)},"equal")};var cV=ju.prototype.equal,uV=GS.prototype.equal;pm.restore=function(){ju.prototype.equal=cV,GS.prototype.equal=uV}});var WS=z((Kse,q0)=>{var Za=qa().Buffer,Mr=require("crypto"),D0=wS(),z0=require("util"),lV=`"%s" is not a valid algorithm.
|
|
37
|
+
`+S+"}":"{"+E.join(",")+"}",o=S,h}}a(l,"str"),typeof Wk.stringify!="function"&&(Wk.stringify=function(p,f,y){var m;if(o="",n="",typeof y=="number")for(m=0;m<y;m+=1)n+=" ";else typeof y=="string"&&(n=y);if(s=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return l("",{"":p})})})()});var Yk=D((vse,Xk)=>{var Xf=null,J6=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,X6=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/,Y6=a(function(t){"use strict";var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var r,o,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
38
|
+
`,r:"\r",t:" "},i,s=a(function(S){throw{name:"SyntaxError",message:S,at:r,text:i}},"error"),u=a(function(S){return S&&S!==o&&s("Expected '"+S+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},"next"),l=a(function(){var S,E="";for(o==="-"&&(E="-",u("-"));o>="0"&&o<="9";)E+=o,u();if(o===".")for(E+=".";u()&&o>="0"&&o<="9";)E+=o;if(o==="e"||o==="E")for(E+=o,u(),(o==="-"||o==="+")&&(E+=o,u());o>="0"&&o<="9";)E+=o,u();if(S=+E,!isFinite(S))s("Bad number");else return Xf==null&&(Xf=fP()),E.length>15?e.storeAsString?E:e.useNativeBigInt?BigInt(E):new Xf(E):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(S):new Xf(S):S},"number"),p=a(function(){var S,E,T="",k;if(o==='"')for(var F=r;u();){if(o==='"')return r-1>F&&(T+=i.substring(F,r-1)),u(),T;if(o==="\\"){if(r-1>F&&(T+=i.substring(F,r-1)),u(),o==="u"){for(k=0,E=0;E<4&&(S=parseInt(u(),16),!!isFinite(S));E+=1)k=k*16+S;T+=String.fromCharCode(k)}else if(typeof n[o]=="string")T+=n[o];else break;F=r}}s("Bad string")},"string"),f=a(function(){for(;o&&o<=" ";)u()},"white"),y=a(function(){switch(o){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}s("Unexpected '"+o+"'")},"word"),m,h=a(function(){var S=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),S;for(;o;){if(S.push(m()),f(),o==="]")return u("]"),S;u(","),f()}}s("Bad array")},"array"),_=a(function(){var S,E=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),E;for(;o;){if(S=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(E,S)&&s('Duplicate key "'+S+'"'),J6.test(S)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():E[S]=m():X6.test(S)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():E[S]=m():E[S]=m(),f(),o==="}")return u("}"),E;u(","),f()}}s("Bad object")},"object");return m=a(function(){switch(f(),o){case"{":return _();case"[":return h();case'"':return p();case"-":return l();default:return o>="0"&&o<="9"?l():y()}},"value"),function(S,E){var T;return i=S+"",r=0,o=" ",T=m(),f(),o&&s("Syntax error"),typeof E=="function"?a((function k(F,Y){var H,W,re=F[Y];return re&&typeof re=="object"&&Object.keys(re).forEach(function(ce){W=k(re,ce),W!==void 0?re[ce]=W:delete re[ce]}),E.call(F,Y,re)}),"walk")({"":T},""):T}},"json_parse");Xk.exports=Y6});var t0=D((Pse,Yf)=>{var Qk=Jk().stringify,e0=Yk();Yf.exports=function(t){return{parse:e0(t),stringify:Qk}};Yf.exports.parse=e0();Yf.exports.stringify=Qk});var mP=D(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.GCE_LINUX_BIOS_PATHS=void 0;Yr.isGoogleCloudServerless=o0;Yr.isGoogleComputeEngineLinux=i0;Yr.isGoogleComputeEngineMACAddress=a0;Yr.isGoogleComputeEngine=s0;Yr.detectGCPResidency=eG;var r0=require("fs"),n0=require("os");Yr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var Q6=/^42:01/;function o0(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(o0,"isGoogleCloudServerless");function i0(){if((0,n0.platform)()!=="linux")return!1;try{(0,r0.statSync)(Yr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,r0.readFileSync)(Yr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(i0,"isGoogleComputeEngineLinux");function a0(){let t=(0,n0.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:r}of e)if(Q6.test(r))return!0}return!1}a(a0,"isGoogleComputeEngineMACAddress");function s0(){return i0()||a0()}a(s0,"isGoogleComputeEngine");function eG(){return o0()||s0()}a(eG,"detectGCPResidency")});var c0=D(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Colours=void 0;var Bt=class t{static{a(this,"Colours")}static isEnabled(e){return e&&e.isTTY&&(typeof e.getColorDepth=="function"?e.getColorDepth()>2:!0)}static refresh(){t.enabled=t.isEnabled(process==null?void 0:process.stderr),this.enabled?(t.reset="\x1B[0m",t.bright="\x1B[1m",t.dim="\x1B[2m",t.red="\x1B[31m",t.green="\x1B[32m",t.yellow="\x1B[33m",t.blue="\x1B[34m",t.magenta="\x1B[35m",t.cyan="\x1B[36m",t.white="\x1B[37m",t.grey="\x1B[90m"):(t.reset="",t.bright="",t.dim="",t.red="",t.green="",t.yellow="",t.blue="",t.magenta="",t.cyan="",t.white="",t.grey="")}};Qf.Colours=Bt;Bt.enabled=!1;Bt.reset="";Bt.bright="";Bt.dim="";Bt.red="";Bt.green="";Bt.yellow="";Bt.blue="";Bt.magenta="";Bt.cyan="";Bt.white="";Bt.grey="";Bt.refresh()});var p0=D(ot=>{"use strict";var tG=ot&&ot.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),rG=ot&&ot.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u0=ot&&ot.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&tG(r,e,o[n]);return rG(r,e),r}})();Object.defineProperty(ot,"__esModule",{value:!0});ot.env=ot.DebugLogBackendBase=ot.placeholder=ot.AdhocDebugLogger=ot.LogSeverity=void 0;ot.getNodeBackend=gP;ot.getDebugBackend=oG;ot.getStructuredBackend=iG;ot.setBackend=aG;ot.log=d0;var nG=require("events"),Nu=u0(require("process")),l0=u0(require("util")),_r=c0(),Qr;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(Qr||(ot.LogSeverity=Qr={}));var $u=class extends nG.EventEmitter{static{a(this,"AdhocDebugLogger")}constructor(e,r){super(),this.namespace=e,this.upstream=r,this.func=Object.assign(this.invoke.bind(this),{instance:this,on:a((o,n)=>this.on(o,n),"on")}),this.func.debug=(...o)=>this.invokeSeverity(Qr.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(Qr.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(Qr.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(Qr.ERROR,...o),this.func.sublog=o=>d0(o,this.func)}invoke(e,...r){if(this.upstream)try{this.upstream(e,...r)}catch{}try{this.emit("log",e,r)}catch{}}invokeSeverity(e,...r){this.invoke({severity:e},...r)}};ot.AdhocDebugLogger=$u;ot.placeholder=new $u("",()=>{}).func;var ja=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let r=(e=Nu.env[ot.env.nodeEnables])!==null&&e!==void 0?e:"*";r==="all"&&(r="*"),this.filters=r.split(",")}log(e,r,...o){try{this.filtersSet||(this.setFilters(),this.filtersSet=!0);let n=this.cached.get(e);n||(n=this.makeLogger(e),this.cached.set(e,n)),n(r,...o)}catch(n){console.error(n)}}};ot.DebugLogBackendBase=ja;var hP=class extends ja{static{a(this,"NodeBackend")}constructor(){super(...arguments),this.enabledRegexp=/.*/g}isEnabled(e){return this.enabledRegexp.test(e)}makeLogger(e){return this.enabledRegexp.test(e)?(r,...o)=>{var n;let i=`${_r.Colours.green}${e}${_r.Colours.reset}`,s=`${_r.Colours.yellow}${Nu.pid}${_r.Colours.reset}`,u;switch(r.severity){case Qr.ERROR:u=`${_r.Colours.red}${r.severity}${_r.Colours.reset}`;break;case Qr.INFO:u=`${_r.Colours.magenta}${r.severity}${_r.Colours.reset}`;break;case Qr.WARNING:u=`${_r.Colours.yellow}${r.severity}${_r.Colours.reset}`;break;default:u=(n=r.severity)!==null&&n!==void 0?n:Qr.DEFAULT;break}let l=l0.formatWithOptions({colors:_r.Colours.enabled},...o),p=Object.assign({},r);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${_r.Colours.grey}${f}${_r.Colours.reset}`:"";console.error("%s [%s|%s] %s%s",s,i,u,l,f?` ${y}`:"")}:()=>{}}setFilters(){let r=this.filters.join(",").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^");this.enabledRegexp=new RegExp(`^${r}$`,"i")}};function gP(){return new hP}a(gP,"getNodeBackend");var yP=class extends ja{static{a(this,"DebugBackend")}constructor(e){super(),this.debugPkg=e}makeLogger(e){let r=this.debugPkg(e);return(o,...n)=>{r(n[0],...n.slice(1))}}setFilters(){var e;let r=(e=Nu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";Nu.env.NODE_DEBUG=`${r}${r?",":""}${this.filters.join(",")}`}};function oG(t){return new yP(t)}a(oG,"getDebugBackend");var _P=class extends ja{static{a(this,"StructuredBackend")}constructor(e){var r;super(),this.upstream=(r=e)!==null&&r!==void 0?r:void 0}makeLogger(e){var r;let o=(r=this.upstream)===null||r===void 0?void 0:r.makeLogger(e);return(n,...i)=>{var s;let u=(s=n.severity)!==null&&s!==void 0?s:Qr.INFO,l=Object.assign({severity:u,message:l0.format(...i)},n),p=JSON.stringify(l);o?o(n,p):console.log("%s",p)}}setFilters(){var e;(e=this.upstream)===null||e===void 0||e.setFilters()}};function iG(t){return new _P(t)}a(iG,"getStructuredBackend");ot.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var vP=new Map,vr;function aG(t){vr=t,vP.clear()}a(aG,"setBackend");function d0(t,e){if(!vr&&!Nu.env[ot.env.nodeEnables]||!t)return ot.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let r=vP.get(t);if(r)return r.func;if(vr===null)return ot.placeholder;vr===void 0&&(vr=gP());let o=(()=>{let n;return new $u(t,(s,...u)=>{if(n!==vr){if(vr===null)return;vr===void 0&&(vr=gP()),n=vr}vr?.log(t,s,...u)})})();return vP.set(t,o),o.func}a(d0,"log")});var bP=D(Si=>{"use strict";var sG=Si&&Si.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),cG=Si&&Si.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&sG(e,t,r)};Object.defineProperty(Si,"__esModule",{value:!0});cG(p0(),Si)});var zu=D(Se=>{"use strict";var m0=Se&&Se.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),uG=Se&&Se.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lG=Se&&Se.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&m0(r,e,o[n]);return uG(r,e),r}})(),dG=Se&&Se.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&m0(e,t,r)};Object.defineProperty(Se,"__esModule",{value:!0});Se.gcpResidencyCache=Se.METADATA_SERVER_DETECTION=Se.HEADERS=Se.HEADER_VALUE=Se.HEADER_NAME=Se.SECONDARY_HOST_ADDRESS=Se.HOST_ADDRESS=Se.BASE_PATH=void 0;Se.instance=yG;Se.project=_G;Se.universe=vG;Se.bulk=bG;Se.isAvailable=SG;Se.resetIsAvailableCache=EG;Se.getGCPResidency=EP;Se.setGCPResidency=h0;Se.requestTimeout=g0;var PP=bt(),pG=t0(),fG=mP(),mG=lG(bP());Se.BASE_PATH="/computeMetadata/v1";Se.HOST_ADDRESS="http://169.254.169.254";Se.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";Se.HEADER_NAME="Metadata-Flavor";Se.HEADER_VALUE="Google";Se.HEADERS=Object.freeze({[Se.HEADER_NAME]:Se.HEADER_VALUE});var f0=mG.log("gcp-metadata");Se.METADATA_SERVER_DETECTION=Object.freeze({"assume-present":"don't try to ping the metadata server, but assume it's present",none:"don't try to ping the metadata server, but don't try to use it either","bios-only":"treat the result of a BIOS probe as canonical (don't fall back to pinging)","ping-only":"skip the BIOS probe, and go straight to pinging"});function SP(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||Se.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(Se.BASE_PATH,t).href}a(SP,"getBaseUrl");function hG(t){Object.keys(t).forEach(e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}})}a(hG,"validate");async function Du(t,e={},r=3,o=!1){let n=new Headers(Se.HEADERS),i="",s={};if(typeof t=="object"){let y=t;new Headers(y.headers).forEach((m,h)=>n.set(h,m)),i=y.metadataKey,s=y.params||s,r=y.noResponseRetries||r,o=y.fastFail||o}else i=t;typeof e=="string"?i+=`/${e}`:(hG(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>n.set(m,y)),s=e.params||s);let u=o?gG:PP.request,l={url:`${SP()}/${i}`,headers:n,retryConfig:{noResponseRetries:r},params:s,responseType:"text",timeout:g0()};f0.info("instance request %j",l);let p=await u(l);f0.info("instance metadata is %s",p.data);let f=p.headers.get(Se.HEADER_NAME);if(f!==Se.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${Se.HEADER_NAME} header. Expected '${Se.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return pG.parse(p.data)}catch{}return p.data}a(Du,"metadataAccessor");async function gG(t){let e={...t,url:t.url?.toString().replace(SP(),SP(Se.SECONDARY_HOST_ADDRESS))},r=(0,PP.request)(t),o=(0,PP.request)(e);return Promise.any([r,o])}a(gG,"fastFailMetadataRequest");function yG(t){return Du("instance",t)}a(yG,"instance");function _G(t){return Du("project",t)}a(_G,"project");function vG(t){return Du("universe",t)}a(vG,"universe");async function bG(t){let e={};return await Promise.all(t.map(r=>(async()=>{let o=await Du(r),n=r.metadataKey;e[n]=o})())),e}a(bG,"bulk");function PG(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(PG,"detectGCPAvailableRetries");var em;async function SG(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in Se.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(Se.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return EP();case"ping-only":}}try{return em===void 0&&(em=Du("instance",void 0,PG(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))),await em,!0}catch(t){let e=t;if(process.env.DEBUG_AUTH&&console.info(e),e.type==="request-timeout"||e.response&&e.response.status===404)return!1;if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code.toString()))){let r="UNKNOWN";e.code&&(r=e.code.toString()),process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return!1}}a(SG,"isAvailable");function EG(){em=void 0}a(EG,"resetIsAvailableCache");Se.gcpResidencyCache=null;function EP(){return Se.gcpResidencyCache===null&&h0(),Se.gcpResidencyCache}a(EP,"getGCPResidency");function h0(t=null){Se.gcpResidencyCache=t!==null?t:(0,fG.detectGCPResidency)()}a(h0,"setGCPResidency");function g0(){return EP()?0:3e3}a(g0,"requestTimeout");dG(mP(),Se)});var v0=D(tm=>{"use strict";tm.byteLength=xG;tm.toByteArray=wG;tm.fromByteArray=RG;var mn=[],Ur=[],TG=typeof Uint8Array<"u"?Uint8Array:Array,TP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ei=0,y0=TP.length;Ei<y0;++Ei)mn[Ei]=TP[Ei],Ur[TP.charCodeAt(Ei)]=Ei;var Ei,y0;Ur[45]=62;Ur[95]=63;function _0(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var o=r===e?0:4-r%4;return[r,o]}a(_0,"getLens");function xG(t){var e=_0(t),r=e[0],o=e[1];return(r+o)*3/4-o}a(xG,"byteLength");function AG(t,e,r){return(e+r)*3/4-r}a(AG,"_byteLength");function wG(t){var e,r=_0(t),o=r[0],n=r[1],i=new TG(AG(t,o,n)),s=0,u=n>0?o-4:o,l;for(l=0;l<u;l+=4)e=Ur[t.charCodeAt(l)]<<18|Ur[t.charCodeAt(l+1)]<<12|Ur[t.charCodeAt(l+2)]<<6|Ur[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=Ur[t.charCodeAt(l)]<<2|Ur[t.charCodeAt(l+1)]>>4,i[s++]=e&255),n===1&&(e=Ur[t.charCodeAt(l)]<<10|Ur[t.charCodeAt(l+1)]<<4|Ur[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}a(wG,"toByteArray");function IG(t){return mn[t>>18&63]+mn[t>>12&63]+mn[t>>6&63]+mn[t&63]}a(IG,"tripletToBase64");function CG(t,e,r){for(var o,n=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),n.push(IG(o));return n.join("")}a(CG,"encodeChunk");function RG(t){for(var e,r=t.length,o=r%3,n=[],i=16383,s=0,u=r-o;s<u;s+=i)n.push(CG(t,s,s+i>u?u:s+i));return o===1?(e=t[r-1],n.push(mn[e>>2]+mn[e<<4&63]+"==")):o===2&&(e=(t[r-2]<<8)+t[r-1],n.push(mn[e>>10]+mn[e>>4&63]+mn[e<<2&63]+"=")),n.join("")}a(RG,"fromByteArray")});var AP=D(xP=>{"use strict";Object.defineProperty(xP,"__esModule",{value:!0});xP.fromArrayBufferToHex=OG;function OG(t){return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}a(OG,"fromArrayBufferToHex")});var b0=D(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.BrowserCrypto=void 0;var Fa=v0(),kG=AP(),wP=class t{static{a(this,"BrowserCrypto")}constructor(){if(typeof window>"u"||window.crypto===void 0||window.crypto.subtle===void 0)throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}async sha256DigestBase64(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return Fa.fromByteArray(new Uint8Array(o))}randomBytesBase64(e){let r=new Uint8Array(e);return window.crypto.getRandomValues(r),Fa.fromByteArray(r)}static padBase64(e){for(;e.length%4!==0;)e+="=";return e}async verify(e,r,o){let n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},i=new TextEncoder().encode(r),s=Fa.toByteArray(t.padBase64(o)),u=await window.crypto.subtle.importKey("jwk",e,n,!0,["verify"]);return await window.crypto.subtle.verify(n,u,s,i)}async sign(e,r){let o={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},n=new TextEncoder().encode(r),i=await window.crypto.subtle.importKey("jwk",e,o,!0,["sign"]),s=await window.crypto.subtle.sign(o,i,n);return Fa.fromByteArray(new Uint8Array(s))}decodeBase64StringUtf8(e){let r=Fa.toByteArray(t.padBase64(e));return new TextDecoder().decode(r)}encodeBase64StringUtf8(e){let r=new TextEncoder().encode(e);return Fa.fromByteArray(r)}async sha256DigestHex(e){let r=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",r);return(0,kG.fromArrayBufferToHex)(o)}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:String.fromCharCode(...new Uint16Array(e)),n=new TextEncoder,i=await window.crypto.subtle.importKey("raw",n.encode(o),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return window.crypto.subtle.sign("HMAC",i,n.encode(r))}};rm.BrowserCrypto=wP});var P0=D(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.NodeCrypto=void 0;var Ba=require("crypto"),IP=class{static{a(this,"NodeCrypto")}async sha256DigestBase64(e){return Ba.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return Ba.randomBytes(e).toString("base64")}async verify(e,r,o){let n=Ba.createVerify("RSA-SHA256");return n.update(r),n.end(),n.verify(e,o,"base64")}async sign(e,r){let o=Ba.createSign("RSA-SHA256");return o.update(r),o.end(),o.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return Ba.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){let o=typeof e=="string"?e:$G(e);return NG(Ba.createHmac("sha256",o).update(r).digest())}};nm.NodeCrypto=IP;function NG(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(NG,"toArrayBuffer");function $G(t){return Buffer.from(t)}a($G,"toBuffer")});var Uu=D(Gn=>{"use strict";var DG=Gn&&Gn.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),zG=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DG(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createCrypto=LG;Gn.hasBrowserCrypto=S0;var UG=b0(),MG=P0();zG(AP(),Gn);function LG(){return S0()?new UG.BrowserCrypto:new MG.NodeCrypto}a(LG,"createCrypto");function S0(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(S0,"hasBrowserCrypto")});var qa=D((CP,T0)=>{var om=require("buffer"),hn=om.Buffer;function E0(t,e){for(var r in t)e[r]=t[r]}a(E0,"copyProps");hn.from&&hn.alloc&&hn.allocUnsafe&&hn.allocUnsafeSlow?T0.exports=om:(E0(om,CP),CP.Buffer=Ti);function Ti(t,e,r){return hn(t,e,r)}a(Ti,"SafeBuffer");Ti.prototype=Object.create(hn.prototype);E0(hn,Ti);Ti.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return hn(t,e,r)};Ti.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=hn(t);return e!==void 0?typeof r=="string"?o.fill(e,r):o.fill(e):o.fill(0),o};Ti.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return hn(t)};Ti.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return om.SlowBuffer(t)}});var A0=D((qse,x0)=>{"use strict";function RP(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(RP,"getParamSize");var jG={ES256:RP(256),ES384:RP(384),ES512:RP(521)};function FG(t){var e=jG[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a(FG,"getParamBytesForAlg");x0.exports=FG});var OP=D((Vse,k0)=>{"use strict";var im=qa().Buffer,I0=A0(),am=128,C0=0,BG=32,qG=16,GG=2,R0=qG|BG|C0<<6,sm=GG|C0<<6;function VG(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(VG,"base64Url");function O0(t){if(im.isBuffer(t))return t;if(typeof t=="string")return im.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}a(O0,"signatureAsBuffer");function HG(t,e){t=O0(t);var r=I0(e),o=r+1,n=t.length,i=0;if(t[i++]!==R0)throw new Error('Could not find expected "seq"');var s=t[i++];if(s===(am|1)&&(s=t[i++]),n-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(n-i)+'" remaining');if(t[i++]!==sm)throw new Error('Could not find expected "int" for "r"');var u=t[i++];if(n-i-2<u)throw new Error('"r" specified length of "'+u+'", only "'+(n-i-2)+'" available');if(o<u)throw new Error('"r" specified length of "'+u+'", max of "'+o+'" is acceptable');var l=i;if(i+=u,t[i++]!==sm)throw new Error('Could not find expected "int" for "s"');var p=t[i++];if(n-i!==p)throw new Error('"s" specified length of "'+p+'", expected "'+(n-i)+'"');if(o<p)throw new Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var f=i;if(i+=p,i!==n)throw new Error('Expected to consume entire buffer, but "'+(n-i)+'" bytes remain');var y=r-u,m=r-p,h=im.allocUnsafe(y+u+m+p);for(i=0;i<y;++i)h[i]=0;t.copy(h,i,l+Math.max(-y,0),l+u),i=r;for(var _=i;i<_+m;++i)h[i]=0;return t.copy(h,i,f+Math.max(-m,0),f+p),h=h.toString("base64"),h=VG(h),h}a(HG,"derToJose");function w0(t,e,r){for(var o=0;e+o<r&&t[e+o]===0;)++o;var n=t[e+o]>=am;return n&&--o,o}a(w0,"countPadding");function ZG(t,e){t=O0(t);var r=I0(e),o=t.length;if(o!==r*2)throw new TypeError('"'+e+'" signatures must be "'+r*2+'" bytes, saw "'+o+'"');var n=w0(t,0,r),i=w0(t,r,t.length),s=r-n,u=r-i,l=2+s+1+1+u,p=l<am,f=im.allocUnsafe((p?2:3)+l),y=0;return f[y++]=R0,p?f[y++]=l:(f[y++]=am|1,f[y++]=l&255),f[y++]=sm,f[y++]=s,n<0?(f[y++]=0,y+=t.copy(f,y,0,r)):y+=t.copy(f,y,n,r),f[y++]=sm,f[y++]=u,i<0?(f[y++]=0,t.copy(f,y,r)):t.copy(f,y,r+i),f}a(ZG,"joseToDer");k0.exports={derToJose:HG,joseToDer:ZG}});var en=D(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.LRUCache=void 0;Vn.snakeToCamel=$0;Vn.originalOrCamelOptions=XG;Vn.removeUndefinedValuesInObject=YG;Vn.isValidFile=QG;Vn.getWellKnownCertificateConfigFileLocation=eV;var WG=require("fs"),KG=require("os"),kP=require("path"),JG="certificate_config.json",N0="gcloud";function $0(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a($0,"snakeToCamel");function XG(t){function e(r){let o=t||{};return o[r]??o[$0(r)]}return a(e,"get"),{get:e}}a(XG,"originalOrCamelOptions");var NP=class{static{a(this,"LRUCache")}capacity;#e=new Map;maxAge;constructor(e){this.capacity=e.capacity,this.maxAge=e.maxAge}#t(e,r){this.#e.delete(e),this.#e.set(e,{value:r,lastAccessed:Date.now()})}set(e,r){this.#t(e,r),this.#r()}get(e){let r=this.#e.get(e);if(r)return this.#t(e,r.value),this.#r(),r.value}#r(){let e=this.maxAge?Date.now()-this.maxAge:0,r=this.#e.entries().next();for(;!r.done&&(this.#e.size>this.capacity||r.value[1].lastAccessed<e);)this.#e.delete(r.value[0]),r=this.#e.entries().next()}};Vn.LRUCache=NP;function YG(t){return Object.entries(t).forEach(([e,r])=>{(r===void 0||r==="undefined")&&delete t[e]}),t}a(YG,"removeUndefinedValuesInObject");async function QG(t){try{return(await WG.promises.lstat(t)).isFile()}catch{return!1}}a(QG,"isValidFile");function eV(){let t=process.env.CLOUDSDK_CONFIG||(tV()?kP.join(process.env.APPDATA||"",N0):kP.join(process.env.HOME||"",".config",N0));return kP.join(t,JG)}a(eV,"getWellKnownCertificateConfigFileLocation");function tV(){return KG.platform().startsWith("win")}a(tV,"_isWindows")});var D0=D((Kse,rV)=>{rV.exports={name:"google-auth-library",version:"10.5.0",author:"Google Inc.",description:"Google APIs Authentication Client Library for Node.js",engines:{node:">=18"},main:"./build/src/index.js",types:"./build/src/index.d.ts",repository:"googleapis/google-auth-library-nodejs.git",keywords:["google","api","google apis","client","client library"],dependencies:{"base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11",gaxios:"^7.0.0","gcp-metadata":"^8.0.0","google-logging-utils":"^1.0.0",gtoken:"^8.0.0",jws:"^4.0.0"},devDependencies:{"@types/base64-js":"^1.2.5","@types/jws":"^3.1.0","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","assert-rejects":"^1.0.0",c8:"^10.0.0",codecov:"^3.0.2",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",keypair:"^1.0.4",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","ts-loader":"^8.0.0",typescript:"5.8.2",webpack:"^5.21.2","webpack-cli":"^4.0.0"},files:["build/src","!build/src/**/*.map"],scripts:{test:"c8 mocha build/test",clean:"gts clean",prepare:"npm run compile",lint:"gts check --no-inline-config",compile:"tsc -p .",fix:"gts fix",pretest:"npm run compile -- --sourceMap",docs:"jsdoc -c .jsdoc.js","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile -- --sourceMap",webpack:"webpack","browser-test":"karma start","docs-test":"echo 'disabled until linkinator is fixed'","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm install"},license:"Apache-2.0"}});var $P=D(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.USER_AGENT=ko.PRODUCT_NAME=ko.pkg=void 0;var z0=D0();ko.pkg=z0;var U0="google-api-nodejs-client";ko.PRODUCT_NAME=U0;var nV=`${U0}/${z0.version}`;ko.USER_AGENT=nV});var br=D(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.AuthClient=tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=tn.DEFAULT_UNIVERSE=void 0;var oV=require("events"),DP=bt(),iV=en(),aV=bP(),zP=$P();tn.DEFAULT_UNIVERSE="googleapis.com";tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var UP=class t extends oV.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=tn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=tn.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let r=(0,iV.originalOrCamelOptions)(e);this.apiKey=e.apiKey,this.projectId=r.get("project_id")??null,this.quotaProjectId=r.get("quota_project_id"),this.credentials=r.get("credentials")??{},this.universeDomain=r.get("universe_domain")??tn.DEFAULT_UNIVERSE,this.transporter=e.transporter??new DP.Gaxios(e.transporterOptions),r.get("useAuthRequestParameters")!==!1&&(this.transporter.interceptors.request.add(t.DEFAULT_REQUEST_INTERCEPTOR),this.transporter.interceptors.response.add(t.DEFAULT_RESPONSE_INTERCEPTOR)),e.eagerRefreshThresholdMillis&&(this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis),this.forceRefreshOnFailure=e.forceRefreshOnFailure??!1}fetch(...e){let r=e[0],o=e[1],n,i=new Headers;return typeof r=="string"?n=new URL(r):r instanceof URL?n=r:r&&r.url&&(n=new URL(r.url)),r&&typeof r=="object"&&"headers"in r&&DP.Gaxios.mergeHeaders(i,r.headers),o&&DP.Gaxios.mergeHeaders(i,new Headers(o.headers)),typeof r=="object"&&!(r instanceof URL)?this.request({...o,...r,headers:i,url:n}):this.request({...o,headers:i,url:n})}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){return!e.has("x-goog-user-project")&&this.quotaProjectId&&e.set("x-goog-user-project",this.quotaProjectId),e}addUserProjectAndAuthHeaders(e,r){let o=r.get("x-goog-user-project"),n=r.get("authorization");return o&&e.set("x-goog-user-project",o),n&&e.set("authorization",n),e}static log=(0,aV.log)("auth");static DEFAULT_REQUEST_INTERCEPTOR={resolved:a(async e=>{if(!e.headers.has("x-goog-api-client")){let o=process.version.replace(/^v/,"");e.headers.set("x-goog-api-client",`gl-node/${o}`)}let r=e.headers.get("User-Agent");r?r.includes(`${zP.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${r} ${zP.USER_AGENT}`):e.headers.set("User-Agent",zP.USER_AGENT);try{let o=e,n=o[t.RequestMethodNameSymbol],i=`${Math.floor(Math.random()*1e3)}`;o[t.RequestLogIdSymbol]=i;let s={url:e.url,headers:e.headers};n?t.log.info("%s [%s] request %j",n,i,s):t.log.info("[%s] request %j",i,s)}catch{}return e},"resolved")};static DEFAULT_RESPONSE_INTERCEPTOR={resolved:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] response %j",o,n,e.data):t.log.info("[%s] response %j",n,e.data)}catch{}return e},"resolved"),rejected:a(async e=>{try{let r=e.config,o=r[t.RequestMethodNameSymbol],n=r[t.RequestLogIdSymbol];o?t.log.info("%s [%s] error %j",o,n,e.response?.data):t.log.error("[%s] error %j",n,e.response?.data)}catch{}throw e},"rejected")};static setMethodName(e,r){try{let o=e;o[t.RequestMethodNameSymbol]=r}catch{}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};tn.AuthClient=UP});var LP=D(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.LoginTicket=void 0;var MP=class{static{a(this,"LoginTicket")}envelope;payload;constructor(e,r){this.envelope=e,this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){let e=this.getPayload();return e&&e.sub?e.sub:null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}};cm.LoginTicket=MP});var xi=D(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.OAuth2Client=gn.ClientAuthentication=gn.CertificateFormat=gn.CodeChallengeMethod=void 0;var M0=bt(),sV=require("querystring"),cV=require("stream"),uV=OP(),L0=en(),jP=Uu(),Ga=br(),lV=LP(),j0;(function(t){t.Plain="plain",t.S256="S256"})(j0||(gn.CodeChallengeMethod=j0={}));var Hn;(function(t){t.PEM="PEM",t.JWK="JWK"})(Hn||(gn.CertificateFormat=Hn={}));var Mu;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(Mu||(gn.ClientAuthentication=Mu={}));var FP=class t extends Ga.AuthClient{static{a(this,"OAuth2Client")}redirectUri;certificateCache={};certificateExpiry=null;certificateCacheFormat=Hn.PEM;refreshTokenPromises=new Map;endpoints;issuers;clientAuthentication;_clientId;_clientSecret;refreshHandler;constructor(e={},r,o){super(typeof e=="object"?e:{}),typeof e!="object"&&(e={clientId:e,clientSecret:r,redirectUri:o}),this._clientId=e.clientId||e.client_id,this._clientSecret=e.clientSecret||e.client_secret,this.redirectUri=e.redirectUri||e.redirect_uris?.[0],this.endpoints={tokenInfoUrl:"https://oauth2.googleapis.com/tokeninfo",oauth2AuthBaseUrl:"https://accounts.google.com/o/oauth2/v2/auth",oauth2TokenUrl:"https://oauth2.googleapis.com/token",oauth2RevokeUrl:"https://oauth2.googleapis.com/revoke",oauth2FederatedSignonPemCertsUrl:"https://www.googleapis.com/oauth2/v1/certs",oauth2FederatedSignonJwkCertsUrl:"https://www.googleapis.com/oauth2/v3/certs",oauth2IapPublicKeyUrl:"https://www.gstatic.com/iap/verify/public_key",...e.endpoints},this.clientAuthentication=e.clientAuthentication||Mu.ClientSecretPost,this.issuers=e.issuers||["accounts.google.com","https://accounts.google.com",this.universeDomain]}static GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";static CLOCK_SKEW_SECS_=300;static DEFAULT_MAX_TOKEN_LIFETIME_SECS_=86400;generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge)throw new Error("If a code_challenge_method is provided, code_challenge must be included.");return e.response_type=e.response_type||"code",e.client_id=e.client_id||this._clientId,e.redirect_uri=e.redirect_uri||this.redirectUri,Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),this.endpoints.oauth2AuthBaseUrl.toString()+"?"+sV.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,jP.createCrypto)(),o=e.randomBytesBase64(96).replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-"),i=(await e.sha256DigestBase64(o)).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:o,codeChallenge:i}}getToken(e,r){let o=typeof e=="string"?{code:e}:e;if(r)this.getTokenAsync(o).then(n=>r(null,n.tokens,n.res),n=>r(n,null,n.response));else return this.getTokenAsync(o)}async getTokenAsync(e){let r=this.endpoints.oauth2TokenUrl.toString(),o=new Headers,n={client_id:e.client_id||this._clientId,code_verifier:e.codeVerifier,code:e.code,grant_type:"authorization_code",redirect_uri:e.redirect_uri||this.redirectUri};if(this.clientAuthentication===Mu.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===Mu.ClientSecretPost&&(n.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,L0.removeUndefinedValuesInObject)(n)),headers:o};Ga.AuthClient.setMethodName(i,"getTokenAsync");let s=await this.transporter.request(i),u=s.data;return s.data&&s.data.expires_in&&(u.expiry_date=new Date().getTime()+s.data.expires_in*1e3,delete u.expires_in),this.emit("tokens",u),{tokens:u,res:s}}async refreshToken(e){if(!e)return this.refreshTokenNoCache(e);if(this.refreshTokenPromises.has(e))return this.refreshTokenPromises.get(e);let r=this.refreshTokenNoCache(e).then(o=>(this.refreshTokenPromises.delete(e),o),o=>{throw this.refreshTokenPromises.delete(e),o});return this.refreshTokenPromises.set(e,r),r}async refreshTokenNoCache(e){if(!e)throw new Error("No refresh token is set.");let r=this.endpoints.oauth2TokenUrl.toString(),o={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"},n;try{let s={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,L0.removeUndefinedValuesInObject)(o))};Ga.AuthClient.setMethodName(s,"refreshTokenNoCache"),n=await this.transporter.request(s)}catch(s){throw s instanceof M0.GaxiosError&&s.message==="invalid_grant"&&s.response?.data&&/ReAuth/i.test(s.response.data.error_description)&&(s.message=JSON.stringify(s.response.data)),s}let i=n.data;return n.data&&n.data.expires_in&&(i.expiry_date=new Date().getTime()+n.data.expires_in*1e3,delete i.expires_in),this.emit("tokens",i),{tokens:i,res:n}}refreshAccessToken(e){if(e)this.refreshAccessTokenAsync().then(r=>e(null,r.credentials,r.res),e);else return this.refreshAccessTokenAsync()}async refreshAccessTokenAsync(){let e=await this.refreshToken(this.credentials.refresh_token),r=e.tokens;return r.refresh_token=this.credentials.refresh_token,this.credentials=r,{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e)this.getAccessTokenAsync().then(r=>e(null,r.token,r.res),e);else return this.getAccessTokenAsync()}async getAccessTokenAsync(){if(!this.credentials.access_token||this.isTokenExpiring()){if(!this.credentials.refresh_token)if(this.refreshHandler){let o=await this.processAndValidateRefreshHandler();if(o?.access_token)return this.setCredentials(o),{token:this.credentials.access_token}}else throw new Error("No refresh token or refresh handler callback is set.");let r=await this.refreshAccessTokenAsync();if(!r.credentials||r.credentials&&!r.credentials.access_token)throw new Error("Could not refresh access token.");return{token:r.credentials.access_token,res:r.res}}else return{token:this.credentials.access_token}}async getRequestHeaders(e){return(await this.getRequestMetadataAsync(e)).headers}async getRequestMetadataAsync(e){let r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler)throw new Error("No access, refresh token, API key or refresh handler callback is set.");if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";let u=new Headers({authorization:r.token_type+" "+r.access_token});return{headers:this.addSharedMetadataHeaders(u)}}if(this.refreshHandler){let u=await this.processAndValidateRefreshHandler();if(u?.access_token){this.setCredentials(u);let l=new Headers({authorization:"Bearer "+this.credentials.access_token});return{headers:this.addSharedMetadataHeaders(l)}}}if(this.apiKey)return{headers:new Headers({"X-Goog-Api-Key":this.apiKey})};let o=null,n=null;try{o=await this.refreshToken(r.refresh_token),n=o.tokens}catch(u){let l=u;throw l.response&&(l.response.status===403||l.response.status===404)&&(l.message=`Could not refresh access token: ${l.message}`),l}let i=this.credentials;i.token_type=i.token_type||"Bearer",n.refresh_token=i.refresh_token,this.credentials=n;let s=new Headers({authorization:i.token_type+" "+n.access_token});return{headers:this.addSharedMetadataHeaders(s),res:o.res}}static getRevokeTokenUrl(e){return new t().getRevokeTokenURL(e).toString()}getRevokeTokenURL(e){let r=new URL(this.endpoints.oauth2RevokeUrl);return r.searchParams.append("token",e),r}revokeToken(e,r){let o={...t.RETRY_CONFIG,url:this.getRevokeTokenURL(e).toString(),method:"POST"};if(Ga.AuthClient.setMethodName(o,"revokeToken"),r)this.transporter.request(o).then(n=>r(null,n),r);else return this.transporter.request(o)}revokeCredentials(e){if(e)this.revokeCredentialsAsync().then(r=>e(null,r),e);else return this.revokeCredentialsAsync()}async revokeCredentialsAsync(){let e=this.credentials.access_token;if(this.credentials={},e)return this.revokeToken(e);throw new Error("No access token to revoke.")}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){try{let o=await this.getRequestMetadataAsync();return e.headers=M0.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,o.headers),this.apiKey&&e.headers.set("X-Goog-Api-Key",this.apiKey),await this.transporter.request(e)}catch(o){let n=o.response;if(n){let i=n.status,s=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure),u=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler,l=n.config.data instanceof cV.Readable,p=i===401||i===403;if(!r&&p&&!l&&s)return await this.refreshAccessTokenAsync(),this.requestAsync(e,!0);if(!r&&p&&!l&&u){let f=await this.processAndValidateRefreshHandler();return f?.access_token&&this.setCredentials(f),this.requestAsync(e,!0)}}throw o}}verifyIdToken(e,r){if(r&&typeof r!="function")throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.");if(r)this.verifyIdTokenAsync(e).then(o=>r(null,o),r);else return this.verifyIdTokenAsync(e)}async verifyIdTokenAsync(e){if(!e.idToken)throw new Error("The verifyIdToken method requires an ID Token");let r=await this.getFederatedSignonCertsAsync();return await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,this.issuers,e.maxExpiry)}async getTokenInfo(e){let{data:r}=await this.transporter.request({...t.RETRY_CONFIG,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8",authorization:`Bearer ${e}`},url:this.endpoints.tokenInfoUrl.toString()}),o=Object.assign({expiry_date:new Date().getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);return delete o.expires_in,delete o.scope,o}getFederatedSignonCerts(e){if(e)this.getFederatedSignonCertsAsync().then(r=>e(null,r.certs,r.res),e);else return this.getFederatedSignonCertsAsync()}async getFederatedSignonCertsAsync(){let e=new Date().getTime(),r=(0,jP.hasBrowserCrypto)()?Hn.JWK:Hn.PEM;if(this.certificateExpiry&&e<this.certificateExpiry.getTime()&&this.certificateCacheFormat===r)return{certs:this.certificateCache,format:r};let o,n;switch(r){case Hn.PEM:n=this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();break;case Hn.JWK:n=this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();break;default:throw new Error(`Unsupported certificate format ${r}`)}try{let p={...t.RETRY_CONFIG,url:n};Ga.AuthClient.setMethodName(p,"getFederatedSignonCertsAsync"),o=await this.transporter.request(p)}catch(p){throw p instanceof Error&&(p.message=`Failed to retrieve verification certificates: ${p.message}`),p}let i=o?.headers.get("cache-control"),s=-1;if(i){let p=/max-age=(?<maxAge>[0-9]+)/.exec(i)?.groups?.maxAge;p&&(s=Number(p)*1e3)}let u={};switch(r){case Hn.PEM:u=o.data;break;case Hn.JWK:for(let p of o.data.keys)u[p.kid]=p;break;default:throw new Error(`Unsupported certificate format ${r}`)}let l=new Date;return this.certificateExpiry=s===-1?null:new Date(l.getTime()+s),this.certificateCache=u,this.certificateCacheFormat=r,{certs:u,format:r,res:o}}getIapPublicKeys(e){if(e)this.getIapPublicKeysAsync().then(r=>e(null,r.pubkeys,r.res),e);else return this.getIapPublicKeysAsync()}async getIapPublicKeysAsync(){let e,r=this.endpoints.oauth2IapPublicKeyUrl.toString();try{let o={...t.RETRY_CONFIG,url:r};Ga.AuthClient.setMethodName(o,"getIapPublicKeysAsync"),e=await this.transporter.request(o)}catch(o){throw o instanceof Error&&(o.message=`Failed to retrieve verification certificates: ${o.message}`),o}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,o,n,i){let s=(0,jP.createCrypto)();i||(i=t.DEFAULT_MAX_TOKEN_LIFETIME_SECS_);let u=e.split(".");if(u.length!==3)throw new Error("Wrong number of segments in token: "+e);let l=u[0]+"."+u[1],p=u[2],f,y;try{f=JSON.parse(s.decodeBase64StringUtf8(u[0]))}catch(F){throw F instanceof Error&&(F.message=`Can't parse token envelope: ${u[0]}': ${F.message}`),F}if(!f)throw new Error("Can't parse token envelope: "+u[0]);try{y=JSON.parse(s.decodeBase64StringUtf8(u[1]))}catch(F){throw F instanceof Error&&(F.message=`Can't parse token payload '${u[0]}`),F}if(!y)throw new Error("Can't parse token payload: "+u[1]);if(!Object.prototype.hasOwnProperty.call(r,f.kid))throw new Error("No pem found for envelope: "+JSON.stringify(f));let m=r[f.kid];if(f.alg==="ES256"&&(p=uV.joseToDer(p,"ES256").toString("base64")),!await s.verify(m,l,p))throw new Error("Invalid token signature: "+e);if(!y.iat)throw new Error("No issue time in token: "+JSON.stringify(y));if(!y.exp)throw new Error("No expiration time in token: "+JSON.stringify(y));let _=Number(y.iat);if(isNaN(_))throw new Error("iat field using invalid format");let S=Number(y.exp);if(isNaN(S))throw new Error("exp field using invalid format");let E=new Date().getTime()/1e3;if(S>=E+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let T=_-t.CLOCK_SKEW_SECS_,k=S+t.CLOCK_SKEW_SECS_;if(E<T)throw new Error("Token used too early, "+E+" < "+T+": "+JSON.stringify(y));if(E>k)throw new Error("Token used too late, "+E+" > "+k+": "+JSON.stringify(y));if(n&&n.indexOf(y.iss)<0)throw new Error("Invalid issuer, expected one of ["+n+"], but got "+y.iss);if(typeof o<"u"&&o!==null){let F=y.aud,Y=!1;if(o.constructor===Array?Y=o.indexOf(F)>-1:Y=F===o,!Y)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new lV.LoginTicket(f,y)}async processAndValidateRefreshHandler(){if(this.refreshHandler){let e=await this.refreshHandler();if(!e.access_token)throw new Error("No access token is returned by the refreshHandler callback.");return e}}isTokenExpiring(){let e=this.credentials.expiry_date;return e?e<=new Date().getTime()+this.eagerRefreshThresholdMillis:!1}};gn.OAuth2Client=FP});var qP=D(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.Compute=void 0;var dV=bt(),F0=zu(),pV=xi(),BP=class extends pV.OAuth2Client{static{a(this,"Compute")}serviceAccountEmail;scopes;constructor(e={}){super(e),this.credentials={expiry_date:1,refresh_token:"compute-placeholder"},this.serviceAccountEmail=e.serviceAccountEmail||"default",this.scopes=Array.isArray(e.scopes)?e.scopes:e.scopes?[e.scopes]:[]}async refreshTokenNoCache(){let e=`service-accounts/${this.serviceAccountEmail}/token`,r;try{let n={property:e};this.scopes.length>0&&(n.params={scopes:this.scopes.join(",")}),r=await F0.instance(n)}catch(n){throw n instanceof dV.GaxiosError&&(n.message=`Could not refresh access token: ${n.message}`,this.wrapError(n)),n}let o=r;return r&&r.expires_in&&(o.expiry_date=new Date().getTime()+r.expires_in*1e3,delete o.expires_in),this.emit("tokens",o),{tokens:o,res:null}}async fetchIdToken(e){let r=`service-accounts/${this.serviceAccountEmail}/identity?format=full&audience=${e}`,o;try{let n={property:r};o=await F0.instance(n)}catch(n){throw n instanceof Error&&(n.message=`Could not fetch ID token: ${n.message}`),n}return o}wrapError(e){let r=e.response;r&&r.status&&(e.status=r.status,r.status===403?e.message="A Forbidden error was returned while attempting to retrieve an access token for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have the correct permission scopes specified: "+e.message:r.status===404&&(e.message="A Not Found error was returned while attempting to retrieve an accesstoken for the Compute Engine built-in service account. This may be because the Compute Engine instance does not have any permission scopes specified: "+e.message))}};um.Compute=BP});var VP=D(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.IdTokenClient=void 0;var fV=xi(),GP=class extends fV.OAuth2Client{static{a(this,"IdTokenClient")}targetAudience;idTokenProvider;constructor(e){super(e),this.targetAudience=e.targetAudience,this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(){if(!this.credentials.id_token||!this.credentials.expiry_date||this.isTokenExpiring()){let r=await this.idTokenProvider.fetchIdToken(this.targetAudience);this.credentials={id_token:r,expiry_date:this.getIdTokenExpiryDate(r)}}return{headers:new Headers({authorization:"Bearer "+this.credentials.id_token})}}getIdTokenExpiryDate(e){let r=e.split(".")[1];if(r)return JSON.parse(Buffer.from(r,"base64").toString("ascii")).exp*1e3}};lm.IdTokenClient=GP});var HP=D(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.GCPEnv=void 0;Va.clear=mV;Va.getEnv=hV;var B0=zu(),yn;(function(t){t.APP_ENGINE="APP_ENGINE",t.KUBERNETES_ENGINE="KUBERNETES_ENGINE",t.CLOUD_FUNCTIONS="CLOUD_FUNCTIONS",t.COMPUTE_ENGINE="COMPUTE_ENGINE",t.CLOUD_RUN="CLOUD_RUN",t.CLOUD_RUN_JOBS="CLOUD_RUN_JOBS",t.NONE="NONE"})(yn||(Va.GCPEnv=yn={}));var Lu;function mV(){Lu=void 0}a(mV,"clear");async function hV(){return Lu||(Lu=gV(),Lu)}a(hV,"getEnv");async function gV(){let t=yn.NONE;return yV()?t=yn.APP_ENGINE:_V()?t=yn.CLOUD_FUNCTIONS:await SV()?await PV()?t=yn.KUBERNETES_ENGINE:vV()?t=yn.CLOUD_RUN:bV()?t=yn.CLOUD_RUN_JOBS:t=yn.COMPUTE_ENGINE:t=yn.NONE,t}a(gV,"getEnvMemoized");function yV(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(yV,"isAppEngine");function _V(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(_V,"isCloudFunction");function vV(){return!!process.env.K_CONFIGURATION}a(vV,"isCloudRun");function bV(){return!!process.env.CLOUD_RUN_JOB}a(bV,"isCloudRunJob");async function PV(){try{return await B0.instance("attributes/cluster-name"),!0}catch{return!1}}a(PV,"isKubernetesEngine");async function SV(){return B0.isAvailable()}a(SV,"isComputeEngine")});var ZP=D((uce,q0)=>{var dm=qa().Buffer,EV=require("stream"),TV=require("util");function pm(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=dm.alloc(0),this;if(typeof t.pipe=="function")return this.buffer=dm.alloc(0),t.pipe(this),this;if(t.length||typeof t=="object")return this.buffer=t,this.writable=!1,process.nextTick(function(){this.emit("end",t),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof t+")")}a(pm,"DataStream");TV.inherits(pm,EV);pm.prototype.write=a(function(e){this.buffer=dm.concat([this.buffer,dm.from(e)]),this.emit("data",e)},"write");pm.prototype.end=a(function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},"end");q0.exports=pm});var V0=D((dce,G0)=>{"use strict";var ju=require("buffer").Buffer,WP=require("buffer").SlowBuffer;G0.exports=fm;function fm(t,e){if(!ju.isBuffer(t)||!ju.isBuffer(e)||t.length!==e.length)return!1;for(var r=0,o=0;o<t.length;o++)r|=t[o]^e[o];return r===0}a(fm,"bufferEq");fm.install=function(){ju.prototype.equal=WP.prototype.equal=a(function(e){return fm(this,e)},"equal")};var xV=ju.prototype.equal,AV=WP.prototype.equal;fm.restore=function(){ju.prototype.equal=xV,WP.prototype.equal=AV}});var YP=D((fce,eN)=>{var Za=qa().Buffer,Mr=require("crypto"),Z0=OP(),H0=require("util"),wV=`"%s" is not a valid algorithm.
|
|
39
39
|
Supported algorithms are:
|
|
40
|
-
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,Fu="secret must be a string or buffer",Ha="key must be a string or a buffer",dV="key must be a string, a buffer or an object",HS=typeof Mr.createPublicKey=="function";HS&&(Ha+=" or a KeyObject",Fu+="or a KeyObject");function U0(t){if(!Za.isBuffer(t)&&typeof t!="string"&&(!HS||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw rn(Ha)}a(U0,"checkIsPublicKey");function M0(t){if(!Za.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw rn(dV)}a(M0,"checkIsPrivateKey");function pV(t){if(!Za.isBuffer(t)){if(typeof t=="string")return t;if(!HS||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw rn(Fu)}}a(pV,"checkIsSecretKey");function ZS(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(ZS,"fromBase64");function L0(t){t=t.toString();var e=4-t.length%4;if(e!==4)for(var r=0;r<e;++r)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}a(L0,"toBase64");function rn(t){var e=[].slice.call(arguments,1),r=z0.format.bind(z0,t).apply(null,e);return new TypeError(r)}a(rn,"typeError");function fV(t){return Za.isBuffer(t)||typeof t=="string"}a(fV,"bufferOrString");function Bu(t){return fV(t)||(t=JSON.stringify(t)),t}a(Bu,"normalizeInput");function j0(t){return a(function(r,o){pV(o),r=Bu(r);var n=Mr.createHmac("sha"+t,o),i=(n.update(r),n.digest("base64"));return ZS(i)},"sign")}a(j0,"createHmacSigner");var VS,mV="timingSafeEqual"in Mr?a(function(e,r){return e.byteLength!==r.byteLength?!1:Mr.timingSafeEqual(e,r)},"timingSafeEqual"):a(function(e,r){return VS||(VS=$0()),VS(e,r)},"timingSafeEqual");function hV(t){return a(function(r,o,n){var i=j0(t)(r,n);return mV(Za.from(o),Za.from(i))},"verify")}a(hV,"createHmacVerifier");function F0(t){return a(function(r,o){M0(o),r=Bu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign(o,"base64"));return ZS(i)},"sign")}a(F0,"createKeySigner");function B0(t){return a(function(r,o,n){U0(n),r=Bu(r),o=L0(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify(n,o,"base64")},"verify")}a(B0,"createKeyVerifier");function gV(t){return a(function(r,o){M0(o),r=Bu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign({key:o,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return ZS(i)},"sign")}a(gV,"createPSSKeySigner");function yV(t){return a(function(r,o,n){U0(n),r=Bu(r),o=L0(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify({key:n,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},o,"base64")},"verify")}a(yV,"createPSSKeyVerifier");function _V(t){var e=F0(t);return a(function(){var o=e.apply(null,arguments);return o=D0.derToJose(o,"ES"+t),o},"sign")}a(_V,"createECDSASigner");function vV(t){var e=B0(t);return a(function(o,n,i){n=D0.joseToDer(n,"ES"+t).toString("base64");var s=e(o,n,i);return s},"verify")}a(vV,"createECDSAVerifer");function bV(){return a(function(){return""},"sign")}a(bV,"createNoneSigner");function SV(){return a(function(e,r){return r===""},"verify")}a(SV,"createNoneVerifier");q0.exports=a(function(e){var r={hs:j0,rs:F0,ps:gV,es:_V,none:bV},o={hs:hV,rs:B0,ps:yV,es:vV,none:SV},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!n)throw rn(lV,e);var i=(n[1]||n[3]).toLowerCase(),s=n[2];return{sign:r[i](s),verify:o[i](s)}},"jwa")});var KS=z((Xse,G0)=>{var PV=require("buffer").Buffer;G0.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||PV.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var J0=z((Qse,K0)=>{var EV=qa().Buffer,V0=qS(),TV=WS(),xV=require("stream"),H0=KS(),JS=require("util");function Z0(t,e){return EV.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(Z0,"base64url");function AV(t,e,r){r=r||"utf8";var o=Z0(H0(t),"binary"),n=Z0(H0(e),r);return JS.format("%s.%s",o,n)}a(AV,"jwsSecuredInput");function W0(t){var e=t.header,r=t.payload,o=t.secret||t.privateKey,n=t.encoding,i=TV(e.alg),s=AV(e,r,n),u=i.sign(s,o);return JS.format("%s.%s",s,u)}a(W0,"jwsSign");function fm(t){var e=t.secret;if(e=e??t.privateKey,e=e??t.key,/^hs/i.test(t.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new V0(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new V0(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}a(fm,"SignStream");JS.inherits(fm,xV);fm.prototype.sign=a(function(){try{var e=W0({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}},"sign");fm.sign=W0;K0.exports=fm});var aN=z((tce,iN)=>{var Y0=qa().Buffer,X0=qS(),wV=WS(),IV=require("stream"),Q0=KS(),CV=require("util"),RV=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function OV(t){return Object.prototype.toString.call(t)==="[object Object]"}a(OV,"isObject");function kV(t){if(OV(t))return t;try{return JSON.parse(t)}catch{return}}a(kV,"safeJsonParse");function eN(t){var e=t.split(".",1)[0];return kV(Y0.from(e,"base64").toString("binary"))}a(eN,"headerFromJWS");function NV(t){return t.split(".",2).join(".")}a(NV,"securedInputFromJWS");function tN(t){return t.split(".")[2]}a(tN,"signatureFromJWS");function $V(t,e){e=e||"utf8";var r=t.split(".")[1];return Y0.from(r,"base64").toString(e)}a($V,"payloadFromJWS");function rN(t){return RV.test(t)&&!!eN(t)}a(rN,"isValidJws");function nN(t,e,r){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=Q0(t);var n=tN(t),i=NV(t),s=wV(e);return s.verify(i,n,r)}a(nN,"jwsVerify");function oN(t,e){if(e=e||{},t=Q0(t),!rN(t))return null;var r=eN(t);if(!r)return null;var o=$V(t);return(r.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:r,payload:o,signature:tN(t)}}a(oN,"jwsDecode");function Wa(t){t=t||{};var e=t.secret;if(e=e??t.publicKey,e=e??t.key,/^hs/i.test(t.algorithm)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new X0(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new X0(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}a(Wa,"VerifyStream");CV.inherits(Wa,IV);Wa.prototype.verify=a(function(){try{var e=nN(this.signature.buffer,this.algorithm,this.key.buffer),r=oN(this.signature.buffer,this.encoding);return this.emit("done",e,r),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(o){this.readable=!1,this.emit("error",o),this.emit("close")}},"verify");Wa.decode=oN;Wa.isValid=rN;Wa.verify=nN;iN.exports=Wa});var XS=z(No=>{var sN=J0(),mm=aN(),zV=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];No.ALGORITHMS=zV;No.sign=sN.sign;No.verify=mm.verify;No.decode=mm.decode;No.isValid=mm.isValid;No.createSign=a(function(e){return new sN(e)},"createSign");No.createVerify=a(function(e){return new mm(e)},"createVerify")});var PN=z(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.GoogleToken=void 0;var cN=hm(require("fs")),DV=bt(),UV=hm(XS()),MV=hm(require("path")),LV=require("util");function hm(t,e){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(hm=a(function(i,s){if(!s&&i&&i.__esModule)return i;var u,l,p={__proto__:null,default:i};if(i===null||Zn(i)!="object"&&typeof i!="function")return p;if(u=s?o:r){if(u.has(i))return u.get(i);u.set(i,p)}for(var f in i)f!=="default"&&{}.hasOwnProperty.call(i,f)&&((l=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,f))&&(l.get||l.set)?u(p,f,l):p[f]=i[f]);return p},"_interopRequireWildcard"))(t,e)}a(hm,"_interopRequireWildcard");function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}a(Zn,"_typeof");function jV(t,e){yN(t,e),e.add(t)}a(jV,"_classPrivateMethodInitSpec");function FV(t,e,r){yN(t,e),e.set(t,r)}a(FV,"_classPrivateFieldInitSpec");function yN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(yN,"_checkPrivateRedeclaration");function uN(t,e,r){return t.set(nn(t,e),r),r}a(uN,"_classPrivateFieldSet");function lN(t,e){return t.get(nn(t,e))}a(lN,"_classPrivateFieldGet");function nn(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}a(nn,"_assertClassBrand");function dN(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,bN(o.key),o)}}a(dN,"_defineProperties");function _N(t,e,r){return e&&dN(t.prototype,e),r&&dN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}a(_N,"_createClass");function vN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(vN,"_classCallCheck");function BV(t,e,r){return e=Hu(e),qV(t,nP()?Reflect.construct(e,r||[],Hu(t).constructor):e.apply(t,r))}a(BV,"_callSuper");function qV(t,e){if(e&&(Zn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GV(t)}a(qV,"_possibleConstructorReturn");function GV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(GV,"_assertThisInitialized");function VV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vu(t,e)}a(VV,"_inherits");function YS(t){var e=typeof Map=="function"?new Map:void 0;return YS=a(function(o){if(o===null||!ZV(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(o))return e.get(o);e.set(o,n)}function n(){return HV(o,arguments,Hu(this).constructor)}return a(n,"Wrapper"),n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vu(n,o)},"_wrapNativeSuper"),YS(t)}a(YS,"_wrapNativeSuper");function HV(t,e,r){if(nP())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&Vu(n,r.prototype),n}a(HV,"_construct");function nP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nP=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(nP,"_isNativeReflectConstruct");function ZV(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(ZV,"_isNativeFunction");function Vu(t,e){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vu(t,e)}a(Vu,"_setPrototypeOf");function Hu(t){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(t)}a(Hu,"_getPrototypeOf");function Sr(t,e,r){return(e=bN(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a(Sr,"_defineProperty");function bN(t){var e=WV(t,"string");return Zn(e)=="symbol"?e:e+""}a(bN,"_toPropertyKey");function WV(t,e){if(Zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}a(WV,"_toPrimitive");function Er(){var t,e,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(h,_,P,E){var x=_&&_.prototype instanceof u?_:u,k=Object.create(x.prototype);return Pr(k,"_invoke",(function(L,Y,H){var X,re,ce,ee=0,Le=H||[],le=!1,W={p:0,n:0,v:t,a:Z,f:Z.bind(t,4),d:a(function(Q,de){return X=Q,re=0,ce=t,W.n=de,s},"d")};function Z(oe,Q){for(re=oe,ce=Q,e=0;!le&&ee&&!de&&e<Le.length;e++){var de,me=Le[e],ze=W.p,je=me[2];oe>3?(de=je===Q)&&(ce=me[(re=me[4])?5:(re=3,3)],me[4]=me[5]=t):me[0]<=ze&&((de=oe<2&&ze<me[1])?(re=0,W.v=Q,W.n=me[1]):ze<je&&(de=oe<3||me[0]>Q||Q>je)&&(me[4]=oe,me[5]=Q,W.n=je,re=0))}if(de||oe>1)return s;throw le=!0,Q}return a(Z,"d"),function(oe,Q,de){if(ee>1)throw TypeError("Generator is already running");for(le&&Q===1&&Z(Q,de),re=Q,ce=de;(e=re<2?t:ce)||!le;){X||(re?re<3?(re>1&&(W.n=-1),Z(re,ce)):W.n=ce:W.v=ce);try{if(ee=2,X){if(re||(oe="next"),e=X[oe]){if(!(e=e.call(X,ce)))throw TypeError("iterator result is not an object");if(!e.done)return e;ce=e.value,re<2&&(re=0)}else re===1&&(e=X.return)&&e.call(X),re<2&&(ce=TypeError("The iterator does not provide a '"+oe+"' method"),re=1);X=t}else if((e=(le=W.n<0)?ce:L.call(Y,W))!==s)break}catch(me){X=t,re=1,ce=me}finally{ee=1}}return{value:e,done:le}}})(h,P,E),!0),k}a(i,"i");var s={};function u(){}a(u,"Generator");function l(){}a(l,"GeneratorFunction");function p(){}a(p,"GeneratorFunctionPrototype"),e=Object.getPrototypeOf;var f=[][o]?e(e([][o]())):(Pr(e={},o,function(){return this}),e),y=p.prototype=u.prototype=Object.create(f);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,p):(h.__proto__=p,Pr(h,n,"GeneratorFunction")),h.prototype=Object.create(y),h}return a(m,"f"),l.prototype=p,Pr(y,"constructor",p),Pr(p,"constructor",l),l.displayName="GeneratorFunction",Pr(p,n,"GeneratorFunction"),Pr(y),Pr(y,n,"Generator"),Pr(y,o,function(){return this}),Pr(y,"toString",function(){return"[object Generator]"}),(Er=a(function(){return{w:i,m}},"_regenerator"))()}a(Er,"_regenerator");function Pr(t,e,r,o){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}Pr=a(function(s,u,l,p){if(u)n?n(s,u,{value:l,enumerable:!p,configurable:!p,writable:!p}):s[u]=l;else{var f=a(function(m,h){Pr(s,m,function(_){return this._invoke(m,h,_)})},"o");f("next",0),f("throw",1),f("return",2)}},"_regeneratorDefine"),Pr(t,e,r,o)}a(Pr,"_regeneratorDefine2");function pN(t,e,r,o,n,i,s){try{var u=t[i](s),l=u.value}catch(p){return void r(p)}u.done?e(l):Promise.resolve(l).then(o,n)}a(pN,"asyncGeneratorStep");function Ka(t){return function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function s(l){pN(i,o,n,s,u,"next",l)}a(s,"_next");function u(l){pN(i,o,n,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(Ka,"_asyncToGenerator");var fN=cN.readFile?(0,LV.promisify)(cN.readFile):Ka(Er().m(a(function t(){return Er().w(function(e){for(;;)switch(e.n){case 0:throw new Gu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),mN="https://oauth2.googleapis.com/token",KV="https://oauth2.googleapis.com/revoke?token=",Gu=(function(t){function e(r,o){var n;return vN(this,e),n=BV(this,e,[r]),Sr(n,"code",void 0),n.code=o,n}return a(e,"ErrorWithCode"),VV(e,t),_N(e)})(YS(Error)),qu=new WeakMap,_n=new WeakSet,ice=gm.GoogleToken=(function(){function t(e){vN(this,t),jV(this,_n),Sr(this,"expiresAt",void 0),Sr(this,"key",void 0),Sr(this,"keyFile",void 0),Sr(this,"iss",void 0),Sr(this,"sub",void 0),Sr(this,"scope",void 0),Sr(this,"rawToken",void 0),Sr(this,"tokenExpires",void 0),Sr(this,"email",void 0),Sr(this,"additionalClaims",void 0),Sr(this,"eagerRefreshThresholdMillis",void 0),Sr(this,"transporter",{request:a(function(o){return(0,DV.request)(o)},"request")}),FV(this,qu,void 0),nn(_n,this,SN).call(this,e)}return a(t,"GoogleToken"),_N(t,[{key:"accessToken",get:a(function(){return this.rawToken?this.rawToken.access_token:void 0},"get")},{key:"idToken",get:a(function(){return this.rawToken?this.rawToken.id_token:void 0},"get")},{key:"tokenType",get:a(function(){return this.rawToken?this.rawToken.token_type:void 0},"get")},{key:"refreshToken",get:a(function(){return this.rawToken?this.rawToken.refresh_token:void 0},"get")},{key:"hasExpired",value:a(function(){var r=new Date().getTime();return this.rawToken&&this.expiresAt?r>=this.expiresAt:!0},"hasExpired")},{key:"isTokenExpiring",value:a(function(){var r,o=new Date().getTime(),n=(r=this.eagerRefreshThresholdMillis)!==null&&r!==void 0?r:0;return this.rawToken&&this.expiresAt?this.expiresAt<=o+n:!0},"isTokenExpiring")},{key:"getToken",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Zn(r)==="object"&&(o=r,r=void 0),o=Object.assign({forceRefresh:!1},o),r){var n=r;nn(_n,this,hN).call(this,o).then(function(i){return n(null,i)},r);return}return nn(_n,this,hN).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=Ka(Er().m(a(function o(n){var i,s,u,l,p,f,y;return Er().w(function(m){for(;;)switch(m.n){case 0:i=MV.extname(n),y=i,m.n=y===".json"?1:y===".der"||y===".crt"||y===".pem"?4:y===".p12"||y===".pfx"?6:7;break;case 1:return m.n=2,fN(n,"utf8");case 2:if(s=m.v,u=JSON.parse(s),l=u.private_key,p=u.client_email,!(!l||!p)){m.n=3;break}throw new Gu("private_key and client_email are required.","MISSING_CREDENTIALS");case 3:return m.a(2,{privateKey:l,clientEmail:p});case 4:return m.n=5,fN(n,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new Gu("*.p12 certificates are not supported after v6.1.2. Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.","UNKNOWN_CERTIFICATE_TYPE");case 7:throw new Gu("Unknown certificate type. Type is determined based on file extension. Current supported extensions are *.json, and *.pem.","UNKNOWN_CERTIFICATE_TYPE");case 8:return m.a(2)}},o)},"_callee2")));function r(o){return e.apply(this,arguments)}return a(r,"getCredentials"),r})()},{key:"revokeToken",value:a(function(r){if(r){nn(_n,this,gN).call(this).then(function(){return r()},r);return}return nn(_n,this,gN).call(this)},"revokeToken")}])})();function hN(t){return QS.apply(this,arguments)}a(hN,"_getTokenAsync");function QS(){return QS=Ka(Er().m(a(function t(e){return Er().w(function(r){for(;;)switch(r.n){case 0:if(!(lN(qu,this)&&!e.forceRefresh)){r.n=1;break}return r.a(2,lN(qu,this));case 1:return r.p=1,r.n=2,uN(qu,this,nn(_n,this,JV).call(this,e));case 2:return r.a(2,r.v);case 3:return r.p=3,uN(qu,this,void 0),r.f(3);case 4:return r.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),QS.apply(this,arguments)}a(QS,"_getTokenAsync2");function JV(t){return eP.apply(this,arguments)}a(JV,"_getTokenAsyncInner");function eP(){return eP=Ka(Er().m(a(function t(e){var r;return Er().w(function(o){for(;;)switch(o.n){case 0:if(!(this.isTokenExpiring()===!1&&e.forceRefresh===!1)){o.n=1;break}return o.a(2,Promise.resolve(this.rawToken));case 1:if(!(!this.key&&!this.keyFile)){o.n=2;break}throw new Error("No key or keyFile set.");case 2:if(!(!this.key&&this.keyFile)){o.n=4;break}return o.n=3,this.getCredentials(this.keyFile);case 3:r=o.v,this.key=r.privateKey,this.iss=r.clientEmail||this.iss,r.clientEmail||nn(_n,this,XV).call(this);case 4:return o.a(2,nn(_n,this,YV).call(this))}},t,this)},"_callee4"))),eP.apply(this,arguments)}a(eP,"_getTokenAsyncInner2");function XV(){if(!this.iss)throw new Gu("email is required.","MISSING_CREDENTIALS")}a(XV,"_ensureEmail");function gN(){return tP.apply(this,arguments)}a(gN,"_revokeTokenAsync");function tP(){return tP=Ka(Er().m(a(function t(){var e;return Er().w(function(r){for(;;)switch(r.n){case 0:if(this.accessToken){r.n=1;break}throw new Error("No token to revoke.");case 1:return e=KV+this.accessToken,r.n=2,this.transporter.request({url:e,retry:!0});case 2:nn(_n,this,SN).call(this,{email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims});case 3:return r.a(2)}},t,this)},"_callee5"))),tP.apply(this,arguments)}a(tP,"_revokeTokenAsync2");function SN(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.keyFile=t.keyFile,this.key=t.key,this.rawToken=void 0,this.iss=t.email||t.iss,this.sub=t.sub,this.additionalClaims=t.additionalClaims,Zn(t.scope)==="object"?this.scope=t.scope.join(" "):this.scope=t.scope,this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,t.transporter&&(this.transporter=t.transporter)}a(SN,"_configure");function YV(){return rP.apply(this,arguments)}a(YV,"_requestToken");function rP(){return rP=Ka(Er().m(a(function t(){var e,r,o,n,i,s,u,l,p,f;return Er().w(function(y){for(;;)switch(y.n){case 0:return e=Math.floor(new Date().getTime()/1e3),r=this.additionalClaims||{},o=Object.assign({iss:this.iss,scope:this.scope,aud:mN,exp:e+3600,iat:e,sub:this.sub},r),n=UV.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:mN,data:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n}),responseType:"json",retryConfig:{httpMethodsToRetry:["POST"]}});case 2:return i=y.v,this.rawToken=i.data,this.expiresAt=i.data.expires_in===null||i.data.expires_in===void 0?void 0:(e+i.data.expires_in)*1e3,y.a(2,this.rawToken);case 3:throw y.p=3,f=y.v,this.rawToken=void 0,this.tokenExpires=void 0,l=f.response&&(s=f.response)!==null&&s!==void 0&&s.data?(u=f.response)===null||u===void 0?void 0:u.data:{},l.error&&(p=l.error_description?": ".concat(l.error_description):"",f.message="".concat(l.error).concat(p)),f;case 4:return y.a(2)}},t,this,[[1,3]])},"_callee6"))),rP.apply(this,arguments)}a(rP,"_requestToken2")});var iP=z(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.JWTAccess=void 0;var QV=XS(),e2=en(),EN={alg:"RS256",typ:"JWT"},oP=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new e2.LRUCache({capacity:500,maxAge:3600*1e3});constructor(e,r,o,n){this.email=e,this.key=r,this.keyId=o,this.eagerRefreshThresholdMillis=n??300*1e3}getCachedKey(e,r){let o=e;if(r&&Array.isArray(r)&&r.length?o=e?`${e}_${r.join("_")}`:`${r.join("_")}`:typeof r=="string"&&(o=e?`${e}_${r}`:r),!o)throw Error("Scopes or url must be provided");return o}getRequestHeaders(e,r,o){let n=this.getCachedKey(e,o),i=this.cache.get(n),s=Date.now();if(i&&i.expiration-s>this.eagerRefreshThresholdMillis)return new Headers(i.headers);let u=Math.floor(Date.now()/1e3),l=t.getExpirationTime(u),p;if(Array.isArray(o)&&(o=o.join(" ")),o?p={iss:this.email,sub:this.email,scope:o,exp:l,iat:u}:p={iss:this.email,sub:this.email,aud:e,exp:l,iat:u},r){for(let _ in p)if(r[_])throw new Error(`The '${_}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}let f=this.keyId?{...EN,kid:this.keyId}:EN,y=Object.assign(p,r),m=QV.sign({header:f,payload:y,secret:this.key}),h=new Headers({authorization:`Bearer ${m}`});return this.cache.set(n,{expiration:l*1e3,headers:h}),h}static getExpirationTime(e){return e+3600}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{e||o(new Error("Must pass in a stream containing the service account auth settings."));let n="";e.setEncoding("utf8").on("data",i=>n+=i).on("error",o).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}};ym.JWTAccess=oP});var sP=z(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.JWT=void 0;var TN=PN(),t2=iP(),r2=Ti(),_m=br(),aP=class t extends r2.OAuth2Client{static{a(this,"JWT")}email;keyFile;key;keyId;defaultScopes;scopes;scope;subject;gtoken;additionalClaims;useJWTAccessWithScope;defaultServicePath;access;constructor(e={}){super(e),this.email=e.email,this.keyFile=e.keyFile,this.key=e.key,this.keyId=e.keyId,this.scopes=e.scopes,this.subject=e.subject,this.additionalClaims=e.additionalClaims,this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){let r=new t(this);return r.scopes=e,r}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;let r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes()||this.universeDomain!==_m.DEFAULT_UNIVERSE;if(this.subject&&this.universeDomain!==_m.DEFAULT_UNIVERSE)throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${_m.DEFAULT_UNIVERSE}`);if(!this.apiKey&&r)if(this.additionalClaims&&this.additionalClaims.target_audience){let{tokens:o}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders(new Headers({authorization:`Bearer ${o.id_token}`}))}}else{this.access||(this.access=new t2.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis));let o;this.hasUserScopes()?o=this.scopes:e||(o=this.defaultScopes);let n=this.useJWTAccessWithScope||this.universeDomain!==_m.DEFAULT_UNIVERSE,i=await this.access.getRequestHeaders(e??void 0,this.additionalClaims,n?o:void 0);return{headers:this.addSharedMetadataHeaders(i)}}else return this.hasAnyScopes()||this.apiKey?super.getRequestMetadataAsync(e):{headers:new Headers}}async fetchIdToken(e){let r=new TN.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e},transporter:this.transporter});if(await r.getToken({forceRefresh:!0}),!r.idToken)throw new Error("Unknown error: Failed to fetch ID token");return r.idToken}hasUserScopes(){return this.scopes?this.scopes.length>0:!1}hasAnyScopes(){return!!(this.scopes&&this.scopes.length>0||this.defaultScopes&&this.defaultScopes.length>0)}authorize(e){if(e)this.authorizeAsync().then(r=>e(null,r),e);else return this.authorizeAsync()}async authorizeAsync(){let e=await this.refreshToken();if(!e)throw new Error("No result returned");return this.credentials=e.tokens,this.credentials.refresh_token="jwt-placeholder",this.key=this.gtoken.key,this.email=this.gtoken.iss,e.tokens}async refreshTokenNoCache(){let e=this.createGToken(),o={access_token:(await e.getToken({forceRefresh:this.isTokenExpiring()})).access_token,token_type:"Bearer",expiry_date:e.expiresAt,id_token:e.idToken};return this.emit("tokens",o),{res:null,tokens:o}}createGToken(){return this.gtoken||(this.gtoken=new TN.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims,transporter:this.transporter})),this.gtoken}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{if(!e)throw new Error("Must pass in a stream containing the service account auth settings.");let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}fromAPIKey(e){if(typeof e!="string")throw new Error("Must provide an API Key string.");this.apiKey=e}async getCredentials(){if(this.key)return{private_key:this.key,client_email:this.email};if(this.keyFile){let r=await this.createGToken().getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}};vm.JWT=aP});var uP=z(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UserRefreshClient=Ja.USER_REFRESH_ACCOUNT_TYPE=void 0;var n2=Ti(),o2=br();Ja.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var cP=class t extends n2.OAuth2Client{static{a(this,"UserRefreshClient")}_refreshToken;constructor(e,r,o,n,i){let s=e&&typeof e=="object"?e:{clientId:e,clientSecret:r,refreshToken:o,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:i};super(s),this._refreshToken=s.refreshToken,this.credentials.refresh_token=s.refreshToken}async refreshTokenNoCache(){return super.refreshTokenNoCache(this._refreshToken)}async fetchIdToken(e){let r={...t.RETRY_CONFIG,url:this.endpoints.oauth2TokenUrl,method:"POST",data:new URLSearchParams({client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token",refresh_token:this._refreshToken,target_audience:e})};return o2.AuthClient.setMethodName(r,"fetchIdToken"),(await this.transporter.request(r)).data.id_token}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the user refresh token");if(e.type!=="authorized_user")throw new Error('The incoming JSON object does not have the "authorized_user" type');if(!e.client_id)throw new Error("The incoming JSON object does not contain a client_id field");if(!e.client_secret)throw new Error("The incoming JSON object does not contain a client_secret field");if(!e.refresh_token)throw new Error("The incoming JSON object does not contain a refresh_token field");this._clientId=e.client_id,this._clientSecret=e.client_secret,this._refreshToken=e.refresh_token,this.credentials.refresh_token=e.refresh_token,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}async fromStreamAsync(e){return new Promise((r,o)=>{if(!e)return o(new Error("Must pass in a stream containing the user refresh token."));let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);return this.fromJSON(i),r()}catch(i){return o(i)}})})}static fromJSON(e){let r=new t;return r.fromJSON(e),r}};Ja.UserRefreshClient=cP});var dP=z(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Impersonated=Xa.IMPERSONATED_ACCOUNT_TYPE=void 0;var xN=Ti(),i2=bt(),a2=en();Xa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var lP=class t extends xN.OAuth2Client{static{a(this,"Impersonated")}sourceClient;targetPrincipal;targetScopes;delegates;lifetime;endpoint;constructor(e={}){if(super(e),this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"},this.sourceClient=e.sourceClient??new xN.OAuth2Client,this.targetPrincipal=e.targetPrincipal??"",this.delegates=e.delegates??[],this.targetScopes=e.targetScopes??[],this.lifetime=e.lifetime??3600,!!!(0,a2.originalOrCamelOptions)(e).get("universe_domain"))this.universeDomain=this.sourceClient.universeDomain;else if(this.sourceClient.universeDomain!==this.universeDomain)throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`);this.endpoint=e.endpoint??`https://iamcredentials.${this.universeDomain}`}async sign(e){await this.sourceClient.getAccessToken();let r=`projects/-/serviceAccounts/${this.targetPrincipal}`,o=`${this.endpoint}/v1/${r}:signBlob`,n={delegates:this.delegates,payload:Buffer.from(e).toString("base64")};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:o,data:n,method:"POST"})).data}getTargetPrincipal(){return this.targetPrincipal}async refreshToken(){try{await this.sourceClient.getAccessToken();let e="projects/-/serviceAccounts/"+this.targetPrincipal,r=`${this.endpoint}/v1/${e}:generateAccessToken`,o={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"},n=await this.sourceClient.request({...t.RETRY_CONFIG,url:r,data:o,method:"POST"}),i=n.data;return this.credentials.access_token=i.accessToken,this.credentials.expiry_date=Date.parse(i.expireTime),{tokens:this.credentials,res:n}}catch(e){if(!(e instanceof Error))throw e;let r=0,o="";throw e instanceof i2.GaxiosError&&(r=e?.response?.data?.error?.status,o=e?.response?.data?.error?.message),r&&o?(e.message=`${r}: unable to impersonate: ${o}`,e):(e.message=`unable to impersonate: ${e}`,e)}}async fetchIdToken(e,r){await this.sourceClient.getAccessToken();let o=`projects/-/serviceAccounts/${this.targetPrincipal}`,n=`${this.endpoint}/v1/${o}:generateIdToken`,i={delegates:this.delegates,audience:e,includeEmail:r?.includeEmail??!0,useEmailAzp:r?.includeEmail??!0};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:n,data:i,method:"POST"})).data.token}};Xa.Impersonated=lP});var fP=z(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.OAuthClientAuthHandler=void 0;Zu.getErrorFromOAuthErrorResponse=u2;var Ya=bt(),s2=Uu(),c2=["PUT","POST","PATCH"],pP=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,s2.createCrypto)();#t;transporter;constructor(e){e&&"clientId"in e?(this.#t=e,this.transporter=new Ya.Gaxios):(this.#t=e?.clientAuthentication,this.transporter=e?.transporter||new Ya.Gaxios)}applyClientAuthenticationOptions(e,r){e.headers=Ya.Gaxios.mergeHeaders(e.headers),this.injectAuthenticatedHeaders(e,r),r||this.injectAuthenticatedRequestBody(e)}injectAuthenticatedHeaders(e,r){if(r)e.headers=Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Bearer ${r}`});else if(this.#t?.confidentialClientType==="basic"){e.headers=Ya.Gaxios.mergeHeaders(e.headers);let o=this.#t.clientId,n=this.#t.clientSecret||"",i=this.#e.encodeBase64StringUtf8(`${o}:${n}`);Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Basic ${i}`})}}injectAuthenticatedRequestBody(e){if(this.#t?.confidentialClientType==="request-body"){let r=(e.method||"GET").toUpperCase();if(!c2.includes(r))throw new Error(`${r} HTTP method does not support ${this.#t.confidentialClientType} client authentication`);let n=new Headers(e.headers).get("content-type");if(n?.startsWith("application/x-www-form-urlencoded")||e.data instanceof URLSearchParams){let i=new URLSearchParams(e.data??"");i.append("client_id",this.#t.clientId),i.append("client_secret",this.#t.clientSecret||""),e.data=i}else if(n?.startsWith("application/json"))e.data=e.data||{},Object.assign(e.data,{client_id:this.#t.clientId,client_secret:this.#t.clientSecret||""});else throw new Error(`${n} content-types are not supported with ${this.#t.confidentialClientType} client authentication`)}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};Zu.OAuthClientAuthHandler=pP;function u2(t,e){let r=t.error,o=t.error_description,n=t.error_uri,i=`Error code ${r}`;typeof o<"u"&&(i+=`: ${o}`),typeof n<"u"&&(i+=` - ${n}`);let s=new Error(i);if(e){let u=Object.keys(e);e.stack&&u.push("stack"),u.forEach(l=>{l!=="message"&&Object.defineProperty(s,l,{value:e[l],writable:!1,enumerable:!0})})}return s}a(u2,"getErrorFromOAuthErrorResponse")});var Sm=z(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.StsCredentials=void 0;var l2=bt(),d2=br(),AN=fP(),p2=en(),mP=class t extends AN.OAuthClientAuthHandler{static{a(this,"StsCredentials")}#e;constructor(e={tokenExchangeEndpoint:""},r){(typeof e!="object"||e instanceof URL)&&(e={tokenExchangeEndpoint:e,clientAuthentication:r}),super(e),this.#e=e.tokenExchangeEndpoint}async exchangeToken(e,r,o){let n={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:e.scope?.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:e.actingParty?.actorToken,actor_token_type:e.actingParty?.actorTokenType,options:o&&JSON.stringify(o)},i={...t.RETRY_CONFIG,url:this.#e.toString(),method:"POST",headers:r,data:new URLSearchParams((0,p2.removeUndefinedValuesInObject)(n))};d2.AuthClient.setMethodName(i,"exchangeToken"),this.applyClientAuthenticationOptions(i);try{let s=await this.transporter.request(i),u=s.data;return u.res=s,u}catch(s){throw s instanceof l2.GaxiosError&&s.response?(0,AN.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};bm.StsCredentials=mP});var $o=z(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.BaseExternalAccountClient=Lr.CLOUD_RESOURCE_MANAGER=Lr.EXTERNAL_ACCOUNT_TYPE=Lr.EXPIRATION_TIME_OFFSET=void 0;var f2=bt(),m2=require("stream"),hP=br(),h2=Sm(),wN=en(),g2=RS(),y2="urn:ietf:params:oauth:grant-type:token-exchange",_2="urn:ietf:params:oauth:token-type:access_token",gP="https://www.googleapis.com/auth/cloud-platform",v2=3600;Lr.EXPIRATION_TIME_OFFSET=300*1e3;Lr.EXTERNAL_ACCOUNT_TYPE="external_account";Lr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var b2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",S2="https://sts.{universeDomain}/v1/token",yP=class t extends hP.AuthClient{static{a(this,"BaseExternalAccountClient")}scopes;projectNumber;audience;subjectTokenType;stsCredential;clientAuth;credentialSourceType;cachedAccessToken;serviceAccountImpersonationUrl;serviceAccountImpersonationLifetime;workforcePoolUserProject;configLifetimeRequested;tokenUrl;cloudResourceManagerURL;supplierContext;#e=null;constructor(e){super(e);let r=(0,wN.originalOrCamelOptions)(e),o=r.get("type");if(o&&o!==Lr.EXTERNAL_ACCOUNT_TYPE)throw new Error(`Expected "${Lr.EXTERNAL_ACCOUNT_TYPE}" type but received "${e.type}"`);let n=r.get("client_id"),i=r.get("client_secret");this.tokenUrl=r.get("token_url")??S2.replace("{universeDomain}",this.universeDomain);let s=r.get("subject_token_type"),u=r.get("workforce_pool_user_project"),l=r.get("service_account_impersonation_url"),p=r.get("service_account_impersonation"),f=(0,wN.originalOrCamelOptions)(p).get("token_lifetime_seconds");this.cloudResourceManagerURL=new URL(r.get("cloud_resource_manager_url")||`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`),n&&(this.clientAuth={confidentialClientType:"basic",clientId:n,clientSecret:i}),this.stsCredential=new h2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=r.get("scopes")||[gP],this.cachedAccessToken=null,this.audience=r.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(b2);if(this.workforcePoolUserProject&&!this.audience.match(y))throw new Error("workforcePoolUserProject should not be set for non-workforce pool credentials.");this.serviceAccountImpersonationUrl=l,this.serviceAccountImpersonationLifetime=f,this.serviceAccountImpersonationLifetime?this.configLifetimeRequested=!0:(this.configLifetimeRequested=!1,this.serviceAccountImpersonationLifetime=v2),this.projectNumber=this.getProjectNumber(this.audience),this.supplierContext={audience:this.audience,subjectTokenType:this.subjectTokenType,transporter:this.transporter}}getServiceAccountEmail(){if(this.serviceAccountImpersonationUrl){if(this.serviceAccountImpersonationUrl.length>256)throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);return/serviceAccounts\/(?<email>[^:]+):generateAccessToken$/.exec(this.serviceAccountImpersonationUrl)?.groups?.email||null}return null}setCredentials(e){super.setCredentials(e),this.cachedAccessToken=e}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async getProjectId(){let e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId)return this.projectId;if(e){let r=await this.getRequestHeaders(),o={...t.RETRY_CONFIG,headers:r,url:`${this.cloudResourceManagerURL.toString()}${e}`};hP.AuthClient.setMethodName(o,"getProjectId");let n=await this.transporter.request(o);return this.projectId=n.data.projectId,this.projectId}return null}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=f2.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof m2.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){this.#e=this.#e||this.#t();try{return await this.#e}finally{this.#e=null}}async#t(){let e=await this.retrieveSubjectToken(),r={grantType:y2,audience:this.audience,requestedTokenType:_2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[gP]:this.getScopesArray()},o=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:void 0,n=new Headers({"x-goog-api-client":this.getMetricsHeaderValue()}),i=await this.stsCredential.exchangeToken(r,n,o);return this.serviceAccountImpersonationUrl?this.cachedAccessToken=await this.getImpersonatedAccessToken(i.access_token):i.expires_in?this.cachedAccessToken={access_token:i.access_token,expiry_date:new Date().getTime()+i.expires_in*1e3,res:i.res}:this.cachedAccessToken={access_token:i.access_token,res:i.res},this.credentials={},Object.assign(this.credentials,this.cachedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedAccessToken}getProjectNumber(e){let r=e.match(/\/projects\/([^/]+)/);return r?r[1]:null}async getImpersonatedAccessToken(e){let r={...t.RETRY_CONFIG,url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${e}`},data:{scope:this.getScopesArray(),lifetime:this.serviceAccountImpersonationLifetime+"s"}};hP.AuthClient.setMethodName(r,"getImpersonatedAccessToken");let o=await this.transporter.request(r),n=o.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:o}}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}getScopesArray(){return typeof this.scopes=="string"?[this.scopes]:this.scopes||[gP]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),r=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${g2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${r} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Lr.BaseExternalAccountClient=yP});var IN=z(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.FileSubjectTokenSupplier=void 0;var vP=require("util"),bP=require("fs"),P2=(0,vP.promisify)(bP.readFile??(()=>{})),E2=(0,vP.promisify)(bP.realpath??(()=>{})),T2=(0,vP.promisify)(bP.lstat??(()=>{})),_P=class{static{a(this,"FileSubjectTokenSupplier")}filePath;formatType;subjectTokenFieldName;constructor(e){this.filePath=e.filePath,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName}async getSubjectToken(){let e=this.filePath;try{if(e=await E2(e),!(await T2(e)).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let r,o=await P2(e,{encoding:"utf8"});if(this.formatType==="text"?r=o:this.formatType==="json"&&this.subjectTokenFieldName&&(r=JSON.parse(o)[this.subjectTokenFieldName]),!r)throw new Error("Unable to parse the subject_token from the credential_source file");return r}};Pm.FileSubjectTokenSupplier=_P});var CN=z(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.UrlSubjectTokenSupplier=void 0;var x2=br(),SP=class{static{a(this,"UrlSubjectTokenSupplier")}url;headers;formatType;subjectTokenFieldName;additionalGaxiosOptions;constructor(e){this.url=e.url,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName,this.headers=e.headers,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getSubjectToken(e){let r={...this.additionalGaxiosOptions,url:this.url,method:"GET",headers:this.headers};x2.AuthClient.setMethodName(r,"getSubjectToken");let o;if(this.formatType==="text"?o=(await e.transporter.request(r)).data:this.formatType==="json"&&this.subjectTokenFieldName&&(o=(await e.transporter.request(r)).data[this.subjectTokenFieldName]),!o)throw new Error("Unable to parse the subject_token from the credential_source URL");return o}};Em.UrlSubjectTokenSupplier=SP});var RN=z(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CertificateSubjectTokenSupplier=Tr.InvalidConfigurationError=Tr.CertificateSourceUnavailableError=Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE=void 0;var Tm=en(),xm=require("fs"),Am=require("crypto"),A2=require("https");Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE="GOOGLE_API_CERTIFICATE_CONFIG";var vn=class extends Error{static{a(this,"CertificateSourceUnavailableError")}constructor(e){super(e),this.name="CertificateSourceUnavailableError"}};Tr.CertificateSourceUnavailableError=vn;var jr=class extends Error{static{a(this,"InvalidConfigurationError")}constructor(e){super(e),this.name="InvalidConfigurationError"}};Tr.InvalidConfigurationError=jr;var PP=class{static{a(this,"CertificateSubjectTokenSupplier")}certificateConfigPath;trustChainPath;cert;key;constructor(e){if(!e.useDefaultCertificateConfig&&!e.certificateConfigLocation)throw new jr("Either `useDefaultCertificateConfig` must be true or a `certificateConfigLocation` must be provided.");if(e.useDefaultCertificateConfig&&e.certificateConfigLocation)throw new jr("Both `useDefaultCertificateConfig` and `certificateConfigLocation` cannot be provided.");this.trustChainPath=e.trustChainPath,this.certificateConfigPath=e.certificateConfigLocation??""}async createMtlsHttpsAgent(){if(!this.key||!this.cert)throw new jr("Cannot create mTLS Agent with missing certificate or key");return new A2.Agent({key:this.key,cert:this.cert})}async getSubjectToken(){this.certificateConfigPath=await this.#e();let{certPath:e,keyPath:r}=await this.#t();return{cert:this.cert,key:this.key}=await this.#r(e,r),await this.#n(this.cert)}async#e(){let e=this.certificateConfigPath;if(e){if(await(0,Tm.isValidFile)(e))return e;throw new vn(`Provided certificate config path is invalid: ${e}`)}let r=process.env[Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE];if(r){if(await(0,Tm.isValidFile)(r))return r;throw new vn(`Path from environment variable "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" is invalid: ${r}`)}let o=(0,Tm.getWellKnownCertificateConfigFileLocation)();if(await(0,Tm.isValidFile)(o))return o;throw new vn(`Could not find certificate configuration file. Searched override path, the "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" env var, and the gcloud path (${o}).`)}async#t(){let e=this.certificateConfigPath,r;try{r=await xm.promises.readFile(e,"utf8")}catch{throw new vn(`Failed to read certificate config file at: ${e}`)}try{let o=JSON.parse(r),n=o?.cert_configs?.workload?.cert_path,i=o?.cert_configs?.workload?.key_path;if(!n||!i)throw new jr(`Certificate config file (${e}) is missing required "cert_path" or "key_path" in the workload config.`);return{certPath:n,keyPath:i}}catch(o){throw o instanceof jr?o:new jr(`Failed to parse certificate config from ${e}: ${o.message}`)}}async#r(e,r){let o,n;try{o=await xm.promises.readFile(e),new Am.X509Certificate(o)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read certificate file at ${e}: ${s}`)}try{n=await xm.promises.readFile(r),(0,Am.createPrivateKey)(n)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read private key file at ${r}: ${s}`)}return{cert:o,key:n}}async#n(e){let r=new Am.X509Certificate(e);if(!this.trustChainPath)return JSON.stringify([r.raw.toString("base64")]);try{let i=((await xm.promises.readFile(this.trustChainPath,"utf8")).match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g)??[]).map((l,p)=>{try{return new Am.X509Certificate(l)}catch(f){let y=f instanceof Error?f.message:String(f);throw new jr(`Failed to parse certificate at index ${p} in trust chain file ${this.trustChainPath}: ${y}`)}}),s=i.findIndex(l=>r.raw.equals(l.raw)),u;if(s===-1)u=[r,...i];else if(s===0)u=i;else throw new jr(`Leaf certificate exists in the trust chain but is not the first entry (found at index ${s}).`);return JSON.stringify(u.map(l=>l.raw.toString("base64")))}catch(o){if(o instanceof jr)throw o;let n=o instanceof Error?o.message:String(o);throw new vn(`Failed to process certificate chain from ${this.trustChainPath}: ${n}`)}}};Tr.CertificateSubjectTokenSupplier=PP});var xP=z(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.IdentityPoolClient=void 0;var w2=$o(),EP=en(),I2=IN(),C2=CN(),ON=RN(),R2=Sm(),kN=bt(),TP=class t extends w2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let r=(0,EP.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("subject_token_supplier");if(!o&&!n)throw new Error("A credential source or subject token supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or subject token supplier can be specified.");if(n)this.subjectTokenSupplier=n,this.credentialSourceType="programmatic";else{let i=(0,EP.originalOrCamelOptions)(o),s=(0,EP.originalOrCamelOptions)(i.get("format")),u=s.get("type")||"text",l=s.get("subject_token_field_name");if(u!=="json"&&u!=="text")throw new Error(`Invalid credential_source format "${u}"`);if(u==="json"&&!l)throw new Error("Missing subject_token_field_name for JSON credential_source format");let p=i.get("file"),f=i.get("url"),y=i.get("certificate"),m=i.get("headers");if(p&&f||f&&y||p&&y)throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');if(p)this.credentialSourceType="file",this.subjectTokenSupplier=new I2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new C2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new ON.CertificateSubjectTokenSupplier({useDefaultCertificateConfig:y.use_default_certificate_config,certificateConfigLocation:y.certificate_config_location,trustChainPath:y.trust_chain_path});this.subjectTokenSupplier=h}else throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.')}}async retrieveSubjectToken(){let e=await this.subjectTokenSupplier.getSubjectToken(this.supplierContext);if(this.subjectTokenSupplier instanceof ON.CertificateSubjectTokenSupplier){let r=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new R2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new kN.Gaxios({agent:r})}),this.transporter=new kN.Gaxios({...this.transporter.defaults||{},agent:r})}return e}};wm.IdentityPoolClient=TP});var wP=z(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.AwsRequestSigner=void 0;var Im=bt(),$N=Uu(),NN="AWS4-HMAC-SHA256",O2="aws4_request",AP=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,r){this.getCredentials=e,this.region=r,this.crypto=(0,$N.createCrypto)()}async getRequestOptions(e){if(!e.url)throw new RangeError('"url" is required in "amzOptions"');let r=typeof e.data=="object"?JSON.stringify(e.data):e.data,o=e.url,n=e.method||"GET",i=e.body||r,s=e.headers,u=await this.getCredentials(),l=new URL(o);if(typeof i!="string"&&i!==void 0)throw new TypeError(`'requestPayload' is expected to be a string if provided. Got: ${i}`);let p=await N2({crypto:this.crypto,host:l.host,canonicalUri:l.pathname,canonicalQuerystring:l.search.slice(1),method:n,region:this.region,securityCredentials:u,requestPayload:i,additionalAmzHeaders:s}),f=Im.Gaxios.mergeHeaders(p.amzDate?{"x-amz-date":p.amzDate}:{},{authorization:p.authorizationHeader,host:l.host},s||{});u.token&&Im.Gaxios.mergeHeaders(f,{"x-amz-security-token":u.token});let y={url:o,method:n,headers:f};return i!==void 0&&(y.body=i),y}};Cm.AwsRequestSigner=AP;async function Wu(t,e,r){return await t.signWithHmacSha256(e,r)}a(Wu,"sign");async function k2(t,e,r,o,n){let i=await Wu(t,`AWS4${e}`,r),s=await Wu(t,i,o),u=await Wu(t,s,n);return await Wu(t,u,"aws4_request")}a(k2,"getSigningKey");async function N2(t){let e=Im.Gaxios.mergeHeaders(t.additionalAmzHeaders),r=t.requestPayload||"",o=t.host.split(".")[0],n=new Date,i=n.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,""),s=n.toISOString().replace(/[-]/g,"").replace(/T.*/,"");t.securityCredentials.token&&e.set("x-amz-security-token",t.securityCredentials.token);let u=Im.Gaxios.mergeHeaders({host:t.host},e.has("date")?{}:{"x-amz-date":i},e),l="",p=[...u.keys()].sort();p.forEach(k=>{l+=`${k}:${u.get(k)}
|
|
40
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,Fu="secret must be a string or buffer",Ha="key must be a string or a buffer",IV="key must be a string, a buffer or an object",JP=typeof Mr.createPublicKey=="function";JP&&(Ha+=" or a KeyObject",Fu+="or a KeyObject");function W0(t){if(!Za.isBuffer(t)&&typeof t!="string"&&(!JP||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw rn(Ha)}a(W0,"checkIsPublicKey");function K0(t){if(!Za.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw rn(IV)}a(K0,"checkIsPrivateKey");function CV(t){if(!Za.isBuffer(t)){if(typeof t=="string")return t;if(!JP||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw rn(Fu)}}a(CV,"checkIsSecretKey");function XP(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(XP,"fromBase64");function J0(t){t=t.toString();var e=4-t.length%4;if(e!==4)for(var r=0;r<e;++r)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}a(J0,"toBase64");function rn(t){var e=[].slice.call(arguments,1),r=H0.format.bind(H0,t).apply(null,e);return new TypeError(r)}a(rn,"typeError");function RV(t){return Za.isBuffer(t)||typeof t=="string"}a(RV,"bufferOrString");function Bu(t){return RV(t)||(t=JSON.stringify(t)),t}a(Bu,"normalizeInput");function X0(t){return a(function(r,o){CV(o),r=Bu(r);var n=Mr.createHmac("sha"+t,o),i=(n.update(r),n.digest("base64"));return XP(i)},"sign")}a(X0,"createHmacSigner");var KP,OV="timingSafeEqual"in Mr?a(function(e,r){return e.byteLength!==r.byteLength?!1:Mr.timingSafeEqual(e,r)},"timingSafeEqual"):a(function(e,r){return KP||(KP=V0()),KP(e,r)},"timingSafeEqual");function kV(t){return a(function(r,o,n){var i=X0(t)(r,n);return OV(Za.from(o),Za.from(i))},"verify")}a(kV,"createHmacVerifier");function Y0(t){return a(function(r,o){K0(o),r=Bu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign(o,"base64"));return XP(i)},"sign")}a(Y0,"createKeySigner");function Q0(t){return a(function(r,o,n){W0(n),r=Bu(r),o=J0(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify(n,o,"base64")},"verify")}a(Q0,"createKeyVerifier");function NV(t){return a(function(r,o){K0(o),r=Bu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign({key:o,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return XP(i)},"sign")}a(NV,"createPSSKeySigner");function $V(t){return a(function(r,o,n){W0(n),r=Bu(r),o=J0(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify({key:n,padding:Mr.constants.RSA_PKCS1_PSS_PADDING,saltLength:Mr.constants.RSA_PSS_SALTLEN_DIGEST},o,"base64")},"verify")}a($V,"createPSSKeyVerifier");function DV(t){var e=Y0(t);return a(function(){var o=e.apply(null,arguments);return o=Z0.derToJose(o,"ES"+t),o},"sign")}a(DV,"createECDSASigner");function zV(t){var e=Q0(t);return a(function(o,n,i){n=Z0.joseToDer(n,"ES"+t).toString("base64");var s=e(o,n,i);return s},"verify")}a(zV,"createECDSAVerifer");function UV(){return a(function(){return""},"sign")}a(UV,"createNoneSigner");function MV(){return a(function(e,r){return r===""},"verify")}a(MV,"createNoneVerifier");eN.exports=a(function(e){var r={hs:X0,rs:Y0,ps:NV,es:DV,none:UV},o={hs:kV,rs:Q0,ps:$V,es:zV,none:MV},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!n)throw rn(wV,e);var i=(n[1]||n[3]).toLowerCase(),s=n[2];return{sign:r[i](s),verify:o[i](s)}},"jwa")});var QP=D((hce,tN)=>{var LV=require("buffer").Buffer;tN.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||LV.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var sN=D((yce,aN)=>{var jV=qa().Buffer,rN=ZP(),FV=YP(),BV=require("stream"),nN=QP(),eS=require("util");function oN(t,e){return jV.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(oN,"base64url");function qV(t,e,r){r=r||"utf8";var o=oN(nN(t),"binary"),n=oN(nN(e),r);return eS.format("%s.%s",o,n)}a(qV,"jwsSecuredInput");function iN(t){var e=t.header,r=t.payload,o=t.secret||t.privateKey,n=t.encoding,i=FV(e.alg),s=qV(e,r,n),u=i.sign(s,o);return eS.format("%s.%s",s,u)}a(iN,"jwsSign");function mm(t){var e=t.secret;if(e=e??t.privateKey,e=e??t.key,/^hs/i.test(t.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new rN(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new rN(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}a(mm,"SignStream");eS.inherits(mm,BV);mm.prototype.sign=a(function(){try{var e=iN({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}},"sign");mm.sign=iN;aN.exports=mm});var yN=D((vce,gN)=>{var uN=qa().Buffer,cN=ZP(),GV=YP(),VV=require("stream"),lN=QP(),HV=require("util"),ZV=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function WV(t){return Object.prototype.toString.call(t)==="[object Object]"}a(WV,"isObject");function KV(t){if(WV(t))return t;try{return JSON.parse(t)}catch{return}}a(KV,"safeJsonParse");function dN(t){var e=t.split(".",1)[0];return KV(uN.from(e,"base64").toString("binary"))}a(dN,"headerFromJWS");function JV(t){return t.split(".",2).join(".")}a(JV,"securedInputFromJWS");function pN(t){return t.split(".")[2]}a(pN,"signatureFromJWS");function XV(t,e){e=e||"utf8";var r=t.split(".")[1];return uN.from(r,"base64").toString(e)}a(XV,"payloadFromJWS");function fN(t){return ZV.test(t)&&!!dN(t)}a(fN,"isValidJws");function mN(t,e,r){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=lN(t);var n=pN(t),i=JV(t),s=GV(e);return s.verify(i,n,r)}a(mN,"jwsVerify");function hN(t,e){if(e=e||{},t=lN(t),!fN(t))return null;var r=dN(t);if(!r)return null;var o=XV(t);return(r.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:r,payload:o,signature:pN(t)}}a(hN,"jwsDecode");function Wa(t){t=t||{};var e=t.secret;if(e=e??t.publicKey,e=e??t.key,/^hs/i.test(t.algorithm)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var r=new cN(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new cN(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}a(Wa,"VerifyStream");HV.inherits(Wa,VV);Wa.prototype.verify=a(function(){try{var e=mN(this.signature.buffer,this.algorithm,this.key.buffer),r=hN(this.signature.buffer,this.encoding);return this.emit("done",e,r),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(o){this.readable=!1,this.emit("error",o),this.emit("close")}},"verify");Wa.decode=hN;Wa.isValid=fN;Wa.verify=mN;gN.exports=Wa});var tS=D(No=>{var _N=sN(),hm=yN(),YV=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];No.ALGORITHMS=YV;No.sign=_N.sign;No.verify=hm.verify;No.decode=hm.decode;No.isValid=hm.isValid;No.createSign=a(function(e){return new _N(e)},"createSign");No.createVerify=a(function(e){return new hm(e)},"createVerify")});var NN=D(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.GoogleToken=void 0;var vN=gm(require("fs")),QV=bt(),e2=gm(tS()),t2=gm(require("path")),r2=require("util");function gm(t,e){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(gm=a(function(i,s){if(!s&&i&&i.__esModule)return i;var u,l,p={__proto__:null,default:i};if(i===null||Zn(i)!="object"&&typeof i!="function")return p;if(u=s?o:r){if(u.has(i))return u.get(i);u.set(i,p)}for(var f in i)f!=="default"&&{}.hasOwnProperty.call(i,f)&&((l=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,f))&&(l.get||l.set)?u(p,f,l):p[f]=i[f]);return p},"_interopRequireWildcard"))(t,e)}a(gm,"_interopRequireWildcard");function Zn(t){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(t)}a(Zn,"_typeof");function n2(t,e){IN(t,e),e.add(t)}a(n2,"_classPrivateMethodInitSpec");function o2(t,e,r){IN(t,e),e.set(t,r)}a(o2,"_classPrivateFieldInitSpec");function IN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(IN,"_checkPrivateRedeclaration");function bN(t,e,r){return t.set(nn(t,e),r),r}a(bN,"_classPrivateFieldSet");function PN(t,e){return t.get(nn(t,e))}a(PN,"_classPrivateFieldGet");function nn(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}a(nn,"_assertClassBrand");function SN(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,ON(o.key),o)}}a(SN,"_defineProperties");function CN(t,e,r){return e&&SN(t.prototype,e),r&&SN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}a(CN,"_createClass");function RN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(RN,"_classCallCheck");function i2(t,e,r){return e=Hu(e),a2(t,sS()?Reflect.construct(e,r||[],Hu(t).constructor):e.apply(t,r))}a(i2,"_callSuper");function a2(t,e){if(e&&(Zn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s2(t)}a(a2,"_possibleConstructorReturn");function s2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(s2,"_assertThisInitialized");function c2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vu(t,e)}a(c2,"_inherits");function rS(t){var e=typeof Map=="function"?new Map:void 0;return rS=a(function(o){if(o===null||!l2(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(o))return e.get(o);e.set(o,n)}function n(){return u2(o,arguments,Hu(this).constructor)}return a(n,"Wrapper"),n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vu(n,o)},"_wrapNativeSuper"),rS(t)}a(rS,"_wrapNativeSuper");function u2(t,e,r){if(sS())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&Vu(n,r.prototype),n}a(u2,"_construct");function sS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sS=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(sS,"_isNativeReflectConstruct");function l2(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(l2,"_isNativeFunction");function Vu(t,e){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vu(t,e)}a(Vu,"_setPrototypeOf");function Hu(t){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(t)}a(Hu,"_getPrototypeOf");function Pr(t,e,r){return(e=ON(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a(Pr,"_defineProperty");function ON(t){var e=d2(t,"string");return Zn(e)=="symbol"?e:e+""}a(ON,"_toPropertyKey");function d2(t,e){if(Zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}a(d2,"_toPrimitive");function Er(){var t,e,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(h,_,S,E){var T=_&&_.prototype instanceof u?_:u,k=Object.create(T.prototype);return Sr(k,"_invoke",(function(F,Y,H){var W,re,ce,ee=0,Le=H||[],le=!1,K={p:0,n:0,v:t,a:Z,f:Z.bind(t,4),d:a(function(Q,de){return W=Q,re=0,ce=t,K.n=de,s},"d")};function Z(oe,Q){for(re=oe,ce=Q,e=0;!le&&ee&&!de&&e<Le.length;e++){var de,me=Le[e],De=K.p,je=me[2];oe>3?(de=je===Q)&&(ce=me[(re=me[4])?5:(re=3,3)],me[4]=me[5]=t):me[0]<=De&&((de=oe<2&&De<me[1])?(re=0,K.v=Q,K.n=me[1]):De<je&&(de=oe<3||me[0]>Q||Q>je)&&(me[4]=oe,me[5]=Q,K.n=je,re=0))}if(de||oe>1)return s;throw le=!0,Q}return a(Z,"d"),function(oe,Q,de){if(ee>1)throw TypeError("Generator is already running");for(le&&Q===1&&Z(Q,de),re=Q,ce=de;(e=re<2?t:ce)||!le;){W||(re?re<3?(re>1&&(K.n=-1),Z(re,ce)):K.n=ce:K.v=ce);try{if(ee=2,W){if(re||(oe="next"),e=W[oe]){if(!(e=e.call(W,ce)))throw TypeError("iterator result is not an object");if(!e.done)return e;ce=e.value,re<2&&(re=0)}else re===1&&(e=W.return)&&e.call(W),re<2&&(ce=TypeError("The iterator does not provide a '"+oe+"' method"),re=1);W=t}else if((e=(le=K.n<0)?ce:F.call(Y,K))!==s)break}catch(me){W=t,re=1,ce=me}finally{ee=1}}return{value:e,done:le}}})(h,S,E),!0),k}a(i,"i");var s={};function u(){}a(u,"Generator");function l(){}a(l,"GeneratorFunction");function p(){}a(p,"GeneratorFunctionPrototype"),e=Object.getPrototypeOf;var f=[][o]?e(e([][o]())):(Sr(e={},o,function(){return this}),e),y=p.prototype=u.prototype=Object.create(f);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,p):(h.__proto__=p,Sr(h,n,"GeneratorFunction")),h.prototype=Object.create(y),h}return a(m,"f"),l.prototype=p,Sr(y,"constructor",p),Sr(p,"constructor",l),l.displayName="GeneratorFunction",Sr(p,n,"GeneratorFunction"),Sr(y),Sr(y,n,"Generator"),Sr(y,o,function(){return this}),Sr(y,"toString",function(){return"[object Generator]"}),(Er=a(function(){return{w:i,m}},"_regenerator"))()}a(Er,"_regenerator");function Sr(t,e,r,o){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}Sr=a(function(s,u,l,p){if(u)n?n(s,u,{value:l,enumerable:!p,configurable:!p,writable:!p}):s[u]=l;else{var f=a(function(m,h){Sr(s,m,function(_){return this._invoke(m,h,_)})},"o");f("next",0),f("throw",1),f("return",2)}},"_regeneratorDefine"),Sr(t,e,r,o)}a(Sr,"_regeneratorDefine2");function EN(t,e,r,o,n,i,s){try{var u=t[i](s),l=u.value}catch(p){return void r(p)}u.done?e(l):Promise.resolve(l).then(o,n)}a(EN,"asyncGeneratorStep");function Ka(t){return function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function s(l){EN(i,o,n,s,u,"next",l)}a(s,"_next");function u(l){EN(i,o,n,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(Ka,"_asyncToGenerator");var TN=vN.readFile?(0,r2.promisify)(vN.readFile):Ka(Er().m(a(function t(){return Er().w(function(e){for(;;)switch(e.n){case 0:throw new Gu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),xN="https://oauth2.googleapis.com/token",p2="https://oauth2.googleapis.com/revoke?token=",Gu=(function(t){function e(r,o){var n;return RN(this,e),n=i2(this,e,[r]),Pr(n,"code",void 0),n.code=o,n}return a(e,"ErrorWithCode"),c2(e,t),CN(e)})(rS(Error)),qu=new WeakMap,_n=new WeakSet,Ece=ym.GoogleToken=(function(){function t(e){RN(this,t),n2(this,_n),Pr(this,"expiresAt",void 0),Pr(this,"key",void 0),Pr(this,"keyFile",void 0),Pr(this,"iss",void 0),Pr(this,"sub",void 0),Pr(this,"scope",void 0),Pr(this,"rawToken",void 0),Pr(this,"tokenExpires",void 0),Pr(this,"email",void 0),Pr(this,"additionalClaims",void 0),Pr(this,"eagerRefreshThresholdMillis",void 0),Pr(this,"transporter",{request:a(function(o){return(0,QV.request)(o)},"request")}),o2(this,qu,void 0),nn(_n,this,kN).call(this,e)}return a(t,"GoogleToken"),CN(t,[{key:"accessToken",get:a(function(){return this.rawToken?this.rawToken.access_token:void 0},"get")},{key:"idToken",get:a(function(){return this.rawToken?this.rawToken.id_token:void 0},"get")},{key:"tokenType",get:a(function(){return this.rawToken?this.rawToken.token_type:void 0},"get")},{key:"refreshToken",get:a(function(){return this.rawToken?this.rawToken.refresh_token:void 0},"get")},{key:"hasExpired",value:a(function(){var r=new Date().getTime();return this.rawToken&&this.expiresAt?r>=this.expiresAt:!0},"hasExpired")},{key:"isTokenExpiring",value:a(function(){var r,o=new Date().getTime(),n=(r=this.eagerRefreshThresholdMillis)!==null&&r!==void 0?r:0;return this.rawToken&&this.expiresAt?this.expiresAt<=o+n:!0},"isTokenExpiring")},{key:"getToken",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Zn(r)==="object"&&(o=r,r=void 0),o=Object.assign({forceRefresh:!1},o),r){var n=r;nn(_n,this,AN).call(this,o).then(function(i){return n(null,i)},r);return}return nn(_n,this,AN).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=Ka(Er().m(a(function o(n){var i,s,u,l,p,f,y;return Er().w(function(m){for(;;)switch(m.n){case 0:i=t2.extname(n),y=i,m.n=y===".json"?1:y===".der"||y===".crt"||y===".pem"?4:y===".p12"||y===".pfx"?6:7;break;case 1:return m.n=2,TN(n,"utf8");case 2:if(s=m.v,u=JSON.parse(s),l=u.private_key,p=u.client_email,!(!l||!p)){m.n=3;break}throw new Gu("private_key and client_email are required.","MISSING_CREDENTIALS");case 3:return m.a(2,{privateKey:l,clientEmail:p});case 4:return m.n=5,TN(n,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new Gu("*.p12 certificates are not supported after v6.1.2. Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.","UNKNOWN_CERTIFICATE_TYPE");case 7:throw new Gu("Unknown certificate type. Type is determined based on file extension. Current supported extensions are *.json, and *.pem.","UNKNOWN_CERTIFICATE_TYPE");case 8:return m.a(2)}},o)},"_callee2")));function r(o){return e.apply(this,arguments)}return a(r,"getCredentials"),r})()},{key:"revokeToken",value:a(function(r){if(r){nn(_n,this,wN).call(this).then(function(){return r()},r);return}return nn(_n,this,wN).call(this)},"revokeToken")}])})();function AN(t){return nS.apply(this,arguments)}a(AN,"_getTokenAsync");function nS(){return nS=Ka(Er().m(a(function t(e){return Er().w(function(r){for(;;)switch(r.n){case 0:if(!(PN(qu,this)&&!e.forceRefresh)){r.n=1;break}return r.a(2,PN(qu,this));case 1:return r.p=1,r.n=2,bN(qu,this,nn(_n,this,f2).call(this,e));case 2:return r.a(2,r.v);case 3:return r.p=3,bN(qu,this,void 0),r.f(3);case 4:return r.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),nS.apply(this,arguments)}a(nS,"_getTokenAsync2");function f2(t){return oS.apply(this,arguments)}a(f2,"_getTokenAsyncInner");function oS(){return oS=Ka(Er().m(a(function t(e){var r;return Er().w(function(o){for(;;)switch(o.n){case 0:if(!(this.isTokenExpiring()===!1&&e.forceRefresh===!1)){o.n=1;break}return o.a(2,Promise.resolve(this.rawToken));case 1:if(!(!this.key&&!this.keyFile)){o.n=2;break}throw new Error("No key or keyFile set.");case 2:if(!(!this.key&&this.keyFile)){o.n=4;break}return o.n=3,this.getCredentials(this.keyFile);case 3:r=o.v,this.key=r.privateKey,this.iss=r.clientEmail||this.iss,r.clientEmail||nn(_n,this,m2).call(this);case 4:return o.a(2,nn(_n,this,h2).call(this))}},t,this)},"_callee4"))),oS.apply(this,arguments)}a(oS,"_getTokenAsyncInner2");function m2(){if(!this.iss)throw new Gu("email is required.","MISSING_CREDENTIALS")}a(m2,"_ensureEmail");function wN(){return iS.apply(this,arguments)}a(wN,"_revokeTokenAsync");function iS(){return iS=Ka(Er().m(a(function t(){var e;return Er().w(function(r){for(;;)switch(r.n){case 0:if(this.accessToken){r.n=1;break}throw new Error("No token to revoke.");case 1:return e=p2+this.accessToken,r.n=2,this.transporter.request({url:e,retry:!0});case 2:nn(_n,this,kN).call(this,{email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims});case 3:return r.a(2)}},t,this)},"_callee5"))),iS.apply(this,arguments)}a(iS,"_revokeTokenAsync2");function kN(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.keyFile=t.keyFile,this.key=t.key,this.rawToken=void 0,this.iss=t.email||t.iss,this.sub=t.sub,this.additionalClaims=t.additionalClaims,Zn(t.scope)==="object"?this.scope=t.scope.join(" "):this.scope=t.scope,this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,t.transporter&&(this.transporter=t.transporter)}a(kN,"_configure");function h2(){return aS.apply(this,arguments)}a(h2,"_requestToken");function aS(){return aS=Ka(Er().m(a(function t(){var e,r,o,n,i,s,u,l,p,f;return Er().w(function(y){for(;;)switch(y.n){case 0:return e=Math.floor(new Date().getTime()/1e3),r=this.additionalClaims||{},o=Object.assign({iss:this.iss,scope:this.scope,aud:xN,exp:e+3600,iat:e,sub:this.sub},r),n=e2.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:xN,data:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n}),responseType:"json",retryConfig:{httpMethodsToRetry:["POST"]}});case 2:return i=y.v,this.rawToken=i.data,this.expiresAt=i.data.expires_in===null||i.data.expires_in===void 0?void 0:(e+i.data.expires_in)*1e3,y.a(2,this.rawToken);case 3:throw y.p=3,f=y.v,this.rawToken=void 0,this.tokenExpires=void 0,l=f.response&&(s=f.response)!==null&&s!==void 0&&s.data?(u=f.response)===null||u===void 0?void 0:u.data:{},l.error&&(p=l.error_description?": ".concat(l.error_description):"",f.message="".concat(l.error).concat(p)),f;case 4:return y.a(2)}},t,this,[[1,3]])},"_callee6"))),aS.apply(this,arguments)}a(aS,"_requestToken2")});var uS=D(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.JWTAccess=void 0;var g2=tS(),y2=en(),$N={alg:"RS256",typ:"JWT"},cS=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new y2.LRUCache({capacity:500,maxAge:3600*1e3});constructor(e,r,o,n){this.email=e,this.key=r,this.keyId=o,this.eagerRefreshThresholdMillis=n??300*1e3}getCachedKey(e,r){let o=e;if(r&&Array.isArray(r)&&r.length?o=e?`${e}_${r.join("_")}`:`${r.join("_")}`:typeof r=="string"&&(o=e?`${e}_${r}`:r),!o)throw Error("Scopes or url must be provided");return o}getRequestHeaders(e,r,o){let n=this.getCachedKey(e,o),i=this.cache.get(n),s=Date.now();if(i&&i.expiration-s>this.eagerRefreshThresholdMillis)return new Headers(i.headers);let u=Math.floor(Date.now()/1e3),l=t.getExpirationTime(u),p;if(Array.isArray(o)&&(o=o.join(" ")),o?p={iss:this.email,sub:this.email,scope:o,exp:l,iat:u}:p={iss:this.email,sub:this.email,aud:e,exp:l,iat:u},r){for(let _ in p)if(r[_])throw new Error(`The '${_}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}let f=this.keyId?{...$N,kid:this.keyId}:$N,y=Object.assign(p,r),m=g2.sign({header:f,payload:y,secret:this.key}),h=new Headers({authorization:`Bearer ${m}`});return this.cache.set(n,{expiration:l*1e3,headers:h}),h}static getExpirationTime(e){return e+3600}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{e||o(new Error("Must pass in a stream containing the service account auth settings."));let n="";e.setEncoding("utf8").on("data",i=>n+=i).on("error",o).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}};_m.JWTAccess=cS});var dS=D(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.JWT=void 0;var DN=NN(),_2=uS(),v2=xi(),vm=br(),lS=class t extends v2.OAuth2Client{static{a(this,"JWT")}email;keyFile;key;keyId;defaultScopes;scopes;scope;subject;gtoken;additionalClaims;useJWTAccessWithScope;defaultServicePath;access;constructor(e={}){super(e),this.email=e.email,this.keyFile=e.keyFile,this.key=e.key,this.keyId=e.keyId,this.scopes=e.scopes,this.subject=e.subject,this.additionalClaims=e.additionalClaims,this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){let r=new t(this);return r.scopes=e,r}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;let r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes()||this.universeDomain!==vm.DEFAULT_UNIVERSE;if(this.subject&&this.universeDomain!==vm.DEFAULT_UNIVERSE)throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${vm.DEFAULT_UNIVERSE}`);if(!this.apiKey&&r)if(this.additionalClaims&&this.additionalClaims.target_audience){let{tokens:o}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders(new Headers({authorization:`Bearer ${o.id_token}`}))}}else{this.access||(this.access=new _2.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis));let o;this.hasUserScopes()?o=this.scopes:e||(o=this.defaultScopes);let n=this.useJWTAccessWithScope||this.universeDomain!==vm.DEFAULT_UNIVERSE,i=await this.access.getRequestHeaders(e??void 0,this.additionalClaims,n?o:void 0);return{headers:this.addSharedMetadataHeaders(i)}}else return this.hasAnyScopes()||this.apiKey?super.getRequestMetadataAsync(e):{headers:new Headers}}async fetchIdToken(e){let r=new DN.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e},transporter:this.transporter});if(await r.getToken({forceRefresh:!0}),!r.idToken)throw new Error("Unknown error: Failed to fetch ID token");return r.idToken}hasUserScopes(){return this.scopes?this.scopes.length>0:!1}hasAnyScopes(){return!!(this.scopes&&this.scopes.length>0||this.defaultScopes&&this.defaultScopes.length>0)}authorize(e){if(e)this.authorizeAsync().then(r=>e(null,r),e);else return this.authorizeAsync()}async authorizeAsync(){let e=await this.refreshToken();if(!e)throw new Error("No result returned");return this.credentials=e.tokens,this.credentials.refresh_token="jwt-placeholder",this.key=this.gtoken.key,this.email=this.gtoken.iss,e.tokens}async refreshTokenNoCache(){let e=this.createGToken(),o={access_token:(await e.getToken({forceRefresh:this.isTokenExpiring()})).access_token,token_type:"Bearer",expiry_date:e.expiresAt,id_token:e.idToken};return this.emit("tokens",o),{res:null,tokens:o}}createGToken(){return this.gtoken||(this.gtoken=new DN.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims,transporter:this.transporter})),this.gtoken}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the service account auth settings.");if(!e.client_email)throw new Error("The incoming JSON object does not contain a client_email field");if(!e.private_key)throw new Error("The incoming JSON object does not contain a private_key field");this.email=e.client_email,this.key=e.private_key,this.keyId=e.private_key_id,this.projectId=e.project_id,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((r,o)=>{if(!e)throw new Error("Must pass in a stream containing the service account auth settings.");let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);this.fromJSON(i),r()}catch(i){o(i)}})})}fromAPIKey(e){if(typeof e!="string")throw new Error("Must provide an API Key string.");this.apiKey=e}async getCredentials(){if(this.key)return{private_key:this.key,client_email:this.email};if(this.keyFile){let r=await this.createGToken().getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}};bm.JWT=lS});var fS=D(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UserRefreshClient=Ja.USER_REFRESH_ACCOUNT_TYPE=void 0;var b2=xi(),P2=br();Ja.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var pS=class t extends b2.OAuth2Client{static{a(this,"UserRefreshClient")}_refreshToken;constructor(e,r,o,n,i){let s=e&&typeof e=="object"?e:{clientId:e,clientSecret:r,refreshToken:o,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:i};super(s),this._refreshToken=s.refreshToken,this.credentials.refresh_token=s.refreshToken}async refreshTokenNoCache(){return super.refreshTokenNoCache(this._refreshToken)}async fetchIdToken(e){let r={...t.RETRY_CONFIG,url:this.endpoints.oauth2TokenUrl,method:"POST",data:new URLSearchParams({client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token",refresh_token:this._refreshToken,target_audience:e})};return P2.AuthClient.setMethodName(r,"fetchIdToken"),(await this.transporter.request(r)).data.id_token}fromJSON(e){if(!e)throw new Error("Must pass in a JSON object containing the user refresh token");if(e.type!=="authorized_user")throw new Error('The incoming JSON object does not have the "authorized_user" type');if(!e.client_id)throw new Error("The incoming JSON object does not contain a client_id field");if(!e.client_secret)throw new Error("The incoming JSON object does not contain a client_secret field");if(!e.refresh_token)throw new Error("The incoming JSON object does not contain a refresh_token field");this._clientId=e.client_id,this._clientSecret=e.client_secret,this._refreshToken=e.refresh_token,this.credentials.refresh_token=e.refresh_token,this.quotaProjectId=e.quota_project_id,this.universeDomain=e.universe_domain||this.universeDomain}fromStream(e,r){if(r)this.fromStreamAsync(e).then(()=>r(),r);else return this.fromStreamAsync(e)}async fromStreamAsync(e){return new Promise((r,o)=>{if(!e)return o(new Error("Must pass in a stream containing the user refresh token."));let n="";e.setEncoding("utf8").on("error",o).on("data",i=>n+=i).on("end",()=>{try{let i=JSON.parse(n);return this.fromJSON(i),r()}catch(i){return o(i)}})})}static fromJSON(e){let r=new t;return r.fromJSON(e),r}};Ja.UserRefreshClient=pS});var hS=D(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Impersonated=Xa.IMPERSONATED_ACCOUNT_TYPE=void 0;var zN=xi(),S2=bt(),E2=en();Xa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var mS=class t extends zN.OAuth2Client{static{a(this,"Impersonated")}sourceClient;targetPrincipal;targetScopes;delegates;lifetime;endpoint;constructor(e={}){if(super(e),this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"},this.sourceClient=e.sourceClient??new zN.OAuth2Client,this.targetPrincipal=e.targetPrincipal??"",this.delegates=e.delegates??[],this.targetScopes=e.targetScopes??[],this.lifetime=e.lifetime??3600,!!!(0,E2.originalOrCamelOptions)(e).get("universe_domain"))this.universeDomain=this.sourceClient.universeDomain;else if(this.sourceClient.universeDomain!==this.universeDomain)throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`);this.endpoint=e.endpoint??`https://iamcredentials.${this.universeDomain}`}async sign(e){await this.sourceClient.getAccessToken();let r=`projects/-/serviceAccounts/${this.targetPrincipal}`,o=`${this.endpoint}/v1/${r}:signBlob`,n={delegates:this.delegates,payload:Buffer.from(e).toString("base64")};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:o,data:n,method:"POST"})).data}getTargetPrincipal(){return this.targetPrincipal}async refreshToken(){try{await this.sourceClient.getAccessToken();let e="projects/-/serviceAccounts/"+this.targetPrincipal,r=`${this.endpoint}/v1/${e}:generateAccessToken`,o={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"},n=await this.sourceClient.request({...t.RETRY_CONFIG,url:r,data:o,method:"POST"}),i=n.data;return this.credentials.access_token=i.accessToken,this.credentials.expiry_date=Date.parse(i.expireTime),{tokens:this.credentials,res:n}}catch(e){if(!(e instanceof Error))throw e;let r=0,o="";throw e instanceof S2.GaxiosError&&(r=e?.response?.data?.error?.status,o=e?.response?.data?.error?.message),r&&o?(e.message=`${r}: unable to impersonate: ${o}`,e):(e.message=`unable to impersonate: ${e}`,e)}}async fetchIdToken(e,r){await this.sourceClient.getAccessToken();let o=`projects/-/serviceAccounts/${this.targetPrincipal}`,n=`${this.endpoint}/v1/${o}:generateIdToken`,i={delegates:this.delegates,audience:e,includeEmail:r?.includeEmail??!0,useEmailAzp:r?.includeEmail??!0};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:n,data:i,method:"POST"})).data.token}};Xa.Impersonated=mS});var yS=D(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.OAuthClientAuthHandler=void 0;Zu.getErrorFromOAuthErrorResponse=A2;var Ya=bt(),T2=Uu(),x2=["PUT","POST","PATCH"],gS=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,T2.createCrypto)();#t;transporter;constructor(e){e&&"clientId"in e?(this.#t=e,this.transporter=new Ya.Gaxios):(this.#t=e?.clientAuthentication,this.transporter=e?.transporter||new Ya.Gaxios)}applyClientAuthenticationOptions(e,r){e.headers=Ya.Gaxios.mergeHeaders(e.headers),this.injectAuthenticatedHeaders(e,r),r||this.injectAuthenticatedRequestBody(e)}injectAuthenticatedHeaders(e,r){if(r)e.headers=Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Bearer ${r}`});else if(this.#t?.confidentialClientType==="basic"){e.headers=Ya.Gaxios.mergeHeaders(e.headers);let o=this.#t.clientId,n=this.#t.clientSecret||"",i=this.#e.encodeBase64StringUtf8(`${o}:${n}`);Ya.Gaxios.mergeHeaders(e.headers,{authorization:`Basic ${i}`})}}injectAuthenticatedRequestBody(e){if(this.#t?.confidentialClientType==="request-body"){let r=(e.method||"GET").toUpperCase();if(!x2.includes(r))throw new Error(`${r} HTTP method does not support ${this.#t.confidentialClientType} client authentication`);let n=new Headers(e.headers).get("content-type");if(n?.startsWith("application/x-www-form-urlencoded")||e.data instanceof URLSearchParams){let i=new URLSearchParams(e.data??"");i.append("client_id",this.#t.clientId),i.append("client_secret",this.#t.clientSecret||""),e.data=i}else if(n?.startsWith("application/json"))e.data=e.data||{},Object.assign(e.data,{client_id:this.#t.clientId,client_secret:this.#t.clientSecret||""});else throw new Error(`${n} content-types are not supported with ${this.#t.confidentialClientType} client authentication`)}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};Zu.OAuthClientAuthHandler=gS;function A2(t,e){let r=t.error,o=t.error_description,n=t.error_uri,i=`Error code ${r}`;typeof o<"u"&&(i+=`: ${o}`),typeof n<"u"&&(i+=` - ${n}`);let s=new Error(i);if(e){let u=Object.keys(e);e.stack&&u.push("stack"),u.forEach(l=>{l!=="message"&&Object.defineProperty(s,l,{value:e[l],writable:!1,enumerable:!0})})}return s}a(A2,"getErrorFromOAuthErrorResponse")});var Sm=D(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.StsCredentials=void 0;var w2=bt(),I2=br(),UN=yS(),C2=en(),_S=class t extends UN.OAuthClientAuthHandler{static{a(this,"StsCredentials")}#e;constructor(e={tokenExchangeEndpoint:""},r){(typeof e!="object"||e instanceof URL)&&(e={tokenExchangeEndpoint:e,clientAuthentication:r}),super(e),this.#e=e.tokenExchangeEndpoint}async exchangeToken(e,r,o){let n={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:e.scope?.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:e.actingParty?.actorToken,actor_token_type:e.actingParty?.actorTokenType,options:o&&JSON.stringify(o)},i={...t.RETRY_CONFIG,url:this.#e.toString(),method:"POST",headers:r,data:new URLSearchParams((0,C2.removeUndefinedValuesInObject)(n))};I2.AuthClient.setMethodName(i,"exchangeToken"),this.applyClientAuthenticationOptions(i);try{let s=await this.transporter.request(i),u=s.data;return u.res=s,u}catch(s){throw s instanceof w2.GaxiosError&&s.response?(0,UN.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};Pm.StsCredentials=_S});var $o=D(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.BaseExternalAccountClient=Lr.CLOUD_RESOURCE_MANAGER=Lr.EXTERNAL_ACCOUNT_TYPE=Lr.EXPIRATION_TIME_OFFSET=void 0;var R2=bt(),O2=require("stream"),vS=br(),k2=Sm(),MN=en(),N2=$P(),$2="urn:ietf:params:oauth:grant-type:token-exchange",D2="urn:ietf:params:oauth:token-type:access_token",bS="https://www.googleapis.com/auth/cloud-platform",z2=3600;Lr.EXPIRATION_TIME_OFFSET=300*1e3;Lr.EXTERNAL_ACCOUNT_TYPE="external_account";Lr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var U2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",M2="https://sts.{universeDomain}/v1/token",PS=class t extends vS.AuthClient{static{a(this,"BaseExternalAccountClient")}scopes;projectNumber;audience;subjectTokenType;stsCredential;clientAuth;credentialSourceType;cachedAccessToken;serviceAccountImpersonationUrl;serviceAccountImpersonationLifetime;workforcePoolUserProject;configLifetimeRequested;tokenUrl;cloudResourceManagerURL;supplierContext;#e=null;constructor(e){super(e);let r=(0,MN.originalOrCamelOptions)(e),o=r.get("type");if(o&&o!==Lr.EXTERNAL_ACCOUNT_TYPE)throw new Error(`Expected "${Lr.EXTERNAL_ACCOUNT_TYPE}" type but received "${e.type}"`);let n=r.get("client_id"),i=r.get("client_secret");this.tokenUrl=r.get("token_url")??M2.replace("{universeDomain}",this.universeDomain);let s=r.get("subject_token_type"),u=r.get("workforce_pool_user_project"),l=r.get("service_account_impersonation_url"),p=r.get("service_account_impersonation"),f=(0,MN.originalOrCamelOptions)(p).get("token_lifetime_seconds");this.cloudResourceManagerURL=new URL(r.get("cloud_resource_manager_url")||`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`),n&&(this.clientAuth={confidentialClientType:"basic",clientId:n,clientSecret:i}),this.stsCredential=new k2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=r.get("scopes")||[bS],this.cachedAccessToken=null,this.audience=r.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(U2);if(this.workforcePoolUserProject&&!this.audience.match(y))throw new Error("workforcePoolUserProject should not be set for non-workforce pool credentials.");this.serviceAccountImpersonationUrl=l,this.serviceAccountImpersonationLifetime=f,this.serviceAccountImpersonationLifetime?this.configLifetimeRequested=!0:(this.configLifetimeRequested=!1,this.serviceAccountImpersonationLifetime=z2),this.projectNumber=this.getProjectNumber(this.audience),this.supplierContext={audience:this.audience,subjectTokenType:this.subjectTokenType,transporter:this.transporter}}getServiceAccountEmail(){if(this.serviceAccountImpersonationUrl){if(this.serviceAccountImpersonationUrl.length>256)throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);return/serviceAccounts\/(?<email>[^:]+):generateAccessToken$/.exec(this.serviceAccountImpersonationUrl)?.groups?.email||null}return null}setCredentials(e){super.setCredentials(e),this.cachedAccessToken=e}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async getProjectId(){let e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId)return this.projectId;if(e){let r=await this.getRequestHeaders(),o={...t.RETRY_CONFIG,headers:r,url:`${this.cloudResourceManagerURL.toString()}${e}`};vS.AuthClient.setMethodName(o,"getProjectId");let n=await this.transporter.request(o);return this.projectId=n.data.projectId,this.projectId}return null}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=R2.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof O2.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){this.#e=this.#e||this.#t();try{return await this.#e}finally{this.#e=null}}async#t(){let e=await this.retrieveSubjectToken(),r={grantType:$2,audience:this.audience,requestedTokenType:D2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[bS]:this.getScopesArray()},o=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:void 0,n=new Headers({"x-goog-api-client":this.getMetricsHeaderValue()}),i=await this.stsCredential.exchangeToken(r,n,o);return this.serviceAccountImpersonationUrl?this.cachedAccessToken=await this.getImpersonatedAccessToken(i.access_token):i.expires_in?this.cachedAccessToken={access_token:i.access_token,expiry_date:new Date().getTime()+i.expires_in*1e3,res:i.res}:this.cachedAccessToken={access_token:i.access_token,res:i.res},this.credentials={},Object.assign(this.credentials,this.cachedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedAccessToken}getProjectNumber(e){let r=e.match(/\/projects\/([^/]+)/);return r?r[1]:null}async getImpersonatedAccessToken(e){let r={...t.RETRY_CONFIG,url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${e}`},data:{scope:this.getScopesArray(),lifetime:this.serviceAccountImpersonationLifetime+"s"}};vS.AuthClient.setMethodName(r,"getImpersonatedAccessToken");let o=await this.transporter.request(r),n=o.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:o}}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}getScopesArray(){return typeof this.scopes=="string"?[this.scopes]:this.scopes||[bS]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),r=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${N2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${r} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Lr.BaseExternalAccountClient=PS});var LN=D(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.FileSubjectTokenSupplier=void 0;var ES=require("util"),TS=require("fs"),L2=(0,ES.promisify)(TS.readFile??(()=>{})),j2=(0,ES.promisify)(TS.realpath??(()=>{})),F2=(0,ES.promisify)(TS.lstat??(()=>{})),SS=class{static{a(this,"FileSubjectTokenSupplier")}filePath;formatType;subjectTokenFieldName;constructor(e){this.filePath=e.filePath,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName}async getSubjectToken(){let e=this.filePath;try{if(e=await j2(e),!(await F2(e)).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let r,o=await L2(e,{encoding:"utf8"});if(this.formatType==="text"?r=o:this.formatType==="json"&&this.subjectTokenFieldName&&(r=JSON.parse(o)[this.subjectTokenFieldName]),!r)throw new Error("Unable to parse the subject_token from the credential_source file");return r}};Em.FileSubjectTokenSupplier=SS});var jN=D(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.UrlSubjectTokenSupplier=void 0;var B2=br(),xS=class{static{a(this,"UrlSubjectTokenSupplier")}url;headers;formatType;subjectTokenFieldName;additionalGaxiosOptions;constructor(e){this.url=e.url,this.formatType=e.formatType,this.subjectTokenFieldName=e.subjectTokenFieldName,this.headers=e.headers,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getSubjectToken(e){let r={...this.additionalGaxiosOptions,url:this.url,method:"GET",headers:this.headers};B2.AuthClient.setMethodName(r,"getSubjectToken");let o;if(this.formatType==="text"?o=(await e.transporter.request(r)).data:this.formatType==="json"&&this.subjectTokenFieldName&&(o=(await e.transporter.request(r)).data[this.subjectTokenFieldName]),!o)throw new Error("Unable to parse the subject_token from the credential_source URL");return o}};Tm.UrlSubjectTokenSupplier=xS});var FN=D(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.CertificateSubjectTokenSupplier=Tr.InvalidConfigurationError=Tr.CertificateSourceUnavailableError=Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE=void 0;var xm=en(),Am=require("fs"),wm=require("crypto"),q2=require("https");Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE="GOOGLE_API_CERTIFICATE_CONFIG";var vn=class extends Error{static{a(this,"CertificateSourceUnavailableError")}constructor(e){super(e),this.name="CertificateSourceUnavailableError"}};Tr.CertificateSourceUnavailableError=vn;var jr=class extends Error{static{a(this,"InvalidConfigurationError")}constructor(e){super(e),this.name="InvalidConfigurationError"}};Tr.InvalidConfigurationError=jr;var AS=class{static{a(this,"CertificateSubjectTokenSupplier")}certificateConfigPath;trustChainPath;cert;key;constructor(e){if(!e.useDefaultCertificateConfig&&!e.certificateConfigLocation)throw new jr("Either `useDefaultCertificateConfig` must be true or a `certificateConfigLocation` must be provided.");if(e.useDefaultCertificateConfig&&e.certificateConfigLocation)throw new jr("Both `useDefaultCertificateConfig` and `certificateConfigLocation` cannot be provided.");this.trustChainPath=e.trustChainPath,this.certificateConfigPath=e.certificateConfigLocation??""}async createMtlsHttpsAgent(){if(!this.key||!this.cert)throw new jr("Cannot create mTLS Agent with missing certificate or key");return new q2.Agent({key:this.key,cert:this.cert})}async getSubjectToken(){this.certificateConfigPath=await this.#e();let{certPath:e,keyPath:r}=await this.#t();return{cert:this.cert,key:this.key}=await this.#r(e,r),await this.#n(this.cert)}async#e(){let e=this.certificateConfigPath;if(e){if(await(0,xm.isValidFile)(e))return e;throw new vn(`Provided certificate config path is invalid: ${e}`)}let r=process.env[Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE];if(r){if(await(0,xm.isValidFile)(r))return r;throw new vn(`Path from environment variable "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" is invalid: ${r}`)}let o=(0,xm.getWellKnownCertificateConfigFileLocation)();if(await(0,xm.isValidFile)(o))return o;throw new vn(`Could not find certificate configuration file. Searched override path, the "${Tr.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" env var, and the gcloud path (${o}).`)}async#t(){let e=this.certificateConfigPath,r;try{r=await Am.promises.readFile(e,"utf8")}catch{throw new vn(`Failed to read certificate config file at: ${e}`)}try{let o=JSON.parse(r),n=o?.cert_configs?.workload?.cert_path,i=o?.cert_configs?.workload?.key_path;if(!n||!i)throw new jr(`Certificate config file (${e}) is missing required "cert_path" or "key_path" in the workload config.`);return{certPath:n,keyPath:i}}catch(o){throw o instanceof jr?o:new jr(`Failed to parse certificate config from ${e}: ${o.message}`)}}async#r(e,r){let o,n;try{o=await Am.promises.readFile(e),new wm.X509Certificate(o)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read certificate file at ${e}: ${s}`)}try{n=await Am.promises.readFile(r),(0,wm.createPrivateKey)(n)}catch(i){let s=i instanceof Error?i.message:String(i);throw new vn(`Failed to read private key file at ${r}: ${s}`)}return{cert:o,key:n}}async#n(e){let r=new wm.X509Certificate(e);if(!this.trustChainPath)return JSON.stringify([r.raw.toString("base64")]);try{let i=((await Am.promises.readFile(this.trustChainPath,"utf8")).match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g)??[]).map((l,p)=>{try{return new wm.X509Certificate(l)}catch(f){let y=f instanceof Error?f.message:String(f);throw new jr(`Failed to parse certificate at index ${p} in trust chain file ${this.trustChainPath}: ${y}`)}}),s=i.findIndex(l=>r.raw.equals(l.raw)),u;if(s===-1)u=[r,...i];else if(s===0)u=i;else throw new jr(`Leaf certificate exists in the trust chain but is not the first entry (found at index ${s}).`);return JSON.stringify(u.map(l=>l.raw.toString("base64")))}catch(o){if(o instanceof jr)throw o;let n=o instanceof Error?o.message:String(o);throw new vn(`Failed to process certificate chain from ${this.trustChainPath}: ${n}`)}}};Tr.CertificateSubjectTokenSupplier=AS});var CS=D(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.IdentityPoolClient=void 0;var G2=$o(),wS=en(),V2=LN(),H2=jN(),BN=FN(),Z2=Sm(),qN=bt(),IS=class t extends G2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let r=(0,wS.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("subject_token_supplier");if(!o&&!n)throw new Error("A credential source or subject token supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or subject token supplier can be specified.");if(n)this.subjectTokenSupplier=n,this.credentialSourceType="programmatic";else{let i=(0,wS.originalOrCamelOptions)(o),s=(0,wS.originalOrCamelOptions)(i.get("format")),u=s.get("type")||"text",l=s.get("subject_token_field_name");if(u!=="json"&&u!=="text")throw new Error(`Invalid credential_source format "${u}"`);if(u==="json"&&!l)throw new Error("Missing subject_token_field_name for JSON credential_source format");let p=i.get("file"),f=i.get("url"),y=i.get("certificate"),m=i.get("headers");if(p&&f||f&&y||p&&y)throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.');if(p)this.credentialSourceType="file",this.subjectTokenSupplier=new V2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new H2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new BN.CertificateSubjectTokenSupplier({useDefaultCertificateConfig:y.use_default_certificate_config,certificateConfigLocation:y.certificate_config_location,trustChainPath:y.trust_chain_path});this.subjectTokenSupplier=h}else throw new Error('No valid Identity Pool "credential_source" provided, must be either file, url, or certificate.')}}async retrieveSubjectToken(){let e=await this.subjectTokenSupplier.getSubjectToken(this.supplierContext);if(this.subjectTokenSupplier instanceof BN.CertificateSubjectTokenSupplier){let r=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new Z2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new qN.Gaxios({agent:r})}),this.transporter=new qN.Gaxios({...this.transporter.defaults||{},agent:r})}return e}};Im.IdentityPoolClient=IS});var OS=D(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AwsRequestSigner=void 0;var Cm=bt(),VN=Uu(),GN="AWS4-HMAC-SHA256",W2="aws4_request",RS=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,r){this.getCredentials=e,this.region=r,this.crypto=(0,VN.createCrypto)()}async getRequestOptions(e){if(!e.url)throw new RangeError('"url" is required in "amzOptions"');let r=typeof e.data=="object"?JSON.stringify(e.data):e.data,o=e.url,n=e.method||"GET",i=e.body||r,s=e.headers,u=await this.getCredentials(),l=new URL(o);if(typeof i!="string"&&i!==void 0)throw new TypeError(`'requestPayload' is expected to be a string if provided. Got: ${i}`);let p=await J2({crypto:this.crypto,host:l.host,canonicalUri:l.pathname,canonicalQuerystring:l.search.slice(1),method:n,region:this.region,securityCredentials:u,requestPayload:i,additionalAmzHeaders:s}),f=Cm.Gaxios.mergeHeaders(p.amzDate?{"x-amz-date":p.amzDate}:{},{authorization:p.authorizationHeader,host:l.host},s||{});u.token&&Cm.Gaxios.mergeHeaders(f,{"x-amz-security-token":u.token});let y={url:o,method:n,headers:f};return i!==void 0&&(y.body=i),y}};Rm.AwsRequestSigner=RS;async function Wu(t,e,r){return await t.signWithHmacSha256(e,r)}a(Wu,"sign");async function K2(t,e,r,o,n){let i=await Wu(t,`AWS4${e}`,r),s=await Wu(t,i,o),u=await Wu(t,s,n);return await Wu(t,u,"aws4_request")}a(K2,"getSigningKey");async function J2(t){let e=Cm.Gaxios.mergeHeaders(t.additionalAmzHeaders),r=t.requestPayload||"",o=t.host.split(".")[0],n=new Date,i=n.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,""),s=n.toISOString().replace(/[-]/g,"").replace(/T.*/,"");t.securityCredentials.token&&e.set("x-amz-security-token",t.securityCredentials.token);let u=Cm.Gaxios.mergeHeaders({host:t.host},e.has("date")?{}:{"x-amz-date":i},e),l="",p=[...u.keys()].sort();p.forEach(k=>{l+=`${k}:${u.get(k)}
|
|
41
41
|
`});let f=p.join(";"),y=await t.crypto.sha256DigestHex(r),m=`${t.method.toUpperCase()}
|
|
42
42
|
${t.canonicalUri}
|
|
43
43
|
${t.canonicalQuerystring}
|
|
44
44
|
${l}
|
|
45
45
|
${f}
|
|
46
|
-
${y}`,h=`${s}/${t.region}/${o}/${
|
|
46
|
+
${y}`,h=`${s}/${t.region}/${o}/${W2}`,_=`${GN}
|
|
47
47
|
${i}
|
|
48
48
|
${h}
|
|
49
|
-
`+await t.crypto.sha256DigestHex(m),P=await k2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),E=await Wu(t.crypto,P,_),x=`${NN} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,$N.fromArrayBufferToHex)(E)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:x,canonicalQuerystring:t.canonicalQuerystring}}a(N2,"generateAuthenticationHeaderMap")});var zN=z(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.DefaultAwsSecurityCredentialsSupplier=void 0;var Rm=br(),IP=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(e){this.regionUrl=e.regionUrl,this.securityCredentialsUrl=e.securityCredentialsUrl,this.imdsV2SessionTokenUrl=e.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getAwsRegion(e){if(this.#n)return this.#n;let r=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:r};Rm.AuthClient.setMethodName(o,"getAwsRegion");let n=await e.transporter.request(o);return n.data.substr(0,n.data.length-1)}async getAwsSecurityCredentials(e){if(this.#o)return this.#o;let r=new Headers;this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter));let o=await this.#t(r,e.transporter),n=await this.#r(o,r,e.transporter);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,token:n.Token}}async#e(e){let r={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Rm.AuthClient.setMethodName(r,"#getImdsV2SessionToken"),(await e.request(r)).data}async#t(e,r){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:e};return Rm.AuthClient.setMethodName(o,"#getAwsRoleName"),(await r.request(o)).data}async#r(e,r,o){let n={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${e}`,headers:r};return Rm.AuthClient.setMethodName(n,"#retrieveAwsSecurityCredentials"),(await o.request(n)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};Om.DefaultAwsSecurityCredentialsSupplier=IP});var RP=z(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.AwsClient=void 0;var $2=wP(),z2=$o(),D2=zN(),DN=en(),U2=bt(),CP=class t extends z2.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(e){super(e);let r=(0,DN.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("aws_security_credentials_supplier");if(!o&&!n)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(n)this.awsSecurityCredentialsSupplier=n,this.regionalCredVerificationUrl=t.#e,this.credentialSourceType="programmatic";else{let i=(0,DN.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),l=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new D2.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:l}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let e=this.environmentId?.match(/^(aws)(\d+)$/);if(!e||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(e[2],10)!==1)throw new Error(`aws version "${e[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new $2.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let e=await this.awsRequestSigner.getRequestOptions({...t.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),r=[];return U2.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},e.headers).forEach((n,i)=>r.push({key:i,value:n})),encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}};km.AwsClient=CP});var zP=z(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.InvalidSubjectTokenError=Pt.InvalidMessageFieldError=Pt.InvalidCodeFieldError=Pt.InvalidTokenTypeFieldError=Pt.InvalidExpirationTimeFieldError=Pt.InvalidSuccessFieldError=Pt.InvalidVersionFieldError=Pt.ExecutableResponseError=Pt.ExecutableResponse=void 0;var Nm="urn:ietf:params:oauth:token-type:saml2",OP="urn:ietf:params:oauth:token-type:id_token",kP="urn:ietf:params:oauth:token-type:jwt",NP=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new $m("Executable response must contain a 'version' field.");if(e.success===void 0)throw new zm("Executable response must contain a 'success' field.");if(this.version=e.version,this.success=e.success,this.success){if(this.expirationTime=e.expiration_time,this.tokenType=e.token_type,this.tokenType!==Nm&&this.tokenType!==OP&&this.tokenType!==kP)throw new Dm(`Executable response must contain a 'token_type' field when successful and it must be one of ${OP}, ${kP}, or ${Nm}.`);if(this.tokenType===Nm){if(!e.saml_response)throw new Ku(`Executable response must contain a 'saml_response' field when token_type=${Nm}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Ku(`Executable response must contain a 'id_token' field when token_type=${OP} or ${kP}.`);this.subjectToken=e.id_token}}else{if(!e.code)throw new Um("Executable response must contain a 'code' field when unsuccessful.");if(!e.message)throw new Mm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=e.code,this.errorMessage=e.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};Pt.ExecutableResponse=NP;var bn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};Pt.ExecutableResponseError=bn;var $m=class extends bn{static{a(this,"InvalidVersionFieldError")}};Pt.InvalidVersionFieldError=$m;var zm=class extends bn{static{a(this,"InvalidSuccessFieldError")}};Pt.InvalidSuccessFieldError=zm;var $P=class extends bn{static{a(this,"InvalidExpirationTimeFieldError")}};Pt.InvalidExpirationTimeFieldError=$P;var Dm=class extends bn{static{a(this,"InvalidTokenTypeFieldError")}};Pt.InvalidTokenTypeFieldError=Dm;var Um=class extends bn{static{a(this,"InvalidCodeFieldError")}};Pt.InvalidCodeFieldError=Um;var Mm=class extends bn{static{a(this,"InvalidMessageFieldError")}};Pt.InvalidMessageFieldError=Mm;var Ku=class extends bn{static{a(this,"InvalidSubjectTokenError")}};Pt.InvalidSubjectTokenError=Ku});var MP=z(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.PluggableAuthHandler=Qa.ExecutableError=void 0;var xi=zP(),M2=require("child_process"),DP=require("fs"),Lm=class extends Error{static{a(this,"ExecutableError")}code;constructor(e,r){super(`The executable failed with exit code: ${r} and error message: ${e}.`),this.code=r,Object.setPrototypeOf(this,new.target.prototype)}};Qa.ExecutableError=Lm;var UP=class t{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(e){if(!e.command)throw new Error("No command provided.");if(this.commandComponents=t.parseCommand(e.command),this.timeoutMillis=e.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=e.outputFile}retrieveResponseFromExecutable(e){return new Promise((r,o)=>{let n=M2.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(e)}}),i="";n.stdout.on("data",u=>{i+=u}),n.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(n.removeAllListeners(),n.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);n.on("close",u=>{if(clearTimeout(s),u===0)try{let l=JSON.parse(i),p=new xi.ExecutableResponse(l);return r(p)}catch(l){return l instanceof xi.ExecutableResponseError?o(l):o(new xi.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new Lm(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let e;try{e=await DP.promises.realpath(this.outputFile)}catch{return}if(!(await DP.promises.lstat(e)).isFile())return;let r=await DP.promises.readFile(e,{encoding:"utf8"});if(r!=="")try{let o=JSON.parse(r);return new xi.ExecutableResponse(o).isValid()?new xi.ExecutableResponse(o):void 0}catch(o){throw o instanceof xi.ExecutableResponseError?o:new xi.ExecutableResponseError(`The output file contained an invalid response: ${r}`)}}static parseCommand(e){let r=e.match(/(?:[^\s"]+|"[^"]*")+/g);if(!r)throw new Error(`Provided command: "${e}" could not be parsed.`);for(let o=0;o<r.length;o++)r[o][0]==='"'&&r[o].slice(-1)==='"'&&(r[o]=r[o].slice(1,-1));return r}};Qa.PluggableAuthHandler=UP});var jP=z(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PluggableAuthClient=es.ExecutableError=void 0;var L2=$o(),j2=zP(),UN=MP(),F2=MP();Object.defineProperty(es,"ExecutableError",{enumerable:!0,get:a(function(){return F2.ExecutableError},"get")});var B2=30*1e3,MN=5*1e3,LN=120*1e3,q2="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",jN=1,LP=class extends L2.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(e){if(super(e),!e.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=e.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(e.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=B2;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<MN||this.timeoutMillis>LN)throw new Error(`Timeout must be between ${MN} and ${LN} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new UN.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[q2]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let e;if(this.outputFile&&(e=await this.handler.retrieveCachedResponse()),!e){let r=new Map;r.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),r.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),r.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&r.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&r.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),e=await this.handler.retrieveResponseFromExecutable(r)}if(e.version>jN)throw new Error(`Version of executable is not currently supported, maximum supported version is ${jN}.`);if(!e.success)throw new UN.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new j2.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(e.isExpired())throw new Error("Executable response is expired.");return e.subjectToken}};es.PluggableAuthClient=LP});var BP=z(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.ExternalAccountClient=void 0;var G2=$o(),V2=xP(),H2=RP(),Z2=jP(),FP=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(e){return e&&e.type===G2.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new H2.AwsClient(e):e.credential_source?.executable?new Z2.PluggableAuthClient(e):new V2.IdentityPoolClient(e):null}};jm.ExternalAccountClient=FP});var VP=z(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ExternalAccountAuthorizedUserClient=ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var BN=br(),FN=fP(),qN=bt(),W2=require("stream"),K2=$o();ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var J2="https://sts.{universeDomain}/v1/oauthtoken",qP=class t extends FN.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(e){super(e),this.#e=e.tokenRefreshEndpoint}async refreshToken(e,r){let o={...t.RETRY_CONFIG,url:this.#e,method:"POST",headers:r,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:e})};BN.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let n=await this.transporter.request(o),i=n.data;return i.res=n,i}catch(n){throw n instanceof qN.GaxiosError&&n.response?(0,FN.getErrorFromOAuthErrorResponse)(n.response.data,n):n}}},GP=class extends BN.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(e){super(e),e.universe_domain&&(this.universeDomain=e.universe_domain),this.refreshToken=e.refresh_token;let r={confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret};this.externalAccountAuthorizedUserHandler=new qP({tokenRefreshEndpoint:e.token_url??J2.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:r}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=K2.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!e?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=qN.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof W2.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:e.access_token,expiry_date:new Date().getTime()+e.expires_in*1e3,res:e.res},e.refresh_token!==void 0&&(this.refreshToken=e.refresh_token),this.cachedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};ts.ExternalAccountAuthorizedUserClient=GP});var ZN=z(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.GoogleAuth=on.GoogleAuthExceptionMessages=void 0;var X2=require("child_process"),Ju=require("fs"),Y2=bt(),Xu=Du(),Q2=require("os"),HP=require("path"),eH=Uu(),tH=LS(),rH=FS(),nH=BS(),rs=sP(),GN=uP(),ns=dP(),oH=BP(),Yu=$o(),ZP=br(),VN=VP(),HN=en();on.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
|
|
49
|
+
`+await t.crypto.sha256DigestHex(m),S=await K2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),E=await Wu(t.crypto,S,_),T=`${GN} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,VN.fromArrayBufferToHex)(E)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:t.canonicalQuerystring}}a(J2,"generateAuthenticationHeaderMap")});var HN=D(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.DefaultAwsSecurityCredentialsSupplier=void 0;var Om=br(),kS=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(e){this.regionUrl=e.regionUrl,this.securityCredentialsUrl=e.securityCredentialsUrl,this.imdsV2SessionTokenUrl=e.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=e.additionalGaxiosOptions}async getAwsRegion(e){if(this.#n)return this.#n;let r=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:r};Om.AuthClient.setMethodName(o,"getAwsRegion");let n=await e.transporter.request(o);return n.data.substr(0,n.data.length-1)}async getAwsSecurityCredentials(e){if(this.#o)return this.#o;let r=new Headers;this.imdsV2SessionTokenUrl&&r.set("x-aws-ec2-metadata-token",await this.#e(e.transporter));let o=await this.#t(r,e.transporter),n=await this.#r(o,r,e.transporter);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,token:n.Token}}async#e(e){let r={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Om.AuthClient.setMethodName(r,"#getImdsV2SessionToken"),(await e.request(r)).data}async#t(e,r){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:e};return Om.AuthClient.setMethodName(o,"#getAwsRoleName"),(await r.request(o)).data}async#r(e,r,o){let n={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${e}`,headers:r};return Om.AuthClient.setMethodName(n,"#retrieveAwsSecurityCredentials"),(await o.request(n)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};km.DefaultAwsSecurityCredentialsSupplier=kS});var $S=D(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.AwsClient=void 0;var X2=OS(),Y2=$o(),Q2=HN(),ZN=en(),eH=bt(),NS=class t extends Y2.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(e){super(e);let r=(0,ZN.originalOrCamelOptions)(e),o=r.get("credential_source"),n=r.get("aws_security_credentials_supplier");if(!o&&!n)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&n)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(n)this.awsSecurityCredentialsSupplier=n,this.regionalCredVerificationUrl=t.#e,this.credentialSourceType="programmatic";else{let i=(0,ZN.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),l=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new Q2.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:l}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let e=this.environmentId?.match(/^(aws)(\d+)$/);if(!e||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(e[2],10)!==1)throw new Error(`aws version "${e[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new X2.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let e=await this.awsRequestSigner.getRequestOptions({...t.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),r=[];return eH.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},e.headers).forEach((n,i)=>r.push({key:i,value:n})),encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}};Nm.AwsClient=NS});var LS=D(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.InvalidSubjectTokenError=St.InvalidMessageFieldError=St.InvalidCodeFieldError=St.InvalidTokenTypeFieldError=St.InvalidExpirationTimeFieldError=St.InvalidSuccessFieldError=St.InvalidVersionFieldError=St.ExecutableResponseError=St.ExecutableResponse=void 0;var $m="urn:ietf:params:oauth:token-type:saml2",DS="urn:ietf:params:oauth:token-type:id_token",zS="urn:ietf:params:oauth:token-type:jwt",US=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new Dm("Executable response must contain a 'version' field.");if(e.success===void 0)throw new zm("Executable response must contain a 'success' field.");if(this.version=e.version,this.success=e.success,this.success){if(this.expirationTime=e.expiration_time,this.tokenType=e.token_type,this.tokenType!==$m&&this.tokenType!==DS&&this.tokenType!==zS)throw new Um(`Executable response must contain a 'token_type' field when successful and it must be one of ${DS}, ${zS}, or ${$m}.`);if(this.tokenType===$m){if(!e.saml_response)throw new Ku(`Executable response must contain a 'saml_response' field when token_type=${$m}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Ku(`Executable response must contain a 'id_token' field when token_type=${DS} or ${zS}.`);this.subjectToken=e.id_token}}else{if(!e.code)throw new Mm("Executable response must contain a 'code' field when unsuccessful.");if(!e.message)throw new Lm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=e.code,this.errorMessage=e.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};St.ExecutableResponse=US;var bn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};St.ExecutableResponseError=bn;var Dm=class extends bn{static{a(this,"InvalidVersionFieldError")}};St.InvalidVersionFieldError=Dm;var zm=class extends bn{static{a(this,"InvalidSuccessFieldError")}};St.InvalidSuccessFieldError=zm;var MS=class extends bn{static{a(this,"InvalidExpirationTimeFieldError")}};St.InvalidExpirationTimeFieldError=MS;var Um=class extends bn{static{a(this,"InvalidTokenTypeFieldError")}};St.InvalidTokenTypeFieldError=Um;var Mm=class extends bn{static{a(this,"InvalidCodeFieldError")}};St.InvalidCodeFieldError=Mm;var Lm=class extends bn{static{a(this,"InvalidMessageFieldError")}};St.InvalidMessageFieldError=Lm;var Ku=class extends bn{static{a(this,"InvalidSubjectTokenError")}};St.InvalidSubjectTokenError=Ku});var BS=D(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.PluggableAuthHandler=Qa.ExecutableError=void 0;var Ai=LS(),tH=require("child_process"),jS=require("fs"),jm=class extends Error{static{a(this,"ExecutableError")}code;constructor(e,r){super(`The executable failed with exit code: ${r} and error message: ${e}.`),this.code=r,Object.setPrototypeOf(this,new.target.prototype)}};Qa.ExecutableError=jm;var FS=class t{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(e){if(!e.command)throw new Error("No command provided.");if(this.commandComponents=t.parseCommand(e.command),this.timeoutMillis=e.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=e.outputFile}retrieveResponseFromExecutable(e){return new Promise((r,o)=>{let n=tH.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(e)}}),i="";n.stdout.on("data",u=>{i+=u}),n.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(n.removeAllListeners(),n.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);n.on("close",u=>{if(clearTimeout(s),u===0)try{let l=JSON.parse(i),p=new Ai.ExecutableResponse(l);return r(p)}catch(l){return l instanceof Ai.ExecutableResponseError?o(l):o(new Ai.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new jm(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let e;try{e=await jS.promises.realpath(this.outputFile)}catch{return}if(!(await jS.promises.lstat(e)).isFile())return;let r=await jS.promises.readFile(e,{encoding:"utf8"});if(r!=="")try{let o=JSON.parse(r);return new Ai.ExecutableResponse(o).isValid()?new Ai.ExecutableResponse(o):void 0}catch(o){throw o instanceof Ai.ExecutableResponseError?o:new Ai.ExecutableResponseError(`The output file contained an invalid response: ${r}`)}}static parseCommand(e){let r=e.match(/(?:[^\s"]+|"[^"]*")+/g);if(!r)throw new Error(`Provided command: "${e}" could not be parsed.`);for(let o=0;o<r.length;o++)r[o][0]==='"'&&r[o].slice(-1)==='"'&&(r[o]=r[o].slice(1,-1));return r}};Qa.PluggableAuthHandler=FS});var GS=D(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PluggableAuthClient=es.ExecutableError=void 0;var rH=$o(),nH=LS(),WN=BS(),oH=BS();Object.defineProperty(es,"ExecutableError",{enumerable:!0,get:a(function(){return oH.ExecutableError},"get")});var iH=30*1e3,KN=5*1e3,JN=120*1e3,aH="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",XN=1,qS=class extends rH.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(e){if(super(e),!e.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=e.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(e.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=iH;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<KN||this.timeoutMillis>JN)throw new Error(`Timeout must be between ${KN} and ${JN} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new WN.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[aH]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let e;if(this.outputFile&&(e=await this.handler.retrieveCachedResponse()),!e){let r=new Map;r.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),r.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),r.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&r.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&r.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),e=await this.handler.retrieveResponseFromExecutable(r)}if(e.version>XN)throw new Error(`Version of executable is not currently supported, maximum supported version is ${XN}.`);if(!e.success)throw new WN.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new nH.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(e.isExpired())throw new Error("Executable response is expired.");return e.subjectToken}};es.PluggableAuthClient=qS});var HS=D(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExternalAccountClient=void 0;var sH=$o(),cH=CS(),uH=$S(),lH=GS(),VS=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(e){return e&&e.type===sH.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new uH.AwsClient(e):e.credential_source?.executable?new lH.PluggableAuthClient(e):new cH.IdentityPoolClient(e):null}};Fm.ExternalAccountClient=VS});var KS=D(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ExternalAccountAuthorizedUserClient=ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var QN=br(),YN=yS(),e$=bt(),dH=require("stream"),pH=$o();ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var fH="https://sts.{universeDomain}/v1/oauthtoken",ZS=class t extends YN.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(e){super(e),this.#e=e.tokenRefreshEndpoint}async refreshToken(e,r){let o={...t.RETRY_CONFIG,url:this.#e,method:"POST",headers:r,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:e})};QN.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let n=await this.transporter.request(o),i=n.data;return i.res=n,i}catch(n){throw n instanceof e$.GaxiosError&&n.response?(0,YN.getErrorFromOAuthErrorResponse)(n.response.data,n):n}}},WS=class extends QN.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(e){super(e),e.universe_domain&&(this.universeDomain=e.universe_domain),this.refreshToken=e.refresh_token;let r={confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret};this.externalAccountAuthorizedUserHandler=new ZS({tokenRefreshEndpoint:e.token_url??fH.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:r}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=pH.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!e?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=e$.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof dH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:e.access_token,expiry_date:new Date().getTime()+e.expires_in*1e3,res:e.res},e.refresh_token!==void 0&&(this.refreshToken=e.refresh_token),this.cachedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};ts.ExternalAccountAuthorizedUserClient=WS});var o$=D(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.GoogleAuth=on.GoogleAuthExceptionMessages=void 0;var mH=require("child_process"),Ju=require("fs"),hH=bt(),Xu=zu(),gH=require("os"),JS=require("path"),yH=Uu(),_H=qP(),vH=VP(),bH=HP(),rs=dS(),t$=fS(),ns=hS(),PH=HS(),Yu=$o(),XS=br(),r$=KS(),n$=en();on.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
|
|
50
50
|
To learn more about authentication and Google APIs, visit:
|
|
51
51
|
https://cloud.google.com/docs/authentication/getting-started`,NO_CREDENTIALS_FOUND:`Unable to find credentials in current environment.
|
|
52
52
|
To learn more about authentication and Google APIs, visit:
|
|
53
53
|
https://cloud.google.com/docs/authentication/getting-started`,NO_ADC_FOUND:"Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.",NO_UNIVERSE_DOMAIN_FOUND:`Unable to detect a Universe Domain in the current environment.
|
|
54
54
|
To learn more about Universe Domain retrieval, visit:
|
|
55
|
-
https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var WP=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(e={}){if(this._cachedProjectId=e.projectId||null,this.cachedCredential=e.authClient||null,this.keyFilename=e.keyFilename||e.keyFile,this.scopes=e.scopes,this.clientOptions=e.clientOptions||{},this.jsonContent=e.credentials||null,this.apiKey=e.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(on.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);e.universeDomain&&(this.clientOptions.universeDomain=e.universeDomain)}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath,e.useJWTAccessWithScope=this.useJWTAccessWithScope,e.defaultScopes=this.defaultScopes}getProjectId(e){if(e)this.getProjectIdAsync().then(r=>e(null,r),e);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(e){if(e instanceof Error&&e.message===on.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw e}}async findAndCacheProjectId(){let e=null;if(e||=await this.getProductionProjectId(),e||=await this.getFileProjectId(),e||=await this.getDefaultServiceProjectId(),e||=await this.getGCEProjectId(),e||=await this.getExternalAccountClientProjectId(),e)return this._cachedProjectId=e,e;throw new Error(on.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let e;try{e=await Xu.universe("universe-domain"),e||=ZP.DEFAULT_UNIVERSE}catch(r){if(r&&r?.response?.status===404)e=ZP.DEFAULT_UNIVERSE;else throw r}return e}async getUniverseDomain(){let e=(0,HN.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=ZP.DEFAULT_UNIVERSE}return e}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let o;if(typeof e=="function"?r=e:o=e,r)this.getApplicationDefaultAsync(o).then(n=>r(null,n.credential,n.projectId),r);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(e={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let r;if(r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof Yu.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(r=await this._tryGetApplicationCredentialsFromWellKnownFile(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof Yu.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new tH.Compute(e));throw new Error(on.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(e,r=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return r&&(e.quotaProjectId=r),this.cachedCredential=e,{credential:e,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=Xu.getGCPResidency()||await Xu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){let r=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!r||r.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows())r=process.env.APPDATA;else{let n=process.env.HOME;n&&(r=HP.join(n,".config"))}return r&&(r=HP.join(r,"gcloud","application_default_credentials.json"),Ju.existsSync(r)||(r=null)),r?await this._getApplicationCredentialsFromFilePath(r,e):null}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0)throw new Error("The file path is invalid.");try{if(e=Ju.realpathSync(e),!Ju.lstatSync(e).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let o=Ju.createReadStream(e);return this.fromStream(o,r)}fromImpersonatedJSON(e){if(!e)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(e.type!==ns.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${ns.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!e.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!e.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let r=this.fromJSON(e.source_credentials);if(e.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${e.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(e.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${e.service_account_impersonation_url}`);let n=(this.scopes||e.scopes||this.defaultScopes)??[];return new ns.Impersonated({...e,sourceClient:r,targetPrincipal:o,targetScopes:Array.isArray(n)?n:[n]})}fromJSON(e,r={}){let o,n=(0,HN.originalOrCamelOptions)(r).get("universe_domain");return e.type===GN.USER_REFRESH_ACCOUNT_TYPE?(o=new GN.UserRefreshClient(r),o.fromJSON(e)):e.type===ns.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===Yu.EXTERNAL_ACCOUNT_TYPE?(o=oH.ExternalAccountClient.fromJSON({...e,...r}),o.scopes=this.getAnyScopes()):e.type===VN.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new VN.ExternalAccountAuthorizedUserClient({...e,...r}):(r.scopes=this.scopes,o=new rs.JWT(r),this.setGapicJWTValues(o),o.fromJSON(e)),n&&(o.universeDomain=n),o}_cacheClientFromJSON(e,r){let o=this.fromJSON(e,r);return this.jsonContent=e,this.cachedCredential=o,o}fromStream(e,r={},o){let n={};if(typeof r=="function"?o=r:n=r,o)this.fromStreamAsync(e,n).then(i=>o(null,i),o);else return this.fromStreamAsync(e,n)}fromStreamAsync(e,r){return new Promise((o,n)=>{if(!e)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];e.setEncoding("utf8").on("error",n).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,r);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new rs.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return n(s)}})})}fromAPIKey(e,r={}){return new rs.JWT({...r,apiKey:e})}_isWindows(){let e=Q2.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,X2.exec)("gcloud config config-helper --format json",(r,o)=>{if(!r&&o)try{let n=JSON.parse(o).configuration.properties.core.project;e(n);return}catch{}e(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let r=await this.getClient();if(r&&r.projectId)return r.projectId}let e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return e?e.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==Yu.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Xu.project("project-id")}catch{return null}}getCredentials(e){if(e)this.getCredentialsAsync().then(r=>e(null,r),e);else return this.getCredentialsAsync()}async getCredentialsAsync(){let e=await this.getClient();if(e instanceof ns.Impersonated)return{client_email:e.getTargetPrincipal()};if(e instanceof Yu.BaseExternalAccountClient){let r=e.getServiceAccountEmail();if(r)return{client_email:r,universe_domain:e.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[r,o]=await Promise.all([Xu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:r,universe_domain:o}}throw new Error(on.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let e=HP.resolve(this.keyFilename),r=Ju.createReadStream(e);return await this.fromStreamAsync(r,this.clientOptions)}else if(this.apiKey){let e=await this.fromAPIKey(this.apiKey,this.clientOptions);e.scopes=this.scopes;let{credential:r}=await this.#t(e);return r}else{let{credential:e}=await this.getApplicationDefaultAsync(this.clientOptions);return e}}async getIdTokenClient(e){let r=await this.getClient();if(!("fetchIdToken"in r))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new rH.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(e){return(await this.getClient()).getRequestHeaders(e)}async authorizeRequest(e={}){let r=e.url,n=await(await this.getClient()).getRequestHeaders(r);return e.headers=Y2.Gaxios.mergeHeaders(e.headers,n),e}async fetch(...e){return(await this.getClient()).fetch(...e)}async request(e){return(await this.getClient()).request(e)}getEnv(){return(0,nH.getEnv)()}async sign(e,r){let o=await this.getClient(),n=await this.getUniverseDomain();if(r=r||`https://iamcredentials.${n}/v1/projects/-/serviceAccounts/`,o instanceof ns.Impersonated)return(await o.sign(e)).signedBlob;let i=(0,eH.createCrypto)();if(o instanceof rs.JWT&&o.key)return await i.sign(o.key,e);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,e,r)}async signBlob(e,r,o,n){let i=new URL(n+`${r}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:e.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};on.GoogleAuth=WP});var WN=z(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.IAMAuth=void 0;var KP=class{static{a(this,"IAMAuth")}selector;token;constructor(e,r){this.selector=e,this.token=r,this.selector=e,this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};Fm.IAMAuth=KP});var KN=z(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.DownscopedClient=Sn.EXPIRATION_TIME_OFFSET=Sn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var iH=bt(),aH=require("stream"),JP=br(),sH=Sm(),cH="urn:ietf:params:oauth:grant-type:token-exchange",uH="urn:ietf:params:oauth:token-type:access_token",lH="urn:ietf:params:oauth:token-type:access_token";Sn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;Sn.EXPIRATION_TIME_OFFSET=300*1e3;var XP=class extends JP.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,r={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof JP.AuthClient?{}:e),e instanceof JP.AuthClient?(this.authClient=e,this.credentialAccessBoundary=r):(this.authClient=e.authClient,this.credentialAccessBoundary=e.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>Sn.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${Sn.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new sH.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(e){if(!e.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(e),this.cachedDownscopedAccessToken=e}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=iH.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof aH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=(await this.authClient.getAccessToken()).token,r={grantType:cH,requestedTokenType:uH,subjectToken:e,subjectTokenType:lH},o=await this.stsCredential.exchangeToken(r,void 0,this.credentialAccessBoundary),n=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:n;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};Sn.DownscopedClient=XP});var JN=z(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.PassThroughClient=void 0;var dH=br(),YP=class extends dH.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};Bm.PassThroughClient=YP});var Qu=z(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.GoogleAuth=ge.auth=ge.PassThroughClient=ge.ExternalAccountAuthorizedUserClient=ge.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=ge.ExecutableError=ge.PluggableAuthClient=ge.DownscopedClient=ge.BaseExternalAccountClient=ge.ExternalAccountClient=ge.IdentityPoolClient=ge.AwsRequestSigner=ge.AwsClient=ge.UserRefreshClient=ge.LoginTicket=ge.ClientAuthentication=ge.OAuth2Client=ge.CodeChallengeMethod=ge.Impersonated=ge.JWT=ge.JWTAccess=ge.IdTokenClient=ge.IAMAuth=ge.GCPEnv=ge.Compute=ge.DEFAULT_UNIVERSE=ge.AuthClient=ge.gaxios=ge.gcpMetadata=void 0;var XN=ZN();Object.defineProperty(ge,"GoogleAuth",{enumerable:!0,get:a(function(){return XN.GoogleAuth},"get")});ge.gcpMetadata=Du();ge.gaxios=bt();var YN=br();Object.defineProperty(ge,"AuthClient",{enumerable:!0,get:a(function(){return YN.AuthClient},"get")});Object.defineProperty(ge,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return YN.DEFAULT_UNIVERSE},"get")});var pH=LS();Object.defineProperty(ge,"Compute",{enumerable:!0,get:a(function(){return pH.Compute},"get")});var fH=BS();Object.defineProperty(ge,"GCPEnv",{enumerable:!0,get:a(function(){return fH.GCPEnv},"get")});var mH=WN();Object.defineProperty(ge,"IAMAuth",{enumerable:!0,get:a(function(){return mH.IAMAuth},"get")});var hH=FS();Object.defineProperty(ge,"IdTokenClient",{enumerable:!0,get:a(function(){return hH.IdTokenClient},"get")});var gH=iP();Object.defineProperty(ge,"JWTAccess",{enumerable:!0,get:a(function(){return gH.JWTAccess},"get")});var yH=sP();Object.defineProperty(ge,"JWT",{enumerable:!0,get:a(function(){return yH.JWT},"get")});var _H=dP();Object.defineProperty(ge,"Impersonated",{enumerable:!0,get:a(function(){return _H.Impersonated},"get")});var QP=Ti();Object.defineProperty(ge,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return QP.CodeChallengeMethod},"get")});Object.defineProperty(ge,"OAuth2Client",{enumerable:!0,get:a(function(){return QP.OAuth2Client},"get")});Object.defineProperty(ge,"ClientAuthentication",{enumerable:!0,get:a(function(){return QP.ClientAuthentication},"get")});var vH=zS();Object.defineProperty(ge,"LoginTicket",{enumerable:!0,get:a(function(){return vH.LoginTicket},"get")});var bH=uP();Object.defineProperty(ge,"UserRefreshClient",{enumerable:!0,get:a(function(){return bH.UserRefreshClient},"get")});var SH=RP();Object.defineProperty(ge,"AwsClient",{enumerable:!0,get:a(function(){return SH.AwsClient},"get")});var PH=wP();Object.defineProperty(ge,"AwsRequestSigner",{enumerable:!0,get:a(function(){return PH.AwsRequestSigner},"get")});var EH=xP();Object.defineProperty(ge,"IdentityPoolClient",{enumerable:!0,get:a(function(){return EH.IdentityPoolClient},"get")});var TH=BP();Object.defineProperty(ge,"ExternalAccountClient",{enumerable:!0,get:a(function(){return TH.ExternalAccountClient},"get")});var xH=$o();Object.defineProperty(ge,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return xH.BaseExternalAccountClient},"get")});var AH=KN();Object.defineProperty(ge,"DownscopedClient",{enumerable:!0,get:a(function(){return AH.DownscopedClient},"get")});var QN=jP();Object.defineProperty(ge,"PluggableAuthClient",{enumerable:!0,get:a(function(){return QN.PluggableAuthClient},"get")});Object.defineProperty(ge,"ExecutableError",{enumerable:!0,get:a(function(){return QN.ExecutableError},"get")});var e$=VP();Object.defineProperty(ge,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return e$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(ge,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return e$.ExternalAccountAuthorizedUserClient},"get")});var wH=JN();Object.defineProperty(ge,"PassThroughClient",{enumerable:!0,get:a(function(){return wH.PassThroughClient},"get")});var IH=new XN.GoogleAuth;ge.auth=IH});var Y$=z(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.getAPI=KH;function KH(t,e,r,o){let n;if(typeof e=="string")n=e,e={};else if(typeof e=="object")n=e.version,delete e.version;else throw new Error("Argument error: Accepts only string or object");try{let i=r[n],s=new i(e,o);return Object.freeze(s)}catch(i){throw new Error(`Unable to load endpoint ${t}("${n}"): ${i.message}`)}}a(KH,"getAPI")});var ez=z((jde,Q$)=>{Q$.exports=require("util").inspect});var al=z((Fde,bz)=>{var lE=typeof Map=="function"&&Map.prototype,tE=Object.getOwnPropertyDescriptor&&lE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vm=lE&&tE&&typeof tE.get=="function"?tE.get:null,tz=lE&&Map.prototype.forEach,dE=typeof Set=="function"&&Set.prototype,rE=Object.getOwnPropertyDescriptor&&dE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hm=dE&&rE&&typeof rE.get=="function"?rE.get:null,rz=dE&&Set.prototype.forEach,JH=typeof WeakMap=="function"&&WeakMap.prototype,nl=JH?WeakMap.prototype.has:null,XH=typeof WeakSet=="function"&&WeakSet.prototype,ol=XH?WeakSet.prototype.has:null,YH=typeof WeakRef=="function"&&WeakRef.prototype,nz=YH?WeakRef.prototype.deref:null,QH=Boolean.prototype.valueOf,eZ=Object.prototype.toString,tZ=Function.prototype.toString,rZ=String.prototype.match,pE=String.prototype.slice,zo=String.prototype.replace,nZ=String.prototype.toUpperCase,oz=String.prototype.toLowerCase,fz=RegExp.prototype.test,iz=Array.prototype.concat,Pn=Array.prototype.join,oZ=Array.prototype.slice,az=Math.floor,iE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nE=Object.getOwnPropertySymbols,aE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,os=typeof Symbol=="function"&&typeof Symbol.iterator=="object",il=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===os||!0)?Symbol.toStringTag:null,mz=Object.prototype.propertyIsEnumerable,sz=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function cz(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||fz.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-az(-t):az(t);if(o!==t){var n=String(o),i=pE.call(e,n.length+1);return zo.call(n,r,"$&_")+"."+zo.call(zo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zo.call(e,r,"$&_")}a(cz,"addNumericSeparator");var sE=ez(),uz=sE.custom,lz=yz(uz)?uz:null,hz={__proto__:null,double:'"',single:"'"},iZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};bz.exports=a(function t(e,r,o,n){var i=r||{};if(Wn(i,"quoteStyle")&&!Wn(hz,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Wn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Wn(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Wn(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Wn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return vz(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?cz(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?cz(e,p):p}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return cE(e)?"[Array]":"[Object]";var y=EZ(i,o);if(typeof n>"u")n=[];else if(_z(n,e)>=0)return"[Circular]";function m(Z,oe,Q){if(oe&&(n=oZ.call(n),n.push(oe)),Q){var de={depth:i.depth};return Wn(i,"quoteStyle")&&(de.quoteStyle=i.quoteStyle),t(Z,de,o+1,n)}return t(Z,i,o+1,n)}if(a(m,"inspect"),typeof e=="function"&&!dz(e)){var h=mZ(e),_=Gm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+Pn.call(_,", ")+" }":"")}if(yz(e)){var P=os?zo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):aE.call(e);return typeof e=="object"&&!os?rl(P):P}if(bZ(e)){for(var E="<"+oz.call(String(e.nodeName)),x=e.attributes||[],k=0;k<x.length;k++)E+=" "+x[k].name+"="+gz(aZ(x[k].value),"double",i);return E+=">",e.childNodes&&e.childNodes.length&&(E+="..."),E+="</"+oz.call(String(e.nodeName))+">",E}if(cE(e)){if(e.length===0)return"[]";var L=Gm(e,m);return y&&!PZ(L)?"["+uE(L,y)+"]":"[ "+Pn.call(L,", ")+" ]"}if(cZ(e)){var Y=Gm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!mz.call(e,"cause")?"{ ["+String(e)+"] "+Pn.call(iz.call("[cause]: "+m(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Pn.call(Y,", ")+" }"}if(typeof e=="object"&&s){if(lz&&typeof e[lz]=="function"&&sE)return sE(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(hZ(e)){var H=[];return tz&&tz.call(e,function(Z,oe){H.push(m(oe,e,!0)+" => "+m(Z,e))}),pz("Map",Vm.call(e),H,y)}if(_Z(e)){var X=[];return rz&&rz.call(e,function(Z){X.push(m(Z,e))}),pz("Set",Hm.call(e),X,y)}if(gZ(e))return oE("WeakMap");if(vZ(e))return oE("WeakSet");if(yZ(e))return oE("WeakRef");if(lZ(e))return rl(m(Number(e)));if(pZ(e))return rl(m(iE.call(e)));if(dZ(e))return rl(QH.call(e));if(uZ(e))return rl(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!sZ(e)&&!dz(e)){var re=Gm(e,m),ce=sz?sz(e)===Object.prototype:e instanceof Object||e.constructor===Object,ee=e instanceof Object?"":"null prototype",Le=!ce&&il&&Object(e)===e&&il in e?pE.call(Do(e),8,-1):ee?"Object":"",le=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=le+(Le||ee?"["+Pn.call(iz.call([],Le||[],ee||[]),": ")+"] ":"");return re.length===0?W+"{}":y?W+"{"+uE(re,y)+"}":W+"{ "+Pn.call(re,", ")+" }"}return String(e)},"inspect_");function gz(t,e,r){var o=r.quoteStyle||e,n=hz[o];return n+t+n}a(gz,"wrapQuotes");function aZ(t){return zo.call(String(t),/"/g,""")}a(aZ,"quote");function wi(t){return!il||!(typeof t=="object"&&(il in t||typeof t[il]<"u"))}a(wi,"canTrustToString");function cE(t){return Do(t)==="[object Array]"&&wi(t)}a(cE,"isArray");function sZ(t){return Do(t)==="[object Date]"&&wi(t)}a(sZ,"isDate");function dz(t){return Do(t)==="[object RegExp]"&&wi(t)}a(dz,"isRegExp");function cZ(t){return Do(t)==="[object Error]"&&wi(t)}a(cZ,"isError");function uZ(t){return Do(t)==="[object String]"&&wi(t)}a(uZ,"isString");function lZ(t){return Do(t)==="[object Number]"&&wi(t)}a(lZ,"isNumber");function dZ(t){return Do(t)==="[object Boolean]"&&wi(t)}a(dZ,"isBoolean");function yz(t){if(os)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!aE)return!1;try{return aE.call(t),!0}catch{}return!1}a(yz,"isSymbol");function pZ(t){if(!t||typeof t!="object"||!iE)return!1;try{return iE.call(t),!0}catch{}return!1}a(pZ,"isBigInt");var fZ=Object.prototype.hasOwnProperty||function(t){return t in this};function Wn(t,e){return fZ.call(t,e)}a(Wn,"has");function Do(t){return eZ.call(t)}a(Do,"toStr");function mZ(t){if(t.name)return t.name;var e=rZ.call(tZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}a(mZ,"nameOf");function _z(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}a(_z,"indexOf");function hZ(t){if(!Vm||!t||typeof t!="object")return!1;try{Vm.call(t);try{Hm.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}a(hZ,"isMap");function gZ(t){if(!nl||!t||typeof t!="object")return!1;try{nl.call(t,nl);try{ol.call(t,ol)}catch{return!0}return t instanceof WeakMap}catch{}return!1}a(gZ,"isWeakMap");function yZ(t){if(!nz||!t||typeof t!="object")return!1;try{return nz.call(t),!0}catch{}return!1}a(yZ,"isWeakRef");function _Z(t){if(!Hm||!t||typeof t!="object")return!1;try{Hm.call(t);try{Vm.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}a(_Z,"isSet");function vZ(t){if(!ol||!t||typeof t!="object")return!1;try{ol.call(t,ol);try{nl.call(t,nl)}catch{return!0}return t instanceof WeakSet}catch{}return!1}a(vZ,"isWeakSet");function bZ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}a(bZ,"isElement");function vz(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return vz(pE.call(t,0,e.maxStringLength),e)+o}var n=iZ[e.quoteStyle||"single"];n.lastIndex=0;var i=zo.call(zo.call(t,n,"\\$1"),/[\x00-\x1f]/g,SZ);return gz(i,"single",e)}a(vz,"inspectString");function SZ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+nZ.call(e.toString(16))}a(SZ,"lowbyte");function rl(t){return"Object("+t+")"}a(rl,"markBoxed");function oE(t){return t+" { ? }"}a(oE,"weakCollectionOf");function pz(t,e,r,o){var n=o?uE(r,o):Pn.call(r,", ");return t+" ("+e+") {"+n+"}"}a(pz,"collectionOf");function PZ(t){for(var e=0;e<t.length;e++)if(_z(t[e],`
|
|
56
|
-
`)>=0)return!1;return!0}a(
|
|
57
|
-
`+e.prev+e.base;return r+
|
|
58
|
-
`+e.prev}a(uE,"indentedJoin");function Gm(t,e){var r=cE(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Wn(t,n)?e(t[n],t):""}var i=typeof nE=="function"?nE(t):[],s;if(os){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var l in t)Wn(t,l)&&(r&&String(Number(l))===l&&l<t.length||os&&s["$"+l]instanceof Symbol||(fz.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof nE=="function")for(var p=0;p<i.length;p++)mz.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Gm,"arrObjKeys")});var Pz=z((qde,Sz)=>{"use strict";var TZ=al(),xZ=To(),Zm=a(function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},"listGetNode"),AZ=a(function(t,e){if(t){var r=Zm(t,e);return r&&r.value}},"listGet"),wZ=a(function(t,e,r){var o=Zm(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},"listSet"),IZ=a(function(t,e){return t?!!Zm(t,e):!1},"listHas"),CZ=a(function(t,e){if(t)return Zm(t,e,!0)},"listDelete");Sz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new xZ("Side channel does not contain "+TZ(o))},"assert"),delete:a(function(o){var n=CZ(e,o);return n&&e&&!e.next&&(e=void 0),!!n},"delete"),get:a(function(o){return AZ(e,o)},"get"),has:a(function(o){return IZ(e,o)},"has"),set:a(function(o,n){e||(e={next:void 0}),wZ(e,o,n)},"set")};return r},"getSideChannelList")});var fE=z((Vde,xz)=>{"use strict";var Ez=vu(),Tz=xb(),RZ=Tz([Ez("%String.prototype.indexOf%")]);xz.exports=a(function(e,r){var o=Ez(e,!!r);return typeof o=="function"&&RZ(e,".prototype.")>-1?Tz([o]):o},"callBoundIntrinsic")});var mE=z((Zde,wz)=>{"use strict";var OZ=vu(),sl=fE(),kZ=al(),NZ=To(),Az=OZ("%Map%",!0),$Z=sl("Map.prototype.get",!0),zZ=sl("Map.prototype.set",!0),DZ=sl("Map.prototype.has",!0),UZ=sl("Map.prototype.delete",!0),MZ=sl("Map.prototype.size",!0);wz.exports=!!Az&&a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new NZ("Side channel does not contain "+kZ(o))},"assert"),delete:a(function(o){if(e){var n=UZ(e,o);return MZ(e)===0&&(e=void 0),n}return!1},"delete"),get:a(function(o){if(e)return $Z(e,o)},"get"),has:a(function(o){return e?DZ(e,o):!1},"has"),set:a(function(o,n){e||(e=new Az),zZ(e,o,n)},"set")};return r},"getSideChannelMap")});var Cz=z((Kde,Iz)=>{"use strict";var LZ=vu(),Km=fE(),jZ=al(),Wm=mE(),FZ=To(),is=LZ("%WeakMap%",!0),BZ=Km("WeakMap.prototype.get",!0),qZ=Km("WeakMap.prototype.set",!0),GZ=Km("WeakMap.prototype.has",!0),VZ=Km("WeakMap.prototype.delete",!0);Iz.exports=is?a(function(){var e,r,o={assert:a(function(n){if(!o.has(n))throw new FZ("Side channel does not contain "+jZ(n))},"assert"),delete:a(function(n){if(is&&n&&(typeof n=="object"||typeof n=="function")){if(e)return VZ(e,n)}else if(Wm&&r)return r.delete(n);return!1},"delete"),get:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?BZ(e,n):r&&r.get(n)},"get"),has:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?GZ(e,n):!!r&&r.has(n)},"has"),set:a(function(n,i){is&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new is),qZ(e,n,i)):Wm&&(r||(r=Wm()),r.set(n,i))},"set")};return o},"getSideChannelWeakMap"):Wm});var hE=z((Xde,Rz)=>{"use strict";var HZ=To(),ZZ=al(),WZ=Pz(),KZ=mE(),JZ=Cz(),XZ=JZ||KZ||WZ;Rz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new HZ("Side channel does not contain "+ZZ(o))},"assert"),delete:a(function(o){return!!e&&e.delete(o)},"delete"),get:a(function(o){return e&&e.get(o)},"get"),has:a(function(o){return!!e&&e.has(o)},"has"),set:a(function(o,n){e||(e=XZ()),e.set(o,n)},"set")};return r},"getSideChannel")});var Jm=z((Qde,Oz)=>{"use strict";var YZ=String.prototype.replace,QZ=/%20/g,gE={RFC1738:"RFC1738",RFC3986:"RFC3986"};Oz.exports={default:gE.RFC3986,formatters:{RFC1738:a(function(t){return YZ.call(t,QZ,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:gE.RFC1738,RFC3986:gE.RFC3986}});var bE=z((tpe,kz)=>{"use strict";var eW=Jm(),tW=hE(),yE=Object.prototype.hasOwnProperty,Ii=Array.isArray,Xm=tW(),as=a(function(e,r){return Xm.set(e,r),e},"markOverflow"),Ci=a(function(e){return Xm.has(e)},"isOverflow"),cl=a(function(e){return Xm.get(e)},"getMaxIndex"),vE=a(function(e,r){Xm.set(e,r)},"setMaxIndex"),En=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),rW=a(function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(Ii(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&(n[n.length]=o[i]);r.obj[r.prop]=n}}},"compactQueue"),ul=a(function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},"arrayToObject"),nW=a(function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(Ii(e)){var n=e.length;if(o&&typeof o.arrayLimit=="number"&&n>o.arrayLimit)return as(ul(e.concat(r),o),n);e[n]=r}else if(e&&typeof e=="object")if(Ci(e)){var i=cl(e)+1;e[i]=r,vE(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!yE.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(Ci(r)){for(var s=Object.keys(r),u=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<s.length;l++){var p=parseInt(s[l],10);u[p+1]=r[s[l]]}return as(u,cl(r)+1)}var f=[e].concat(r);return o&&typeof o.arrayLimit=="number"&&f.length>o.arrayLimit?as(ul(f,o),f.length-1):f}var y=e;return Ii(e)&&!Ii(r)&&(y=ul(e,o)),Ii(e)&&Ii(r)?(r.forEach(function(m,h){if(yE.call(e,h)){var _=e[h];_&&typeof _=="object"&&m&&typeof m=="object"?e[h]=t(_,m,o):e[e.length]=m}else e[h]=m}),e):Object.keys(r).reduce(function(m,h){var _=r[h];if(yE.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,Ci(r)&&!Ci(m)&&as(m,cl(r)),Ci(m)){var P=parseInt(h,10);String(P)===h&&P>=0&&P>cl(m)&&vE(m,P)}return m},y)},"merge"),oW=a(function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},"assignSingleSource"),iW=a(function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},"decode"),_E=1024,aW=a(function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=_E){for(var p=s.length>=_E?s.slice(l,l+_E):s,f=[],y=0;y<p.length;++y){var m=p.charCodeAt(y);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===eW.RFC1738&&(m===40||m===41)){f[f.length]=p.charAt(y);continue}if(m<128){f[f.length]=En[m];continue}if(m<2048){f[f.length]=En[192|m>>6]+En[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=En[224|m>>12]+En[128|m>>6&63]+En[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=En[240|m>>18]+En[128|m>>12&63]+En[128|m>>6&63]+En[128|m&63]}u+=f.join("")}return u},"encode"),sW=a(function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],u=Object.keys(s),l=0;l<u.length;++l){var p=u[l],f=s[p];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r[r.length]={obj:s,prop:p},o[o.length]=f)}return rW(r),e},"compact"),cW=a(function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},"isRegExp"),uW=a(function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},"isBuffer"),lW=a(function(e,r,o,n){if(Ci(e)){var i=cl(e)+1;return e[i]=r,vE(e,i),e}var s=[].concat(e,r);return s.length>o?as(ul(s,{plainObjects:n}),s.length-1):s},"combine"),dW=a(function(e,r){if(Ii(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=r(e[n]);return o}return r(e)},"maybeMap");kz.exports={arrayToObject:ul,assign:oW,combine:lW,compact:sW,decode:iW,encode:aW,isBuffer:uW,isOverflow:Ci,isRegExp:cW,markOverflow:as,maybeMap:dW,merge:nW}});var Mz=z((npe,Uz)=>{"use strict";var $z=hE(),Ym=bE(),ll=Jm(),pW=Object.prototype.hasOwnProperty,zz={brackets:a(function(e){return e+"[]"},"brackets"),comma:"comma",indices:a(function(e,r){return e+"["+r+"]"},"indices"),repeat:a(function(e){return e},"repeat")},Tn=Array.isArray,fW=Array.prototype.push,Dz=a(function(t,e){fW.apply(t,Tn(e)?e:[e])},"pushToArray"),mW=Date.prototype.toISOString,Nz=ll.default,wt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ym.encode,encodeValuesOnly:!1,filter:void 0,format:Nz,formatter:ll.formatters[Nz],indices:!1,serializeDate:a(function(e){return mW.call(e)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},hW=a(function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},"isNonNullishPrimitive"),SE={},gW=a(function t(e,r,o,n,i,s,u,l,p,f,y,m,h,_,P,E,x,k){for(var L=e,Y=k,H=0,X=!1;(Y=Y.get(SE))!==void 0&&!X;){var re=Y.get(e);if(H+=1,typeof re<"u"){if(re===H)throw new RangeError("Cyclic object value");X=!0}typeof Y.get(SE)>"u"&&(H=0)}if(typeof f=="function"?L=f(r,L):L instanceof Date?L=h(L):o==="comma"&&Tn(L)&&(L=Ym.maybeMap(L,function(Qe){return Qe instanceof Date?h(Qe):Qe})),L===null){if(s)return p&&!E?p(r,wt.encoder,x,"key",_):r;L=""}if(hW(L)||Ym.isBuffer(L)){if(p){var ce=E?r:p(r,wt.encoder,x,"key",_);return[P(ce)+"="+P(p(L,wt.encoder,x,"value",_))]}return[P(r)+"="+P(String(L))]}var ee=[];if(typeof L>"u")return ee;var Le;if(o==="comma"&&Tn(L))E&&p&&(L=Ym.maybeMap(L,p)),Le=[{value:L.length>0?L.join(",")||null:void 0}];else if(Tn(f))Le=f;else{var le=Object.keys(L);Le=y?le.sort(y):le}var W=l?String(r).replace(/\./g,"%2E"):String(r),Z=n&&Tn(L)&&L.length===1?W+"[]":W;if(i&&Tn(L)&&L.length===0)return Z+"[]";for(var oe=0;oe<Le.length;++oe){var Q=Le[oe],de=typeof Q=="object"&&Q&&typeof Q.value<"u"?Q.value:L[Q];if(!(u&&de===null)){var me=m&&l?String(Q).replace(/\./g,"%2E"):String(Q),ze=Tn(L)?typeof o=="function"?o(Z,me):Z:Z+(m?"."+me:"["+me+"]");k.set(e,H);var je=$z();je.set(SE,k),Dz(ee,t(de,ze,o,n,i,s,u,l,o==="comma"&&E&&Tn(L)?null:p,f,y,m,h,_,P,E,x,je))}}return ee},"stringify"),yW=a(function(e){if(!e)return wt;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||wt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=ll.default;if(typeof e.format<"u"){if(!pW.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=ll.formatters[o],i=wt.filter;(typeof e.filter=="function"||Tn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in zz?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=wt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:wt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:wt.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:wt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?wt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:wt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:wt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:wt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:wt.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:wt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:wt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wt.strictNullHandling}},"normalizeStringifyOptions");Uz.exports=function(t,e){var r=t,o=yW(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):Tn(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var u=zz[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p=$z(),f=0;f<n.length;++f){var y=n[f],m=r[y];o.skipNulls&&m===null||Dz(s,gW(m,y,u,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var h=s.join(o.delimiter),_=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),h.length>0?_+h:""}});var Fz=z((ipe,jz)=>{"use strict";var xn=bE(),Qm=Object.prototype.hasOwnProperty,PE=Array.isArray,ht={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:xn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},_W=a(function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},"interpretNumericEntities"),Lz=a(function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},"parseArrayValue"),vW="utf8=%26%2310003%3B",bW="utf8=%E2%9C%93",SW=a(function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,r.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(r.throwOnLimitExceeded&&typeof i<"u"&&s.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,p=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===bW?p="utf-8":s[l]===vW&&(p="iso-8859-1"),u=l,l=s.length);for(l=0;l<s.length;++l)if(l!==u){var f=s[l],y=f.indexOf("]="),m=y===-1?f.indexOf("="):y+1,h,_;if(m===-1?(h=r.decoder(f,ht.decoder,p,"key"),_=r.strictNullHandling?null:""):(h=r.decoder(f.slice(0,m),ht.decoder,p,"key"),h!==null&&(_=xn.maybeMap(Lz(f.slice(m+1),r,PE(o[h])?o[h].length:0),function(E){return r.decoder(E,ht.decoder,p,"value")}))),_&&r.interpretNumericEntities&&p==="iso-8859-1"&&(_=_W(String(_))),f.indexOf("[]=")>-1&&(_=PE(_)?[_]:_),r.comma&&PE(_)&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");_=xn.combine([],_,r.arrayLimit,r.plainObjects)}if(h!==null){var P=Qm.call(o,h);P&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=xn.combine(o[h],_,r.arrayLimit,r.plainObjects):(!P||r.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),PW=a(function(t,e,r,o){var n=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");n=Array.isArray(e)&&e[i]?e[i].length:0}for(var s=o?e:Lz(e,r,n),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&r.parseArrays)xn.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:xn.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(y,10),h=!isNaN(m)&&p!==y&&String(m)===y&&m>=0&&r.parseArrays;if(!r.parseArrays&&y==="")l={0:s};else if(h&&m<r.arrayLimit)l=[],l[m]=s;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");h?(l[m]=s,xn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),EW=a(function(e,r){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Qm.call(Object.prototype,o)&&!r.allowPrototypes?void 0:[o];var n=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&Qm.call(Object.prototype,u)&&!r.allowPrototypes)return;l[l.length]=u}for(var p=0;(s=i.exec(o))!==null&&p<r.depth;){p+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&Qm.call(Object.prototype,f)&&!r.allowPrototypes)return;l[l.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l[l.length]="["+o.slice(s.index)+"]"}return l},"splitKeyIntoSegments"),TW=a(function(e,r,o,n){if(e){var i=EW(e,o);if(i)return PW(i,r,o,n)}},"parseQueryStringKeys"),xW=a(function(e){if(!e)return ht;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?ht.charset:e.charset,o=typeof e.duplicates>"u"?ht.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ht.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ht.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ht.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ht.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ht.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ht.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ht.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ht.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ht.decoder,delimiter:typeof e.delimiter=="string"||xn.isRegExp(e.delimiter)?e.delimiter:ht.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ht.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ht.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ht.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ht.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ht.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:ht.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ht.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},"normalizeParseOptions");jz.exports=function(t,e){var r=xW(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?SW(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=TW(u,o[u],r,typeof t=="string");n=xn.merge(n,l,r)}return r.allowSparse===!0?n:xn.compact(n)}});var EE=z((spe,Bz)=>{"use strict";var AW=Mz(),wW=Fz(),IW=Jm();Bz.exports={formats:IW,parse:wW,stringify:AW}});var Gz=z((TE,qz)=>{(function(t,e){typeof TE=="object"?qz.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(TE,function(){function t(){}return a(t,"UrlTemplate"),t.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")},t.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})},t.prototype.encodeValue=function(e,r,o){return r=e==="+"||e==="#"?this.encodeReserved(r):this.encodeUnreserved(r),o?this.encodeUnreserved(o)+"="+r:r},t.prototype.isDefined=function(e){return e!=null},t.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"},t.prototype.getValues=function(e,r,o,n){var i=e[o],s=[];if(this.isDefined(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(this.encodeValue(r,i,this.isKeyOperator(r)?o:null));else if(n==="*")Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){s.push(this.encodeValue(r,l,this.isKeyOperator(r)?o:null))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&s.push(this.encodeValue(r,i[l],l))},this);else{var u=[];Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){u.push(this.encodeValue(r,l))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&(u.push(this.encodeUnreserved(l)),u.push(this.encodeValue(r,i[l].toString())))},this),this.isKeyOperator(r)?s.push(this.encodeUnreserved(o)+"="+u.join(",")):u.length!==0&&s.push(u.join(","))}else r===";"?this.isDefined(i)&&s.push(this.encodeUnreserved(o)):i===""&&(r==="&"||r==="?")?s.push(this.encodeUnreserved(o)+"="):i===""&&s.push("");return s},t.prototype.parse=function(e){var r=this,o=["+","#",".","/",";","?","&"];return{expand:a(function(n){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(i,s,u){if(s){var l=null,p=[];if(o.indexOf(s.charAt(0))!==-1&&(l=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(y){var m=/([^:\*]*)(?::(\d+)|(\*))?/.exec(y);p.push.apply(p,r.getValues(n,l,m[1],m[2]||m[3]))}),l&&l!=="+"){var f=",";return l==="?"?f="&":l!=="#"&&(f=l),(p.length!==0?l:"")+p.join(f)}else return p.join(",")}else return r.encodeReserved(u)})},"expand")}},new t})});var Vz=z(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.isBrowser=CW;function CW(){return typeof window<"u"}a(CW,"isBrowser")});var th=z(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.headersToClassicHeaders=Hz;eh.marshallGaxiosResponse=RW;function Hz(t){let e={};if(t instanceof Headers)t.forEach((r,o)=>{e[o]=r});else if(Array.isArray(t))for(let[r,o]of t)e[r]=o;else e=t||{};return e}a(Hz,"headersToClassicHeaders");function RW(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:Hz(t?.headers)}})}a(RW,"marshallGaxiosResponse")});var Kz=z(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sessions=void 0;Ar.request=qW;Ar.closeSession=AE;var Wz=require("http2"),OW=require("zlib"),kW=require("url"),NW=EE(),$W=Pu(),zW=require("stream"),DW=require("util"),UW=require("process"),MW=th(),{HTTP2_HEADER_CONTENT_ENCODING:LW,HTTP2_HEADER_CONTENT_TYPE:Zz,HTTP2_HEADER_METHOD:jW,HTTP2_HEADER_PATH:FW,HTTP2_HEADER_STATUS:BW}=Wz.constants,dl=!!UW.env.HTTP2_DEBUG;Ar.sessions={};async function qW(t){let e=$W(!0,{},t);e.validateStatus=e.validateStatus||GW,e.responseType=e.responseType||"json";let r=new kW.URL(e.url),o=VW(r.host);o.timeoutHandle!==void 0&&clearTimeout(o.timeoutHandle);let n=r.pathname;if(t.params&&Object.keys(t.params).length>0){let y=(t.paramsSerializer||NW.stringify)(e.params);n+=`?${y}`}let i=(0,MW.headersToClassicHeaders)(e.headers);i[FW]=n,i[jW]=t.method||"GET",e.headers=i,i[Zz]||e.responseType!=="text"&&(i[Zz]="application/json");let s={config:t,headers:{},status:0,data:{},statusText:""},u=[],l=o.session,p;return new Promise((f,y)=>{try{p=l.request(i).on("response",m=>{Object.assign(s,{headers:m,status:m[BW]});let h=p;if(m[LW]==="gzip"&&(h=p.pipe(OW.createGunzip())),e.responseType==="stream"){s.data=h,f(s);return}h.on("data",_=>{u.push(_)}).on("error",_=>{y(_)}).on("end",()=>{let _=Buffer.concat(u),P=_;if(_){if(e.responseType==="json")try{P=JSON.parse(_.toString("utf8"))}catch{P=_.toString("utf8")}else e.responseType==="text"?P=_.toString("utf8"):e.responseType==="arraybuffer"&&(P=_.buffer);s.data=P}if(!e.validateStatus(s.status)){let E=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let x=DW.inspect(s.data,{depth:5});E=`${E}
|
|
59
|
-
'${
|
|
60
|
-
`),this.push(
|
|
61
|
-
content-type: ${
|
|
55
|
+
https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var YS=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(e={}){if(this._cachedProjectId=e.projectId||null,this.cachedCredential=e.authClient||null,this.keyFilename=e.keyFilename||e.keyFile,this.scopes=e.scopes,this.clientOptions=e.clientOptions||{},this.jsonContent=e.credentials||null,this.apiKey=e.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(on.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);e.universeDomain&&(this.clientOptions.universeDomain=e.universeDomain)}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath,e.useJWTAccessWithScope=this.useJWTAccessWithScope,e.defaultScopes=this.defaultScopes}getProjectId(e){if(e)this.getProjectIdAsync().then(r=>e(null,r),e);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(e){if(e instanceof Error&&e.message===on.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw e}}async findAndCacheProjectId(){let e=null;if(e||=await this.getProductionProjectId(),e||=await this.getFileProjectId(),e||=await this.getDefaultServiceProjectId(),e||=await this.getGCEProjectId(),e||=await this.getExternalAccountClientProjectId(),e)return this._cachedProjectId=e,e;throw new Error(on.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let e;try{e=await Xu.universe("universe-domain"),e||=XS.DEFAULT_UNIVERSE}catch(r){if(r&&r?.response?.status===404)e=XS.DEFAULT_UNIVERSE;else throw r}return e}async getUniverseDomain(){let e=(0,n$.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=XS.DEFAULT_UNIVERSE}return e}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let o;if(typeof e=="function"?r=e:o=e,r)this.getApplicationDefaultAsync(o).then(n=>r(null,n.credential,n.projectId),r);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(e={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let r;if(r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof Yu.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(r=await this._tryGetApplicationCredentialsFromWellKnownFile(e),r)return r instanceof rs.JWT?r.scopes=this.scopes:r instanceof Yu.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new _H.Compute(e));throw new Error(on.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(e,r=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return r&&(e.quotaProjectId=r),this.cachedCredential=e,{credential:e,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=Xu.getGCPResidency()||await Xu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){let r=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!r||r.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows())r=process.env.APPDATA;else{let n=process.env.HOME;n&&(r=JS.join(n,".config"))}return r&&(r=JS.join(r,"gcloud","application_default_credentials.json"),Ju.existsSync(r)||(r=null)),r?await this._getApplicationCredentialsFromFilePath(r,e):null}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0)throw new Error("The file path is invalid.");try{if(e=Ju.realpathSync(e),!Ju.lstatSync(e).isFile())throw new Error}catch(n){throw n instanceof Error&&(n.message=`The file at ${e} does not exist, or it is not a file. ${n.message}`),n}let o=Ju.createReadStream(e);return this.fromStream(o,r)}fromImpersonatedJSON(e){if(!e)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(e.type!==ns.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${ns.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!e.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!e.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let r=this.fromJSON(e.source_credentials);if(e.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${e.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(e.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${e.service_account_impersonation_url}`);let n=(this.scopes||e.scopes||this.defaultScopes)??[];return new ns.Impersonated({...e,sourceClient:r,targetPrincipal:o,targetScopes:Array.isArray(n)?n:[n]})}fromJSON(e,r={}){let o,n=(0,n$.originalOrCamelOptions)(r).get("universe_domain");return e.type===t$.USER_REFRESH_ACCOUNT_TYPE?(o=new t$.UserRefreshClient(r),o.fromJSON(e)):e.type===ns.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===Yu.EXTERNAL_ACCOUNT_TYPE?(o=PH.ExternalAccountClient.fromJSON({...e,...r}),o.scopes=this.getAnyScopes()):e.type===r$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new r$.ExternalAccountAuthorizedUserClient({...e,...r}):(r.scopes=this.scopes,o=new rs.JWT(r),this.setGapicJWTValues(o),o.fromJSON(e)),n&&(o.universeDomain=n),o}_cacheClientFromJSON(e,r){let o=this.fromJSON(e,r);return this.jsonContent=e,this.cachedCredential=o,o}fromStream(e,r={},o){let n={};if(typeof r=="function"?o=r:n=r,o)this.fromStreamAsync(e,n).then(i=>o(null,i),o);else return this.fromStreamAsync(e,n)}fromStreamAsync(e,r){return new Promise((o,n)=>{if(!e)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];e.setEncoding("utf8").on("error",n).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,r);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new rs.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return n(s)}})})}fromAPIKey(e,r={}){return new rs.JWT({...r,apiKey:e})}_isWindows(){let e=gH.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,mH.exec)("gcloud config config-helper --format json",(r,o)=>{if(!r&&o)try{let n=JSON.parse(o).configuration.properties.core.project;e(n);return}catch{}e(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let r=await this.getClient();if(r&&r.projectId)return r.projectId}let e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return e?e.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==Yu.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Xu.project("project-id")}catch{return null}}getCredentials(e){if(e)this.getCredentialsAsync().then(r=>e(null,r),e);else return this.getCredentialsAsync()}async getCredentialsAsync(){let e=await this.getClient();if(e instanceof ns.Impersonated)return{client_email:e.getTargetPrincipal()};if(e instanceof Yu.BaseExternalAccountClient){let r=e.getServiceAccountEmail();if(r)return{client_email:r,universe_domain:e.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[r,o]=await Promise.all([Xu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:r,universe_domain:o}}throw new Error(on.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let e=JS.resolve(this.keyFilename),r=Ju.createReadStream(e);return await this.fromStreamAsync(r,this.clientOptions)}else if(this.apiKey){let e=await this.fromAPIKey(this.apiKey,this.clientOptions);e.scopes=this.scopes;let{credential:r}=await this.#t(e);return r}else{let{credential:e}=await this.getApplicationDefaultAsync(this.clientOptions);return e}}async getIdTokenClient(e){let r=await this.getClient();if(!("fetchIdToken"in r))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new vH.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(e){return(await this.getClient()).getRequestHeaders(e)}async authorizeRequest(e={}){let r=e.url,n=await(await this.getClient()).getRequestHeaders(r);return e.headers=hH.Gaxios.mergeHeaders(e.headers,n),e}async fetch(...e){return(await this.getClient()).fetch(...e)}async request(e){return(await this.getClient()).request(e)}getEnv(){return(0,bH.getEnv)()}async sign(e,r){let o=await this.getClient(),n=await this.getUniverseDomain();if(r=r||`https://iamcredentials.${n}/v1/projects/-/serviceAccounts/`,o instanceof ns.Impersonated)return(await o.sign(e)).signedBlob;let i=(0,yH.createCrypto)();if(o instanceof rs.JWT&&o.key)return await i.sign(o.key,e);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,e,r)}async signBlob(e,r,o,n){let i=new URL(n+`${r}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:e.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};on.GoogleAuth=YS});var i$=D(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.IAMAuth=void 0;var QS=class{static{a(this,"IAMAuth")}selector;token;constructor(e,r){this.selector=e,this.token=r,this.selector=e,this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};Bm.IAMAuth=QS});var a$=D(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DownscopedClient=Pn.EXPIRATION_TIME_OFFSET=Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var SH=bt(),EH=require("stream"),eE=br(),TH=Sm(),xH="urn:ietf:params:oauth:grant-type:token-exchange",AH="urn:ietf:params:oauth:token-type:access_token",wH="urn:ietf:params:oauth:token-type:access_token";Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;Pn.EXPIRATION_TIME_OFFSET=300*1e3;var tE=class extends eE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,r={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof eE.AuthClient?{}:e),e instanceof eE.AuthClient?(this.authClient=e,this.credentialAccessBoundary=r):(this.authClient=e.authClient,this.credentialAccessBoundary=e.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new TH.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(e){if(!e.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(e),this.cachedDownscopedAccessToken=e}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let e=await this.getAccessToken(),r=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(r)}request(e,r){if(r)this.requestAsync(e).then(o=>r(null,o),o=>r(o,o.response));else return this.requestAsync(e)}async requestAsync(e,r=!1){let o;try{let n=await this.getRequestHeaders();e.headers=SH.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,n),o=await this.transporter.request(e)}catch(n){let i=n.response;if(i){let s=i.status,u=i.config.data instanceof EH.Readable;if(!r&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw n}return o}async refreshAccessTokenAsync(){let e=(await this.authClient.getAccessToken()).token,r={grantType:xH,requestedTokenType:AH,subjectToken:e,subjectTokenType:wH},o=await this.stsCredential.exchangeToken(r,void 0,this.credentialAccessBoundary),n=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:n;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(e){let r=new Date().getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};Pn.DownscopedClient=tE});var s$=D(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.PassThroughClient=void 0;var IH=br(),rE=class extends IH.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};qm.PassThroughClient=rE});var Qu=D(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.GoogleAuth=ge.auth=ge.PassThroughClient=ge.ExternalAccountAuthorizedUserClient=ge.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=ge.ExecutableError=ge.PluggableAuthClient=ge.DownscopedClient=ge.BaseExternalAccountClient=ge.ExternalAccountClient=ge.IdentityPoolClient=ge.AwsRequestSigner=ge.AwsClient=ge.UserRefreshClient=ge.LoginTicket=ge.ClientAuthentication=ge.OAuth2Client=ge.CodeChallengeMethod=ge.Impersonated=ge.JWT=ge.JWTAccess=ge.IdTokenClient=ge.IAMAuth=ge.GCPEnv=ge.Compute=ge.DEFAULT_UNIVERSE=ge.AuthClient=ge.gaxios=ge.gcpMetadata=void 0;var c$=o$();Object.defineProperty(ge,"GoogleAuth",{enumerable:!0,get:a(function(){return c$.GoogleAuth},"get")});ge.gcpMetadata=zu();ge.gaxios=bt();var u$=br();Object.defineProperty(ge,"AuthClient",{enumerable:!0,get:a(function(){return u$.AuthClient},"get")});Object.defineProperty(ge,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return u$.DEFAULT_UNIVERSE},"get")});var CH=qP();Object.defineProperty(ge,"Compute",{enumerable:!0,get:a(function(){return CH.Compute},"get")});var RH=HP();Object.defineProperty(ge,"GCPEnv",{enumerable:!0,get:a(function(){return RH.GCPEnv},"get")});var OH=i$();Object.defineProperty(ge,"IAMAuth",{enumerable:!0,get:a(function(){return OH.IAMAuth},"get")});var kH=VP();Object.defineProperty(ge,"IdTokenClient",{enumerable:!0,get:a(function(){return kH.IdTokenClient},"get")});var NH=uS();Object.defineProperty(ge,"JWTAccess",{enumerable:!0,get:a(function(){return NH.JWTAccess},"get")});var $H=dS();Object.defineProperty(ge,"JWT",{enumerable:!0,get:a(function(){return $H.JWT},"get")});var DH=hS();Object.defineProperty(ge,"Impersonated",{enumerable:!0,get:a(function(){return DH.Impersonated},"get")});var nE=xi();Object.defineProperty(ge,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return nE.CodeChallengeMethod},"get")});Object.defineProperty(ge,"OAuth2Client",{enumerable:!0,get:a(function(){return nE.OAuth2Client},"get")});Object.defineProperty(ge,"ClientAuthentication",{enumerable:!0,get:a(function(){return nE.ClientAuthentication},"get")});var zH=LP();Object.defineProperty(ge,"LoginTicket",{enumerable:!0,get:a(function(){return zH.LoginTicket},"get")});var UH=fS();Object.defineProperty(ge,"UserRefreshClient",{enumerable:!0,get:a(function(){return UH.UserRefreshClient},"get")});var MH=$S();Object.defineProperty(ge,"AwsClient",{enumerable:!0,get:a(function(){return MH.AwsClient},"get")});var LH=OS();Object.defineProperty(ge,"AwsRequestSigner",{enumerable:!0,get:a(function(){return LH.AwsRequestSigner},"get")});var jH=CS();Object.defineProperty(ge,"IdentityPoolClient",{enumerable:!0,get:a(function(){return jH.IdentityPoolClient},"get")});var FH=HS();Object.defineProperty(ge,"ExternalAccountClient",{enumerable:!0,get:a(function(){return FH.ExternalAccountClient},"get")});var BH=$o();Object.defineProperty(ge,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return BH.BaseExternalAccountClient},"get")});var qH=a$();Object.defineProperty(ge,"DownscopedClient",{enumerable:!0,get:a(function(){return qH.DownscopedClient},"get")});var l$=GS();Object.defineProperty(ge,"PluggableAuthClient",{enumerable:!0,get:a(function(){return l$.PluggableAuthClient},"get")});Object.defineProperty(ge,"ExecutableError",{enumerable:!0,get:a(function(){return l$.ExecutableError},"get")});var d$=KS();Object.defineProperty(ge,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return d$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(ge,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return d$.ExternalAccountAuthorizedUserClient},"get")});var GH=s$();Object.defineProperty(ge,"PassThroughClient",{enumerable:!0,get:a(function(){return GH.PassThroughClient},"get")});var VH=new c$.GoogleAuth;ge.auth=VH});var uD=D(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.getAPI=pZ;function pZ(t,e,r,o){let n;if(typeof e=="string")n=e,e={};else if(typeof e=="object")n=e.version,delete e.version;else throw new Error("Argument error: Accepts only string or object");try{let i=r[n],s=new i(e,o);return Object.freeze(s)}catch(i){throw new Error(`Unable to load endpoint ${t}("${n}"): ${i.message}`)}}a(pZ,"getAPI")});var dD=D((ope,lD)=>{lD.exports=require("util").inspect});var al=D((ipe,OD)=>{var mE=typeof Map=="function"&&Map.prototype,iE=Object.getOwnPropertyDescriptor&&mE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hm=mE&&iE&&typeof iE.get=="function"?iE.get:null,pD=mE&&Map.prototype.forEach,hE=typeof Set=="function"&&Set.prototype,aE=Object.getOwnPropertyDescriptor&&hE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zm=hE&&aE&&typeof aE.get=="function"?aE.get:null,fD=hE&&Set.prototype.forEach,fZ=typeof WeakMap=="function"&&WeakMap.prototype,nl=fZ?WeakMap.prototype.has:null,mZ=typeof WeakSet=="function"&&WeakSet.prototype,ol=mZ?WeakSet.prototype.has:null,hZ=typeof WeakRef=="function"&&WeakRef.prototype,mD=hZ?WeakRef.prototype.deref:null,gZ=Boolean.prototype.valueOf,yZ=Object.prototype.toString,_Z=Function.prototype.toString,vZ=String.prototype.match,gE=String.prototype.slice,Do=String.prototype.replace,bZ=String.prototype.toUpperCase,hD=String.prototype.toLowerCase,TD=RegExp.prototype.test,gD=Array.prototype.concat,Sn=Array.prototype.join,PZ=Array.prototype.slice,yD=Math.floor,uE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,sE=Object.getOwnPropertySymbols,lE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,os=typeof Symbol=="function"&&typeof Symbol.iterator=="object",il=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===os||!0)?Symbol.toStringTag:null,xD=Object.prototype.propertyIsEnumerable,_D=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function vD(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||TD.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-yD(-t):yD(t);if(o!==t){var n=String(o),i=gE.call(e,n.length+1);return Do.call(n,r,"$&_")+"."+Do.call(Do.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Do.call(e,r,"$&_")}a(vD,"addNumericSeparator");var dE=dD(),bD=dE.custom,PD=ID(bD)?bD:null,AD={__proto__:null,double:'"',single:"'"},SZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};OD.exports=a(function t(e,r,o,n){var i=r||{};if(Wn(i,"quoteStyle")&&!Wn(AD,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Wn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Wn(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Wn(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Wn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return RD(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?vD(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?vD(e,p):p}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return pE(e)?"[Array]":"[Object]";var y=jZ(i,o);if(typeof n>"u")n=[];else if(CD(n,e)>=0)return"[Circular]";function m(Z,oe,Q){if(oe&&(n=PZ.call(n),n.push(oe)),Q){var de={depth:i.depth};return Wn(i,"quoteStyle")&&(de.quoteStyle=i.quoteStyle),t(Z,de,o+1,n)}return t(Z,i,o+1,n)}if(a(m,"inspect"),typeof e=="function"&&!SD(e)){var h=OZ(e),_=Vm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+Sn.call(_,", ")+" }":"")}if(ID(e)){var S=os?Do.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):lE.call(e);return typeof e=="object"&&!os?rl(S):S}if(UZ(e)){for(var E="<"+hD.call(String(e.nodeName)),T=e.attributes||[],k=0;k<T.length;k++)E+=" "+T[k].name+"="+wD(EZ(T[k].value),"double",i);return E+=">",e.childNodes&&e.childNodes.length&&(E+="..."),E+="</"+hD.call(String(e.nodeName))+">",E}if(pE(e)){if(e.length===0)return"[]";var F=Vm(e,m);return y&&!LZ(F)?"["+fE(F,y)+"]":"[ "+Sn.call(F,", ")+" ]"}if(xZ(e)){var Y=Vm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!xD.call(e,"cause")?"{ ["+String(e)+"] "+Sn.call(gD.call("[cause]: "+m(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Sn.call(Y,", ")+" }"}if(typeof e=="object"&&s){if(PD&&typeof e[PD]=="function"&&dE)return dE(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(kZ(e)){var H=[];return pD&&pD.call(e,function(Z,oe){H.push(m(oe,e,!0)+" => "+m(Z,e))}),ED("Map",Hm.call(e),H,y)}if(DZ(e)){var W=[];return fD&&fD.call(e,function(Z){W.push(m(Z,e))}),ED("Set",Zm.call(e),W,y)}if(NZ(e))return cE("WeakMap");if(zZ(e))return cE("WeakSet");if($Z(e))return cE("WeakRef");if(wZ(e))return rl(m(Number(e)));if(CZ(e))return rl(m(uE.call(e)));if(IZ(e))return rl(gZ.call(e));if(AZ(e))return rl(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!TZ(e)&&!SD(e)){var re=Vm(e,m),ce=_D?_D(e)===Object.prototype:e instanceof Object||e.constructor===Object,ee=e instanceof Object?"":"null prototype",Le=!ce&&il&&Object(e)===e&&il in e?gE.call(zo(e),8,-1):ee?"Object":"",le=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",K=le+(Le||ee?"["+Sn.call(gD.call([],Le||[],ee||[]),": ")+"] ":"");return re.length===0?K+"{}":y?K+"{"+fE(re,y)+"}":K+"{ "+Sn.call(re,", ")+" }"}return String(e)},"inspect_");function wD(t,e,r){var o=r.quoteStyle||e,n=AD[o];return n+t+n}a(wD,"wrapQuotes");function EZ(t){return Do.call(String(t),/"/g,""")}a(EZ,"quote");function Ii(t){return!il||!(typeof t=="object"&&(il in t||typeof t[il]<"u"))}a(Ii,"canTrustToString");function pE(t){return zo(t)==="[object Array]"&&Ii(t)}a(pE,"isArray");function TZ(t){return zo(t)==="[object Date]"&&Ii(t)}a(TZ,"isDate");function SD(t){return zo(t)==="[object RegExp]"&&Ii(t)}a(SD,"isRegExp");function xZ(t){return zo(t)==="[object Error]"&&Ii(t)}a(xZ,"isError");function AZ(t){return zo(t)==="[object String]"&&Ii(t)}a(AZ,"isString");function wZ(t){return zo(t)==="[object Number]"&&Ii(t)}a(wZ,"isNumber");function IZ(t){return zo(t)==="[object Boolean]"&&Ii(t)}a(IZ,"isBoolean");function ID(t){if(os)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!lE)return!1;try{return lE.call(t),!0}catch{}return!1}a(ID,"isSymbol");function CZ(t){if(!t||typeof t!="object"||!uE)return!1;try{return uE.call(t),!0}catch{}return!1}a(CZ,"isBigInt");var RZ=Object.prototype.hasOwnProperty||function(t){return t in this};function Wn(t,e){return RZ.call(t,e)}a(Wn,"has");function zo(t){return yZ.call(t)}a(zo,"toStr");function OZ(t){if(t.name)return t.name;var e=vZ.call(_Z.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}a(OZ,"nameOf");function CD(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}a(CD,"indexOf");function kZ(t){if(!Hm||!t||typeof t!="object")return!1;try{Hm.call(t);try{Zm.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}a(kZ,"isMap");function NZ(t){if(!nl||!t||typeof t!="object")return!1;try{nl.call(t,nl);try{ol.call(t,ol)}catch{return!0}return t instanceof WeakMap}catch{}return!1}a(NZ,"isWeakMap");function $Z(t){if(!mD||!t||typeof t!="object")return!1;try{return mD.call(t),!0}catch{}return!1}a($Z,"isWeakRef");function DZ(t){if(!Zm||!t||typeof t!="object")return!1;try{Zm.call(t);try{Hm.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}a(DZ,"isSet");function zZ(t){if(!ol||!t||typeof t!="object")return!1;try{ol.call(t,ol);try{nl.call(t,nl)}catch{return!0}return t instanceof WeakSet}catch{}return!1}a(zZ,"isWeakSet");function UZ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}a(UZ,"isElement");function RD(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return RD(gE.call(t,0,e.maxStringLength),e)+o}var n=SZ[e.quoteStyle||"single"];n.lastIndex=0;var i=Do.call(Do.call(t,n,"\\$1"),/[\x00-\x1f]/g,MZ);return wD(i,"single",e)}a(RD,"inspectString");function MZ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+bZ.call(e.toString(16))}a(MZ,"lowbyte");function rl(t){return"Object("+t+")"}a(rl,"markBoxed");function cE(t){return t+" { ? }"}a(cE,"weakCollectionOf");function ED(t,e,r,o){var n=o?fE(r,o):Sn.call(r,", ");return t+" ("+e+") {"+n+"}"}a(ED,"collectionOf");function LZ(t){for(var e=0;e<t.length;e++)if(CD(t[e],`
|
|
56
|
+
`)>=0)return!1;return!0}a(LZ,"singleLineValues");function jZ(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Sn.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Sn.call(Array(e+1),r)}}a(jZ,"getIndent");function fE(t,e){if(t.length===0)return"";var r=`
|
|
57
|
+
`+e.prev+e.base;return r+Sn.call(t,","+r)+`
|
|
58
|
+
`+e.prev}a(fE,"indentedJoin");function Vm(t,e){var r=pE(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Wn(t,n)?e(t[n],t):""}var i=typeof sE=="function"?sE(t):[],s;if(os){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var l in t)Wn(t,l)&&(r&&String(Number(l))===l&&l<t.length||os&&s["$"+l]instanceof Symbol||(TD.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof sE=="function")for(var p=0;p<i.length;p++)xD.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Vm,"arrObjKeys")});var ND=D((spe,kD)=>{"use strict";var FZ=al(),BZ=To(),Wm=a(function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},"listGetNode"),qZ=a(function(t,e){if(t){var r=Wm(t,e);return r&&r.value}},"listGet"),GZ=a(function(t,e,r){var o=Wm(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},"listSet"),VZ=a(function(t,e){return t?!!Wm(t,e):!1},"listHas"),HZ=a(function(t,e){if(t)return Wm(t,e,!0)},"listDelete");kD.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new BZ("Side channel does not contain "+FZ(o))},"assert"),delete:a(function(o){var n=HZ(e,o);return n&&e&&!e.next&&(e=void 0),!!n},"delete"),get:a(function(o){return qZ(e,o)},"get"),has:a(function(o){return VZ(e,o)},"has"),set:a(function(o,n){e||(e={next:void 0}),GZ(e,o,n)},"set")};return r},"getSideChannelList")});var yE=D((upe,zD)=>{"use strict";var $D=vu(),DD=Cb(),ZZ=DD([$D("%String.prototype.indexOf%")]);zD.exports=a(function(e,r){var o=$D(e,!!r);return typeof o=="function"&&ZZ(e,".prototype.")>-1?DD([o]):o},"callBoundIntrinsic")});var _E=D((dpe,MD)=>{"use strict";var WZ=vu(),sl=yE(),KZ=al(),JZ=To(),UD=WZ("%Map%",!0),XZ=sl("Map.prototype.get",!0),YZ=sl("Map.prototype.set",!0),QZ=sl("Map.prototype.has",!0),eW=sl("Map.prototype.delete",!0),tW=sl("Map.prototype.size",!0);MD.exports=!!UD&&a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new JZ("Side channel does not contain "+KZ(o))},"assert"),delete:a(function(o){if(e){var n=eW(e,o);return tW(e)===0&&(e=void 0),n}return!1},"delete"),get:a(function(o){if(e)return XZ(e,o)},"get"),has:a(function(o){return e?QZ(e,o):!1},"has"),set:a(function(o,n){e||(e=new UD),YZ(e,o,n)},"set")};return r},"getSideChannelMap")});var jD=D((fpe,LD)=>{"use strict";var rW=vu(),Jm=yE(),nW=al(),Km=_E(),oW=To(),is=rW("%WeakMap%",!0),iW=Jm("WeakMap.prototype.get",!0),aW=Jm("WeakMap.prototype.set",!0),sW=Jm("WeakMap.prototype.has",!0),cW=Jm("WeakMap.prototype.delete",!0);LD.exports=is?a(function(){var e,r,o={assert:a(function(n){if(!o.has(n))throw new oW("Side channel does not contain "+nW(n))},"assert"),delete:a(function(n){if(is&&n&&(typeof n=="object"||typeof n=="function")){if(e)return cW(e,n)}else if(Km&&r)return r.delete(n);return!1},"delete"),get:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?iW(e,n):r&&r.get(n)},"get"),has:a(function(n){return is&&n&&(typeof n=="object"||typeof n=="function")&&e?sW(e,n):!!r&&r.has(n)},"has"),set:a(function(n,i){is&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new is),aW(e,n,i)):Km&&(r||(r=Km()),r.set(n,i))},"set")};return o},"getSideChannelWeakMap"):Km});var vE=D((hpe,FD)=>{"use strict";var uW=To(),lW=al(),dW=ND(),pW=_E(),fW=jD(),mW=fW||pW||dW;FD.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new uW("Side channel does not contain "+lW(o))},"assert"),delete:a(function(o){return!!e&&e.delete(o)},"delete"),get:a(function(o){return e&&e.get(o)},"get"),has:a(function(o){return!!e&&e.has(o)},"has"),set:a(function(o,n){e||(e=mW()),e.set(o,n)},"set")};return r},"getSideChannel")});var Xm=D((ype,BD)=>{"use strict";var hW=String.prototype.replace,gW=/%20/g,bE={RFC1738:"RFC1738",RFC3986:"RFC3986"};BD.exports={default:bE.RFC3986,formatters:{RFC1738:a(function(t){return hW.call(t,gW,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:bE.RFC1738,RFC3986:bE.RFC3986}});var TE=D((vpe,qD)=>{"use strict";var yW=Xm(),_W=vE(),PE=Object.prototype.hasOwnProperty,Ci=Array.isArray,Ym=_W(),as=a(function(e,r){return Ym.set(e,r),e},"markOverflow"),Ri=a(function(e){return Ym.has(e)},"isOverflow"),cl=a(function(e){return Ym.get(e)},"getMaxIndex"),EE=a(function(e,r){Ym.set(e,r)},"setMaxIndex"),En=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),vW=a(function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(Ci(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&(n[n.length]=o[i]);r.obj[r.prop]=n}}},"compactQueue"),ul=a(function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},"arrayToObject"),bW=a(function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(Ci(e)){var n=e.length;if(o&&typeof o.arrayLimit=="number"&&n>o.arrayLimit)return as(ul(e.concat(r),o),n);e[n]=r}else if(e&&typeof e=="object")if(Ri(e)){var i=cl(e)+1;e[i]=r,EE(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!PE.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(Ri(r)){for(var s=Object.keys(r),u=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<s.length;l++){var p=parseInt(s[l],10);u[p+1]=r[s[l]]}return as(u,cl(r)+1)}var f=[e].concat(r);return o&&typeof o.arrayLimit=="number"&&f.length>o.arrayLimit?as(ul(f,o),f.length-1):f}var y=e;return Ci(e)&&!Ci(r)&&(y=ul(e,o)),Ci(e)&&Ci(r)?(r.forEach(function(m,h){if(PE.call(e,h)){var _=e[h];_&&typeof _=="object"&&m&&typeof m=="object"?e[h]=t(_,m,o):e[e.length]=m}else e[h]=m}),e):Object.keys(r).reduce(function(m,h){var _=r[h];if(PE.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,Ri(r)&&!Ri(m)&&as(m,cl(r)),Ri(m)){var S=parseInt(h,10);String(S)===h&&S>=0&&S>cl(m)&&EE(m,S)}return m},y)},"merge"),PW=a(function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},"assignSingleSource"),SW=a(function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},"decode"),SE=1024,EW=a(function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=SE){for(var p=s.length>=SE?s.slice(l,l+SE):s,f=[],y=0;y<p.length;++y){var m=p.charCodeAt(y);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===yW.RFC1738&&(m===40||m===41)){f[f.length]=p.charAt(y);continue}if(m<128){f[f.length]=En[m];continue}if(m<2048){f[f.length]=En[192|m>>6]+En[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=En[224|m>>12]+En[128|m>>6&63]+En[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=En[240|m>>18]+En[128|m>>12&63]+En[128|m>>6&63]+En[128|m&63]}u+=f.join("")}return u},"encode"),TW=a(function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],u=Object.keys(s),l=0;l<u.length;++l){var p=u[l],f=s[p];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r[r.length]={obj:s,prop:p},o[o.length]=f)}return vW(r),e},"compact"),xW=a(function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},"isRegExp"),AW=a(function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},"isBuffer"),wW=a(function(e,r,o,n){if(Ri(e)){var i=cl(e)+1;return e[i]=r,EE(e,i),e}var s=[].concat(e,r);return s.length>o?as(ul(s,{plainObjects:n}),s.length-1):s},"combine"),IW=a(function(e,r){if(Ci(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=r(e[n]);return o}return r(e)},"maybeMap");qD.exports={arrayToObject:ul,assign:PW,combine:wW,compact:TW,decode:SW,encode:EW,isBuffer:AW,isOverflow:Ri,isRegExp:xW,markOverflow:as,maybeMap:IW,merge:bW}});var KD=D((Ppe,WD)=>{"use strict";var VD=vE(),Qm=TE(),ll=Xm(),CW=Object.prototype.hasOwnProperty,HD={brackets:a(function(e){return e+"[]"},"brackets"),comma:"comma",indices:a(function(e,r){return e+"["+r+"]"},"indices"),repeat:a(function(e){return e},"repeat")},Tn=Array.isArray,RW=Array.prototype.push,ZD=a(function(t,e){RW.apply(t,Tn(e)?e:[e])},"pushToArray"),OW=Date.prototype.toISOString,GD=ll.default,wt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Qm.encode,encodeValuesOnly:!1,filter:void 0,format:GD,formatter:ll.formatters[GD],indices:!1,serializeDate:a(function(e){return OW.call(e)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},kW=a(function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},"isNonNullishPrimitive"),xE={},NW=a(function t(e,r,o,n,i,s,u,l,p,f,y,m,h,_,S,E,T,k){for(var F=e,Y=k,H=0,W=!1;(Y=Y.get(xE))!==void 0&&!W;){var re=Y.get(e);if(H+=1,typeof re<"u"){if(re===H)throw new RangeError("Cyclic object value");W=!0}typeof Y.get(xE)>"u"&&(H=0)}if(typeof f=="function"?F=f(r,F):F instanceof Date?F=h(F):o==="comma"&&Tn(F)&&(F=Qm.maybeMap(F,function(Qe){return Qe instanceof Date?h(Qe):Qe})),F===null){if(s)return p&&!E?p(r,wt.encoder,T,"key",_):r;F=""}if(kW(F)||Qm.isBuffer(F)){if(p){var ce=E?r:p(r,wt.encoder,T,"key",_);return[S(ce)+"="+S(p(F,wt.encoder,T,"value",_))]}return[S(r)+"="+S(String(F))]}var ee=[];if(typeof F>"u")return ee;var Le;if(o==="comma"&&Tn(F))E&&p&&(F=Qm.maybeMap(F,p)),Le=[{value:F.length>0?F.join(",")||null:void 0}];else if(Tn(f))Le=f;else{var le=Object.keys(F);Le=y?le.sort(y):le}var K=l?String(r).replace(/\./g,"%2E"):String(r),Z=n&&Tn(F)&&F.length===1?K+"[]":K;if(i&&Tn(F)&&F.length===0)return Z+"[]";for(var oe=0;oe<Le.length;++oe){var Q=Le[oe],de=typeof Q=="object"&&Q&&typeof Q.value<"u"?Q.value:F[Q];if(!(u&&de===null)){var me=m&&l?String(Q).replace(/\./g,"%2E"):String(Q),De=Tn(F)?typeof o=="function"?o(Z,me):Z:Z+(m?"."+me:"["+me+"]");k.set(e,H);var je=VD();je.set(xE,k),ZD(ee,t(de,De,o,n,i,s,u,l,o==="comma"&&E&&Tn(F)?null:p,f,y,m,h,_,S,E,T,je))}}return ee},"stringify"),$W=a(function(e){if(!e)return wt;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||wt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=ll.default;if(typeof e.format<"u"){if(!CW.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=ll.formatters[o],i=wt.filter;(typeof e.filter=="function"||Tn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in HD?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=wt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:wt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:wt.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:wt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?wt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:wt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:wt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:wt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:wt.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:wt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:wt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wt.strictNullHandling}},"normalizeStringifyOptions");WD.exports=function(t,e){var r=t,o=$W(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):Tn(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var u=HD[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p=VD(),f=0;f<n.length;++f){var y=n[f],m=r[y];o.skipNulls&&m===null||ZD(s,NW(m,y,u,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var h=s.join(o.delimiter),_=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),h.length>0?_+h:""}});var YD=D((Epe,XD)=>{"use strict";var xn=TE(),eh=Object.prototype.hasOwnProperty,AE=Array.isArray,ht={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:xn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},DW=a(function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},"interpretNumericEntities"),JD=a(function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},"parseArrayValue"),zW="utf8=%26%2310003%3B",UW="utf8=%E2%9C%93",MW=a(function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,r.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(r.throwOnLimitExceeded&&typeof i<"u"&&s.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,p=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===UW?p="utf-8":s[l]===zW&&(p="iso-8859-1"),u=l,l=s.length);for(l=0;l<s.length;++l)if(l!==u){var f=s[l],y=f.indexOf("]="),m=y===-1?f.indexOf("="):y+1,h,_;if(m===-1?(h=r.decoder(f,ht.decoder,p,"key"),_=r.strictNullHandling?null:""):(h=r.decoder(f.slice(0,m),ht.decoder,p,"key"),h!==null&&(_=xn.maybeMap(JD(f.slice(m+1),r,AE(o[h])?o[h].length:0),function(E){return r.decoder(E,ht.decoder,p,"value")}))),_&&r.interpretNumericEntities&&p==="iso-8859-1"&&(_=DW(String(_))),f.indexOf("[]=")>-1&&(_=AE(_)?[_]:_),r.comma&&AE(_)&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");_=xn.combine([],_,r.arrayLimit,r.plainObjects)}if(h!==null){var S=eh.call(o,h);S&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=xn.combine(o[h],_,r.arrayLimit,r.plainObjects):(!S||r.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),LW=a(function(t,e,r,o){var n=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");n=Array.isArray(e)&&e[i]?e[i].length:0}for(var s=o?e:JD(e,r,n),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&r.parseArrays)xn.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:xn.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(y,10),h=!isNaN(m)&&p!==y&&String(m)===y&&m>=0&&r.parseArrays;if(!r.parseArrays&&y==="")l={0:s};else if(h&&m<r.arrayLimit)l=[],l[m]=s;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");h?(l[m]=s,xn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),jW=a(function(e,r){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&eh.call(Object.prototype,o)&&!r.allowPrototypes?void 0:[o];var n=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&eh.call(Object.prototype,u)&&!r.allowPrototypes)return;l[l.length]=u}for(var p=0;(s=i.exec(o))!==null&&p<r.depth;){p+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&eh.call(Object.prototype,f)&&!r.allowPrototypes)return;l[l.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l[l.length]="["+o.slice(s.index)+"]"}return l},"splitKeyIntoSegments"),FW=a(function(e,r,o,n){if(e){var i=jW(e,o);if(i)return LW(i,r,o,n)}},"parseQueryStringKeys"),BW=a(function(e){if(!e)return ht;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?ht.charset:e.charset,o=typeof e.duplicates>"u"?ht.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ht.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ht.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ht.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ht.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ht.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ht.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ht.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ht.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ht.decoder,delimiter:typeof e.delimiter=="string"||xn.isRegExp(e.delimiter)?e.delimiter:ht.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ht.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ht.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ht.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ht.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ht.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:ht.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ht.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},"normalizeParseOptions");XD.exports=function(t,e){var r=BW(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?MW(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=FW(u,o[u],r,typeof t=="string");n=xn.merge(n,l,r)}return r.allowSparse===!0?n:xn.compact(n)}});var wE=D((xpe,QD)=>{"use strict";var qW=KD(),GW=YD(),VW=Xm();QD.exports={formats:VW,parse:GW,stringify:qW}});var tz=D((IE,ez)=>{(function(t,e){typeof IE=="object"?ez.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(IE,function(){function t(){}return a(t,"UrlTemplate"),t.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")},t.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})},t.prototype.encodeValue=function(e,r,o){return r=e==="+"||e==="#"?this.encodeReserved(r):this.encodeUnreserved(r),o?this.encodeUnreserved(o)+"="+r:r},t.prototype.isDefined=function(e){return e!=null},t.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"},t.prototype.getValues=function(e,r,o,n){var i=e[o],s=[];if(this.isDefined(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")i=i.toString(),n&&n!=="*"&&(i=i.substring(0,parseInt(n,10))),s.push(this.encodeValue(r,i,this.isKeyOperator(r)?o:null));else if(n==="*")Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){s.push(this.encodeValue(r,l,this.isKeyOperator(r)?o:null))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&s.push(this.encodeValue(r,i[l],l))},this);else{var u=[];Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){u.push(this.encodeValue(r,l))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&(u.push(this.encodeUnreserved(l)),u.push(this.encodeValue(r,i[l].toString())))},this),this.isKeyOperator(r)?s.push(this.encodeUnreserved(o)+"="+u.join(",")):u.length!==0&&s.push(u.join(","))}else r===";"?this.isDefined(i)&&s.push(this.encodeUnreserved(o)):i===""&&(r==="&"||r==="?")?s.push(this.encodeUnreserved(o)+"="):i===""&&s.push("");return s},t.prototype.parse=function(e){var r=this,o=["+","#",".","/",";","?","&"];return{expand:a(function(n){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(i,s,u){if(s){var l=null,p=[];if(o.indexOf(s.charAt(0))!==-1&&(l=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(y){var m=/([^:\*]*)(?::(\d+)|(\*))?/.exec(y);p.push.apply(p,r.getValues(n,l,m[1],m[2]||m[3]))}),l&&l!=="+"){var f=",";return l==="?"?f="&":l!=="#"&&(f=l),(p.length!==0?l:"")+p.join(f)}else return p.join(",")}else return r.encodeReserved(u)})},"expand")}},new t})});var rz=D(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.isBrowser=HW;function HW(){return typeof window<"u"}a(HW,"isBrowser")});var rh=D(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.headersToClassicHeaders=nz;th.marshallGaxiosResponse=ZW;function nz(t){let e={};if(t instanceof Headers)t.forEach((r,o)=>{e[o]=r});else if(Array.isArray(t))for(let[r,o]of t)e[r]=o;else e=t||{};return e}a(nz,"headersToClassicHeaders");function ZW(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:nz(t?.headers)}})}a(ZW,"marshallGaxiosResponse")});var az=D(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sessions=void 0;Ar.request=a3;Ar.closeSession=RE;var iz=require("http2"),WW=require("zlib"),KW=require("url"),JW=wE(),XW=Su(),YW=require("stream"),QW=require("util"),e3=require("process"),t3=rh(),{HTTP2_HEADER_CONTENT_ENCODING:r3,HTTP2_HEADER_CONTENT_TYPE:oz,HTTP2_HEADER_METHOD:n3,HTTP2_HEADER_PATH:o3,HTTP2_HEADER_STATUS:i3}=iz.constants,dl=!!e3.env.HTTP2_DEBUG;Ar.sessions={};async function a3(t){let e=XW(!0,{},t);e.validateStatus=e.validateStatus||s3,e.responseType=e.responseType||"json";let r=new KW.URL(e.url),o=c3(r.host);o.timeoutHandle!==void 0&&clearTimeout(o.timeoutHandle);let n=r.pathname;if(t.params&&Object.keys(t.params).length>0){let y=(t.paramsSerializer||JW.stringify)(e.params);n+=`?${y}`}let i=(0,t3.headersToClassicHeaders)(e.headers);i[o3]=n,i[n3]=t.method||"GET",e.headers=i,i[oz]||e.responseType!=="text"&&(i[oz]="application/json");let s={config:t,headers:{},status:0,data:{},statusText:""},u=[],l=o.session,p;return new Promise((f,y)=>{try{p=l.request(i).on("response",m=>{Object.assign(s,{headers:m,status:m[i3]});let h=p;if(m[r3]==="gzip"&&(h=p.pipe(WW.createGunzip())),e.responseType==="stream"){s.data=h,f(s);return}h.on("data",_=>{u.push(_)}).on("error",_=>{y(_)}).on("end",()=>{let _=Buffer.concat(u),S=_;if(_){if(e.responseType==="json")try{S=JSON.parse(_.toString("utf8"))}catch{S=_.toString("utf8")}else e.responseType==="text"?S=_.toString("utf8"):e.responseType==="arraybuffer"&&(S=_.buffer);s.data=S}if(!e.validateStatus(s.status)){let E=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let T=QW.inspect(s.data,{depth:5});E=`${E}
|
|
59
|
+
'${T}`}y(new Error(E,{cause:s}))}f(s)})}).on("error",m=>{y(m)})}catch(m){RE(r).then(()=>y(m)).catch(y);return}if(s.request=p,t.data){if(t.data instanceof YW.Stream)t.data.pipe(p);else if(typeof t.data=="string"){let m=Buffer.from(t.data);p.end(m)}else if(typeof t.data=="object"){let m=JSON.stringify(t.data);p.end(m)}}o.timeoutHandle=setTimeout(()=>RE(r),500)})}a(a3,"request");function s3(t){return t>=200&&t<300}a(s3,"validateStatus");function c3(t){if(Ar.sessions[t])dl&&console.log(`Used cached client for ${t}`);else{dl&&console.log(`Creating client for ${t}`);let e=iz.connect(`https://${t}`);e.on("error",r=>{console.error(`*ERROR*: ${r}`),delete Ar.sessions[t]}).on("goaway",(r,o)=>{console.error(`*GOAWAY*: ${r} : ${o}`),delete Ar.sessions[t]}),Ar.sessions[t]={session:e}}return Ar.sessions[t]}a(c3,"_getClient");async function RE(t){let e=Ar.sessions[t.host];if(!e)return;let{session:r}=e;delete Ar.sessions[t.host],dl&&console.error(`Closing ${t.host}`),r.close(()=>{dl&&console.error(`Closed ${t.host}`)}),setTimeout(()=>{r&&!r.destroyed&&(dl&&console.log(`Forcing close ${t.host}`),r&&r.destroy())},1e3)}a(RE,"closeSession")});var sz=D((Npe,u3)=>{u3.exports={name:"googleapis-common",version:"8.0.2",description:"A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",repository:{type:"git",directory:"packages/nodejs-googleapis-common",url:"https://github.com/googleapis/google-cloud-node-core.git"},main:"build/src/index.js",types:"build/src/index.d.ts",files:["build/src","!build/src/**/*.map"],scripts:{prebenchmark:"npm run compile",benchmark:"node build/benchmark/bench.js",compile:"tsc -p .",test:"c8 mocha build/test","system-test":"c8 mocha build/system-test --timeout 600000","presystem-test":"npm run compile",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",lint:"gts check","samples-test":"mocha build/samples-test",docs:"jsdoc -c .jsdoc.js",webpack:"webpack","browser-test":"karma start",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},keywords:[],author:"Google LLC",license:"Apache-2.0",dependencies:{extend:"^3.0.2",gaxios:"7.1.3","google-auth-library":"10.5.0","google-logging-utils":"1.1.3",qs:"^6.7.0","url-template":"^2.0.8"},devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/mv":"^2.1.0","@types/ncp":"^2.0.8","@types/nock":"^11.0.0","@types/proxyquire":"^1.3.31","@types/qs":"^6.5.3","@types/sinon":"^21.0.0","@types/tmp":"^0.2.6","@types/url-template":"^2.0.28",c8:"^10.1.3",codecov:"^3.8.3",gts:"^6.0.2",http2spy:"^2.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.4","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",mocha:"^11.1.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.1","path-to-regexp":"^6.0.0",proxyquire:"^2.1.3",puppeteer:"^24.0.0",sinon:"21.0.3",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"5.8.3",webpack:"^5.97.1","webpack-cli":"^6.0.1"},engines:{node:">=18.0.0"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/nodejs-googleapis-common"}});var nh=D(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.createAPIRequest=m3;var OE=bt(),l3=wE(),pz=require("stream"),cz=tz(),uz=Su(),NE=rz(),d3=az(),kE=rh(),fz=sz(),lz=a(()=>globalThis.crypto?.randomUUID()||require("crypto").randomUUID(),"randomUUID");function p3(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object"}a(p3,"isReadableStream");function f3(t,e){let r=new Array;return e.forEach(o=>{t[o]===void 0&&r.push(o)}),r.length>0?r:null}a(f3,"getMissingParams");function m3(t,e){if(e)dz(t).then(r=>e(null,r),e);else return dz(t)}a(m3,"createAPIRequest");async function dz(t){let e=uz(!0,{},t.context.google?._options||{},t.context._options||{},t.options),r=uz(!0,{},e.params,t.params);e.userAgentDirectives=e.userAgentDirectives||[];let o=r.media||{},n=r.requestBody;!r.requestBody&&r.resource&&(!t.requiredParams.includes("resource")||typeof r.resource!="string")&&(n=r.resource,delete r.resource),delete r.requestBody;let i=r.auth||e.auth,s=typeof o.body=="string"?"text/plain":"application/octet-stream";delete r.media,delete r.auth;let u=(0,kE.headersToClassicHeaders)(r.headers||{});h3(u,e.apiVersion),delete r.headers,Object.keys(r).forEach(h=>{if(h.slice(-1)==="_"){let _=h.slice(0,-1);r[_]=r[h],delete r[h]}});let l=f3(r,t.requiredParams);if(l)throw new Error("Missing required parameters: "+l.join(", "));if(e.url){let h=e.url;typeof h=="object"&&(h=h.toString()),e.url=cz.parse(h).expand(r)}if(t.mediaUrl&&(t.mediaUrl=cz.parse(t.mediaUrl).expand(r)),t.context._options.rootUrl!==void 0&&e.url!==void 0){let h=new URL(e.url),_=h.href.substr(h.origin.length);e.url=new URL(_,t.context._options.rootUrl).href}e.paramsSerializer=h=>l3.stringify(h,{arrayFormat:"repeat"}),t.pathParams.forEach(h=>delete r[h]),typeof i=="string"&&(r.key=r.key||i,i=void 0);function p(h){let _=lz(),S=`--${_}--`,E=new pz.PassThrough({flush(F){this.push(`\r
|
|
60
|
+
`),this.push(S),F()}}),T=new $E,k=p3(h[1].body);u["content-type"]=`multipart/related; boundary=${_}`;for(let F of h){let Y=`--${_}\r
|
|
61
|
+
content-type: ${F["content-type"]}\r
|
|
62
62
|
\r
|
|
63
|
-
`;E.push(Y),typeof
|
|
64
|
-
`)):(
|
|
65
|
-
content-type: ${
|
|
63
|
+
`;E.push(Y),typeof F.body=="string"?(E.push(F.body),E.push(`\r
|
|
64
|
+
`)):(T.on("progress",H=>{e.onUploadProgress&&e.onUploadProgress({bytesRead:H})}),F.body.pipe(T).pipe(E))}k||(E.push(S),E.push(null)),e.data=E}a(p,"multipartUpload");function f(h){let _=lz(),S=`--${_}--`;u["content-type"]=`multipart/related; boundary=${_}`;let E="";for(let T of h){let k=`--${_}\r
|
|
65
|
+
content-type: ${T["content-type"]}\r
|
|
66
66
|
\r
|
|
67
|
-
`;E+=k,typeof
|
|
68
|
-
`)}E+=P,e.data=E}if(a(f,"browserMultipartUpload"),t.mediaUrl&&o.body)if(e.url=t.mediaUrl,n){r.uploadType="multipart";let h=[{"content-type":"application/json",body:JSON.stringify(n)},{"content-type":o.mimeType||n&&n.mimeType||s,body:o.body}];(0,CE.isBrowser)()?f(h):p(h)}else r.uploadType="media",Object.assign(u,{"content-type":o.mimeType||s}),e.data=o.body;else e.data=n||void 0;if(e.headers=wE.Gaxios.mergeHeaders(e.headers||{},u),e.params=r,!(0,CE.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:rD.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let P=`${_.product}/${_.version}`;return _.comment&&(P+=` (${_.comment})`),P}).join(" ");e.headers.set("User-Agent",h)}if(e.validateStatus||(e.validateStatus=h=>h>=200&&h<300||h===304),e.retry=e.retry===void 0?!0:e.retry,delete e.auth,e.universeDomain&&e.universe_domain&&e.universeDomain!==e.universe_domain)throw new Error("Please set either universe_domain or universeDomain, but not both.");let y=typeof process=="object"&&typeof process.env=="object"?process.env.GOOGLE_CLOUD_UNIVERSE_DOMAIN:void 0,m=e.universeDomain??e.universe_domain??y??"googleapis.com";if(m!=="googleapis.com"&&e.url){let h=new URL(e.url);h.hostname.endsWith(".googleapis.com")&&(h.hostname=h.hostname.replace(/googleapis\.com$/,m),e.url=h.toString())}if(Object.keys(e.params).length||(delete e.params,delete e.paramsSerializer),i&&typeof i=="object"){let h=typeof i.getUniverseDomain=="function"?await i.getUniverseDomain():void 0;if(h&&m!==h)throw new Error(`The configured universe domain (${m}) does not match the universe domain found in the credentials (${h}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`);if(e.http2){let _=await i.getRequestHeaders(e.url),P=Object.assign({},e);return P.headers=wE.Gaxios.mergeHeaders(P.headers,_),WW.request(P)}else{let _=await i.request(e);return(0,IE.marshallGaxiosResponse)(_)}}else return new wE.Gaxios().request(e).then(h=>(0,IE.marshallGaxiosResponse)(h))}a(eD,"createAPIRequestAsync");var RE=class extends tD.Transform{static{a(this,"ProgressStream")}bytesRead=0;_transform(e,r,o){this.bytesRead+=e.length,this.emit("progress",this.bytesRead),this.push(e),o()}};function YW(t,e){(0,CE.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${rD.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(YW,"populateAPIHeader")});var nD=z(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.AuthPlus=void 0;var Kn=Qu(),kE=class extends Kn.GoogleAuth{static{a(this,"AuthPlus")}JWT=Kn.JWT;Compute=Kn.Compute;OAuth2=Kn.OAuth2Client;GoogleAuth=Kn.GoogleAuth;AwsClient=Kn.AwsClient;IdentityPoolClient=Kn.IdentityPoolClient;ExternalAccountClient=Kn.ExternalAccountClient;_cachedAuth;async getClient(e){return this._cachedAuth=new Kn.GoogleAuth(e),this._cachedAuth.getClient()}getProjectId(e){return e?this._cachedAuth?this._cachedAuth.getProjectId(e):super.getProjectId(e):this._cachedAuth?this._cachedAuth.getProjectId():super.getProjectId()}};nh.AuthPlus=kE});var $E=z(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Endpoint=void 0;var oD=rh(),NE=class{static{a(this,"Endpoint")}_options;google;constructor(e){this._options=e||{}}applySchema(e,r,o,n){if(this.applyMethodsFromSchema(e,r,o,n),o.resources){for(let i in o.resources)if(Object.prototype.hasOwnProperty.call(o.resources,i)){let s=o.resources[i];e[i]||(e[i]={}),this.applySchema(e[i],r,s,n)}}}applyMethodsFromSchema(e,r,o,n){if(o.methods){for(let i in o.methods)if(Object.prototype.hasOwnProperty.call(o.methods,i)){let s=o.methods[i];e[i]=this.makeMethod(r,s,n)}}}makeMethod(e,r,o){return(n,i)=>{let s=typeof n=="function"?{}:n;i=typeof n=="function"?n:i;let u=iD(e.rootUrl+e.servicePath+r.path),l={options:{url:u.substring(1,u.length-1),method:r.httpMethod,apiVersion:r.apiVersion},params:s,requiredParams:r.parameterOrder||[],pathParams:this.getPathParams(r.parameters),context:o};if(r.mediaUpload&&r.mediaUpload.protocols&&r.mediaUpload.protocols.simple&&r.mediaUpload.protocols.simple.path){let p=iD(e.rootUrl+r.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,oD.createAPIRequest)(l);(0,oD.createAPIRequest)(l,i)}}getPathParams(e){let r=new Array;return typeof e!="object"&&(e={}),Object.keys(e).forEach(o=>{e[o].location==="path"&&r.push(o)}),r}};oh.Endpoint=NE;function iD(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(iD,"buildurl")});var sD=z(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Discovery=void 0;var QW=require("fs"),e3=bt(),t3=require("url"),aD=require("util"),r3=rh(),n3=$E(),o3=aD.promisify(QW.readFile),zE=class{static{a(this,"Discovery")}transporter=new e3.Gaxios;options;constructor(e){this.options=e||{}}makeEndpoint(e){return r=>{let o=new n3.Endpoint(r);return o.applySchema(o,e,e,o),o}}log(...e){this.options&&this.options.debug&&console.log(...e)}async discoverAllAPIs(e){let r=new Headers(this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"}),n=(await this.transporter.request({url:e,headers:r})).data.items,i=await Promise.all(n.map(async l=>{let p=await this.discoverAPI(l.discoveryRestUrl);return{api:l,endpointCreator:p}})),s={},u={};for(let l of i)u[l.api.name]||(s[l.api.name]={},u[l.api.name]=p=>{let f=typeof p,y;if(f==="string")y=p,p={};else if(f==="object")y=p.version,delete p.version;else throw new Error("Argument error: Accepts only string or object");try{let m=l.endpointCreator(p,this);return Object.freeze(m)}catch(m){throw new Error(aD.format('Unable to load endpoint %s("%s"): %s',l.api.name,y,m.message))}}),s[l.api.name][l.api.version]=l.endpointCreator;return u}async discoverAPI(e){if(typeof e=="string"){let r=t3.parse(e);if(e&&!r.protocol){this.log("Reading from file "+e);let o=await o3(e,{encoding:"utf8"});return this.makeEndpoint(JSON.parse(o))}else{this.log("Requesting "+e);let o=await this.transporter.request({url:e});return this.makeEndpoint(o.data)}}else{let r=e;this.log("Requesting "+r.url);let o=r.url;delete r.url;let n={options:{url:o,method:"GET"},requiredParams:[],pathParams:[],params:r,context:{google:{_options:{}},_options:{}}},i=await(0,r3.createAPIRequest)(n);return this.makeEndpoint(i.data)}}};ih.Discovery=zE});var ah=z($e=>{"use strict";var i3=$e&&$e.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),a3=$e&&$e.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i3(e,t,r)};Object.defineProperty($e,"__esModule",{value:!0});$e.Endpoint=$e.Discovery=$e.AuthPlus=$e.createAPIRequest=$e.getAPI=$e.GaxiosError=$e.Gaxios=$e.AwsClient=$e.IdentityPoolClient=$e.BaseExternalAccountClient=$e.ExternalAccountClient=$e.GoogleAuth=$e.UserRefreshClient=$e.Compute=$e.JWT=$e.OAuth2Client=$e.gaxios=$e.googleAuthLibrary=void 0;$e.googleAuthLibrary=Qu();$e.gaxios=bt();var Jn=Qu();Object.defineProperty($e,"OAuth2Client",{enumerable:!0,get:a(function(){return Jn.OAuth2Client},"get")});Object.defineProperty($e,"JWT",{enumerable:!0,get:a(function(){return Jn.JWT},"get")});Object.defineProperty($e,"Compute",{enumerable:!0,get:a(function(){return Jn.Compute},"get")});Object.defineProperty($e,"UserRefreshClient",{enumerable:!0,get:a(function(){return Jn.UserRefreshClient},"get")});Object.defineProperty($e,"GoogleAuth",{enumerable:!0,get:a(function(){return Jn.GoogleAuth},"get")});Object.defineProperty($e,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.ExternalAccountClient},"get")});Object.defineProperty($e,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.BaseExternalAccountClient},"get")});Object.defineProperty($e,"IdentityPoolClient",{enumerable:!0,get:a(function(){return Jn.IdentityPoolClient},"get")});Object.defineProperty($e,"AwsClient",{enumerable:!0,get:a(function(){return Jn.AwsClient},"get")});var cD=bt();Object.defineProperty($e,"Gaxios",{enumerable:!0,get:a(function(){return cD.Gaxios},"get")});Object.defineProperty($e,"GaxiosError",{enumerable:!0,get:a(function(){return cD.GaxiosError},"get")});var s3=Y$();Object.defineProperty($e,"getAPI",{enumerable:!0,get:a(function(){return s3.getAPI},"get")});var c3=rh();Object.defineProperty($e,"createAPIRequest",{enumerable:!0,get:a(function(){return c3.createAPIRequest},"get")});var u3=nD();Object.defineProperty($e,"AuthPlus",{enumerable:!0,get:a(function(){return u3.AuthPlus},"get")});var l3=sD();Object.defineProperty($e,"Discovery",{enumerable:!0,get:a(function(){return l3.Discovery},"get")});var d3=$E();Object.defineProperty($e,"Endpoint",{enumerable:!0,get:a(function(){return d3.Endpoint},"get")});a3(th(),$e)});var lD=z(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.people_v1=void 0;var we=ah(),uD;(function(t){class e{static{a(this,"People")}context;contactGroups;otherContacts;people;constructor(l,p){this.context={_options:l||{},google:p},this.contactGroups=new r(this.context),this.otherContacts=new n(this.context),this.people=new i(this.context)}}t.People=e;class r{static{a(this,"Resource$Contactgroups")}context;members;constructor(l){this.context=l,this.members=new o(this.context)}batchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}create(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}delete(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}update(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups=r;class o{static{a(this,"Resource$Contactgroups$Members")}context;constructor(l){this.context=l}modify(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/members:modify").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups$Members=o;class n{static{a(this,"Resource$Othercontacts")}context;constructor(l){this.context=l}copyOtherContactToMyContactsGroup(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:copyOtherContactToMyContactsGroup").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}search(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Othercontacts=n;class i{static{a(this,"Resource$People")}context;connections;constructor(l){this.context=l,this.connections=new s(this.context)}batchCreateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchCreateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchDeleteContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchDeleteContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchUpdateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchUpdateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}createContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:createContact").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContact").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}getBatchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}listDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:listDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContact").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People=i;class s{static{a(this,"Resource$People$Connections")}context;constructor(l){this.context=l}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People$Connections=s})(uD||(sh.people_v1=uD={}))});var fD=z(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.AuthPlus=Fr.people_v1=Fr.auth=Fr.VERSIONS=void 0;Fr.people=p3;var dD=ah(),pD=lD();Object.defineProperty(Fr,"people_v1",{enumerable:!0,get:a(function(){return pD.people_v1},"get")});Fr.VERSIONS={v1:pD.people_v1.People};function p3(t){return(0,dD.getAPI)("people",t,Fr.VERSIONS,this)}a(p3,"people");var f3=new dD.AuthPlus;Fr.auth=f3;var m3=ah();Object.defineProperty(Fr,"AuthPlus",{enumerable:!0,get:a(function(){return m3.AuthPlus},"get")})});var mD=z((DE,UE)=>{(function(t,e){typeof DE=="object"&&typeof UE<"u"?UE.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(DE,(function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",u="day",l="week",p="month",f="quarter",y="year",m="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:a(function(le){var W=["th","st","nd","rd"],Z=le%100;return"["+le+(W[(Z-20)%10]||W[Z]||W[0])+"]"},"ordinal")},x=a(function(le,W,Z){var oe=String(le);return!oe||oe.length>=W?le:""+Array(W+1-oe.length).join(Z)+le},"m"),k={s:x,z:a(function(le){var W=-le.utcOffset(),Z=Math.abs(W),oe=Math.floor(Z/60),Q=Z%60;return(W<=0?"+":"-")+x(oe,2,"0")+":"+x(Q,2,"0")},"z"),m:a(function le(W,Z){if(W.date()<Z.date())return-le(Z,W);var oe=12*(Z.year()-W.year())+(Z.month()-W.month()),Q=W.clone().add(oe,p),de=Z-Q<0,me=W.clone().add(oe+(de?-1:1),p);return+(-(oe+(Z-Q)/(de?Q-me:me-Q))||0)},"t"),a:a(function(le){return le<0?Math.ceil(le)||0:Math.floor(le)},"a"),p:a(function(le){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:n,ms:o,Q:f}[le]||String(le||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(le){return le===void 0},"u")},L="en",Y={};Y[L]=E;var H=a(function(le){return le instanceof ee},"p"),X=a(function le(W,Z,oe){var Q;if(!W)return L;if(typeof W=="string"){var de=W.toLowerCase();Y[de]&&(Q=de),Z&&(Y[de]=Z,Q=de);var me=W.split("-");if(!Q&&me.length>1)return le(me[0])}else{var ze=W.name;Y[ze]=W,Q=ze}return!oe&&Q&&(L=Q),Q||!oe&&L},"t"),re=a(function(le,W){if(H(le))return le.clone();var Z=typeof W=="object"?W:{};return Z.date=le,Z.args=arguments,new ee(Z)},"w"),ce=k;ce.l=X,ce.i=H,ce.w=function(le,W){return re(le,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function le(Z){this.$L=X(Z.locale,null,!0),this.parse(Z)}a(le,"M");var W=le.prototype;return W.parse=function(Z){this.$d=(function(oe){var Q=oe.date,de=oe.utc;if(Q===null)return new Date(NaN);if(ce.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var me=Q.match(_);if(me){var ze=me[2]-1||0,je=(me[7]||"0").substring(0,3);return de?new Date(Date.UTC(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)):new Date(me[1],ze,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)}}return new Date(Q)})(Z),this.$x=Z.x||{},this.init()},W.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},W.$utils=function(){return ce},W.isValid=function(){return this.$d.toString()!==h},W.isSame=function(Z,oe){var Q=re(Z);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},W.isAfter=function(Z,oe){return re(Z)<this.startOf(oe)},W.isBefore=function(Z,oe){return this.endOf(oe)<re(Z)},W.$g=function(Z,oe,Q){return ce.u(Z)?this[oe]:this.set(Q,Z)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(Z,oe){var Q=this,de=!!ce.u(oe)||oe,me=ce.p(Z),ze=a(function(sr,Je){var et=ce.w(Q.$u?Date.UTC(Q.$y,Je,sr):new Date(Q.$y,Je,sr),Q);return de?et:et.endOf(u)},"l"),je=a(function(sr,Je){return ce.w(Q.toDate()[sr].apply(Q.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Je)),Q)},"$"),Qe=this.$W,it=this.$M,It=this.$D,se="set"+(this.$u?"UTC":"");switch(me){case y:return de?ze(1,0):ze(31,11);case p:return de?ze(1,it):ze(0,it+1);case l:var gt=this.$locale().weekStart||0,_t=(Qe<gt?Qe+7:Qe)-gt;return ze(de?It-_t:It+(6-_t),it);case u:case m:return je(se+"Hours",0);case s:return je(se+"Minutes",1);case i:return je(se+"Seconds",2);case n:return je(se+"Milliseconds",3);default:return this.clone()}},W.endOf=function(Z){return this.startOf(Z,!1)},W.$set=function(Z,oe){var Q,de=ce.p(Z),me="set"+(this.$u?"UTC":""),ze=(Q={},Q[u]=me+"Date",Q[m]=me+"Date",Q[p]=me+"Month",Q[y]=me+"FullYear",Q[s]=me+"Hours",Q[i]=me+"Minutes",Q[n]=me+"Seconds",Q[o]=me+"Milliseconds",Q)[de],je=de===u?this.$D+(oe-this.$W):oe;if(de===p||de===y){var Qe=this.clone().set(m,1);Qe.$d[ze](je),Qe.init(),this.$d=Qe.set(m,Math.min(this.$D,Qe.daysInMonth())).$d}else ze&&this.$d[ze](je);return this.init(),this},W.set=function(Z,oe){return this.clone().$set(Z,oe)},W.get=function(Z){return this[ce.p(Z)]()},W.add=function(Z,oe){var Q,de=this;Z=Number(Z);var me=ce.p(oe),ze=a(function(it){var It=re(de);return ce.w(It.date(It.date()+Math.round(it*Z)),de)},"y");if(me===p)return this.set(p,this.$M+Z);if(me===y)return this.set(y,this.$y+Z);if(me===u)return ze(1);if(me===l)return ze(7);var je=(Q={},Q[i]=e,Q[s]=r,Q[n]=t,Q)[me]||1,Qe=this.$d.getTime()+Z*je;return ce.w(Qe,this)},W.subtract=function(Z,oe){return this.add(-1*Z,oe)},W.format=function(Z){var oe=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||h;var de=Z||"YYYY-MM-DDTHH:mm:ssZ",me=ce.z(this),ze=this.$H,je=this.$m,Qe=this.$M,it=Q.weekdays,It=Q.months,se=Q.meridiem,gt=a(function(Je,et,b,T){return Je&&(Je[et]||Je(oe,de))||b[et].slice(0,T)},"h"),_t=a(function(Je){return ce.s(ze%12||12,Je,"0")},"d"),sr=se||function(Je,et,b){var T=Je<12?"AM":"PM";return b?T.toLowerCase():T};return de.replace(P,(function(Je,et){return et||(function(b){switch(b){case"YY":return String(oe.$y).slice(-2);case"YYYY":return ce.s(oe.$y,4,"0");case"M":return Qe+1;case"MM":return ce.s(Qe+1,2,"0");case"MMM":return gt(Q.monthsShort,Qe,It,3);case"MMMM":return gt(It,Qe);case"D":return oe.$D;case"DD":return ce.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return gt(Q.weekdaysMin,oe.$W,it,2);case"ddd":return gt(Q.weekdaysShort,oe.$W,it,3);case"dddd":return it[oe.$W];case"H":return String(ze);case"HH":return ce.s(ze,2,"0");case"h":return _t(1);case"hh":return _t(2);case"a":return sr(ze,je,!0);case"A":return sr(ze,je,!1);case"m":return String(je);case"mm":return ce.s(je,2,"0");case"s":return String(oe.$s);case"ss":return ce.s(oe.$s,2,"0");case"SSS":return ce.s(oe.$ms,3,"0");case"Z":return me}return null})(Je)||me.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(Z,oe,Q){var de,me=this,ze=ce.p(oe),je=re(Z),Qe=(je.utcOffset()-this.utcOffset())*e,it=this-je,It=a(function(){return ce.m(me,je)},"D");switch(ze){case y:de=It()/12;break;case p:de=It();break;case f:de=It()/3;break;case l:de=(it-Qe)/6048e5;break;case u:de=(it-Qe)/864e5;break;case s:de=it/r;break;case i:de=it/e;break;case n:de=it/t;break;default:de=it}return Q?de:ce.a(de)},W.daysInMonth=function(){return this.endOf(p).$D},W.$locale=function(){return Y[this.$L]},W.locale=function(Z,oe){if(!Z)return this.$L;var Q=this.clone(),de=X(Z,oe,!0);return de&&(Q.$L=de),Q},W.clone=function(){return ce.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},le})(),Le=ee.prototype;return re.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",u],["$M",p],["$y",y],["$D",m]].forEach((function(le){Le[le[1]]=function(W){return this.$g(W,le[0],le[1])}})),re.extend=function(le,W){return le.$i||(le(W,ee,re),le.$i=!0),re},re.locale=X,re.isDayjs=H,re.unix=function(le){return re(1e3*le)},re.en=Y[L],re.Ls=Y,re.p={},re}))});var g3={};Xt(g3,{googleContacts:()=>h3});module.exports=oM(g3);var dr={};Xt(dr,{$ZodAny:()=>$s,$ZodArray:()=>Ms,$ZodAsyncError:()=>Vr,$ZodBase64:()=>Ed,$ZodBase64URL:()=>Td,$ZodBigInt:()=>na,$ZodBigIntFormat:()=>Id,$ZodBoolean:()=>Ko,$ZodCIDRv4:()=>Sd,$ZodCIDRv6:()=>Pd,$ZodCUID:()=>fd,$ZodCUID2:()=>md,$ZodCatch:()=>Gd,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Sg,$ZodCheckEndsWith:()=>Ng,$ZodCheckGreaterThan:()=>rd,$ZodCheckIncludes:()=>Og,$ZodCheckLengthEquals:()=>wg,$ZodCheckLessThan:()=>td,$ZodCheckLowerCase:()=>Cg,$ZodCheckMaxLength:()=>xg,$ZodCheckMaxSize:()=>Pg,$ZodCheckMimeType:()=>zg,$ZodCheckMinLength:()=>Ag,$ZodCheckMinSize:()=>Eg,$ZodCheckMultipleOf:()=>vg,$ZodCheckNumberFormat:()=>bg,$ZodCheckOverwrite:()=>Dg,$ZodCheckProperty:()=>$g,$ZodCheckRegex:()=>Ig,$ZodCheckSizeEquals:()=>Tg,$ZodCheckStartsWith:()=>kg,$ZodCheckStringFormat:()=>ta,$ZodCheckUpperCase:()=>Rg,$ZodCodec:()=>ia,$ZodCustom:()=>Zs,$ZodCustomStringFormat:()=>wd,$ZodDate:()=>Us,$ZodDefault:()=>jd,$ZodDiscriminatedUnion:()=>Ls,$ZodE164:()=>xd,$ZodEmail:()=>ld,$ZodEmoji:()=>dd,$ZodEncodeError:()=>io,$ZodEnum:()=>Bs,$ZodError:()=>Ts,$ZodExactOptional:()=>Ld,$ZodFile:()=>Md,$ZodFunction:()=>Wd,$ZodGUID:()=>cd,$ZodIPv4:()=>_d,$ZodIPv6:()=>vd,$ZodISODate:()=>Rs,$ZodISODateTime:()=>Cs,$ZodISODuration:()=>ks,$ZodISOTime:()=>Os,$ZodIntersection:()=>zd,$ZodJWT:()=>Ad,$ZodKSUID:()=>yd,$ZodLazy:()=>Jd,$ZodLiteral:()=>qs,$ZodMAC:()=>bd,$ZodMap:()=>Dd,$ZodNaN:()=>Vd,$ZodNanoID:()=>pd,$ZodNever:()=>kd,$ZodNonOptional:()=>Bd,$ZodNull:()=>Od,$ZodNullable:()=>Vs,$ZodNumber:()=>ra,$ZodNumberFormat:()=>Ns,$ZodObject:()=>Nd,$ZodObjectJIT:()=>jg,$ZodOptional:()=>oa,$ZodPipe:()=>Hs,$ZodPrefault:()=>Fd,$ZodPromise:()=>Kd,$ZodReadonly:()=>Hd,$ZodRealError:()=>Qt,$ZodRecord:()=>Fs,$ZodRegistry:()=>Xd,$ZodSet:()=>Ud,$ZodString:()=>$n,$ZodStringFormat:()=>Xe,$ZodSuccess:()=>qd,$ZodSymbol:()=>Cd,$ZodTemplateLiteral:()=>Zd,$ZodTransform:()=>Gs,$ZodTuple:()=>js,$ZodType:()=>xe,$ZodULID:()=>hd,$ZodURL:()=>Is,$ZodUUID:()=>ud,$ZodUndefined:()=>Rd,$ZodUnion:()=>Jo,$ZodUnknown:()=>zs,$ZodVoid:()=>Ds,$ZodXID:()=>gd,$ZodXor:()=>$d,$brand:()=>ys,$constructor:()=>w,$input:()=>Qd,$output:()=>Yd,Doc:()=>ws,JSONSchema:()=>Nx,JSONSchemaGenerator:()=>Ep,NEVER:()=>Ll,TimePrecision:()=>tp,_any:()=>Oc,_array:()=>Ny,_base64:()=>yc,_base64url:()=>_c,_bigint:()=>ap,_boolean:()=>Ic,_catch:()=>lL,_check:()=>kx,_cidrv4:()=>hc,_cidrv6:()=>gc,_coercedBigint:()=>Rc,_coercedBoolean:()=>Cc,_coercedDate:()=>$c,_coercedNumber:()=>Ac,_coercedString:()=>ec,_cuid:()=>cc,_cuid2:()=>uc,_custom:()=>jc,_date:()=>fp,_decode:()=>Hl,_decodeAsync:()=>Wl,_default:()=>sL,_discriminatedUnion:()=>K1,_e164:()=>vc,_email:()=>tc,_emoji:()=>ac,_encode:()=>Vl,_encodeAsync:()=>Zl,_endsWith:()=>ri,_enum:()=>tL,_file:()=>hp,_float32:()=>rp,_float64:()=>np,_gt:()=>Zr,_gte:()=>At,_guid:()=>ca,_includes:()=>ei,_int:()=>wc,_int32:()=>op,_int64:()=>sp,_intersection:()=>J1,_ipv4:()=>fc,_ipv6:()=>mc,_isoDate:()=>Pc,_isoDateTime:()=>Sc,_isoDuration:()=>Tc,_isoTime:()=>Ec,_jwt:()=>bc,_ksuid:()=>pc,_lazy:()=>mL,_length:()=>fo,_literal:()=>nL,_lowercase:()=>Yo,_lt:()=>Hr,_lte:()=>Vt,_mac:()=>ep,_map:()=>Q1,_max:()=>Vt,_maxLength:()=>po,_maxSize:()=>Dn,_mime:()=>ni,_min:()=>At,_minLength:()=>vt,_minSize:()=>Wr,_multipleOf:()=>zn,_nan:()=>mp,_nanoid:()=>sc,_nativeEnum:()=>rL,_negative:()=>Dc,_never:()=>pp,_nonnegative:()=>Mc,_nonoptional:()=>cL,_nonpositive:()=>Uc,_normalize:()=>oi,_null:()=>dp,_nullable:()=>aL,_number:()=>xc,_optional:()=>iL,_overwrite:()=>Rr,_parse:()=>Ki,_parseAsync:()=>Ji,_pipe:()=>dL,_positive:()=>zc,_promise:()=>hL,_property:()=>Lc,_readonly:()=>pL,_record:()=>Y1,_refine:()=>Fc,_regex:()=>Ut,_safeDecode:()=>Jl,_safeDecodeAsync:()=>Yl,_safeEncode:()=>Kl,_safeEncodeAsync:()=>Xl,_safeParse:()=>Xi,_safeParseAsync:()=>Qi,_set:()=>eL,_size:()=>lo,_slugify:()=>ua,_startsWith:()=>ti,_string:()=>Qs,_stringFormat:()=>ci,_stringbool:()=>vp,_success:()=>uL,_superRefine:()=>gp,_symbol:()=>up,_templateLiteral:()=>fL,_toLowerCase:()=>ai,_toUpperCase:()=>si,_transform:()=>oL,_trim:()=>ii,_tuple:()=>X1,_uint32:()=>ip,_uint64:()=>cp,_ulid:()=>lc,_undefined:()=>lp,_union:()=>Z1,_unknown:()=>kc,_uppercase:()=>Qo,_url:()=>Xo,_uuid:()=>rc,_uuidv4:()=>nc,_uuidv6:()=>oc,_uuidv7:()=>ic,_void:()=>Nc,_xid:()=>dc,_xor:()=>W1,clone:()=>Rt,config:()=>pt,createStandardJSONSchemaMethod:()=>la,createToJSONSchemaMethod:()=>$y,decode:()=>QT,decodeAsync:()=>tx,describe:()=>yp,encode:()=>YT,encodeAsync:()=>ex,extractDefs:()=>ho,finalize:()=>go,flattenError:()=>Zi,formatError:()=>Wi,globalConfig:()=>gs,globalRegistry:()=>Ot,initializeContext:()=>mo,isValidBase64:()=>Lg,isValidBase64URL:()=>Ex,isValidJWT:()=>Tx,locales:()=>sa,meta:()=>_p,parse:()=>Ho,parseAsync:()=>Zo,prettifyError:()=>Gl,process:()=>Ye,regexes:()=>er,registry:()=>Ys,safeDecode:()=>nx,safeDecodeAsync:()=>ix,safeEncode:()=>rx,safeEncodeAsync:()=>ox,safeParse:()=>Yi,safeParseAsync:()=>ea,toDotPath:()=>XT,toJSONSchema:()=>Bc,treeifyError:()=>ql,util:()=>ie,version:()=>Ug});var Ll=Object.freeze({status:"aborted"});function w(t,e,r){function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(t))return;u._zod.traits.add(t),e(u,l);let p=s.prototype,f=Object.keys(p);for(let y=0;y<f.length;y++){let m=f[y];m in u||(u[m]=p[m].bind(u))}}a(o,"init");let n=r?.Parent??Object;class i extends n{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:t});function s(u){var l;let p=r?.Parent?new i:this;o(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t),"value")}),Object.defineProperty(s,"name",{value:t}),s}a(w,"$constructor");var ys=Symbol("zod_brand"),Vr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},io=class extends Error{static{a(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},gs={};function pt(t){return t&&Object.assign(gs,t),gs}a(pt,"config");var ie={};Xt(ie,{BIGINT_FORMAT_RANGES:()=>Gh,Class:()=>Uh,NUMBER_FORMAT_RANGES:()=>qh,aborted:()=>uo,allowsEval:()=>jh,assert:()=>uM,assertEqual:()=>iM,assertIs:()=>sM,assertNever:()=>cM,assertNotEqual:()=>aM,assignProp:()=>so,base64ToUint8Array:()=>WT,base64urlToUint8Array:()=>bM,cached:()=>Vi,captureStackTrace:()=>Fl,cleanEnum:()=>vM,cleanRegex:()=>bs,clone:()=>Rt,cloneDef:()=>dM,createTransparentProxy:()=>yM,defineLazy:()=>De,esc:()=>jl,escapeRegex:()=>Cr,extend:()=>GT,finalizeIssue:()=>Yt,floatSafeRemainder:()=>Mh,getElementAtPath:()=>pM,getEnumValues:()=>vs,getLengthableOrigin:()=>Es,getParsedType:()=>gM,getSizableOrigin:()=>Ps,hexToUint8Array:()=>PM,isObject:()=>Vo,isPlainObject:()=>co,issue:()=>Hi,joinValues:()=>G,jsonStringifyReplacer:()=>Gi,merge:()=>_M,mergeDefs:()=>Nn,normalizeParams:()=>te,nullish:()=>ao,numKeys:()=>hM,objectClone:()=>lM,omit:()=>qT,optionalKeys:()=>Bh,parsedType:()=>ae,partial:()=>HT,pick:()=>BT,prefixIssues:()=>lr,primitiveTypes:()=>Fh,promiseAllObject:()=>fM,propertyKeyTypes:()=>Ss,randomString:()=>mM,required:()=>ZT,safeExtend:()=>VT,shallowClone:()=>Bl,slugify:()=>Lh,stringifyPrimitive:()=>ne,uint8ArrayToBase64:()=>KT,uint8ArrayToBase64url:()=>SM,uint8ArrayToHex:()=>EM,unwrapMessage:()=>_s});function iM(t){return t}a(iM,"assertEqual");function aM(t){return t}a(aM,"assertNotEqual");function sM(t){}a(sM,"assertIs");function cM(t){throw new Error("Unexpected value in exhaustive check")}a(cM,"assertNever");function uM(t){}a(uM,"assert");function vs(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}a(vs,"getEnumValues");function G(t,e="|"){return t.map(r=>ne(r)).join(e)}a(G,"joinValues");function Gi(t,e){return typeof e=="bigint"?e.toString():e}a(Gi,"jsonStringifyReplacer");function Vi(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}a(Vi,"cached");function ao(t){return t==null}a(ao,"nullish");function bs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}a(bs,"cleanRegex");function Mh(t,e){let r=(t.toString().split(".")[1]||"").length,o=e.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}a(Mh,"floatSafeRemainder");var FT=Symbol("evaluating");function De(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==FT)return o===void 0&&(o=FT,o=r()),o},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}a(De,"defineLazy");function lM(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}a(lM,"objectClone");function so(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}a(so,"assignProp");function Nn(...t){let e={};for(let r of t){let o=Object.getOwnPropertyDescriptors(r);Object.assign(e,o)}return Object.defineProperties({},e)}a(Nn,"mergeDefs");function dM(t){return Nn(t._zod.def)}a(dM,"cloneDef");function pM(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}a(pM,"getElementAtPath");function fM(t){let e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}a(fM,"promiseAllObject");function mM(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}a(mM,"randomString");function jl(t){return JSON.stringify(t)}a(jl,"esc");function Lh(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(Lh,"slugify");var Fl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Vo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}a(Vo,"isObject");var jh=Vi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function co(t){if(Vo(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Vo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}a(co,"isPlainObject");function Bl(t){return co(t)?{...t}:Array.isArray(t)?[...t]:t}a(Bl,"shallowClone");function hM(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}a(hM,"numKeys");var gM=a(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),Ss=new Set(["string","number","symbol"]),Fh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Cr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Cr,"escapeRegex");function Rt(t,e,r){let o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}a(Rt,"clone");function te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:a(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:a(()=>e.error,"error")}:e}a(te,"normalizeParams");function yM(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}a(yM,"createTransparentProxy");function ne(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}a(ne,"stringifyPrimitive");function Bh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}a(Bh,"optionalKeys");var qh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function BT(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&(s[u]=r.shape[u])}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(BT,"pick");function qT(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&delete s[u]}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(qT,"omit");function GT(t,e){if(!co(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Nn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return so(this,"shape",i),i}});return Rt(t,n)}a(GT,"extend");function VT(t,e){if(!co(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return so(this,"shape",o),o}});return Rt(t,r)}a(VT,"safeExtend");function _M(t,e){let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return so(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return Rt(t,r)}a(_M,"merge");function HT(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Nn(e._zod.def,{get shape(){let u=e._zod.def.shape,l={...u};if(r)for(let p in r){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(l[p]=t?new t({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)l[p]=t?new t({type:"optional",innerType:u[p]}):u[p];return so(this,"shape",l),l},checks:[]});return Rt(e,s)}a(HT,"partial");function ZT(t,e,r){let o=Nn(e._zod.def,{get shape(){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new t({type:"nonoptional",innerType:n[s]});return so(this,"shape",i),i}});return Rt(e,o)}a(ZT,"required");function uo(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}a(uo,"aborted");function lr(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}a(lr,"prefixIssues");function _s(t){return typeof t=="string"?t:t?.message}a(_s,"unwrapMessage");function Yt(t,e,r){let o={...t,path:t.path??[]};if(!t.message){let n=_s(t.inst?._zod.def?.error?.(t))??_s(e?.error?.(t))??_s(r.customError?.(t))??_s(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}a(Yt,"finalizeIssue");function Ps(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(Ps,"getSizableOrigin");function Es(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(Es,"getLengthableOrigin");function ae(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}a(ae,"parsedType");function Hi(...t){let[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}a(Hi,"issue");function vM(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}a(vM,"cleanEnum");function WT(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}a(WT,"base64ToUint8Array");function KT(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}a(KT,"uint8ArrayToBase64");function bM(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return WT(e+r)}a(bM,"base64urlToUint8Array");function SM(t){return KT(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(SM,"uint8ArrayToBase64url");function PM(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)r[o/2]=Number.parseInt(e.slice(o,o+2),16);return r}a(PM,"hexToUint8Array");function EM(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a(EM,"uint8ArrayToHex");var Uh=class{static{a(this,"Class")}constructor(...e){}};var JT=a((t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Gi,2),Object.defineProperty(t,"toString",{value:a(()=>t.message,"value"),enumerable:!1})},"initializer"),Ts=w("$ZodError",JT),Qt=w("$ZodError",JT,{Parent:Error});function Zi(t,e=r=>r.message){let r={},o=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}a(Zi,"flattenError");function Wi(t,e=r=>r.message){let r={_errors:[]},o=a(n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(e(i));else{let s=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(i))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}},"processError");return o(t),r}a(Wi,"formatError");function ql(t,e=r=>r.message){let r={errors:[]},o=a((n,i=[])=>{var s,u;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(p=>o({issues:p},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let p=[...i,...l.path];if(p.length===0){r.errors.push(e(l));continue}let f=r,y=0;for(;y<p.length;){let m=p[y],h=y===p.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(u=f.items)[m]??(u[m]={errors:[]}),f=f.items[m]),h&&f.errors.push(e(l)),y++}}},"processError");return o(t),r}a(ql,"treeifyError");function XT(t){let e=[],r=t.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?e.push(`[${o}]`):typeof o=="symbol"?e.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?e.push(`[${JSON.stringify(o)}]`):(e.length&&e.push("."),e.push(o));return e.join("")}a(XT,"toDotPath");function Gl(t){let e=[],r=[...t.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)e.push(`\u2716 ${o.message}`),o.path?.length&&e.push(` \u2192 at ${XT(o.path)}`);return e.join(`
|
|
69
|
-
`)}a(Gl,"prettifyError");var Ki=a(t=>(e,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Vr;if(s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parse"),Ho=Ki(Qt),Ji=a(t=>async(e,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parseAsync"),Zo=Ji(Qt),Xi=a(t=>(e,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Vr;return i.issues.length?{success:!1,error:new(t??Ts)(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParse"),Yi=Xi(Qt),Qi=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParseAsync"),ea=Qi(Qt),Vl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ki(t)(e,r,n)},"_encode"),YT=Vl(Qt),Hl=a(t=>(e,r,o)=>Ki(t)(e,r,o),"_decode"),QT=Hl(Qt),Zl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ji(t)(e,r,n)},"_encodeAsync"),ex=Zl(Qt),Wl=a(t=>async(e,r,o)=>Ji(t)(e,r,o),"_decodeAsync"),tx=Wl(Qt),Kl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xi(t)(e,r,n)},"_safeEncode"),rx=Kl(Qt),Jl=a(t=>(e,r,o)=>Xi(t)(e,r,o),"_safeDecode"),nx=Jl(Qt),Xl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Qi(t)(e,r,n)},"_safeEncodeAsync"),ox=Xl(Qt),Yl=a(t=>async(e,r,o)=>Qi(t)(e,r,o),"_safeDecodeAsync"),ix=Yl(Qt);var er={};Xt(er,{base64:()=>ag,base64url:()=>Ql,bigint:()=>pg,boolean:()=>mg,browserEmail:()=>kM,cidrv4:()=>og,cidrv6:()=>ig,cuid:()=>Vh,cuid2:()=>Hh,date:()=>cg,datetime:()=>lg,domain:()=>zM,duration:()=>Xh,e164:()=>sg,email:()=>Qh,emoji:()=>eg,extendedDuration:()=>xM,guid:()=>Yh,hex:()=>DM,hostname:()=>$M,html5Email:()=>CM,idnEmail:()=>OM,integer:()=>fg,ipv4:()=>tg,ipv6:()=>rg,ksuid:()=>Kh,lowercase:()=>yg,mac:()=>ng,md5_base64:()=>MM,md5_base64url:()=>LM,md5_hex:()=>UM,nanoid:()=>Jh,null:()=>hg,number:()=>ed,rfc5322Email:()=>RM,sha1_base64:()=>FM,sha1_base64url:()=>BM,sha1_hex:()=>jM,sha256_base64:()=>GM,sha256_base64url:()=>VM,sha256_hex:()=>qM,sha384_base64:()=>ZM,sha384_base64url:()=>WM,sha384_hex:()=>HM,sha512_base64:()=>JM,sha512_base64url:()=>XM,sha512_hex:()=>KM,string:()=>dg,time:()=>ug,ulid:()=>Zh,undefined:()=>gg,unicodeEmail:()=>ax,uppercase:()=>_g,uuid:()=>Wo,uuid4:()=>AM,uuid6:()=>wM,uuid7:()=>IM,xid:()=>Wh});var Vh=/^[cC][^\s-]{8,}$/,Hh=/^[0-9a-z]+$/,Zh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wh=/^[0-9a-vA-V]{20}$/,Kh=/^[A-Za-z0-9]{27}$/,Jh=/^[a-zA-Z0-9_-]{21}$/,Xh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Wo=a(t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),AM=Wo(4),wM=Wo(6),IM=Wo(7),Qh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,CM=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,RM=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ax=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,OM=ax,kM=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,NM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eg(){return new RegExp(NM,"u")}a(eg,"emoji");var tg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ng=a(t=>{let e=Cr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},"mac"),og=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ig=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ag=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ql=/^[A-Za-z0-9_-]*$/,$M=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zM=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sg=/^\+[1-9]\d{6,14}$/,sx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cg=new RegExp(`^${sx}$`);function cx(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}a(cx,"timeSource");function ug(t){return new RegExp(`^${cx(t)}$`)}a(ug,"time");function lg(t){let e=cx({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${r.join("|")})`;return new RegExp(`^${sx}T(?:${o})$`)}a(lg,"datetime");var dg=a(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),pg=/^-?\d+n?$/,fg=/^-?\d+$/,ed=/^-?\d+(?:\.\d+)?$/,mg=/^(?:true|false)$/i,hg=/^null$/i;var gg=/^undefined$/i;var yg=/^[^A-Z]*$/,_g=/^[^a-z]*$/,DM=/^[0-9a-fA-F]*$/;function xs(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(xs,"fixedBase64");function As(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(As,"fixedBase64url");var UM=/^[0-9a-fA-F]{32}$/,MM=xs(22,"=="),LM=As(22),jM=/^[0-9a-fA-F]{40}$/,FM=xs(27,"="),BM=As(27),qM=/^[0-9a-fA-F]{64}$/,GM=xs(43,"="),VM=As(43),HM=/^[0-9a-fA-F]{96}$/,ZM=xs(64,""),WM=As(64),KM=/^[0-9a-fA-F]{128}$/,JM=xs(86,"=="),XM=As(86);var rt=w("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),lx={number:"number",bigint:"bigint",object:"date"},td=w("$ZodCheckLessThan",(t,e)=>{rt.init(t,e);let r=lx[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),rd=w("$ZodCheckGreaterThan",(t,e)=>{rt.init(t,e);let r=lx[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),vg=w("$ZodCheckMultipleOf",(t,e)=>{rt.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Mh(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),bg=w("$ZodCheckNumberFormat",(t,e)=>{rt.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),o=r?"int":"number",[n,i]=qh[e.format];t._zod.onattach.push(s=>{let u=s._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=fg)}),t._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:o,format:e.format,code:"invalid_type",continue:!1,input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Sg=w("$ZodCheckBigIntFormat",(t,e)=>{rt.init(t,e);let[r,o]=Gh[e.format];t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Pg=w("$ZodCheckMaxSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;n.size<=e.maximum||o.issues.push({origin:Ps(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Eg=w("$ZodCheckMinSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;n.size>=e.minimum||o.issues.push({origin:Ps(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Tg=w("$ZodCheckSizeEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{let n=o.value,i=n.size;if(i===e.size)return;let s=i>e.size;o.issues.push({origin:Ps(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),xg=w("$ZodCheckMaxLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;if(n.length<=e.maximum)return;let s=Es(n);o.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Ag=w("$ZodCheckMinLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;if(n.length>=e.minimum)return;let s=Es(n);o.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),wg=w("$ZodCheckLengthEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{let n=o.value,i=n.length;if(i===e.length)return;let s=Es(n),u=i>e.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ta=w("$ZodCheckStringFormat",(t,e)=>{var r,o;rt.init(t,e),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(o=t._zod).check??(o.check=()=>{})}),Ig=w("$ZodCheckRegex",(t,e)=>{ta.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Cg=w("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=yg),ta.init(t,e)}),Rg=w("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=_g),ta.init(t,e)}),Og=w("$ZodCheckIncludes",(t,e)=>{rt.init(t,e);let r=Cr(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),kg=w("$ZodCheckStartsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`^${Cr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),Ng=w("$ZodCheckEndsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`.*${Cr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function ux(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues))}a(ux,"handleCheckPropertyResult");var $g=w("$ZodCheckProperty",(t,e)=>{rt.init(t,e),t._zod.check=r=>{let o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>ux(n,r,e.property));ux(o,r,e.property)}}),zg=w("$ZodCheckMimeType",(t,e)=>{rt.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Dg=w("$ZodCheckOverwrite",(t,e)=>{rt.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var ws=class{static{a(this,"Doc")}constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let o=e.split(`
|
|
67
|
+
`;E+=k,typeof T.body=="string"&&(E+=T.body,E+=`\r
|
|
68
|
+
`)}E+=S,e.data=E}if(a(f,"browserMultipartUpload"),t.mediaUrl&&o.body)if(e.url=t.mediaUrl,n){r.uploadType="multipart";let h=[{"content-type":"application/json",body:JSON.stringify(n)},{"content-type":o.mimeType||n&&n.mimeType||s,body:o.body}];(0,NE.isBrowser)()?f(h):p(h)}else r.uploadType="media",Object.assign(u,{"content-type":o.mimeType||s}),e.data=o.body;else e.data=n||void 0;if(e.headers=OE.Gaxios.mergeHeaders(e.headers||{},u),e.params=r,!(0,NE.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:fz.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let S=`${_.product}/${_.version}`;return _.comment&&(S+=` (${_.comment})`),S}).join(" ");e.headers.set("User-Agent",h)}if(e.validateStatus||(e.validateStatus=h=>h>=200&&h<300||h===304),e.retry=e.retry===void 0?!0:e.retry,delete e.auth,e.universeDomain&&e.universe_domain&&e.universeDomain!==e.universe_domain)throw new Error("Please set either universe_domain or universeDomain, but not both.");let y=typeof process=="object"&&typeof process.env=="object"?process.env.GOOGLE_CLOUD_UNIVERSE_DOMAIN:void 0,m=e.universeDomain??e.universe_domain??y??"googleapis.com";if(m!=="googleapis.com"&&e.url){let h=new URL(e.url);h.hostname.endsWith(".googleapis.com")&&(h.hostname=h.hostname.replace(/googleapis\.com$/,m),e.url=h.toString())}if(Object.keys(e.params).length||(delete e.params,delete e.paramsSerializer),i&&typeof i=="object"){let h=typeof i.getUniverseDomain=="function"?await i.getUniverseDomain():void 0;if(h&&m!==h)throw new Error(`The configured universe domain (${m}) does not match the universe domain found in the credentials (${h}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`);if(e.http2){let _=await i.getRequestHeaders(e.url),S=Object.assign({},e);return S.headers=OE.Gaxios.mergeHeaders(S.headers,_),d3.request(S)}else{let _=await i.request(e);return(0,kE.marshallGaxiosResponse)(_)}}else return new OE.Gaxios().request(e).then(h=>(0,kE.marshallGaxiosResponse)(h))}a(dz,"createAPIRequestAsync");var $E=class extends pz.Transform{static{a(this,"ProgressStream")}bytesRead=0;_transform(e,r,o){this.bytesRead+=e.length,this.emit("progress",this.bytesRead),this.push(e),o()}};function h3(t,e){(0,NE.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${fz.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(h3,"populateAPIHeader")});var mz=D(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.AuthPlus=void 0;var Kn=Qu(),zE=class extends Kn.GoogleAuth{static{a(this,"AuthPlus")}JWT=Kn.JWT;Compute=Kn.Compute;OAuth2=Kn.OAuth2Client;GoogleAuth=Kn.GoogleAuth;AwsClient=Kn.AwsClient;IdentityPoolClient=Kn.IdentityPoolClient;ExternalAccountClient=Kn.ExternalAccountClient;_cachedAuth;async getClient(e){return this._cachedAuth=new Kn.GoogleAuth(e),this._cachedAuth.getClient()}getProjectId(e){return e?this._cachedAuth?this._cachedAuth.getProjectId(e):super.getProjectId(e):this._cachedAuth?this._cachedAuth.getProjectId():super.getProjectId()}};oh.AuthPlus=zE});var ME=D(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Endpoint=void 0;var hz=nh(),UE=class{static{a(this,"Endpoint")}_options;google;constructor(e){this._options=e||{}}applySchema(e,r,o,n){if(this.applyMethodsFromSchema(e,r,o,n),o.resources){for(let i in o.resources)if(Object.prototype.hasOwnProperty.call(o.resources,i)){let s=o.resources[i];e[i]||(e[i]={}),this.applySchema(e[i],r,s,n)}}}applyMethodsFromSchema(e,r,o,n){if(o.methods){for(let i in o.methods)if(Object.prototype.hasOwnProperty.call(o.methods,i)){let s=o.methods[i];e[i]=this.makeMethod(r,s,n)}}}makeMethod(e,r,o){return(n,i)=>{let s=typeof n=="function"?{}:n;i=typeof n=="function"?n:i;let u=gz(e.rootUrl+e.servicePath+r.path),l={options:{url:u.substring(1,u.length-1),method:r.httpMethod,apiVersion:r.apiVersion},params:s,requiredParams:r.parameterOrder||[],pathParams:this.getPathParams(r.parameters),context:o};if(r.mediaUpload&&r.mediaUpload.protocols&&r.mediaUpload.protocols.simple&&r.mediaUpload.protocols.simple.path){let p=gz(e.rootUrl+r.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,hz.createAPIRequest)(l);(0,hz.createAPIRequest)(l,i)}}getPathParams(e){let r=new Array;return typeof e!="object"&&(e={}),Object.keys(e).forEach(o=>{e[o].location==="path"&&r.push(o)}),r}};ih.Endpoint=UE;function gz(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(gz,"buildurl")});var _z=D(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.Discovery=void 0;var g3=require("fs"),y3=bt(),_3=require("url"),yz=require("util"),v3=nh(),b3=ME(),P3=yz.promisify(g3.readFile),LE=class{static{a(this,"Discovery")}transporter=new y3.Gaxios;options;constructor(e){this.options=e||{}}makeEndpoint(e){return r=>{let o=new b3.Endpoint(r);return o.applySchema(o,e,e,o),o}}log(...e){this.options&&this.options.debug&&console.log(...e)}async discoverAllAPIs(e){let r=new Headers(this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"}),n=(await this.transporter.request({url:e,headers:r})).data.items,i=await Promise.all(n.map(async l=>{let p=await this.discoverAPI(l.discoveryRestUrl);return{api:l,endpointCreator:p}})),s={},u={};for(let l of i)u[l.api.name]||(s[l.api.name]={},u[l.api.name]=p=>{let f=typeof p,y;if(f==="string")y=p,p={};else if(f==="object")y=p.version,delete p.version;else throw new Error("Argument error: Accepts only string or object");try{let m=l.endpointCreator(p,this);return Object.freeze(m)}catch(m){throw new Error(yz.format('Unable to load endpoint %s("%s"): %s',l.api.name,y,m.message))}}),s[l.api.name][l.api.version]=l.endpointCreator;return u}async discoverAPI(e){if(typeof e=="string"){let r=_3.parse(e);if(e&&!r.protocol){this.log("Reading from file "+e);let o=await P3(e,{encoding:"utf8"});return this.makeEndpoint(JSON.parse(o))}else{this.log("Requesting "+e);let o=await this.transporter.request({url:e});return this.makeEndpoint(o.data)}}else{let r=e;this.log("Requesting "+r.url);let o=r.url;delete r.url;let n={options:{url:o,method:"GET"},requiredParams:[],pathParams:[],params:r,context:{google:{_options:{}},_options:{}}},i=await(0,v3.createAPIRequest)(n);return this.makeEndpoint(i.data)}}};ah.Discovery=LE});var sh=D($e=>{"use strict";var S3=$e&&$e.__createBinding||(Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:a(function(){return e[r]},"get")}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]})),E3=$e&&$e.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&S3(e,t,r)};Object.defineProperty($e,"__esModule",{value:!0});$e.Endpoint=$e.Discovery=$e.AuthPlus=$e.createAPIRequest=$e.getAPI=$e.GaxiosError=$e.Gaxios=$e.AwsClient=$e.IdentityPoolClient=$e.BaseExternalAccountClient=$e.ExternalAccountClient=$e.GoogleAuth=$e.UserRefreshClient=$e.Compute=$e.JWT=$e.OAuth2Client=$e.gaxios=$e.googleAuthLibrary=void 0;$e.googleAuthLibrary=Qu();$e.gaxios=bt();var Jn=Qu();Object.defineProperty($e,"OAuth2Client",{enumerable:!0,get:a(function(){return Jn.OAuth2Client},"get")});Object.defineProperty($e,"JWT",{enumerable:!0,get:a(function(){return Jn.JWT},"get")});Object.defineProperty($e,"Compute",{enumerable:!0,get:a(function(){return Jn.Compute},"get")});Object.defineProperty($e,"UserRefreshClient",{enumerable:!0,get:a(function(){return Jn.UserRefreshClient},"get")});Object.defineProperty($e,"GoogleAuth",{enumerable:!0,get:a(function(){return Jn.GoogleAuth},"get")});Object.defineProperty($e,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.ExternalAccountClient},"get")});Object.defineProperty($e,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Jn.BaseExternalAccountClient},"get")});Object.defineProperty($e,"IdentityPoolClient",{enumerable:!0,get:a(function(){return Jn.IdentityPoolClient},"get")});Object.defineProperty($e,"AwsClient",{enumerable:!0,get:a(function(){return Jn.AwsClient},"get")});var vz=bt();Object.defineProperty($e,"Gaxios",{enumerable:!0,get:a(function(){return vz.Gaxios},"get")});Object.defineProperty($e,"GaxiosError",{enumerable:!0,get:a(function(){return vz.GaxiosError},"get")});var T3=uD();Object.defineProperty($e,"getAPI",{enumerable:!0,get:a(function(){return T3.getAPI},"get")});var x3=nh();Object.defineProperty($e,"createAPIRequest",{enumerable:!0,get:a(function(){return x3.createAPIRequest},"get")});var A3=mz();Object.defineProperty($e,"AuthPlus",{enumerable:!0,get:a(function(){return A3.AuthPlus},"get")});var w3=_z();Object.defineProperty($e,"Discovery",{enumerable:!0,get:a(function(){return w3.Discovery},"get")});var I3=ME();Object.defineProperty($e,"Endpoint",{enumerable:!0,get:a(function(){return I3.Endpoint},"get")});E3(rh(),$e)});var Pz=D(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.people_v1=void 0;var we=sh(),bz;(function(t){class e{static{a(this,"People")}context;contactGroups;otherContacts;people;constructor(l,p){this.context={_options:l||{},google:p},this.contactGroups=new r(this.context),this.otherContacts=new n(this.context),this.people=new i(this.context)}}t.People=e;class r{static{a(this,"Resource$Contactgroups")}context;members;constructor(l){this.context=l,this.members=new o(this.context)}batchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}create(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}delete(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}update(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups=r;class o{static{a(this,"Resource$Contactgroups$Members")}context;constructor(l){this.context=l}modify(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/members:modify").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Contactgroups$Members=o;class n{static{a(this,"Resource$Othercontacts")}context;constructor(l){this.context=l}copyOtherContactToMyContactsGroup(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:copyOtherContactToMyContactsGroup").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}search(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/otherContacts:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$Othercontacts=n;class i{static{a(this,"Resource$People")}context;connections;constructor(l){this.context=l,this.connections=new s(this.context)}batchCreateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchCreateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchDeleteContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchDeleteContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}batchUpdateContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchUpdateContacts").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}createContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:createContact").replace(/([^:]\/)\/+/g,"$1"),method:"POST",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContact").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}deleteContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:deleteContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}get(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}getBatchGet(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}listDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:listDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchContacts(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchContacts").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}searchDirectoryPeople(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/people:searchDirectoryPeople").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:[],pathParams:[],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContact(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContact").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}updateContactPhoto(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}:updateContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People=i;class s{static{a(this,"Resource$People$Connections")}context;constructor(l){this.context=l}list(l,p,f){let y=l||{},m=p||{};typeof l=="function"&&(f=l,y={},m={}),typeof p=="function"&&(f=p,m={});let h=m.rootUrl||"https://people.googleapis.com/",_={options:Object.assign({url:(h+"/v1/{+resourceName}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET",apiVersion:""},m),params:y,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(f)(0,we.createAPIRequest)(_,f);else return(0,we.createAPIRequest)(_)}}t.Resource$People$Connections=s})(bz||(ch.people_v1=bz={}))});var Tz=D(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.AuthPlus=Fr.people_v1=Fr.auth=Fr.VERSIONS=void 0;Fr.people=C3;var Sz=sh(),Ez=Pz();Object.defineProperty(Fr,"people_v1",{enumerable:!0,get:a(function(){return Ez.people_v1},"get")});Fr.VERSIONS={v1:Ez.people_v1.People};function C3(t){return(0,Sz.getAPI)("people",t,Fr.VERSIONS,this)}a(C3,"people");var R3=new Sz.AuthPlus;Fr.auth=R3;var O3=sh();Object.defineProperty(Fr,"AuthPlus",{enumerable:!0,get:a(function(){return O3.AuthPlus},"get")})});var xz=D((jE,FE)=>{(function(t,e){typeof jE=="object"&&typeof FE<"u"?FE.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(jE,(function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",u="day",l="week",p="month",f="quarter",y="year",m="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:a(function(le){var K=["th","st","nd","rd"],Z=le%100;return"["+le+(K[(Z-20)%10]||K[Z]||K[0])+"]"},"ordinal")},T=a(function(le,K,Z){var oe=String(le);return!oe||oe.length>=K?le:""+Array(K+1-oe.length).join(Z)+le},"m"),k={s:T,z:a(function(le){var K=-le.utcOffset(),Z=Math.abs(K),oe=Math.floor(Z/60),Q=Z%60;return(K<=0?"+":"-")+T(oe,2,"0")+":"+T(Q,2,"0")},"z"),m:a(function le(K,Z){if(K.date()<Z.date())return-le(Z,K);var oe=12*(Z.year()-K.year())+(Z.month()-K.month()),Q=K.clone().add(oe,p),de=Z-Q<0,me=K.clone().add(oe+(de?-1:1),p);return+(-(oe+(Z-Q)/(de?Q-me:me-Q))||0)},"t"),a:a(function(le){return le<0?Math.ceil(le)||0:Math.floor(le)},"a"),p:a(function(le){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:n,ms:o,Q:f}[le]||String(le||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(le){return le===void 0},"u")},F="en",Y={};Y[F]=E;var H=a(function(le){return le instanceof ee},"p"),W=a(function le(K,Z,oe){var Q;if(!K)return F;if(typeof K=="string"){var de=K.toLowerCase();Y[de]&&(Q=de),Z&&(Y[de]=Z,Q=de);var me=K.split("-");if(!Q&&me.length>1)return le(me[0])}else{var De=K.name;Y[De]=K,Q=De}return!oe&&Q&&(F=Q),Q||!oe&&F},"t"),re=a(function(le,K){if(H(le))return le.clone();var Z=typeof K=="object"?K:{};return Z.date=le,Z.args=arguments,new ee(Z)},"w"),ce=k;ce.l=W,ce.i=H,ce.w=function(le,K){return re(le,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var ee=(function(){function le(Z){this.$L=W(Z.locale,null,!0),this.parse(Z)}a(le,"M");var K=le.prototype;return K.parse=function(Z){this.$d=(function(oe){var Q=oe.date,de=oe.utc;if(Q===null)return new Date(NaN);if(ce.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var me=Q.match(_);if(me){var De=me[2]-1||0,je=(me[7]||"0").substring(0,3);return de?new Date(Date.UTC(me[1],De,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)):new Date(me[1],De,me[3]||1,me[4]||0,me[5]||0,me[6]||0,je)}}return new Date(Q)})(Z),this.$x=Z.x||{},this.init()},K.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},K.$utils=function(){return ce},K.isValid=function(){return this.$d.toString()!==h},K.isSame=function(Z,oe){var Q=re(Z);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},K.isAfter=function(Z,oe){return re(Z)<this.startOf(oe)},K.isBefore=function(Z,oe){return this.endOf(oe)<re(Z)},K.$g=function(Z,oe,Q){return ce.u(Z)?this[oe]:this.set(Q,Z)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(Z,oe){var Q=this,de=!!ce.u(oe)||oe,me=ce.p(Z),De=a(function(sr,Je){var et=ce.w(Q.$u?Date.UTC(Q.$y,Je,sr):new Date(Q.$y,Je,sr),Q);return de?et:et.endOf(u)},"l"),je=a(function(sr,Je){return ce.w(Q.toDate()[sr].apply(Q.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Je)),Q)},"$"),Qe=this.$W,it=this.$M,It=this.$D,se="set"+(this.$u?"UTC":"");switch(me){case y:return de?De(1,0):De(31,11);case p:return de?De(1,it):De(0,it+1);case l:var gt=this.$locale().weekStart||0,_t=(Qe<gt?Qe+7:Qe)-gt;return De(de?It-_t:It+(6-_t),it);case u:case m:return je(se+"Hours",0);case s:return je(se+"Minutes",1);case i:return je(se+"Seconds",2);case n:return je(se+"Milliseconds",3);default:return this.clone()}},K.endOf=function(Z){return this.startOf(Z,!1)},K.$set=function(Z,oe){var Q,de=ce.p(Z),me="set"+(this.$u?"UTC":""),De=(Q={},Q[u]=me+"Date",Q[m]=me+"Date",Q[p]=me+"Month",Q[y]=me+"FullYear",Q[s]=me+"Hours",Q[i]=me+"Minutes",Q[n]=me+"Seconds",Q[o]=me+"Milliseconds",Q)[de],je=de===u?this.$D+(oe-this.$W):oe;if(de===p||de===y){var Qe=this.clone().set(m,1);Qe.$d[De](je),Qe.init(),this.$d=Qe.set(m,Math.min(this.$D,Qe.daysInMonth())).$d}else De&&this.$d[De](je);return this.init(),this},K.set=function(Z,oe){return this.clone().$set(Z,oe)},K.get=function(Z){return this[ce.p(Z)]()},K.add=function(Z,oe){var Q,de=this;Z=Number(Z);var me=ce.p(oe),De=a(function(it){var It=re(de);return ce.w(It.date(It.date()+Math.round(it*Z)),de)},"y");if(me===p)return this.set(p,this.$M+Z);if(me===y)return this.set(y,this.$y+Z);if(me===u)return De(1);if(me===l)return De(7);var je=(Q={},Q[i]=e,Q[s]=r,Q[n]=t,Q)[me]||1,Qe=this.$d.getTime()+Z*je;return ce.w(Qe,this)},K.subtract=function(Z,oe){return this.add(-1*Z,oe)},K.format=function(Z){var oe=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||h;var de=Z||"YYYY-MM-DDTHH:mm:ssZ",me=ce.z(this),De=this.$H,je=this.$m,Qe=this.$M,it=Q.weekdays,It=Q.months,se=Q.meridiem,gt=a(function(Je,et,b,x){return Je&&(Je[et]||Je(oe,de))||b[et].slice(0,x)},"h"),_t=a(function(Je){return ce.s(De%12||12,Je,"0")},"d"),sr=se||function(Je,et,b){var x=Je<12?"AM":"PM";return b?x.toLowerCase():x};return de.replace(S,(function(Je,et){return et||(function(b){switch(b){case"YY":return String(oe.$y).slice(-2);case"YYYY":return ce.s(oe.$y,4,"0");case"M":return Qe+1;case"MM":return ce.s(Qe+1,2,"0");case"MMM":return gt(Q.monthsShort,Qe,It,3);case"MMMM":return gt(It,Qe);case"D":return oe.$D;case"DD":return ce.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return gt(Q.weekdaysMin,oe.$W,it,2);case"ddd":return gt(Q.weekdaysShort,oe.$W,it,3);case"dddd":return it[oe.$W];case"H":return String(De);case"HH":return ce.s(De,2,"0");case"h":return _t(1);case"hh":return _t(2);case"a":return sr(De,je,!0);case"A":return sr(De,je,!1);case"m":return String(je);case"mm":return ce.s(je,2,"0");case"s":return String(oe.$s);case"ss":return ce.s(oe.$s,2,"0");case"SSS":return ce.s(oe.$ms,3,"0");case"Z":return me}return null})(Je)||me.replace(":","")}))},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Z,oe,Q){var de,me=this,De=ce.p(oe),je=re(Z),Qe=(je.utcOffset()-this.utcOffset())*e,it=this-je,It=a(function(){return ce.m(me,je)},"D");switch(De){case y:de=It()/12;break;case p:de=It();break;case f:de=It()/3;break;case l:de=(it-Qe)/6048e5;break;case u:de=(it-Qe)/864e5;break;case s:de=it/r;break;case i:de=it/e;break;case n:de=it/t;break;default:de=it}return Q?de:ce.a(de)},K.daysInMonth=function(){return this.endOf(p).$D},K.$locale=function(){return Y[this.$L]},K.locale=function(Z,oe){if(!Z)return this.$L;var Q=this.clone(),de=W(Z,oe,!0);return de&&(Q.$L=de),Q},K.clone=function(){return ce.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},le})(),Le=ee.prototype;return re.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",u],["$M",p],["$y",y],["$D",m]].forEach((function(le){Le[le[1]]=function(K){return this.$g(K,le[0],le[1])}})),re.extend=function(le,K){return le.$i||(le(K,ee,re),le.$i=!0),re},re.locale=W,re.isDayjs=H,re.unix=function(le){return re(1e3*le)},re.en=Y[F],re.Ls=Y,re.p={},re}))});var N3={};Xt(N3,{googleContacts:()=>k3});module.exports=hM(N3);var dr={};Xt(dr,{$ZodAny:()=>$s,$ZodArray:()=>Ms,$ZodAsyncError:()=>Vr,$ZodBase64:()=>Ed,$ZodBase64URL:()=>Td,$ZodBigInt:()=>oa,$ZodBigIntFormat:()=>Id,$ZodBoolean:()=>Ko,$ZodCIDRv4:()=>Pd,$ZodCIDRv6:()=>Sd,$ZodCUID:()=>fd,$ZodCUID2:()=>md,$ZodCatch:()=>Gd,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Sg,$ZodCheckEndsWith:()=>$g,$ZodCheckGreaterThan:()=>rd,$ZodCheckIncludes:()=>kg,$ZodCheckLengthEquals:()=>Ig,$ZodCheckLessThan:()=>td,$ZodCheckLowerCase:()=>Rg,$ZodCheckMaxLength:()=>Ag,$ZodCheckMaxSize:()=>Eg,$ZodCheckMimeType:()=>zg,$ZodCheckMinLength:()=>wg,$ZodCheckMinSize:()=>Tg,$ZodCheckMultipleOf:()=>bg,$ZodCheckNumberFormat:()=>Pg,$ZodCheckOverwrite:()=>Ug,$ZodCheckProperty:()=>Dg,$ZodCheckRegex:()=>Cg,$ZodCheckSizeEquals:()=>xg,$ZodCheckStartsWith:()=>Ng,$ZodCheckStringFormat:()=>ra,$ZodCheckUpperCase:()=>Og,$ZodCodec:()=>aa,$ZodCustom:()=>Zs,$ZodCustomStringFormat:()=>wd,$ZodDate:()=>Us,$ZodDefault:()=>jd,$ZodDiscriminatedUnion:()=>Ls,$ZodE164:()=>xd,$ZodEmail:()=>ld,$ZodEmoji:()=>dd,$ZodEncodeError:()=>io,$ZodEnum:()=>Bs,$ZodError:()=>Ts,$ZodExactOptional:()=>Ld,$ZodFile:()=>Md,$ZodFunction:()=>Wd,$ZodGUID:()=>cd,$ZodIPv4:()=>_d,$ZodIPv6:()=>vd,$ZodISODate:()=>Rs,$ZodISODateTime:()=>Cs,$ZodISODuration:()=>ks,$ZodISOTime:()=>Os,$ZodIntersection:()=>Dd,$ZodJWT:()=>Ad,$ZodKSUID:()=>yd,$ZodLazy:()=>Jd,$ZodLiteral:()=>qs,$ZodMAC:()=>bd,$ZodMap:()=>zd,$ZodNaN:()=>Vd,$ZodNanoID:()=>pd,$ZodNever:()=>kd,$ZodNonOptional:()=>Bd,$ZodNull:()=>Od,$ZodNullable:()=>Vs,$ZodNumber:()=>na,$ZodNumberFormat:()=>Ns,$ZodObject:()=>Nd,$ZodObjectJIT:()=>Fg,$ZodOptional:()=>ia,$ZodPipe:()=>Hs,$ZodPrefault:()=>Fd,$ZodPromise:()=>Kd,$ZodReadonly:()=>Hd,$ZodRealError:()=>Qt,$ZodRecord:()=>Fs,$ZodRegistry:()=>Xd,$ZodSet:()=>Ud,$ZodString:()=>$n,$ZodStringFormat:()=>Xe,$ZodSuccess:()=>qd,$ZodSymbol:()=>Cd,$ZodTemplateLiteral:()=>Zd,$ZodTransform:()=>Gs,$ZodTuple:()=>js,$ZodType:()=>xe,$ZodULID:()=>hd,$ZodURL:()=>Is,$ZodUUID:()=>ud,$ZodUndefined:()=>Rd,$ZodUnion:()=>Jo,$ZodUnknown:()=>Ds,$ZodVoid:()=>zs,$ZodXID:()=>gd,$ZodXor:()=>$d,$brand:()=>ys,$constructor:()=>w,$input:()=>Qd,$output:()=>Yd,Doc:()=>ws,JSONSchema:()=>Ux,JSONSchemaGenerator:()=>Ep,NEVER:()=>Ll,TimePrecision:()=>tp,_any:()=>Oc,_array:()=>$y,_base64:()=>yc,_base64url:()=>_c,_bigint:()=>ap,_boolean:()=>Ic,_catch:()=>PL,_check:()=>zx,_cidrv4:()=>hc,_cidrv6:()=>gc,_coercedBigint:()=>Rc,_coercedBoolean:()=>Cc,_coercedDate:()=>$c,_coercedNumber:()=>Ac,_coercedString:()=>ec,_cuid:()=>cc,_cuid2:()=>uc,_custom:()=>jc,_date:()=>fp,_decode:()=>Hl,_decodeAsync:()=>Wl,_default:()=>_L,_discriminatedUnion:()=>aL,_e164:()=>vc,_email:()=>tc,_emoji:()=>ac,_encode:()=>Vl,_encodeAsync:()=>Zl,_endsWith:()=>ri,_enum:()=>pL,_file:()=>hp,_float32:()=>rp,_float64:()=>np,_gt:()=>Zr,_gte:()=>At,_guid:()=>ua,_includes:()=>ei,_int:()=>wc,_int32:()=>op,_int64:()=>sp,_intersection:()=>sL,_ipv4:()=>fc,_ipv6:()=>mc,_isoDate:()=>Sc,_isoDateTime:()=>Pc,_isoDuration:()=>Tc,_isoTime:()=>Ec,_jwt:()=>bc,_ksuid:()=>pc,_lazy:()=>xL,_length:()=>fo,_literal:()=>mL,_lowercase:()=>Yo,_lt:()=>Hr,_lte:()=>Vt,_mac:()=>ep,_map:()=>lL,_max:()=>Vt,_maxLength:()=>po,_maxSize:()=>zn,_mime:()=>ni,_min:()=>At,_minLength:()=>vt,_minSize:()=>Wr,_multipleOf:()=>Dn,_nan:()=>mp,_nanoid:()=>sc,_nativeEnum:()=>fL,_negative:()=>zc,_never:()=>pp,_nonnegative:()=>Mc,_nonoptional:()=>vL,_nonpositive:()=>Uc,_normalize:()=>oi,_null:()=>dp,_nullable:()=>yL,_number:()=>xc,_optional:()=>gL,_overwrite:()=>Rr,_parse:()=>Ji,_parseAsync:()=>Xi,_pipe:()=>SL,_positive:()=>Dc,_promise:()=>AL,_property:()=>Lc,_readonly:()=>EL,_record:()=>uL,_refine:()=>Fc,_regex:()=>Ut,_safeDecode:()=>Jl,_safeDecodeAsync:()=>Yl,_safeEncode:()=>Kl,_safeEncodeAsync:()=>Xl,_safeParse:()=>Yi,_safeParseAsync:()=>ea,_set:()=>dL,_size:()=>lo,_slugify:()=>la,_startsWith:()=>ti,_string:()=>Qs,_stringFormat:()=>ci,_stringbool:()=>vp,_success:()=>bL,_superRefine:()=>gp,_symbol:()=>up,_templateLiteral:()=>TL,_toLowerCase:()=>ai,_toUpperCase:()=>si,_transform:()=>hL,_trim:()=>ii,_tuple:()=>cL,_uint32:()=>ip,_uint64:()=>cp,_ulid:()=>lc,_undefined:()=>lp,_union:()=>oL,_unknown:()=>kc,_uppercase:()=>Qo,_url:()=>Xo,_uuid:()=>rc,_uuidv4:()=>nc,_uuidv6:()=>oc,_uuidv7:()=>ic,_void:()=>Nc,_xid:()=>dc,_xor:()=>iL,clone:()=>Rt,config:()=>pt,createStandardJSONSchemaMethod:()=>da,createToJSONSchemaMethod:()=>Dy,decode:()=>nx,decodeAsync:()=>ix,describe:()=>yp,encode:()=>rx,encodeAsync:()=>ox,extractDefs:()=>ho,finalize:()=>go,flattenError:()=>Wi,formatError:()=>Ki,globalConfig:()=>gs,globalRegistry:()=>Ot,initializeContext:()=>mo,isValidBase64:()=>jg,isValidBase64URL:()=>wx,isValidJWT:()=>Ix,locales:()=>ca,meta:()=>_p,parse:()=>Ho,parseAsync:()=>Zo,prettifyError:()=>Gl,process:()=>Ye,regexes:()=>er,registry:()=>Ys,safeDecode:()=>sx,safeDecodeAsync:()=>ux,safeEncode:()=>ax,safeEncodeAsync:()=>cx,safeParse:()=>Qi,safeParseAsync:()=>ta,toDotPath:()=>tx,toJSONSchema:()=>Bc,treeifyError:()=>ql,util:()=>ie,version:()=>Mg});var Ll=Object.freeze({status:"aborted"});function w(t,e,r){function o(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(t))return;u._zod.traits.add(t),e(u,l);let p=s.prototype,f=Object.keys(p);for(let y=0;y<f.length;y++){let m=f[y];m in u||(u[m]=p[m].bind(u))}}a(o,"init");let n=r?.Parent??Object;class i extends n{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:t});function s(u){var l;let p=r?.Parent?new i:this;o(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(t),"value")}),Object.defineProperty(s,"name",{value:t}),s}a(w,"$constructor");var ys=Symbol("zod_brand"),Vr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},io=class extends Error{static{a(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},gs={};function pt(t){return t&&Object.assign(gs,t),gs}a(pt,"config");var ie={};Xt(ie,{BIGINT_FORMAT_RANGES:()=>Vh,Class:()=>Mh,NUMBER_FORMAT_RANGES:()=>Gh,aborted:()=>uo,allowsEval:()=>Fh,assert:()=>bM,assertEqual:()=>gM,assertIs:()=>_M,assertNever:()=>vM,assertNotEqual:()=>yM,assignProp:()=>so,base64ToUint8Array:()=>YT,base64urlToUint8Array:()=>OM,cached:()=>Hi,captureStackTrace:()=>Fl,cleanEnum:()=>RM,cleanRegex:()=>bs,clone:()=>Rt,cloneDef:()=>SM,createTransparentProxy:()=>IM,defineLazy:()=>ze,esc:()=>jl,escapeRegex:()=>Cr,extend:()=>WT,finalizeIssue:()=>Yt,floatSafeRemainder:()=>Lh,getElementAtPath:()=>EM,getEnumValues:()=>vs,getLengthableOrigin:()=>Es,getParsedType:()=>wM,getSizableOrigin:()=>Ss,hexToUint8Array:()=>NM,isObject:()=>Vo,isPlainObject:()=>co,issue:()=>Zi,joinValues:()=>G,jsonStringifyReplacer:()=>Vi,merge:()=>CM,mergeDefs:()=>Nn,normalizeParams:()=>te,nullish:()=>ao,numKeys:()=>AM,objectClone:()=>PM,omit:()=>ZT,optionalKeys:()=>qh,parsedType:()=>ae,partial:()=>JT,pick:()=>HT,prefixIssues:()=>lr,primitiveTypes:()=>Bh,promiseAllObject:()=>TM,propertyKeyTypes:()=>Ps,randomString:()=>xM,required:()=>XT,safeExtend:()=>KT,shallowClone:()=>Bl,slugify:()=>jh,stringifyPrimitive:()=>ne,uint8ArrayToBase64:()=>QT,uint8ArrayToBase64url:()=>kM,uint8ArrayToHex:()=>$M,unwrapMessage:()=>_s});function gM(t){return t}a(gM,"assertEqual");function yM(t){return t}a(yM,"assertNotEqual");function _M(t){}a(_M,"assertIs");function vM(t){throw new Error("Unexpected value in exhaustive check")}a(vM,"assertNever");function bM(t){}a(bM,"assert");function vs(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,n])=>e.indexOf(+o)===-1).map(([o,n])=>n)}a(vs,"getEnumValues");function G(t,e="|"){return t.map(r=>ne(r)).join(e)}a(G,"joinValues");function Vi(t,e){return typeof e=="bigint"?e.toString():e}a(Vi,"jsonStringifyReplacer");function Hi(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}a(Hi,"cached");function ao(t){return t==null}a(ao,"nullish");function bs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}a(bs,"cleanRegex");function Lh(t,e){let r=(t.toString().split(".")[1]||"").length,o=e.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}a(Lh,"floatSafeRemainder");var VT=Symbol("evaluating");function ze(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==VT)return o===void 0&&(o=VT,o=r()),o},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}a(ze,"defineLazy");function PM(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}a(PM,"objectClone");function so(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}a(so,"assignProp");function Nn(...t){let e={};for(let r of t){let o=Object.getOwnPropertyDescriptors(r);Object.assign(e,o)}return Object.defineProperties({},e)}a(Nn,"mergeDefs");function SM(t){return Nn(t._zod.def)}a(SM,"cloneDef");function EM(t,e){return e?e.reduce((r,o)=>r?.[o],t):t}a(EM,"getElementAtPath");function TM(t){let e=Object.keys(t),r=e.map(o=>t[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<e.length;i++)n[e[i]]=o[i];return n})}a(TM,"promiseAllObject");function xM(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<t;o++)r+=e[Math.floor(Math.random()*e.length)];return r}a(xM,"randomString");function jl(t){return JSON.stringify(t)}a(jl,"esc");function jh(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(jh,"slugify");var Fl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Vo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}a(Vo,"isObject");var Fh=Hi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function co(t){if(Vo(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Vo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}a(co,"isPlainObject");function Bl(t){return co(t)?{...t}:Array.isArray(t)?[...t]:t}a(Bl,"shallowClone");function AM(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}a(AM,"numKeys");var wM=a(t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},"getParsedType"),Ps=new Set(["string","number","symbol"]),Bh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Cr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Cr,"escapeRegex");function Rt(t,e,r){let o=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(o._zod.parent=t),o}a(Rt,"clone");function te(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:a(()=>e,"error")};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:a(()=>e.error,"error")}:e}a(te,"normalizeParams");function IM(t){let e;return new Proxy({},{get(r,o,n){return e??(e=t()),Reflect.get(e,o,n)},set(r,o,n,i){return e??(e=t()),Reflect.set(e,o,n,i)},has(r,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(r,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(r,o,n){return e??(e=t()),Reflect.defineProperty(e,o,n)}})}a(IM,"createTransparentProxy");function ne(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}a(ne,"stringifyPrimitive");function qh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}a(qh,"optionalKeys");var Gh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Vh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function HT(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&(s[u]=r.shape[u])}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(HT,"pick");function ZT(t,e){let r=t._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Nn(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let u in e){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&delete s[u]}return so(this,"shape",s),s},checks:[]});return Rt(t,i)}a(ZT,"omit");function WT(t,e){if(!co(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let i=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Nn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return so(this,"shape",i),i}});return Rt(t,n)}a(WT,"extend");function KT(t,e){if(!co(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return so(this,"shape",o),o}});return Rt(t,r)}a(KT,"safeExtend");function CM(t,e){let r=Nn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return so(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return Rt(t,r)}a(CM,"merge");function JT(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Nn(e._zod.def,{get shape(){let u=e._zod.def.shape,l={...u};if(r)for(let p in r){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(l[p]=t?new t({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)l[p]=t?new t({type:"optional",innerType:u[p]}):u[p];return so(this,"shape",l),l},checks:[]});return Rt(e,s)}a(JT,"partial");function XT(t,e,r){let o=Nn(e._zod.def,{get shape(){let n=e._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new t({type:"nonoptional",innerType:n[s]});return so(this,"shape",i),i}});return Rt(e,o)}a(XT,"required");function uo(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}a(uo,"aborted");function lr(t,e){return e.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(t),r})}a(lr,"prefixIssues");function _s(t){return typeof t=="string"?t:t?.message}a(_s,"unwrapMessage");function Yt(t,e,r){let o={...t,path:t.path??[]};if(!t.message){let n=_s(t.inst?._zod.def?.error?.(t))??_s(e?.error?.(t))??_s(r.customError?.(t))??_s(r.localeError?.(t))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}a(Yt,"finalizeIssue");function Ss(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(Ss,"getSizableOrigin");function Es(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(Es,"getLengthableOrigin");function ae(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}a(ae,"parsedType");function Zi(...t){let[e,r,o]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:o}:{...e}}a(Zi,"issue");function RM(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}a(RM,"cleanEnum");function YT(t){let e=atob(t),r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}a(YT,"base64ToUint8Array");function QT(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}a(QT,"uint8ArrayToBase64");function OM(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return YT(e+r)}a(OM,"base64urlToUint8Array");function kM(t){return QT(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(kM,"uint8ArrayToBase64url");function NM(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)r[o/2]=Number.parseInt(e.slice(o,o+2),16);return r}a(NM,"hexToUint8Array");function $M(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a($M,"uint8ArrayToHex");var Mh=class{static{a(this,"Class")}constructor(...e){}};var ex=a((t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Vi,2),Object.defineProperty(t,"toString",{value:a(()=>t.message,"value"),enumerable:!1})},"initializer"),Ts=w("$ZodError",ex),Qt=w("$ZodError",ex,{Parent:Error});function Wi(t,e=r=>r.message){let r={},o=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):o.push(e(n));return{formErrors:o,fieldErrors:r}}a(Wi,"flattenError");function Ki(t,e=r=>r.message){let r={_errors:[]},o=a(n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(e(i));else{let s=r,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(i))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}},"processError");return o(t),r}a(Ki,"formatError");function ql(t,e=r=>r.message){let r={errors:[]},o=a((n,i=[])=>{var s,u;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(p=>o({issues:p},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let p=[...i,...l.path];if(p.length===0){r.errors.push(e(l));continue}let f=r,y=0;for(;y<p.length;){let m=p[y],h=y===p.length-1;typeof m=="string"?(f.properties??(f.properties={}),(s=f.properties)[m]??(s[m]={errors:[]}),f=f.properties[m]):(f.items??(f.items=[]),(u=f.items)[m]??(u[m]={errors:[]}),f=f.items[m]),h&&f.errors.push(e(l)),y++}}},"processError");return o(t),r}a(ql,"treeifyError");function tx(t){let e=[],r=t.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?e.push(`[${o}]`):typeof o=="symbol"?e.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?e.push(`[${JSON.stringify(o)}]`):(e.length&&e.push("."),e.push(o));return e.join("")}a(tx,"toDotPath");function Gl(t){let e=[],r=[...t.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)e.push(`\u2716 ${o.message}`),o.path?.length&&e.push(` \u2192 at ${tx(o.path)}`);return e.join(`
|
|
69
|
+
`)}a(Gl,"prettifyError");var Ji=a(t=>(e,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new Vr;if(s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parse"),Ho=Ji(Qt),Xi=a(t=>async(e,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??t)(s.issues.map(l=>Yt(l,i,pt())));throw Fl(u,n?.callee),u}return s.value},"_parseAsync"),Zo=Xi(Qt),Yi=a(t=>(e,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Vr;return i.issues.length?{success:!1,error:new(t??Ts)(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParse"),Qi=Yi(Qt),ea=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Yt(s,n,pt())))}:{success:!0,data:i.value}},"_safeParseAsync"),ta=ea(Qt),Vl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ji(t)(e,r,n)},"_encode"),rx=Vl(Qt),Hl=a(t=>(e,r,o)=>Ji(t)(e,r,o),"_decode"),nx=Hl(Qt),Zl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xi(t)(e,r,n)},"_encodeAsync"),ox=Zl(Qt),Wl=a(t=>async(e,r,o)=>Xi(t)(e,r,o),"_decodeAsync"),ix=Wl(Qt),Kl=a(t=>(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Yi(t)(e,r,n)},"_safeEncode"),ax=Kl(Qt),Jl=a(t=>(e,r,o)=>Yi(t)(e,r,o),"_safeDecode"),sx=Jl(Qt),Xl=a(t=>async(e,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ea(t)(e,r,n)},"_safeEncodeAsync"),cx=Xl(Qt),Yl=a(t=>async(e,r,o)=>ea(t)(e,r,o),"_safeDecodeAsync"),ux=Yl(Qt);var er={};Xt(er,{base64:()=>sg,base64url:()=>Ql,bigint:()=>fg,boolean:()=>hg,browserEmail:()=>qM,cidrv4:()=>ig,cidrv6:()=>ag,cuid:()=>Hh,cuid2:()=>Zh,date:()=>ug,datetime:()=>dg,domain:()=>HM,duration:()=>Yh,e164:()=>cg,email:()=>eg,emoji:()=>tg,extendedDuration:()=>zM,guid:()=>Qh,hex:()=>ZM,hostname:()=>VM,html5Email:()=>jM,idnEmail:()=>BM,integer:()=>mg,ipv4:()=>rg,ipv6:()=>ng,ksuid:()=>Jh,lowercase:()=>_g,mac:()=>og,md5_base64:()=>KM,md5_base64url:()=>JM,md5_hex:()=>WM,nanoid:()=>Xh,null:()=>gg,number:()=>ed,rfc5322Email:()=>FM,sha1_base64:()=>YM,sha1_base64url:()=>QM,sha1_hex:()=>XM,sha256_base64:()=>t1,sha256_base64url:()=>r1,sha256_hex:()=>e1,sha384_base64:()=>o1,sha384_base64url:()=>i1,sha384_hex:()=>n1,sha512_base64:()=>s1,sha512_base64url:()=>c1,sha512_hex:()=>a1,string:()=>pg,time:()=>lg,ulid:()=>Wh,undefined:()=>yg,unicodeEmail:()=>lx,uppercase:()=>vg,uuid:()=>Wo,uuid4:()=>UM,uuid6:()=>MM,uuid7:()=>LM,xid:()=>Kh});var Hh=/^[cC][^\s-]{8,}$/,Zh=/^[0-9a-z]+$/,Wh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Kh=/^[0-9a-vA-V]{20}$/,Jh=/^[A-Za-z0-9]{27}$/,Xh=/^[a-zA-Z0-9_-]{21}$/,Yh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Wo=a(t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),UM=Wo(4),MM=Wo(6),LM=Wo(7),eg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,jM=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,FM=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,lx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,BM=lx,qM=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,GM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tg(){return new RegExp(GM,"u")}a(tg,"emoji");var rg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ng=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,og=a(t=>{let e=Cr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},"mac"),ig=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ag=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ql=/^[A-Za-z0-9_-]*$/,VM=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,HM=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,cg=/^\+[1-9]\d{6,14}$/,dx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ug=new RegExp(`^${dx}$`);function px(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}a(px,"timeSource");function lg(t){return new RegExp(`^${px(t)}$`)}a(lg,"time");function dg(t){let e=px({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${r.join("|")})`;return new RegExp(`^${dx}T(?:${o})$`)}a(dg,"datetime");var pg=a(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),fg=/^-?\d+n?$/,mg=/^-?\d+$/,ed=/^-?\d+(?:\.\d+)?$/,hg=/^(?:true|false)$/i,gg=/^null$/i;var yg=/^undefined$/i;var _g=/^[^A-Z]*$/,vg=/^[^a-z]*$/,ZM=/^[0-9a-fA-F]*$/;function xs(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(xs,"fixedBase64");function As(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(As,"fixedBase64url");var WM=/^[0-9a-fA-F]{32}$/,KM=xs(22,"=="),JM=As(22),XM=/^[0-9a-fA-F]{40}$/,YM=xs(27,"="),QM=As(27),e1=/^[0-9a-fA-F]{64}$/,t1=xs(43,"="),r1=As(43),n1=/^[0-9a-fA-F]{96}$/,o1=xs(64,""),i1=As(64),a1=/^[0-9a-fA-F]{128}$/,s1=xs(86,"=="),c1=As(86);var rt=w("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),mx={number:"number",bigint:"bigint",object:"date"},td=w("$ZodCheckLessThan",(t,e)=>{rt.init(t,e);let r=mx[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),rd=w("$ZodCheckGreaterThan",(t,e)=>{rt.init(t,e);let r=mx[typeof e.value];t._zod.onattach.push(o=>{let n=o._zod.bag,i=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),bg=w("$ZodCheckMultipleOf",(t,e)=>{rt.init(t,e),t._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Lh(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Pg=w("$ZodCheckNumberFormat",(t,e)=>{rt.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),o=r?"int":"number",[n,i]=Gh[e.format];t._zod.onattach.push(s=>{let u=s._zod.bag;u.format=e.format,u.minimum=n,u.maximum=i,r&&(u.pattern=mg)}),t._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:o,format:e.format,code:"invalid_type",continue:!1,input:u,inst:t});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!e.abort});return}}u<n&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Sg=w("$ZodCheckBigIntFormat",(t,e)=>{rt.init(t,e);let[r,o]=Vh[e.format];t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,i.minimum=r,i.maximum=o}),t._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Eg=w("$ZodCheckMaxSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;n.size<=e.maximum||o.issues.push({origin:Ss(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Tg=w("$ZodCheckMinSize",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;n.size>=e.minimum||o.issues.push({origin:Ss(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),xg=w("$ZodCheckSizeEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.size!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=o=>{let n=o.value,i=n.size;if(i===e.size)return;let s=i>e.size;o.issues.push({origin:Ss(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),Ag=w("$ZodCheckMaxLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let n=o.value;if(n.length<=e.maximum)return;let s=Es(n);o.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),wg=w("$ZodCheckMinLength",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let n=o.value;if(n.length>=e.minimum)return;let s=Es(n);o.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Ig=w("$ZodCheckLengthEquals",(t,e)=>{var r;rt.init(t,e),(r=t._zod.def).when??(r.when=o=>{let n=o.value;return!ao(n)&&n.length!==void 0}),t._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=o=>{let n=o.value,i=n.length;if(i===e.length)return;let s=Es(n),u=i>e.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!e.abort})}}),ra=w("$ZodCheckStringFormat",(t,e)=>{var r,o;rt.init(t,e),t._zod.onattach.push(n=>{let i=n._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(o=t._zod).check??(o.check=()=>{})}),Cg=w("$ZodCheckRegex",(t,e)=>{ra.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Rg=w("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=_g),ra.init(t,e)}),Og=w("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=vg),ra.init(t,e)}),kg=w("$ZodCheckIncludes",(t,e)=>{rt.init(t,e);let r=Cr(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=o,t._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),Ng=w("$ZodCheckStartsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`^${Cr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.startsWith(e.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:o.value,inst:t,continue:!e.abort})}}),$g=w("$ZodCheckEndsWith",(t,e)=>{rt.init(t,e);let r=new RegExp(`.*${Cr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=o=>{o.value.endsWith(e.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:o.value,inst:t,continue:!e.abort})}});function fx(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues))}a(fx,"handleCheckPropertyResult");var Dg=w("$ZodCheckProperty",(t,e)=>{rt.init(t,e),t._zod.check=r=>{let o=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>fx(n,r,e.property));fx(o,r,e.property)}}),zg=w("$ZodCheckMimeType",(t,e)=>{rt.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Ug=w("$ZodCheckOverwrite",(t,e)=>{rt.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var ws=class{static{a(this,"Doc")}constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let o=e.split(`
|
|
70
70
|
`).filter(s=>s),n=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let e=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...r,n.join(`
|
|
71
|
-
`))}};var Ug={major:4,minor:3,patch:6};var xe=w("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Ug;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let n of o)for(let i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=a((s,u,l)=>{let p=uo(s),f;for(let y of u){if(y._zod.def.when){if(!y._zod.def.when(s))continue}else if(p)continue;let m=s.issues.length,h=y._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Vr;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(p||(p=uo(s,m)))});else{if(s.issues.length===m)continue;p||(p=uo(s,m))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,l)=>{if(uo(s))return s.aborted=!0,s;let p=n(u,o,l);if(p instanceof Promise){if(l.async===!1)throw new Vr;return p.then(f=>t._zod.parse(f,l))}return t._zod.parse(p,l)},"handleCanaryResult");t._zod.run=(s,u)=>{if(u.skipChecks)return t._zod.parse(s,u);if(u.direction==="backward"){let p=t._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(f=>i(f,s,u)):i(p,s,u)}let l=t._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Vr;return l.then(p=>n(p,o,u))}return n(l,o,u)}}De(t,"~standard",()=>({validate:a(n=>{try{let i=Yi(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ea(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),$n=w("$ZodString",(t,e)=>{xe.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dg(t._zod.bag),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Xe=w("$ZodStringFormat",(t,e)=>{ta.init(t,e),$n.init(t,e)}),cd=w("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Yh),Xe.init(t,e)}),ud=w("$ZodUUID",(t,e)=>{if(e.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wo(o))}else e.pattern??(e.pattern=Wo());Xe.init(t,e)}),ld=w("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Qh),Xe.init(t,e)}),Is=w("$ZodURL",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),dd=w("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=eg()),Xe.init(t,e)}),pd=w("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Jh),Xe.init(t,e)}),fd=w("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Vh),Xe.init(t,e)}),md=w("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Hh),Xe.init(t,e)}),hd=w("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Zh),Xe.init(t,e)}),gd=w("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Wh),Xe.init(t,e)}),yd=w("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Kh),Xe.init(t,e)}),Cs=w("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lg(e)),Xe.init(t,e)}),Rs=w("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=cg),Xe.init(t,e)}),Os=w("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ug(e)),Xe.init(t,e)}),ks=w("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Xh),Xe.init(t,e)}),_d=w("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=tg),Xe.init(t,e),t._zod.bag.format="ipv4"}),vd=w("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=rg),Xe.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),bd=w("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=ng(e.delimiter)),Xe.init(t,e),t._zod.bag.format="mac"}),Sd=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=og),Xe.init(t,e)}),Pd=w("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ig),Xe.init(t,e),t._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Lg(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}a(Lg,"isValidBase64");var Ed=w("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ag),Xe.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{Lg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Ex(t){if(!Ql.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Lg(r)}a(Ex,"isValidBase64URL");var Td=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ql),Xe.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{Ex(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),xd=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sg),Xe.init(t,e)});function Tx(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}a(Tx,"isValidJWT");var Ad=w("$ZodJWT",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{Tx(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),wd=w("$ZodCustomStringFormat",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),ra=w("$ZodNumber",(t,e)=>{xe.init(t,e),t._zod.pattern=t._zod.bag.pattern??ed,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Ns=w("$ZodNumberFormat",(t,e)=>{bg.init(t,e),ra.init(t,e)}),Ko=w("$ZodBoolean",(t,e)=>{xe.init(t,e),t._zod.pattern=mg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),na=w("$ZodBigInt",(t,e)=>{xe.init(t,e),t._zod.pattern=pg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),Id=w("$ZodBigIntFormat",(t,e)=>{Sg.init(t,e),na.init(t,e)}),Cd=w("$ZodSymbol",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Rd=w("$ZodUndefined",(t,e)=>{xe.init(t,e),t._zod.pattern=gg,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Od=w("$ZodNull",(t,e)=>{xe.init(t,e),t._zod.pattern=hg,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),$s=w("$ZodAny",(t,e)=>{xe.init(t,e),t._zod.parse=r=>r}),zs=w("$ZodUnknown",(t,e)=>{xe.init(t,e),t._zod.parse=r=>r}),kd=w("$ZodNever",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Ds=w("$ZodVoid",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Us=w("$ZodDate",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function px(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(px,"handleArrayResult");var Ms=w("$ZodArray",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let u=n[s],l=e.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(p=>px(p,r,s))):px(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function sd(t,e,r,o,n){if(t.issues.length){if(n&&!(r in o))return;e.issues.push(...lr(r,t.issues))}t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}a(sd,"handlePropertyResult");function xx(t){let e=Object.keys(t.shape);for(let o of e)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Bh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}a(xx,"normalizeDef");function Ax(t,e,r,o,n,i){let s=[],u=n.keySet,l=n.catchall._zod,p=l.def.type,f=l.optout==="optional";for(let y in e){if(u.has(y))continue;if(p==="never"){s.push(y);continue}let m=l.run({value:e[y],issues:[]},o);m instanceof Promise?t.push(m.then(h=>sd(h,r,y,e,f))):sd(m,r,y,e,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}a(Ax,"handleCatchall");var Nd=w("$ZodObject",(t,e)=>{if(xe.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let u=e.shape;Object.defineProperty(e,"shape",{get:a(()=>{let l={...u};return Object.defineProperty(e,"shape",{value:l}),l},"get")})}let o=Vi(()=>xx(e));De(t._zod,"propValues",()=>{let u=e.shape,l={};for(let p in u){let f=u[p]._zod;if(f.values){l[p]??(l[p]=new Set);for(let y of f.values)l[p].add(y)}}return l});let n=Vo,i=e.catchall,s;t._zod.parse=(u,l)=>{s??(s=o.value);let p=u.value;if(!n(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),u;u.value={};let f=[],y=s.shape;for(let m of s.keys){let h=y[m],_=h._zod.optout==="optional",P=h._zod.run({value:p[m],issues:[]},l);P instanceof Promise?f.push(P.then(E=>sd(E,u,m,p,_))):sd(P,u,m,p,_)}return i?Ax(f,p,u,l,o.value,t):f.length?Promise.all(f).then(()=>u):u}}),jg=w("$ZodObjectJIT",(t,e)=>{Nd.init(t,e);let r=t._zod.parse,o=Vi(()=>xx(e)),n=a(m=>{let h=new ws(["shape","payload","ctx"]),_=o.value,P=a(L=>{let Y=jl(L);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let E=Object.create(null),x=0;for(let L of _.keys)E[L]=`key_${x++}`;h.write("const newResult = {};");for(let L of _.keys){let Y=E[L],H=jl(L),re=m[L]?._zod?.optout==="optional";h.write(`const ${Y} = ${P(L)};`),re?h.write(`
|
|
71
|
+
`))}};var Mg={major:4,minor:3,patch:6};var xe=w("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Mg;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let n of o)for(let i of n._zod.onattach)i(t);if(o.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=a((s,u,l)=>{let p=uo(s),f;for(let y of u){if(y._zod.def.when){if(!y._zod.def.when(s))continue}else if(p)continue;let m=s.issues.length,h=y._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Vr;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(p||(p=uo(s,m)))});else{if(s.issues.length===m)continue;p||(p=uo(s,m))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,l)=>{if(uo(s))return s.aborted=!0,s;let p=n(u,o,l);if(p instanceof Promise){if(l.async===!1)throw new Vr;return p.then(f=>t._zod.parse(f,l))}return t._zod.parse(p,l)},"handleCanaryResult");t._zod.run=(s,u)=>{if(u.skipChecks)return t._zod.parse(s,u);if(u.direction==="backward"){let p=t._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(f=>i(f,s,u)):i(p,s,u)}let l=t._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new Vr;return l.then(p=>n(p,o,u))}return n(l,o,u)}}ze(t,"~standard",()=>({validate:a(n=>{try{let i=Qi(t,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ta(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),$n=w("$ZodString",(t,e)=>{xe.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??pg(t._zod.bag),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Xe=w("$ZodStringFormat",(t,e)=>{ra.init(t,e),$n.init(t,e)}),cd=w("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Qh),Xe.init(t,e)}),ud=w("$ZodUUID",(t,e)=>{if(e.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(o===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wo(o))}else e.pattern??(e.pattern=Wo());Xe.init(t,e)}),ld=w("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=eg),Xe.init(t,e)}),Is=w("$ZodURL",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),dd=w("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=tg()),Xe.init(t,e)}),pd=w("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Xh),Xe.init(t,e)}),fd=w("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Hh),Xe.init(t,e)}),md=w("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Zh),Xe.init(t,e)}),hd=w("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Wh),Xe.init(t,e)}),gd=w("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Kh),Xe.init(t,e)}),yd=w("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Jh),Xe.init(t,e)}),Cs=w("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=dg(e)),Xe.init(t,e)}),Rs=w("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=ug),Xe.init(t,e)}),Os=w("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=lg(e)),Xe.init(t,e)}),ks=w("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Yh),Xe.init(t,e)}),_d=w("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=rg),Xe.init(t,e),t._zod.bag.format="ipv4"}),vd=w("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=ng),Xe.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),bd=w("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=og(e.delimiter)),Xe.init(t,e),t._zod.bag.format="mac"}),Pd=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=ig),Xe.init(t,e)}),Sd=w("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ag),Xe.init(t,e),t._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function jg(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}a(jg,"isValidBase64");var Ed=w("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=sg),Xe.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{jg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function wx(t){if(!Ql.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return jg(r)}a(wx,"isValidBase64URL");var Td=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ql),Xe.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{wx(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),xd=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=cg),Xe.init(t,e)});function Ix(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}a(Ix,"isValidJWT");var Ad=w("$ZodJWT",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{Ix(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),wd=w("$ZodCustomStringFormat",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),na=w("$ZodNumber",(t,e)=>{xe.init(t,e),t._zod.pattern=t._zod.bag.pattern??ed,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...i?{received:i}:{}}),r}}),Ns=w("$ZodNumberFormat",(t,e)=>{Pg.init(t,e),na.init(t,e)}),Ko=w("$ZodBoolean",(t,e)=>{xe.init(t,e),t._zod.pattern=hg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),oa=w("$ZodBigInt",(t,e)=>{xe.init(t,e),t._zod.pattern=fg,t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),Id=w("$ZodBigIntFormat",(t,e)=>{Sg.init(t,e),oa.init(t,e)}),Cd=w("$ZodSymbol",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Rd=w("$ZodUndefined",(t,e)=>{xe.init(t,e),t._zod.pattern=yg,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),Od=w("$ZodNull",(t,e)=>{xe.init(t,e),t._zod.pattern=gg,t._zod.values=new Set([null]),t._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),$s=w("$ZodAny",(t,e)=>{xe.init(t,e),t._zod.parse=r=>r}),Ds=w("$ZodUnknown",(t,e)=>{xe.init(t,e),t._zod.parse=r=>r}),kd=w("$ZodNever",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),zs=w("$ZodVoid",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Us=w("$ZodDate",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:t}),r}});function gx(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(gx,"handleArrayResult");var Ms=w("$ZodArray",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let i=[];for(let s=0;s<n.length;s++){let u=n[s],l=e.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(p=>gx(p,r,s))):gx(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function sd(t,e,r,o,n){if(t.issues.length){if(n&&!(r in o))return;e.issues.push(...lr(r,t.issues))}t.value===void 0?r in o&&(e.value[r]=void 0):e.value[r]=t.value}a(sd,"handlePropertyResult");function Cx(t){let e=Object.keys(t.shape);for(let o of e)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=qh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}a(Cx,"normalizeDef");function Rx(t,e,r,o,n,i){let s=[],u=n.keySet,l=n.catchall._zod,p=l.def.type,f=l.optout==="optional";for(let y in e){if(u.has(y))continue;if(p==="never"){s.push(y);continue}let m=l.run({value:e[y],issues:[]},o);m instanceof Promise?t.push(m.then(h=>sd(h,r,y,e,f))):sd(m,r,y,e,f)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>r):r}a(Rx,"handleCatchall");var Nd=w("$ZodObject",(t,e)=>{if(xe.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let u=e.shape;Object.defineProperty(e,"shape",{get:a(()=>{let l={...u};return Object.defineProperty(e,"shape",{value:l}),l},"get")})}let o=Hi(()=>Cx(e));ze(t._zod,"propValues",()=>{let u=e.shape,l={};for(let p in u){let f=u[p]._zod;if(f.values){l[p]??(l[p]=new Set);for(let y of f.values)l[p].add(y)}}return l});let n=Vo,i=e.catchall,s;t._zod.parse=(u,l)=>{s??(s=o.value);let p=u.value;if(!n(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),u;u.value={};let f=[],y=s.shape;for(let m of s.keys){let h=y[m],_=h._zod.optout==="optional",S=h._zod.run({value:p[m],issues:[]},l);S instanceof Promise?f.push(S.then(E=>sd(E,u,m,p,_))):sd(S,u,m,p,_)}return i?Rx(f,p,u,l,o.value,t):f.length?Promise.all(f).then(()=>u):u}}),Fg=w("$ZodObjectJIT",(t,e)=>{Nd.init(t,e);let r=t._zod.parse,o=Hi(()=>Cx(e)),n=a(m=>{let h=new ws(["shape","payload","ctx"]),_=o.value,S=a(F=>{let Y=jl(F);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let E=Object.create(null),T=0;for(let F of _.keys)E[F]=`key_${T++}`;h.write("const newResult = {};");for(let F of _.keys){let Y=E[F],H=jl(F),re=m[F]?._zod?.optout==="optional";h.write(`const ${Y} = ${S(F)};`),re?h.write(`
|
|
72
72
|
if (${Y}.issues.length) {
|
|
73
73
|
if (${H} in input) {
|
|
74
74
|
payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
|
|
@@ -102,9 +102,9 @@ content-type: ${x["content-type"]}\r
|
|
|
102
102
|
newResult[${H}] = ${Y}.value;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
`)}h.write("payload.value = newResult;"),h.write("return payload;");let k=h.compile();return(L,Y)=>k(m,L,Y)},"generateFastpass"),i,s=Vo,u=!gs.jitless,p=u&&jh.value,f=e.catchall,y;t._zod.parse=(m,h)=>{y??(y=o.value);let _=m.value;return s(_)?u&&p&&h?.async===!1&&h.jitless!==!0?(i||(i=n(e.shape)),m=i(m,h),f?Ax([],_,m,h,y,t):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function fx(t,e,r,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let n=t.filter(i=>!uo(i));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}),e)}a(fx,"handleUnionResults");var Jo=w("$ZodUnion",(t,e)=>{xe.init(t,e),De(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),De(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),De(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),De(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>bs(i.source)).join("|")})$`)}});let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>fx(l,n,t,i)):fx(u,n,t,i)}});function mx(t,e,r,o){let n=t.filter(i=>i.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}a(mx,"handleExclusiveUnionResults");var $d=w("$ZodXor",(t,e)=>{Jo.init(t,e),e.inclusive=!1;let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(l=>mx(l,n,t,i)):mx(u,n,t,i)}}),Ls=w("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Jo.init(t,e);let r=t._zod.parse;De(t._zod,"propValues",()=>{let n={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[u,l]of Object.entries(s)){n[u]||(n[u]=new Set);for(let p of l)n[u].add(p)}}return n});let o=Vi(()=>{let n=e.options,i=new Map;for(let s of n){let u=s._zod.propValues?.[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(n,i)=>{let s=n.value;if(!Vo(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let u=o.value.get(s?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),n)}}),zd=w("$ZodIntersection",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value,i=e.left._zod.run({value:n,issues:[]},o),s=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,p])=>hx(r,l,p)):hx(r,i,s)}});function Mg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(co(t)&&co(e)){let r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(let i of o){let s=Mg(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let n=t[o],i=e[o],s=Mg(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}a(Mg,"mergeValues");function hx(t,e,r){let o=new Map,n;for(let u of e.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else t.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else t.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&n&&t.issues.push({...n,keys:i}),uo(t))return t;let s=Mg(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}a(hx,"handleIntersectionResults");var js=w("$ZodTuple",(t,e)=>{xe.init(t,e);let r=e.items;t._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!e.rest){let f=i.length>r.length,y=i.length<l-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:t,origin:"array"}),o}let p=-1;for(let f of r){if(p++,p>=i.length&&p>=l)continue;let y=f._zod.run({value:i[p],issues:[]},n);y instanceof Promise?s.push(y.then(m=>nd(m,o,p))):nd(y,o,p)}if(e.rest){let f=i.slice(r.length);for(let y of f){p++;let m=e.rest._zod.run({value:y,issues:[]},n);m instanceof Promise?s.push(m.then(h=>nd(h,o,p))):nd(m,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function nd(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(nd,"handleTupleResult");var Fs=w("$ZodRecord",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!co(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let i=[],s=e.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let f=e.valueType._zod.run({value:n[p],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(p,y.issues)),r.value[p]=y.value})):(f.issues.length&&r.issues.push(...lr(p,f.issues)),r.value[p]=f.value)}let l;for(let p in n)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let l=e.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ed.test(u)&&l.issues.length){let y=e.keyType._zod.run({value:Number(u),issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(l=y)}if(l.issues.length){e.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>Yt(y,o,pt())),input:u,path:[u],inst:t});continue}let f=e.valueType._zod.run({value:n[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(u,y.issues)),r.value[l.value]=y.value})):(f.issues.length&&r.issues.push(...lr(u,f.issues)),r.value[l.value]=f.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Dd=w("$ZodMap",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let i=[];r.value=new Map;for(let[s,u]of n){let l=e.keyType._zod.run({value:s,issues:[]},o),p=e.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise||p instanceof Promise?i.push(Promise.all([l,p]).then(([f,y])=>{gx(f,y,r,s,n,t,o)})):gx(l,p,r,s,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function gx(t,e,r,o,n,i,s){t.issues.length&&(Ss.has(typeof o)?r.issues.push(...lr(o,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:t.issues.map(u=>Yt(u,s,pt()))})),e.issues.length&&(Ss.has(typeof o)?r.issues.push(...lr(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>Yt(u,s,pt()))})),r.value.set(t.value,e.value)}a(gx,"handleMapResult");var Ud=w("$ZodSet",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let u=e.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>yx(l,r))):yx(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function yx(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(yx,"handleSetResult");var Bs=w("$ZodEnum",(t,e)=>{xe.init(t,e);let r=vs(e.entries),o=new Set(r);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.filter(n=>Ss.has(typeof n)).map(n=>typeof n=="string"?Cr(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),qs=w("$ZodLiteral",(t,e)=>{if(xe.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Cr(o):o?Cr(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),Md=w("$ZodFile",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Gs=w("$ZodTransform",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);let n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Vr;return r.value=n,r}});function _x(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(_x,"handleOptionalResult");var oa=w("$ZodOptional",(t,e)=>{xe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>_x(i,r.value)):_x(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,o)}}),Ld=w("$ZodExactOptional",(t,e)=>{oa.init(t,e),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,o)=>e.innerType._zod.run(r,o)}),Vs=w("$ZodNullable",(t,e)=>{xe.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)}|null)$`):void 0}),De(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),jd=w("$ZodDefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>vx(i,e)):vx(n,e)}});function vx(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(vx,"handleDefaultResult");var Fd=w("$ZodPrefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),Bd=w("$ZodNonOptional",(t,e)=>{xe.init(t,e),De(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>bx(i,t)):bx(n,t)}});function bx(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}a(bx,"handleNonOptionalResult");var qd=w("$ZodSuccess",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io("ZodSuccess");let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Gd=w("$ZodCatch",(t,e)=>{xe.init(t,e),De(t._zod,"optin",()=>e.innerType._zod.optin),De(t._zod,"optout",()=>e.innerType._zod.optout),De(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Yt(s,o,pt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>Yt(i,o,pt()))},input:r.value}),r.issues=[]),r)}}),Vd=w("$ZodNaN",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Hs=w("$ZodPipe",(t,e)=>{xe.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>od(s,e.in,o)):od(i,e.in,o)}let n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>od(i,e.out,o)):od(n,e.out,o)}});function od(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}a(od,"handlePipeResult");var ia=w("$ZodCodec",(t,e)=>{xe.init(t,e),De(t._zod,"values",()=>e.in._zod.values),De(t._zod,"optin",()=>e.in._zod.optin),De(t._zod,"optout",()=>e.out._zod.optout),De(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}else{let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}}});function id(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.out,r)):ad(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.in,r)):ad(t,n,e.in,r)}}a(id,"handleCodecAResult");function ad(t,e,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},o)}a(ad,"handleCodecTxResult");var Hd=w("$ZodReadonly",(t,e)=>{xe.init(t,e),De(t._zod,"propValues",()=>e.innerType._zod.propValues),De(t._zod,"values",()=>e.innerType._zod.values),De(t._zod,"optin",()=>e.innerType?._zod?.optin),De(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(Sx):Sx(n)}});function Sx(t){return t.value=Object.freeze(t.value),t}a(Sx,"handleReadonlyResult");var Zd=w("$ZodTemplateLiteral",(t,e)=>{xe.init(t,e);let r=[];for(let o of e.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||Fh.has(typeof o))r.push(Cr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),Wd=w("$ZodFunction",(t,e)=>(xe.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=t._def.input?Ho(t._def.input,o):o,i=Reflect.apply(r,this,n);return t._def.output?Ho(t._def.output,i):i}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=t._def.input?await Zo(t._def.input,o):o,i=await Reflect.apply(r,this,n);return t._def.output?await Zo(t._def.output,i):i}},t._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let o=t.constructor;return Array.isArray(r[0])?new o({type:"function",input:new js({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new o({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:r})},t)),Kd=w("$ZodPromise",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),Jd=w("$ZodLazy",(t,e)=>{xe.init(t,e),De(t._zod,"innerType",()=>e.getter()),De(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),De(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),De(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),De(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),Zs=w("$ZodCustom",(t,e)=>{rt.init(t,e),xe.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{let o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>Px(i,r,o,t));Px(n,r,o,t)}});function Px(t,e,r,o){if(!t){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Hi(n))}}a(Px,"handleRefineResult");var sa={};Xt(sa,{ar:()=>Fg,az:()=>Bg,be:()=>qg,bg:()=>Gg,ca:()=>Vg,cs:()=>Hg,da:()=>Zg,de:()=>Wg,en:()=>Ws,eo:()=>Kg,es:()=>Jg,fa:()=>Xg,fi:()=>Yg,fr:()=>Qg,frCA:()=>ey,he:()=>ty,hu:()=>ry,hy:()=>ny,id:()=>oy,is:()=>iy,it:()=>ay,ja:()=>sy,ka:()=>cy,kh:()=>uy,km:()=>Ks,ko:()=>ly,lt:()=>dy,mk:()=>py,ms:()=>fy,nl:()=>my,no:()=>hy,ota:()=>gy,pl:()=>_y,ps:()=>yy,pt:()=>vy,ru:()=>by,sl:()=>Sy,sv:()=>Py,ta:()=>Ey,th:()=>Ty,tr:()=>xy,ua:()=>Ay,uk:()=>Xs,ur:()=>wy,uz:()=>Iy,vi:()=>Cy,yo:()=>ky,zhCN:()=>Ry,zhTW:()=>Oy});var QM=a(()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ne(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Fg(){return{localeError:QM()}}a(Fg,"default");var e1=a(()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ne(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Bg(){return{localeError:e1()}}a(Bg,"default");function wx(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(wx,"getBelarusianPlural");var t1=a(()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ne(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=wx(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=wx(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function qg(){return{localeError:t1()}}a(qg,"default");var r1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Gg(){return{localeError:r1()}}a(Gg,"default");var n1=a(()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${ne(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${G(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Vg(){return{localeError:n1()}}a(Vg,"default");var o1=a(()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ne(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${G(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Hg(){return{localeError:o1()}}a(Hg,"default");var i1=a(()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ne(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}},"error");function Zg(){return{localeError:i1()}}a(Zg,"default");var a1=a(()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ne(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Wg(){return{localeError:a1()}}a(Wg,"default");var s1=a(()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`Invalid option: expected one of ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function Ws(){return{localeError:s1()}}a(Ws,"default");var c1=a(()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ne(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function Kg(){return{localeError:c1()}}a(Kg,"default");var u1=a(()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ne(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Jg(){return{localeError:u1()}}a(Jg,"default");var l1=a(()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ne(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${G(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${G(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Xg(){return{localeError:l1()}}a(Xg,"default");var d1=a(()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ne(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${G(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function Yg(){return{localeError:d1()}}a(Yg,"default");var p1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ne(n.values[0])} attendu`:`Option invalide : une valeur parmi ${G(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Qg(){return{localeError:p1()}}a(Qg,"default");var f1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ne(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ey(){return{localeError:f1()}}a(ey,"default");var m1=a(()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=a(p=>p?t[p]:void 0,"typeEntry"),o=a(p=>{let f=r(p);return f?f.label:p??t.unknown.label},"typeLabel"),n=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(r(p)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),s=a(p=>p?e[p]??null:null,"getSizing"),u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{let f=p.expected,y=l[f??""]??o(f),m=ae(p.input),h=l[m]??t[m]?.label??m;return/^[A-Z]/.test(p.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${p.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(p.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${ne(p.values[0])}`;let f=p.values.map(h=>ne(h));if(p.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let y=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.maximum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${p.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",P=p.inclusive?`${p.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${p.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let m=p.inclusive?"<=":"<",h=i(p.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()}`}case"too_small":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.minimum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${p.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(p.minimum===1&&p.inclusive){let E=(p.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let P=p.inclusive?`${p.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${p.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let m=p.inclusive?">=":">",h=i(p.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()}`}case"invalid_format":{let f=p;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let y=u[f.format],m=y?.label??f.format,_=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${_}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${p.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${p.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${p.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${G(p.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function ty(){return{localeError:m1()}}a(ty,"default");var h1=a(()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ne(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function ry(){return{localeError:h1()}}a(ry,"default");function Ix(t,e,r){return Math.abs(t)===1?e:r}a(Ix,"getArmenianPlural");function aa(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}a(aa,"withDefiniteArticle");var g1=a(()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${ne(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=Ix(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=Ix(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${aa(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${G(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${aa(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${aa(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function ny(){return{localeError:g1()}}a(ny,"default");var y1=a(()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ne(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}},"error");function oy(){return{localeError:y1()}}a(oy,"default");var _1=a(()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ne(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${G(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function iy(){return{localeError:_1()}}a(iy,"default");var v1=a(()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ne(n.values[0])}`:`Opzione non valida: atteso uno tra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${G(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}},"error");function ay(){return{localeError:v1()}}a(ay,"default");var b1=a(()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ne(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${G(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function sy(){return{localeError:b1()}}a(sy,"default");var S1=a(()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${ne(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${G(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function cy(){return{localeError:S1()}}a(cy,"default");var P1=a(()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ne(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${G(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Ks(){return{localeError:P1()}}a(Ks,"default");function uy(){return Ks()}a(uy,"default");var E1=a(()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ne(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${G(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${G(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ly(){return{localeError:E1()}}a(ly,"default");var Js=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function Cx(t){let e=Math.abs(t),r=e%10,o=e%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}a(Cx,"getUnitTypeFromNumber");var T1=a(()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,i,s,u){let l=t[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}a(e,"getSizing");let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ne(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${G(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=e(n.origin,Cx(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=e(n.origin,Cx(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${G(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Js(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function dy(){return{localeError:T1()}}a(dy,"default");var x1=a(()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function py(){return{localeError:x1()}}a(py,"default");var A1=a(()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ne(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}},"error");function fy(){return{localeError:A1()}}a(fy,"default");var w1=a(()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ne(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}},"error");function my(){return{localeError:w1()}}a(my,"default");var I1=a(()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ne(n.values[0])}`:`Ugyldig valg: forventet en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}},"error");function hy(){return{localeError:I1()}}a(hy,"default");var C1=a(()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ne(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function gy(){return{localeError:C1()}}a(gy,"default");var R1=a(()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ne(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${G(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function yy(){return{localeError:R1()}}a(yy,"default");var O1=a(()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ne(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function _y(){return{localeError:O1()}}a(_y,"default");var k1=a(()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ne(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}},"error");function vy(){return{localeError:k1()}}a(vy,"default");function Rx(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(Rx,"getRussianPlural");var N1=a(()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=Rx(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=Rx(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function by(){return{localeError:N1()}}a(by,"default");var $1=a(()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ne(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${G(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}},"error");function Sy(){return{localeError:$1()}}a(Sy,"default");var z1=a(()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ne(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Py(){return{localeError:z1()}}a(Py,"default");var D1=a(()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ne(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${G(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function Ey(){return{localeError:D1()}}a(Ey,"default");var U1=a(()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ne(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${G(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Ty(){return{localeError:U1()}}a(Ty,"default");var M1=a(()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ne(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function xy(){return{localeError:M1()}}a(xy,"default");var L1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ne(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Xs(){return{localeError:L1()}}a(Xs,"default");function Ay(){return Xs()}a(Ay,"default");var j1=a(()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ne(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${G(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function wy(){return{localeError:j1()}}a(wy,"default");var F1=a(()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ne(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Iy(){return{localeError:F1()}}a(Iy,"default");var B1=a(()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ne(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${G(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Cy(){return{localeError:B1()}}a(Cy,"default");var q1=a(()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ne(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Ry(){return{localeError:q1()}}a(Ry,"default");var G1=a(()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ne(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Oy(){return{localeError:G1()}}a(Oy,"default");var V1=a(()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ne(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${G(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function ky(){return{localeError:V1()}}a(ky,"default");var Ox,Yd=Symbol("ZodOutput"),Qd=Symbol("ZodInput"),Xd=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];return this._map.set(e,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ys(){return new Xd}a(Ys,"registry");(Ox=globalThis).__zod_globalRegistry??(Ox.__zod_globalRegistry=Ys());var Ot=globalThis.__zod_globalRegistry;function Qs(t,e){return new t({type:"string",...te(e)})}a(Qs,"_string");function ec(t,e){return new t({type:"string",coerce:!0,...te(e)})}a(ec,"_coercedString");function tc(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...te(e)})}a(tc,"_email");function ca(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...te(e)})}a(ca,"_guid");function rc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...te(e)})}a(rc,"_uuid");function nc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(e)})}a(nc,"_uuidv4");function oc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(e)})}a(oc,"_uuidv6");function ic(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(e)})}a(ic,"_uuidv7");function Xo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...te(e)})}a(Xo,"_url");function ac(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...te(e)})}a(ac,"_emoji");function sc(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(e)})}a(sc,"_nanoid");function cc(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...te(e)})}a(cc,"_cuid");function uc(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(e)})}a(uc,"_cuid2");function lc(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...te(e)})}a(lc,"_ulid");function dc(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...te(e)})}a(dc,"_xid");function pc(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(e)})}a(pc,"_ksuid");function fc(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(e)})}a(fc,"_ipv4");function mc(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(e)})}a(mc,"_ipv6");function ep(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...te(e)})}a(ep,"_mac");function hc(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(e)})}a(hc,"_cidrv4");function gc(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(e)})}a(gc,"_cidrv6");function yc(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...te(e)})}a(yc,"_base64");function _c(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...te(e)})}a(_c,"_base64url");function vc(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...te(e)})}a(vc,"_e164");function bc(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...te(e)})}a(bc,"_jwt");var tp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Sc(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(e)})}a(Sc,"_isoDateTime");function Pc(t,e){return new t({type:"string",format:"date",check:"string_format",...te(e)})}a(Pc,"_isoDate");function Ec(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...te(e)})}a(Ec,"_isoTime");function Tc(t,e){return new t({type:"string",format:"duration",check:"string_format",...te(e)})}a(Tc,"_isoDuration");function xc(t,e){return new t({type:"number",checks:[],...te(e)})}a(xc,"_number");function Ac(t,e){return new t({type:"number",coerce:!0,checks:[],...te(e)})}a(Ac,"_coercedNumber");function wc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...te(e)})}a(wc,"_int");function rp(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...te(e)})}a(rp,"_float32");function np(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...te(e)})}a(np,"_float64");function op(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...te(e)})}a(op,"_int32");function ip(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...te(e)})}a(ip,"_uint32");function Ic(t,e){return new t({type:"boolean",...te(e)})}a(Ic,"_boolean");function Cc(t,e){return new t({type:"boolean",coerce:!0,...te(e)})}a(Cc,"_coercedBoolean");function ap(t,e){return new t({type:"bigint",...te(e)})}a(ap,"_bigint");function Rc(t,e){return new t({type:"bigint",coerce:!0,...te(e)})}a(Rc,"_coercedBigint");function sp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(e)})}a(sp,"_int64");function cp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(e)})}a(cp,"_uint64");function up(t,e){return new t({type:"symbol",...te(e)})}a(up,"_symbol");function lp(t,e){return new t({type:"undefined",...te(e)})}a(lp,"_undefined");function dp(t,e){return new t({type:"null",...te(e)})}a(dp,"_null");function Oc(t){return new t({type:"any"})}a(Oc,"_any");function kc(t){return new t({type:"unknown"})}a(kc,"_unknown");function pp(t,e){return new t({type:"never",...te(e)})}a(pp,"_never");function Nc(t,e){return new t({type:"void",...te(e)})}a(Nc,"_void");function fp(t,e){return new t({type:"date",...te(e)})}a(fp,"_date");function $c(t,e){return new t({type:"date",coerce:!0,...te(e)})}a($c,"_coercedDate");function mp(t,e){return new t({type:"nan",...te(e)})}a(mp,"_nan");function Hr(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!1})}a(Hr,"_lt");function Vt(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!0})}a(Vt,"_lte");function Zr(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!1})}a(Zr,"_gt");function At(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!0})}a(At,"_gte");function zc(t){return Zr(0,t)}a(zc,"_positive");function Dc(t){return Hr(0,t)}a(Dc,"_negative");function Uc(t){return Vt(0,t)}a(Uc,"_nonpositive");function Mc(t){return At(0,t)}a(Mc,"_nonnegative");function zn(t,e){return new vg({check:"multiple_of",...te(e),value:t})}a(zn,"_multipleOf");function Dn(t,e){return new Pg({check:"max_size",...te(e),maximum:t})}a(Dn,"_maxSize");function Wr(t,e){return new Eg({check:"min_size",...te(e),minimum:t})}a(Wr,"_minSize");function lo(t,e){return new Tg({check:"size_equals",...te(e),size:t})}a(lo,"_size");function po(t,e){return new xg({check:"max_length",...te(e),maximum:t})}a(po,"_maxLength");function vt(t,e){return new Ag({check:"min_length",...te(e),minimum:t})}a(vt,"_minLength");function fo(t,e){return new wg({check:"length_equals",...te(e),length:t})}a(fo,"_length");function Ut(t,e){return new Ig({check:"string_format",format:"regex",...te(e),pattern:t})}a(Ut,"_regex");function Yo(t){return new Cg({check:"string_format",format:"lowercase",...te(t)})}a(Yo,"_lowercase");function Qo(t){return new Rg({check:"string_format",format:"uppercase",...te(t)})}a(Qo,"_uppercase");function ei(t,e){return new Og({check:"string_format",format:"includes",...te(e),includes:t})}a(ei,"_includes");function ti(t,e){return new kg({check:"string_format",format:"starts_with",...te(e),prefix:t})}a(ti,"_startsWith");function ri(t,e){return new Ng({check:"string_format",format:"ends_with",...te(e),suffix:t})}a(ri,"_endsWith");function Lc(t,e,r){return new $g({check:"property",property:t,schema:e,...te(r)})}a(Lc,"_property");function ni(t,e){return new zg({check:"mime_type",mime:t,...te(e)})}a(ni,"_mime");function Rr(t){return new Dg({check:"overwrite",tx:t})}a(Rr,"_overwrite");function oi(t){return Rr(e=>e.normalize(t))}a(oi,"_normalize");function ii(){return Rr(t=>t.trim())}a(ii,"_trim");function ai(){return Rr(t=>t.toLowerCase())}a(ai,"_toLowerCase");function si(){return Rr(t=>t.toUpperCase())}a(si,"_toUpperCase");function ua(){return Rr(t=>Lh(t))}a(ua,"_slugify");function Ny(t,e,r){return new t({type:"array",element:e,...te(r)})}a(Ny,"_array");function Z1(t,e,r){return new t({type:"union",options:e,...te(r)})}a(Z1,"_union");function W1(t,e,r){return new t({type:"union",options:e,inclusive:!1,...te(r)})}a(W1,"_xor");function K1(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...te(o)})}a(K1,"_discriminatedUnion");function J1(t,e,r){return new t({type:"intersection",left:e,right:r})}a(J1,"_intersection");function X1(t,e,r,o){let n=r instanceof xe,i=n?o:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...te(i)})}a(X1,"_tuple");function Y1(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...te(o)})}a(Y1,"_record");function Q1(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...te(o)})}a(Q1,"_map");function eL(t,e,r){return new t({type:"set",valueType:e,...te(r)})}a(eL,"_set");function tL(t,e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...te(r)})}a(tL,"_enum");function rL(t,e,r){return new t({type:"enum",entries:e,...te(r)})}a(rL,"_nativeEnum");function nL(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...te(r)})}a(nL,"_literal");function hp(t,e){return new t({type:"file",...te(e)})}a(hp,"_file");function oL(t,e){return new t({type:"transform",transform:e})}a(oL,"_transform");function iL(t,e){return new t({type:"optional",innerType:e})}a(iL,"_optional");function aL(t,e){return new t({type:"nullable",innerType:e})}a(aL,"_nullable");function sL(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Bl(r)}})}a(sL,"_default");function cL(t,e,r){return new t({type:"nonoptional",innerType:e,...te(r)})}a(cL,"_nonoptional");function uL(t,e){return new t({type:"success",innerType:e})}a(uL,"_success");function lL(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}a(lL,"_catch");function dL(t,e,r){return new t({type:"pipe",in:e,out:r})}a(dL,"_pipe");function pL(t,e){return new t({type:"readonly",innerType:e})}a(pL,"_readonly");function fL(t,e,r){return new t({type:"template_literal",parts:e,...te(r)})}a(fL,"_templateLiteral");function mL(t,e){return new t({type:"lazy",getter:e})}a(mL,"_lazy");function hL(t,e){return new t({type:"promise",innerType:e})}a(hL,"_promise");function jc(t,e,r){let o=te(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}a(jc,"_custom");function Fc(t,e,r){return new t({type:"custom",check:"custom",fn:e,...te(r)})}a(Fc,"_refine");function gp(t){let e=kx(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Hi(o,r.value,e._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Hi(n))}},t(r.value,r)));return e}a(gp,"_superRefine");function kx(t,e){let r=new rt({check:"custom",...te(e)});return r._zod.check=t,r}a(kx,"_check");function yp(t){let e=new rt({check:"describe"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,description:t})}],e._zod.check=()=>{},e}a(yp,"describe");function _p(t){let e=new rt({check:"meta"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,...t})}],e._zod.check=()=>{},e}a(_p,"meta");function vp(t,e){let r=te(e),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),u=t.Codec??ia,l=t.Boolean??Ko,p=t.String??$n,f=new p({type:"string",error:r.error}),y=new l({type:"boolean",error:r.error}),m=new u({type:"pipe",in:f,out:y,transform:a(((h,_)=>{let P=h;return r.case!=="sensitive"&&(P=P.toLowerCase()),i.has(P)?!0:s.has(P)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:_.value,inst:m,continue:!1}),{})}),"transform"),reverseTransform:a(((h,_)=>h===!0?o[0]||"true":n[0]||"false"),"reverseTransform"),error:r.error});return m}a(vp,"_stringbool");function ci(t,e,r,o={}){let n=te(o),i={...te(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}a(ci,"_stringFormat");function mo(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??Ot,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}a(mo,"initializeContext");function Ye(t,e,r={path:[],schemaPath:[]}){var o;let n=t._zod.def,i=e.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s);let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,f);else{let m=s.schema,h=e.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(t,e,m,f)}let y=t._zod.parent;y&&(s.ref||(s.ref=y),Ye(y,e,f),e.seen.get(y).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&Ht(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}a(Ye,"process");function ho(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of t.seen.entries()){let u=t.metadataRegistry.get(s[0])?.id;if(u){let l=o.get(u);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,s[0])}}let n=a(s=>{let u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let y=t.external.registry.get(s[0])?.id,m=t.external.uri??(_=>_);if(y)return{ref:m(y)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(s[1]===r)return{ref:"#"};let p=`#/${u}/`,f=s[1].schema.id??`__schema${t.counter++}`;return{defId:f,ref:p+f}},"makeURI"),i=a(s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:l,defId:p}=n(s);u.def={...u.schema},p&&(u.defId=p);let f=u.schema;for(let y in f)delete f[y];f.$ref=l},"extractToDef");if(t.cycles==="throw")for(let s of t.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
105
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");let k=h.compile();return(F,Y)=>k(m,F,Y)},"generateFastpass"),i,s=Vo,u=!gs.jitless,p=u&&Fh.value,f=e.catchall,y;t._zod.parse=(m,h)=>{y??(y=o.value);let _=m.value;return s(_)?u&&p&&h?.async===!1&&h.jitless!==!0?(i||(i=n(e.shape)),m=i(m,h),f?Rx([],_,m,h,y,t):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function yx(t,e,r,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let n=t.filter(i=>!uo(i));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}),e)}a(yx,"handleUnionResults");var Jo=w("$ZodUnion",(t,e)=>{xe.init(t,e),ze(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ze(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ze(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),ze(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>bs(i.source)).join("|")})$`)}});let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>yx(l,n,t,i)):yx(u,n,t,i)}});function _x(t,e,r,o){let n=t.filter(i=>i.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>Yt(s,o,pt())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}a(_x,"handleExclusiveUnionResults");var $d=w("$ZodXor",(t,e)=>{Jo.init(t,e),e.inclusive=!1;let r=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(n,i)=>{if(r)return o(n,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:n.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(l=>_x(l,n,t,i)):_x(u,n,t,i)}}),Ls=w("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Jo.init(t,e);let r=t._zod.parse;ze(t._zod,"propValues",()=>{let n={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[u,l]of Object.entries(s)){n[u]||(n[u]=new Set);for(let p of l)n[u].add(p)}}return n});let o=Hi(()=>{let n=e.options,i=new Map;for(let s of n){let u=s._zod.propValues?.[e.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of u){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(n,i)=>{let s=n.value;if(!Vo(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let u=o.value.get(s?.[e.discriminator]);return u?u._zod.run(n,i):e.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),n)}}),Dd=w("$ZodIntersection",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value,i=e.left._zod.run({value:n,issues:[]},o),s=e.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,p])=>vx(r,l,p)):vx(r,i,s)}});function Lg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(co(t)&&co(e)){let r=Object.keys(e),o=Object.keys(t).filter(i=>r.indexOf(i)!==-1),n={...t,...e};for(let i of o){let s=Lg(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let n=t[o],i=e[o],s=Lg(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}a(Lg,"mergeValues");function vx(t,e,r){let o=new Map,n;for(let u of e.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else t.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let l of u.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else t.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&n&&t.issues.push({...n,keys:i}),uo(t))return t;let s=Lg(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}a(vx,"handleIntersectionResults");var js=w("$ZodTuple",(t,e)=>{xe.init(t,e);let r=e.items;t._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!e.rest){let f=i.length>r.length,y=i.length<l-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:t,origin:"array"}),o}let p=-1;for(let f of r){if(p++,p>=i.length&&p>=l)continue;let y=f._zod.run({value:i[p],issues:[]},n);y instanceof Promise?s.push(y.then(m=>nd(m,o,p))):nd(y,o,p)}if(e.rest){let f=i.slice(r.length);for(let y of f){p++;let m=e.rest._zod.run({value:y,issues:[]},n);m instanceof Promise?s.push(m.then(h=>nd(h,o,p))):nd(m,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function nd(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(nd,"handleTupleResult");var Fs=w("$ZodRecord",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!co(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let i=[],s=e.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let f=e.valueType._zod.run({value:n[p],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(p,y.issues)),r.value[p]=y.value})):(f.issues.length&&r.issues.push(...lr(p,f.issues)),r.value[p]=f.value)}let l;for(let p in n)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let l=e.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&ed.test(u)&&l.issues.length){let y=e.keyType._zod.run({value:Number(u),issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(l=y)}if(l.issues.length){e.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>Yt(y,o,pt())),input:u,path:[u],inst:t});continue}let f=e.valueType._zod.run({value:n[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&r.issues.push(...lr(u,y.issues)),r.value[l.value]=y.value})):(f.issues.length&&r.issues.push(...lr(u,f.issues)),r.value[l.value]=f.value)}}return i.length?Promise.all(i).then(()=>r):r}}),zd=w("$ZodMap",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let i=[];r.value=new Map;for(let[s,u]of n){let l=e.keyType._zod.run({value:s,issues:[]},o),p=e.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise||p instanceof Promise?i.push(Promise.all([l,p]).then(([f,y])=>{bx(f,y,r,s,n,t,o)})):bx(l,p,r,s,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function bx(t,e,r,o,n,i,s){t.issues.length&&(Ps.has(typeof o)?r.issues.push(...lr(o,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:t.issues.map(u=>Yt(u,s,pt()))})),e.issues.length&&(Ps.has(typeof o)?r.issues.push(...lr(o,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:e.issues.map(u=>Yt(u,s,pt()))})),r.value.set(t.value,e.value)}a(bx,"handleMapResult");var Ud=w("$ZodSet",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let s of n){let u=e.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Px(l,r))):Px(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function Px(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(Px,"handleSetResult");var Bs=w("$ZodEnum",(t,e)=>{xe.init(t,e);let r=vs(e.entries),o=new Set(r);t._zod.values=o,t._zod.pattern=new RegExp(`^(${r.filter(n=>Ps.has(typeof n)).map(n=>typeof n=="string"?Cr(n):n.toString()).join("|")})$`),t._zod.parse=(n,i)=>{let s=n.value;return o.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),qs=w("$ZodLiteral",(t,e)=>{if(xe.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Cr(o):o?Cr(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),Md=w("$ZodFile",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Gs=w("$ZodTransform",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);let n=e.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Vr;return r.value=n,r}});function Sx(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(Sx,"handleOptionalResult");var ia=w("$ZodOptional",(t,e)=>{xe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",ze(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),ze(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)})?$`):void 0}),t._zod.parse=(r,o)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Sx(i,r.value)):Sx(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,o)}}),Ld=w("$ZodExactOptional",(t,e)=>{ia.init(t,e),ze(t._zod,"values",()=>e.innerType._zod.values),ze(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,o)=>e.innerType._zod.run(r,o)}),Vs=w("$ZodNullable",(t,e)=>{xe.init(t,e),ze(t._zod,"optin",()=>e.innerType._zod.optin),ze(t._zod,"optout",()=>e.innerType._zod.optout),ze(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${bs(r.source)}|null)$`):void 0}),ze(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,o)=>r.value===null?r:e.innerType._zod.run(r,o)}),jd=w("$ZodDefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",ze(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Ex(i,e)):Ex(n,e)}});function Ex(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(Ex,"handleDefaultResult");var Fd=w("$ZodPrefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",ze(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,o))}),Bd=w("$ZodNonOptional",(t,e)=>{xe.init(t,e),ze(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),t._zod.parse=(r,o)=>{let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Tx(i,t)):Tx(n,t)}});function Tx(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}a(Tx,"handleNonOptionalResult");var qd=w("$ZodSuccess",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io("ZodSuccess");let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Gd=w("$ZodCatch",(t,e)=>{xe.init(t,e),ze(t._zod,"optin",()=>e.innerType._zod.optin),ze(t._zod,"optout",()=>e.innerType._zod.optout),ze(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Yt(s,o,pt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(i=>Yt(i,o,pt()))},input:r.value}),r.issues=[]),r)}}),Vd=w("$ZodNaN",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Hs=w("$ZodPipe",(t,e)=>{xe.init(t,e),ze(t._zod,"values",()=>e.in._zod.values),ze(t._zod,"optin",()=>e.in._zod.optin),ze(t._zod,"optout",()=>e.out._zod.optout),ze(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>od(s,e.in,o)):od(i,e.in,o)}let n=e.in._zod.run(r,o);return n instanceof Promise?n.then(i=>od(i,e.out,o)):od(n,e.out,o)}});function od(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}a(od,"handlePipeResult");var aa=w("$ZodCodec",(t,e)=>{xe.init(t,e),ze(t._zod,"values",()=>e.in._zod.values),ze(t._zod,"optin",()=>e.in._zod.optin),ze(t._zod,"optout",()=>e.out._zod.optout),ze(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}else{let i=e.out._zod.run(r,o);return i instanceof Promise?i.then(s=>id(s,e,o)):id(i,e,o)}}});function id(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.out,r)):ad(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(i=>ad(t,i,e.in,r)):ad(t,n,e.in,r)}}a(id,"handleCodecAResult");function ad(t,e,r,o){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},o)}a(ad,"handleCodecTxResult");var Hd=w("$ZodReadonly",(t,e)=>{xe.init(t,e),ze(t._zod,"propValues",()=>e.innerType._zod.propValues),ze(t._zod,"values",()=>e.innerType._zod.values),ze(t._zod,"optin",()=>e.innerType?._zod?.optin),ze(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,o)=>{if(o.direction==="backward")return e.innerType._zod.run(r,o);let n=e.innerType._zod.run(r,o);return n instanceof Promise?n.then(xx):xx(n)}});function xx(t){return t.value=Object.freeze(t.value),t}a(xx,"handleReadonlyResult");var Zd=w("$ZodTemplateLiteral",(t,e)=>{xe.init(t,e);let r=[];for(let o of e.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,s))}else if(o===null||Bh.has(typeof o))r.push(Cr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),o)}),Wd=w("$ZodFunction",(t,e)=>(xe.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=t._def.input?Ho(t._def.input,o):o,i=Reflect.apply(r,this,n);return t._def.output?Ho(t._def.output,i):i}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=t._def.input?await Zo(t._def.input,o):o,i=await Reflect.apply(r,this,n);return t._def.output?await Zo(t._def.output,i):i}},t._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let o=t.constructor;return Array.isArray(r[0])?new o({type:"function",input:new js({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new o({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:r})},t)),Kd=w("$ZodPromise",(t,e)=>{xe.init(t,e),t._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},o))}),Jd=w("$ZodLazy",(t,e)=>{xe.init(t,e),ze(t._zod,"innerType",()=>e.getter()),ze(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),ze(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),ze(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),ze(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,o)=>t._zod.innerType._zod.run(r,o)}),Zs=w("$ZodCustom",(t,e)=>{rt.init(t,e),xe.init(t,e),t._zod.parse=(r,o)=>r,t._zod.check=r=>{let o=r.value,n=e.fn(o);if(n instanceof Promise)return n.then(i=>Ax(i,r,o,t));Ax(n,r,o,t)}});function Ax(t,e,r,o){if(!t){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),e.issues.push(Zi(n))}}a(Ax,"handleRefineResult");var ca={};Xt(ca,{ar:()=>Bg,az:()=>qg,be:()=>Gg,bg:()=>Vg,ca:()=>Hg,cs:()=>Zg,da:()=>Wg,de:()=>Kg,en:()=>Ws,eo:()=>Jg,es:()=>Xg,fa:()=>Yg,fi:()=>Qg,fr:()=>ey,frCA:()=>ty,he:()=>ry,hu:()=>ny,hy:()=>oy,id:()=>iy,is:()=>ay,it:()=>sy,ja:()=>cy,ka:()=>uy,kh:()=>ly,km:()=>Ks,ko:()=>dy,lt:()=>py,mk:()=>fy,ms:()=>my,nl:()=>hy,no:()=>gy,ota:()=>yy,pl:()=>vy,ps:()=>_y,pt:()=>by,ru:()=>Py,sl:()=>Sy,sv:()=>Ey,ta:()=>Ty,th:()=>xy,tr:()=>Ay,ua:()=>wy,uk:()=>Xs,ur:()=>Iy,uz:()=>Cy,vi:()=>Ry,yo:()=>Ny,zhCN:()=>Oy,zhTW:()=>ky});var l1=a(()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${ne(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Bg(){return{localeError:l1()}}a(Bg,"default");var d1=a(()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ne(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function qg(){return{localeError:d1()}}a(qg,"default");function Ox(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a(Ox,"getBelarusianPlural");var p1=a(()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${ne(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=Ox(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=Ox(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Gg(){return{localeError:p1()}}a(Gg,"default");var f1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Vg(){return{localeError:f1()}}a(Vg,"default");var m1=a(()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${ne(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${G(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Hg(){return{localeError:m1()}}a(Hg,"default");var h1=a(()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ne(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${G(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Zg(){return{localeError:h1()}}a(Zg,"default");var g1=a(()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ne(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}},"error");function Wg(){return{localeError:g1()}}a(Wg,"default");var y1=a(()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ne(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Kg(){return{localeError:y1()}}a(Kg,"default");var _1=a(()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`Invalid option: expected one of ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function Ws(){return{localeError:_1()}}a(Ws,"default");var v1=a(()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ne(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function Jg(){return{localeError:v1()}}a(Jg,"default");var b1=a(()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ne(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=o[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Xg(){return{localeError:b1()}}a(Xg,"default");var P1=a(()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ne(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${G(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${G(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Yg(){return{localeError:P1()}}a(Yg,"default");var S1=a(()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ne(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${G(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function Qg(){return{localeError:S1()}}a(Qg,"default");var E1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ne(n.values[0])} attendu`:`Option invalide : une valeur parmi ${G(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ey(){return{localeError:E1()}}a(ey,"default");var T1=a(()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ne(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${G(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ty(){return{localeError:T1()}}a(ty,"default");var x1=a(()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=a(p=>p?t[p]:void 0,"typeEntry"),o=a(p=>{let f=r(p);return f?f.label:p??t.unknown.label},"typeLabel"),n=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(r(p)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),s=a(p=>p?e[p]??null:null,"getSizing"),u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{let f=p.expected,y=l[f??""]??o(f),m=ae(p.input),h=l[m]??t[m]?.label??m;return/^[A-Z]/.test(p.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${p.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(p.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${ne(p.values[0])}`;let f=p.values.map(h=>ne(h));if(p.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let y=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.maximum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${p.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",S=p.inclusive?`${p.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${p.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`.trim()}let m=p.inclusive?"<=":"<",h=i(p.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.maximum.toString()}`}case"too_small":{let f=s(p.origin),y=n(p.origin??"value");if(p.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.minimum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${p.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(p.minimum===1&&p.inclusive){let E=(p.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let S=p.inclusive?`${p.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${p.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`.trim()}let m=p.inclusive?">=":">",h=i(p.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${h} ${m}${p.minimum.toString()}`}case"invalid_format":{let f=p;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let y=u[f.format],m=y?.label??f.format,_=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${_}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${p.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${p.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${p.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${G(p.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function ry(){return{localeError:x1()}}a(ry,"default");var A1=a(()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ne(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function ny(){return{localeError:A1()}}a(ny,"default");function kx(t,e,r){return Math.abs(t)===1?e:r}a(kx,"getArmenianPlural");function sa(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}a(sa,"withDefiniteArticle");var w1=a(()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${ne(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=kx(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sa(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=kx(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sa(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${sa(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${G(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${sa(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${sa(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function oy(){return{localeError:w1()}}a(oy,"default");var I1=a(()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ne(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}},"error");function iy(){return{localeError:I1()}}a(iy,"default");var C1=a(()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ne(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${G(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function ay(){return{localeError:C1()}}a(ay,"default");var R1=a(()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ne(n.values[0])}`:`Opzione non valida: atteso uno tra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${G(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}},"error");function sy(){return{localeError:R1()}}a(sy,"default");var O1=a(()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ne(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${G(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function cy(){return{localeError:O1()}}a(cy,"default");var k1=a(()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${ne(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${G(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function uy(){return{localeError:k1()}}a(uy,"default");var N1=a(()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${ne(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${G(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Ks(){return{localeError:N1()}}a(Ks,"default");function ly(){return Ks()}a(ly,"default");var $1=a(()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ne(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${G(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${s}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(n.origin),l=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${G(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function dy(){return{localeError:$1()}}a(dy,"default");var Js=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function Nx(t){let e=Math.abs(t),r=e%10,o=e%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}a(Nx,"getUnitTypeFromNumber");var D1=a(()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,i,s,u){let l=t[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}a(e,"getSizing");let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ne(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${G(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,s=e(n.origin,Nx(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,s=e(n.origin,Nx(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${Js(i??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Js(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${G(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Js(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function py(){return{localeError:D1()}}a(py,"default");var z1=a(()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ne(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function fy(){return{localeError:z1()}}a(fy,"default");var U1=a(()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ne(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${G(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}},"error");function my(){return{localeError:U1()}}a(my,"default");var M1=a(()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ne(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}},"error");function hy(){return{localeError:M1()}}a(hy,"default");var L1=a(()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ne(n.values[0])}`:`Ugyldig valg: forventet en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}},"error");function gy(){return{localeError:L1()}}a(gy,"default");var j1=a(()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ne(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function yy(){return{localeError:j1()}}a(yy,"default");var F1=a(()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ne(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${G(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${G(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function _y(){return{localeError:F1()}}a(_y,"default");var B1=a(()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ne(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function vy(){return{localeError:B1()}}a(vy,"default");var q1=a(()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ne(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${G(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}},"error");function by(){return{localeError:q1()}}a(by,"default");function $x(t,e,r,o){let n=Math.abs(t),i=n%10,s=n%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?r:o}a($x,"getRussianPlural");var G1=a(()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ne(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);if(s){let u=Number(n.maximum),l=$x(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);if(s){let u=Number(n.minimum),l=$x(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function Py(){return{localeError:G1()}}a(Py,"default");var V1=a(()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ne(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${G(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}},"error");function Sy(){return{localeError:V1()}}a(Sy,"default");var H1=a(()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ne(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${G(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Ey(){return{localeError:H1()}}a(Ey,"default");var Z1=a(()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ne(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${G(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function Ty(){return{localeError:Z1()}}a(Ty,"default");var W1=a(()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ne(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${G(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function xy(){return{localeError:W1()}}a(xy,"default");var K1=a(()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ne(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Ay(){return{localeError:K1()}}a(Ay,"default");var J1=a(()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${ne(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${G(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Xs(){return{localeError:J1()}}a(Xs,"default");function wy(){return Xs()}a(wy,"default");var X1=a(()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ne(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${G(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${G(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Iy(){return{localeError:X1()}}a(Iy,"default");var Y1=a(()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ne(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function Cy(){return{localeError:Y1()}}a(Cy,"default");var Q1=a(()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ne(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${i}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${G(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Ry(){return{localeError:Q1()}}a(Ry,"default");var eL=a(()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ne(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${G(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Oy(){return{localeError:eL()}}a(Oy,"default");var tL=a(()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ne(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${G(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function ky(){return{localeError:tL()}}a(ky,"default");var rL=a(()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}a(e,"getSizing");let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,s=ae(n.input),u=o[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ne(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${G(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${i}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${i}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${G(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Ny(){return{localeError:rL()}}a(Ny,"default");var Dx,Yd=Symbol("ZodOutput"),Qd=Symbol("ZodInput"),Xd=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];return this._map.set(e,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ys(){return new Xd}a(Ys,"registry");(Dx=globalThis).__zod_globalRegistry??(Dx.__zod_globalRegistry=Ys());var Ot=globalThis.__zod_globalRegistry;function Qs(t,e){return new t({type:"string",...te(e)})}a(Qs,"_string");function ec(t,e){return new t({type:"string",coerce:!0,...te(e)})}a(ec,"_coercedString");function tc(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...te(e)})}a(tc,"_email");function ua(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...te(e)})}a(ua,"_guid");function rc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...te(e)})}a(rc,"_uuid");function nc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(e)})}a(nc,"_uuidv4");function oc(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(e)})}a(oc,"_uuidv6");function ic(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(e)})}a(ic,"_uuidv7");function Xo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...te(e)})}a(Xo,"_url");function ac(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...te(e)})}a(ac,"_emoji");function sc(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(e)})}a(sc,"_nanoid");function cc(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...te(e)})}a(cc,"_cuid");function uc(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(e)})}a(uc,"_cuid2");function lc(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...te(e)})}a(lc,"_ulid");function dc(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...te(e)})}a(dc,"_xid");function pc(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(e)})}a(pc,"_ksuid");function fc(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(e)})}a(fc,"_ipv4");function mc(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(e)})}a(mc,"_ipv6");function ep(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...te(e)})}a(ep,"_mac");function hc(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(e)})}a(hc,"_cidrv4");function gc(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(e)})}a(gc,"_cidrv6");function yc(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...te(e)})}a(yc,"_base64");function _c(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...te(e)})}a(_c,"_base64url");function vc(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...te(e)})}a(vc,"_e164");function bc(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...te(e)})}a(bc,"_jwt");var tp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pc(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(e)})}a(Pc,"_isoDateTime");function Sc(t,e){return new t({type:"string",format:"date",check:"string_format",...te(e)})}a(Sc,"_isoDate");function Ec(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...te(e)})}a(Ec,"_isoTime");function Tc(t,e){return new t({type:"string",format:"duration",check:"string_format",...te(e)})}a(Tc,"_isoDuration");function xc(t,e){return new t({type:"number",checks:[],...te(e)})}a(xc,"_number");function Ac(t,e){return new t({type:"number",coerce:!0,checks:[],...te(e)})}a(Ac,"_coercedNumber");function wc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...te(e)})}a(wc,"_int");function rp(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...te(e)})}a(rp,"_float32");function np(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...te(e)})}a(np,"_float64");function op(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...te(e)})}a(op,"_int32");function ip(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...te(e)})}a(ip,"_uint32");function Ic(t,e){return new t({type:"boolean",...te(e)})}a(Ic,"_boolean");function Cc(t,e){return new t({type:"boolean",coerce:!0,...te(e)})}a(Cc,"_coercedBoolean");function ap(t,e){return new t({type:"bigint",...te(e)})}a(ap,"_bigint");function Rc(t,e){return new t({type:"bigint",coerce:!0,...te(e)})}a(Rc,"_coercedBigint");function sp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(e)})}a(sp,"_int64");function cp(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(e)})}a(cp,"_uint64");function up(t,e){return new t({type:"symbol",...te(e)})}a(up,"_symbol");function lp(t,e){return new t({type:"undefined",...te(e)})}a(lp,"_undefined");function dp(t,e){return new t({type:"null",...te(e)})}a(dp,"_null");function Oc(t){return new t({type:"any"})}a(Oc,"_any");function kc(t){return new t({type:"unknown"})}a(kc,"_unknown");function pp(t,e){return new t({type:"never",...te(e)})}a(pp,"_never");function Nc(t,e){return new t({type:"void",...te(e)})}a(Nc,"_void");function fp(t,e){return new t({type:"date",...te(e)})}a(fp,"_date");function $c(t,e){return new t({type:"date",coerce:!0,...te(e)})}a($c,"_coercedDate");function mp(t,e){return new t({type:"nan",...te(e)})}a(mp,"_nan");function Hr(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!1})}a(Hr,"_lt");function Vt(t,e){return new td({check:"less_than",...te(e),value:t,inclusive:!0})}a(Vt,"_lte");function Zr(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!1})}a(Zr,"_gt");function At(t,e){return new rd({check:"greater_than",...te(e),value:t,inclusive:!0})}a(At,"_gte");function Dc(t){return Zr(0,t)}a(Dc,"_positive");function zc(t){return Hr(0,t)}a(zc,"_negative");function Uc(t){return Vt(0,t)}a(Uc,"_nonpositive");function Mc(t){return At(0,t)}a(Mc,"_nonnegative");function Dn(t,e){return new bg({check:"multiple_of",...te(e),value:t})}a(Dn,"_multipleOf");function zn(t,e){return new Eg({check:"max_size",...te(e),maximum:t})}a(zn,"_maxSize");function Wr(t,e){return new Tg({check:"min_size",...te(e),minimum:t})}a(Wr,"_minSize");function lo(t,e){return new xg({check:"size_equals",...te(e),size:t})}a(lo,"_size");function po(t,e){return new Ag({check:"max_length",...te(e),maximum:t})}a(po,"_maxLength");function vt(t,e){return new wg({check:"min_length",...te(e),minimum:t})}a(vt,"_minLength");function fo(t,e){return new Ig({check:"length_equals",...te(e),length:t})}a(fo,"_length");function Ut(t,e){return new Cg({check:"string_format",format:"regex",...te(e),pattern:t})}a(Ut,"_regex");function Yo(t){return new Rg({check:"string_format",format:"lowercase",...te(t)})}a(Yo,"_lowercase");function Qo(t){return new Og({check:"string_format",format:"uppercase",...te(t)})}a(Qo,"_uppercase");function ei(t,e){return new kg({check:"string_format",format:"includes",...te(e),includes:t})}a(ei,"_includes");function ti(t,e){return new Ng({check:"string_format",format:"starts_with",...te(e),prefix:t})}a(ti,"_startsWith");function ri(t,e){return new $g({check:"string_format",format:"ends_with",...te(e),suffix:t})}a(ri,"_endsWith");function Lc(t,e,r){return new Dg({check:"property",property:t,schema:e,...te(r)})}a(Lc,"_property");function ni(t,e){return new zg({check:"mime_type",mime:t,...te(e)})}a(ni,"_mime");function Rr(t){return new Ug({check:"overwrite",tx:t})}a(Rr,"_overwrite");function oi(t){return Rr(e=>e.normalize(t))}a(oi,"_normalize");function ii(){return Rr(t=>t.trim())}a(ii,"_trim");function ai(){return Rr(t=>t.toLowerCase())}a(ai,"_toLowerCase");function si(){return Rr(t=>t.toUpperCase())}a(si,"_toUpperCase");function la(){return Rr(t=>jh(t))}a(la,"_slugify");function $y(t,e,r){return new t({type:"array",element:e,...te(r)})}a($y,"_array");function oL(t,e,r){return new t({type:"union",options:e,...te(r)})}a(oL,"_union");function iL(t,e,r){return new t({type:"union",options:e,inclusive:!1,...te(r)})}a(iL,"_xor");function aL(t,e,r,o){return new t({type:"union",options:r,discriminator:e,...te(o)})}a(aL,"_discriminatedUnion");function sL(t,e,r){return new t({type:"intersection",left:e,right:r})}a(sL,"_intersection");function cL(t,e,r,o){let n=r instanceof xe,i=n?o:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...te(i)})}a(cL,"_tuple");function uL(t,e,r,o){return new t({type:"record",keyType:e,valueType:r,...te(o)})}a(uL,"_record");function lL(t,e,r,o){return new t({type:"map",keyType:e,valueType:r,...te(o)})}a(lL,"_map");function dL(t,e,r){return new t({type:"set",valueType:e,...te(r)})}a(dL,"_set");function pL(t,e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:o,...te(r)})}a(pL,"_enum");function fL(t,e,r){return new t({type:"enum",entries:e,...te(r)})}a(fL,"_nativeEnum");function mL(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...te(r)})}a(mL,"_literal");function hp(t,e){return new t({type:"file",...te(e)})}a(hp,"_file");function hL(t,e){return new t({type:"transform",transform:e})}a(hL,"_transform");function gL(t,e){return new t({type:"optional",innerType:e})}a(gL,"_optional");function yL(t,e){return new t({type:"nullable",innerType:e})}a(yL,"_nullable");function _L(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Bl(r)}})}a(_L,"_default");function vL(t,e,r){return new t({type:"nonoptional",innerType:e,...te(r)})}a(vL,"_nonoptional");function bL(t,e){return new t({type:"success",innerType:e})}a(bL,"_success");function PL(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}a(PL,"_catch");function SL(t,e,r){return new t({type:"pipe",in:e,out:r})}a(SL,"_pipe");function EL(t,e){return new t({type:"readonly",innerType:e})}a(EL,"_readonly");function TL(t,e,r){return new t({type:"template_literal",parts:e,...te(r)})}a(TL,"_templateLiteral");function xL(t,e){return new t({type:"lazy",getter:e})}a(xL,"_lazy");function AL(t,e){return new t({type:"promise",innerType:e})}a(AL,"_promise");function jc(t,e,r){let o=te(r);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}a(jc,"_custom");function Fc(t,e,r){return new t({type:"custom",check:"custom",fn:e,...te(r)})}a(Fc,"_refine");function gp(t){let e=zx(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Zi(o,r.value,e._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Zi(n))}},t(r.value,r)));return e}a(gp,"_superRefine");function zx(t,e){let r=new rt({check:"custom",...te(e)});return r._zod.check=t,r}a(zx,"_check");function yp(t){let e=new rt({check:"describe"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,description:t})}],e._zod.check=()=>{},e}a(yp,"describe");function _p(t){let e=new rt({check:"meta"});return e._zod.onattach=[r=>{let o=Ot.get(r)??{};Ot.add(r,{...o,...t})}],e._zod.check=()=>{},e}a(_p,"meta");function vp(t,e){let r=te(e),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(n),u=t.Codec??aa,l=t.Boolean??Ko,p=t.String??$n,f=new p({type:"string",error:r.error}),y=new l({type:"boolean",error:r.error}),m=new u({type:"pipe",in:f,out:y,transform:a(((h,_)=>{let S=h;return r.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:s.has(S)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:_.value,inst:m,continue:!1}),{})}),"transform"),reverseTransform:a(((h,_)=>h===!0?o[0]||"true":n[0]||"false"),"reverseTransform"),error:r.error});return m}a(vp,"_stringbool");function ci(t,e,r,o={}){let n=te(o),i={...te(o),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(i.pattern=r),new t(i)}a(ci,"_stringFormat");function mo(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??Ot,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}a(mo,"initializeContext");function Ye(t,e,r={path:[],schemaPath:[]}){var o;let n=t._zod.def,i=e.seen.get(t);if(i)return i.count++,r.schemaPath.includes(t)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s);let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,f);else{let m=s.schema,h=e.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(t,e,m,f)}let y=t._zod.parent;y&&(s.ref||(s.ref=y),Ye(y,e,f),e.seen.get(y).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&Ht(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}a(Ye,"process");function ho(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of t.seen.entries()){let u=t.metadataRegistry.get(s[0])?.id;if(u){let l=o.get(u);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,s[0])}}let n=a(s=>{let u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let y=t.external.registry.get(s[0])?.id,m=t.external.uri??(_=>_);if(y)return{ref:m(y)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(s[1]===r)return{ref:"#"};let p=`#/${u}/`,f=s[1].schema.id??`__schema${t.counter++}`;return{defId:f,ref:p+f}},"makeURI"),i=a(s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:l,defId:p}=n(s);u.def={...u.schema},p&&(u.defId=p);let f=u.schema;for(let y in f)delete f[y];f.$ref=l},"extractToDef");if(t.cycles==="throw")for(let s of t.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
106
106
|
|
|
107
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let u=s[1];if(e===s[0]){i(s);continue}if(t.external){let p=t.external.registry.get(s[0])?.id;if(e!==s[0]&&p){i(s);continue}}if(t.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&t.reused==="ref"){i(s);continue}}}a(ho,"extractDefs");function go(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,p={...l},f=u.ref;if(u.ref=null,f){o(f);let m=t.seen.get(f),h=m.schema;if(h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,p),s._zod.parent===f)for(let P in l)P==="$ref"||P==="allOf"||P in p||delete l[P];if(h.$ref&&m.def)for(let P in l)P==="$ref"||P==="allOf"||P in m.def&&JSON.stringify(l[P])===JSON.stringify(m.def[P])&&delete l[P]}let y=s._zod.parent;if(y&&y!==f){o(y);let m=t.seen.get(y);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})},"flattenRef");for(let s of[...t.seen.entries()].reverse())o(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let i=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:la(e,"input",t.processors),output:la(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(go,"finalize");function Ht(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,r);if(o.type==="set")return Ht(o.valueType,r);if(o.type==="lazy")return Ht(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,r);if(o.type==="intersection")return Ht(o.left,r)||Ht(o.right,r);if(o.type==="record"||o.type==="map")return Ht(o.keyType,r)||Ht(o.valueType,r);if(o.type==="pipe")return Ht(o.in,r)||Ht(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Ht(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Ht(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Ht(n,r))return!0;return!!(o.rest&&Ht(o.rest,r))}return!1}a(Ht,"isTransforming");var $y=a((t,e={})=>r=>{let o=mo({...r,processors:e});return Ye(t,o),ho(o,t),go(o,t)},"createToJSONSchemaMethod"),la=a((t,e,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=mo({...n??{},target:i,io:e,processors:r});return Ye(t,s),ho(s,t),go(s,t)},"createStandardJSONSchemaMethod");var gL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=a((t,e,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:p}=t._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=gL[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),p&&(n.contentEncoding=p),l&&l.size>0){let f=[...l];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(y=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Dy=a((t,e,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:p,exclusiveMinimum:f}=t._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof i=="number"&&(n.minimum=i,typeof f=="number"&&e.target!=="draft-04"&&(f>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof s=="number"&&(n.maximum=s,typeof p=="number"&&e.target!=="draft-04"&&(p<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},"numberProcessor"),Uy=a((t,e,r,o)=>{r.type="boolean"},"booleanProcessor"),My=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Ly=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),jy=a((t,e,r,o)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},"nullProcessor"),Fy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),By=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),qy=a((t,e,r,o)=>{r.not={}},"neverProcessor"),Gy=a((t,e,r,o)=>{},"anyProcessor"),Vy=a((t,e,r,o)=>{},"unknownProcessor"),Hy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Zy=a((t,e,r,o)=>{let n=t._zod.def,i=vs(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},"enumProcessor"),Wy=a((t,e,r,o)=>{let n=t._zod.def,i=[];for(let s of n.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},"literalProcessor"),Ky=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Jy=a((t,e,r,o)=>{let n=r,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},"templateLiteralProcessor"),Xy=a((t,e,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=t._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(p=>({contentMediaType:p}))):Object.assign(n,i)},"fileProcessor"),Yy=a((t,e,r,o)=>{r.type="boolean"},"successProcessor"),Qy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),e_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),t_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),r_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),n_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),o_=a((t,e,r,o)=>{let n=r,i=t._zod.def,{minimum:s,maximum:u}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=Ye(i.element,e,{...o,path:[...o.path,"items"]})},"arrayProcessor"),i_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object",n.properties={};let s=i.shape;for(let p in s)n.properties[p]=Ye(s[p],e,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ye(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},"objectProcessor"),Sp=a((t,e,r,o)=>{let n=t._zod.def,i=n.inclusive===!1,s=n.options.map((u,l)=>Ye(u,e,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},"unionProcessor"),a_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.left,e,{...o,path:[...o.path,"allOf",0]}),s=Ye(n.right,e,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),l=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=l},"intersectionProcessor"),s_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",u=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>Ye(m,e,{...o,path:[...o.path,s,h]})),p=i.rest?Ye(i.rest,e,{...o,path:[...o.path,u,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=l,p&&(n.items=p)):e.target==="openapi-3.0"?(n.items={anyOf:l},p&&n.items.anyOf.push(p),n.minItems=l.length,p||(n.maxItems=l.length)):(n.items=l,p&&(n.additionalItems=p));let{minimum:f,maximum:y}=t._zod.bag;typeof f=="number"&&(n.minItems=f),typeof y=="number"&&(n.maxItems=y)},"tupleProcessor"),c_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let f=Ye(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let y of l)n.patternProperties[y.source]=f}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=Ye(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ye(i.valueType,e,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(y=>typeof y=="string"||typeof y=="number");f.length>0&&(n.required=f)}},"recordProcessor"),u_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.innerType,e,o),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},"nullableProcessor"),l_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"nonoptionalProcessor"),d_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},"defaultProcessor"),p_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},"prefaultProcessor"),f_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},"catchProcessor"),m_=a((t,e,r,o)=>{let n=t._zod.def,i=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ye(i,e,o);let s=e.seen.get(t);s.ref=i},"pipeProcessor"),h_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.readOnly=!0},"readonlyProcessor"),g_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"promiseProcessor"),Pp=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"optionalProcessor"),y_=a((t,e,r,o)=>{let n=t._zod.innerType;Ye(n,e,o);let i=e.seen.get(t);i.ref=n},"lazyProcessor"),bp={string:zy,number:Dy,boolean:Uy,bigint:My,symbol:Ly,null:jy,undefined:Fy,void:By,never:qy,any:Gy,unknown:Vy,date:Hy,enum:Zy,literal:Wy,nan:Ky,template_literal:Jy,file:Xy,success:Yy,custom:Qy,function:e_,transform:t_,map:r_,set:n_,array:o_,object:i_,union:Sp,intersection:a_,tuple:s_,record:c_,nullable:u_,nonoptional:l_,default:d_,prefault:p_,catch:f_,pipe:m_,readonly:h_,promise:g_,optional:Pp,lazy:y_};function Bc(t,e){if("_idmap"in t){let o=t,n=mo({...e,processors:bp}),i={};for(let l of o._idmap.entries()){let[p,f]=l;Ye(f,n)}let s={},u={registry:o,uri:e?.uri,defs:i};n.external=u;for(let l of o._idmap.entries()){let[p,f]=l;ho(n,f),s[p]=go(n,f)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=mo({...e,processors:bp});return Ye(t,r),ho(r,t),go(r,t)}a(Bc,"toJSONSchema");var Ep=class{static{a(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=mo({processors:bp,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Ye(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ho(this.ctx,e);let o=go(this.ctx,e),{"~standard":n,...i}=o;return i}};var Nx={};var St=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");xe.init(t,e),t.def=e,t.type=e.type,t.parse=(r,o)=>Ho(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>Yi(t,r,o),t.parseAsync=async(r,o)=>Zo(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ea(t,r,o),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.apply=r=>r(t)}),Tp=w("ZodMiniString",(t,e)=>{$n.init(t,e),St.init(t,e)});function v(t){return Qs(Tp,t)}a(v,"string");var da=w("ZodMiniStringFormat",(t,e)=>{Xe.init(t,e),Tp.init(t,e)});var vL=w("ZodMiniURL",(t,e)=>{Is.init(t,e),da.init(t,e)});function $x(t){return Xo(vL,t)}a($x,"url");var xp=w("ZodMiniNumber",(t,e)=>{ra.init(t,e),St.init(t,e)});function kt(t){return xc(xp,t)}a(kt,"number");var bL=w("ZodMiniNumberFormat",(t,e)=>{Ns.init(t,e),xp.init(t,e)});function zx(t){return wc(bL,t)}a(zx,"int");var __=w("ZodMiniBoolean",(t,e)=>{Ko.init(t,e),St.init(t,e)});function He(t){return Ic(__,t)}a(He,"boolean");var Dx=w("ZodMiniBigInt",(t,e)=>{na.init(t,e),St.init(t,e)});var SL=w("ZodMiniAny",(t,e)=>{$s.init(t,e),St.init(t,e)});function qc(){return Oc(SL)}a(qc,"any");var PL=w("ZodMiniUnknown",(t,e)=>{zs.init(t,e),St.init(t,e)});function Ce(){return kc(PL)}a(Ce,"unknown");var EL=w("ZodMiniVoid",(t,e)=>{Ds.init(t,e),St.init(t,e)});function Ux(t){return Nc(EL,t)}a(Ux,"_void");var Mx=w("ZodMiniDate",(t,e)=>{Us.init(t,e),St.init(t,e)});var TL=w("ZodMiniArray",(t,e)=>{Ms.init(t,e),St.init(t,e)});function Ee(t,e){return new TL({type:"array",element:t,...te(e)})}a(Ee,"array");var xL=w("ZodMiniObject",(t,e)=>{Nd.init(t,e),St.init(t,e),De(t,"shape",()=>e.shape)});function O(t,e){let r={type:"object",shape:t??{},...te(e)};return new xL(r)}a(O,"object");var AL=w("ZodMiniUnion",(t,e)=>{Jo.init(t,e),St.init(t,e)});function Ue(t,e){return new AL({type:"union",options:t,...te(e)})}a(Ue,"union");var wL=w("ZodMiniDiscriminatedUnion",(t,e)=>{Ls.init(t,e),St.init(t,e)});function yo(t,e,r){return new wL({type:"union",options:e,discriminator:t,...te(r)})}a(yo,"discriminatedUnion");var IL=w("ZodMiniRecord",(t,e)=>{Fs.init(t,e),St.init(t,e)});function Re(t,e,r){return new IL({type:"record",keyType:t,valueType:e,...te(r)})}a(Re,"record");var CL=w("ZodMiniEnum",(t,e)=>{Bs.init(t,e),St.init(t,e),t.options=Object.values(e.entries)});function Se(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new CL({type:"enum",entries:r,...te(e)})}a(Se,"_enum");var RL=w("ZodMiniLiteral",(t,e)=>{qs.init(t,e),St.init(t,e)});function ve(t,e){return new RL({type:"literal",values:Array.isArray(t)?t:[t],...te(e)})}a(ve,"literal");var OL=w("ZodMiniTransform",(t,e)=>{Gs.init(t,e),St.init(t,e)});function _o(t){return new OL({type:"transform",transform:t})}a(_o,"transform");var kL=w("ZodMiniOptional",(t,e)=>{oa.init(t,e),St.init(t,e)});function q(t){return new kL({type:"optional",innerType:t})}a(q,"optional");var NL=w("ZodMiniNullable",(t,e)=>{Vs.init(t,e),St.init(t,e)});function Gc(t){return new NL({type:"nullable",innerType:t})}a(Gc,"nullable");var $L=w("ZodMiniPipe",(t,e)=>{Hs.init(t,e),St.init(t,e)});function vo(t,e){return new $L({type:"pipe",in:t,out:e})}a(vo,"pipe");var Lx=w("ZodMiniCustom",(t,e)=>{Zs.init(t,e),St.init(t,e)});function Ap(t,e){return jc(Lx,t??(()=>!0),e)}a(Ap,"custom");function v_(t,e={}){return Fc(Lx,t,e)}a(v_,"refine");var wp={};Xt(wp,{ZodMiniISODate:()=>S_,ZodMiniISODateTime:()=>b_,ZodMiniISODuration:()=>E_,ZodMiniISOTime:()=>P_,date:()=>DL,datetime:()=>zL,duration:()=>ML,time:()=>UL});var b_=w("ZodMiniISODateTime",(t,e)=>{Cs.init(t,e),da.init(t,e)});function zL(t){return Sc(b_,t)}a(zL,"datetime");var S_=w("ZodMiniISODate",(t,e)=>{Rs.init(t,e),da.init(t,e)});function DL(t){return Pc(S_,t)}a(DL,"date");var P_=w("ZodMiniISOTime",(t,e)=>{Os.init(t,e),da.init(t,e)});function UL(t){return Ec(P_,t)}a(UL,"time");var E_=w("ZodMiniISODuration",(t,e)=>{ks.init(t,e),da.init(t,e)});function ML(t){return Tc(E_,t)}a(ML,"duration");var Vc={};Xt(Vc,{bigint:()=>BL,boolean:()=>FL,date:()=>qL,number:()=>jL,string:()=>LL});function LL(t){return ec(Tp,t)}a(LL,"string");function jL(t){return Ac(xp,t)}a(jL,"number");function FL(t){return Cc(__,t)}a(FL,"boolean");function BL(t){return Rc(Dx,t)}a(BL,"bigint");function qL(t){return $c(Mx,t)}a(qL,"date");var x_=O({retryOnFailure:O({defaultValue:q(He()),hide:q(He())}),continueOnFailure:O({defaultValue:q(He()),hide:q(He())})}),T_=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h){this.name=e;this.displayName=r;this.description=o;this.props=n;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=l;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=y;this.aiMetadata=m;this.classification=h}static{a(this,"IAction")}},Oe=a(t=>new T_(t.name,t.displayName,t.description,t.props,t.propertyGroups,t.run,t.test??t.run,t.requireAuth??!0,t.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},t.outputSchema,t.audience,t.aiMetadata,t.classification),"createAction");var Ge=O({displayName:v(),description:q(v()),advanced:q(He()),width:q(Se(["half","full"])),icon:q(v()),placeholder:q(v())}),ke=a((t,e)=>O({type:ve(e),required:He(),defaultValue:q(qc())}),"TPropertyValue");var pr=O({...Ge.shape,...ke(v(),"SHORT_TEXT").shape}),Un=O({...Ge.shape,...ke(v(),"LONG_TEXT").shape});var Fx=O({label:v(),value:Ce(),description:q(v()),icon:q(v())}),Ip=O({disabled:q(He()),placeholder:q(v()),options:Ee(Fx)});var VL=Se(["cards"]),fr=O({...Ge.shape,options:Ip,display:q(VL),...ke(Ce(),"STATIC_DROPDOWN").shape}),Mn=O({...Ge.shape,options:Ip,...ke(Ee(Ce()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var A_=O({...Ge.shape,...ke(Ce(),"DROPDOWN").shape,refreshers:Ee(v())}),Hc=O({...Ge.shape,...ke(Ee(Ce()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Ee(v())});var Ln=O({...Ge.shape,reveals:q(Ee(v())),...ke(He(),"CHECKBOX").shape});var jn=O({...Ge.shape,display:q(Se(["stepper"])),min:q(kt()),max:q(kt()),step:q(kt()),...ke(kt(),"NUMBER").shape});var Zc=O({...Ge.shape,streaming:q(He()),...ke(Ce(),"FILE").shape});var Wc=O({...Ge.shape,...ke(v(),"DATE_TIME").shape});var Bx=Re(v(),Ue([pr,Un,fr,Hc,Mn,Ln,jn,Zc,Wc])),Kc=O({...Ge.shape,properties:Bx,...ke(Ee(Ce()),"ARRAY").shape});var qx=Se(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Gx=O({preset:q(qx),after:q(v()),before:q(v())}),w_=O({...Ge.shape,display:q(Se(["dropdown"])),...ke(Gx,"DATE_RANGE").shape});var Jc=O({...Ge.shape,...ke(Ue([Re(v(),Ce())]),"JSON").shape});var Vx=Ue([pr,fr,Jc,Kc,Mn]),HL=Re(v(),Vx),I_=O({refreshers:Ee(v()),...Ge.shape,...ke(Ce(),"DYNAMIC").shape});var Cp=O({...Ge.shape,...ke(Ux(),"MARKDOWN").shape});var Xc=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Xc||{}),pa=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(pa||{}),fa=(x=>(x.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",x.COMMUNICATION="COMMUNICATION",x.COMMERCE="COMMERCE",x.CORE="CORE",x.UNIVERSAL_AI="UNIVERSAL_AI",x.FLOW_CONTROL="FLOW_CONTROL",x.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",x.ACCOUNTING="ACCOUNTING",x.PRODUCTIVITY="PRODUCTIVITY",x.CONTENT_AND_FILES="CONTENT_AND_FILES",x.DEVELOPER_TOOLS="DEVELOPER_TOOLS",x.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",x.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",x.HUMAN_RESOURCES="HUMAN_RESOURCES",x.PAYMENT_PROCESSING="PAYMENT_PROCESSING",x.MARKETING="MARKETING",x.SALES_AND_CRM="SALES_AND_CRM",x))(fa||{});var Yc=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Yc||{}),C_="both_client_credentials_and_authorization_code";var bo=(n=>(n.POLLING="POLLING",n.WEBHOOK="WEBHOOK",n.APP_WEBHOOK="APP_WEBHOOK",n.MANUAL="MANUAL",n))(bo||{}),Qc=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))(Qc||{}),ZL=O({strategy:Se(Qc),paramName:q(v())}),eu=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(eu||{});var Rp=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Rp||{}),Hx=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),Zx=O({type:ve("DELAY"),resumeDateTime:v(),requestIdToReply:q(v()),handlerId:q(v()),streamStepProgress:q(Se(Rp))}),Wx=O({type:ve("WEBHOOK"),requestId:v(),requestIdToReply:q(v()),response:Hx,handlerId:q(v()),streamStepProgress:q(Se(Rp))}),WL=Ue([Zx,Wx]);var KL=O({body:Ce(),rawBody:q(Ce()),headers:Re(v(),v()),queryParams:Re(v(),v())});function ft(t){return t==null}a(ft,"isNil");function tu(t){return t==null?!0:typeof t=="string"||Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}a(tu,"isEmpty");function Op(t,e){if(t==null)throw new Error(`${e} is null or undefined`)}a(Op,"assertNotNullOrUndefined");function O_(t){try{return{data:t(),error:null}}catch(e){return{data:null,error:e}}}a(O_,"tryCatchSync");var k_=xt(require("crypto"),1);var JL=128,So,ma,XL=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!So||So.length<t?(So=Buffer.allocUnsafe(t*JL),k_.default.randomFillSync(So),ma=0):ma+t>So.length&&(k_.default.randomFillSync(So),ma=0)}catch(e){throw So=void 0,e}ma+=t},"fillPool"),YL=a(t=>(XL(t|=0),So.subarray(ma-t,ma)),"random"),QL=a((t,e,r)=>{let o=(2<<31-Math.clz32(t.length-1|1))-1,n=Math.ceil(1.6*o*e/t.length);return(i=e)=>{if(i<=0)return"";let s="";for(;;){let u=r(n),l=n;for(;l--;)if(s+=t[u[l]&o]||"",s.length===i)return s}}},"customRandom"),Kx=a((t,e=21)=>QL(t,e,YL),"customAlphabet");var ej="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Jx=21,R9=v().check(Ut(new RegExp(`^[0-9a-zA-Z]{${Jx}}$`))),tj=Kx(ej,Jx);var Po=vo(_o(t=>t instanceof Date?t.toISOString():t),v()),Or={id:v(),created:Po,updated:Po},mt=a(t=>q(Gc(t)),"Nullable");function N_(t){return q(Gc(Se(t)))}a(N_,"NullableEnum");var N9=vo(_o(t=>t==="true"||t===!0?!0:t==="false"||t===!1?!1:void 0),q(He())),$9=q(wp.datetime({offset:!0}).check(v_(t=>t.slice(0,4)!=="0000"))),kp=a(t=>vo(_o(e=>Array.isArray(e)?e:e!==void 0?[e]:void 0),q(Ee(t))),"OptionalArrayFromQuery");var U9=Re(v(),Ce());var Eo=(x=>(x.OPENAI="openai",x.OPENROUTER="openrouter",x.ANTHROPIC="anthropic",x.AZURE="azure",x.GOOGLE="google",x.ACTIVEPIECES="activepieces",x.CLOUDFLARE_GATEWAY="cloudflare-gateway",x.CUSTOM="custom",x.BEDROCK="bedrock",x.VERTEX="vertex",x.MISTRAL="mistral",x.XAI="xai",x.DEEPSEEK="deepseek",x.ZAI="zai",x.QWEN="qwen",x.MINIMAX="minimax",x.MOONSHOT="moonshot",x))(Eo||{});var ue={};Xt(ue,{$brand:()=>ys,$input:()=>Qd,$output:()=>Yd,NEVER:()=>Ll,TimePrecision:()=>tp,ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Sa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Ev,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodError:()=>rj,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFirstPartyTypeKind:()=>Fv,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,ZodIntersection:()=>lv,ZodIssueCode:()=>oj,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Pv,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>xv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRealError:()=>tr,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>Tv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,clone:()=>Rt,codec:()=>ew,coerce:()=>Bv,config:()=>pt,core:()=>dr,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,decode:()=>q_,decodeAsync:()=>V_,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>Yx,emoji:()=>aA,encode:()=>B_,encodeAsync:()=>G_,endsWith:()=>ri,enum:()=>sf,exactOptional:()=>Sv,file:()=>JA,flattenError:()=>Zi,float32:()=>AA,float64:()=>wA,formatError:()=>Wi,fromJSONSchema:()=>fw,function:()=>nw,getErrorMap:()=>aj,globalRegistry:()=>Ot,gt:()=>Zr,gte:()=>At,guid:()=>Qx,hash:()=>xA,hex:()=>TA,hostname:()=>EA,httpUrl:()=>iA,includes:()=>ei,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,iso:()=>ha,json:()=>lw,jwt:()=>SA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,length:()=>fo,literal:()=>KA,locales:()=>sa,looseObject:()=>FA,looseRecord:()=>VA,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,mac:()=>mA,map:()=>HA,maxLength:()=>po,maxSize:()=>Dn,meta:()=>sw,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,negative:()=>Dc,never:()=>of,nonnegative:()=>Mc,nonoptional:()=>wv,nonpositive:()=>Uc,normalize:()=>oi,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,overwrite:()=>Rr,parse:()=>M_,parseAsync:()=>L_,partialRecord:()=>GA,pipe:()=>au,positive:()=>zc,prefault:()=>Av,preprocess:()=>dw,prettifyError:()=>Gl,promise:()=>rw,property:()=>Lc,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,regex:()=>Ut,regexes:()=>er,registry:()=>Ys,safeDecode:()=>Z_,safeDecodeAsync:()=>K_,safeEncode:()=>H_,safeEncodeAsync:()=>W_,safeParse:()=>j_,safeParseAsync:()=>F_,set:()=>ZA,setErrorMap:()=>ij,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>PA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,toJSONSchema:()=>Bc,toLowerCase:()=>ai,toUpperCase:()=>si,transform:()=>cf,treeifyError:()=>ql,trim:()=>ii,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,uppercase:()=>Qo,url:()=>oA,util:()=>ie,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var ru={};Xt(ru,{ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Sa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Ev,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodExactOptional:()=>bv,ZodFile:()=>_v,ZodFunction:()=>Mv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodIntersection:()=>lv,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>zv,ZodLiteral:()=>yv,ZodMAC:()=>J_,ZodMap:()=>hv,ZodNaN:()=>Ov,ZodNanoID:()=>qp,ZodNever:()=>iv,ZodNonOptional:()=>lf,ZodNull:()=>tv,ZodNullable:()=>Pv,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>xv,ZodPromise:()=>Uv,ZodReadonly:()=>kv,ZodRecord:()=>pu,ZodSet:()=>gv,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Iv,ZodSymbol:()=>Q_,ZodTemplateLiteral:()=>$v,ZodTransform:()=>vv,ZodTuple:()=>pv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>ev,ZodUnion:()=>du,ZodUnknown:()=>ov,ZodVoid:()=>av,ZodXID:()=>Zp,ZodXor:()=>cv,_ZodString:()=>jp,_default:()=>Tv,_function:()=>nw,any:()=>zA,array:()=>uu,base64:()=>_A,base64url:()=>vA,bigint:()=>RA,boolean:()=>Y_,catch:()=>Rv,check:()=>ow,cidrv4:()=>gA,cidrv6:()=>yA,codec:()=>ew,cuid:()=>cA,cuid2:()=>uA,custom:()=>iw,date:()=>UA,describe:()=>aw,discriminatedUnion:()=>qA,e164:()=>bA,email:()=>Yx,emoji:()=>aA,enum:()=>sf,exactOptional:()=>Sv,file:()=>JA,float32:()=>AA,float64:()=>wA,function:()=>nw,guid:()=>Qx,hash:()=>xA,hex:()=>TA,hostname:()=>EA,httpUrl:()=>iA,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,json:()=>lw,jwt:()=>SA,keyof:()=>MA,ksuid:()=>pA,lazy:()=>Dv,literal:()=>KA,looseObject:()=>FA,looseRecord:()=>VA,mac:()=>mA,map:()=>HA,meta:()=>sw,nan:()=>QA,nanoid:()=>sA,nativeEnum:()=>WA,never:()=>of,nonoptional:()=>wv,null:()=>rv,nullable:()=>iu,nullish:()=>XA,number:()=>X_,object:()=>LA,optional:()=>ou,partialRecord:()=>GA,pipe:()=>au,prefault:()=>Av,preprocess:()=>dw,promise:()=>rw,readonly:()=>Nv,record:()=>mv,refine:()=>Lv,set:()=>ZA,strictObject:()=>jA,string:()=>Mp,stringFormat:()=>PA,stringbool:()=>uw,success:()=>YA,superRefine:()=>jv,symbol:()=>NA,templateLiteral:()=>tw,transform:()=>cf,tuple:()=>fv,uint32:()=>CA,uint64:()=>kA,ulid:()=>lA,undefined:()=>$A,union:()=>af,unknown:()=>ui,url:()=>oA,uuid:()=>eA,uuidv4:()=>tA,uuidv6:()=>rA,uuidv7:()=>nA,void:()=>DA,xid:()=>dA,xor:()=>BA});var Np={};Xt(Np,{endsWith:()=>ri,gt:()=>Zr,gte:()=>At,includes:()=>ei,length:()=>fo,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,maxLength:()=>po,maxSize:()=>Dn,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>zn,negative:()=>Dc,nonnegative:()=>Mc,nonpositive:()=>Uc,normalize:()=>oi,overwrite:()=>Rr,positive:()=>zc,property:()=>Lc,regex:()=>Ut,size:()=>lo,slugify:()=>ua,startsWith:()=>ti,toLowerCase:()=>ai,toUpperCase:()=>si,trim:()=>ii,uppercase:()=>Qo});var ha={};Xt(ha,{ZodISODate:()=>zp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>Dp,date:()=>z_,datetime:()=>$_,duration:()=>U_,time:()=>D_});var $p=w("ZodISODateTime",(t,e)=>{Cs.init(t,e),nt.init(t,e)});function $_(t){return Sc($p,t)}a($_,"datetime");var zp=w("ZodISODate",(t,e)=>{Rs.init(t,e),nt.init(t,e)});function z_(t){return Pc(zp,t)}a(z_,"date");var Dp=w("ZodISOTime",(t,e)=>{Os.init(t,e),nt.init(t,e)});function D_(t){return Ec(Dp,t)}a(D_,"time");var Up=w("ZodISODuration",(t,e)=>{ks.init(t,e),nt.init(t,e)});function U_(t){return Tc(Up,t)}a(U_,"duration");var Xx=a((t,e)=>{Ts.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:a(r=>Wi(t,r),"value")},flatten:{value:a(r=>Zi(t,r),"value")},addIssue:{value:a(r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},addIssues:{value:a(r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Gi,2)},"value")},isEmpty:{get(){return t.issues.length===0}}})},"initializer"),rj=w("ZodError",Xx),tr=w("ZodError",Xx,{Parent:Error});var M_=Ki(tr),L_=Ji(tr),j_=Xi(tr),F_=Qi(tr),B_=Vl(tr),q_=Hl(tr),G_=Zl(tr),V_=Wl(tr),H_=Kl(tr),Z_=Jl(tr),W_=Xl(tr),K_=Yl(tr);var Me=w("ZodType",(t,e)=>(xe.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:la(t,"input"),output:la(t,"output")}}),t.toJSONSchema=$y(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(ie.mergeDefs(e,{checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.parse=(r,o)=>M_(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>j_(t,r,o),t.parseAsync=async(r,o)=>L_(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>F_(t,r,o),t.spa=t.safeParseAsync,t.encode=(r,o)=>B_(t,r,o),t.decode=(r,o)=>q_(t,r,o),t.encodeAsync=async(r,o)=>G_(t,r,o),t.decodeAsync=async(r,o)=>V_(t,r,o),t.safeEncode=(r,o)=>H_(t,r,o),t.safeDecode=(r,o)=>Z_(t,r,o),t.safeEncodeAsync=async(r,o)=>W_(t,r,o),t.safeDecodeAsync=async(r,o)=>K_(t,r,o),t.refine=(r,o)=>t.check(Lv(r,o)),t.superRefine=r=>t.check(jv(r)),t.overwrite=r=>t.check(Rr(r)),t.optional=()=>ou(t),t.exactOptional=()=>Sv(t),t.nullable=()=>iu(t),t.nullish=()=>ou(iu(t)),t.nonoptional=r=>wv(t,r),t.array=()=>uu(t),t.or=r=>af([t,r]),t.and=r=>dv(t,r),t.transform=r=>au(t,cf(r)),t.default=r=>Tv(t,r),t.prefault=r=>Av(t,r),t.catch=r=>Rv(t,r),t.pipe=r=>au(t,r),t.readonly=()=>Nv(t),t.describe=r=>{let o=t.clone();return Ot.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return Ot.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ot.get(t);let o=t.clone();return Ot.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),jp=w("_ZodString",(t,e)=>{$n.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>zy(t,o,n,i);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(Ut(...o)),t.includes=(...o)=>t.check(ei(...o)),t.startsWith=(...o)=>t.check(ti(...o)),t.endsWith=(...o)=>t.check(ri(...o)),t.min=(...o)=>t.check(vt(...o)),t.max=(...o)=>t.check(po(...o)),t.length=(...o)=>t.check(fo(...o)),t.nonempty=(...o)=>t.check(vt(1,...o)),t.lowercase=o=>t.check(Yo(o)),t.uppercase=o=>t.check(Qo(o)),t.trim=()=>t.check(ii()),t.normalize=(...o)=>t.check(oi(...o)),t.toLowerCase=()=>t.check(ai()),t.toUpperCase=()=>t.check(si()),t.slugify=()=>t.check(ua())}),ya=w("ZodString",(t,e)=>{$n.init(t,e),jp.init(t,e),t.email=r=>t.check(tc(Fp,r)),t.url=r=>t.check(Xo(su,r)),t.jwt=r=>t.check(bc(rf,r)),t.emoji=r=>t.check(ac(Bp,r)),t.guid=r=>t.check(ca(nu,r)),t.uuid=r=>t.check(rc(cn,r)),t.uuidv4=r=>t.check(nc(cn,r)),t.uuidv6=r=>t.check(oc(cn,r)),t.uuidv7=r=>t.check(ic(cn,r)),t.nanoid=r=>t.check(sc(qp,r)),t.guid=r=>t.check(ca(nu,r)),t.cuid=r=>t.check(cc(Gp,r)),t.cuid2=r=>t.check(uc(Vp,r)),t.ulid=r=>t.check(lc(Hp,r)),t.base64=r=>t.check(yc(Qp,r)),t.base64url=r=>t.check(_c(ef,r)),t.xid=r=>t.check(dc(Zp,r)),t.ksuid=r=>t.check(pc(Wp,r)),t.ipv4=r=>t.check(fc(Kp,r)),t.ipv6=r=>t.check(mc(Jp,r)),t.cidrv4=r=>t.check(hc(Xp,r)),t.cidrv6=r=>t.check(gc(Yp,r)),t.e164=r=>t.check(vc(tf,r)),t.datetime=r=>t.check($_(r)),t.date=r=>t.check(z_(r)),t.time=r=>t.check(D_(r)),t.duration=r=>t.check(U_(r))});function Mp(t){return Qs(ya,t)}a(Mp,"string");var nt=w("ZodStringFormat",(t,e)=>{Xe.init(t,e),jp.init(t,e)}),Fp=w("ZodEmail",(t,e)=>{ld.init(t,e),nt.init(t,e)});function Yx(t){return tc(Fp,t)}a(Yx,"email");var nu=w("ZodGUID",(t,e)=>{cd.init(t,e),nt.init(t,e)});function Qx(t){return ca(nu,t)}a(Qx,"guid");var cn=w("ZodUUID",(t,e)=>{ud.init(t,e),nt.init(t,e)});function eA(t){return rc(cn,t)}a(eA,"uuid");function tA(t){return nc(cn,t)}a(tA,"uuidv4");function rA(t){return oc(cn,t)}a(rA,"uuidv6");function nA(t){return ic(cn,t)}a(nA,"uuidv7");var su=w("ZodURL",(t,e)=>{Is.init(t,e),nt.init(t,e)});function oA(t){return Xo(su,t)}a(oA,"url");function iA(t){return Xo(su,{protocol:/^https?$/,hostname:er.domain,...ie.normalizeParams(t)})}a(iA,"httpUrl");var Bp=w("ZodEmoji",(t,e)=>{dd.init(t,e),nt.init(t,e)});function aA(t){return ac(Bp,t)}a(aA,"emoji");var qp=w("ZodNanoID",(t,e)=>{pd.init(t,e),nt.init(t,e)});function sA(t){return sc(qp,t)}a(sA,"nanoid");var Gp=w("ZodCUID",(t,e)=>{fd.init(t,e),nt.init(t,e)});function cA(t){return cc(Gp,t)}a(cA,"cuid");var Vp=w("ZodCUID2",(t,e)=>{md.init(t,e),nt.init(t,e)});function uA(t){return uc(Vp,t)}a(uA,"cuid2");var Hp=w("ZodULID",(t,e)=>{hd.init(t,e),nt.init(t,e)});function lA(t){return lc(Hp,t)}a(lA,"ulid");var Zp=w("ZodXID",(t,e)=>{gd.init(t,e),nt.init(t,e)});function dA(t){return dc(Zp,t)}a(dA,"xid");var Wp=w("ZodKSUID",(t,e)=>{yd.init(t,e),nt.init(t,e)});function pA(t){return pc(Wp,t)}a(pA,"ksuid");var Kp=w("ZodIPv4",(t,e)=>{_d.init(t,e),nt.init(t,e)});function fA(t){return fc(Kp,t)}a(fA,"ipv4");var J_=w("ZodMAC",(t,e)=>{bd.init(t,e),nt.init(t,e)});function mA(t){return ep(J_,t)}a(mA,"mac");var Jp=w("ZodIPv6",(t,e)=>{vd.init(t,e),nt.init(t,e)});function hA(t){return mc(Jp,t)}a(hA,"ipv6");var Xp=w("ZodCIDRv4",(t,e)=>{Sd.init(t,e),nt.init(t,e)});function gA(t){return hc(Xp,t)}a(gA,"cidrv4");var Yp=w("ZodCIDRv6",(t,e)=>{Pd.init(t,e),nt.init(t,e)});function yA(t){return gc(Yp,t)}a(yA,"cidrv6");var Qp=w("ZodBase64",(t,e)=>{Ed.init(t,e),nt.init(t,e)});function _A(t){return yc(Qp,t)}a(_A,"base64");var ef=w("ZodBase64URL",(t,e)=>{Td.init(t,e),nt.init(t,e)});function vA(t){return _c(ef,t)}a(vA,"base64url");var tf=w("ZodE164",(t,e)=>{xd.init(t,e),nt.init(t,e)});function bA(t){return vc(tf,t)}a(bA,"e164");var rf=w("ZodJWT",(t,e)=>{Ad.init(t,e),nt.init(t,e)});function SA(t){return bc(rf,t)}a(SA,"jwt");var _a=w("ZodCustomStringFormat",(t,e)=>{wd.init(t,e),nt.init(t,e)});function PA(t,e,r={}){return ci(_a,t,e,r)}a(PA,"stringFormat");function EA(t){return ci(_a,"hostname",er.hostname,t)}a(EA,"hostname");function TA(t){return ci(_a,"hex",er.hex,t)}a(TA,"hex");function xA(t,e){let r=e?.enc??"hex",o=`${t}_${r}`,n=er[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ci(_a,o,n,e)}a(xA,"hash");var va=w("ZodNumber",(t,e)=>{ra.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Dy(t,o,n,i),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.int=o=>t.check(Lp(o)),t.safe=o=>t.check(Lp(o)),t.positive=o=>t.check(Zr(0,o)),t.nonnegative=o=>t.check(At(0,o)),t.negative=o=>t.check(Hr(0,o)),t.nonpositive=o=>t.check(Vt(0,o)),t.multipleOf=(o,n)=>t.check(zn(o,n)),t.step=(o,n)=>t.check(zn(o,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function X_(t){return xc(va,t)}a(X_,"number");var li=w("ZodNumberFormat",(t,e)=>{Ns.init(t,e),va.init(t,e)});function Lp(t){return wc(li,t)}a(Lp,"int");function AA(t){return rp(li,t)}a(AA,"float32");function wA(t){return np(li,t)}a(wA,"float64");function IA(t){return op(li,t)}a(IA,"int32");function CA(t){return ip(li,t)}a(CA,"uint32");var ba=w("ZodBoolean",(t,e)=>{Ko.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Uy(t,r,o,n)});function Y_(t){return Ic(ba,t)}a(Y_,"boolean");var Sa=w("ZodBigInt",(t,e)=>{na.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>My(t,o,n,i),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.positive=o=>t.check(Zr(BigInt(0),o)),t.negative=o=>t.check(Hr(BigInt(0),o)),t.nonpositive=o=>t.check(Vt(BigInt(0),o)),t.nonnegative=o=>t.check(At(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(zn(o,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function RA(t){return ap(Sa,t)}a(RA,"bigint");var nf=w("ZodBigIntFormat",(t,e)=>{Id.init(t,e),Sa.init(t,e)});function OA(t){return sp(nf,t)}a(OA,"int64");function kA(t){return cp(nf,t)}a(kA,"uint64");var Q_=w("ZodSymbol",(t,e)=>{Cd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ly(t,r,o,n)});function NA(t){return up(Q_,t)}a(NA,"symbol");var ev=w("ZodUndefined",(t,e)=>{Rd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Fy(t,r,o,n)});function $A(t){return lp(ev,t)}a($A,"_undefined");var tv=w("ZodNull",(t,e)=>{Od.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>jy(t,r,o,n)});function rv(t){return dp(tv,t)}a(rv,"_null");var nv=w("ZodAny",(t,e)=>{$s.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Gy(t,r,o,n)});function zA(){return Oc(nv)}a(zA,"any");var ov=w("ZodUnknown",(t,e)=>{zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Vy(t,r,o,n)});function ui(){return kc(ov)}a(ui,"unknown");var iv=w("ZodNever",(t,e)=>{kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>qy(t,r,o,n)});function of(t){return pp(iv,t)}a(of,"never");var av=w("ZodVoid",(t,e)=>{Ds.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>By(t,r,o,n)});function DA(t){return Nc(av,t)}a(DA,"_void");var cu=w("ZodDate",(t,e)=>{Us.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Hy(t,o,n,i),t.min=(o,n)=>t.check(At(o,n)),t.max=(o,n)=>t.check(Vt(o,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function UA(t){return fp(cu,t)}a(UA,"date");var sv=w("ZodArray",(t,e)=>{Ms.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>o_(t,r,o,n),t.element=e.element,t.min=(r,o)=>t.check(vt(r,o)),t.nonempty=r=>t.check(vt(1,r)),t.max=(r,o)=>t.check(po(r,o)),t.length=(r,o)=>t.check(fo(r,o)),t.unwrap=()=>t.element});function uu(t,e){return Ny(sv,t,e)}a(uu,"array");function MA(t){let e=t._zod.def.shape;return sf(Object.keys(e))}a(MA,"keyof");var lu=w("ZodObject",(t,e)=>{jg.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>i_(t,r,o,n),ie.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>sf(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:ui()}),t.loose=()=>t.clone({...t._zod.def,catchall:ui()}),t.strict=()=>t.clone({...t._zod.def,catchall:of()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ie.extend(t,r),t.safeExtend=r=>ie.safeExtend(t,r),t.merge=r=>ie.merge(t,r),t.pick=r=>ie.pick(t,r),t.omit=r=>ie.omit(t,r),t.partial=(...r)=>ie.partial(uf,t,r[0]),t.required=(...r)=>ie.required(lf,t,r[0])});function LA(t,e){let r={type:"object",shape:t??{},...ie.normalizeParams(e)};return new lu(r)}a(LA,"object");function jA(t,e){return new lu({type:"object",shape:t,catchall:of(),...ie.normalizeParams(e)})}a(jA,"strictObject");function FA(t,e){return new lu({type:"object",shape:t,catchall:ui(),...ie.normalizeParams(e)})}a(FA,"looseObject");var du=w("ZodUnion",(t,e)=>{Jo.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Sp(t,r,o,n),t.options=e.options});function af(t,e){return new du({type:"union",options:t,...ie.normalizeParams(e)})}a(af,"union");var cv=w("ZodXor",(t,e)=>{du.init(t,e),$d.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Sp(t,r,o,n),t.options=e.options});function BA(t,e){return new cv({type:"union",options:t,inclusive:!1,...ie.normalizeParams(e)})}a(BA,"xor");var uv=w("ZodDiscriminatedUnion",(t,e)=>{du.init(t,e),Ls.init(t,e)});function qA(t,e,r){return new uv({type:"union",options:e,discriminator:t,...ie.normalizeParams(r)})}a(qA,"discriminatedUnion");var lv=w("ZodIntersection",(t,e)=>{zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>a_(t,r,o,n)});function dv(t,e){return new lv({type:"intersection",left:t,right:e})}a(dv,"intersection");var pv=w("ZodTuple",(t,e)=>{js.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>s_(t,r,o,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function fv(t,e,r){let o=e instanceof xe,n=o?r:e,i=o?e:null;return new pv({type:"tuple",items:t,rest:i,...ie.normalizeParams(n)})}a(fv,"tuple");var pu=w("ZodRecord",(t,e)=>{Fs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>c_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType});function mv(t,e,r){return new pu({type:"record",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(mv,"record");function GA(t,e,r){let o=Rt(t);return o._zod.values=void 0,new pu({type:"record",keyType:o,valueType:e,...ie.normalizeParams(r)})}a(GA,"partialRecord");function VA(t,e,r){return new pu({type:"record",keyType:t,valueType:e,mode:"loose",...ie.normalizeParams(r)})}a(VA,"looseRecord");var hv=w("ZodMap",(t,e)=>{Dd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>r_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function HA(t,e,r){return new hv({type:"map",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(HA,"map");var gv=w("ZodSet",(t,e)=>{Ud.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>n_(t,r,o,n),t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(Dn(...r)),t.size=(...r)=>t.check(lo(...r))});function ZA(t,e){return new gv({type:"set",valueType:t,...ie.normalizeParams(e)})}a(ZA,"set");var ga=w("ZodEnum",(t,e)=>{Bs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Zy(t,o,n,i),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})},t.exclude=(o,n)=>{let i={...e.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})}});function sf(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new ga({type:"enum",entries:r,...ie.normalizeParams(e)})}a(sf,"_enum");function WA(t,e){return new ga({type:"enum",entries:t,...ie.normalizeParams(e)})}a(WA,"nativeEnum");var yv=w("ZodLiteral",(t,e)=>{qs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Wy(t,r,o,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function KA(t,e){return new yv({type:"literal",values:Array.isArray(t)?t:[t],...ie.normalizeParams(e)})}a(KA,"literal");var _v=w("ZodFile",(t,e)=>{Md.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Xy(t,r,o,n),t.min=(r,o)=>t.check(Wr(r,o)),t.max=(r,o)=>t.check(Dn(r,o)),t.mime=(r,o)=>t.check(ni(Array.isArray(r)?r:[r],o))});function JA(t){return hp(_v,t)}a(JA,"file");var vv=w("ZodTransform",(t,e)=>{Gs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>t_(t,r,o,n),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ie.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),r.issues.push(ie.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function cf(t){return new vv({type:"transform",transform:t})}a(cf,"transform");var uf=w("ZodOptional",(t,e)=>{oa.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function ou(t){return new uf({type:"optional",innerType:t})}a(ou,"optional");var bv=w("ZodExactOptional",(t,e)=>{Ld.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Sv(t){return new bv({type:"optional",innerType:t})}a(Sv,"exactOptional");var Pv=w("ZodNullable",(t,e)=>{Vs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>u_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function iu(t){return new Pv({type:"nullable",innerType:t})}a(iu,"nullable");function XA(t){return ou(iu(t))}a(XA,"nullish");var Ev=w("ZodDefault",(t,e)=>{jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>d_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Tv(t,e){return new Ev({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Tv,"_default");var xv=w("ZodPrefault",(t,e)=>{Fd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>p_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Av(t,e){return new xv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Av,"prefault");var lf=w("ZodNonOptional",(t,e)=>{Bd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>l_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function wv(t,e){return new lf({type:"nonoptional",innerType:t,...ie.normalizeParams(e)})}a(wv,"nonoptional");var Iv=w("ZodSuccess",(t,e)=>{qd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Yy(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function YA(t){return new Iv({type:"success",innerType:t})}a(YA,"success");var Cv=w("ZodCatch",(t,e)=>{Gd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>f_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Rv(t,e){return new Cv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}a(Rv,"_catch");var Ov=w("ZodNaN",(t,e)=>{Vd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ky(t,r,o,n)});function QA(t){return mp(Ov,t)}a(QA,"nan");var df=w("ZodPipe",(t,e)=>{Hs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>m_(t,r,o,n),t.in=e.in,t.out=e.out});function au(t,e){return new df({type:"pipe",in:t,out:e})}a(au,"pipe");var pf=w("ZodCodec",(t,e)=>{df.init(t,e),ia.init(t,e)});function ew(t,e,r){return new pf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}a(ew,"codec");var kv=w("ZodReadonly",(t,e)=>{Hd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>h_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Nv(t){return new kv({type:"readonly",innerType:t})}a(Nv,"readonly");var $v=w("ZodTemplateLiteral",(t,e)=>{Zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Jy(t,r,o,n)});function tw(t,e){return new $v({type:"template_literal",parts:t,...ie.normalizeParams(e)})}a(tw,"templateLiteral");var zv=w("ZodLazy",(t,e)=>{Jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>y_(t,r,o,n),t.unwrap=()=>t._zod.def.getter()});function Dv(t){return new zv({type:"lazy",getter:t})}a(Dv,"lazy");var Uv=w("ZodPromise",(t,e)=>{Kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>g_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function rw(t){return new Uv({type:"promise",innerType:t})}a(rw,"promise");var Mv=w("ZodFunction",(t,e)=>{Wd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>e_(t,r,o,n)});function nw(t){return new Mv({type:"function",input:Array.isArray(t?.input)?fv(t?.input):t?.input??uu(ui()),output:t?.output??ui()})}a(nw,"_function");var fu=w("ZodCustom",(t,e)=>{Zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Qy(t,r,o,n)});function ow(t){let e=new rt({check:"custom"});return e._zod.check=t,e}a(ow,"check");function iw(t,e){return jc(fu,t??(()=>!0),e)}a(iw,"custom");function Lv(t,e={}){return Fc(fu,t,e)}a(Lv,"refine");function jv(t){return gp(t)}a(jv,"superRefine");var aw=yp,sw=_p;function cw(t,e={}){let r=new fu({type:"custom",check:"custom",fn:a(o=>o instanceof t,"fn"),abort:!0,...ie.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}a(cw,"_instanceof");var uw=a((...t)=>vp({Codec:pf,Boolean:ba,String:ya},...t),"stringbool");function lw(t){let e=Dv(()=>af([Mp(t),X_(),Y_(),rv(),uu(e),mv(Mp(),e)]));return e}a(lw,"json");function dw(t,e){return au(cf(t),e)}a(dw,"preprocess");var oj={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function ij(t){pt({customError:t})}a(ij,"setErrorMap");function aj(){return pt().customError}a(aj,"getErrorMap");var Fv;Fv||(Fv={});var pe={...ru,...Np,iso:ha},sj=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function cj(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}a(cj,"detectVersion");function uj(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}a(uj,"resolveRef");function pw(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return pe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return pe.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let i=uj(n,e),s=Ft(i,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return pe.null();if(n.length===0)return pe.never();if(n.length===1)return pe.literal(n[0]);if(n.every(s=>typeof s=="string"))return pe.enum(n);let i=n.map(s=>pe.literal(s));return i.length<2?i[0]:pe.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return pe.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...t,type:i};return pw(s,e)});return n.length===0?pe.never():n.length===1?n[0]:pe.union(n)}if(!r)return pe.any();let o;switch(r){case"string":{let n=pe.string();if(t.format){let i=t.format;i==="email"?n=n.check(pe.email()):i==="uri"||i==="uri-reference"?n=n.check(pe.url()):i==="uuid"||i==="guid"?n=n.check(pe.uuid()):i==="date-time"?n=n.check(pe.iso.datetime()):i==="date"?n=n.check(pe.iso.date()):i==="time"?n=n.check(pe.iso.time()):i==="duration"?n=n.check(pe.iso.duration()):i==="ipv4"?n=n.check(pe.ipv4()):i==="ipv6"?n=n.check(pe.ipv6()):i==="mac"?n=n.check(pe.mac()):i==="cidr"?n=n.check(pe.cidrv4()):i==="cidr-v6"?n=n.check(pe.cidrv6()):i==="base64"?n=n.check(pe.base64()):i==="base64url"?n=n.check(pe.base64url()):i==="e164"?n=n.check(pe.e164()):i==="jwt"?n=n.check(pe.jwt()):i==="emoji"?n=n.check(pe.emoji()):i==="nanoid"?n=n.check(pe.nanoid()):i==="cuid"?n=n.check(pe.cuid()):i==="cuid2"?n=n.check(pe.cuid2()):i==="ulid"?n=n.check(pe.ulid()):i==="xid"?n=n.check(pe.xid()):i==="ksuid"&&(n=n.check(pe.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?pe.number().int():pe.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),o=n;break}case"boolean":{o=pe.boolean();break}case"null":{o=pe.null();break}case"object":{let n={},i=t.properties||{},s=new Set(t.required||[]);for(let[l,p]of Object.entries(i)){let f=Ft(p,e);n[l]=s.has(l)?f:f.optional()}if(t.propertyNames){let l=Ft(t.propertyNames,e),p=t.additionalProperties&&typeof t.additionalProperties=="object"?Ft(t.additionalProperties,e):pe.any();if(Object.keys(n).length===0){o=pe.record(l,p);break}let f=pe.object(n).passthrough(),y=pe.looseRecord(l,p);o=pe.intersection(f,y);break}if(t.patternProperties){let l=t.patternProperties,p=Object.keys(l),f=[];for(let m of p){let h=Ft(l[m],e),_=pe.string().regex(new RegExp(m));f.push(pe.looseRecord(_,h))}let y=[];if(Object.keys(n).length>0&&y.push(pe.object(n).passthrough()),y.push(...f),y.length===0)o=pe.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=pe.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=pe.intersection(m,y[h]);o=m}break}let u=pe.object(n);t.additionalProperties===!1?o=u.strict():typeof t.additionalProperties=="object"?o=u.catchall(Ft(t.additionalProperties,e)):o=u.passthrough();break}case"array":{let n=t.prefixItems,i=t.items;if(n&&Array.isArray(n)){let s=n.map(l=>Ft(l,e)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ft(i,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>Ft(l,e)),u=t.additionalItems&&typeof t.additionalItems=="object"?Ft(t.additionalItems,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ft(i,e),u=pe.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}a(pw,"convertBaseSchema");function Ft(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=pw(t,e),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let u=t.anyOf.map(p=>Ft(p,e)),l=pe.union(u);r=o?pe.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ft(p,e)),l=pe.xor(u);r=o?pe.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:pe.any();else{let u=o?r:Ft(t.allOf[0],e),l=o?0:1;for(let p=l;p<t.allOf.length;p++)u=pe.intersection(u,Ft(t.allOf[p],e));r=u}t.nullable===!0&&e.version==="openapi-3.0"&&(r=pe.nullable(r)),t.readOnly===!0&&(r=pe.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in t&&(n[u]=t[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in t&&(n[u]=t[u]);for(let u of Object.keys(t))sj.has(u)||(n[u]=t[u]);return Object.keys(n).length>0&&e.registry.add(r,n),r}a(Ft,"convertSchema");function fw(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=cj(t,e?.defaultTarget),o=t.$defs||t.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??Ot};return Ft(t,n)}a(fw,"fromJSONSchema");var Bv={};Xt(Bv,{bigint:()=>fj,boolean:()=>pj,date:()=>mj,number:()=>dj,string:()=>lj});function lj(t){return ec(ya,t)}a(lj,"string");function dj(t){return Ac(va,t)}a(dj,"number");function pj(t){return Cc(ba,t)}a(pj,"boolean");function fj(t){return Rc(Sa,t)}a(fj,"bigint");function mj(t){return $c(cu,t)}a(mj,"date");pt(Ws());var qv={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var mw=(r=>(r.IMAGE="image",r.TEXT="text",r))(mw||{}),Zt=ue.object({apiKey:ue.string()}),hw=ue.object({serviceAccountJson:ue.string().min(1)}),gw=Zt,yw=Zt.extend({apiKeyHash:ue.string()}),_w=Zt,vw=Zt,bw=Zt,Sw=Zt,Pw=Zt,Ew=Zt,Tw=ue.object({accessKeyId:ue.string().min(1),secretAccessKey:ue.string().min(1),sessionToken:ue.string().optional()}),xw=Zt,Aw=ue.object({}),ww=ue.object({}),Gv=ue.object({modelId:ue.string(),modelName:ue.string(),modelType:ue.enum(mw)}),Iw=ue.object({apiKeyHeader:ue.string(),baseUrl:ue.string(),models:ue.array(Gv),defaultHeaders:ue.record(ue.string(),ue.string()).optional(),apiStyle:ue.enum(["chat","responses"]).optional()}),Cw=ue.object({accountId:ue.string(),gatewayId:ue.string(),models:ue.array(Gv),vertexProject:ue.string().optional(),vertexRegion:ue.string().optional()}),Rw=ue.object({resourceName:ue.string(),apiVersion:ue.preprocess(t=>typeof t=="string"&&t.trim().length===0?void 0:t,ue.string().optional())}),Ow=ue.object({}),kw=ue.object({}),Nw=ue.object({}),$w=ue.object({region:ue.string().min(1)}),zw=ue.object({project:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),region:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),models:ue.array(Gv)}),Dw=ue.object({}),di=ue.object({}),wX=ue.union([gw,bw,Sw,Pw,Ew,vw,_w,yw,Tw,hw,xw]),IX=ue.union([Iw,Cw,Rw,zw,$w,Aw,Ow,kw,Nw,ww,Dw,di]),CX=ue.discriminatedUnion("provider",[ue.object({provider:ue.literal("openai"),config:kw.partial(),auth:Pw.partial()}),ue.object({provider:ue.literal("openrouter"),config:Nw.partial(),auth:Ew.partial()}),ue.object({provider:ue.literal("anthropic"),config:Aw.partial(),auth:gw.partial()}),ue.object({provider:ue.literal("azure"),config:Rw.partial(),auth:bw.partial()}),ue.object({provider:ue.literal("google"),config:Ow.partial(),auth:Sw.partial()}),ue.object({provider:ue.literal("cloudflare-gateway"),config:Cw.partial(),auth:vw.partial()}),ue.object({provider:ue.literal("custom"),config:Iw.partial(),auth:_w.partial()}),ue.object({provider:ue.literal("activepieces"),config:ww.partial(),auth:yw.partial()}),ue.object({provider:ue.literal("bedrock"),config:$w.partial(),auth:Tw.partial()}),ue.object({provider:ue.literal("vertex"),config:zw.partial(),auth:hw.partial()}),ue.object({provider:ue.literal("mistral"),config:Dw.partial(),auth:xw.partial()}),ue.object({provider:ue.literal("xai"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("deepseek"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("zai"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("qwen"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("minimax"),config:di.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("moonshot"),config:di.partial(),auth:Zt.partial()})]);var LX=v().check(Ut(/^#[0-9A-Fa-f]{6}$/));var FX=O({filename:v(),data:Ce(),type:ve("file"),mimetype:q(v())});var hj=xt(Mw());var WX=O({...Or,name:v(),permissions:Ee(v()),platformId:mt(v()),type:v(),userCount:q(kt())});var oY=ue.enum(["active","out_of_credits","rejected","unreachable"]);var Lw=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Lw||{}),Vv=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Vv||{}),Hv=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Hv||{});var Zv=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Zv||{});var Wv=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Wv||{});var gj=O({mode:Se(Lw),value:Ce()}),yj=O({auth:q(v()),fields:Re(v(),gj)}),_j=O({pieceName:v(),pieceVersion:v(),actionName:v(),predefinedInput:q(yj)}),vj=O({type:ve("PIECE"),toolName:v().check(vt(1)),pieceMetadata:_j}),bj=O({type:ve("none")}),Sj=O({type:ve("access_token"),accessToken:v()}),Pj=O({type:ve("api_key"),apiKey:v(),apiKeyHeader:v()}),Ej=O({type:ve("headers"),headers:Re(v(),v())}),Tj=yo("type",[bj,Sj,Pj,Ej]),jw=O({type:ve("FLOW"),toolName:v().check(vt(1)),externalFlowId:v(),flowDisplayName:q(v())}),Fw=O({type:ve("MCP"),toolName:v().check(vt(1)),serverUrl:$x(),protocol:Se(Hv),auth:Tj}),Bw=O({type:ve("KNOWLEDGE_BASE"),toolName:v().check(vt(1)),sourceType:Se(Vv),sourceId:v(),sourceName:v()}),xj=yo("type",[vj,jw,Fw,Bw]),Aj=O({displayName:v(),description:q(v()),type:Se(Zv)}),qw=O({type:ve("MARKDOWN"),markdown:v()}),Pa={type:ve("TOOL_CALL"),input:mt(Re(v(),Ce())),output:q(Ce()),toolName:v(),status:Se(Wv),toolCallId:v(),startTime:v(),endTime:q(v())},VY=O(Pa),Gw=yo("toolCallType",[O({...Pa,toolCallType:ve("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),O({...Pa,toolCallType:ve("FLOW"),displayName:v(),externalFlowId:v()}),O({...Pa,toolCallType:ve("MCP"),displayName:v(),serverUrl:v()}),O({...Pa,toolCallType:ve("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),O({...Pa,toolCallType:ve("UNKNOWN"),displayName:v()})]),wj=Ue([qw,Gw]);var Ij=10800*1e3,Cj=900*1e3;var Xv=(r=>(r.IMAGE="image",r.TEXT="text",r))(Xv||{}),Fn=O({apiKey:v()}),Oj=Fn,kj=O({apiKey:v(),apiKeyHash:v()}),Nj=Fn,$j=Fn,zj=Fn,Dj=Fn,Uj=Fn,Mj=Fn,Lj=Fn,Ww=O({serviceAccountJson:v().check(vt(1))}),Kw=O({accessKeyId:v().check(vt(1)),secretAccessKey:v().check(vt(1)),sessionToken:q(v())}),jj=O({}),Fj=O({}),Bj=O({}),qj=O({}),Gj=O({}),Vj=O({}),Yv=O({modelId:v(),modelName:v(),modelType:Se(Xv)}),Jw=O({apiKeyHeader:v(),baseUrl:v(),models:Ee(Yv),defaultHeaders:q(Re(v(),v())),apiStyle:q(Se(["chat","responses"]))}),Xw=O({accountId:v(),gatewayId:v(),models:Ee(Yv),vertexProject:q(v()),vertexRegion:q(v())}),Yw=O({resourceName:v(),apiVersion:vo(_o(t=>typeof t=="string"&&t.trim().length===0?void 0:t),q(v()))}),Qw=O({region:v().check(vt(1))}),eI=O({project:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Ee(Yv)}),tI=O({}),Hj=Ue([Oj,zj,Dj,Uj,Mj,$j,Nj,kj,Kw,Ww,Lj]),rI=Ue([Jw,Xw,Yw,eI,Qw,jj,Bj,qj,Gj,Fj,Vj,tI]),Zj=O({id:v(),name:v(),type:Se(Xv)}),Wj=O({id:v(),name:v(),provider:Se(Eo),config:rI,enabledForChat:He()}),Kj=O({provider:Se(Eo),name:v(),enabledForChat:He(),keys:Ee(O({id:v(),name:v()}))}),Jj=O({provider:Se(Eo),configId:v(),config:rI,auth:Hj,platformId:v()});var KY={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Vw=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],Xj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],nI=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Kv=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Jv=["gemini-2.5-pro","gemini-2.5-flash"],Yj=["grok-4.20"],JY={google:Jv,vertex:Jv},XY=nI.map(t=>`anthropic/${t}`),Qj={openai:Vw,anthropic:Xj,google:Kv,vertex:Kv,activepieces:[...nI.map(t=>`anthropic/${t}`),...Vw.map(t=>`openai/${t}`),...[...Kv,...Jv].map(t=>`google/${t}`),...Yj.map(t=>`x-ai/${t}`)]};var Hw=128e3,eF={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function tF({provider:t}){return t?eF[t]??Hw:Hw}a(tF,"getMaxContextTokens");var Zw={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},rF={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},nF=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),oF={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Mt(t){return{chatModels:Qj[t],maxContextTokens:tF({provider:t}),defaultEmbeddingModel:Zw[t],supportsEmbedding:Zw[t]!==void 0,supportsImageGeneration:!nF.has(t),defaultImageModel:iF[t],webSearch:rF[t]}}a(Mt,"buildProviderCapabilities");var oI=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],iF={activepieces:oI[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},aF={openai:Mt("openai"),anthropic:Mt("anthropic"),openrouter:Mt("openrouter"),azure:Mt("azure"),google:Mt("google"),"cloudflare-gateway":Mt("cloudflare-gateway"),custom:Mt("custom"),bedrock:Mt("bedrock"),vertex:Mt("vertex"),mistral:Mt("mistral"),activepieces:Mt("activepieces"),xai:Mt("xai"),deepseek:Mt("deepseek"),zai:Mt("zai"),qwen:Mt("qwen"),minimax:Mt("minimax"),moonshot:Mt("moonshot")};var sF=O({base64Url:v(),fileName:v(),extension:q(v())}),cF=O({mimeType:v(),url:v(),fileName:q(v())}),Qv=Ue([sF,cF]);var uF=Ue([O({type:ve("file"),value:Qv}),O({type:ve("markdown"),value:v(),files:q(Ee(Qv))})]),lF=O({sessionId:v(),message:v(),files:q(Ee(v()))});var aI=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(aI||{}),sI=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(sI||{}),eb=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(eb||{});var dF=Ue([O({...Or,name:v(),externalId:v(),type:ve("STATIC_DROPDOWN"),tableId:v(),projectId:v(),data:O({options:Ee(O({value:v()}))})}),O({...Or,name:v(),externalId:v(),type:Ue([ve("TEXT"),ve("NUMBER"),ve("DATE"),ve("DATETIME")]),tableId:v(),projectId:v()})]),pF=O({...Or,name:v(),folderId:mt(v()),projectId:v(),externalId:v(),status:N_(sI),trigger:N_(aI)}),fF=O({...Or,tableId:v(),projectId:v(),cells:Re(v(),O({updated:v(),created:v(),value:Ce(),fieldName:v()}))}),mF=O({events:Ee(Se(eb)),webhookUrl:v(),flowId:v()}),hF=O({fields:Ee(O({id:v(),name:v()})),rows:Ee(Re(v(),v())),name:v()}),gF=O({projectId:v(),limit:q(Vc.number()),cursor:q(v()),name:q(v()),externalIds:kp(v()),folderId:q(v()),folderIds:kp(v())}),yF=O({records:Ee(Ee(O({fieldId:v(),value:uI()}))),tableId:v()}),_F=O({cells:q(Ee(O({fieldId:v(),value:uI()}))),tableId:v(),agentUpdate:q(He())}),cI=yo("operator",[pi("eq"),pi("neq"),pi("gt"),pi("gte"),pi("lt"),pi("lte"),pi("co"),iI("exists"),iI("not_exists")]),vF=O({tableId:v(),limit:q(Vc.number()),cursor:q(v()),filters:kp(cI)});function uI(){return vo(_o(t=>t==null?t:String(t)),Gc(v()))}a(uI,"coerceToString");function pi(t){return O({fieldId:v(),operator:ve(t),value:v()})}a(pi,"valueFilter");function iI(t){return O({fieldId:v(),operator:ve(t)})}a(iI,"existenceFilter");var bF=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),SF=O({...Or,deleted:mt(Po),ownerId:v(),displayName:v(),platformId:v(),externalId:mt(v())});var lI=O({name:v(),description:q(v()),type:v(),required:He()}),PF=O({pieceName:v(),triggerName:v(),input:O({toolName:v(),toolDescription:v(),inputSchema:Ee(lI),returnsResponse:He()})});var dI="^[0-9]+\\.[0-9]+\\.[0-9]+$",g7=new RegExp(dI),TF="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",y7=v().check(Ut(new RegExp(dI))),_7=v().check(Ut(new RegExp(TF))),xF=O({packageType:ve("ARCHIVE"),pieceType:Se(pa),pieceName:v(),pieceVersion:v(),archiveId:v(),platformId:v()}),pI=O({packageType:ve("REGISTRY"),pieceType:ve("OFFICIAL"),pieceName:v(),pieceVersion:v()}),fI=O({packageType:ve("REGISTRY"),pieceType:ve("CUSTOM"),pieceName:v(),pieceVersion:v(),platformId:v()}),v7=Ue([pI,fI]),b7=Ue([xF,pI,fI]);var AF=yo("type",[O({type:ve("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),O({type:ve("INTERVAL"),intervalMs:zx().check(At(6e4))})]),S7=O({...Or,type:Se(bo),projectId:v(),flowId:v(),triggerName:v(),schedule:mt(AF),flowVersionId:v(),pieceName:v(),pieceVersion:v(),deleted:mt(v()),simulate:He()}),mI=(k=>(k.UNKNOWN="UNKNOWN",k.FLOW_RUN_LOG="FLOW_RUN_LOG",k.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",k.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",k.FLOW_STEP_FILE="FLOW_STEP_FILE",k.SAMPLE_DATA="SAMPLE_DATA",k.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",k.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",k.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",k.PROJECT_RELEASE="PROJECT_RELEASE",k.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",k.PLATFORM_ASSET="PLATFORM_ASSET",k.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",k.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",k.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",k.KNOWLEDGE_BASE="KNOWLEDGE_BASE",k.FLOW_BUNDLE="FLOW_BUNDLE",k.PREWARM_SCOPE="PREWARM_SCOPE",k))(mI||{}),hI=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(hI||{}),gI=(r=>(r.S3="S3",r.DB="DB",r))(gI||{}),P7=O({...Or,projectId:mt(v()),platformId:mt(v()),type:Se(mI),compression:Se(hI),data:q(Ce()),location:Se(gI),size:mt(kt()),fileName:mt(v()),s3Key:mt(v()),metadata:mt(Re(v(),v()))}),yI=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(yI||{}),_I=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(_I||{}),E7=O({id:v(),email:v(),firstName:v(),status:Se(_I),externalId:mt(v()),platformId:mt(v()),platformRole:Se(yI),lastName:v(),created:Po,updated:Po,lastActiveDate:mt(Po),imageUrl:mt(v())});var tb=O({...Ge.shape,...ke(Re(v(),Ce()),"OBJECT").shape});var rb=O({...Ge.shape,formatProperty:q(v()),...ke(v(),"RICH_TEXT").shape});var PI=O({...Ge.shape,...ke(v(),"COLOR").shape});var nb=Ue([pr,Un,rb,Cp,Ln,fr,Mn,A_,Hc,I_,jn,Kc,tb,Jc,Wc,w_,Zc,PI]),K={ShortText(t){return{...t,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(t){return{...t,valueSchema:void 0,type:"CHECKBOX"}},LongText(t){return{...t,valueSchema:void 0,type:"LONG_TEXT"}},RichText(t){return{...t,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(t){return{displayName:"Markdown",required:!1,description:t.value,type:"MARKDOWN",valueSchema:void 0,variant:t.variant??"INFO"}},Number(t){return{...t,valueSchema:void 0,type:"NUMBER"}},Json(t){return{...t,valueSchema:void 0,type:"JSON"}},Array(t){return{...t,valueSchema:void 0,type:"ARRAY"}},Object(t){return{...t,valueSchema:void 0,type:"OBJECT"}},Dropdown(t){return{...t,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(t){return{...t,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(t){return{...t,valueSchema:void 0,type:"DATE_TIME"}},DateRange(t){return{...t,valueSchema:void 0,type:"DATE_RANGE"}},File(t){return{...t,valueSchema:void 0,type:"FILE"}},Custom(t){let e=t.code.toString();return{...t,code:e,valueSchema:void 0,type:"CUSTOM"}},Color(t){return{...t,valueSchema:void 0,type:"COLOR"}}};var un=O({displayName:v(),description:q(v()),hasConnectionIdentifier:q(He())});var EI=O({username:v(),password:v()}),ob=O({...un.shape,username:O({displayName:v(),description:q(v())}),password:O({displayName:v(),description:q(v())}),...ke(EI,"BASIC_AUTH").shape});var RF=Re(v(),Ue([pr,Un,jn,Ln,fr])),ib=O({...un.shape,props:RF,...ke(Ce(),"CUSTOM_AUTH").shape});var fi=O({...un.shape,...ke(O({auth:v()}),"SECRET_TEXT").shape});var OF=Re(v(),Ue([pr,Un,fi,jn,Ln,fr,Mn,Cp])),TI=O({...un.shape,props:OF,...ke(Ce(),"OIDC").shape});var ab=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ab||{}),xI=Ue([pr,fi,fr]),AI=Re(v(),xI),kF=O({props:q(Re(v(),xI)),authUrl:v(),tokenUrl:v(),scope:Ee(v()),prompt:q(Ue([ve("none"),ve("consent"),ve("login"),ve("omit")])),pkce:q(He()),pkceMethod:q(Ue([ve("plain"),ve("S256")])),authorizationMethod:q(Se(ab)),grantType:q(Ue([Se(Yc),ve(C_)])),extra:q(Re(v(),v()))}),wI=O({access_token:v(),props:q(AI),data:Re(v(),qc())}),sb=O({...un.shape,...kF.shape,...ke(wI,"OAUTH2").shape});var Ea=Ue([ob,ib,TI,sb,fi]),mu="Connection",cb={SecretText(t){return{...t,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(t){return{...t,valueSchema:void 0,type:"OAUTH2",displayName:t.displayName||mu}},BasicAuth(t){return{...t,valueSchema:void 0,type:"BASIC_AUTH",displayName:t.displayName||mu,required:!0}},CustomAuth(t){return{...t,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:t.displayName||mu}},OIDC(t){return{...t,valueSchema:void 0,type:"OIDC",displayName:t.displayName||mu}},None(){}};var aee={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var NF=O({...Ge.shape,...ke(Ce(),"CUSTOM").shape,code:v()});var $F=Ue([nb,Ea]),ub=Re(v(),$F),Aee=Re(v(),nb);var II=Ue([O({strategy:ve("CRON"),cronExpression:v()}),O({strategy:ve("NONE")})]),Ta=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h,_,P,E,x,k,L,Y,H){this.name=e;this.displayName=r;this.description=o;this.requireAuth=n;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=f;this.onEnable=y;this.onDisable=m;this.onStart=h;this.run=_;this.test=P;this.sampleData=E;this.testStrategy=x;this.outputSchema=k;this.aiMetadata=L;this.classification=Y;this.propertyGroups=H}static{a(this,"ITrigger")}},CI=a(t=>{switch(t.type){case"WEBHOOK":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,t.handshakeConfiguration??{strategy:"NONE"},t.onHandshake??(async()=>({status:200})),t.renewConfiguration??{strategy:"NONE"},t.onRenew??(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,t.test?"TEST_FUNCTION":"SIMULATION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"POLLING":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"MANUAL":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"APP_WEBHOOK":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,ft(t.sampleData)&&ft(t.test)?"SIMULATION":"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups)}},"createTrigger");var RI="2",mf="0.82.0";var lb=class{constructor(e,r,o,n,i,s,u,l,p=mf,f,y="",m){this.displayName=e;this.logoUrl=r;this.authors=o;this.events=n;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=y;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:RI}),"getContextInfo");(!DF(p)||UF(p,mf))&&(this.minimumSupportedRelease=mf),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}static{a(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:zF(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(e){return this._actions[e]}getTrigger(e){return this._triggers[e]}actions(){return this._actions}triggers(){return this._triggers}},kI=a(t=>{if(t.auth&&Array.isArray(t.auth)&&!t.auth.every((r,o,n)=>o===n.findIndex(i=>i.type===r.type)))throw new Error("Auth properties must be unique by type");return new lb(t.displayName,t.logoUrl,t.authors??[],t.events,t.actions,t.triggers,t.categories??[],t.auth,t.minimumSupportedRelease,t.maximumSupportedRelease,t.description,t.deprecated)},"createPiece");function zF(t){if(t!==void 0)return Array.isArray(t)?t.map(OI):OI(t)}a(zF,"withConnectionIdentifierFlag");function OI(t){return{...t,hasConnectionIdentifier:t.getConnectionIdentifier!==void 0}}a(OI,"flagConnectionIdentifier");function DF(t){return/^\d+\.\d+\.\d+$/.test(t)}a(DF,"isValidSimpleSemver");function UF(t,e){let[r,o,n]=t.split(".").map(Number),[i,s,u]=e.split(".").map(Number);return r!==i?r<i:o!==s?o<s:n<u}a(UF,"isSemverLessThan");var MF=q(Re(v(),Re(v(),v()))),NI=O({id:q(v()),name:v(),displayName:v(),logoUrl:v(),description:v(),authors:Ee(v()),platformId:q(v()),directoryPath:q(v()),auth:q(Ue([Ea,Ee(Ea)])),version:v(),categories:q(Ee(Se(fa))),minimumSupportedRelease:q(v()),maximumSupportedRelease:q(v()),deprecated:q(He()),i18n:MF}),LF=Se(["human","ai","both"]),$I=O({description:q(v()),idempotent:q(He())}),zI=Se(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var jF=Se(["tabs","section","summary","builder","footer"]),DI=O({key:v(),display:jF,label:q(v()),description:q(v()),icon:q(v()),props:Ee(v())}),UI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Ee(DI)),requireAuth:He(),errorHandlingOptions:q(x_),outputSchema:q(Ap()),audience:q(LF),aiMetadata:q($I),classification:q(zI)}),MI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Ee(DI)),errorHandlingOptions:q(x_),type:Se(bo),sampleData:Ce(),handshakeConfiguration:q(Ap()),renewConfiguration:q(II),testStrategy:Se(eu),outputSchema:q(Ap()),aiMetadata:q($I),classification:q(zI)}),FF=O({...NI.shape,actions:Re(v(),UI),triggers:Re(v(),MI)}),BF=O({...NI.shape,actions:kt(),triggers:kt(),suggestedActions:q(Ee(UI)),suggestedTriggers:q(Ee(MI))}),LI=O({projectUsage:kt(),pieceType:Se(pa),packageType:Se(Xc),platformId:q(v()),archiveId:q(v())}),Cte=O({...FF.shape,...LI.shape}),Rte=O({...BF.shape,...LI.shape}),Ote=O({name:v(),version:v()});var qF=xt(require("path")),GF=xt(require("fs/promises"));var Aa=require("node:stream");var hf=class{constructor(e,r){this.baseUrl=e;this.authenticationConverter=r}static{a(this,"BaseHttpClient")}getUrl(e){let r=new URL(`${this.baseUrl}${e.url}`),o=`${r.origin}${r.pathname}`,n=new URLSearchParams;return r.searchParams.forEach((i,s)=>{n.append(s,i)}),{urlWithoutQueryParams:o,queryParams:n}}getHeaders(e){let r={Accept:"application/json"};return e.authentication&&this.populateAuthentication(e.authentication,r),e.body&&(e.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),e.headers&&(r={...r,...e.headers}),r}populateAuthentication(e,r){this.authenticationConverter.convert(e,r)}};var gf=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(e=new db,r=new pb){this.converters={BEARER_TOKEN:e,BASIC:r}}convert(e,r){return this.converters[e.type].convert(e,r)}},db=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(e,r){return r.Authorization=`Bearer ${e.token}`,r}},pb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(e,r){let o=`${e.username}:${e.password}`,n=Buffer.from(o).toString("base64");return r.Authorization=`Basic ${n}`,r}};var hu=class extends Error{constructor(r,o){let n=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:n,body:i},request:{body:r}}));this.requestBody=r;this.status=n,this.responseBody=i}static{a(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function jI({error:t,requestBody:e}){return t instanceof hu?t.errorMessage():{response:{status:0,body:t instanceof Error?t.message:String(t)},request:{body:e}}}a(jI,"toFailsafeOutput");var xa=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(xa||{});var yf=class extends hf{static{a(this,"FetchHttpClient")}constructor(e="",r=new gf){super(e,r)}async sendRequest(e,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:n}=this.getUrl(e),i=this.getHeaders(e),s=e.queryParams??{};for(let[L,Y]of Object.entries(s))n.append(L,Y);let u=n.toString(),l=u?`${o}?${u}`:o,p=e.responseType??"json",f=e.followRedirects??!0,y=e.retries??0,{body:m,extraHeaders:h,isStream:_}=_f(e.method)?VF(e.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=ZF({...i,...h}),E=await HF(async()=>{let L=new AbortController,Y=e.timeout&&e.timeout>0?setTimeout(()=>L.abort(),e.timeout):void 0;try{let H={method:e.method.toString(),headers:P,body:m,redirect:f?"follow":"manual",signal:L.signal};return _&&(H.duplex="half"),r?.dispatcher!==void 0&&(H.dispatcher=r.dispatcher),await fetch(l,H)}finally{Y!==void 0&&clearTimeout(Y)}},_?0:y),x=f?300:400;if(E.status<200||E.status>=x){let L=await FI(E,p==="stream"?"text":p),Y=new hu(e.body,{status:E.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Y),Y}let k=await FI(E,p);return{status:E.status,headers:WF(E.headers),body:k}}};function _f(t){return t!=="GET"&&t!=="HEAD"}a(_f,"acceptsRequestBody");function VF(t,e){if(qI(t))return{body:void 0,extraHeaders:{},isStream:!1};if(JF(t)){let o=KF(t);if(o!==null)return{body:o,extraHeaders:t.getHeaders(),isStream:!1};let n=new Aa.PassThrough;return t.on("error",i=>n.destroy(i)),t.pipe(n),{body:n,extraHeaders:t.getHeaders(),isStream:!0}}return t instanceof Aa.Readable?{body:t,extraHeaders:{},isStream:!0}:typeof t=="string"||Buffer.isBuffer(t)||t instanceof URLSearchParams||t instanceof ArrayBuffer||typeof FormData<"u"&&t instanceof FormData||typeof Blob<"u"&&t instanceof Blob?{body:t,extraHeaders:{},isStream:!1}:(e["Content-Type"]??e["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(t).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(t),extraHeaders:{},isStream:!1}}a(VF,"serializeBody");async function FI(t,e){switch(e){case"arraybuffer":return Buffer.from(await t.arrayBuffer());case"stream":return qI(t.body)?Aa.Readable.from([]):Aa.Readable.fromWeb(t.body);case"blob":return await t.blob();case"text":return await t.text();default:{let r=await t.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}a(FI,"parseResponseBody");async function HF(t,e){let r;for(let o=0;o<=e;o++)try{let n=await t();if(n.status>=500&&o<e){await BI(o);continue}return n}catch(n){if(r=n,o<e){await BI(o);continue}throw n}throw r}a(HF,"sendWithRetries");function BI(t){let e=Math.min(1e3*2**t,3e4);return new Promise(r=>setTimeout(r,e))}a(BI,"backoff");function ZF(t){let e=new Map;for(let[r,o]of Object.entries(t))o!==void 0&&e.set(r.toLowerCase(),[r,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(e.values())}a(ZF,"normalizeHeaders");function WF(t){let e={};return t.forEach((r,o)=>{e[o]=r}),e}a(WF,"toHttpHeaders");function KF(t){if(!t.hasKnownLength()||t.getLengthSync()>XF)return null;let{data:e}=O_(()=>t.getBuffer());return e}a(KF,"bufferFormDataIfSafe");function JF(t){return typeof t=="object"&&t!==null&&typeof t.getHeaders=="function"&&typeof t.pipe=="function"&&typeof t.on=="function"}a(JF,"isNodeFormData");function qI(t){return t==null}a(qI,"isNil");var XF=100*1024*1024;var ln=new yf;var Mq=xt(require("fs"));var Lq={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function jq(t){let e=t.split(";")[0].trim().toLowerCase();return Lq[e]??""}a(jq,"contentTypeToExtension");var Fq=a(({baseUrl:t,relativePath:e})=>{let r=t.endsWith("/")?t:`${t}/`,o=e.startsWith("/")?e.slice(1):e;return`${r}${o}`},"joinBaseUrlWithRelativePath"),Bq=a((t,e)=>{let r="https://api.example.com";try{let o=e?t(e):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??r}catch{return r}},"getBaseUrlForDescription");function ZR({auth:t,baseUrl:e,authMapping:r,description:o,displayName:n,name:i,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return Oe({audience:"human",name:i||"custom_api_call",classification:p,displayName:n||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:t,requireAuth:!!t,props:{url:K.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:K.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${Bq(e,f)}`,required:!0,placeholder:"/resource",defaultValue:f?e(f):"",...s?.url??{}})}),"props")}),method:K.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(xa).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:K.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:K.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:K.Dropdown({auth:t,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>_f(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:K.DynamicProperties({auth:t,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:y})=>{if(!f||!_f(y))return{};let m=f,h={};switch(m){case"none":break;case"json":h.data=K.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=K.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=K.Array({displayName:"Form Data",required:!0,properties:{fieldName:K.ShortText({displayName:"Field Name",required:!0}),fieldType:K.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:K.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:K.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:K.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:K.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:K.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:K.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},run:a(async f=>{let{method:y,url:m,headers:h,queryParams:_,body:P,body_type:E,failsafe:x,timeout:k,response_is_binary:L,followRedirects:Y}=f.propsValue;Op(y,"Method"),Op(m,"URL");let H=ft(r)?{}:await r(f.auth,f.propsValue),X=m.url,re=X.startsWith("http://")||X.startsWith("https://")?X:Fq({baseUrl:e(f.auth),relativePath:X}),ce={method:y,url:re,headers:{...h??{},...l==="headers"||!ft(l)?H:{}},queryParams:{...l==="queryParams"?H:{},..._??{}},timeout:k?k*1e3:0,followRedirects:Y};if(L&&(ce.responseType="arraybuffer"),P)if(E&&E!=="none"){let ee=P.data;if(E==="form_data"){let Le=ee,{default:le}=await Promise.resolve().then(()=>xt(HR())),W=new le;for(let{fieldName:Z,fieldType:oe,textFieldValue:Q,fileFieldValue:de}of Le)oe==="text"&&!tu(Q)?W.append(Z,Q):oe==="file"&&!tu(de)&&W.append(Z,de.data,{filename:de?.filename});ce.body=W,ce.headers={...ce.headers,...W.getHeaders()}}else ce.body=ee}else E||(ce.body=P);try{let ee=await ln.sendRequest(ce);return await qq(f.files,ee.body,ee.status,ee.headers,L)}catch(ee){if(x)return jI({error:ee,requestBody:ce.body});throw ee}},"run")})}a(ZR,"createCustomApiCallAction");var qq=a(async(t,e,r,o,n)=>{let i;if(n&&Gq(e)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=jq(s??"")||"txt",l;e instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(e)):Buffer.isBuffer(e)?l=e:l=Buffer.from(e),i=await t.write({fileName:`output.${u}`,data:l})}else i=e;return{status:r,headers:o,body:i}},"handleBinaryResponse"),Gq=a(t=>t instanceof ArrayBuffer||Buffer.isBuffer(t),"isBinaryBody");var bu={async poll(t,{store:e,auth:r,propsValue:o,maxItemsToPoll:n,files:i,server:s}){switch(t.strategy){case 0:{let u=await e.get("lastPoll");if(ft(u))throw new Error("lastPoll doesn't exist in the store.");let l=await t.items({store:e,auth:r,propsValue:o,lastFetchEpochMS:u,server:s}),p=l.reduce((f,y)=>Math.max(f,y.epochMilliSeconds),u);return await e.put("lastPoll",p),l.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await e.get("lastItem"),l=await t.items({store:e,auth:r,propsValue:o,lastItemId:u,files:i,server:s}),p=l.findIndex(m=>m.id===u),f=[];ft(u)||p==-1?f=l??[]:f=l?.slice(0,p)??[],ft(n)||(f=f.slice(-n));let y=f?.[0]?.id;return ft(y)||await e.put("lastItem",y),f.map(m=>m.data)}}},async onEnable(t,{store:e,auth:r,propsValue:o,server:n,isRepublish:i}){switch(t.strategy){case 0:{if(i&&!ft(await e.get("lastPoll")))break;await e.put("lastPoll",Date.now());break}case 1:{if(i&&!ft(await e.get("lastItem")))break;let u=(await t.items({store:e,auth:r,propsValue:o,lastItemId:null,server:n}))?.[0]?.id;ft(u)?await e.delete("lastItem"):await e.put("lastItem",u);break}}},async onDisable(t,e){switch(t.strategy){case 0:case 1:return}},async test(t,{auth:e,propsValue:r,store:o,files:n,server:i}){let s=[];switch(t.strategy){case 0:{s=await t.items({store:o,auth:e,propsValue:r,lastFetchEpochMS:0,server:i});break}case 1:{s=await t.items({store:o,auth:e,propsValue:r,lastItemId:null,files:n,server:i});break}}return Vq(s.map(u=>u.data))}};function Vq(t){return t.length<=5?t:t.slice(0,5)}a(Vq,"getFirstFiveOrAll");var WR="https://people.googleapis.com/v1",Hq=["names","nicknames","emailAddresses","phoneNumbers","organizations","addresses","biographies","urls","memberships","photos","metadata"],Zq=["clientData","groupType","memberCount","metadata","name"],Wq=["addresses","biographies","birthdays","calendarUrls","clientData","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","relations","sipAddresses","urls","userDefined"],Kq=["contactGroups/all","contactGroups/blocked","contactGroups/chatBuddies","contactGroups/coworkers","contactGroups/family","contactGroups/friends"];function Jq({path:t,queryParams:e,repeatedQueryParams:r}){let o=new URLSearchParams;for(let[i,s]of Object.entries(e??{}))s!==void 0&&o.append(i,s);for(let[i,s]of Object.entries(r??{}))for(let u of s)o.append(i,u);let n=o.toString();return n.length>0?`${WR}${t}?${n}`:`${WR}${t}`}a(Jq,"buildUrl");function kr({source:t,path:e}){let r=t;for(let o of e){if(typeof r!="object"||r===null||!(o in r))return;r=Reflect.get(r,o)}return r}a(kr,"readValue");function Su({source:t,path:e}){let r=kr({source:t,path:e});return typeof r=="string"?r:void 0}a(Su,"readString");function Xq({source:t,path:e}){let r=kr({source:t,path:e});if(!(typeof r!="object"||r===null||Array.isArray(r)))return Object.fromEntries(Object.entries(r))}a(Xq,"readRecord");function Yq({source:t,path:e}){let r=kr({source:t,path:e});return Array.isArray(r)?r:[]}a(Yq,"readArray");function Qq({value:t,label:e}){try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{throw new Error(`${e} must be a list of strings.`)}throw new Error(`${e} must be a list of strings.`)}a(Qq,"parseStringList");function e4({value:t,label:e}){if(t==null)return[];let r=typeof t=="string"?Qq({value:t,label:e}):t;if(!Array.isArray(r))throw new Error(`${e} must be a list of strings.`);return r.map(o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(`${e} must be a list of non-empty strings.`);return o.trim()})}a(e4,"toStringList");function t4({values:t,max:e,label:r}){if(t.length===0)throw new Error(`${r} must contain at least one entry.`);if(t.length>e)throw new Error(`${r} accepts at most ${e} entries, received ${t.length}.`)}a(t4,"assertBatchSize");function KR({status:t}){let e=Su({source:t,path:["message"]}),r=kr({source:t,path:["code"]});return e!==void 0?e:typeof r=="number"?`Google returned status code ${r}.`:"Google returned an unspecified failure for this item."}a(KR,"describeStatus");function $b({response:t}){let e=kr({source:t,path:["status"]});if(e==null)return!1;let r=kr({source:e,path:["code"]}),o=kr({source:e,path:["message"]});return typeof r=="number"&&r!==0?!0:typeof o=="string"&&o.length>0}a($b,"isFailedItem");function r4({items:t,payloadKey:e}){let r=t.filter(n=>!$b({response:n.response})).map(n=>({resourceName:Su({source:n.response,path:[e,"resourceName"]})??n.resourceName,payload:kr({source:n.response,path:[e]})})),o=t.filter(n=>$b({response:n.response})).map(n=>({resourceName:n.resourceName,status:KR({status:kr({source:n.response,path:["status"]})})}));return{succeeded:r,failed:o}}a(r4,"splitItemResponses");function n4({error:t,operation:e}){let r=kr({source:t,path:["response","status"]}),o=Su({source:t,path:["response","body","error","status"]}),n=Su({source:t,path:["response","body","error","message"]}),i=n===void 0?"":` ${n}`;return r===400&&o==="FAILED_PRECONDITION"?new Error(`${e} failed because the record changed since it was read. Re-read the record to get a fresh etag and retry.${i}`):r===400?new Error(`${e} was rejected as invalid by Google Contacts.${i}`):r===401?new Error(`${e} failed: the Google Contacts connection is no longer authorized. Reconnect the account.${i}`):r===403?new Error(`${e} failed: the connected Google account is not allowed to perform it, or the connection is missing the required scope.${i}`):r===404?new Error(`${e} failed: the resource was not found. Resource names are opaque, so resolve a current one with the matching list or search action.${i}`):r===409?new Error(`${e} failed: the resource already exists.${i}`):r===429?new Error(`${e} failed: Google Contacts rate limit reached. Retry later.${i}`):new Error(`${e} failed.${i}`)}a(n4,"toApiError");function o4({error:t}){return kr({source:t,path:["response","status"]})===409}a(o4,"isConflict");async function i4({accessToken:t,method:e,path:r,queryParams:o,repeatedQueryParams:n,body:i}){let s={method:e,url:Jq({path:r,queryParams:o,repeatedQueryParams:n}),body:i,authentication:{type:"BEARER_TOKEN",token:t}};return(await ln.sendRequest(s)).body??{}}a(i4,"sendRequest");var Ao={baseUrl:"https://people.googleapis.com/v1/people"},D={contactReadMask:Hq,contactGroupFields:Zq,updatablePersonFields:Wq,systemGroupsRejectingAdds:Kq,sendRequest:i4,toApiError:n4,isConflict:o4,readValue:kr,readString:Su,readRecord:Xq,readArray:Yq,toStringList:e4,assertBatchSize:t4,splitItemResponses:r4,describeStatus:KR,isFailedItem:$b};var t$=xt(Qu());var Te=cb.OAuth2({description:"",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:["https://www.googleapis.com/auth/contacts","email"]});function r$(t){let e=new t$.OAuth2Client;return e.setCredentials({access_token:t.access_token}),e}a(r$,"createGoogleClient");var CH=[{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"middleName",label:"Middle Name"},{key:"familyName",label:"Last Name"},{key:"displayNameLastFirst",label:"Display Name (Last, First)"},{key:"unstructuredName",label:"Unstructured Name"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],RH=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],OH=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],kH=[{key:"value",label:"Nickname"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],NH=[{key:"value",label:"Notes"},{key:"contentType",label:"Content Type"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],$H=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],zH=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],DH=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],UH=[{key:"objectType",label:"Object Type"},{key:"sources",label:"Sources",labelKey:"updateTime",listItems:[{key:"type",label:"Source Type"},{key:"id",label:"Source ID"},{key:"updateTime",label:"Last Updated",format:"datetime"}]}],an=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:CH},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:RH},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:OH},{key:"nicknames",label:"Nicknames",labelKey:"value",listItems:kH},{key:"biographies",label:"Notes",labelKey:"value",listItems:NH},{key:"organizations",label:"Organizations",labelKey:"name",listItems:$H},{key:"photos",label:"Photos",labelKey:"url",listItems:zH},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:DH},{key:"metadata",label:"Metadata",children:UH}],el=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"familyName",label:"Last Name"},{key:"emails",label:"Email Addresses"},{key:"phoneNumbers",label:"Phone Numbers"},{key:"company",label:"Company"},{key:"jobTitle",label:"Job Title"},{key:"updateTime",label:"Last Updated",format:"datetime"}],tl=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"name",label:"Name"},{key:"formattedName",label:"Formatted Name"},{key:"groupType",label:"Group Type"},{key:"memberCount",label:"Member Count",format:"number"},{key:"memberResourceNames",label:"Member Resource Names"}],n$=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"}],MH=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"},{key:"updateMask",label:"Field Groups Not Applied"}],LH=[{key:"requestIndex",label:"Request Index",format:"number"},{key:"status",label:"Failure Reason"}],o$={fields:an},i$={fields:an},a$={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:an}]}]},s$={fields:an},c$={fields:an},u$={fields:an},l$={fields:an},d$={fields:[{key:"contacts",label:"Contacts",labelKey:"displayName",listItems:el},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},p$={fields:[{key:"results",label:"Matching Contacts",labelKey:"displayName",listItems:el},{key:"count",label:"Count",format:"number"}]},f$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"}]},m$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceNames",label:"Resource Names"},{key:"count",label:"Count",format:"number"}]},h$={fields:[{key:"succeeded",label:"Contacts Read",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el},{key:"person",label:"Full Person",children:an}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:n$},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},g$={fields:[{key:"succeeded",label:"Contacts Created",labelKey:"contact.displayName",listItems:[{key:"requestIndex",label:"Request Index",format:"number"},{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el}]},{key:"failed",label:"Failures",labelKey:"requestIndex",listItems:LH},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"requestedCount",label:"Requested Count",format:"number"}]},y$={fields:[{key:"succeeded",label:"Contacts Updated",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el},{key:"person",label:"Full Person",children:an}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:MH},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"updateMasks",label:"Update Masks"}]},_$={fields:an},v$={fields:an},b$={fields:[{key:"contactGroups",label:"Contact Groups",labelKey:"formattedName",listItems:tl},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},S$={fields:tl},P$={fields:tl},E$={fields:[{key:"succeeded",label:"Contact Groups Read",labelKey:"formattedName",listItems:tl},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:n$},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},T$={fields:[{key:"created",label:"Created",format:"boolean"},{key:"contactGroup",label:"Contact Group",children:tl}]},x$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"},{key:"deletedContacts",label:"Contacts Also Deleted",format:"boolean"}]},A$={fields:[{key:"resourceName",label:"Contact Group Resource Name"},{key:"added",label:"Added Contacts"},{key:"removed",label:"Removed Contacts"},{key:"notFoundResourceNames",label:"Not Found Contacts"},{key:"canNotRemoveLastContactGroupResourceNames",label:"Cannot Remove Last Group"}]};var w$=Oe({auth:Te,name:"add_contact",classification:"WRITE",description:"Add a contact to a Google Contacts account",audience:"human",aiMetadata:{description:"Creates a new person in the authenticated Google Contacts account from name, email, phone, company, and job title fields. Use when an agent needs to add someone to address book contacts; first and last name are required. Not idempotent \u2014 each call creates a separate contact even with identical input, so guard against duplicates.",idempotent:!1},displayName:"Add Contact",outputSchema:o$,props:{firstName:K.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:K.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:K.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:K.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:K.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:K.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e={names:[{givenName:t.propsValue.firstName,middleName:t.propsValue.middleName,familyName:t.propsValue.lastName}]},r={};t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]),e={...e,...r};let o={method:"POST",url:`${Ao.baseUrl}:createContact`,body:e,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token}};return(await ln.sendRequest(o)).body}});var I$=Oe({auth:Te,name:"update_contact",classification:"WRITE",description:"Update a contact in Google Contacts account.",audience:"human",aiMetadata:{description:"Updates fields (name, email, phone, company, job title) on an existing Google Contacts person identified by its resourceName (people/{id}). Use when an agent needs to modify a known contact; requires both the resourceName and the current etag, and a field mask listing which fields to update \u2014 the call is rejected if the contact changed since the etag was fetched. Repeating the same update with the same etag/values is safe and yields the same result.",idempotent:!0},displayName:"Update Contact",outputSchema:i$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"The resource name for the person, assigned by the server. An ASCII string in the form of people/{person_id}.",required:!0}),etag:K.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:K.StaticMultiSelectDropdown({displayName:"Update Field Mask",description:"A field mask to restrict which fields on the person are updated.",required:!0,options:{options:[{label:"Names",value:"names"},{label:"Email",value:"emailAddresses"},{label:"Phone Number",value:"phoneNumbers"},{label:"Job Title / Company",value:"organizations"}]},defaultValue:["names","emailAddresses"]}),firstName:K.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:K.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:K.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:K.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:K.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e=t.propsValue.resourceName.substring(6),r={etag:t.propsValue.etag},o={updatePersonFields:t.propsValue.updatePersonFields.join(",")};(t.propsValue.firstName||t.propsValue.middleName||t.propsValue.lastName)&&(r.names=[{givenName:t.propsValue.firstName||void 0,middleName:t.propsValue.middleName||void 0,familyName:t.propsValue.lastName||void 0}]),t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]);let n={method:"PATCH",url:`${Ao.baseUrl}${e}:updateContact`,body:r,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:o};return(await ln.sendRequest(n)).body}});var C$=Oe({auth:Te,name:"search_contact",classification:"SEARCH",description:"Search contacts in Google Contacts account.",audience:"human",aiMetadata:{description:"Searches the authenticated Google Contacts account for people matching a plain-text query, which prefix-matches against contact fields. Use when an agent needs to find a contact or its resourceName before updating it; the query is required and a read mask selects which fields come back (max 30 results). Read-only and idempotent.",idempotent:!0},displayName:"Search Contacts",outputSchema:a$,props:{query:K.ShortText({displayName:"Query",description:'The plain-text query for the request.The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".',required:!0}),readMask:K.StaticMultiSelectDropdown({displayName:"Read Mask",description:"A field mask to restrict which fields on each person are returned.",required:!0,options:{options:[{label:"addresses",value:"addresses"},{label:"ageRanges",value:"ageRanges"},{label:"biographies",value:"biographies"},{label:"birthdays",value:"birthdays"},{label:"calendarUrls",value:"calendarUrls"},{label:"clientData",value:"clientData"},{label:"coverPhotos",value:"coverPhotos"},{label:"emailAddresses",value:"emailAddresses"},{label:"events",value:"events"},{label:"externalIds",value:"externalIds"},{label:"genders",value:"genders"},{label:"imClients",value:"imClients"},{label:"interests",value:"interests"},{label:"locales",value:"locales"},{label:"locations",value:"locations"},{label:"memberships",value:"memberships"},{label:"metadata",value:"metadata"},{label:"miscKeywords",value:"miscKeywords"},{label:"names",value:"names"},{label:"nicknames",value:"nicknames"},{label:"occupations",value:"occupations"},{label:"organizations",value:"organizations"},{label:"phoneNumbers",value:"phoneNumbers"},{label:"photos",value:"photos"},{label:"relations",value:"relations"},{label:"sipAddresses",value:"sipAddresses"},{label:"skills",value:"skills"},{label:"urls",value:"urls"},{label:"userDefined",value:"userDefined"}]},defaultValue:["names","emailAddresses"]}),pageSize:K.Number({displayName:"Page Size",description:"The number of results to return. Maximum 30.",required:!1})},async run(t){let e={query:t.propsValue.query,readMask:t.propsValue.readMask.join(",")};t.propsValue.pageSize&&(e.pageSize=String(t.propsValue.pageSize));let r={method:"GET",url:`${Ao.baseUrl}:searchContacts`,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:e};return(await ln.sendRequest(r)).body}});function qm({current:t,group:e,overrides:r,defaults:o}){let n=D.readArray({source:t,path:[e]}),i=n[0],s=typeof i=="object"&&i!==null&&!Array.isArray(i)?Object.fromEntries(Object.entries(i)):{};return[{...o,...s,...r},...n.slice(1)]}a(qm,"mergeFirstEntry");function jH({input:t,current:e}){let r={},o=[];return(t.firstName!==void 0||t.middleName!==void 0||t.lastName!==void 0)&&(r.names=qm({current:e,group:"names",overrides:{...t.firstName===void 0?{}:{givenName:t.firstName},...t.middleName===void 0?{}:{middleName:t.middleName},...t.lastName===void 0?{}:{familyName:t.lastName}}}),o.push("names")),t.nickname!==void 0&&(r.nicknames=qm({current:e,group:"nicknames",overrides:{value:t.nickname}}),o.push("nicknames")),t.clearEmails===!0?(r.emailAddresses=[],o.push("emailAddresses")):t.emails!==void 0&&t.emails.length>0&&(r.emailAddresses=t.emails.map(s=>({value:s})),o.push("emailAddresses")),t.clearPhoneNumbers===!0?(r.phoneNumbers=[],o.push("phoneNumbers")):t.phoneNumbers!==void 0&&t.phoneNumbers.length>0&&(r.phoneNumbers=t.phoneNumbers.map(s=>({value:s})),o.push("phoneNumbers")),(t.company!==void 0||t.jobTitle!==void 0)&&(r.organizations=qm({current:e,group:"organizations",overrides:{...t.company===void 0?{}:{name:t.company},...t.jobTitle===void 0?{}:{title:t.jobTitle}}}),o.push("organizations")),t.biography!==void 0&&(r.biographies=qm({current:e,group:"biographies",overrides:{value:t.biography},defaults:{contentType:"TEXT_PLAIN"}}),o.push("biographies")),{person:r,fields:o}}a(jH,"buildPerson");function R$({person:t,group:e}){return D.readArray({source:t,path:[e]}).map(n=>D.readString({source:n,path:["value"]})).filter(n=>n!==void 0)}a(R$,"valuesOf");function FH({person:t}){let e=D.readArray({source:t,path:["names"]})[0],r=D.readArray({source:t,path:["organizations"]})[0],o=D.readArray({source:t,path:["metadata","sources"]})[0];return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),displayName:D.readString({source:e,path:["displayName"]}),givenName:D.readString({source:e,path:["givenName"]}),familyName:D.readString({source:e,path:["familyName"]}),emails:R$({person:t,group:"emailAddresses"}),phoneNumbers:R$({person:t,group:"phoneNumbers"}),company:D.readString({source:r,path:["name"]}),jobTitle:D.readString({source:r,path:["title"]}),updateTime:D.readString({source:o,path:["updateTime"]})}}a(FH,"summarizePerson");var qt={buildPerson:jH,summarizePerson:FH};var O$=Oe({auth:Te,name:"create_contact",classification:"WRITE",displayName:"Create Contact",description:"Create a new contact in the connected Google account.",audience:"ai",aiMetadata:{description:'Creates one new person in the connected Google Contacts account from name, nickname, email, phone, organization and notes fields. Supply at least one of name, email or phone; email addresses and phone numbers are arrays of strings, so pass ["ada@example.com"] rather than a bare string. Use Batch Create Contacts for many at once, and Update Contact Fields to change someone who already exists. Not idempotent \u2014 every call creates a separate person, so check with Search Contacts first if duplicates matter.',idempotent:!1},outputSchema:c$,props:{firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),nickname:K.ShortText({displayName:"Nickname",required:!1}),emails:K.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. A single address still has to be wrapped in an array.',required:!1}),phoneNumbers:K.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. A single number still has to be wrapped in an array.',required:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1}),biography:K.LongText({displayName:"Notes",description:"Free-text notes stored on the contact biography.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),r=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"}),{person:o,fields:n}=qt.buildPerson({input:{firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:e,phoneNumbers:r,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography}});if(n.length===0)throw new Error("Create Contact needs at least one of first name, last name, email address or phone number.");try{return await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:createContact",queryParams:{personFields:D.contactReadMask.join(",")},body:o})}catch(i){throw D.toApiError({error:i,operation:"Create Contact"})}}});var k$=Oe({auth:Te,name:"update_contact_fields",classification:"WRITE",displayName:"Update Contact Fields",description:"Update only the supplied fields on an existing contact.",audience:"ai",aiMetadata:{description:"Updates an existing Google Contacts person, changing only the fields you supply and leaving every other field untouched. It reads the contact first, so it resolves the required etag and field mask itself \u2014 you never pass them. Supply the opaque resourceName from List Contacts or Search Contacts. A non-empty email or phone list replaces the stored list for that field wholesale; first/middle/last name and company/job title are merged over the current values. Leaving a list empty does NOT clear it, because the platform cannot distinguish an untouched list from an emptied one: to remove every email address or every phone number, including the last one, set clearEmails or clearPhoneNumbers to true. Setting a clear flag while also supplying a non-empty list for the same field is rejected. Safe to retry: re-applying the same values converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:l$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),nickname:K.ShortText({displayName:"Nickname",required:!1}),emails:K.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. Replaces every email address stored on the contact. Leaving it empty keeps the stored addresses; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Email Addresses to remove them.',required:!1}),clearEmails:K.Checkbox({displayName:"Clear Email Addresses",description:"Remove every email address from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Email Addresses list.",required:!1,defaultValue:!1}),phoneNumbers:K.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. Replaces every phone number stored on the contact. Leaving it empty keeps the stored numbers; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Phone Numbers to remove them.',required:!1}),clearPhoneNumbers:K.Checkbox({displayName:"Clear Phone Numbers",description:"Remove every phone number from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Phone Numbers list.",required:!1,defaultValue:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1}),biography:K.LongText({displayName:"Notes",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.clearEmails===!0,o=t.propsValue.clearPhoneNumbers===!0,n=D.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),i=D.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"});if(r&&n.length>0)throw new Error("Clear Email Addresses removes every email address, so it cannot be combined with an Email Addresses list. Either clear the list or turn the checkbox off.");if(o&&i.length>0)throw new Error("Clear Phone Numbers removes every phone number, so it cannot be combined with a Phone Numbers list. Either clear the list or turn the checkbox off.");let s={firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:n,phoneNumbers:i,clearEmails:r,clearPhoneNumbers:o,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography},{fields:u}=qt.buildPerson({input:s});if(u.length===0)throw new Error("Update Contact Fields needs at least one field to change; every field prop was left empty.");let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:u.join(",")}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields (reading the contact)"})}let p=D.readString({source:l,path:["etag"]});if(p===void 0)throw new Error("Update Contact Fields could not read the current etag of the contact; re-read the contact and retry.");let{person:f,fields:y}=qt.buildPerson({input:s,current:l});try{return await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContact`,queryParams:{updatePersonFields:y.join(","),personFields:D.contactReadMask.join(",")},body:{etag:p,...f}})}catch(m){throw D.toApiError({error:m,operation:"Update Contact Fields"})}}});var N$=Oe({auth:Te,name:"search_contacts",classification:"SEARCH",displayName:"Search Contacts",description:"Search the connected account contacts by a plain-text query.",audience:"ai",aiMetadata:{description:'Searches the connected Google Contacts account for people whose fields prefix-match a plain-text query and returns each match with its resourceName and etag. Use it to resolve a name, email or phone fragment into a resourceName before an update or delete; use List Contacts to enumerate everything instead. Matching is prefix-only ("foo n" matches "foo name", "oo n" does not) and capped at 30 results. Read-only and safe to retry.',idempotent:!0},outputSchema:p$,props:{query:K.ShortText({displayName:"Query",description:"Plain-text query prefix-matched against contact fields such as name, email and phone number.",required:!0}),pageSize:K.Number({displayName:"Page Size",description:"Number of results to return, maximum 30. Defaults to 30.",required:!1})},async run(t){let e=D.contactReadMask.join(","),r=Math.min(30,Math.max(1,t.propsValue.pageSize??30));try{await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:"",readMask:e,pageSize:"1"}})}catch(o){throw D.toApiError({error:o,operation:"Search Contacts warm-up"})}try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:t.propsValue.query,readMask:e,pageSize:String(r)}}),n=D.readArray({source:o,path:["results"]}).map(i=>qt.summarizePerson({person:D.readValue({source:i,path:["person"]})}));return{results:n,count:n.length}}catch(o){throw D.toApiError({error:o,operation:"Search Contacts"})}}});var $$=Oe({auth:Te,name:"get_contact",classification:"READ",displayName:"Get Contact",description:"Read a single contact by its resource name.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts person by its opaque resourceName (people/{id}) and returns names, emails, phone numbers, organizations, memberships and the current etag. Obtain the resourceName from List Contacts or Search Contacts; do not construct or parse it. Use Batch Get Contacts for more than one contact. Read-only and safe to retry.",idempotent:!0},outputSchema:u$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{return await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(r){throw D.toApiError({error:r,operation:"Get Contact"})}}});var BH=10,z$=Oe({auth:Te,name:"list_contacts",classification:"SEARCH",displayName:"List Contacts",description:"List the contacts of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the connected account contacts with the resourceName and etag every write action needs, plus display name, emails, phone numbers and organization. Use this to resolve a person name to a resourceName before Update Contact Fields, Delete Contact or group membership changes; use Search Contacts when you already have a query string. Read-only and safe to retry.",idempotent:!0},outputSchema:d$,props:{maxResults:K.Number({displayName:"Max Results",description:"Maximum number of contacts to return. Defaults to 200.",required:!1})},async run(t){let e=t.propsValue.maxResults??200,r=[],o;try{for(let i=0;i<BH;i++){let s=Math.min(1e3,Math.max(1,e-r.length)),u=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people/me/connections",queryParams:{personFields:D.contactReadMask.join(","),pageSize:String(s),pageToken:o}}),l=D.readArray({source:u,path:["connections"]});for(let p of l)r.push(qt.summarizePerson({person:p}));if(o=D.readString({source:u,path:["nextPageToken"]}),o===void 0||r.length>=e)break}}catch(i){throw D.toApiError({error:i,operation:"List Contacts"})}let n=r.slice(0,e);return{contacts:n,count:n.length,hasMore:o!==void 0}}});var D$=Oe({auth:Te,name:"delete_contact",classification:"DESTRUCTIVE",displayName:"Delete Contact",description:"Permanently delete a contact by its resource name.",audience:"ai",aiMetadata:{description:"Permanently deletes one Google Contacts person by its opaque resourceName (people/{id}). Irreversible \u2014 the People API has no trash, so confirm the contact with Get Contact or List Contacts first; use Batch Delete Contacts for many at once. Not idempotent: a repeat call fails because the contact is already gone.",idempotent:!1},outputSchema:f$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts. Deletion cannot be undone.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContact`})}catch(r){throw D.toApiError({error:r,operation:"Delete Contact"})}return{deleted:!0,resourceName:e}}});var U$=Oe({auth:Te,name:"batch_get_contacts",classification:"READ",displayName:"Batch Get Contacts",description:"Read up to 200 contacts in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts people in one call from a list of opaque resourceNames and returns each full contact with its current etag, split into succeeded and failed collections. Use it instead of repeated Get Contact calls, and as the input source for Batch Update Contacts. A whole-call success can still contain per-contact failures, so always read the failed collection. Read-only and safe to retry.",idempotent:!0},outputSchema:h$,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 200 opaque contact resource names such as people/c12345, resolved with List Contacts or Search Contacts.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:batchGet",queryParams:{personFields:D.contactReadMask.join(",")},repeatedQueryParams:{resourceNames:e}})}catch(s){throw D.toApiError({error:s,operation:"Batch Get Contacts"})}let o=D.readArray({source:r,path:["responses"]}).map((s,u)=>({resourceName:D.readString({source:s,path:["requestedResourceName"]})??e[u]??"",response:s})),{succeeded:n,failed:i}=D.splitItemResponses({items:o,payloadKey:"person"});return{succeeded:n.map(s=>({resourceName:s.resourceName,contact:qt.summarizePerson({person:s.payload}),person:s.payload})),failed:i,succeededCount:n.length,failedCount:i.length}}});function Ai({source:t,key:e}){let r=D.readString({source:t,path:[e]});if(!(r===void 0||r.trim().length===0))return r.trim()}a(Ai,"optionalString");var M$=Oe({auth:Te,name:"batch_create_contacts",classification:"WRITE",displayName:"Batch Create Contacts",description:"Create up to 200 contacts in a single call.",audience:"ai",aiMetadata:{description:"Creates up to 200 new Google Contacts people in one call and returns the created contacts split into succeeded and failed collections. Use it instead of repeated Create Contact calls when importing a list; a whole-call success can still contain per-contact failures, so always read the failed collection. Not idempotent \u2014 every call creates new people, so a retry after a partial failure duplicates the ones that already succeeded.",idempotent:!1},outputSchema:g$,props:{contacts:K.Array({displayName:"Contacts",description:"Up to 200 contacts to create. Each needs at least a name, an email or a phone number.",required:!0,properties:{firstName:K.ShortText({displayName:"First Name",required:!1}),middleName:K.ShortText({displayName:"Middle Name",required:!1}),lastName:K.ShortText({displayName:"Last Name",required:!1}),email:K.ShortText({displayName:"Email Address",required:!1}),phoneNumber:K.ShortText({displayName:"Phone Number",required:!1}),company:K.ShortText({displayName:"Company",required:!1}),jobTitle:K.ShortText({displayName:"Job Title",required:!1})}})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must contain at least one entry.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>{let p=Ai({source:u,key:"email"}),f=Ai({source:u,key:"phoneNumber"}),{person:y,fields:m}=qt.buildPerson({input:{firstName:Ai({source:u,key:"firstName"}),middleName:Ai({source:u,key:"middleName"}),lastName:Ai({source:u,key:"lastName"}),emails:p===void 0?[]:[p],phoneNumbers:f===void 0?[]:[f],company:Ai({source:u,key:"company"}),jobTitle:Ai({source:u,key:"jobTitle"})}});if(m.length===0)throw new Error(`Contact ${l+1} needs at least one of first name, last name, email address or phone number.`);return{contactPerson:y}}),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchCreateContacts",body:{contacts:r,readMask:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Batch Create Contacts"})}let n=D.readArray({source:o,path:["createdPeople"]}),i=n.map((u,l)=>({item:u,index:l})).filter(u=>!D.isFailedItem({response:u.item})).map(u=>{let l=D.readValue({source:u.item,path:["person"]});return{requestIndex:u.index+1,resourceName:D.readString({source:l,path:["resourceName"]}),contact:qt.summarizePerson({person:l})}}),s=n.map((u,l)=>({item:u,index:l})).filter(u=>D.isFailedItem({response:u.item})).map(u=>({requestIndex:u.index+1,status:D.describeStatus({status:D.readValue({source:u.item,path:["status"]})})}));return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,requestedCount:r.length}}});function qH({entry:t,index:e}){let r=D.readRecord({source:t,path:[]});if(r===void 0)throw new Error(`Contact ${e+1} must be a Person object.`);let o=D.readString({source:r,path:["resourceName"]}),n=D.readString({source:r,path:["etag"]});if(o===void 0||n===void 0)throw new Error(`Contact ${e+1} must carry both resourceName and etag exactly as returned by Batch Get Contacts.`);let i=Object.keys(r).filter(u=>D.updatablePersonFields.includes(u)),s=Object.fromEntries(Object.entries(r).filter(([u])=>u==="etag"||u==="resourceName"||D.updatablePersonFields.includes(u)));return{resourceName:o,person:s,fields:i}}a(qH,"toPerson");function GH({parsed:t}){let e=new Map;for(let r of t){let o=[...r.fields].sort().join(","),n=e.get(o);n===void 0?e.set(o,{[r.resourceName]:r.person}):n[r.resourceName]=r.person}return[...e.entries()].map(([r,o])=>({updateMask:r,contacts:o}))}a(GH,"groupBySignature");var L$=Oe({auth:Te,name:"batch_update_contacts",classification:"WRITE",displayName:"Batch Update Contacts",description:"Update up to 200 contacts in a single call from full Person objects.",audience:"ai",aiMetadata:{description:"Updates up to 200 Google Contacts people in one call. Feed it the full Person objects returned by Batch Get Contacts, each still carrying its own resourceName and etag, with the values you want changed edited in place. The people are grouped by which field groups they carry and one request is issued per group, so a person carrying only a phone number and a person carrying only an email can be updated together; each request uses the field mask of its own group. Within a group the mask is applied to every person in it, so never hand-build partial Person objects here \u2014 a group a person no longer carries is erased on that person. Prefer Update Contact Fields for a single contact. Because the work is split across requests, this action can partially apply: one group can be written while another is rejected outright. It therefore does not throw when a request fails \u2014 it records every contact in that request under failed and carries on. Never treat a returned result as wholesale success and never assume an absent error means everything applied; always read failed and failedCount, which also cover per-contact rejections such as stale etags. Every submitted person must carry at least one updatable field group. Before retrying, re-read the people so the already-updated ones carry fresh etags.",idempotent:!0},outputSchema:y$,props:{contacts:K.Json({displayName:"Contacts",description:"JSON array of up to 200 full Person objects taken from Batch Get Contacts, each keeping its resourceName and etag, with the fields to change edited in place.",required:!0})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must be a JSON array holding at least one Person object.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>qH({entry:u,index:l})),o=r.filter(u=>u.fields.length===0).map(u=>u.resourceName);if(o.length>0)throw new Error(`Every submitted person must carry at least one updatable field group, because a person with no group has nothing to update. These people carry none: ${o.join(", ")}.`);let n=GH({parsed:r}),i=[],s=[];for(let u of n){let l;try{l=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchUpdateContacts",body:{contacts:u.contacts,updateMask:u.updateMask,readMask:D.contactReadMask.join(",")}})}catch(m){let h=D.toApiError({error:m,operation:`Batch Update Contacts (field mask ${u.updateMask})`}).message;for(let _ of Object.keys(u.contacts))s.push({resourceName:_,status:h,updateMask:u.updateMask});continue}let p=D.readRecord({source:l,path:["updateResult"]}),f=Object.entries(p??{}).map(([m,h])=>({resourceName:m,response:h})),y=D.splitItemResponses({items:f,payloadKey:"person"});for(let m of y.succeeded)i.push({resourceName:m.resourceName,contact:qt.summarizePerson({person:m.payload}),person:m.payload});for(let m of y.failed)s.push({resourceName:m.resourceName,status:m.status,updateMask:u.updateMask})}return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,updateMasks:n.map(u=>u.updateMask)}}});var j$=Oe({auth:Te,name:"batch_delete_contacts",classification:"DESTRUCTIVE",displayName:"Batch Delete Contacts",description:"Permanently delete up to 500 contacts in a single call.",audience:"ai",aiMetadata:{description:"Permanently deletes up to 500 Google Contacts people in one call from a list of opaque resourceNames. Irreversible and unrecoverable \u2014 the People API has no trash and there is no per-contact confirmation in the response, so verify every resourceName with Batch Get Contacts or List Contacts before calling and prefer Delete Contact when removing a single person. Not idempotent: a repeat call fails on contacts that are already gone.",idempotent:!1},outputSchema:m$,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 500 opaque contact resource names such as people/c12345. Every listed contact is deleted permanently and cannot be restored.",required:!0})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:500,label:"Resource Names"});try{await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchDeleteContacts",body:{resourceNames:e}})}catch(r){throw D.toApiError({error:r,operation:"Batch Delete Contacts"})}return{deleted:!0,resourceNames:e,count:e.length}}});var F$="base64,",B$=Oe({auth:Te,name:"update_contact_photo",classification:"WRITE",displayName:"Update Contact Photo",description:"Set the photo of an existing contact from base64 image bytes.",audience:"ai",aiMetadata:{description:"Replaces the photo of one Google Contacts person with the supplied base64-encoded JPEG, PNG or WebP image. Supply the opaque resourceName from List Contacts or Search Contacts; use Delete Contact Photo to remove a photo instead. Safe to retry \u2014 re-sending the same bytes converges on the same photo.",idempotent:!0},outputSchema:_$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),photoBytes:K.LongText({displayName:"Photo Bytes",description:"Base64-encoded JPEG, PNG or WebP image. A data URL prefix is accepted and stripped.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.photoBytes.trim(),o=r.indexOf(F$),n=o===-1?r:r.slice(o+F$.length);if(n.length===0)throw new Error("Update Contact Photo needs base64-encoded image bytes.");let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContactPhoto`,body:{photoBytes:n,personFields:D.contactReadMask.join(",")}})}catch(u){throw D.toApiError({error:u,operation:"Update Contact Photo"})}let s=D.readRecord({source:i,path:["person"]});if(s===void 0)throw new Error("Update Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was set.");return s}});var q$=Oe({auth:Te,name:"delete_contact_photo",classification:"WRITE",displayName:"Delete Contact Photo",description:"Remove the photo of an existing contact.",audience:"ai",aiMetadata:{description:"Removes the photo from one Google Contacts person, leaving the rest of the contact untouched. Supply the opaque resourceName from List Contacts or Search Contacts; use Update Contact Photo to set a new image instead. The removed image is not recoverable through this API.",idempotent:!1},outputSchema:v$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r;try{r=await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContactPhoto`,queryParams:{personFields:D.contactReadMask.join(",")}})}catch(n){throw D.toApiError({error:n,operation:"Delete Contact Photo"})}let o=D.readRecord({source:r,path:["person"]});if(o===void 0)throw new Error("Delete Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was removed.");return o}});function VH({group:t}){let e=D.readValue({source:t,path:["memberCount"]});return{resourceName:D.readString({source:t,path:["resourceName"]}),etag:D.readString({source:t,path:["etag"]}),name:D.readString({source:t,path:["name"]}),formattedName:D.readString({source:t,path:["formattedName"]}),groupType:D.readString({source:t,path:["groupType"]}),memberCount:typeof e=="number"?e:0,memberResourceNames:D.readArray({source:t,path:["memberResourceNames"]}).filter(r=>typeof r=="string")}}a(VH,"summarizeGroup");function HH({group:t,name:e}){let r=e.trim().toLowerCase(),o=D.readString({source:t,path:["name"]}),n=D.readString({source:t,path:["formattedName"]});return o?.trim().toLowerCase()===r||n?.trim().toLowerCase()===r}a(HH,"matchesName");var xr={summarizeGroup:VH,matchesName:HH};var ZH=10,G$=Oe({auth:Te,name:"list_contact_groups",classification:"SEARCH",displayName:"List Contact Groups",description:"List every contact group of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the contact groups (labels) of the connected Google account with the opaque resourceName, name, type and member count of each. Use it to resolve a group name to its resourceName before Get Contact Group, Update Contact Group, Delete Contact Group or Add Or Remove Contact Group Members. Member resource names are not included here \u2014 read a single group with Get Contact Group for those. Read-only and safe to retry.",idempotent:!0},outputSchema:b$,props:{},async run(t){let e=[],r;try{for(let o=0;o<ZH;o++){let n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}});for(let i of D.readArray({source:n,path:["contactGroups"]}))e.push(xr.summarizeGroup({group:i}));if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)break}}catch(o){throw D.toApiError({error:o,operation:"List Contact Groups"})}return{contactGroups:e,count:e.length,hasMore:r!==void 0}}});var V$=Oe({auth:Te,name:"get_contact_group",classification:"READ",displayName:"Get Contact Group",description:"Read one contact group, optionally with its member resource names.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts group by its opaque resourceName (contactGroups/{id}) and returns its name, type, member count and, when Max Members is above zero, the resource names of its members. Resolve the resourceName with List Contact Groups; use Batch Get Contact Groups for several groups. Read-only and safe to retry.",idempotent:!0},outputSchema:S$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, or a system group like contactGroups/myContacts. Resolve it with List Contact Groups.",required:!0}),maxMembers:K.Number({displayName:"Max Members",description:"How many member resource names to return. Defaults to 0, which returns none.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=Math.max(0,t.propsValue.maxMembers??0);try{let o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)}});return xr.summarizeGroup({group:o})}catch(o){throw D.toApiError({error:o,operation:"Get Contact Group"})}}});var H$=Oe({auth:Te,name:"batch_get_contact_groups",classification:"READ",displayName:"Batch Get Contact Groups",description:"Read up to 200 contact groups in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts groups in one call from a list of opaque resourceNames, returning succeeded and failed collections. Use it instead of repeated Get Contact Group calls; a whole-call success can still contain per-group failures, so always read the failed collection. Resolve the resource names with List Contact Groups. Read-only and safe to retry.",idempotent:!0},outputSchema:E$,props:{resourceNames:K.Array({displayName:"Resource Names",description:"Up to 200 opaque contact group resource names such as contactGroups/abc123, resolved with List Contact Groups.",required:!0}),maxMembers:K.Number({displayName:"Max Members",description:"How many member resource names to return per group. Defaults to 0, which returns none.",required:!1})},async run(t){let e=D.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});D.assertBatchSize({values:e,max:200,label:"Resource Names"});let r=Math.max(0,t.propsValue.maxMembers??0),o;try{o=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups:batchGet",queryParams:{groupFields:D.contactGroupFields.join(","),maxMembers:String(r)},repeatedQueryParams:{resourceNames:e}})}catch(u){throw D.toApiError({error:u,operation:"Batch Get Contact Groups"})}let n=D.readArray({source:o,path:["responses"]}).map((u,l)=>({resourceName:D.readString({source:u,path:["requestedResourceName"]})??e[l]??"",response:u})),{succeeded:i,failed:s}=D.splitItemResponses({items:n,payloadKey:"contactGroup"});return{succeeded:i.map(u=>xr.summarizeGroup({group:u.payload})),failed:s,succeededCount:i.length,failedCount:s.length}}});var WH=10;async function Z$({accessToken:t,name:e}){let r;for(let o=0;o<WH;o++){let n=await D.sendRequest({accessToken:t,method:"GET",path:"/contactGroups",queryParams:{groupFields:D.contactGroupFields.join(","),pageSize:"1000",pageToken:r}}),i=D.readArray({source:n,path:["contactGroups"]}).find(s=>xr.matchesName({group:s,name:e}));if(i!==void 0)return i;if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)return}}a(Z$,"findGroupByName");var W$=Oe({auth:Te,name:"create_contact_group",classification:"WRITE",displayName:"Create Contact Group",description:"Create a contact group, or return the existing one with that name.",audience:"ai",aiMetadata:{description:"Creates a contact group (label) with the given name in the connected Google account, or returns the existing group when one already carries that name, reporting which happened through the created flag. Use it before Add Or Remove Contact Group Members when the target group may not exist yet. Safe to retry: the lookup runs first and a duplicate-name rejection is resolved by returning the existing group.",idempotent:!0},outputSchema:T$,props:{name:K.ShortText({displayName:"Group Name",description:"Name of the contact group to find or create.",required:!0})},async run(t){let e=t.propsValue.name.trim();if(e.length===0)throw new Error("Group Name must not be empty.");let r=t.auth.access_token;try{let o=await Z$({accessToken:r,name:e});if(o!==void 0)return{created:!1,contactGroup:xr.summarizeGroup({group:o})}}catch(o){throw D.toApiError({error:o,operation:"Create Contact Group (looking up existing groups)"})}try{let o=await D.sendRequest({accessToken:r,method:"POST",path:"/contactGroups",body:{contactGroup:{name:e},readGroupFields:D.contactGroupFields.join(",")}});return{created:!0,contactGroup:xr.summarizeGroup({group:o})}}catch(o){if(!D.isConflict({error:o}))throw D.toApiError({error:o,operation:"Create Contact Group"});let n=await Z$({accessToken:r,name:e});if(n===void 0)throw D.toApiError({error:o,operation:"Create Contact Group"});return{created:!1,contactGroup:xr.summarizeGroup({group:n})}}}});var K$=Oe({auth:Te,name:"update_contact_group",classification:"WRITE",displayName:"Update Contact Group",description:"Rename an existing user-created contact group.",audience:"ai",aiMetadata:{description:"Renames one user-created Google Contacts group identified by its opaque resourceName (contactGroups/{id}). It reads the group first to resolve the required etag and sends an explicit name-only field mask, so members and other group data are untouched. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be renamed. Safe to retry: re-applying the same name converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:P$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),name:K.ShortText({displayName:"New Group Name",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.name.trim();if(r.length===0)throw new Error("New Group Name must not be empty.");let o=D.contactGroupFields.join(","),n;try{n=await D.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:o,maxMembers:"0"}})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group (reading the group)"})}let i=D.readString({source:n,path:["etag"]});if(i===void 0)throw new Error("Update Contact Group could not read the current etag of the group; re-read the group and retry.");try{let s=await D.sendRequest({accessToken:t.auth.access_token,method:"PUT",path:`/${e}`,body:{contactGroup:{etag:i,name:r},updateGroupFields:"name",readGroupFields:o}});return xr.summarizeGroup({group:s})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group"})}}});var J$=Oe({auth:Te,name:"delete_contact_group",classification:"DESTRUCTIVE",displayName:"Delete Contact Group",description:"Delete a user-created contact group.",audience:"ai",aiMetadata:{description:"Deletes one user-created Google Contacts group by its opaque resourceName (contactGroups/{id}). By default only the group is removed and its members stay in the address book; turning on Delete Contacts also permanently deletes every contact in the group, which cannot be undone. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be deleted. Not idempotent: a repeat call fails because the group is already gone.",idempotent:!1},outputSchema:x$,props:{resourceName:K.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),deleteContacts:K.Checkbox({displayName:"Also Delete Contacts",description:"When enabled, every contact in the group is permanently deleted as well. Leave off to remove only the group.",required:!1,defaultValue:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.deleteContacts===!0;try{await D.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}`,queryParams:{deleteContacts:String(r)}})}catch(o){throw D.toApiError({error:o,operation:"Delete Contact Group"})}return{deleted:!0,resourceName:e,deletedContacts:r}}});var X$=Oe({auth:Te,name:"modify_contact_group_members",classification:"WRITE",displayName:"Add Or Remove Contact Group Members",description:"Add contacts to a contact group or remove them from it.",audience:"ai",aiMetadata:{description:"Adds contacts to a Google Contacts group and removes contacts from it in one call, taking opaque people/{id} resource names resolved with List Contacts or Search Contacts and a contactGroups/{id} group resolved with List Contact Groups. Additions are accepted by user-created groups and by the system groups contactGroups/myContacts and contactGroups/starred only; other system groups accept removals only. Combined additions and removals are capped at 1000, and the response reports contacts that were not found. Safe to retry \u2014 re-applying the same membership changes converges.",idempotent:!0},outputSchema:A$,props:{resourceName:K.ShortText({displayName:"Contact Group Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, contactGroups/myContacts or contactGroups/starred. Resolve it with List Contact Groups.",required:!0}),resourceNamesToAdd:K.Array({displayName:"Contacts To Add",description:"Opaque contact resource names such as people/c12345 to add to the group.",required:!1}),resourceNamesToRemove:K.Array({displayName:"Contacts To Remove",description:"Opaque contact resource names such as people/c12345 to remove from the group.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=D.toStringList({value:t.propsValue.resourceNamesToAdd,label:"Contacts To Add"}),o=D.toStringList({value:t.propsValue.resourceNamesToRemove,label:"Contacts To Remove"}),n=r.length+o.length;if(n===0)throw new Error("Add Or Remove Contact Group Members needs at least one contact to add or remove.");if(n>1e3)throw new Error(`Contacts to add and remove are capped at 1000 combined, received ${n}.`);if(r.length>0&&D.systemGroupsRejectingAdds.includes(e))throw new Error(`The system group ${e} does not accept added members; only contactGroups/myContacts, contactGroups/starred and user-created groups do.`);let i;try{i=await D.sendRequest({accessToken:t.auth.access_token,method:"POST",path:`/${e}/members:modify`,body:{resourceNamesToAdd:r,resourceNamesToRemove:o}})}catch(l){throw D.toApiError({error:l,operation:"Add Or Remove Contact Group Members"})}let s=D.readArray({source:i,path:["notFoundResourceNames"]}).filter(l=>typeof l=="string"),u=D.readArray({source:i,path:["canNotRemoveLastContactGroupResourceNames"]}).filter(l=>typeof l=="string");return{resourceName:e,added:r.filter(l=>!s.includes(l)),removed:o.filter(l=>!s.includes(l)&&!u.includes(l)),notFoundResourceNames:s,canNotRemoveLastContactGroupResourceNames:u}}});var hD=xt(fD()),gD=xt(mD());var ch={strategy:0,items:a(async({store:t,auth:e})=>{let r=(0,hD.people)({version:"v1",auth:r$(e)}),o,n=[];do{let i=await r.people.connections.list({resourceName:"people/me",pageToken:o,pageSize:100,sortOrder:"LAST_MODIFIED_DESCENDING",personFields:["addresses","ageRanges","biographies","birthdays","calendarUrls","clientData","coverPhotos","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","metadata","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","photos","relations","sipAddresses","skills","urls","userDefined"].join()});for(let s of i.data.connections||[])s.metadata?.deleted!==!0&&n.push({data:s,epochMilliSeconds:(0,gD.default)(s.metadata?.sources?.[0].updateTime).valueOf()});o=i.data.nextPageToken}while(o);return n},"items")},yD=CI({auth:Te,name:"new_or_updated_contact",classification:"READ",displayName:"New Or Updated Contact",description:"Triggers when there is a new or updated contact",aiMetadata:{description:"Fires when a contact in the authenticated Google Contacts account is newly created or has been modified since the last poll. Each event represents one person record with its current fields; deleted contacts are excluded."},props:{},outputSchema:s$,sampleData:{resourceName:"people/c4278485694217203807",etag:"%EiMBAgMFBgcICQoLDA0ODxATFBUWGSEiIyQlJicuNDU3PT4/QBoEAQIFByIMZFVwNlJPNEVKUzg9",metadata:{sources:[{type:"CONTACT",id:"3b603c120c68305f",etag:"#dUp6RO4EJS8=",updateTime:"2023-01-30T14:35:18.142565Z"}],objectType:"PERSON"},names:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},displayName:"Shahed Mashni",familyName:"Mashni",givenName:"Shahed",displayNameLastFirst:"Mashni, Shahed",unstructuredName:"Shahed Mashni"}],photos:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},url:"https://lh3.googleusercontent.com/cm/AAkddurmZojs4vCcxrpkfSxH9tnqcH-hI82ESDnwv6eq86nZeLStcjYEIe_TCx8r8g5Y=s100",default:!0}],memberships:[{metadata:{source:{type:"CONTACT",id:"3b603c120c68305f"}},contactGroupMembership:{contactGroupId:"myContacts",contactGroupResourceName:"contactGroups/myContacts"}}]},type:"POLLING",async onEnable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async onDisable(t){return await bu.onEnable(ch,{store:t.store,auth:t.auth,propsValue:{}})},async run(t){return await bu.poll(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files})},test:a(async t=>await bu.test(ch,{store:t.store,auth:t.auth,propsValue:{},files:t.files}),"test")});var h3=kI({minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/google-contacts.png",categories:["SALES_AND_CRM"],actions:[w$,I$,C$,O$,k$,N$,$$,z$,D$,U$,M$,L$,j$,B$,q$,G$,V$,H$,W$,K$,J$,X$,ZR({baseUrl:a(()=>Ao.baseUrl,"baseUrl"),auth:Te,authMapping:a(async t=>({Authorization:`Bearer ${t.access_token}`}),"authMapping")})],displayName:"Google Contacts",description:"Stay connected and organized",authors:["Abdallah-Alwarawreh","Salem-Alaa","kishanprmr","MoShizzle","khaledmashaly","abuaboud","ikus060"],triggers:[yD],auth:Te});0&&(module.exports={googleContacts});
|
|
107
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let u=s[1];if(e===s[0]){i(s);continue}if(t.external){let p=t.external.registry.get(s[0])?.id;if(e!==s[0]&&p){i(s);continue}}if(t.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&t.reused==="ref"){i(s);continue}}}a(ho,"extractDefs");function go(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,p={...l},f=u.ref;if(u.ref=null,f){o(f);let m=t.seen.get(f),h=m.schema;if(h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,p),s._zod.parent===f)for(let S in l)S==="$ref"||S==="allOf"||S in p||delete l[S];if(h.$ref&&m.def)for(let S in l)S==="$ref"||S==="allOf"||S in m.def&&JSON.stringify(l[S])===JSON.stringify(m.def[S])&&delete l[S]}let y=s._zod.parent;if(y&&y!==f){o(y);let m=t.seen.get(y);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})},"flattenRef");for(let s of[...t.seen.entries()].reverse())o(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let i=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:da(e,"input",t.processors),output:da(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(go,"finalize");function Ht(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,r);if(o.type==="set")return Ht(o.valueType,r);if(o.type==="lazy")return Ht(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,r);if(o.type==="intersection")return Ht(o.left,r)||Ht(o.right,r);if(o.type==="record"||o.type==="map")return Ht(o.keyType,r)||Ht(o.valueType,r);if(o.type==="pipe")return Ht(o.in,r)||Ht(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Ht(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Ht(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Ht(n,r))return!0;return!!(o.rest&&Ht(o.rest,r))}return!1}a(Ht,"isTransforming");var Dy=a((t,e={})=>r=>{let o=mo({...r,processors:e});return Ye(t,o),ho(o,t),go(o,t)},"createToJSONSchemaMethod"),da=a((t,e,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=mo({...n??{},target:i,io:e,processors:r});return Ye(t,s),ho(s,t),go(s,t)},"createStandardJSONSchemaMethod");var wL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=a((t,e,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:p}=t._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),u&&(n.format=wL[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),p&&(n.contentEncoding=p),l&&l.size>0){let f=[...l];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(y=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Uy=a((t,e,r,o)=>{let n=r,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:p,exclusiveMinimum:f}=t._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof i=="number"&&(n.minimum=i,typeof f=="number"&&e.target!=="draft-04"&&(f>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof s=="number"&&(n.maximum=s,typeof p=="number"&&e.target!=="draft-04"&&(p<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},"numberProcessor"),My=a((t,e,r,o)=>{r.type="boolean"},"booleanProcessor"),Ly=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),jy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Fy=a((t,e,r,o)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},"nullProcessor"),By=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),qy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Gy=a((t,e,r,o)=>{r.not={}},"neverProcessor"),Vy=a((t,e,r,o)=>{},"anyProcessor"),Hy=a((t,e,r,o)=>{},"unknownProcessor"),Zy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Wy=a((t,e,r,o)=>{let n=t._zod.def,i=vs(n.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},"enumProcessor"),Ky=a((t,e,r,o)=>{let n=t._zod.def,i=[];for(let s of n.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},"literalProcessor"),Jy=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Xy=a((t,e,r,o)=>{let n=r,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},"templateLiteralProcessor"),Yy=a((t,e,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:l}=t._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(p=>({contentMediaType:p}))):Object.assign(n,i)},"fileProcessor"),Qy=a((t,e,r,o)=>{r.type="boolean"},"successProcessor"),e_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),t_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),r_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),n_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),o_=a((t,e,r,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),i_=a((t,e,r,o)=>{let n=r,i=t._zod.def,{minimum:s,maximum:u}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=Ye(i.element,e,{...o,path:[...o.path,"items"]})},"arrayProcessor"),a_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object",n.properties={};let s=i.shape;for(let p in s)n.properties[p]=Ye(s[p],e,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),l=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ye(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},"objectProcessor"),Pp=a((t,e,r,o)=>{let n=t._zod.def,i=n.inclusive===!1,s=n.options.map((u,l)=>Ye(u,e,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=s:r.anyOf=s},"unionProcessor"),s_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.left,e,{...o,path:[...o.path,"allOf",0]}),s=Ye(n.right,e,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),l=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];r.allOf=l},"intersectionProcessor"),c_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",u=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((m,h)=>Ye(m,e,{...o,path:[...o.path,s,h]})),p=i.rest?Ye(i.rest,e,{...o,path:[...o.path,u,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=l,p&&(n.items=p)):e.target==="openapi-3.0"?(n.items={anyOf:l},p&&n.items.anyOf.push(p),n.minItems=l.length,p||(n.maxItems=l.length)):(n.items=l,p&&(n.additionalItems=p));let{minimum:f,maximum:y}=t._zod.bag;typeof f=="number"&&(n.minItems=f),typeof y=="number"&&(n.maxItems=y)},"tupleProcessor"),u_=a((t,e,r,o)=>{let n=r,i=t._zod.def;n.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let f=Ye(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let y of l)n.patternProperties[y.source]=f}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=Ye(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ye(i.valueType,e,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(y=>typeof y=="string"||typeof y=="number");f.length>0&&(n.required=f)}},"recordProcessor"),l_=a((t,e,r,o)=>{let n=t._zod.def,i=Ye(n.innerType,e,o),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},"nullableProcessor"),d_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"nonoptionalProcessor"),p_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},"defaultProcessor"),f_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},"prefaultProcessor"),m_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},"catchProcessor"),h_=a((t,e,r,o)=>{let n=t._zod.def,i=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ye(i,e,o);let s=e.seen.get(t);s.ref=i},"pipeProcessor"),g_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType,r.readOnly=!0},"readonlyProcessor"),y_=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"promiseProcessor"),Sp=a((t,e,r,o)=>{let n=t._zod.def;Ye(n.innerType,e,o);let i=e.seen.get(t);i.ref=n.innerType},"optionalProcessor"),__=a((t,e,r,o)=>{let n=t._zod.innerType;Ye(n,e,o);let i=e.seen.get(t);i.ref=n},"lazyProcessor"),bp={string:zy,number:Uy,boolean:My,bigint:Ly,symbol:jy,null:Fy,undefined:By,void:qy,never:Gy,any:Vy,unknown:Hy,date:Zy,enum:Wy,literal:Ky,nan:Jy,template_literal:Xy,file:Yy,success:Qy,custom:e_,function:t_,transform:r_,map:n_,set:o_,array:i_,object:a_,union:Pp,intersection:s_,tuple:c_,record:u_,nullable:l_,nonoptional:d_,default:p_,prefault:f_,catch:m_,pipe:h_,readonly:g_,promise:y_,optional:Sp,lazy:__};function Bc(t,e){if("_idmap"in t){let o=t,n=mo({...e,processors:bp}),i={};for(let l of o._idmap.entries()){let[p,f]=l;Ye(f,n)}let s={},u={registry:o,uri:e?.uri,defs:i};n.external=u;for(let l of o._idmap.entries()){let[p,f]=l;ho(n,f),s[p]=go(n,f)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let r=mo({...e,processors:bp});return Ye(t,r),ho(r,t),go(r,t)}a(Bc,"toJSONSchema");var Ep=class{static{a(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=mo({processors:bp,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Ye(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ho(this.ctx,e);let o=go(this.ctx,e),{"~standard":n,...i}=o;return i}};var Ux={};var Pt=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");xe.init(t,e),t.def=e,t.type=e.type,t.parse=(r,o)=>Ho(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>Qi(t,r,o),t.parseAsync=async(r,o)=>Zo(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>ta(t,r,o),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.apply=r=>r(t)}),Tp=w("ZodMiniString",(t,e)=>{$n.init(t,e),Pt.init(t,e)});function v(t){return Qs(Tp,t)}a(v,"string");var pa=w("ZodMiniStringFormat",(t,e)=>{Xe.init(t,e),Tp.init(t,e)});var RL=w("ZodMiniURL",(t,e)=>{Is.init(t,e),pa.init(t,e)});function Mx(t){return Xo(RL,t)}a(Mx,"url");var xp=w("ZodMiniNumber",(t,e)=>{na.init(t,e),Pt.init(t,e)});function kt(t){return xc(xp,t)}a(kt,"number");var OL=w("ZodMiniNumberFormat",(t,e)=>{Ns.init(t,e),xp.init(t,e)});function Lx(t){return wc(OL,t)}a(Lx,"int");var v_=w("ZodMiniBoolean",(t,e)=>{Ko.init(t,e),Pt.init(t,e)});function He(t){return Ic(v_,t)}a(He,"boolean");var jx=w("ZodMiniBigInt",(t,e)=>{oa.init(t,e),Pt.init(t,e)});var kL=w("ZodMiniAny",(t,e)=>{$s.init(t,e),Pt.init(t,e)});function qc(){return Oc(kL)}a(qc,"any");var NL=w("ZodMiniUnknown",(t,e)=>{Ds.init(t,e),Pt.init(t,e)});function Ce(){return kc(NL)}a(Ce,"unknown");var $L=w("ZodMiniVoid",(t,e)=>{zs.init(t,e),Pt.init(t,e)});function Fx(t){return Nc($L,t)}a(Fx,"_void");var Bx=w("ZodMiniDate",(t,e)=>{Us.init(t,e),Pt.init(t,e)});var DL=w("ZodMiniArray",(t,e)=>{Ms.init(t,e),Pt.init(t,e)});function Ee(t,e){return new DL({type:"array",element:t,...te(e)})}a(Ee,"array");var zL=w("ZodMiniObject",(t,e)=>{Nd.init(t,e),Pt.init(t,e),ze(t,"shape",()=>e.shape)});function R(t,e){let r={type:"object",shape:t??{},...te(e)};return new zL(r)}a(R,"object");var UL=w("ZodMiniUnion",(t,e)=>{Jo.init(t,e),Pt.init(t,e)});function Ue(t,e){return new UL({type:"union",options:t,...te(e)})}a(Ue,"union");var ML=w("ZodMiniDiscriminatedUnion",(t,e)=>{Ls.init(t,e),Pt.init(t,e)});function yo(t,e,r){return new ML({type:"union",options:e,discriminator:t,...te(r)})}a(yo,"discriminatedUnion");var LL=w("ZodMiniRecord",(t,e)=>{Fs.init(t,e),Pt.init(t,e)});function Re(t,e,r){return new LL({type:"record",keyType:t,valueType:e,...te(r)})}a(Re,"record");var jL=w("ZodMiniEnum",(t,e)=>{Bs.init(t,e),Pt.init(t,e),t.options=Object.values(e.entries)});function Pe(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new jL({type:"enum",entries:r,...te(e)})}a(Pe,"_enum");var FL=w("ZodMiniLiteral",(t,e)=>{qs.init(t,e),Pt.init(t,e)});function ve(t,e){return new FL({type:"literal",values:Array.isArray(t)?t:[t],...te(e)})}a(ve,"literal");var BL=w("ZodMiniTransform",(t,e)=>{Gs.init(t,e),Pt.init(t,e)});function _o(t){return new BL({type:"transform",transform:t})}a(_o,"transform");var qL=w("ZodMiniOptional",(t,e)=>{ia.init(t,e),Pt.init(t,e)});function B(t){return new qL({type:"optional",innerType:t})}a(B,"optional");var GL=w("ZodMiniNullable",(t,e)=>{Vs.init(t,e),Pt.init(t,e)});function Gc(t){return new GL({type:"nullable",innerType:t})}a(Gc,"nullable");var VL=w("ZodMiniPipe",(t,e)=>{Hs.init(t,e),Pt.init(t,e)});function vo(t,e){return new VL({type:"pipe",in:t,out:e})}a(vo,"pipe");var qx=w("ZodMiniCustom",(t,e)=>{Zs.init(t,e),Pt.init(t,e)});function Ap(t,e){return jc(qx,t??(()=>!0),e)}a(Ap,"custom");function b_(t,e={}){return Fc(qx,t,e)}a(b_,"refine");var wp={};Xt(wp,{ZodMiniISODate:()=>S_,ZodMiniISODateTime:()=>P_,ZodMiniISODuration:()=>T_,ZodMiniISOTime:()=>E_,date:()=>ZL,datetime:()=>HL,duration:()=>KL,time:()=>WL});var P_=w("ZodMiniISODateTime",(t,e)=>{Cs.init(t,e),pa.init(t,e)});function HL(t){return Pc(P_,t)}a(HL,"datetime");var S_=w("ZodMiniISODate",(t,e)=>{Rs.init(t,e),pa.init(t,e)});function ZL(t){return Sc(S_,t)}a(ZL,"date");var E_=w("ZodMiniISOTime",(t,e)=>{Os.init(t,e),pa.init(t,e)});function WL(t){return Ec(E_,t)}a(WL,"time");var T_=w("ZodMiniISODuration",(t,e)=>{ks.init(t,e),pa.init(t,e)});function KL(t){return Tc(T_,t)}a(KL,"duration");var Vc={};Xt(Vc,{bigint:()=>QL,boolean:()=>YL,date:()=>ej,number:()=>XL,string:()=>JL});function JL(t){return ec(Tp,t)}a(JL,"string");function XL(t){return Ac(xp,t)}a(XL,"number");function YL(t){return Cc(v_,t)}a(YL,"boolean");function QL(t){return Rc(jx,t)}a(QL,"bigint");function ej(t){return $c(Bx,t)}a(ej,"date");var A_=R({retryOnFailure:R({defaultValue:B(He()),hide:B(He())}),continueOnFailure:R({defaultValue:B(He()),hide:B(He())})}),x_=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h){this.name=e;this.displayName=r;this.description=o;this.props=n;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=l;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=y;this.aiMetadata=m;this.classification=h}static{a(this,"IAction")}},Oe=a(t=>new x_(t.name,t.displayName,t.description,t.props,t.propertyGroups,t.run,t.test??t.run,t.requireAuth??!0,t.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},t.outputSchema,t.audience,t.aiMetadata,t.classification),"createAction");var Ge=R({displayName:v(),description:B(v()),advanced:B(He()),width:B(Pe(["half","full"])),icon:B(v()),placeholder:B(v())}),ke=a((t,e)=>R({type:ve(e),required:He(),defaultValue:B(qc())}),"TPropertyValue");var pr=R({...Ge.shape,...ke(v(),"SHORT_TEXT").shape}),Un=R({...Ge.shape,...ke(v(),"LONG_TEXT").shape});var Vx=R({label:v(),value:Ce(),description:B(v()),icon:B(v())}),Ip=R({disabled:B(He()),placeholder:B(v()),options:Ee(Vx)});var rj=Pe(["cards"]),fr=R({...Ge.shape,options:Ip,display:B(rj),...ke(Ce(),"STATIC_DROPDOWN").shape}),Mn=R({...Ge.shape,options:Ip,...ke(Ee(Ce()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var w_=R({...Ge.shape,...ke(Ce(),"DROPDOWN").shape,refreshers:Ee(v())}),Hc=R({...Ge.shape,...ke(Ee(Ce()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Ee(v())});var Ln=R({...Ge.shape,reveals:B(Ee(v())),...ke(He(),"CHECKBOX").shape});var jn=R({...Ge.shape,display:B(Pe(["stepper"])),min:B(kt()),max:B(kt()),step:B(kt()),...ke(kt(),"NUMBER").shape});var Zc=R({...Ge.shape,streaming:B(He()),...ke(Ce(),"FILE").shape});var Wc=R({...Ge.shape,...ke(v(),"DATE_TIME").shape});var Hx=Re(v(),Ue([pr,Un,fr,Hc,Mn,Ln,jn,Zc,Wc])),Kc=R({...Ge.shape,properties:Hx,...ke(Ee(Ce()),"ARRAY").shape});var Zx=Pe(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Wx=R({preset:B(Zx),after:B(v()),before:B(v())}),I_=R({...Ge.shape,display:B(Pe(["dropdown"])),...ke(Wx,"DATE_RANGE").shape});var Jc=R({...Ge.shape,...ke(Ue([Re(v(),Ce())]),"JSON").shape});var Kx=Ue([pr,fr,Jc,Kc,Mn]),nj=Re(v(),Kx),C_=R({refreshers:Ee(v()),...Ge.shape,...ke(Ce(),"DYNAMIC").shape});var Cp=R({...Ge.shape,...ke(Fx(),"MARKDOWN").shape});var Xc=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Xc||{}),fa=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(fa||{}),ui=(T=>(T.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",T.COMMUNICATION="COMMUNICATION",T.COMMERCE="COMMERCE",T.CORE="CORE",T.UNIVERSAL_AI="UNIVERSAL_AI",T.FLOW_CONTROL="FLOW_CONTROL",T.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",T.ACCOUNTING="ACCOUNTING",T.PRODUCTIVITY="PRODUCTIVITY",T.CONTENT_AND_FILES="CONTENT_AND_FILES",T.DEVELOPER_TOOLS="DEVELOPER_TOOLS",T.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",T.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",T.HUMAN_RESOURCES="HUMAN_RESOURCES",T.PAYMENT_PROCESSING="PAYMENT_PROCESSING",T.MARKETING="MARKETING",T.SALES_AND_CRM="SALES_AND_CRM",T))(ui||{});var Yc=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Yc||{}),R_="both_client_credentials_and_authorization_code";var bo=(n=>(n.POLLING="POLLING",n.WEBHOOK="WEBHOOK",n.APP_WEBHOOK="APP_WEBHOOK",n.MANUAL="MANUAL",n))(bo||{}),Qc=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))(Qc||{}),oj=R({strategy:Pe(Qc),paramName:B(v())}),eu=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(eu||{});var Rp=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Rp||{}),Jx=R({status:B(kt()),body:B(Ce()),headers:B(Re(v(),v()))}),Xx=R({type:ve("DELAY"),resumeDateTime:v(),requestIdToReply:B(v()),handlerId:B(v()),streamStepProgress:B(Pe(Rp))}),Yx=R({type:ve("WEBHOOK"),requestId:v(),requestIdToReply:B(v()),response:Jx,handlerId:B(v()),streamStepProgress:B(Pe(Rp))}),ij=Ue([Xx,Yx]);var aj=R({body:Ce(),rawBody:B(Ce()),headers:Re(v(),v()),queryParams:Re(v(),v())});function ft(t){return t==null}a(ft,"isNil");function tu(t){return t==null?!0:typeof t=="string"||Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}a(tu,"isEmpty");function Op(t,e){if(t==null)throw new Error(`${e} is null or undefined`)}a(Op,"assertNotNullOrUndefined");function k_(t){try{return{data:t(),error:null}}catch(e){return{data:null,error:e}}}a(k_,"tryCatchSync");var N_=xt(require("crypto"),1);var sj=128,Po,ma,cj=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!Po||Po.length<t?(Po=Buffer.allocUnsafe(t*sj),N_.default.randomFillSync(Po),ma=0):ma+t>Po.length&&(N_.default.randomFillSync(Po),ma=0)}catch(e){throw Po=void 0,e}ma+=t},"fillPool"),uj=a(t=>(cj(t|=0),Po.subarray(ma-t,ma)),"random"),lj=a((t,e,r)=>{let o=(2<<31-Math.clz32(t.length-1|1))-1,n=Math.ceil(1.6*o*e/t.length);return(i=e)=>{if(i<=0)return"";let s="";for(;;){let u=r(n),l=n;for(;l--;)if(s+=t[u[l]&o]||"",s.length===i)return s}}},"customRandom"),Qx=a((t,e=21)=>lj(t,e,uj),"customAlphabet");var dj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",eA=21,Z9=v().check(Ut(new RegExp(`^[0-9a-zA-Z]{${eA}}$`))),pj=Qx(dj,eA);var So=vo(_o(t=>t instanceof Date?t.toISOString():t),v()),Or={id:v(),created:So,updated:So},mt=a(t=>B(Gc(t)),"Nullable");function $_(t){return B(Gc(Pe(t)))}a($_,"NullableEnum");var J9=vo(_o(t=>t==="true"||t===!0?!0:t==="false"||t===!1?!1:void 0),B(He())),X9=B(wp.datetime({offset:!0}).check(b_(t=>t.slice(0,4)!=="0000"))),kp=a(t=>vo(_o(e=>Array.isArray(e)?e:e!==void 0?[e]:void 0),B(Ee(t))),"OptionalArrayFromQuery");var eX=Re(v(),Ce());var D_=(f=>(f.DUTCH="nl",f.ENGLISH="en",f.GERMAN="de",f.FRENCH="fr",f.SPANISH="es",f.JAPANESE="ja",f.CHINESE_SIMPLIFIED="zh",f.PORTUGUESE="pt",f.ARABIC="ar",f.CHINESE_TRADITIONAL="zh-TW",f))(D_||{});var Eo=(T=>(T.OPENAI="openai",T.OPENROUTER="openrouter",T.ANTHROPIC="anthropic",T.AZURE="azure",T.GOOGLE="google",T.ACTIVEPIECES="activepieces",T.CLOUDFLARE_GATEWAY="cloudflare-gateway",T.CUSTOM="custom",T.BEDROCK="bedrock",T.VERTEX="vertex",T.MISTRAL="mistral",T.XAI="xai",T.DEEPSEEK="deepseek",T.ZAI="zai",T.QWEN="qwen",T.MINIMAX="minimax",T.MOONSHOT="moonshot",T))(Eo||{});var ue={};Xt(ue,{$brand:()=>ys,$input:()=>Qd,$output:()=>Yd,NEVER:()=>Ll,TimePrecision:()=>tp,ZodAny:()=>iv,ZodArray:()=>uv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Ov,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>xv,ZodDiscriminatedUnion:()=>dv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodError:()=>fj,ZodExactOptional:()=>Sv,ZodFile:()=>bv,ZodFirstPartyTypeKind:()=>qv,ZodFunction:()=>jv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodISODate:()=>Dp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>zp,ZodIntersection:()=>pv,ZodIssueCode:()=>hj,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>Uv,ZodLiteral:()=>vv,ZodMAC:()=>Y_,ZodMap:()=>yv,ZodNaN:()=>Nv,ZodNanoID:()=>qp,ZodNever:()=>sv,ZodNonOptional:()=>lf,ZodNull:()=>nv,ZodNullable:()=>Tv,ZodNumber:()=>va,ZodNumberFormat:()=>di,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>wv,ZodPromise:()=>Lv,ZodReadonly:()=>$v,ZodRealError:()=>tr,ZodRecord:()=>pu,ZodSet:()=>_v,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Rv,ZodSymbol:()=>tv,ZodTemplateLiteral:()=>zv,ZodTransform:()=>Pv,ZodTuple:()=>mv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>rv,ZodUnion:()=>du,ZodUnknown:()=>av,ZodVoid:()=>cv,ZodXID:()=>Zp,ZodXor:()=>lv,_ZodString:()=>jp,_default:()=>Av,_function:()=>sw,any:()=>LA,array:()=>uu,base64:()=>SA,base64url:()=>EA,bigint:()=>$A,boolean:()=>ev,catch:()=>kv,check:()=>cw,cidrv4:()=>bA,cidrv6:()=>PA,clone:()=>Rt,codec:()=>ow,coerce:()=>Gv,config:()=>pt,core:()=>dr,cuid:()=>pA,cuid2:()=>fA,custom:()=>uw,date:()=>FA,decode:()=>V_,decodeAsync:()=>Z_,describe:()=>lw,discriminatedUnion:()=>ZA,e164:()=>TA,email:()=>rA,emoji:()=>lA,encode:()=>G_,encodeAsync:()=>H_,endsWith:()=>ri,enum:()=>sf,exactOptional:()=>Ev,file:()=>ew,flattenError:()=>Wi,float32:()=>RA,float64:()=>OA,formatError:()=>Ki,fromJSONSchema:()=>yw,function:()=>sw,getErrorMap:()=>yj,globalRegistry:()=>Ot,gt:()=>Zr,gte:()=>At,guid:()=>nA,hash:()=>CA,hex:()=>IA,hostname:()=>wA,httpUrl:()=>uA,includes:()=>ei,instanceof:()=>pw,int:()=>Lp,int32:()=>kA,int64:()=>DA,intersection:()=>fv,ipv4:()=>yA,ipv6:()=>vA,iso:()=>ha,json:()=>mw,jwt:()=>xA,keyof:()=>BA,ksuid:()=>gA,lazy:()=>Mv,length:()=>fo,literal:()=>QA,locales:()=>ca,looseObject:()=>VA,looseRecord:()=>KA,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,mac:()=>_A,map:()=>JA,maxLength:()=>po,maxSize:()=>zn,meta:()=>dw,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>Dn,nan:()=>nw,nanoid:()=>dA,nativeEnum:()=>YA,negative:()=>zc,never:()=>of,nonnegative:()=>Mc,nonoptional:()=>Cv,nonpositive:()=>Uc,normalize:()=>oi,null:()=>ov,nullable:()=>iu,nullish:()=>tw,number:()=>Q_,object:()=>qA,optional:()=>ou,overwrite:()=>Rr,parse:()=>j_,parseAsync:()=>F_,partialRecord:()=>WA,pipe:()=>au,positive:()=>Dc,prefault:()=>Iv,preprocess:()=>hw,prettifyError:()=>Gl,promise:()=>aw,property:()=>Lc,readonly:()=>Dv,record:()=>gv,refine:()=>Fv,regex:()=>Ut,regexes:()=>er,registry:()=>Ys,safeDecode:()=>K_,safeDecodeAsync:()=>X_,safeEncode:()=>W_,safeEncodeAsync:()=>J_,safeParse:()=>B_,safeParseAsync:()=>q_,set:()=>XA,setErrorMap:()=>gj,size:()=>lo,slugify:()=>la,startsWith:()=>ti,strictObject:()=>GA,string:()=>Mp,stringFormat:()=>AA,stringbool:()=>fw,success:()=>rw,superRefine:()=>Bv,symbol:()=>UA,templateLiteral:()=>iw,toJSONSchema:()=>Bc,toLowerCase:()=>ai,toUpperCase:()=>si,transform:()=>cf,treeifyError:()=>ql,trim:()=>ii,tuple:()=>hv,uint32:()=>NA,uint64:()=>zA,ulid:()=>mA,undefined:()=>MA,union:()=>af,unknown:()=>li,uppercase:()=>Qo,url:()=>cA,util:()=>ie,uuid:()=>oA,uuidv4:()=>iA,uuidv6:()=>aA,uuidv7:()=>sA,void:()=>jA,xid:()=>hA,xor:()=>HA});var ru={};Xt(ru,{ZodAny:()=>iv,ZodArray:()=>uv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Ov,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>xv,ZodDiscriminatedUnion:()=>dv,ZodE164:()=>tf,ZodEmail:()=>Fp,ZodEmoji:()=>Bp,ZodEnum:()=>ga,ZodExactOptional:()=>Sv,ZodFile:()=>bv,ZodFunction:()=>jv,ZodGUID:()=>nu,ZodIPv4:()=>Kp,ZodIPv6:()=>Jp,ZodIntersection:()=>pv,ZodJWT:()=>rf,ZodKSUID:()=>Wp,ZodLazy:()=>Uv,ZodLiteral:()=>vv,ZodMAC:()=>Y_,ZodMap:()=>yv,ZodNaN:()=>Nv,ZodNanoID:()=>qp,ZodNever:()=>sv,ZodNonOptional:()=>lf,ZodNull:()=>nv,ZodNullable:()=>Tv,ZodNumber:()=>va,ZodNumberFormat:()=>di,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>wv,ZodPromise:()=>Lv,ZodReadonly:()=>$v,ZodRecord:()=>pu,ZodSet:()=>_v,ZodString:()=>ya,ZodStringFormat:()=>nt,ZodSuccess:()=>Rv,ZodSymbol:()=>tv,ZodTemplateLiteral:()=>zv,ZodTransform:()=>Pv,ZodTuple:()=>mv,ZodType:()=>Me,ZodULID:()=>Hp,ZodURL:()=>su,ZodUUID:()=>cn,ZodUndefined:()=>rv,ZodUnion:()=>du,ZodUnknown:()=>av,ZodVoid:()=>cv,ZodXID:()=>Zp,ZodXor:()=>lv,_ZodString:()=>jp,_default:()=>Av,_function:()=>sw,any:()=>LA,array:()=>uu,base64:()=>SA,base64url:()=>EA,bigint:()=>$A,boolean:()=>ev,catch:()=>kv,check:()=>cw,cidrv4:()=>bA,cidrv6:()=>PA,codec:()=>ow,cuid:()=>pA,cuid2:()=>fA,custom:()=>uw,date:()=>FA,describe:()=>lw,discriminatedUnion:()=>ZA,e164:()=>TA,email:()=>rA,emoji:()=>lA,enum:()=>sf,exactOptional:()=>Ev,file:()=>ew,float32:()=>RA,float64:()=>OA,function:()=>sw,guid:()=>nA,hash:()=>CA,hex:()=>IA,hostname:()=>wA,httpUrl:()=>uA,instanceof:()=>pw,int:()=>Lp,int32:()=>kA,int64:()=>DA,intersection:()=>fv,ipv4:()=>yA,ipv6:()=>vA,json:()=>mw,jwt:()=>xA,keyof:()=>BA,ksuid:()=>gA,lazy:()=>Mv,literal:()=>QA,looseObject:()=>VA,looseRecord:()=>KA,mac:()=>_A,map:()=>JA,meta:()=>dw,nan:()=>nw,nanoid:()=>dA,nativeEnum:()=>YA,never:()=>of,nonoptional:()=>Cv,null:()=>ov,nullable:()=>iu,nullish:()=>tw,number:()=>Q_,object:()=>qA,optional:()=>ou,partialRecord:()=>WA,pipe:()=>au,prefault:()=>Iv,preprocess:()=>hw,promise:()=>aw,readonly:()=>Dv,record:()=>gv,refine:()=>Fv,set:()=>XA,strictObject:()=>GA,string:()=>Mp,stringFormat:()=>AA,stringbool:()=>fw,success:()=>rw,superRefine:()=>Bv,symbol:()=>UA,templateLiteral:()=>iw,transform:()=>cf,tuple:()=>hv,uint32:()=>NA,uint64:()=>zA,ulid:()=>mA,undefined:()=>MA,union:()=>af,unknown:()=>li,url:()=>cA,uuid:()=>oA,uuidv4:()=>iA,uuidv6:()=>aA,uuidv7:()=>sA,void:()=>jA,xid:()=>hA,xor:()=>HA});var Np={};Xt(Np,{endsWith:()=>ri,gt:()=>Zr,gte:()=>At,includes:()=>ei,length:()=>fo,lowercase:()=>Yo,lt:()=>Hr,lte:()=>Vt,maxLength:()=>po,maxSize:()=>zn,mime:()=>ni,minLength:()=>vt,minSize:()=>Wr,multipleOf:()=>Dn,negative:()=>zc,nonnegative:()=>Mc,nonpositive:()=>Uc,normalize:()=>oi,overwrite:()=>Rr,positive:()=>Dc,property:()=>Lc,regex:()=>Ut,size:()=>lo,slugify:()=>la,startsWith:()=>ti,toLowerCase:()=>ai,toUpperCase:()=>si,trim:()=>ii,uppercase:()=>Qo});var ha={};Xt(ha,{ZodISODate:()=>Dp,ZodISODateTime:()=>$p,ZodISODuration:()=>Up,ZodISOTime:()=>zp,date:()=>U_,datetime:()=>z_,duration:()=>L_,time:()=>M_});var $p=w("ZodISODateTime",(t,e)=>{Cs.init(t,e),nt.init(t,e)});function z_(t){return Pc($p,t)}a(z_,"datetime");var Dp=w("ZodISODate",(t,e)=>{Rs.init(t,e),nt.init(t,e)});function U_(t){return Sc(Dp,t)}a(U_,"date");var zp=w("ZodISOTime",(t,e)=>{Os.init(t,e),nt.init(t,e)});function M_(t){return Ec(zp,t)}a(M_,"time");var Up=w("ZodISODuration",(t,e)=>{ks.init(t,e),nt.init(t,e)});function L_(t){return Tc(Up,t)}a(L_,"duration");var tA=a((t,e)=>{Ts.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:a(r=>Ki(t,r),"value")},flatten:{value:a(r=>Wi(t,r),"value")},addIssue:{value:a(r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Vi,2)},"value")},addIssues:{value:a(r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Vi,2)},"value")},isEmpty:{get(){return t.issues.length===0}}})},"initializer"),fj=w("ZodError",tA),tr=w("ZodError",tA,{Parent:Error});var j_=Ji(tr),F_=Xi(tr),B_=Yi(tr),q_=ea(tr),G_=Vl(tr),V_=Hl(tr),H_=Zl(tr),Z_=Wl(tr),W_=Kl(tr),K_=Jl(tr),J_=Xl(tr),X_=Yl(tr);var Me=w("ZodType",(t,e)=>(xe.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:da(t,"input"),output:da(t,"output")}}),t.toJSONSchema=Dy(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(ie.mergeDefs(e,{checks:[...e.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),t.with=t.check,t.clone=(r,o)=>Rt(t,r,o),t.brand=()=>t,t.register=((r,o)=>(r.add(t,o),t)),t.parse=(r,o)=>j_(t,r,o,{callee:t.parse}),t.safeParse=(r,o)=>B_(t,r,o),t.parseAsync=async(r,o)=>F_(t,r,o,{callee:t.parseAsync}),t.safeParseAsync=async(r,o)=>q_(t,r,o),t.spa=t.safeParseAsync,t.encode=(r,o)=>G_(t,r,o),t.decode=(r,o)=>V_(t,r,o),t.encodeAsync=async(r,o)=>H_(t,r,o),t.decodeAsync=async(r,o)=>Z_(t,r,o),t.safeEncode=(r,o)=>W_(t,r,o),t.safeDecode=(r,o)=>K_(t,r,o),t.safeEncodeAsync=async(r,o)=>J_(t,r,o),t.safeDecodeAsync=async(r,o)=>X_(t,r,o),t.refine=(r,o)=>t.check(Fv(r,o)),t.superRefine=r=>t.check(Bv(r)),t.overwrite=r=>t.check(Rr(r)),t.optional=()=>ou(t),t.exactOptional=()=>Ev(t),t.nullable=()=>iu(t),t.nullish=()=>ou(iu(t)),t.nonoptional=r=>Cv(t,r),t.array=()=>uu(t),t.or=r=>af([t,r]),t.and=r=>fv(t,r),t.transform=r=>au(t,cf(r)),t.default=r=>Av(t,r),t.prefault=r=>Iv(t,r),t.catch=r=>kv(t,r),t.pipe=r=>au(t,r),t.readonly=()=>Dv(t),t.describe=r=>{let o=t.clone();return Ot.add(o,{description:r}),o},Object.defineProperty(t,"description",{get(){return Ot.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return Ot.get(t);let o=t.clone();return Ot.add(o,r[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),jp=w("_ZodString",(t,e)=>{$n.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>zy(t,o,n,i);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...o)=>t.check(Ut(...o)),t.includes=(...o)=>t.check(ei(...o)),t.startsWith=(...o)=>t.check(ti(...o)),t.endsWith=(...o)=>t.check(ri(...o)),t.min=(...o)=>t.check(vt(...o)),t.max=(...o)=>t.check(po(...o)),t.length=(...o)=>t.check(fo(...o)),t.nonempty=(...o)=>t.check(vt(1,...o)),t.lowercase=o=>t.check(Yo(o)),t.uppercase=o=>t.check(Qo(o)),t.trim=()=>t.check(ii()),t.normalize=(...o)=>t.check(oi(...o)),t.toLowerCase=()=>t.check(ai()),t.toUpperCase=()=>t.check(si()),t.slugify=()=>t.check(la())}),ya=w("ZodString",(t,e)=>{$n.init(t,e),jp.init(t,e),t.email=r=>t.check(tc(Fp,r)),t.url=r=>t.check(Xo(su,r)),t.jwt=r=>t.check(bc(rf,r)),t.emoji=r=>t.check(ac(Bp,r)),t.guid=r=>t.check(ua(nu,r)),t.uuid=r=>t.check(rc(cn,r)),t.uuidv4=r=>t.check(nc(cn,r)),t.uuidv6=r=>t.check(oc(cn,r)),t.uuidv7=r=>t.check(ic(cn,r)),t.nanoid=r=>t.check(sc(qp,r)),t.guid=r=>t.check(ua(nu,r)),t.cuid=r=>t.check(cc(Gp,r)),t.cuid2=r=>t.check(uc(Vp,r)),t.ulid=r=>t.check(lc(Hp,r)),t.base64=r=>t.check(yc(Qp,r)),t.base64url=r=>t.check(_c(ef,r)),t.xid=r=>t.check(dc(Zp,r)),t.ksuid=r=>t.check(pc(Wp,r)),t.ipv4=r=>t.check(fc(Kp,r)),t.ipv6=r=>t.check(mc(Jp,r)),t.cidrv4=r=>t.check(hc(Xp,r)),t.cidrv6=r=>t.check(gc(Yp,r)),t.e164=r=>t.check(vc(tf,r)),t.datetime=r=>t.check(z_(r)),t.date=r=>t.check(U_(r)),t.time=r=>t.check(M_(r)),t.duration=r=>t.check(L_(r))});function Mp(t){return Qs(ya,t)}a(Mp,"string");var nt=w("ZodStringFormat",(t,e)=>{Xe.init(t,e),jp.init(t,e)}),Fp=w("ZodEmail",(t,e)=>{ld.init(t,e),nt.init(t,e)});function rA(t){return tc(Fp,t)}a(rA,"email");var nu=w("ZodGUID",(t,e)=>{cd.init(t,e),nt.init(t,e)});function nA(t){return ua(nu,t)}a(nA,"guid");var cn=w("ZodUUID",(t,e)=>{ud.init(t,e),nt.init(t,e)});function oA(t){return rc(cn,t)}a(oA,"uuid");function iA(t){return nc(cn,t)}a(iA,"uuidv4");function aA(t){return oc(cn,t)}a(aA,"uuidv6");function sA(t){return ic(cn,t)}a(sA,"uuidv7");var su=w("ZodURL",(t,e)=>{Is.init(t,e),nt.init(t,e)});function cA(t){return Xo(su,t)}a(cA,"url");function uA(t){return Xo(su,{protocol:/^https?$/,hostname:er.domain,...ie.normalizeParams(t)})}a(uA,"httpUrl");var Bp=w("ZodEmoji",(t,e)=>{dd.init(t,e),nt.init(t,e)});function lA(t){return ac(Bp,t)}a(lA,"emoji");var qp=w("ZodNanoID",(t,e)=>{pd.init(t,e),nt.init(t,e)});function dA(t){return sc(qp,t)}a(dA,"nanoid");var Gp=w("ZodCUID",(t,e)=>{fd.init(t,e),nt.init(t,e)});function pA(t){return cc(Gp,t)}a(pA,"cuid");var Vp=w("ZodCUID2",(t,e)=>{md.init(t,e),nt.init(t,e)});function fA(t){return uc(Vp,t)}a(fA,"cuid2");var Hp=w("ZodULID",(t,e)=>{hd.init(t,e),nt.init(t,e)});function mA(t){return lc(Hp,t)}a(mA,"ulid");var Zp=w("ZodXID",(t,e)=>{gd.init(t,e),nt.init(t,e)});function hA(t){return dc(Zp,t)}a(hA,"xid");var Wp=w("ZodKSUID",(t,e)=>{yd.init(t,e),nt.init(t,e)});function gA(t){return pc(Wp,t)}a(gA,"ksuid");var Kp=w("ZodIPv4",(t,e)=>{_d.init(t,e),nt.init(t,e)});function yA(t){return fc(Kp,t)}a(yA,"ipv4");var Y_=w("ZodMAC",(t,e)=>{bd.init(t,e),nt.init(t,e)});function _A(t){return ep(Y_,t)}a(_A,"mac");var Jp=w("ZodIPv6",(t,e)=>{vd.init(t,e),nt.init(t,e)});function vA(t){return mc(Jp,t)}a(vA,"ipv6");var Xp=w("ZodCIDRv4",(t,e)=>{Pd.init(t,e),nt.init(t,e)});function bA(t){return hc(Xp,t)}a(bA,"cidrv4");var Yp=w("ZodCIDRv6",(t,e)=>{Sd.init(t,e),nt.init(t,e)});function PA(t){return gc(Yp,t)}a(PA,"cidrv6");var Qp=w("ZodBase64",(t,e)=>{Ed.init(t,e),nt.init(t,e)});function SA(t){return yc(Qp,t)}a(SA,"base64");var ef=w("ZodBase64URL",(t,e)=>{Td.init(t,e),nt.init(t,e)});function EA(t){return _c(ef,t)}a(EA,"base64url");var tf=w("ZodE164",(t,e)=>{xd.init(t,e),nt.init(t,e)});function TA(t){return vc(tf,t)}a(TA,"e164");var rf=w("ZodJWT",(t,e)=>{Ad.init(t,e),nt.init(t,e)});function xA(t){return bc(rf,t)}a(xA,"jwt");var _a=w("ZodCustomStringFormat",(t,e)=>{wd.init(t,e),nt.init(t,e)});function AA(t,e,r={}){return ci(_a,t,e,r)}a(AA,"stringFormat");function wA(t){return ci(_a,"hostname",er.hostname,t)}a(wA,"hostname");function IA(t){return ci(_a,"hex",er.hex,t)}a(IA,"hex");function CA(t,e){let r=e?.enc??"hex",o=`${t}_${r}`,n=er[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ci(_a,o,n,e)}a(CA,"hash");var va=w("ZodNumber",(t,e)=>{na.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Uy(t,o,n,i),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.int=o=>t.check(Lp(o)),t.safe=o=>t.check(Lp(o)),t.positive=o=>t.check(Zr(0,o)),t.nonnegative=o=>t.check(At(0,o)),t.negative=o=>t.check(Hr(0,o)),t.nonpositive=o=>t.check(Vt(0,o)),t.multipleOf=(o,n)=>t.check(Dn(o,n)),t.step=(o,n)=>t.check(Dn(o,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function Q_(t){return xc(va,t)}a(Q_,"number");var di=w("ZodNumberFormat",(t,e)=>{Ns.init(t,e),va.init(t,e)});function Lp(t){return wc(di,t)}a(Lp,"int");function RA(t){return rp(di,t)}a(RA,"float32");function OA(t){return np(di,t)}a(OA,"float64");function kA(t){return op(di,t)}a(kA,"int32");function NA(t){return ip(di,t)}a(NA,"uint32");var ba=w("ZodBoolean",(t,e)=>{Ko.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>My(t,r,o,n)});function ev(t){return Ic(ba,t)}a(ev,"boolean");var Pa=w("ZodBigInt",(t,e)=>{oa.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Ly(t,o,n,i),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.gt=(o,n)=>t.check(Zr(o,n)),t.gte=(o,n)=>t.check(At(o,n)),t.min=(o,n)=>t.check(At(o,n)),t.lt=(o,n)=>t.check(Hr(o,n)),t.lte=(o,n)=>t.check(Vt(o,n)),t.max=(o,n)=>t.check(Vt(o,n)),t.positive=o=>t.check(Zr(BigInt(0),o)),t.negative=o=>t.check(Hr(BigInt(0),o)),t.nonpositive=o=>t.check(Vt(BigInt(0),o)),t.nonnegative=o=>t.check(At(BigInt(0),o)),t.multipleOf=(o,n)=>t.check(Dn(o,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function $A(t){return ap(Pa,t)}a($A,"bigint");var nf=w("ZodBigIntFormat",(t,e)=>{Id.init(t,e),Pa.init(t,e)});function DA(t){return sp(nf,t)}a(DA,"int64");function zA(t){return cp(nf,t)}a(zA,"uint64");var tv=w("ZodSymbol",(t,e)=>{Cd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>jy(t,r,o,n)});function UA(t){return up(tv,t)}a(UA,"symbol");var rv=w("ZodUndefined",(t,e)=>{Rd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>By(t,r,o,n)});function MA(t){return lp(rv,t)}a(MA,"_undefined");var nv=w("ZodNull",(t,e)=>{Od.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Fy(t,r,o,n)});function ov(t){return dp(nv,t)}a(ov,"_null");var iv=w("ZodAny",(t,e)=>{$s.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Vy(t,r,o,n)});function LA(){return Oc(iv)}a(LA,"any");var av=w("ZodUnknown",(t,e)=>{Ds.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Hy(t,r,o,n)});function li(){return kc(av)}a(li,"unknown");var sv=w("ZodNever",(t,e)=>{kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Gy(t,r,o,n)});function of(t){return pp(sv,t)}a(of,"never");var cv=w("ZodVoid",(t,e)=>{zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>qy(t,r,o,n)});function jA(t){return Nc(cv,t)}a(jA,"_void");var cu=w("ZodDate",(t,e)=>{Us.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Zy(t,o,n,i),t.min=(o,n)=>t.check(At(o,n)),t.max=(o,n)=>t.check(Vt(o,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function FA(t){return fp(cu,t)}a(FA,"date");var uv=w("ZodArray",(t,e)=>{Ms.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>i_(t,r,o,n),t.element=e.element,t.min=(r,o)=>t.check(vt(r,o)),t.nonempty=r=>t.check(vt(1,r)),t.max=(r,o)=>t.check(po(r,o)),t.length=(r,o)=>t.check(fo(r,o)),t.unwrap=()=>t.element});function uu(t,e){return $y(uv,t,e)}a(uu,"array");function BA(t){let e=t._zod.def.shape;return sf(Object.keys(e))}a(BA,"keyof");var lu=w("ZodObject",(t,e)=>{Fg.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>a_(t,r,o,n),ie.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>sf(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:li()}),t.loose=()=>t.clone({...t._zod.def,catchall:li()}),t.strict=()=>t.clone({...t._zod.def,catchall:of()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ie.extend(t,r),t.safeExtend=r=>ie.safeExtend(t,r),t.merge=r=>ie.merge(t,r),t.pick=r=>ie.pick(t,r),t.omit=r=>ie.omit(t,r),t.partial=(...r)=>ie.partial(uf,t,r[0]),t.required=(...r)=>ie.required(lf,t,r[0])});function qA(t,e){let r={type:"object",shape:t??{},...ie.normalizeParams(e)};return new lu(r)}a(qA,"object");function GA(t,e){return new lu({type:"object",shape:t,catchall:of(),...ie.normalizeParams(e)})}a(GA,"strictObject");function VA(t,e){return new lu({type:"object",shape:t,catchall:li(),...ie.normalizeParams(e)})}a(VA,"looseObject");var du=w("ZodUnion",(t,e)=>{Jo.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.options=e.options});function af(t,e){return new du({type:"union",options:t,...ie.normalizeParams(e)})}a(af,"union");var lv=w("ZodXor",(t,e)=>{du.init(t,e),$d.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Pp(t,r,o,n),t.options=e.options});function HA(t,e){return new lv({type:"union",options:t,inclusive:!1,...ie.normalizeParams(e)})}a(HA,"xor");var dv=w("ZodDiscriminatedUnion",(t,e)=>{du.init(t,e),Ls.init(t,e)});function ZA(t,e,r){return new dv({type:"union",options:e,discriminator:t,...ie.normalizeParams(r)})}a(ZA,"discriminatedUnion");var pv=w("ZodIntersection",(t,e)=>{Dd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>s_(t,r,o,n)});function fv(t,e){return new pv({type:"intersection",left:t,right:e})}a(fv,"intersection");var mv=w("ZodTuple",(t,e)=>{js.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>c_(t,r,o,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function hv(t,e,r){let o=e instanceof xe,n=o?r:e,i=o?e:null;return new mv({type:"tuple",items:t,rest:i,...ie.normalizeParams(n)})}a(hv,"tuple");var pu=w("ZodRecord",(t,e)=>{Fs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>u_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType});function gv(t,e,r){return new pu({type:"record",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(gv,"record");function WA(t,e,r){let o=Rt(t);return o._zod.values=void 0,new pu({type:"record",keyType:o,valueType:e,...ie.normalizeParams(r)})}a(WA,"partialRecord");function KA(t,e,r){return new pu({type:"record",keyType:t,valueType:e,mode:"loose",...ie.normalizeParams(r)})}a(KA,"looseRecord");var yv=w("ZodMap",(t,e)=>{zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>n_(t,r,o,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(zn(...r)),t.size=(...r)=>t.check(lo(...r))});function JA(t,e,r){return new yv({type:"map",keyType:t,valueType:e,...ie.normalizeParams(r)})}a(JA,"map");var _v=w("ZodSet",(t,e)=>{Ud.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>o_(t,r,o,n),t.min=(...r)=>t.check(Wr(...r)),t.nonempty=r=>t.check(Wr(1,r)),t.max=(...r)=>t.check(zn(...r)),t.size=(...r)=>t.check(lo(...r))});function XA(t,e){return new _v({type:"set",valueType:t,...ie.normalizeParams(e)})}a(XA,"set");var ga=w("ZodEnum",(t,e)=>{Bs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(o,n,i)=>Wy(t,o,n,i),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})},t.exclude=(o,n)=>{let i={...e.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ga({...e,checks:[],...ie.normalizeParams(n),entries:i})}});function sf(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new ga({type:"enum",entries:r,...ie.normalizeParams(e)})}a(sf,"_enum");function YA(t,e){return new ga({type:"enum",entries:t,...ie.normalizeParams(e)})}a(YA,"nativeEnum");var vv=w("ZodLiteral",(t,e)=>{qs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Ky(t,r,o,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function QA(t,e){return new vv({type:"literal",values:Array.isArray(t)?t:[t],...ie.normalizeParams(e)})}a(QA,"literal");var bv=w("ZodFile",(t,e)=>{Md.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Yy(t,r,o,n),t.min=(r,o)=>t.check(Wr(r,o)),t.max=(r,o)=>t.check(zn(r,o)),t.mime=(r,o)=>t.check(ni(Array.isArray(r)?r:[r],o))});function ew(t){return hp(bv,t)}a(ew,"file");var Pv=w("ZodTransform",(t,e)=>{Gs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>r_(t,r,o,n),t._zod.parse=(r,o)=>{if(o.direction==="backward")throw new io(t.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ie.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),r.issues.push(ie.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function cf(t){return new Pv({type:"transform",transform:t})}a(cf,"transform");var uf=w("ZodOptional",(t,e)=>{ia.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Sp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function ou(t){return new uf({type:"optional",innerType:t})}a(ou,"optional");var Sv=w("ZodExactOptional",(t,e)=>{Ld.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Sp(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Ev(t){return new Sv({type:"optional",innerType:t})}a(Ev,"exactOptional");var Tv=w("ZodNullable",(t,e)=>{Vs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>l_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function iu(t){return new Tv({type:"nullable",innerType:t})}a(iu,"nullable");function tw(t){return ou(iu(t))}a(tw,"nullish");var xv=w("ZodDefault",(t,e)=>{jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>p_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Av(t,e){return new xv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Av,"_default");var wv=w("ZodPrefault",(t,e)=>{Fd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>f_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Iv(t,e){return new wv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(Iv,"prefault");var lf=w("ZodNonOptional",(t,e)=>{Bd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>d_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Cv(t,e){return new lf({type:"nonoptional",innerType:t,...ie.normalizeParams(e)})}a(Cv,"nonoptional");var Rv=w("ZodSuccess",(t,e)=>{qd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Qy(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function rw(t){return new Rv({type:"success",innerType:t})}a(rw,"success");var Ov=w("ZodCatch",(t,e)=>{Gd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>m_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function kv(t,e){return new Ov({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}a(kv,"_catch");var Nv=w("ZodNaN",(t,e)=>{Vd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Jy(t,r,o,n)});function nw(t){return mp(Nv,t)}a(nw,"nan");var df=w("ZodPipe",(t,e)=>{Hs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>h_(t,r,o,n),t.in=e.in,t.out=e.out});function au(t,e){return new df({type:"pipe",in:t,out:e})}a(au,"pipe");var pf=w("ZodCodec",(t,e)=>{df.init(t,e),aa.init(t,e)});function ow(t,e,r){return new pf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}a(ow,"codec");var $v=w("ZodReadonly",(t,e)=>{Hd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>g_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Dv(t){return new $v({type:"readonly",innerType:t})}a(Dv,"readonly");var zv=w("ZodTemplateLiteral",(t,e)=>{Zd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>Xy(t,r,o,n)});function iw(t,e){return new zv({type:"template_literal",parts:t,...ie.normalizeParams(e)})}a(iw,"templateLiteral");var Uv=w("ZodLazy",(t,e)=>{Jd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>__(t,r,o,n),t.unwrap=()=>t._zod.def.getter()});function Mv(t){return new Uv({type:"lazy",getter:t})}a(Mv,"lazy");var Lv=w("ZodPromise",(t,e)=>{Kd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>y_(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function aw(t){return new Lv({type:"promise",innerType:t})}a(aw,"promise");var jv=w("ZodFunction",(t,e)=>{Wd.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>t_(t,r,o,n)});function sw(t){return new jv({type:"function",input:Array.isArray(t?.input)?hv(t?.input):t?.input??uu(li()),output:t?.output??li()})}a(sw,"_function");var fu=w("ZodCustom",(t,e)=>{Zs.init(t,e),Me.init(t,e),t._zod.processJSONSchema=(r,o,n)=>e_(t,r,o,n)});function cw(t){let e=new rt({check:"custom"});return e._zod.check=t,e}a(cw,"check");function uw(t,e){return jc(fu,t??(()=>!0),e)}a(uw,"custom");function Fv(t,e={}){return Fc(fu,t,e)}a(Fv,"refine");function Bv(t){return gp(t)}a(Bv,"superRefine");var lw=yp,dw=_p;function pw(t,e={}){let r=new fu({type:"custom",check:"custom",fn:a(o=>o instanceof t,"fn"),abort:!0,...ie.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}a(pw,"_instanceof");var fw=a((...t)=>vp({Codec:pf,Boolean:ba,String:ya},...t),"stringbool");function mw(t){let e=Mv(()=>af([Mp(t),Q_(),ev(),ov(),uu(e),gv(Mp(),e)]));return e}a(mw,"json");function hw(t,e){return au(cf(t),e)}a(hw,"preprocess");var hj={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function gj(t){pt({customError:t})}a(gj,"setErrorMap");function yj(){return pt().customError}a(yj,"getErrorMap");var qv;qv||(qv={});var pe={...ru,...Np,iso:ha},_j=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function vj(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}a(vj,"detectVersion");function bj(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}a(bj,"resolveRef");function gw(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return pe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return pe.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let i=bj(n,e),s=Ft(i,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return pe.null();if(n.length===0)return pe.never();if(n.length===1)return pe.literal(n[0]);if(n.every(s=>typeof s=="string"))return pe.enum(n);let i=n.map(s=>pe.literal(s));return i.length<2?i[0]:pe.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return pe.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(i=>{let s={...t,type:i};return gw(s,e)});return n.length===0?pe.never():n.length===1?n[0]:pe.union(n)}if(!r)return pe.any();let o;switch(r){case"string":{let n=pe.string();if(t.format){let i=t.format;i==="email"?n=n.check(pe.email()):i==="uri"||i==="uri-reference"?n=n.check(pe.url()):i==="uuid"||i==="guid"?n=n.check(pe.uuid()):i==="date-time"?n=n.check(pe.iso.datetime()):i==="date"?n=n.check(pe.iso.date()):i==="time"?n=n.check(pe.iso.time()):i==="duration"?n=n.check(pe.iso.duration()):i==="ipv4"?n=n.check(pe.ipv4()):i==="ipv6"?n=n.check(pe.ipv6()):i==="mac"?n=n.check(pe.mac()):i==="cidr"?n=n.check(pe.cidrv4()):i==="cidr-v6"?n=n.check(pe.cidrv6()):i==="base64"?n=n.check(pe.base64()):i==="base64url"?n=n.check(pe.base64url()):i==="e164"?n=n.check(pe.e164()):i==="jwt"?n=n.check(pe.jwt()):i==="emoji"?n=n.check(pe.emoji()):i==="nanoid"?n=n.check(pe.nanoid()):i==="cuid"?n=n.check(pe.cuid()):i==="cuid2"?n=n.check(pe.cuid2()):i==="ulid"?n=n.check(pe.ulid()):i==="xid"?n=n.check(pe.xid()):i==="ksuid"&&(n=n.check(pe.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?pe.number().int():pe.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),o=n;break}case"boolean":{o=pe.boolean();break}case"null":{o=pe.null();break}case"object":{let n={},i=t.properties||{},s=new Set(t.required||[]);for(let[l,p]of Object.entries(i)){let f=Ft(p,e);n[l]=s.has(l)?f:f.optional()}if(t.propertyNames){let l=Ft(t.propertyNames,e),p=t.additionalProperties&&typeof t.additionalProperties=="object"?Ft(t.additionalProperties,e):pe.any();if(Object.keys(n).length===0){o=pe.record(l,p);break}let f=pe.object(n).passthrough(),y=pe.looseRecord(l,p);o=pe.intersection(f,y);break}if(t.patternProperties){let l=t.patternProperties,p=Object.keys(l),f=[];for(let m of p){let h=Ft(l[m],e),_=pe.string().regex(new RegExp(m));f.push(pe.looseRecord(_,h))}let y=[];if(Object.keys(n).length>0&&y.push(pe.object(n).passthrough()),y.push(...f),y.length===0)o=pe.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=pe.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=pe.intersection(m,y[h]);o=m}break}let u=pe.object(n);t.additionalProperties===!1?o=u.strict():typeof t.additionalProperties=="object"?o=u.catchall(Ft(t.additionalProperties,e)):o=u.passthrough();break}case"array":{let n=t.prefixItems,i=t.items;if(n&&Array.isArray(n)){let s=n.map(l=>Ft(l,e)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ft(i,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>Ft(l,e)),u=t.additionalItems&&typeof t.additionalItems=="object"?Ft(t.additionalItems,e):void 0;u?o=pe.tuple(s).rest(u):o=pe.tuple(s),typeof t.minItems=="number"&&(o=o.check(pe.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(pe.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ft(i,e),u=pe.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}a(gw,"convertBaseSchema");function Ft(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=gw(t,e),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let u=t.anyOf.map(p=>Ft(p,e)),l=pe.union(u);r=o?pe.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ft(p,e)),l=pe.xor(u);r=o?pe.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:pe.any();else{let u=o?r:Ft(t.allOf[0],e),l=o?0:1;for(let p=l;p<t.allOf.length;p++)u=pe.intersection(u,Ft(t.allOf[p],e));r=u}t.nullable===!0&&e.version==="openapi-3.0"&&(r=pe.nullable(r)),t.readOnly===!0&&(r=pe.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in t&&(n[u]=t[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in t&&(n[u]=t[u]);for(let u of Object.keys(t))_j.has(u)||(n[u]=t[u]);return Object.keys(n).length>0&&e.registry.add(r,n),r}a(Ft,"convertSchema");function yw(t,e){if(typeof t=="boolean")return t?pe.any():pe.never();let r=vj(t,e?.defaultTarget),o=t.$defs||t.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??Ot};return Ft(t,n)}a(yw,"fromJSONSchema");var Gv={};Xt(Gv,{bigint:()=>Tj,boolean:()=>Ej,date:()=>xj,number:()=>Sj,string:()=>Pj});function Pj(t){return ec(ya,t)}a(Pj,"string");function Sj(t){return Ac(va,t)}a(Sj,"number");function Ej(t){return Cc(ba,t)}a(Ej,"boolean");function Tj(t){return Rc(Pa,t)}a(Tj,"bigint");function xj(t){return $c(cu,t)}a(xj,"date");pt(Ws());var Vv={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue",invalidDomain:"invalidDomain",duplicateDomain:"duplicateDomain"};var _w=(r=>(r.IMAGE="image",r.TEXT="text",r))(_w||{}),Zt=ue.object({apiKey:ue.string()}),vw=ue.object({serviceAccountJson:ue.string().min(1)}),bw=Zt,Pw=Zt.extend({apiKeyHash:ue.string()}),Sw=Zt,Ew=Zt,Tw=Zt,xw=Zt,Aw=Zt,ww=Zt,Iw=ue.object({accessKeyId:ue.string().min(1),secretAccessKey:ue.string().min(1),sessionToken:ue.string().optional()}),Cw=Zt,Rw=ue.object({}),Ow=ue.object({}),Hv=ue.object({modelId:ue.string(),modelName:ue.string(),modelType:ue.enum(_w)}),kw=ue.object({apiKeyHeader:ue.string(),baseUrl:ue.string(),models:ue.array(Hv),defaultHeaders:ue.record(ue.string(),ue.string()).optional(),apiStyle:ue.enum(["chat","responses"]).optional()}),Nw=ue.object({accountId:ue.string(),gatewayId:ue.string(),models:ue.array(Hv),vertexProject:ue.string().optional(),vertexRegion:ue.string().optional()}),$w=ue.object({resourceName:ue.string(),apiVersion:ue.preprocess(t=>typeof t=="string"&&t.trim().length===0?void 0:t,ue.string().optional())}),Dw=ue.object({}),zw=ue.object({}),Uw=ue.object({}),Mw=ue.object({region:ue.string().min(1)}),Lw=ue.object({project:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,Vv.invalidGcpResourceId),region:ue.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,Vv.invalidGcpResourceId),models:ue.array(Hv)}),jw=ue.object({}),pi=ue.object({}),VX=ue.union([bw,Tw,xw,Aw,ww,Ew,Sw,Pw,Iw,vw,Cw]),HX=ue.union([kw,Nw,$w,Lw,Mw,Rw,Dw,zw,Uw,Ow,jw,pi]),ZX=ue.discriminatedUnion("provider",[ue.object({provider:ue.literal("openai"),config:zw.partial(),auth:Aw.partial()}),ue.object({provider:ue.literal("openrouter"),config:Uw.partial(),auth:ww.partial()}),ue.object({provider:ue.literal("anthropic"),config:Rw.partial(),auth:bw.partial()}),ue.object({provider:ue.literal("azure"),config:$w.partial(),auth:Tw.partial()}),ue.object({provider:ue.literal("google"),config:Dw.partial(),auth:xw.partial()}),ue.object({provider:ue.literal("cloudflare-gateway"),config:Nw.partial(),auth:Ew.partial()}),ue.object({provider:ue.literal("custom"),config:kw.partial(),auth:Sw.partial()}),ue.object({provider:ue.literal("activepieces"),config:Ow.partial(),auth:Pw.partial()}),ue.object({provider:ue.literal("bedrock"),config:Mw.partial(),auth:Iw.partial()}),ue.object({provider:ue.literal("vertex"),config:Lw.partial(),auth:vw.partial()}),ue.object({provider:ue.literal("mistral"),config:jw.partial(),auth:Cw.partial()}),ue.object({provider:ue.literal("xai"),config:pi.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("deepseek"),config:pi.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("zai"),config:pi.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("qwen"),config:pi.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("minimax"),config:pi.partial(),auth:Zt.partial()}),ue.object({provider:ue.literal("moonshot"),config:pi.partial(),auth:Zt.partial()})]);var nY=v().check(Ut(/^#[0-9A-Fa-f]{6}$/));var iY=R({filename:v(),data:Ce(),type:ve("file"),mimetype:B(v())});var Aj=xt(Bw());var pY=R({...Or,name:v(),permissions:Ee(v()),platformId:mt(v()),type:v(),userCount:B(kt())});var SY=ue.enum(["active","out_of_credits","rejected","unreachable"]);var qw=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(qw||{}),Zv=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Zv||{}),Wv=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Wv||{});var Kv=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Kv||{});var Jv=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Jv||{});var wj=R({mode:Pe(qw),value:Ce()}),Ij=R({auth:B(v()),fields:Re(v(),wj)}),Cj=R({pieceName:v(),pieceVersion:v(),actionName:v(),predefinedInput:B(Ij)}),Rj=R({type:ve("PIECE"),toolName:v().check(vt(1)),pieceMetadata:Cj}),Oj=R({type:ve("none")}),kj=R({type:ve("access_token"),accessToken:v()}),Nj=R({type:ve("api_key"),apiKey:v(),apiKeyHeader:v()}),$j=R({type:ve("headers"),headers:Re(v(),v())}),Dj=yo("type",[Oj,kj,Nj,$j]),Gw=R({type:ve("FLOW"),toolName:v().check(vt(1)),externalFlowId:v(),flowDisplayName:B(v())}),Vw=R({type:ve("MCP"),toolName:v().check(vt(1)),serverUrl:Mx(),protocol:Pe(Wv),auth:Dj}),Hw=R({type:ve("KNOWLEDGE_BASE"),toolName:v().check(vt(1)),sourceType:Pe(Zv),sourceId:v(),sourceName:v()}),zj=yo("type",[Rj,Gw,Vw,Hw]),Uj=R({displayName:v(),description:B(v()),type:Pe(Kv)}),Zw=R({type:ve("MARKDOWN"),markdown:v()}),Sa={type:ve("TOOL_CALL"),input:mt(Re(v(),Ce())),output:B(Ce()),toolName:v(),status:Pe(Jv),toolCallId:v(),startTime:v(),endTime:B(v())},u7=R(Sa),Ww=yo("toolCallType",[R({...Sa,toolCallType:ve("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),R({...Sa,toolCallType:ve("FLOW"),displayName:v(),externalFlowId:v()}),R({...Sa,toolCallType:ve("MCP"),displayName:v(),serverUrl:v()}),R({...Sa,toolCallType:ve("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),R({...Sa,toolCallType:ve("UNKNOWN"),displayName:v()})]),Mj=Ue([Zw,Ww]);var Lj=10800*1e3,jj=900*1e3;var eb=(r=>(r.IMAGE="image",r.TEXT="text",r))(eb||{}),Fn=R({apiKey:v()}),Bj=Fn,qj=R({apiKey:v(),apiKeyHash:v()}),Gj=Fn,Vj=Fn,Hj=Fn,Zj=Fn,Wj=Fn,Kj=Fn,Jj=Fn,Xw=R({serviceAccountJson:v().check(vt(1))}),Yw=R({accessKeyId:v().check(vt(1)),secretAccessKey:v().check(vt(1)),sessionToken:B(v())}),Xj=R({}),Yj=R({}),Qj=R({}),eF=R({}),tF=R({}),rF=R({}),tb=R({modelId:v(),modelName:v(),modelType:Pe(eb)}),Qw=R({apiKeyHeader:v(),baseUrl:v(),models:Ee(tb),defaultHeaders:B(Re(v(),v())),apiStyle:B(Pe(["chat","responses"]))}),eI=R({accountId:v(),gatewayId:v(),models:Ee(tb),vertexProject:B(v()),vertexRegion:B(v())}),tI=R({resourceName:v(),apiVersion:vo(_o(t=>typeof t=="string"&&t.trim().length===0?void 0:t),B(v()))}),rI=R({region:v().check(vt(1))}),nI=R({project:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:v().check(Ut(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Ee(tb)}),oI=R({}),nF=Ue([Bj,Hj,Zj,Wj,Kj,Vj,Gj,qj,Yw,Xw,Jj]),iI=Ue([Qw,eI,tI,nI,rI,Xj,Qj,eF,tF,Yj,rF,oI]),oF=R({id:v(),name:v(),type:Pe(eb)}),iF=R({id:v(),name:v(),provider:Pe(Eo),config:iI,enabledForChat:He()}),aF=R({provider:Pe(Eo),name:v(),enabledForChat:He(),keys:Ee(R({id:v(),name:v()}))}),sF=R({provider:Pe(Eo),configId:v(),config:iI,auth:nF,platformId:v()});var f7={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Kw=["gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],cF=["claude-sonnet-5-5","claude-opus-5-5","claude-haiku-5-5"],uF=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],aI=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Xv=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Qv=["gemini-2.5-pro","gemini-2.5-flash"],lF=["grok-4.20"],m7={anthropic:uF,google:Qv,vertex:Qv},h7=[...aI.map(t=>`anthropic/${t}`),"deepseek/deepseek-v4.1-flash"],dF={openai:Kw,anthropic:cF,google:Xv,vertex:Xv,activepieces:[...aI.map(t=>`anthropic/${t}`),...Kw.map(t=>`openai/${t}`),...[...Xv,...Qv].map(t=>`google/${t}`),...lF.map(t=>`x-ai/${t}`)]};var Jw=128e3,pF={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function fF({provider:t}){return t?pF[t]??Jw:Jw}a(fF,"getMaxContextTokens");var Yv={openai:["text-embedding-3-small","text-embedding-3-large"],google:["text-embedding-004","gemini-embedding-001"],azure:["text-embedding-3-small","text-embedding-3-large"],activepieces:["text-embedding-3-small"],openrouter:["openai/text-embedding-3-small","openai/text-embedding-3-large"]},mF={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},hF=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),gF={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Mt(t){return{chatModels:dF[t],maxContextTokens:fF({provider:t}),embeddingModels:Yv[t]??[],defaultEmbeddingModel:Yv[t]?.[0],supportsEmbedding:(Yv[t]??[]).length>0,supportsImageGeneration:!hF.has(t),defaultImageModel:yF[t],webSearch:mF[t]}}a(Mt,"buildProviderCapabilities");var sI=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],yF={activepieces:sI[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},_F={openai:Mt("openai"),anthropic:Mt("anthropic"),openrouter:Mt("openrouter"),azure:Mt("azure"),google:Mt("google"),"cloudflare-gateway":Mt("cloudflare-gateway"),custom:Mt("custom"),bedrock:Mt("bedrock"),vertex:Mt("vertex"),mistral:Mt("mistral"),activepieces:Mt("activepieces"),xai:Mt("xai"),deepseek:Mt("deepseek"),zai:Mt("zai"),qwen:Mt("qwen"),minimax:Mt("minimax"),moonshot:Mt("moonshot")};var vF=R({base64Url:v(),fileName:v(),extension:B(v())}),bF=R({mimeType:v(),url:v(),fileName:B(v())}),rb=Ue([vF,bF]);var PF=Ue([R({type:ve("file"),value:rb}),R({type:ve("markdown"),value:v(),files:B(Ee(rb))})]),SF=R({sessionId:v(),message:v(),files:B(Ee(v()))});var uI=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(uI||{}),lI=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(lI||{}),nb=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(nb||{});var EF=Ue([R({...Or,name:v(),externalId:v(),type:ve("STATIC_DROPDOWN"),tableId:v(),projectId:v(),data:R({options:Ee(R({value:v()}))})}),R({...Or,name:v(),externalId:v(),type:Ue([ve("TEXT"),ve("NUMBER"),ve("DATE"),ve("DATETIME")]),tableId:v(),projectId:v()})]),TF=R({...Or,name:v(),folderId:mt(v()),projectId:v(),externalId:v(),status:$_(lI),trigger:$_(uI)}),xF=R({...Or,tableId:v(),projectId:v(),cells:Re(v(),R({updated:v(),created:v(),value:Ce(),fieldName:v()}))}),AF=R({events:Ee(Pe(nb)),webhookUrl:v(),flowId:v()}),wF=R({fields:Ee(R({id:v(),name:v()})),rows:Ee(Re(v(),v())),name:v()}),IF=R({projectId:v(),limit:B(Vc.number()),cursor:B(v()),name:B(v()),externalIds:kp(v()),folderId:B(v()),folderIds:kp(v())}),CF=R({records:Ee(Ee(R({fieldId:v(),value:pI()}))),tableId:v()}),RF=R({cells:B(Ee(R({fieldId:v(),value:pI()}))),tableId:v(),agentUpdate:B(He())}),dI=yo("operator",[fi("eq"),fi("neq"),fi("gt"),fi("gte"),fi("lt"),fi("lte"),fi("co"),cI("exists"),cI("not_exists")]),OF=R({tableId:v(),limit:B(Vc.number()),cursor:B(v()),filters:kp(dI)});function pI(){return vo(_o(t=>t==null?t:String(t)),Gc(v()))}a(pI,"coerceToString");function fi(t){return R({fieldId:v(),operator:ve(t),value:v()})}a(fi,"valueFilter");function cI(t){return R({fieldId:v(),operator:ve(t)})}a(cI,"existenceFilter");var kF=R({status:B(kt()),body:B(Ce()),headers:B(Re(v(),v()))}),NF=R({...Or,deleted:mt(So),ownerId:v(),displayName:v(),platformId:v(),externalId:mt(v())});var fI=R({name:v(),description:B(v()),type:v(),required:He()}),$F=R({pieceName:v(),triggerName:v(),input:R({toolName:v(),toolDescription:v(),inputSchema:Ee(fI),returnsResponse:He()})});var mI="^[0-9]+\\.[0-9]+\\.[0-9]+$",$7=new RegExp(mI),zF="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",D7=v().check(Ut(new RegExp(mI))),z7=v().check(Ut(new RegExp(zF))),UF=R({packageType:ve("ARCHIVE"),pieceType:Pe(fa),pieceName:v(),pieceVersion:v(),archiveId:v(),platformId:v()}),hI=R({packageType:ve("REGISTRY"),pieceType:ve("OFFICIAL"),pieceName:v(),pieceVersion:v()}),gI=R({packageType:ve("REGISTRY"),pieceType:ve("CUSTOM"),pieceName:v(),pieceVersion:v(),platformId:v()}),U7=Ue([hI,gI]),M7=Ue([UF,hI,gI]);var MF=yo("type",[R({type:ve("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),R({type:ve("INTERVAL"),intervalMs:Lx().check(At(6e4))})]),L7=R({...Or,type:Pe(bo),projectId:v(),flowId:v(),triggerName:v(),schedule:mt(MF),flowVersionId:v(),pieceName:v(),pieceVersion:v(),deleted:mt(v()),simulate:He()}),yI=(k=>(k.UNKNOWN="UNKNOWN",k.FLOW_RUN_LOG="FLOW_RUN_LOG",k.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",k.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",k.FLOW_STEP_FILE="FLOW_STEP_FILE",k.SAMPLE_DATA="SAMPLE_DATA",k.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",k.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",k.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",k.PROJECT_RELEASE="PROJECT_RELEASE",k.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",k.PLATFORM_ASSET="PLATFORM_ASSET",k.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",k.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",k.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",k.KNOWLEDGE_BASE="KNOWLEDGE_BASE",k.FLOW_BUNDLE="FLOW_BUNDLE",k.PREWARM_SCOPE="PREWARM_SCOPE",k))(yI||{}),_I=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(_I||{}),vI=(r=>(r.S3="S3",r.DB="DB",r))(vI||{}),j7=R({...Or,projectId:mt(v()),platformId:mt(v()),type:Pe(yI),compression:Pe(_I),data:B(Ce()),location:Pe(vI),size:mt(kt()),fileName:mt(v()),s3Key:mt(v()),metadata:mt(Re(v(),v()))}),bI=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(bI||{}),PI=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(PI||{}),F7=R({id:v(),email:v(),firstName:v(),status:Pe(PI),externalId:mt(v()),platformId:mt(v()),platformRole:Pe(bI),lastName:v(),created:So,updated:So,lastActiveDate:mt(So),imageUrl:mt(v())});var ob=R({...Ge.shape,...ke(Re(v(),Ce()),"OBJECT").shape});var ib=R({...Ge.shape,formatProperty:B(v()),...ke(v(),"RICH_TEXT").shape});var AI=R({...Ge.shape,...ke(v(),"COLOR").shape});var ab=Ue([pr,Un,ib,Cp,Ln,fr,Mn,w_,Hc,C_,jn,Kc,ob,Jc,Wc,I_,Zc,AI]),J={ShortText(t){return{...t,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(t){return{...t,valueSchema:void 0,type:"CHECKBOX"}},LongText(t){return{...t,valueSchema:void 0,type:"LONG_TEXT"}},RichText(t){return{...t,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(t){return{displayName:"Markdown",required:!1,description:t.value,type:"MARKDOWN",valueSchema:void 0,variant:t.variant??"INFO"}},Number(t){return{...t,valueSchema:void 0,type:"NUMBER"}},Json(t){return{...t,valueSchema:void 0,type:"JSON"}},Array(t){return{...t,valueSchema:void 0,type:"ARRAY"}},Object(t){return{...t,valueSchema:void 0,type:"OBJECT"}},Dropdown(t){return{...t,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(t){return{...t,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(t){return{...t,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(t){return{...t,valueSchema:void 0,type:"DATE_TIME"}},DateRange(t){return{...t,valueSchema:void 0,type:"DATE_RANGE"}},File(t){return{...t,valueSchema:void 0,type:"FILE"}},Custom(t){let e=t.code.toString();return{...t,code:e,valueSchema:void 0,type:"CUSTOM"}},Color(t){return{...t,valueSchema:void 0,type:"COLOR"}}};var un=R({displayName:v(),description:B(v()),hasConnectionIdentifier:B(He())});var wI=R({username:v(),password:v()}),sb=R({...un.shape,username:R({displayName:v(),description:B(v())}),password:R({displayName:v(),description:B(v())}),...ke(wI,"BASIC_AUTH").shape});var FF=Re(v(),Ue([pr,Un,jn,Ln,fr])),cb=R({...un.shape,props:FF,...ke(Ce(),"CUSTOM_AUTH").shape});var mi=R({...un.shape,...ke(R({auth:v()}),"SECRET_TEXT").shape});var BF=Re(v(),Ue([pr,Un,mi,jn,Ln,fr,Mn,Cp])),II=R({...un.shape,props:BF,...ke(Ce(),"OIDC").shape});var ub=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ub||{}),CI=Ue([pr,mi,fr]),RI=Re(v(),CI),OI=R({serverUrlProp:v(),authUrlProp:v(),tokenUrlProp:v(),scopesProp:B(v())}),qF=R({props:B(Re(v(),CI)),authUrl:v(),tokenUrl:v(),scope:Ee(v()),prompt:B(Ue([ve("none"),ve("consent"),ve("login"),ve("omit")])),pkce:B(He()),pkceMethod:B(Ue([ve("plain"),ve("S256")])),authorizationMethod:B(Pe(ub)),grantType:B(Ue([Pe(Yc),ve(R_)])),extra:B(Re(v(),v())),discovery:B(OI)}),kI=R({access_token:v(),props:B(RI),data:Re(v(),qc())}),lb=R({...un.shape,...qF.shape,...ke(kI,"OAUTH2").shape});var Ea=Ue([sb,cb,II,lb,mi]),mu="Connection",db={SecretText(t){return{...t,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(t){return{...t,valueSchema:void 0,type:"OAUTH2",displayName:t.displayName||mu}},BasicAuth(t){return{...t,valueSchema:void 0,type:"BASIC_AUTH",displayName:t.displayName||mu,required:!0}},CustomAuth(t){return{...t,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:t.displayName||mu}},OIDC(t){return{...t,valueSchema:void 0,type:"OIDC",displayName:t.displayName||mu}},None(){}};var Tee={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var GF=R({...Ge.shape,...ke(Ce(),"CUSTOM").shape,code:v()});var VF=Ue([ab,Ea]),pb=Re(v(),VF),Gee=Re(v(),ab);var NI=Ue([R({strategy:ve("CRON"),cronExpression:v()}),R({strategy:ve("NONE")})]),Ta=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h,_,S,E,T,k,F,Y,H){this.name=e;this.displayName=r;this.description=o;this.requireAuth=n;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=f;this.onEnable=y;this.onDisable=m;this.onStart=h;this.run=_;this.test=S;this.sampleData=E;this.testStrategy=T;this.outputSchema=k;this.aiMetadata=F;this.classification=Y;this.propertyGroups=H}static{a(this,"ITrigger")}},$I=a(t=>{switch(t.type){case"WEBHOOK":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,t.handshakeConfiguration??{strategy:"NONE"},t.onHandshake??(async()=>({status:200})),t.renewConfiguration??{strategy:"NONE"},t.onRenew??(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,t.test?"TEST_FUNCTION":"SIMULATION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"POLLING":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"MANUAL":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups);case"APP_WEBHOOK":return new Ta(t.name,t.displayName,t.description,t.requireAuth??!0,t.props,t.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),t.onEnable,t.onDisable,t.onStart??(async()=>Promise.resolve()),t.run,t.test??(()=>Promise.resolve([t.sampleData])),t.sampleData,ft(t.sampleData)&&ft(t.test)?"SIMULATION":"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups)}},"createTrigger");var DI="2",mf="0.82.0";var fb=class{constructor(e,r,o,n,i,s,u,l,p=mf,f,y="",m){this.displayName=e;this.logoUrl=r;this.authors=o;this.events=n;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=y;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:DI}),"getContextInfo");(!ZF(p)||WF(p,mf))&&(this.minimumSupportedRelease=mf),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}static{a(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:HF(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(e){return this._actions[e]}getTrigger(e){return this._triggers[e]}actions(){return this._actions}triggers(){return this._triggers}},UI=a(t=>{if(t.auth&&Array.isArray(t.auth)&&!t.auth.every((r,o,n)=>o===n.findIndex(i=>i.type===r.type)))throw new Error("Auth properties must be unique by type");return new fb(t.displayName,t.logoUrl,t.authors??[],t.events,t.actions,t.triggers,t.categories??[],t.auth,t.minimumSupportedRelease,t.maximumSupportedRelease,t.description,t.deprecated)},"createPiece");function HF(t){if(t!==void 0)return Array.isArray(t)?t.map(zI):zI(t)}a(HF,"withConnectionIdentifierFlag");function zI(t){return{...t,hasConnectionIdentifier:t.getConnectionIdentifier!==void 0}}a(zI,"flagConnectionIdentifier");function ZF(t){return/^\d+\.\d+\.\d+$/.test(t)}a(ZF,"isValidSimpleSemver");function WF(t,e){let[r,o,n]=t.split(".").map(Number),[i,s,u]=e.split(".").map(Number);return r!==i?r<i:o!==s?o<s:n<u}a(WF,"isSemverLessThan");var KF=B(Re(v(),Re(v(),v()))),MI=R({id:B(v()),name:v(),displayName:v(),logoUrl:v(),description:v(),authors:Ee(v()),platformId:B(v()),directoryPath:B(v()),auth:B(Ue([Ea,Ee(Ea)])),version:v(),categories:B(Ee(Pe(ui))),minimumSupportedRelease:B(v()),maximumSupportedRelease:B(v()),deprecated:B(He()),i18n:KF}),JF=Pe(["human","ai","both"]),LI=R({description:B(v()),idempotent:B(He())}),jI=Pe(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var XF=Pe(["tabs","section","summary","builder","footer"]),FI=R({key:v(),display:XF,label:B(v()),description:B(v()),icon:B(v()),props:Ee(v())}),BI=R({name:v(),displayName:v(),description:v(),props:pb,propertyGroups:B(Ee(FI)),requireAuth:He(),errorHandlingOptions:B(A_),outputSchema:B(Ap()),audience:B(JF),aiMetadata:B(LI),classification:B(jI)}),qI=R({name:v(),displayName:v(),description:v(),props:pb,propertyGroups:B(Ee(FI)),errorHandlingOptions:B(A_),type:Pe(bo),sampleData:Ce(),handshakeConfiguration:B(Ap()),renewConfiguration:B(NI),testStrategy:Pe(eu),outputSchema:B(Ap()),aiMetadata:B(LI),classification:B(jI)}),YF=R({...MI.shape,actions:Re(v(),BI),triggers:Re(v(),qI)}),QF=R({...MI.shape,actions:kt(),triggers:kt(),suggestedActions:B(Ee(BI)),suggestedTriggers:B(Ee(qI))}),GI=R({projectUsage:kt(),pieceType:Pe(fa),packageType:Pe(Xc),platformId:B(v()),archiveId:B(v())}),Wte=R({...YF.shape,...GI.shape}),Kte=R({...QF.shape,...GI.shape}),Jte=R({name:v(),version:v()});var HI=xt(require("path")),mb=xt(require("fs/promises"));var hf={translatePiece:a(({piece:t,locale:e})=>{let r=e?t.i18n?.[e]:void 0;if(!r)return t;let o=VI(t.categories)?tB:eB;return KI({node:t,tree:o,translations:r})},"translatePiece"),pathsToTranslate:a(t=>VI(t)?[...hf.pathsToValuesToTranslate,"displayName"]:hf.pathsToValuesToTranslate,"pathsToTranslate"),initializeI18n:a(async t=>{try{let e=Object.values(D_),r={};for(let o of e){let n=await iB(o,t);n&&(r[o]=n)}return Object.keys(r).length>0?r:void 0}catch(e){console.log(`Error initializing i18n for ${t}:`,e);return}},"initializeI18n"),pathsToValuesToTranslate:["description","auth.username.displayName","auth.username.description","auth.password.displayName","auth.password.description","auth.props.*.displayName","auth.props.*.description","auth.props.*.options.options.*.label","auth.description","actions.*.displayName","actions.*.description","actions.*.props.*.displayName","actions.*.props.*.description","actions.*.props.*.options.options.*.label","actions.*.propertyGroups.*.label","triggers.*.displayName","triggers.*.description","triggers.*.props.*.displayName","triggers.*.props.*.description","triggers.*.props.*.options.options.*.label","triggers.*.propertyGroups.*.label"]},eB=ZI(hf.pathsToTranslate()),tB=ZI(hf.pathsToTranslate(["CORE"]));function ZI(t){return t.reduce((e,r)=>WI({tree:e,keys:r.split(".")}),{})}a(ZI,"buildTree");function VI(t){return t?.includes("CORE")??!1}a(VI,"isCorePiece");function WI({tree:t,keys:[e,...r]}){return{...t,[e]:r.length===0?null:WI({tree:t[e]??{},keys:r})}}a(WI,"addPath");function KI({node:t,tree:e,translations:r}){if(!nB(t))return t;let o={},n=!1;for(let[i,s]of Object.entries(e))for(let u of i==="*"?Object.keys(t):[i]){let l=t[u],p=s===null?rB({value:l,translations:r}):KI({node:l,tree:s,translations:r});p!==l&&(o[u]=p,n=!0)}return n?Object.assign(Array.isArray(t)?[]:{},t,o):t}a(KI,"translateNode");function rB({value:t,translations:e}){return typeof t!="string"?t:e[t.slice(0,512)]||t}a(rB,"translateValue");function nB(t){return typeof t=="object"&&t!==null}a(nB,"isRecord");async function oB(t){try{return await mb.default.access(t),!0}catch{return!1}}a(oB,"fileExists");var iB=a(async(t,e)=>{let r=HI.default.join(e,"src","i18n",`${t}.json`);if(!await oB(r))return null;try{let o=await mb.default.readFile(r,"utf8"),n=JSON.parse(o);if(typeof n=="object"&&n!==null)return n;throw new Error(`Invalid i18n file format for ${t} in piece ${e}`)}catch(o){return console.error(`Error reading i18n file for ${t} in piece ${e}:`,o),null}},"readLocaleFile");var Aa=require("node:stream");var gf=class{constructor(e,r){this.baseUrl=e;this.authenticationConverter=r}static{a(this,"BaseHttpClient")}getUrl(e){let r=new URL(`${this.baseUrl}${e.url}`),o=`${r.origin}${r.pathname}`,n=new URLSearchParams;return r.searchParams.forEach((i,s)=>{n.append(s,i)}),{urlWithoutQueryParams:o,queryParams:n}}getHeaders(e){let r={Accept:"application/json"};return e.authentication&&this.populateAuthentication(e.authentication,r),e.body&&(e.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),e.headers&&(r={...r,...e.headers}),r}populateAuthentication(e,r){this.authenticationConverter.convert(e,r)}};var yf=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(e=new hb,r=new gb){this.converters={BEARER_TOKEN:e,BASIC:r}}convert(e,r){return this.converters[e.type].convert(e,r)}},hb=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(e,r){return r.Authorization=`Bearer ${e.token}`,r}},gb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(e,r){let o=`${e.username}:${e.password}`,n=Buffer.from(o).toString("base64");return r.Authorization=`Basic ${n}`,r}};var hu=class extends Error{constructor(r,o){let n=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:n,body:i},request:{body:r}}));this.requestBody=r;this.status=n,this.responseBody=i}static{a(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function JI({error:t,requestBody:e}){return t instanceof hu?t.errorMessage():{response:{status:0,body:t instanceof Error?t.message:String(t)},request:{body:e}}}a(JI,"toFailsafeOutput");var xa=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(xa||{});var _f=class extends gf{static{a(this,"FetchHttpClient")}constructor(e="",r=new yf){super(e,r)}async sendRequest(e,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:n}=this.getUrl(e),i=this.getHeaders(e),s=QI(e.body)?fB(i):i,u=e.queryParams??{};for(let[Y,H]of Object.entries(u))n.append(Y,H);let l=n.toString(),p=l?`${o}?${l}`:o,f=e.responseType??"json",y=e.followRedirects??!0,m=e.retries??0,{body:h,extraHeaders:_,isStream:S}=vf(e.method)?sB(e.body,s):{body:void 0,extraHeaders:{},isStream:!1},E=uB({...s,..._}),T=await cB(async()=>{let Y=new AbortController,H=e.timeout&&e.timeout>0?setTimeout(()=>Y.abort(),e.timeout):void 0;try{let W={method:e.method.toString(),headers:E,body:h,redirect:y?"follow":"manual",signal:Y.signal};return S&&(W.duplex="half"),r?.dispatcher!==void 0&&(W.dispatcher=r.dispatcher),await fetch(p,W)}finally{H!==void 0&&clearTimeout(H)}},S?0:m),k=y?300:400;if(T.status<200||T.status>=k){let Y=await XI(T,f==="stream"?"text":f),H=new hu(e.redactBodyInErrors===!0?aB:e.body,{status:T.status,responseBody:Y});throw console.error("[HttpClient#(sanitized error message)] Request failed:",H),H}let F=await XI(T,f);return{status:T.status,headers:lB(T.headers),body:F}}},aB="[redacted]";function vf(t){return t!=="GET"&&t!=="HEAD"}a(vf,"acceptsRequestBody");function sB(t,e){if(eC(t))return{body:void 0,extraHeaders:{},isStream:!1};if(pB(t)){let o=dB(t);if(o!==null)return{body:o,extraHeaders:t.getHeaders(),isStream:!1};let n=new Aa.PassThrough;return t.on("error",i=>n.destroy(i)),t.pipe(n),{body:n,extraHeaders:t.getHeaders(),isStream:!0}}return t instanceof Aa.Readable?{body:t,extraHeaders:{},isStream:!0}:typeof t=="string"||Buffer.isBuffer(t)||t instanceof URLSearchParams||t instanceof ArrayBuffer||QI(t)||typeof Blob<"u"&&t instanceof Blob?{body:t,extraHeaders:{},isStream:!1}:(e["Content-Type"]??e["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(t).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(t),extraHeaders:{},isStream:!1}}a(sB,"serializeBody");async function XI(t,e){switch(e){case"arraybuffer":return Buffer.from(await t.arrayBuffer());case"stream":return eC(t.body)?Aa.Readable.from([]):Aa.Readable.fromWeb(t.body);case"blob":return await t.blob();case"text":return await t.text();default:{let r=await t.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}a(XI,"parseResponseBody");async function cB(t,e){let r;for(let o=0;o<=e;o++)try{let n=await t();if(n.status>=500&&o<e){await YI(o);continue}return n}catch(n){if(r=n,o<e){await YI(o);continue}throw n}throw r}a(cB,"sendWithRetries");function YI(t){let e=Math.min(1e3*2**t,3e4);return new Promise(r=>setTimeout(r,e))}a(YI,"backoff");function uB(t){let e=new Map;for(let[r,o]of Object.entries(t))o!==void 0&&e.set(r.toLowerCase(),[r,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(e.values())}a(uB,"normalizeHeaders");function lB(t){let e={};return t.forEach((r,o)=>{e[o]=r}),e}a(lB,"toHttpHeaders");function dB(t){if(!t.hasKnownLength()||t.getLengthSync()>mB)return null;let{data:e}=k_(()=>t.getBuffer());return e}a(dB,"bufferFormDataIfSafe");function pB(t){return typeof t=="object"&&t!==null&&typeof t.getHeaders=="function"&&typeof t.pipe=="function"&&typeof t.on=="function"}a(pB,"isNodeFormData");function QI(t){return typeof FormData<"u"&&t instanceof FormData}a(QI,"isNativeFormData");function fB(t){return Object.fromEntries(Object.entries(t).filter(([e])=>e.toLowerCase()!=="content-type"))}a(fB,"withoutContentType");function eC(t){return t==null}a(eC,"isNil");var mB=100*1024*1024;var ln=new _f;var t4=xt(require("fs"));var r4={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function n4(t){let e=t.split(";")[0].trim().toLowerCase();return r4[e]??""}a(n4,"contentTypeToExtension");var o4=a(({baseUrl:t,relativePath:e})=>{let r=t.endsWith("/")?t:`${t}/`,o=e.startsWith("/")?e.slice(1):e;return`${r}${o}`},"joinBaseUrlWithRelativePath"),i4=a((t,e)=>{let r="https://api.example.com";try{let o=e?t(e):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??r}catch{return r}},"getBaseUrlForDescription");function oO({auth:t,baseUrl:e,authMapping:r,description:o,displayName:n,name:i,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return Oe({audience:"human",name:i||"custom_api_call",classification:p,displayName:n||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:t,requireAuth:!!t,props:{url:J.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:J.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${i4(e,f)}`,required:!0,placeholder:"/resource",defaultValue:f?e(f):"",...s?.url??{}})}),"props")}),method:J.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(xa).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:J.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:J.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:J.Dropdown({auth:t,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>vf(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:J.DynamicProperties({auth:t,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:y})=>{if(!f||!vf(y))return{};let m=f,h={};switch(m){case"none":break;case"json":h.data=J.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=J.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=J.Array({displayName:"Form Data",required:!0,properties:{fieldName:J.ShortText({displayName:"Field Name",required:!0}),fieldType:J.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:J.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:J.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:J.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:J.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:J.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:J.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},propertyGroups:[{key:"request",display:"section",label:"Request",icon:"send",props:["method","url","headers","queryParams"]},{key:"payload",display:"section",label:"Data to send",icon:"code",props:["body_type","body"]}],run:a(async f=>{let{method:y,url:m,headers:h,queryParams:_,body:S,body_type:E,failsafe:T,timeout:k,response_is_binary:F,followRedirects:Y}=f.propsValue;Op(y,"Method"),Op(m,"URL");let H=ft(r)?{}:await r(f.auth,f.propsValue),W=m.url,re=W.startsWith("http://")||W.startsWith("https://")?W:o4({baseUrl:e(f.auth),relativePath:W}),ce={method:y,url:re,headers:{...h??{},...l==="headers"||!ft(l)?H:{}},queryParams:{...l==="queryParams"?H:{},..._??{}},timeout:k?k*1e3:0,followRedirects:Y};if(F&&(ce.responseType="arraybuffer"),S)if(E&&E!=="none"){let ee=S.data;if(E==="form_data"){let Le=ee,{default:le}=await Promise.resolve().then(()=>xt(nO())),K=new le;for(let{fieldName:Z,fieldType:oe,textFieldValue:Q,fileFieldValue:de}of Le)oe==="text"&&!tu(Q)?K.append(Z,Q):oe==="file"&&!tu(de)&&K.append(Z,de.data,{filename:de?.filename});ce.body=K,ce.headers={...ce.headers,...K.getHeaders()}}else ce.body=ee}else E||(ce.body=S);try{let ee=await ln.sendRequest(ce);return await a4(f.files,ee.body,ee.status,ee.headers,F)}catch(ee){if(T)return JI({error:ee,requestBody:ce.body});throw ee}},"run")})}a(oO,"createCustomApiCallAction");var a4=a(async(t,e,r,o,n)=>{let i;if(n&&s4(e)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=n4(s??"")||"txt",l;e instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(e)):Buffer.isBuffer(e)?l=e:l=Buffer.from(e),i=await t.write({fileName:`output.${u}`,data:l})}else i=e;return{status:r,headers:o,body:i}},"handleBinaryResponse"),s4=a(t=>t instanceof ArrayBuffer||Buffer.isBuffer(t),"isBinaryBody");var bu={async poll(t,{store:e,auth:r,propsValue:o,maxItemsToPoll:n,files:i,server:s}){switch(t.strategy){case 0:{let u=await e.get("lastPoll");if(ft(u))throw new Error("lastPoll doesn't exist in the store.");let l=await t.items({store:e,auth:r,propsValue:o,lastFetchEpochMS:u,server:s}),p=l.reduce((f,y)=>Math.max(f,y.epochMilliSeconds),u);return await e.put("lastPoll",p),l.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await e.get("lastItem"),l=await t.items({store:e,auth:r,propsValue:o,lastItemId:u,files:i,server:s}),p=l.findIndex(m=>m.id===u),f=[];ft(u)||p==-1?f=l??[]:f=l?.slice(0,p)??[],ft(n)||(f=f.slice(-n));let y=f?.[0]?.id;return ft(y)||await e.put("lastItem",y),f.map(m=>m.data)}}},async onEnable(t,{store:e,auth:r,propsValue:o,server:n,isRepublish:i}){switch(t.strategy){case 0:{if(i&&!ft(await e.get("lastPoll")))break;await e.put("lastPoll",Date.now());break}case 1:{if(i&&!ft(await e.get("lastItem")))break;let u=(await t.items({store:e,auth:r,propsValue:o,lastItemId:null,server:n}))?.[0]?.id;ft(u)?await e.delete("lastItem"):await e.put("lastItem",u);break}}},async onDisable(t,e){switch(t.strategy){case 0:case 1:return}},async test(t,{auth:e,propsValue:r,store:o,files:n,server:i}){let s=[];switch(t.strategy){case 0:{s=await t.items({store:o,auth:e,propsValue:r,lastFetchEpochMS:0,server:i});break}case 1:{s=await t.items({store:o,auth:e,propsValue:r,lastItemId:null,files:n,server:i});break}}return c4(s.map(u=>u.data))}};function c4(t){return t.length<=5?t:t.slice(0,5)}a(c4,"getFirstFiveOrAll");var iO="https://people.googleapis.com/v1",u4=["names","nicknames","emailAddresses","phoneNumbers","organizations","addresses","biographies","urls","memberships","photos","metadata"],l4=["clientData","groupType","memberCount","metadata","name"],d4=["addresses","biographies","birthdays","calendarUrls","clientData","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","relations","sipAddresses","urls","userDefined"],p4=["contactGroups/all","contactGroups/blocked","contactGroups/chatBuddies","contactGroups/coworkers","contactGroups/family","contactGroups/friends"];function f4({path:t,queryParams:e,repeatedQueryParams:r}){let o=new URLSearchParams;for(let[i,s]of Object.entries(e??{}))s!==void 0&&o.append(i,s);for(let[i,s]of Object.entries(r??{}))for(let u of s)o.append(i,u);let n=o.toString();return n.length>0?`${iO}${t}?${n}`:`${iO}${t}`}a(f4,"buildUrl");function kr({source:t,path:e}){let r=t;for(let o of e){if(typeof r!="object"||r===null||!(o in r))return;r=Reflect.get(r,o)}return r}a(kr,"readValue");function Pu({source:t,path:e}){let r=kr({source:t,path:e});return typeof r=="string"?r:void 0}a(Pu,"readString");function m4({source:t,path:e}){let r=kr({source:t,path:e});if(!(typeof r!="object"||r===null||Array.isArray(r)))return Object.fromEntries(Object.entries(r))}a(m4,"readRecord");function h4({source:t,path:e}){let r=kr({source:t,path:e});return Array.isArray(r)?r:[]}a(h4,"readArray");function g4({value:t,label:e}){try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{throw new Error(`${e} must be a list of strings.`)}throw new Error(`${e} must be a list of strings.`)}a(g4,"parseStringList");function y4({value:t,label:e}){if(t==null)return[];let r=typeof t=="string"?g4({value:t,label:e}):t;if(!Array.isArray(r))throw new Error(`${e} must be a list of strings.`);return r.map(o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(`${e} must be a list of non-empty strings.`);return o.trim()})}a(y4,"toStringList");function _4({values:t,max:e,label:r}){if(t.length===0)throw new Error(`${r} must contain at least one entry.`);if(t.length>e)throw new Error(`${r} accepts at most ${e} entries, received ${t.length}.`)}a(_4,"assertBatchSize");function aO({status:t}){let e=Pu({source:t,path:["message"]}),r=kr({source:t,path:["code"]});return e!==void 0?e:typeof r=="number"?`Google returned status code ${r}.`:"Google returned an unspecified failure for this item."}a(aO,"describeStatus");function Mb({response:t}){let e=kr({source:t,path:["status"]});if(e==null)return!1;let r=kr({source:e,path:["code"]}),o=kr({source:e,path:["message"]});return typeof r=="number"&&r!==0?!0:typeof o=="string"&&o.length>0}a(Mb,"isFailedItem");function v4({items:t,payloadKey:e}){let r=t.filter(n=>!Mb({response:n.response})).map(n=>({resourceName:Pu({source:n.response,path:[e,"resourceName"]})??n.resourceName,payload:kr({source:n.response,path:[e]})})),o=t.filter(n=>Mb({response:n.response})).map(n=>({resourceName:n.resourceName,status:aO({status:kr({source:n.response,path:["status"]})})}));return{succeeded:r,failed:o}}a(v4,"splitItemResponses");function b4({error:t,operation:e}){let r=kr({source:t,path:["response","status"]}),o=Pu({source:t,path:["response","body","error","status"]}),n=Pu({source:t,path:["response","body","error","message"]}),i=n===void 0?"":` ${n}`;return r===400&&o==="FAILED_PRECONDITION"?new Error(`${e} failed because the record changed since it was read. Re-read the record to get a fresh etag and retry.${i}`):r===400?new Error(`${e} was rejected as invalid by Google Contacts.${i}`):r===401?new Error(`${e} failed: the Google Contacts connection is no longer authorized. Reconnect the account.${i}`):r===403?new Error(`${e} failed: the connected Google account is not allowed to perform it, or the connection is missing the required scope.${i}`):r===404?new Error(`${e} failed: the resource was not found. Resource names are opaque, so resolve a current one with the matching list or search action.${i}`):r===409?new Error(`${e} failed: the resource already exists.${i}`):r===429?new Error(`${e} failed: Google Contacts rate limit reached. Retry later.${i}`):new Error(`${e} failed.${i}`)}a(b4,"toApiError");function P4({error:t}){return kr({source:t,path:["response","status"]})===409}a(P4,"isConflict");async function S4({accessToken:t,method:e,path:r,queryParams:o,repeatedQueryParams:n,body:i}){let s={method:e,url:f4({path:r,queryParams:o,repeatedQueryParams:n}),body:i,authentication:{type:"BEARER_TOKEN",token:t}};return(await ln.sendRequest(s)).body??{}}a(S4,"sendRequest");var Ao={baseUrl:"https://people.googleapis.com/v1/people"},z={contactReadMask:u4,contactGroupFields:l4,updatablePersonFields:d4,systemGroupsRejectingAdds:p4,sendRequest:S4,toApiError:b4,isConflict:P4,readValue:kr,readString:Pu,readRecord:m4,readArray:h4,toStringList:y4,assertBatchSize:_4,splitItemResponses:v4,describeStatus:aO,isFailedItem:Mb};var p$=xt(Qu());var Te=db.OAuth2({description:"",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:["https://www.googleapis.com/auth/contacts","email"]});function f$(t){let e=new p$.OAuth2Client;return e.setCredentials({access_token:t.access_token}),e}a(f$,"createGoogleClient");var HH=[{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"middleName",label:"Middle Name"},{key:"familyName",label:"Last Name"},{key:"displayNameLastFirst",label:"Display Name (Last, First)"},{key:"unstructuredName",label:"Unstructured Name"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],ZH=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],WH=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],KH=[{key:"value",label:"Nickname"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],JH=[{key:"value",label:"Notes"},{key:"contentType",label:"Content Type"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],XH=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],YH=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],QH=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],eZ=[{key:"objectType",label:"Object Type"},{key:"sources",label:"Sources",labelKey:"updateTime",listItems:[{key:"type",label:"Source Type"},{key:"id",label:"Source ID"},{key:"updateTime",label:"Last Updated",format:"datetime"}]}],an=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:HH},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:ZH},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:WH},{key:"nicknames",label:"Nicknames",labelKey:"value",listItems:KH},{key:"biographies",label:"Notes",labelKey:"value",listItems:JH},{key:"organizations",label:"Organizations",labelKey:"name",listItems:XH},{key:"photos",label:"Photos",labelKey:"url",listItems:YH},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:QH},{key:"metadata",label:"Metadata",children:eZ}],el=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"displayName",label:"Display Name"},{key:"givenName",label:"First Name"},{key:"familyName",label:"Last Name"},{key:"emails",label:"Email Addresses"},{key:"phoneNumbers",label:"Phone Numbers"},{key:"company",label:"Company"},{key:"jobTitle",label:"Job Title"},{key:"updateTime",label:"Last Updated",format:"datetime"}],tl=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"name",label:"Name"},{key:"formattedName",label:"Formatted Name"},{key:"groupType",label:"Group Type"},{key:"memberCount",label:"Member Count",format:"number"},{key:"memberResourceNames",label:"Member Resource Names"}],m$=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"}],tZ=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"},{key:"updateMask",label:"Field Groups Not Applied"}],rZ=[{key:"requestIndex",label:"Request Index",format:"number"},{key:"status",label:"Failure Reason"}],h$={fields:an},g$={fields:an},y$={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:an}]}]},_$={fields:an},v$={fields:an},b$={fields:an},P$={fields:an},S$={fields:[{key:"contacts",label:"Contacts",labelKey:"displayName",listItems:el},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},E$={fields:[{key:"results",label:"Matching Contacts",labelKey:"displayName",listItems:el},{key:"count",label:"Count",format:"number"}]},T$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"}]},x$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceNames",label:"Resource Names"},{key:"count",label:"Count",format:"number"}]},A$={fields:[{key:"succeeded",label:"Contacts Read",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el},{key:"person",label:"Full Person",children:an}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:m$},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},w$={fields:[{key:"succeeded",label:"Contacts Created",labelKey:"contact.displayName",listItems:[{key:"requestIndex",label:"Request Index",format:"number"},{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el}]},{key:"failed",label:"Failures",labelKey:"requestIndex",listItems:rZ},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"requestedCount",label:"Requested Count",format:"number"}]},I$={fields:[{key:"succeeded",label:"Contacts Updated",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:el},{key:"person",label:"Full Person",children:an}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:tZ},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"updateMasks",label:"Update Masks"}]},C$={fields:an},R$={fields:an},O$={fields:[{key:"contactGroups",label:"Contact Groups",labelKey:"formattedName",listItems:tl},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},k$={fields:tl},N$={fields:tl},$$={fields:[{key:"succeeded",label:"Contact Groups Read",labelKey:"formattedName",listItems:tl},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:m$},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},D$={fields:[{key:"created",label:"Created",format:"boolean"},{key:"contactGroup",label:"Contact Group",children:tl}]},z$={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"},{key:"deletedContacts",label:"Contacts Also Deleted",format:"boolean"}]},U$={fields:[{key:"resourceName",label:"Contact Group Resource Name"},{key:"added",label:"Added Contacts"},{key:"removed",label:"Removed Contacts"},{key:"notFoundResourceNames",label:"Not Found Contacts"},{key:"canNotRemoveLastContactGroupResourceNames",label:"Cannot Remove Last Group"}]};var M$=Oe({auth:Te,name:"add_contact",classification:"WRITE",description:"Add a contact to a Google Contacts account",audience:"human",aiMetadata:{description:"Creates a new person in the authenticated Google Contacts account from name, email, phone, company, and job title fields. Use when an agent needs to add someone to address book contacts; first and last name are required. Not idempotent \u2014 each call creates a separate contact even with identical input, so guard against duplicates.",idempotent:!1},displayName:"Add Contact",outputSchema:h$,props:{firstName:J.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:J.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:J.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:J.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:J.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:J.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:J.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e={names:[{givenName:t.propsValue.firstName,middleName:t.propsValue.middleName,familyName:t.propsValue.lastName}]},r={};t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]),e={...e,...r};let o={method:"POST",url:`${Ao.baseUrl}:createContact`,body:e,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token}};return(await ln.sendRequest(o)).body}});var L$=Oe({auth:Te,name:"update_contact",classification:"WRITE",description:"Update a contact in Google Contacts account.",audience:"human",aiMetadata:{description:"Updates fields (name, email, phone, company, job title) on an existing Google Contacts person identified by its resourceName (people/{id}). Use when an agent needs to modify a known contact; requires both the resourceName and the current etag, and a field mask listing which fields to update \u2014 the call is rejected if the contact changed since the etag was fetched. Repeating the same update with the same etag/values is safe and yields the same result.",idempotent:!0},displayName:"Update Contact",outputSchema:g$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"The resource name for the person, assigned by the server. An ASCII string in the form of people/{person_id}.",required:!0}),etag:J.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:J.StaticMultiSelectDropdown({displayName:"Update Field Mask",description:"A field mask to restrict which fields on the person are updated.",required:!0,options:{options:[{label:"Names",value:"names"},{label:"Email",value:"emailAddresses"},{label:"Phone Number",value:"phoneNumbers"},{label:"Job Title / Company",value:"organizations"}]},defaultValue:["names","emailAddresses"]}),firstName:J.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:J.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:J.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:J.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:J.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:J.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:J.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e=t.propsValue.resourceName.substring(6),r={etag:t.propsValue.etag},o={updatePersonFields:t.propsValue.updatePersonFields.join(",")};(t.propsValue.firstName||t.propsValue.middleName||t.propsValue.lastName)&&(r.names=[{givenName:t.propsValue.firstName||void 0,middleName:t.propsValue.middleName||void 0,familyName:t.propsValue.lastName||void 0}]),t.propsValue.email&&(r.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(r.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(r.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]);let n={method:"PATCH",url:`${Ao.baseUrl}${e}:updateContact`,body:r,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:o};return(await ln.sendRequest(n)).body}});var j$=Oe({auth:Te,name:"search_contact",classification:"SEARCH",description:"Search contacts in Google Contacts account.",audience:"human",aiMetadata:{description:"Searches the authenticated Google Contacts account for people matching a plain-text query, which prefix-matches against contact fields. Use when an agent needs to find a contact or its resourceName before updating it; the query is required and a read mask selects which fields come back (max 30 results). Read-only and idempotent.",idempotent:!0},displayName:"Search Contacts",outputSchema:y$,props:{query:J.ShortText({displayName:"Query",description:'The plain-text query for the request.The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".',required:!0}),readMask:J.StaticMultiSelectDropdown({displayName:"Read Mask",description:"A field mask to restrict which fields on each person are returned.",required:!0,options:{options:[{label:"addresses",value:"addresses"},{label:"ageRanges",value:"ageRanges"},{label:"biographies",value:"biographies"},{label:"birthdays",value:"birthdays"},{label:"calendarUrls",value:"calendarUrls"},{label:"clientData",value:"clientData"},{label:"coverPhotos",value:"coverPhotos"},{label:"emailAddresses",value:"emailAddresses"},{label:"events",value:"events"},{label:"externalIds",value:"externalIds"},{label:"genders",value:"genders"},{label:"imClients",value:"imClients"},{label:"interests",value:"interests"},{label:"locales",value:"locales"},{label:"locations",value:"locations"},{label:"memberships",value:"memberships"},{label:"metadata",value:"metadata"},{label:"miscKeywords",value:"miscKeywords"},{label:"names",value:"names"},{label:"nicknames",value:"nicknames"},{label:"occupations",value:"occupations"},{label:"organizations",value:"organizations"},{label:"phoneNumbers",value:"phoneNumbers"},{label:"photos",value:"photos"},{label:"relations",value:"relations"},{label:"sipAddresses",value:"sipAddresses"},{label:"skills",value:"skills"},{label:"urls",value:"urls"},{label:"userDefined",value:"userDefined"}]},defaultValue:["names","emailAddresses"]}),pageSize:J.Number({displayName:"Page Size",description:"The number of results to return. Maximum 30.",required:!1})},async run(t){let e={query:t.propsValue.query,readMask:t.propsValue.readMask.join(",")};t.propsValue.pageSize&&(e.pageSize=String(t.propsValue.pageSize));let r={method:"GET",url:`${Ao.baseUrl}:searchContacts`,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:e};return(await ln.sendRequest(r)).body}});function Gm({current:t,group:e,overrides:r,defaults:o}){let n=z.readArray({source:t,path:[e]}),i=n[0],s=typeof i=="object"&&i!==null&&!Array.isArray(i)?Object.fromEntries(Object.entries(i)):{};return[{...o,...s,...r},...n.slice(1)]}a(Gm,"mergeFirstEntry");function nZ({input:t,current:e}){let r={},o=[];return(t.firstName!==void 0||t.middleName!==void 0||t.lastName!==void 0)&&(r.names=Gm({current:e,group:"names",overrides:{...t.firstName===void 0?{}:{givenName:t.firstName},...t.middleName===void 0?{}:{middleName:t.middleName},...t.lastName===void 0?{}:{familyName:t.lastName}}}),o.push("names")),t.nickname!==void 0&&(r.nicknames=Gm({current:e,group:"nicknames",overrides:{value:t.nickname}}),o.push("nicknames")),t.clearEmails===!0?(r.emailAddresses=[],o.push("emailAddresses")):t.emails!==void 0&&t.emails.length>0&&(r.emailAddresses=t.emails.map(s=>({value:s})),o.push("emailAddresses")),t.clearPhoneNumbers===!0?(r.phoneNumbers=[],o.push("phoneNumbers")):t.phoneNumbers!==void 0&&t.phoneNumbers.length>0&&(r.phoneNumbers=t.phoneNumbers.map(s=>({value:s})),o.push("phoneNumbers")),(t.company!==void 0||t.jobTitle!==void 0)&&(r.organizations=Gm({current:e,group:"organizations",overrides:{...t.company===void 0?{}:{name:t.company},...t.jobTitle===void 0?{}:{title:t.jobTitle}}}),o.push("organizations")),t.biography!==void 0&&(r.biographies=Gm({current:e,group:"biographies",overrides:{value:t.biography},defaults:{contentType:"TEXT_PLAIN"}}),o.push("biographies")),{person:r,fields:o}}a(nZ,"buildPerson");function F$({person:t,group:e}){return z.readArray({source:t,path:[e]}).map(n=>z.readString({source:n,path:["value"]})).filter(n=>n!==void 0)}a(F$,"valuesOf");function oZ({person:t}){let e=z.readArray({source:t,path:["names"]})[0],r=z.readArray({source:t,path:["organizations"]})[0],o=z.readArray({source:t,path:["metadata","sources"]})[0];return{resourceName:z.readString({source:t,path:["resourceName"]}),etag:z.readString({source:t,path:["etag"]}),displayName:z.readString({source:e,path:["displayName"]}),givenName:z.readString({source:e,path:["givenName"]}),familyName:z.readString({source:e,path:["familyName"]}),emails:F$({person:t,group:"emailAddresses"}),phoneNumbers:F$({person:t,group:"phoneNumbers"}),company:z.readString({source:r,path:["name"]}),jobTitle:z.readString({source:r,path:["title"]}),updateTime:z.readString({source:o,path:["updateTime"]})}}a(oZ,"summarizePerson");var qt={buildPerson:nZ,summarizePerson:oZ};var B$=Oe({auth:Te,name:"create_contact",classification:"WRITE",displayName:"Create Contact",description:"Create a new contact in the connected Google account.",audience:"ai",aiMetadata:{description:'Creates one new person in the connected Google Contacts account from name, nickname, email, phone, organization and notes fields. Supply at least one of name, email or phone; email addresses and phone numbers are arrays of strings, so pass ["ada@example.com"] rather than a bare string. Use Batch Create Contacts for many at once, and Update Contact Fields to change someone who already exists. Not idempotent \u2014 every call creates a separate person, so check with Search Contacts first if duplicates matter.',idempotent:!1},outputSchema:v$,props:{firstName:J.ShortText({displayName:"First Name",required:!1}),middleName:J.ShortText({displayName:"Middle Name",required:!1}),lastName:J.ShortText({displayName:"Last Name",required:!1}),nickname:J.ShortText({displayName:"Nickname",required:!1}),emails:J.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. A single address still has to be wrapped in an array.',required:!1}),phoneNumbers:J.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. A single number still has to be wrapped in an array.',required:!1}),company:J.ShortText({displayName:"Company",required:!1}),jobTitle:J.ShortText({displayName:"Job Title",required:!1}),biography:J.LongText({displayName:"Notes",description:"Free-text notes stored on the contact biography.",required:!1})},async run(t){let e=z.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),r=z.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"}),{person:o,fields:n}=qt.buildPerson({input:{firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:e,phoneNumbers:r,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography}});if(n.length===0)throw new Error("Create Contact needs at least one of first name, last name, email address or phone number.");try{return await z.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:createContact",queryParams:{personFields:z.contactReadMask.join(",")},body:o})}catch(i){throw z.toApiError({error:i,operation:"Create Contact"})}}});var q$=Oe({auth:Te,name:"update_contact_fields",classification:"WRITE",displayName:"Update Contact Fields",description:"Update only the supplied fields on an existing contact.",audience:"ai",aiMetadata:{description:"Updates an existing Google Contacts person, changing only the fields you supply and leaving every other field untouched. It reads the contact first, so it resolves the required etag and field mask itself \u2014 you never pass them. Supply the opaque resourceName from List Contacts or Search Contacts. A non-empty email or phone list replaces the stored list for that field wholesale; first/middle/last name and company/job title are merged over the current values. Leaving a list empty does NOT clear it, because the platform cannot distinguish an untouched list from an emptied one: to remove every email address or every phone number, including the last one, set clearEmails or clearPhoneNumbers to true. Setting a clear flag while also supplying a non-empty list for the same field is rejected. Safe to retry: re-applying the same values converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:P$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),firstName:J.ShortText({displayName:"First Name",required:!1}),middleName:J.ShortText({displayName:"Middle Name",required:!1}),lastName:J.ShortText({displayName:"Last Name",required:!1}),nickname:J.ShortText({displayName:"Nickname",required:!1}),emails:J.Array({displayName:"Email Addresses",description:'Array of email address strings, for example ["ada@example.com"]. Replaces every email address stored on the contact. Leaving it empty keeps the stored addresses; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Email Addresses to remove them.',required:!1}),clearEmails:J.Checkbox({displayName:"Clear Email Addresses",description:"Remove every email address from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Email Addresses list.",required:!1,defaultValue:!1}),phoneNumbers:J.Array({displayName:"Phone Numbers",description:'Array of phone number strings, for example ["+1 555 0100"]. Replaces every phone number stored on the contact. Leaving it empty keeps the stored numbers; it does not clear them, because an untouched list and an emptied one cannot be told apart. Use Clear Phone Numbers to remove them.',required:!1}),clearPhoneNumbers:J.Checkbox({displayName:"Clear Phone Numbers",description:"Remove every phone number from the contact, including the last one. This is the only way to clear them. Cannot be combined with a non-empty Phone Numbers list.",required:!1,defaultValue:!1}),company:J.ShortText({displayName:"Company",required:!1}),jobTitle:J.ShortText({displayName:"Job Title",required:!1}),biography:J.LongText({displayName:"Notes",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.clearEmails===!0,o=t.propsValue.clearPhoneNumbers===!0,n=z.toStringList({value:t.propsValue.emails,label:"Email Addresses"}),i=z.toStringList({value:t.propsValue.phoneNumbers,label:"Phone Numbers"});if(r&&n.length>0)throw new Error("Clear Email Addresses removes every email address, so it cannot be combined with an Email Addresses list. Either clear the list or turn the checkbox off.");if(o&&i.length>0)throw new Error("Clear Phone Numbers removes every phone number, so it cannot be combined with a Phone Numbers list. Either clear the list or turn the checkbox off.");let s={firstName:t.propsValue.firstName,middleName:t.propsValue.middleName,lastName:t.propsValue.lastName,nickname:t.propsValue.nickname,emails:n,phoneNumbers:i,clearEmails:r,clearPhoneNumbers:o,company:t.propsValue.company,jobTitle:t.propsValue.jobTitle,biography:t.propsValue.biography},{fields:u}=qt.buildPerson({input:s});if(u.length===0)throw new Error("Update Contact Fields needs at least one field to change; every field prop was left empty.");let l;try{l=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:u.join(",")}})}catch(m){throw z.toApiError({error:m,operation:"Update Contact Fields (reading the contact)"})}let p=z.readString({source:l,path:["etag"]});if(p===void 0)throw new Error("Update Contact Fields could not read the current etag of the contact; re-read the contact and retry.");let{person:f,fields:y}=qt.buildPerson({input:s,current:l});try{return await z.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContact`,queryParams:{updatePersonFields:y.join(","),personFields:z.contactReadMask.join(",")},body:{etag:p,...f}})}catch(m){throw z.toApiError({error:m,operation:"Update Contact Fields"})}}});var G$=Oe({auth:Te,name:"search_contacts",classification:"SEARCH",displayName:"Search Contacts",description:"Search the connected account contacts by a plain-text query.",audience:"ai",aiMetadata:{description:'Searches the connected Google Contacts account for people whose fields prefix-match a plain-text query and returns each match with its resourceName and etag. Use it to resolve a name, email or phone fragment into a resourceName before an update or delete; use List Contacts to enumerate everything instead. Matching is prefix-only ("foo n" matches "foo name", "oo n" does not) and capped at 30 results. Read-only and safe to retry.',idempotent:!0},outputSchema:E$,props:{query:J.ShortText({displayName:"Query",description:"Plain-text query prefix-matched against contact fields such as name, email and phone number.",required:!0}),pageSize:J.Number({displayName:"Page Size",description:"Number of results to return, maximum 30. Defaults to 30.",required:!1})},async run(t){let e=z.contactReadMask.join(","),r=Math.min(30,Math.max(1,t.propsValue.pageSize??30));try{await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:"",readMask:e,pageSize:"1"}})}catch(o){throw z.toApiError({error:o,operation:"Search Contacts warm-up"})}try{let o=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:searchContacts",queryParams:{query:t.propsValue.query,readMask:e,pageSize:String(r)}}),n=z.readArray({source:o,path:["results"]}).map(i=>qt.summarizePerson({person:z.readValue({source:i,path:["person"]})}));return{results:n,count:n.length}}catch(o){throw z.toApiError({error:o,operation:"Search Contacts"})}}});var V$=Oe({auth:Te,name:"get_contact",classification:"READ",displayName:"Get Contact",description:"Read a single contact by its resource name.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts person by its opaque resourceName (people/{id}) and returns names, emails, phone numbers, organizations, memberships and the current etag. Obtain the resourceName from List Contacts or Search Contacts; do not construct or parse it. Use Batch Get Contacts for more than one contact. Read-only and safe to retry.",idempotent:!0},outputSchema:b$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{return await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{personFields:z.contactReadMask.join(",")}})}catch(r){throw z.toApiError({error:r,operation:"Get Contact"})}}});var iZ=10,H$=Oe({auth:Te,name:"list_contacts",classification:"SEARCH",displayName:"List Contacts",description:"List the contacts of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the connected account contacts with the resourceName and etag every write action needs, plus display name, emails, phone numbers and organization. Use this to resolve a person name to a resourceName before Update Contact Fields, Delete Contact or group membership changes; use Search Contacts when you already have a query string. Read-only and safe to retry.",idempotent:!0},outputSchema:S$,props:{maxResults:J.Number({displayName:"Max Results",description:"Maximum number of contacts to return. Defaults to 200.",required:!1})},async run(t){let e=t.propsValue.maxResults??200,r=[],o;try{for(let i=0;i<iZ;i++){let s=Math.min(1e3,Math.max(1,e-r.length)),u=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people/me/connections",queryParams:{personFields:z.contactReadMask.join(","),pageSize:String(s),pageToken:o}}),l=z.readArray({source:u,path:["connections"]});for(let p of l)r.push(qt.summarizePerson({person:p}));if(o=z.readString({source:u,path:["nextPageToken"]}),o===void 0||r.length>=e)break}}catch(i){throw z.toApiError({error:i,operation:"List Contacts"})}let n=r.slice(0,e);return{contacts:n,count:n.length,hasMore:o!==void 0}}});var Z$=Oe({auth:Te,name:"delete_contact",classification:"DESTRUCTIVE",displayName:"Delete Contact",description:"Permanently delete a contact by its resource name.",audience:"ai",aiMetadata:{description:"Permanently deletes one Google Contacts person by its opaque resourceName (people/{id}). Irreversible \u2014 the People API has no trash, so confirm the contact with Get Contact or List Contacts first; use Batch Delete Contacts for many at once. Not idempotent: a repeat call fails because the contact is already gone.",idempotent:!1},outputSchema:T$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts. Deletion cannot be undone.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim();try{await z.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContact`})}catch(r){throw z.toApiError({error:r,operation:"Delete Contact"})}return{deleted:!0,resourceName:e}}});var W$=Oe({auth:Te,name:"batch_get_contacts",classification:"READ",displayName:"Batch Get Contacts",description:"Read up to 200 contacts in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts people in one call from a list of opaque resourceNames and returns each full contact with its current etag, split into succeeded and failed collections. Use it instead of repeated Get Contact calls, and as the input source for Batch Update Contacts. A whole-call success can still contain per-contact failures, so always read the failed collection. Read-only and safe to retry.",idempotent:!0},outputSchema:A$,props:{resourceNames:J.Array({displayName:"Resource Names",description:"Up to 200 opaque contact resource names such as people/c12345, resolved with List Contacts or Search Contacts.",required:!0})},async run(t){let e=z.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});z.assertBatchSize({values:e,max:200,label:"Resource Names"});let r;try{r=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/people:batchGet",queryParams:{personFields:z.contactReadMask.join(",")},repeatedQueryParams:{resourceNames:e}})}catch(s){throw z.toApiError({error:s,operation:"Batch Get Contacts"})}let o=z.readArray({source:r,path:["responses"]}).map((s,u)=>({resourceName:z.readString({source:s,path:["requestedResourceName"]})??e[u]??"",response:s})),{succeeded:n,failed:i}=z.splitItemResponses({items:o,payloadKey:"person"});return{succeeded:n.map(s=>({resourceName:s.resourceName,contact:qt.summarizePerson({person:s.payload}),person:s.payload})),failed:i,succeededCount:n.length,failedCount:i.length}}});function wi({source:t,key:e}){let r=z.readString({source:t,path:[e]});if(!(r===void 0||r.trim().length===0))return r.trim()}a(wi,"optionalString");var K$=Oe({auth:Te,name:"batch_create_contacts",classification:"WRITE",displayName:"Batch Create Contacts",description:"Create up to 200 contacts in a single call.",audience:"ai",aiMetadata:{description:"Creates up to 200 new Google Contacts people in one call and returns the created contacts split into succeeded and failed collections. Use it instead of repeated Create Contact calls when importing a list; a whole-call success can still contain per-contact failures, so always read the failed collection. Not idempotent \u2014 every call creates new people, so a retry after a partial failure duplicates the ones that already succeeded.",idempotent:!1},outputSchema:w$,props:{contacts:J.Array({displayName:"Contacts",description:"Up to 200 contacts to create. Each needs at least a name, an email or a phone number.",required:!0,properties:{firstName:J.ShortText({displayName:"First Name",required:!1}),middleName:J.ShortText({displayName:"Middle Name",required:!1}),lastName:J.ShortText({displayName:"Last Name",required:!1}),email:J.ShortText({displayName:"Email Address",required:!1}),phoneNumber:J.ShortText({displayName:"Phone Number",required:!1}),company:J.ShortText({displayName:"Company",required:!1}),jobTitle:J.ShortText({displayName:"Job Title",required:!1})}})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must contain at least one entry.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>{let p=wi({source:u,key:"email"}),f=wi({source:u,key:"phoneNumber"}),{person:y,fields:m}=qt.buildPerson({input:{firstName:wi({source:u,key:"firstName"}),middleName:wi({source:u,key:"middleName"}),lastName:wi({source:u,key:"lastName"}),emails:p===void 0?[]:[p],phoneNumbers:f===void 0?[]:[f],company:wi({source:u,key:"company"}),jobTitle:wi({source:u,key:"jobTitle"})}});if(m.length===0)throw new Error(`Contact ${l+1} needs at least one of first name, last name, email address or phone number.`);return{contactPerson:y}}),o;try{o=await z.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchCreateContacts",body:{contacts:r,readMask:z.contactReadMask.join(",")}})}catch(u){throw z.toApiError({error:u,operation:"Batch Create Contacts"})}let n=z.readArray({source:o,path:["createdPeople"]}),i=n.map((u,l)=>({item:u,index:l})).filter(u=>!z.isFailedItem({response:u.item})).map(u=>{let l=z.readValue({source:u.item,path:["person"]});return{requestIndex:u.index+1,resourceName:z.readString({source:l,path:["resourceName"]}),contact:qt.summarizePerson({person:l})}}),s=n.map((u,l)=>({item:u,index:l})).filter(u=>z.isFailedItem({response:u.item})).map(u=>({requestIndex:u.index+1,status:z.describeStatus({status:z.readValue({source:u.item,path:["status"]})})}));return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,requestedCount:r.length}}});function aZ({entry:t,index:e}){let r=z.readRecord({source:t,path:[]});if(r===void 0)throw new Error(`Contact ${e+1} must be a Person object.`);let o=z.readString({source:r,path:["resourceName"]}),n=z.readString({source:r,path:["etag"]});if(o===void 0||n===void 0)throw new Error(`Contact ${e+1} must carry both resourceName and etag exactly as returned by Batch Get Contacts.`);let i=Object.keys(r).filter(u=>z.updatablePersonFields.includes(u)),s=Object.fromEntries(Object.entries(r).filter(([u])=>u==="etag"||u==="resourceName"||z.updatablePersonFields.includes(u)));return{resourceName:o,person:s,fields:i}}a(aZ,"toPerson");function sZ({parsed:t}){let e=new Map;for(let r of t){let o=[...r.fields].sort().join(","),n=e.get(o);n===void 0?e.set(o,{[r.resourceName]:r.person}):n[r.resourceName]=r.person}return[...e.entries()].map(([r,o])=>({updateMask:r,contacts:o}))}a(sZ,"groupBySignature");var J$=Oe({auth:Te,name:"batch_update_contacts",classification:"WRITE",displayName:"Batch Update Contacts",description:"Update up to 200 contacts in a single call from full Person objects.",audience:"ai",aiMetadata:{description:"Updates up to 200 Google Contacts people in one call. Feed it the full Person objects returned by Batch Get Contacts, each still carrying its own resourceName and etag, with the values you want changed edited in place. The people are grouped by which field groups they carry and one request is issued per group, so a person carrying only a phone number and a person carrying only an email can be updated together; each request uses the field mask of its own group. Within a group the mask is applied to every person in it, so never hand-build partial Person objects here \u2014 a group a person no longer carries is erased on that person. Prefer Update Contact Fields for a single contact. Because the work is split across requests, this action can partially apply: one group can be written while another is rejected outright. It therefore does not throw when a request fails \u2014 it records every contact in that request under failed and carries on. Never treat a returned result as wholesale success and never assume an absent error means everything applied; always read failed and failedCount, which also cover per-contact rejections such as stale etags. Every submitted person must carry at least one updatable field group. Before retrying, re-read the people so the already-updated ones carry fresh etags.",idempotent:!0},outputSchema:I$,props:{contacts:J.Json({displayName:"Contacts",description:"JSON array of up to 200 full Person objects taken from Batch Get Contacts, each keeping its resourceName and etag, with the fields to change edited in place.",required:!0})},async run(t){let e=t.propsValue.contacts;if(!Array.isArray(e)||e.length===0)throw new Error("Contacts must be a JSON array holding at least one Person object.");if(e.length>200)throw new Error(`Contacts accepts at most 200 entries, received ${e.length}.`);let r=e.map((u,l)=>aZ({entry:u,index:l})),o=r.filter(u=>u.fields.length===0).map(u=>u.resourceName);if(o.length>0)throw new Error(`Every submitted person must carry at least one updatable field group, because a person with no group has nothing to update. These people carry none: ${o.join(", ")}.`);let n=sZ({parsed:r}),i=[],s=[];for(let u of n){let l;try{l=await z.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchUpdateContacts",body:{contacts:u.contacts,updateMask:u.updateMask,readMask:z.contactReadMask.join(",")}})}catch(m){let h=z.toApiError({error:m,operation:`Batch Update Contacts (field mask ${u.updateMask})`}).message;for(let _ of Object.keys(u.contacts))s.push({resourceName:_,status:h,updateMask:u.updateMask});continue}let p=z.readRecord({source:l,path:["updateResult"]}),f=Object.entries(p??{}).map(([m,h])=>({resourceName:m,response:h})),y=z.splitItemResponses({items:f,payloadKey:"person"});for(let m of y.succeeded)i.push({resourceName:m.resourceName,contact:qt.summarizePerson({person:m.payload}),person:m.payload});for(let m of y.failed)s.push({resourceName:m.resourceName,status:m.status,updateMask:u.updateMask})}return{succeeded:i,failed:s,succeededCount:i.length,failedCount:s.length,updateMasks:n.map(u=>u.updateMask)}}});var X$=Oe({auth:Te,name:"batch_delete_contacts",classification:"DESTRUCTIVE",displayName:"Batch Delete Contacts",description:"Permanently delete up to 500 contacts in a single call.",audience:"ai",aiMetadata:{description:"Permanently deletes up to 500 Google Contacts people in one call from a list of opaque resourceNames. Irreversible and unrecoverable \u2014 the People API has no trash and there is no per-contact confirmation in the response, so verify every resourceName with Batch Get Contacts or List Contacts before calling and prefer Delete Contact when removing a single person. Not idempotent: a repeat call fails on contacts that are already gone.",idempotent:!1},outputSchema:x$,props:{resourceNames:J.Array({displayName:"Resource Names",description:"Up to 500 opaque contact resource names such as people/c12345. Every listed contact is deleted permanently and cannot be restored.",required:!0})},async run(t){let e=z.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});z.assertBatchSize({values:e,max:500,label:"Resource Names"});try{await z.sendRequest({accessToken:t.auth.access_token,method:"POST",path:"/people:batchDeleteContacts",body:{resourceNames:e}})}catch(r){throw z.toApiError({error:r,operation:"Batch Delete Contacts"})}return{deleted:!0,resourceNames:e,count:e.length}}});var Y$="base64,",Q$=Oe({auth:Te,name:"update_contact_photo",classification:"WRITE",displayName:"Update Contact Photo",description:"Set the photo of an existing contact from base64 image bytes.",audience:"ai",aiMetadata:{description:"Replaces the photo of one Google Contacts person with the supplied base64-encoded JPEG, PNG or WebP image. Supply the opaque resourceName from List Contacts or Search Contacts; use Delete Contact Photo to remove a photo instead. Safe to retry \u2014 re-sending the same bytes converges on the same photo.",idempotent:!0},outputSchema:C$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),photoBytes:J.LongText({displayName:"Photo Bytes",description:"Base64-encoded JPEG, PNG or WebP image. A data URL prefix is accepted and stripped.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.photoBytes.trim(),o=r.indexOf(Y$),n=o===-1?r:r.slice(o+Y$.length);if(n.length===0)throw new Error("Update Contact Photo needs base64-encoded image bytes.");let i;try{i=await z.sendRequest({accessToken:t.auth.access_token,method:"PATCH",path:`/${e}:updateContactPhoto`,body:{photoBytes:n,personFields:z.contactReadMask.join(",")}})}catch(u){throw z.toApiError({error:u,operation:"Update Contact Photo"})}let s=z.readRecord({source:i,path:["person"]});if(s===void 0)throw new Error("Update Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was set.");return s}});var eD=Oe({auth:Te,name:"delete_contact_photo",classification:"WRITE",displayName:"Delete Contact Photo",description:"Remove the photo of an existing contact.",audience:"ai",aiMetadata:{description:"Removes the photo from one Google Contacts person, leaving the rest of the contact untouched. Supply the opaque resourceName from List Contacts or Search Contacts; use Update Contact Photo to set a new image instead. The removed image is not recoverable through this API.",idempotent:!1},outputSchema:R$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r;try{r=await z.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}:deleteContactPhoto`,queryParams:{personFields:z.contactReadMask.join(",")}})}catch(n){throw z.toApiError({error:n,operation:"Delete Contact Photo"})}let o=z.readRecord({source:r,path:["person"]});if(o===void 0)throw new Error("Delete Contact Photo could not read the updated contact back from Google Contacts; re-read the contact with Get Contact to confirm the photo was removed.");return o}});function cZ({group:t}){let e=z.readValue({source:t,path:["memberCount"]});return{resourceName:z.readString({source:t,path:["resourceName"]}),etag:z.readString({source:t,path:["etag"]}),name:z.readString({source:t,path:["name"]}),formattedName:z.readString({source:t,path:["formattedName"]}),groupType:z.readString({source:t,path:["groupType"]}),memberCount:typeof e=="number"?e:0,memberResourceNames:z.readArray({source:t,path:["memberResourceNames"]}).filter(r=>typeof r=="string")}}a(cZ,"summarizeGroup");function uZ({group:t,name:e}){let r=e.trim().toLowerCase(),o=z.readString({source:t,path:["name"]}),n=z.readString({source:t,path:["formattedName"]});return o?.trim().toLowerCase()===r||n?.trim().toLowerCase()===r}a(uZ,"matchesName");var xr={summarizeGroup:cZ,matchesName:uZ};var lZ=10,tD=Oe({auth:Te,name:"list_contact_groups",classification:"SEARCH",displayName:"List Contact Groups",description:"List every contact group of the connected Google account.",audience:"ai",aiMetadata:{description:"Lists the contact groups (labels) of the connected Google account with the opaque resourceName, name, type and member count of each. Use it to resolve a group name to its resourceName before Get Contact Group, Update Contact Group, Delete Contact Group or Add Or Remove Contact Group Members. Member resource names are not included here \u2014 read a single group with Get Contact Group for those. Read-only and safe to retry.",idempotent:!0},outputSchema:O$,props:{},async run(t){let e=[],r;try{for(let o=0;o<lZ;o++){let n=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups",queryParams:{groupFields:z.contactGroupFields.join(","),pageSize:"1000",pageToken:r}});for(let i of z.readArray({source:n,path:["contactGroups"]}))e.push(xr.summarizeGroup({group:i}));if(r=z.readString({source:n,path:["nextPageToken"]}),r===void 0)break}}catch(o){throw z.toApiError({error:o,operation:"List Contact Groups"})}return{contactGroups:e,count:e.length,hasMore:r!==void 0}}});var rD=Oe({auth:Te,name:"get_contact_group",classification:"READ",displayName:"Get Contact Group",description:"Read one contact group, optionally with its member resource names.",audience:"ai",aiMetadata:{description:"Reads one Google Contacts group by its opaque resourceName (contactGroups/{id}) and returns its name, type, member count and, when Max Members is above zero, the resource names of its members. Resolve the resourceName with List Contact Groups; use Batch Get Contact Groups for several groups. Read-only and safe to retry.",idempotent:!0},outputSchema:k$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, or a system group like contactGroups/myContacts. Resolve it with List Contact Groups.",required:!0}),maxMembers:J.Number({displayName:"Max Members",description:"How many member resource names to return. Defaults to 0, which returns none.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=Math.max(0,t.propsValue.maxMembers??0);try{let o=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:z.contactGroupFields.join(","),maxMembers:String(r)}});return xr.summarizeGroup({group:o})}catch(o){throw z.toApiError({error:o,operation:"Get Contact Group"})}}});var nD=Oe({auth:Te,name:"batch_get_contact_groups",classification:"READ",displayName:"Batch Get Contact Groups",description:"Read up to 200 contact groups in one call by their resource names.",audience:"ai",aiMetadata:{description:"Reads up to 200 Google Contacts groups in one call from a list of opaque resourceNames, returning succeeded and failed collections. Use it instead of repeated Get Contact Group calls; a whole-call success can still contain per-group failures, so always read the failed collection. Resolve the resource names with List Contact Groups. Read-only and safe to retry.",idempotent:!0},outputSchema:$$,props:{resourceNames:J.Array({displayName:"Resource Names",description:"Up to 200 opaque contact group resource names such as contactGroups/abc123, resolved with List Contact Groups.",required:!0}),maxMembers:J.Number({displayName:"Max Members",description:"How many member resource names to return per group. Defaults to 0, which returns none.",required:!1})},async run(t){let e=z.toStringList({value:t.propsValue.resourceNames,label:"Resource Names"});z.assertBatchSize({values:e,max:200,label:"Resource Names"});let r=Math.max(0,t.propsValue.maxMembers??0),o;try{o=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:"/contactGroups:batchGet",queryParams:{groupFields:z.contactGroupFields.join(","),maxMembers:String(r)},repeatedQueryParams:{resourceNames:e}})}catch(u){throw z.toApiError({error:u,operation:"Batch Get Contact Groups"})}let n=z.readArray({source:o,path:["responses"]}).map((u,l)=>({resourceName:z.readString({source:u,path:["requestedResourceName"]})??e[l]??"",response:u})),{succeeded:i,failed:s}=z.splitItemResponses({items:n,payloadKey:"contactGroup"});return{succeeded:i.map(u=>xr.summarizeGroup({group:u.payload})),failed:s,succeededCount:i.length,failedCount:s.length}}});var dZ=10;async function oD({accessToken:t,name:e}){let r;for(let o=0;o<dZ;o++){let n=await z.sendRequest({accessToken:t,method:"GET",path:"/contactGroups",queryParams:{groupFields:z.contactGroupFields.join(","),pageSize:"1000",pageToken:r}}),i=z.readArray({source:n,path:["contactGroups"]}).find(s=>xr.matchesName({group:s,name:e}));if(i!==void 0)return i;if(r=z.readString({source:n,path:["nextPageToken"]}),r===void 0)return}}a(oD,"findGroupByName");var iD=Oe({auth:Te,name:"create_contact_group",classification:"WRITE",displayName:"Create Contact Group",description:"Create a contact group, or return the existing one with that name.",audience:"ai",aiMetadata:{description:"Creates a contact group (label) with the given name in the connected Google account, or returns the existing group when one already carries that name, reporting which happened through the created flag. Use it before Add Or Remove Contact Group Members when the target group may not exist yet. Safe to retry: the lookup runs first and a duplicate-name rejection is resolved by returning the existing group.",idempotent:!0},outputSchema:D$,props:{name:J.ShortText({displayName:"Group Name",description:"Name of the contact group to find or create.",required:!0})},async run(t){let e=t.propsValue.name.trim();if(e.length===0)throw new Error("Group Name must not be empty.");let r=t.auth.access_token;try{let o=await oD({accessToken:r,name:e});if(o!==void 0)return{created:!1,contactGroup:xr.summarizeGroup({group:o})}}catch(o){throw z.toApiError({error:o,operation:"Create Contact Group (looking up existing groups)"})}try{let o=await z.sendRequest({accessToken:r,method:"POST",path:"/contactGroups",body:{contactGroup:{name:e},readGroupFields:z.contactGroupFields.join(",")}});return{created:!0,contactGroup:xr.summarizeGroup({group:o})}}catch(o){if(!z.isConflict({error:o}))throw z.toApiError({error:o,operation:"Create Contact Group"});let n=await oD({accessToken:r,name:e});if(n===void 0)throw z.toApiError({error:o,operation:"Create Contact Group"});return{created:!1,contactGroup:xr.summarizeGroup({group:n})}}}});var aD=Oe({auth:Te,name:"update_contact_group",classification:"WRITE",displayName:"Update Contact Group",description:"Rename an existing user-created contact group.",audience:"ai",aiMetadata:{description:"Renames one user-created Google Contacts group identified by its opaque resourceName (contactGroups/{id}). It reads the group first to resolve the required etag and sends an explicit name-only field mask, so members and other group data are untouched. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be renamed. Safe to retry: re-applying the same name converges, and a concurrent edit surfaces as a re-read-and-retry error.",idempotent:!0},outputSchema:N$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),name:J.ShortText({displayName:"New Group Name",required:!0})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.name.trim();if(r.length===0)throw new Error("New Group Name must not be empty.");let o=z.contactGroupFields.join(","),n;try{n=await z.sendRequest({accessToken:t.auth.access_token,method:"GET",path:`/${e}`,queryParams:{groupFields:o,maxMembers:"0"}})}catch(s){throw z.toApiError({error:s,operation:"Update Contact Group (reading the group)"})}let i=z.readString({source:n,path:["etag"]});if(i===void 0)throw new Error("Update Contact Group could not read the current etag of the group; re-read the group and retry.");try{let s=await z.sendRequest({accessToken:t.auth.access_token,method:"PUT",path:`/${e}`,body:{contactGroup:{etag:i,name:r},updateGroupFields:"name",readGroupFields:o}});return xr.summarizeGroup({group:s})}catch(s){throw z.toApiError({error:s,operation:"Update Contact Group"})}}});var sD=Oe({auth:Te,name:"delete_contact_group",classification:"DESTRUCTIVE",displayName:"Delete Contact Group",description:"Delete a user-created contact group.",audience:"ai",aiMetadata:{description:"Deletes one user-created Google Contacts group by its opaque resourceName (contactGroups/{id}). By default only the group is removed and its members stay in the address book; turning on Delete Contacts also permanently deletes every contact in the group, which cannot be undone. Resolve the resourceName with List Contact Groups; Google-managed system groups cannot be deleted. Not idempotent: a repeat call fails because the group is already gone.",idempotent:!1},outputSchema:z$,props:{resourceName:J.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),deleteContacts:J.Checkbox({displayName:"Also Delete Contacts",description:"When enabled, every contact in the group is permanently deleted as well. Leave off to remove only the group.",required:!1,defaultValue:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=t.propsValue.deleteContacts===!0;try{await z.sendRequest({accessToken:t.auth.access_token,method:"DELETE",path:`/${e}`,queryParams:{deleteContacts:String(r)}})}catch(o){throw z.toApiError({error:o,operation:"Delete Contact Group"})}return{deleted:!0,resourceName:e,deletedContacts:r}}});var cD=Oe({auth:Te,name:"modify_contact_group_members",classification:"WRITE",displayName:"Add Or Remove Contact Group Members",description:"Add contacts to a contact group or remove them from it.",audience:"ai",aiMetadata:{description:"Adds contacts to a Google Contacts group and removes contacts from it in one call, taking opaque people/{id} resource names resolved with List Contacts or Search Contacts and a contactGroups/{id} group resolved with List Contact Groups. Additions are accepted by user-created groups and by the system groups contactGroups/myContacts and contactGroups/starred only; other system groups accept removals only. Combined additions and removals are capped at 1000, and the response reports contacts that were not found. Safe to retry \u2014 re-applying the same membership changes converges.",idempotent:!0},outputSchema:U$,props:{resourceName:J.ShortText({displayName:"Contact Group Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123, contactGroups/myContacts or contactGroups/starred. Resolve it with List Contact Groups.",required:!0}),resourceNamesToAdd:J.Array({displayName:"Contacts To Add",description:"Opaque contact resource names such as people/c12345 to add to the group.",required:!1}),resourceNamesToRemove:J.Array({displayName:"Contacts To Remove",description:"Opaque contact resource names such as people/c12345 to remove from the group.",required:!1})},async run(t){let e=t.propsValue.resourceName.trim(),r=z.toStringList({value:t.propsValue.resourceNamesToAdd,label:"Contacts To Add"}),o=z.toStringList({value:t.propsValue.resourceNamesToRemove,label:"Contacts To Remove"}),n=r.length+o.length;if(n===0)throw new Error("Add Or Remove Contact Group Members needs at least one contact to add or remove.");if(n>1e3)throw new Error(`Contacts to add and remove are capped at 1000 combined, received ${n}.`);if(r.length>0&&z.systemGroupsRejectingAdds.includes(e))throw new Error(`The system group ${e} does not accept added members; only contactGroups/myContacts, contactGroups/starred and user-created groups do.`);let i;try{i=await z.sendRequest({accessToken:t.auth.access_token,method:"POST",path:`/${e}/members:modify`,body:{resourceNamesToAdd:r,resourceNamesToRemove:o}})}catch(l){throw z.toApiError({error:l,operation:"Add Or Remove Contact Group Members"})}let s=z.readArray({source:i,path:["notFoundResourceNames"]}).filter(l=>typeof l=="string"),u=z.readArray({source:i,path:["canNotRemoveLastContactGroupResourceNames"]}).filter(l=>typeof l=="string");return{resourceName:e,added:r.filter(l=>!s.includes(l)),removed:o.filter(l=>!s.includes(l)&&!u.includes(l)),notFoundResourceNames:s,canNotRemoveLastContactGroupResourceNames:u}}});var Az=xt(Tz()),wz=xt(xz());var uh={strategy:0,items:a(async({store:t,auth:e})=>{let r=(0,Az.people)({version:"v1",auth:f$(e)}),o,n=[];do{let i=await r.people.connections.list({resourceName:"people/me",pageToken:o,pageSize:100,sortOrder:"LAST_MODIFIED_DESCENDING",personFields:["addresses","ageRanges","biographies","birthdays","calendarUrls","clientData","coverPhotos","emailAddresses","events","externalIds","genders","imClients","interests","locales","locations","memberships","metadata","miscKeywords","names","nicknames","occupations","organizations","phoneNumbers","photos","relations","sipAddresses","skills","urls","userDefined"].join()});for(let s of i.data.connections||[])s.metadata?.deleted!==!0&&n.push({data:s,epochMilliSeconds:(0,wz.default)(s.metadata?.sources?.[0].updateTime).valueOf()});o=i.data.nextPageToken}while(o);return n},"items")},Iz=$I({auth:Te,name:"new_or_updated_contact",classification:"READ",displayName:"New Or Updated Contact",description:"Triggers when there is a new or updated contact",aiMetadata:{description:"Fires when a contact in the authenticated Google Contacts account is newly created or has been modified since the last poll. Each event represents one person record with its current fields; deleted contacts are excluded."},props:{},outputSchema:_$,sampleData:{resourceName:"people/c4278485694217203807",etag:"%EiMBAgMFBgcICQoLDA0ODxATFBUWGSEiIyQlJicuNDU3PT4/QBoEAQIFByIMZFVwNlJPNEVKUzg9",metadata:{sources:[{type:"CONTACT",id:"3b603c120c68305f",etag:"#dUp6RO4EJS8=",updateTime:"2023-01-30T14:35:18.142565Z"}],objectType:"PERSON"},names:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},displayName:"Shahed Mashni",familyName:"Mashni",givenName:"Shahed",displayNameLastFirst:"Mashni, Shahed",unstructuredName:"Shahed Mashni"}],photos:[{metadata:{primary:!0,source:{type:"CONTACT",id:"3b603c120c68305f"}},url:"https://lh3.googleusercontent.com/cm/AAkddurmZojs4vCcxrpkfSxH9tnqcH-hI82ESDnwv6eq86nZeLStcjYEIe_TCx8r8g5Y=s100",default:!0}],memberships:[{metadata:{source:{type:"CONTACT",id:"3b603c120c68305f"}},contactGroupMembership:{contactGroupId:"myContacts",contactGroupResourceName:"contactGroups/myContacts"}}]},type:"POLLING",async onEnable(t){return await bu.onEnable(uh,t)},async onDisable(t){return await bu.onDisable(uh,t)},async run(t){return await bu.poll(uh,t)},test:a(async t=>await bu.test(uh,t),"test")});var k3=UI({minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/google-contacts.png",categories:["SALES_AND_CRM"],actions:[M$,L$,j$,B$,q$,G$,V$,H$,Z$,W$,K$,J$,X$,Q$,eD,tD,rD,nD,iD,aD,sD,cD,oO({baseUrl:a(()=>Ao.baseUrl,"baseUrl"),auth:Te,authMapping:a(async t=>({Authorization:`Bearer ${t.access_token}`}),"authMapping")})],displayName:"Google Contacts",description:"Stay connected and organized",authors:["Abdallah-Alwarawreh","Salem-Alaa","kishanprmr","MoShizzle","khaledmashaly","abuaboud","ikus060"],triggers:[Iz],auth:Te});0&&(module.exports={googleContacts});
|
|
108
108
|
/*! Bundled license information:
|
|
109
109
|
|
|
110
110
|
mime-types/index.js:
|