@activepieces/piece-google-contacts 0.5.0 → 0.5.2
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/de.json +84 -7
- package/src/i18n/es.json +84 -7
- package/src/i18n/fr.json +84 -7
- package/src/i18n/ja.json +90 -13
- package/src/i18n/nl.json +84 -7
- package/src/i18n/pt.json +84 -7
- package/src/i18n/translation.json +84 -7
- package/src/i18n/zh.json +84 -7
- package/src/index.js +61 -61
package/src/index.js
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
"use strict";var yD=Object.create;var is=Object.defineProperty;var _D=Object.getOwnPropertyDescriptor;var vD=Object.getOwnPropertyNames;var bD=Object.getPrototypeOf,SD=Object.prototype.hasOwnProperty;var a=(t,e)=>is(t,"name",{value:e,configurable:!0});var Tt=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(o){throw n=[o],o}};var N=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},nr=(t,e)=>{for(var n in e)is(t,n,{get:e[n],enumerable:!0})},gx=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of vD(e))!SD.call(t,r)&&r!==n&&is(t,r,{get:()=>e[r],enumerable:!(o=_D(e,r))||o.enumerable});return t};var St=(t,e,n)=>(n=t!=null?yD(bD(t)):{},gx(e||!t||!t.__esModule?is(n,"default",{value:t,enumerable:!0}):n,t)),ED=t=>gx(is({},"__esModule",{value:!0}),t);var RT=N((IT,vp)=>{(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={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"),r=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 E=0,P=-1,x=(h.match(u.zoneIndex)||[])[0],z,M;for(x&&(x=x.substring(1),h=h.replace(/%.+$/,""));(P=h.indexOf(":",P+1))>=0;)E++;if(h.substr(0,2)==="::"&&E--,h.substr(-2,2)==="::"&&E--,E>_)return null;for(M=_-E,z=":";M--;)z+="0:";return h=h.replace("::",z),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let K=h.split(":"),Z=[];for(let J=0;J<K.length;J++)Z.push(parseInt(K[J],16));return Z})(),{parts:_,zoneId:x}}a(l,"expandIPv6");function p(h,_,E,P){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,z;for(;P>0;){if(z=E-P,z<0&&(z=0),h[x]>>z!==_[x]>>z)return!1;P-=E,x+=1}return!0}a(p,"matchCIDR");function f(h){if(r.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 E,P;for(E=0;E<_.length;E++)if(P=_[E],!(0<=P&&P<=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(_,E){let P;if(E===void 0&&(P=_,_=P[0],E=P[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,P={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,z,M;for(x=3;x>=0;x-=1)if(z=this.octets[x],z in P){if(M=P[z],E&&M!==0)return null;M!==8&&(E=!0),_+=M}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),E=_[0].toByteArray(),P=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],z=0;for(;z<4;)x.push(parseInt(E[z],10)|parseInt(P[z],10)^255),z++;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 _,E,P,x,z;try{for(_=this.parseCIDR(h),P=_[0].toByteArray(),z=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],E=0;E<4;)x.push(parseInt(P[E],10)&parseInt(z[E],10)),E++;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 E=parseInt(_[2]);if(E>=0&&E<=32){let P=[this.parse(_[1]),E];return Object.defineProperty(P,"toString",{value:a(function(){return this.join("/")},"value")}),P}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,E,P;if(_=h.match(n.fourOctet))return(function(){let x=_.slice(1,6),z=[];for(let M=0;M<x.length;M++)E=x[M],z.push(f(E));return z})();if(_=h.match(n.longValue)){if(P=f(_[1]),P>4294967295||P<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],z;for(z=0;z<=24;z+=8)x.push(P>>z&255);return x})().reverse()}else return(_=h.match(n.twoOctet))?(function(){let x=_.slice(1,4),z=[];if(P=f(x[1]),P>16777215||P<0)throw new Error("ipaddr: address outside defined range");return z.push(f(x[0])),z.push(P>>16&255),z.push(P>>8&255),z.push(P&255),z})():(_=h.match(n.threeOctet))?(function(){let x=_.slice(1,5),z=[];if(P=f(x[2]),P>65535||P<0)throw new Error("ipaddr: address outside defined range");return z.push(f(x[0])),z.push(f(x[1])),z.push(P>>8&255),z.push(P&255),z})():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],E=0,P=Math.floor(h/8);for(;E<P;)_[E]=255,E++;return P<4&&(_[P]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,E){let P,x;if(_.length===16)for(this.parts=[],P=0;P<=14;P+=2)this.parts.push(_[P]<<8|_[P+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(P=0;P<this.parts.length;P++)if(x=this.parts[P],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");E&&(this.zoneId=E)}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(_,E){let P;if(E===void 0&&(P=_,_=P[0],E=P[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,P={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,z;for(let M=7;M>=0;M-=1)if(x=this.parts[M],x in P){if(z=P[x],E&&z!==0)return null;z!==16&&(E=!0),_+=z}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,E=[],P=this.parts;for(let x=0;x<P.length;x++)_=P[x],E.push(_>>8),E.push(_&255);return E},h.prototype.toFixedLengthString=function(){let _=(function(){let P=[];for(let x=0;x<this.parts.length;x++)P.push(y(this.parts[x].toString(16),4));return P}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},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),E=_[0],P=_[1];return new m.IPv4([E>>8,E&255,P>>8,P&255])},h.prototype.toNormalizedString=function(){let _=(function(){let P=[];for(let x=0;x<this.parts.length;x++)P.push(this.parts[x].toString(16));return P}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,E=this.toNormalizedString(),P=0,x=-1,z;for(;z=_.exec(E);)z[0].length>x&&(P=z.index,x=z[0].length);return x<0?E:`${E.substring(0,P)}::${E.substring(P+x)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),E=_[0].toByteArray(),P=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],z=0;for(;z<16;)x.push(parseInt(E[z],10)|parseInt(P[z],10)^255),z++;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 _,E,P,x,z;try{for(_=this.parseCIDR(h),P=_[0].toByteArray(),z=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),x=[],E=0;E<16;)x.push(parseInt(P[E],10)&parseInt(z[E],10)),E++;return new this(x)}catch(M){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${M})`)}},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 _,E,P;if((E=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(E[2]),_>=0&&_<=128))return P=[this.parse(E[1]),_],Object.defineProperty(P,"toString",{value:a(function(){return this.join("/")},"value")}),P;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,E,P,x,z,M;if(P=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${P[1]}`);if(u.native.test(h))return l(h,8);if((P=h.match(u.transitional))&&(M=P[6]||"",_=P[1],P[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+M,6),_.parts)){for(z=[parseInt(P[2]),parseInt(P[3]),parseInt(P[4]),parseInt(P[5])],E=0;E<z.length;E++)if(x=z[E],!(0<=x&&x<=255))return null;return _.parts.push(z[0]<<8|z[1]),_.parts.push(z[2]<<8|z[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],E=0,P=Math.floor(h/8);for(;E<P;)_[E]=255,E++;return P<16&&(_[P]=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,_,E){let P,x,z,M;E==null&&(E="unicast");for(x in _)if(Object.prototype.hasOwnProperty.call(_,x)){for(z=_[x],z[0]&&!(z[0]instanceof Array)&&(z=[z]),P=0;P<z.length;P++)if(M=z[P],h.kind()===M[0].kind()&&h.match.apply(h,M))return x}return E},typeof vp<"u"&&vp.exports?vp.exports=m:t.ipaddr=m})(IT)});var Qw=N((vee,Yw)=>{var Xw=require("stream").Stream,fL=require("util");Yw.exports=Fr;function Fr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Fr,"DelayedStream");fL.inherits(Fr,Xw);Fr.create=function(t,e){var n=new this;e=e||{};for(var o in e)n[o]=e[o];n.source=t;var r=t.emit;return t.emit=function(){return n._handleEmit(arguments),r.apply(t,arguments)},t.on("error",function(){}),n.pauseStream&&t.pause(),n};Object.defineProperty(Fr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Fr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Fr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Fr.prototype.pause=function(){this.source.pause()};Fr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Fr.prototype.pipe=function(){var t=Xw.prototype.pipe.apply(this,arguments);return this.resume(),t};Fr.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)};Fr.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 nI=N((See,rI)=>{var mL=require("util"),tI=require("stream").Stream,eI=Qw();rI.exports=pt;function pt(){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(pt,"CombinedStream");mL.inherits(pt,tI);pt.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};pt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};pt.prototype.append=function(t){var e=pt.isStreamLike(t);if(e){if(!(t instanceof eI)){var n=eI.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=n}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};pt.prototype.pipe=function(t,e){return tI.prototype.pipe.call(this,t,e),this.resume(),t};pt.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}};pt.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(n){var o=pt.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};pt.prototype._pipeNext=function(t){this._currentStream=t;var e=pt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var n=t;this.write(n),this._getNext()};pt.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};pt.prototype.write=function(t){this.emit("data",t)};pt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};pt.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")};pt.prototype.end=function(){this._reset(),this.emit("end")};pt.prototype.destroy=function(){this._reset(),this.emit("close")};pt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};pt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};pt.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)};pt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var iI=N((Pee,oI)=>{"use strict";oI.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 cI=N(Jt=>{"use strict";var af=iI(),hL=require("path").extname,aI=/^\s*([^;\s]*)(?:;|\s|$)/,gL=/^text\//i;Jt.charset=sI;Jt.charsets={lookup:sI};Jt.contentType=yL;Jt.extension=_L;Jt.extensions=Object.create(null);Jt.lookup=vL;Jt.types=Object.create(null);bL(Jt.extensions,Jt.types);function sI(t){if(!t||typeof t!="string")return!1;var e=aI.exec(t),n=e&&af[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&gL.test(e[1])?"UTF-8":!1}a(sI,"charset");function yL(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Jt.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=Jt.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}a(yL,"contentType");function _L(t){if(!t||typeof t!="string")return!1;var e=aI.exec(t),n=e&&Jt.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}a(_L,"extension");function vL(t){if(!t||typeof t!="string")return!1;var e=hL("x."+t).toLowerCase().substr(1);return e&&Jt.types[e]||!1}a(vL,"lookup");function bL(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(af).forEach(a(function(r){var i=af[r],s=i.extensions;if(!(!s||!s.length)){t[r]=s;for(var u=0;u<s.length;u++){var l=s[u];if(e[l]){var p=n.indexOf(af[e[l]].source),f=n.indexOf(i.source);if(e[l]!=="application/octet-stream"&&(p>f||p===f&&e[l].substr(0,12)==="application/"))continue}e[l]=r}}},"forEachMimeType"))}a(bL,"populateMaps")});var lI=N((Aee,uI)=>{uI.exports=SL;function SL(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}a(SL,"defer")});var Zv=N((Iee,pI)=>{var dI=lI();pI.exports=EL;function EL(t){var e=!1;return dI(function(){e=!0}),a(function(o,r){e?t(o,r):dI(a(function(){t(o,r)},"nextTick_callback"))},"async_callback")}a(EL,"async")});var Hv=N((Oee,fI)=>{fI.exports=PL;function PL(t){Object.keys(t.jobs).forEach(xL.bind(t)),t.jobs={}}a(PL,"abort");function xL(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}a(xL,"clean")});var Gv=N(($ee,hI)=>{var mI=Zv(),TL=Hv();hI.exports=AL;function AL(t,e,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=wL(e,r,t[r],function(i,s){r in n.jobs&&(delete n.jobs[r],i?TL(n):n.results[r]=s,o(i,n.results))})}a(AL,"iterate");function wL(t,e,n,o){var r;return t.length==2?r=t(n,mI(o)):r=t(n,e,mI(o)),r}a(wL,"runJob")});var Wv=N((Nee,gI)=>{gI.exports=IL;function IL(t,e){var n=!Array.isArray(t),o={index:0,keyedList:n||e?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};return e&&o.keyedList.sort(n?e:function(r,i){return e(t[r],t[i])}),o}a(IL,"state")});var Jv=N((Dee,yI)=>{var RL=Hv(),OL=Zv();yI.exports=CL;function CL(t){Object.keys(this.jobs).length&&(this.index=this.size,RL(this),OL(t)(null,this.results))}a(CL,"terminator")});var vI=N((Mee,_I)=>{var $L=Gv(),kL=Wv(),NL=Jv();_I.exports=zL;function zL(t,e,n){for(var o=kL(t);o.index<(o.keyedList||t).length;)$L(t,e,o,function(r,i){if(r){n(r,i);return}if(Object.keys(o.jobs).length===0){n(null,o.results);return}}),o.index++;return NL.bind(o,n)}a(zL,"parallel")});var Kv=N((Lee,sf)=>{var bI=Gv(),DL=Wv(),UL=Jv();sf.exports=ML;sf.exports.ascending=SI;sf.exports.descending=jL;function ML(t,e,n,o){var r=DL(t,n);return bI(t,e,r,a(function i(s,u){if(s){o(s,u);return}if(r.index++,r.index<(r.keyedList||t).length){bI(t,e,r,i);return}o(null,r.results)},"iteratorHandler")),UL.bind(r,o)}a(ML,"serialOrdered");function SI(t,e){return t<e?-1:t>e?1:0}a(SI,"ascending");function jL(t,e){return-1*SI(t,e)}a(jL,"descending")});var PI=N((Bee,EI)=>{var LL=Kv();EI.exports=FL;function FL(t,e,n){return LL(t,e,null,n)}a(FL,"serial")});var TI=N((Vee,xI)=>{xI.exports={parallel:vI(),serial:PI(),serialOrdered:Kv()}});var Xv=N((Zee,AI)=>{"use strict";AI.exports=Object});var II=N((Hee,wI)=>{"use strict";wI.exports=Error});var OI=N((Gee,RI)=>{"use strict";RI.exports=EvalError});var $I=N((Wee,CI)=>{"use strict";CI.exports=RangeError});var NI=N((Jee,kI)=>{"use strict";kI.exports=ReferenceError});var DI=N((Kee,zI)=>{"use strict";zI.exports=SyntaxError});var go=N((Xee,UI)=>{"use strict";UI.exports=TypeError});var jI=N((Yee,MI)=>{"use strict";MI.exports=URIError});var FI=N((Qee,LI)=>{"use strict";LI.exports=Math.abs});var qI=N((ete,BI)=>{"use strict";BI.exports=Math.floor});var ZI=N((tte,VI)=>{"use strict";VI.exports=Math.max});var GI=N((rte,HI)=>{"use strict";HI.exports=Math.min});var JI=N((nte,WI)=>{"use strict";WI.exports=Math.pow});var XI=N((ote,KI)=>{"use strict";KI.exports=Math.round});var QI=N((ite,YI)=>{"use strict";YI.exports=Number.isNaN||a(function(e){return e!==e},"isNaN")});var tR=N((ste,eR)=>{"use strict";var BL=QI();eR.exports=a(function(e){return BL(e)||e===0?e:e<0?-1:1},"sign")});var nR=N((ute,rR)=>{"use strict";rR.exports=Object.getOwnPropertyDescriptor});var Yv=N((lte,oR)=>{"use strict";var cf=nR();if(cf)try{cf([],"length")}catch{cf=null}oR.exports=cf});var aR=N((dte,iR)=>{"use strict";var uf=Object.defineProperty||!1;if(uf)try{uf({},"a",{value:1})}catch{uf=!1}iR.exports=uf});var Qv=N((pte,sR)=>{"use strict";sR.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;e[n]=r;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]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,n);if(u.value!==r||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var lR=N((mte,uR)=>{"use strict";var cR=typeof Symbol<"u"&&Symbol,qL=Qv();uR.exports=a(function(){return typeof cR!="function"||typeof Symbol!="function"||typeof cR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qL()},"hasNativeSymbols")});var eb=N((gte,dR)=>{"use strict";dR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var tb=N((yte,pR)=>{"use strict";var VL=Xv();pR.exports=VL.getPrototypeOf||null});var hR=N((_te,mR)=>{"use strict";var ZL="Function.prototype.bind called on incompatible ",HL=Object.prototype.toString,GL=Math.max,WL="[object Function]",fR=a(function(e,n){for(var o=[],r=0;r<e.length;r+=1)o[r]=e[r];for(var i=0;i<n.length;i+=1)o[i+e.length]=n[i];return o},"concatty"),JL=a(function(e,n){for(var o=[],r=n||0,i=0;r<e.length;r+=1,i+=1)o[i]=e[r];return o},"slicy"),KL=a(function(t,e){for(var n="",o=0;o<t.length;o+=1)n+=t[o],o+1<t.length&&(n+=e);return n},"joiny");mR.exports=a(function(e){var n=this;if(typeof n!="function"||HL.apply(n)!==WL)throw new TypeError(ZL+n);for(var o=JL(arguments,1),r,i=a(function(){if(this instanceof r){var f=n.apply(this,fR(o,arguments));return Object(f)===f?f:this}return n.apply(e,fR(o,arguments))},"binder"),s=GL(0,n.length-o.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(r=Function("binder","return function ("+KL(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var p=a(function(){},"Empty");p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r},"bind")});var ya=N((bte,gR)=>{"use strict";var XL=hR();gR.exports=Function.prototype.bind||XL});var lf=N((Ste,yR)=>{"use strict";yR.exports=Function.prototype.call});var rb=N((Ete,_R)=>{"use strict";_R.exports=Function.prototype.apply});var bR=N((Pte,vR)=>{"use strict";vR.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ER=N((xte,SR)=>{"use strict";var YL=ya(),QL=rb(),eF=lf(),tF=bR();SR.exports=tF||YL.call(eF,QL)});var nb=N((Tte,PR)=>{"use strict";var rF=ya(),nF=go(),oF=lf(),iF=ER();PR.exports=a(function(e){if(e.length<1||typeof e[0]!="function")throw new nF("a function is required");return iF(rF,oF,e)},"callBindBasic")});var RR=N((wte,IR)=>{"use strict";var aF=nb(),xR=Yv(),AR;try{AR=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var ob=!!AR&&xR&&xR(Object.prototype,"__proto__"),wR=Object,TR=wR.getPrototypeOf;IR.exports=ob&&typeof ob.get=="function"?aF([ob.get]):typeof TR=="function"?a(function(e){return TR(e==null?e:wR(e))},"getDunder"):!1});var NR=N((Rte,kR)=>{"use strict";var OR=eb(),CR=tb(),$R=RR();kR.exports=OR?a(function(e){return OR(e)},"getProto"):CR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return CR(e)},"getProto"):$R?a(function(e){return $R(e)},"getProto"):null});var ib=N((Cte,zR)=>{"use strict";var sF=Function.prototype.call,cF=Object.prototype.hasOwnProperty,uF=ya();zR.exports=uF.call(sF,cF)});var eu=N(($te,FR)=>{"use strict";var Me,lF=Xv(),dF=II(),pF=OI(),fF=$I(),mF=NI(),Sa=DI(),ba=go(),hF=jI(),gF=FI(),yF=qI(),_F=ZI(),vF=GI(),bF=JI(),SF=XI(),EF=tR(),jR=Function,ab=a(function(t){try{return jR('"use strict"; return ('+t+").constructor;")()}catch{}},"getEvalledConstructor"),Xc=Yv(),PF=aR(),sb=a(function(){throw new ba},"throwTypeError"),xF=Xc?(function(){try{return arguments.callee,sb}catch{try{return Xc(arguments,"callee").get}catch{return sb}}})():sb,_a=lR()(),Rt=NR(),TF=tb(),AF=eb(),LR=rb(),Yc=lf(),va={},wF=typeof Uint8Array>"u"||!Rt?Me:Rt(Uint8Array),ii={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":_a&&Rt?Rt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":va,"%AsyncGenerator%":va,"%AsyncGeneratorFunction%":va,"%AsyncIteratorPrototype%":va,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dF,"%eval%":eval,"%EvalError%":pF,"%Float16Array%":typeof Float16Array>"u"?Me:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":jR,"%GeneratorFunction%":va,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_a&&Rt?Rt(Rt([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_a||!Rt?Me:Rt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":lF,"%Object.getOwnPropertyDescriptor%":Xc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":fF,"%ReferenceError%":mF,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_a||!Rt?Me:Rt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_a&&Rt?Rt(""[Symbol.iterator]()):Me,"%Symbol%":_a?Symbol:Me,"%SyntaxError%":Sa,"%ThrowTypeError%":xF,"%TypedArray%":wF,"%TypeError%":ba,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":hF,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet,"%Function.prototype.call%":Yc,"%Function.prototype.apply%":LR,"%Object.defineProperty%":PF,"%Object.getPrototypeOf%":TF,"%Math.abs%":gF,"%Math.floor%":yF,"%Math.max%":_F,"%Math.min%":vF,"%Math.pow%":bF,"%Math.round%":SF,"%Math.sign%":EF,"%Reflect.getPrototypeOf%":AF};if(Rt)try{null.error}catch(t){DR=Rt(Rt(t)),ii["%Error.prototype%"]=DR}var DR,IF=a(function t(e){var n;if(e==="%AsyncFunction%")n=ab("async function () {}");else if(e==="%GeneratorFunction%")n=ab("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=ab("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&Rt&&(n=Rt(r.prototype))}return ii[e]=n,n},"doEval"),UR={__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"]},Qc=ya(),df=ib(),RF=Qc.call(Yc,Array.prototype.concat),OF=Qc.call(LR,Array.prototype.splice),MR=Qc.call(Yc,String.prototype.replace),pf=Qc.call(Yc,String.prototype.slice),CF=Qc.call(Yc,RegExp.prototype.exec),$F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kF=/\\(\\)?/g,NF=a(function(e){var n=pf(e,0,1),o=pf(e,-1);if(n==="%"&&o!=="%")throw new Sa("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new Sa("invalid intrinsic syntax, expected opening `%`");var r=[];return MR(e,$F,function(i,s,u,l){r[r.length]=u?MR(l,kF,"$1"):s||i}),r},"stringToPath"),zF=a(function(e,n){var o=e,r;if(df(UR,o)&&(r=UR[o],o="%"+r[0]+"%"),df(ii,o)){var i=ii[o];if(i===va&&(i=IF(o)),typeof i>"u"&&!n)throw new ba("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new Sa("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");FR.exports=a(function(e,n){if(typeof e!="string"||e.length===0)throw new ba("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ba('"allowMissing" argument must be a boolean');if(CF(/^%?[^%]*%?$/,e)===null)throw new Sa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=NF(e),r=o.length>0?o[0]:"",i=zF("%"+r+"%",n),s=i.name,u=i.value,l=!1,p=i.alias;p&&(r=p[0],OF(o,RF([0,1],p)));for(var f=1,y=!0;f<o.length;f+=1){var m=o[f],h=pf(m,0,1),_=pf(m,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new Sa("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),r+="."+m,s="%"+r+"%",df(ii,s))u=ii[s];else if(u!=null){if(!(m in u)){if(!n)throw new ba("base intrinsic for "+e+" exists, but the property is not available.");return}if(Xc&&f+1>=o.length){var E=Xc(u,m);y=!!E,y&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[m]}else y=df(u,m),u=u[m];y&&!l&&(ii[s]=u)}}return u},"GetIntrinsic")});var qR=N((Nte,BR)=>{"use strict";var DF=Qv();BR.exports=a(function(){return DF()&&!!Symbol.toStringTag},"hasToStringTagShams")});var HR=N((Dte,ZR)=>{"use strict";var UF=eu(),VR=UF("%Object.defineProperty%",!0),MF=qR()(),jF=ib(),LF=go(),ff=MF?Symbol.toStringTag:null;ZR.exports=a(function(e,n){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new LF("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ff&&(o||!jF(e,ff))&&(VR?VR(e,ff,{configurable:!r,enumerable:!1,value:n,writable:!1}):e[ff]=n)},"setToStringTag")});var WR=N((Mte,GR)=>{"use strict";var FF=Function.prototype.call,BF=Object.prototype.hasOwnProperty,qF=ya();GR.exports=qF.call(FF,BF)});var KR=N((jte,JR)=>{"use strict";JR.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var QR=N((Lte,YR)=>{"use strict";var db=nI(),VF=require("util"),cb=require("path"),ZF=require("http"),HF=require("https"),GF=require("url").parse,WF=require("fs"),JF=require("stream").Stream,KF=require("crypto"),ub=cI(),XF=TI(),YF=HR(),yo=WR(),lb=KR();function XR(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(XR,"escapeHeaderParam");function Ve(t){if(!(this instanceof Ve))return new Ve(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],db.call(this),t=t||{};for(var e in t)this[e]=t[e]}a(Ve,"FormData");VF.inherits(Ve,db);Ve.LINE_BREAK=`\r
|
|
2
|
-
`;Ve.DEFAULT_CONTENT_TYPE="application/octet-stream";Ve.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=db.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 r=this._multiPartHeader(t,e,n),i=this._multiPartFooter();o(r),o(e),o(i),this._trackLength(r,e,n)};Ve.prototype._trackLength=function(t,e,n){var o=0;n.knownLength!=null?o+=Number(n.knownLength):Buffer.isBuffer(e)?o=e.length:typeof e=="string"&&(o=Buffer.byteLength(e)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(t)+Ve.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&yo(e,"httpVersion"))&&!(e instanceof JF))&&(n.knownLength||this._valuesToMeasure.push(e))};Ve.prototype._lengthRetriever=function(t,e){yo(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):WF.stat(t.path,function(n,o){if(n){e(n);return}var r=o.size-(t.start?t.start:0);e(null,r)}):yo(t,"httpVersion")?e(null,Number(t.headers["content-length"])):yo(t,"httpModule")?(t.on("response",function(n){t.pause(),e(null,Number(n.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ve.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var o=this._getContentDisposition(e,n),r=this._getContentType(e,n),i="",s={"Content-Disposition":["form-data",'name="'+XR(t)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&lb(s,n.header);var u;for(var l in s)if(yo(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=l+": "+u.join("; ")+Ve.LINE_BREAK)}return"--"+this.getBoundary()+Ve.LINE_BREAK+i+Ve.LINE_BREAK};Ve.prototype._getContentDisposition=function(t,e){var n;if(typeof e.filepath=="string"?n=cb.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?n=cb.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&yo(t,"httpVersion")&&(n=cb.basename(t.client._httpMessage.path||"")),n)return'filename="'+XR(n)+'"'};Ve.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t&&t.name&&(n=ub.lookup(t.name)),!n&&t&&t.path&&(n=ub.lookup(t.path)),!n&&t&&t.readable&&yo(t,"httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=ub.lookup(e.filepath||e.filename)),!n&&t&&typeof t=="object"&&(n=Ve.DEFAULT_CONTENT_TYPE),n};Ve.prototype._multiPartFooter=function(){return function(t){var e=Ve.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ve.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ve.LINE_BREAK};Ve.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)yo(t,e)&&(n[e.toLowerCase()]=t[e]);return n};Ve.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ve.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ve.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,o=this._streams.length;n<o;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(Ve.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};Ve.prototype._generateBoundary=function(){this._boundary="--------------------------"+KF.randomBytes(12).toString("hex")};Ve.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};Ve.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};Ve.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}XF.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){t(n);return}o.forEach(function(r){e+=r}),t(null,e)})};Ve.prototype.submit=function(t,e){var n,o,r={method:"post"};return typeof t=="string"?(t=GF(t),o=lb({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(o=lb(t,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(t.headers),o.protocol==="https:"?n=HF.request(o):n=ZF.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),e){var u,l=a(function(p,f){return n.removeListener("error",l),n.removeListener("response",u),e.call(this,p,f)},"callback");u=l.bind(this,null),n.on("error",l),n.on("response",u)}}.bind(this)),n};Ve.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};Ve.prototype.toString=function(){return"[object FormData]"};YF(Ve.prototype,"FormData");YR.exports=Ve});var ru=N((Dre,yO)=>{"use strict";var hf=Object.prototype.hasOwnProperty,gO=Object.prototype.toString,lO=Object.defineProperty,dO=Object.getOwnPropertyDescriptor,pO=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):gO.call(e)==="[object Array]"},"isArray"),fO=a(function(e){if(!e||gO.call(e)!=="[object Object]")return!1;var n=hf.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&hf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;var r;for(r in e);return typeof r>"u"||hf.call(e,r)},"isPlainObject"),mO=a(function(e,n){lO&&n.name==="__proto__"?lO(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},"setProperty"),hO=a(function(e,n){if(n==="__proto__")if(hf.call(e,n)){if(dO)return dO(e,n).value}else return;return e[n]},"getProperty");yO.exports=a(function t(){var e,n,o,r,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(n in e)o=hO(u,n),r=hO(e,n),u!==r&&(f&&r&&(fO(r)||(i=pO(r)))?(i?(i=!1,s=o&&pO(o)?o:[]):s=o&&fO(o)?o:{},mO(u,{name:n,newValue:t(f,s,r)})):typeof r<"u"&&mO(u,{name:n,newValue:r}));return u},"extend")});var _O=N((Mre,mB)=>{mB.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 bO=N((jre,vO)=>{"use strict";var hB=_O();vO.exports={pkg:hB}});var mb=N(Tr=>{"use strict";var EO=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.GaxiosError=Tr.GAXIOS_ERROR_SYMBOL=void 0;Tr.defaultErrorRedactor=PO;var SO=EO(ru()),gB=EO(bO()),pb=gB.default.pkg;Tr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${pb.name}-gaxios-error`);var fb=class t extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Tr.GAXIOS_ERROR_SYMBOL]=pb.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&Tr.GAXIOS_ERROR_SYMBOL in e&&e[Tr.GAXIOS_ERROR_SYMBOL]===pb.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,n,o,r){if(super(e,{cause:r}),this.config=n,this.response=o,this.error=r instanceof Error?r:void 0,this.config=(0,SO.default)(!0,{},n),this.response&&(this.response.config=(0,SO.default)(!0,{},this.response.config)),this.response){try{this.response.data=yB(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}r instanceof DOMException?this.code=r.name:r&&typeof r=="object"&&"code"in r&&(typeof r.code=="string"||typeof r.code=="number")&&(this.code=r.code)}static extractAPIErrorFromResponse(e,n="The request failed"){let o=n;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 r="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:r},e.data.error)}return Object.assign({message:o,code:i,status:r},e.data.error)}}return{message:o,code:e.status,status:e.statusText}}};Tr.GaxiosError=fb;function yB(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(yB,"translateData");function PO(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function n(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,e)})}a(n,"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 r(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(r,"redactObject"),t.config&&(n(t.config.headers),o(t.config,"data"),r(t.config.data),o(t.config,"body"),r(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&&(PO({config:t.response.config}),n(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),r(t.response.data))),t}a(PO,"defaultErrorRedactor")});var TO=N(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});hb.getRetryConfig=_B;async function _B(t){let e=xO(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 n=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||n,t.config.retryConfig=e,!await(e.shouldRetry||vB)(t))return{shouldRetry:!1,config:t.config};let r=bB(e);t.config.retryConfig.currentRetryAttempt+=1;let i=e.retryBackoff?e.retryBackoff(t,r):new Promise(s=>{setTimeout(s,r)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await i,{shouldRetry:!0,config:t.config}}a(_B,"getRetryConfig");function vB(t){let e=xO(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 n=!1;for(let[o,r]of e.statusCodesToRetry){let i=t.response.status;if(i>=o&&i<=r){n=!0;break}}if(!n)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}a(vB,"shouldRetryRequest");function xO(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(xO,"getConfig");function bB(t){let n=(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(n,o,t.maxRetryDelay)}a(bB,"getNextRetryDelay")});var yb=N(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.GaxiosInterceptorManager=void 0;var gb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};gf.GaxiosInterceptorManager=gb});var wO=N((Hre,AO)=>{var Ea=1e3,Pa=Ea*60,xa=Pa*60,ai=xa*24,SB=ai*7,EB=ai*365.25;AO.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return PB(t);if(n==="number"&&isFinite(t))return e.long?TB(t):xB(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function PB(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 n=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*EB;case"weeks":case"week":case"w":return n*SB;case"days":case"day":case"d":return n*ai;case"hours":case"hour":case"hrs":case"hr":case"h":return n*xa;case"minutes":case"minute":case"mins":case"min":case"m":return n*Pa;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ea;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}a(PB,"parse");function xB(t){var e=Math.abs(t);return e>=ai?Math.round(t/ai)+"d":e>=xa?Math.round(t/xa)+"h":e>=Pa?Math.round(t/Pa)+"m":e>=Ea?Math.round(t/Ea)+"s":t+"ms"}a(xB,"fmtShort");function TB(t){var e=Math.abs(t);return e>=ai?yf(t,e,ai,"day"):e>=xa?yf(t,e,xa,"hour"):e>=Pa?yf(t,e,Pa,"minute"):e>=Ea?yf(t,e,Ea,"second"):t+" ms"}a(TB,"fmtLong");function yf(t,e,n,o){var r=e>=n*1.5;return Math.round(t/n)+" "+o+(r?"s":"")}a(yf,"plural")});var _b=N((Wre,IO)=>{function AB(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=r,n.enabled=u,n.humanize=wO(),n.destroy=p,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.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 n.colors[Math.abs(y)%n.colors.length]}a(e,"selectColor"),n.selectColor=e;function n(f){let y,m=null,h,_;function E(...P){if(!E.enabled)return;let x=E,z=Number(new Date),M=z-(y||z);x.diff=M,x.prev=y,x.curr=z,y=z,P[0]=n.coerce(P[0]),typeof P[0]!="string"&&P.unshift("%O");let K=0;P[0]=P[0].replace(/%([a-zA-Z%])/g,(J,ee)=>{if(J==="%%")return"%";K++;let ae=n.formatters[ee];if(typeof ae=="function"){let Y=P[K];J=ae.call(x,Y),P.splice(K,1),K--}return J}),n.formatArgs.call(x,P),(x.log||n.log).apply(x,P)}return a(E,"debug"),E.namespace=f,E.useColors=n.useColors(),E.color=n.selectColor(f),E.extend=o,E.destroy=n.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,_=n.enabled(f)),_),"get"),set:a(P=>{m=P},"set")}),typeof n.init=="function"&&n.init(E),E}a(n,"createDebug");function o(f,y){let m=n(this.namespace+(typeof y>"u"?":":y)+f);return m.log=this.log,m}a(o,"extend");function r(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let y=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of y)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}a(r,"enable");function i(f,y){let m=0,h=0,_=-1,E=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,E=m,h++):(m++,h++);else if(_!==-1)h=_+1,E++,m=E;else return!1;for(;h<y.length&&y[h]==="*";)h++;return h===y.length}a(i,"matchesTemplate");function s(){let f=[...n.names,...n.skips.map(y=>"-"+y)].join(",");return n.enable(""),f}a(s,"disable");function u(f){for(let y of n.skips)if(i(f,y))return!1;for(let y of n.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"),n.enable(n.load()),n}a(AB,"setup");IO.exports=AB});var RO=N((Kt,_f)=>{Kt.formatArgs=IB;Kt.save=RB;Kt.load=OB;Kt.useColors=wB;Kt.storage=CB();Kt.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`."))}})();Kt.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 wB(){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(wB,"useColors");function IB(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+_f.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(n++,r==="%c"&&(o=n))}),t.splice(o,0,e)}a(IB,"formatArgs");Kt.log=console.debug||console.log||(()=>{});function RB(t){try{t?Kt.storage.setItem("debug",t):Kt.storage.removeItem("debug")}catch{}}a(RB,"save");function OB(){let t;try{t=Kt.storage.getItem("debug")||Kt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}a(OB,"load");function CB(){try{return localStorage}catch{}}a(CB,"localstorage");_f.exports=_b()(Kt);var{formatters:$B}=_f.exports;$B.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var CO=N((Xre,OO)=>{"use strict";OO.exports=(t,e=process.argv)=>{let n=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(n+t),r=e.indexOf("--");return o!==-1&&(r===-1||o<r)}});var NO=N((Yre,kO)=>{"use strict";var kB=require("os"),$O=require("tty"),Ar=CO(),{env:Ot}=process,vo;Ar("no-color")||Ar("no-colors")||Ar("color=false")||Ar("color=never")?vo=0:(Ar("color")||Ar("colors")||Ar("color=true")||Ar("color=always"))&&(vo=1);"FORCE_COLOR"in Ot&&(Ot.FORCE_COLOR==="true"?vo=1:Ot.FORCE_COLOR==="false"?vo=0:vo=Ot.FORCE_COLOR.length===0?1:Math.min(parseInt(Ot.FORCE_COLOR,10),3));function vb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}a(vb,"translateLevel");function bb(t,e){if(vo===0)return 0;if(Ar("color=16m")||Ar("color=full")||Ar("color=truecolor"))return 3;if(Ar("color=256"))return 2;if(t&&!e&&vo===void 0)return 0;let n=vo||0;if(Ot.TERM==="dumb")return n;if(process.platform==="win32"){let o=kB.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Ot)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in Ot)||Ot.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Ot)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ot.TEAMCITY_VERSION)?1:0;if(Ot.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ot){let o=parseInt((Ot.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ot.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ot.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ot.TERM)||"COLORTERM"in Ot?1:n}a(bb,"supportsColor");function NB(t){let e=bb(t,t&&t.isTTY);return vb(e)}a(NB,"getSupportLevel");kO.exports={supportsColor:NB,stdout:vb(bb(!0,$O.isatty(1))),stderr:vb(bb(!0,$O.isatty(2)))}});var DO=N((Ct,bf)=>{var zB=require("tty"),vf=require("util");Ct.init=BB;Ct.log=jB;Ct.formatArgs=UB;Ct.save=LB;Ct.load=FB;Ct.useColors=DB;Ct.destroy=vf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ct.colors=[6,2,3,4,5,1];try{let t=NO();t&&(t.stderr||t).level>=2&&(Ct.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{}Ct.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(r,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[n]=o,t},{});function DB(){return"colors"in Ct.inspectOpts?!!Ct.inspectOpts.colors:zB.isatty(process.stderr.fd)}a(DB,"useColors");function UB(t){let{namespace:e,useColors:n}=this;if(n){let o=this.color,r="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${r};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
|
|
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})},jx=(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 Tt=(t,e,r)=>(r=t!=null?QU(rM(t)):{},jx(e||!t||!t.__esModule?hs(r,"default",{value:t,enumerable:!0}):r,t)),oM=t=>jx(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 E=0,S=-1,T=(h.match(u.zoneIndex)||[])[0],k,L;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(S=h.indexOf(":",S+1))>=0;)E++;if(h.substr(0,2)==="::"&&E--,h.substr(-2,2)==="::"&&E--,E>_)return null;for(L=_-E,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:T}}a(l,"expandIPv6");function p(h,_,E,S){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,k;for(;S>0;){if(k=E-S,k<0&&(k=0),h[T]>>k!==_[T]>>k)return!1;S-=E,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 E,S;for(E=0;E<_.length;E++)if(S=_[E],!(0<=S&&S<=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(_,E){let S;if(E===void 0&&(S=_,_=S[0],E=S[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,k,L;for(T=3;T>=0;T-=1)if(k=this.octets[T],k in S){if(L=S[k],E&&L!==0)return null;L!==8&&(E=!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),E=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<4;)T.push(parseInt(E[k],10)|parseInt(S[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 _,E,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],E=0;E<4;)T.push(parseInt(S[E],10)&parseInt(k[E],10)),E++;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 E=parseInt(_[2]);if(E>=0&&E<=32){let S=[this.parse(_[1]),E];return Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(h){let _,E,S;if(_=h.match(r.fourOctet))return(function(){let T=_.slice(1,6),k=[];for(let L=0;L<T.length;L++)E=T[L],k.push(f(E));return k})();if(_=h.match(r.longValue)){if(S=f(_[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],k;for(k=0;k<=24;k+=8)T.push(S>>k&255);return T})().reverse()}else return(_=h.match(r.twoOctet))?(function(){let T=_.slice(1,4),k=[];if(S=f(T[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(S>>16&255),k.push(S>>8&255),k.push(S&255),k})():(_=h.match(r.threeOctet))?(function(){let T=_.slice(1,5),k=[];if(S=f(T[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return k.push(f(T[0])),k.push(f(T[1])),k.push(S>>8&255),k.push(S&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],E=0,S=Math.floor(h/8);for(;E<S;)_[E]=255,E++;return S<4&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},m.IPv6=(function(){function h(_,E){let S,T;if(_.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(_[S]<<8|_[S+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(T=this.parts[S],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");E&&(this.zoneId=E)}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(_,E){let S;if(E===void 0&&(S=_,_=S[0],E=S[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,E)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,E=!1,S={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 L=7;L>=0;L-=1)if(T=this.parts[L],T in S){if(k=S[T],E&&k!==0)return null;k!==16&&(E=!0),_+=k}else return null;return 128-_},h.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,E=[],S=this.parts;for(let T=0;T<S.length;T++)_=S[T],E.push(_>>8),E.push(_&255);return E},h.prototype.toFixedLengthString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(y(this.parts[T].toString(16),4));return S}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},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),E=_[0],S=_[1];return new m.IPv4([E>>8,E&255,S>>8,S&255])},h.prototype.toNormalizedString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(this.parts[T].toString(16));return S}).call(this).join(":"),E="";return this.zoneId&&(E=`%${this.zoneId}`),_+E},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,E=this.toNormalizedString(),S=0,T=-1,k;for(;k=_.exec(E);)k[0].length>T&&(S=k.index,T=k[0].length);return T<0?E:`${E.substring(0,S)}::${E.substring(S+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),m.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),E=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],k=0;for(;k<16;)T.push(parseInt(E[k],10)|parseInt(S[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 _,E,S,T,k;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),k=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],E=0;E<16;)T.push(parseInt(S[E],10)&parseInt(k[E],10)),E++;return new this(T)}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 _,E,S;if((E=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(E[2]),_>=0&&_<=128))return S=[this.parse(E[1]),_],Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(h){let _,E,S,T,k,L;if(S=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(u.native.test(h))return l(h,8);if((S=h.match(u.transitional))&&(L=S[6]||"",_=S[1],S[1].endsWith("::")||(_=_.slice(0,-1)),_=l(_+L,6),_.parts)){for(k=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],E=0;E<k.length;E++)if(T=k[E],!(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],E=0,S=Math.floor(h/8);for(;E<S;)_[E]=255,E++;return S<16&&(_[S]=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,_,E){let S,T,k,L;E==null&&(E="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(k=_[T],k[0]&&!(k[0]instanceof Array)&&(k=[k]),S=0;S<k.length;S++)if(L=k[S],h.kind()===L[0].kind()&&h.match.apply(h,L))return T}return E},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((Ene,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((xne,bf)=>{var fC=hb(),PB=gb(),EB=yb();bf.exports=SB;bf.exports.ascending=mC;bf.exports.descending=xB;function SB(t,e,r,o){var n=PB(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")),EB.bind(n,o)}a(SB,"serialOrdered");function mC(t,e){return t<e?-1:t>e?1:0}a(mC,"ascending");function xB(t,e){return-1*mC(t,e)}a(xB,"descending")});var gC=z((Ane,hC)=>{var TB=_b();hC.exports=AB;function AB(t,e,r){return TB(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 PC=z((Rne,bC)=>{"use strict";bC.exports=Error});var SC=z((One,EC)=>{"use strict";EC.exports=EvalError});var TC=z((kne,xC)=>{"use strict";xC.exports=RangeError});var wC=z((Nne,AC)=>{"use strict";AC.exports=ReferenceError});var CC=z(($ne,IC)=>{"use strict";IC.exports=SyntaxError});var xo=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 Pf=JC();if(Pf)try{Pf([],"length")}catch{Pf=null}XC.exports=Pf});var QC=z((Kne,YC)=>{"use strict";var Ef=Object.defineProperty||!1;if(Ef)try{Ef({},"a",{value:1})}catch{Ef=!1}YC.exports=Ef});var Pb=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=Pb();rR.exports=a(function(){return typeof tR!="function"||typeof Symbol!="function"||typeof tR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IB()},"hasNativeSymbols")});var Eb=z((eoe,oR)=>{"use strict";oR.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Sb=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 Sf=z((ioe,lR)=>{"use strict";lR.exports=Function.prototype.call});var xb=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=xb(),LB=Sf(),jB=fR();mR.exports=jB||UB.call(LB,MB)});var Tb=z((uoe,gR)=>{"use strict";var FB=wa(),BB=xo(),qB=Sf(),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 ER=z((doe,PR)=>{"use strict";var VB=Tb(),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;PR.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 SR=Eb(),xR=Sb(),TR=ER();AR.exports=SR?a(function(e){return SR(e)},"getProto"):xR?a(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return xR(e)},"getProto"):TR?a(function(e){return TR(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=PC(),XB=SC(),YB=TC(),QB=wC(),Oa=CC(),Ra=xo(),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=Sb(),dq=Eb(),NR=xb(),yu=Sf(),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(),xf=wb(),mq=_u.call(yu,Array.prototype.concat),hq=_u.call(NR,Array.prototype.splice),OR=_u.call(yu,String.prototype.replace),Tf=_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=Tf(e,0,1),o=Tf(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(xf(RR,o)&&(n=RR[o],o="%"+n[0]+"%"),xf(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=Tf(m,0,1),_=Tf(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(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 E=gu(u,m);y=!!E,y&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[m]}else y=xf(u,m),u=u[m];y&&!l&&(mi[s]=u)}}return u},"GetIntrinsic")});var DR=z((_oe,zR)=>{"use strict";var Pq=Pb();zR.exports=a(function(){return Pq()&&!!Symbol.toStringTag},"hasToStringTagShams")});var LR=z((boe,MR)=>{"use strict";var Eq=vu(),UR=Eq("%Object.defineProperty%",!0),Sq=DR()(),xq=wb(),Tq=xo(),Af=Sq?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 Tq("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Af&&(o||!xq(e,Af))&&(UR?UR(e,Af,{configurable:!n,enumerable:!1,value:r,writable:!1}):e[Af]=r)},"setToStringTag")});var FR=z((Eoe,jR)=>{"use strict";var Aq=Function.prototype.call,wq=Object.prototype.hasOwnProperty,Iq=wa();jR.exports=Iq.call(Aq,wq)});var qR=z((Soe,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((xoe,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(),To=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&&To(e,"httpVersion"))&&!(e instanceof $q))&&(r.knownLength||this._valuesToMeasure.push(e))};We.prototype._lengthRetriever=function(t,e){To(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)}):To(t,"httpVersion")?e(null,Number(t.headers["content-length"])):To(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(To(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&&To(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&&To(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)To(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 xu=z((kse,QO)=>{"use strict";var If=Object.prototype.hasOwnProperty,YO=Object.prototype.toString,HO=Object.defineProperty,ZO=Object.getOwnPropertyDescriptor,WO=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):YO.call(e)==="[object Array]"},"isArray"),KO=a(function(e){if(!e||YO.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"),JO=a(function(e,r){HO&&r.name==="__proto__"?HO(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),XO=a(function(e,r){if(r==="__proto__")if(If.call(e,r)){if(ZO)return ZO(e,r).value}else return;return e[r]},"getProperty");QO.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=XO(u,r),n=XO(e,r),u!==n&&(f&&n&&(KO(n)||(i=WO(n)))?(i?(i=!1,s=o&&WO(o)?o:[]):s=o&&KO(o)?o:{},JO(u,{name:r,newValue:t(f,s,n)})):typeof n<"u"&&JO(u,{name:r,newValue:n}));return u},"extend")});var ek=z(($se,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 rk=z((zse,tk)=>{"use strict";var w4=ek();tk.exports={pkg:w4}});var Mb=z(Nr=>{"use strict";var ok=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=ik;var nk=ok(xu()),I4=ok(rk()),Db=I4.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,nk.default)(!0,{},r),this.response&&(this.response.config=(0,nk.default)(!0,{},this.response.config)),this.response){try{this.response.data=C4(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 C4(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(C4,"translateData");function ik(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&&(ik({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(o(t.response,"data"),n(t.response.data))),t}a(ik,"defaultErrorRedactor")});var sk=z(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.getRetryConfig=R4;async function R4(t){let e=ak(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||O4)(t))return{shouldRetry:!1,config:t.config};let n=k4(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(R4,"getRetryConfig");function O4(t){let e=ak(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(O4,"shouldRetryRequest");function ak(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}a(ak,"getConfig");function k4(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(k4,"getNextRetryDelay")});var Fb=z(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.GaxiosInterceptorManager=void 0;var jb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};Cf.GaxiosInterceptorManager=jb});var uk=z((Bse,ck)=>{var ka=1e3,Na=ka*60,$a=Na*60,gi=$a*24,N4=gi*7,$4=gi*365.25;ck.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return z4(t);if(r==="number"&&isFinite(t))return e.long?U4(t):D4(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function z4(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*$4;case"weeks":case"week":case"w":return r*N4;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(z4,"parse");function D4(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(D4,"fmtShort");function U4(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(U4,"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 Bb=z((Gse,lk)=>{function M4(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=n,r.enabled=u,r.humanize=uk(),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 E(...S){if(!E.enabled)return;let T=E,k=Number(new Date),L=k-(y||k);T.diff=L,T.prev=y,T.curr=k,y=k,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let Y=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(X,re)=>{if(X==="%%")return"%";Y++;let ce=r.formatters[re];if(typeof ce=="function"){let ee=S[Y];X=ce.call(T,ee),S.splice(Y,1),Y--}return X}),r.formatArgs.call(T,S),(T.log||r.log).apply(T,S)}return a(E,"debug"),E.namespace=f,E.useColors=r.useColors(),E.color=r.selectColor(f),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:a(()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(f)),_),"get"),set:a(S=>{m=S},"set")}),typeof r.init=="function"&&r.init(E),E}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,E=0;for(;m<f.length;)if(h<y.length&&(y[h]===f[m]||y[h]==="*"))y[h]==="*"?(_=h,E=m,h++):(m++,h++);else if(_!==-1)h=_+1,E++,m=E;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(M4,"setup");lk.exports=M4});var dk=z((nr,Of)=>{nr.formatArgs=j4;nr.save=F4;nr.load=B4;nr.useColors=L4;nr.storage=q4();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 L4(){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(L4,"useColors");function j4(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(j4,"formatArgs");nr.log=console.debug||console.log||(()=>{});function F4(t){try{t?nr.storage.setItem("debug",t):nr.storage.removeItem("debug")}catch{}}a(F4,"save");function B4(){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(B4,"load");function q4(){try{return localStorage}catch{}}a(q4,"localstorage");Of.exports=Bb()(nr);var{formatters:G4}=Of.exports;G4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var fk=z((Zse,pk)=>{"use strict";pk.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 gk=z((Wse,hk)=>{"use strict";var V4=require("os"),mk=require("tty"),$r=fk(),{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=V4.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 H4(t){let e=Gb(t,t&&t.isTTY);return qb(e)}a(H4,"getSupportLevel");hk.exports={supportsColor:H4,stdout:qb(Gb(!0,mk.isatty(1))),stderr:qb(Gb(!0,mk.isatty(2)))}});var _k=z((zt,Nf)=>{var Z4=require("tty"),kf=require("util");zt.init=e6;zt.log=X4;zt.formatArgs=K4;zt.save=Y4;zt.load=Q4;zt.useColors=W4;zt.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`.");zt.colors=[6,2,3,4,5,1];try{let t=gk();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 W4(){return"colors"in zt.inspectOpts?!!zt.inspectOpts.colors:Z4.isatty(process.stderr.fd)}a(W4,"useColors");function K4(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(
|
|
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
|
|
5
|
+
`+i),t.push(n+"m+"+Nf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=J4()+e+" "+t[0]}a(K4,"formatArgs");function J4(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}a(J4,"getDate");function X4(...t){return process.stderr.write(kf.formatWithOptions(zt.inspectOpts,...t)+`
|
|
6
|
+
`)}a(X4,"log");function Y4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}a(Y4,"save");function Q4(){return process.env.DEBUG}a(Q4,"load");function e6(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}a(e6,"init");Nf.exports=Bb()(zt);var{formatters:yk}=Nf.exports;yk.o=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts).split(`
|
|
7
|
+
`).map(e=>e.trim()).join(" ")};yk.O=function(t){return this.inspectOpts.colors=this.useColors,kf.inspect(t,this.inspectOpts)}});var Hb=z((Xse,Vb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Vb.exports=dk():Vb.exports=_k()});var Pk=z(or=>{"use strict";var t6=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]})),r6=or&&or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vk=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)&&t6(e,t,r);return r6(e,t),e};Object.defineProperty(or,"__esModule",{value:!0});or.req=or.json=or.toBuffer=void 0;var n6=vk(require("http")),o6=vk(require("https"));async function bk(t){let e=0,r=[];for await(let o of t)e+=o.length,r.push(o);return Buffer.concat(r,e)}a(bk,"toBuffer");or.toBuffer=bk;async function i6(t){let r=(await bk(t)).toString("utf8");try{return JSON.parse(r)}catch(o){let n=o;throw n.message+=` (input: ${r})`,n}}a(i6,"json");or.json=i6;function a6(t,e={}){let o=((typeof t=="string"?t:t.href).startsWith("https:")?o6:n6).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(a6,"req");or.req=a6});var Tk=z(hr=>{"use strict";var Sk=hr&&hr.__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]})),s6=hr&&hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xk=hr&&hr.__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)&&Sk(e,t,r);return s6(e,t),e},c6=hr&&hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Sk(e,t,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.Agent=void 0;var u6=xk(require("net")),Ek=xk(require("http")),l6=require("https");c6(Pk(),hr);var dn=Symbol("AgentBaseInternalState"),Zb=class extends Ek.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 u6.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)?l6.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 Ek.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)}};hr.Agent=Zb});var Ak=z(za=>{"use strict";var d6=za&&za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(za,"__esModule",{value:!0});za.parseProxyResponse=void 0;var p6=d6(Hb()),$f=(0,p6.default)("https-proxy-agent:parse-proxy-response");function f6(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(),
|
|
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}:${
|
|
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",u4),n.secureEndpoint?(nu("Upgrading socket connection to TLS"),ZO.connect({...GO(HO(n),"host","path","port"),socket:r})):r;r.destroy();let y=new Ef.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{nu("Replaying proxy buffer for failed request"),(0,o4.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};Pf.protocols=["http","https"];wr.HttpsProxyAgent=Pf;function u4(t){t.resume()}a(u4,"resume");function GO(t,...e){let n={},o;for(o in t)e.includes(o)||(n[o]=t[o]);return n}a(GO,"omit")});function l4(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 n=t.substring(5,e).split(";"),o="",r=!1,i=n[0]||"text/plain",s=i;for(let f=1;f<n.length;f++)n[f]==="base64"?r=!0:n[f]&&(s+=`;${n[f]}`,n[f].indexOf("charset=")===0&&(o=n[f].substring(8)));!n[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=r?"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 XO,YO=Tt(()=>{a(l4,"dataUriToBuffer");XO=l4});var eC=N((xf,QO)=>{(function(t,e){typeof xf=="object"&&typeof QO<"u"?e(xf):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WebStreamsPolyfill={}))})(xf,(function(t){"use strict";function e(){}a(e,"noop");function n(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(n,"typeIsObject");let o=e;function r(c,d){try{Object.defineProperty(c,"name",{value:d,configurable:!0})}catch{}}a(r,"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 E(c,d,g){return y(c,d,g)}a(E,"transformPromiseWith");function P(c){y(c,void 0,o)}a(P,"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 z(c,d,g){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,d,g)}a(z,"reflectCall");function M(c,d,g){try{return p(z(c,d,g))}catch(S){return f(S)}}a(M,"promiseCall");let K=16384;class Z{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===K-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,L=d._elements,V=L[S];return I===K&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),L[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 J=Symbol("[[AbortSteps]]"),ee=Symbol("[[ErrorSteps]]"),ae=Symbol("[[CancelSteps]]"),Y=Symbol("[[PullSteps]]"),ze=Symbol("[[ReleaseSteps]]");function se(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?X(c):d._state==="closed"?de(c):ue(c,d._storedError)}a(se,"ReadableStreamReaderGenericInitialize");function G(c,d){let g=c._ownerReadableStream;return zr(g,d)}a(G,"ReadableStreamReaderGenericCancel");function H(c){let d=c._ownerReadableStream;d._state==="readable"?Ce(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):De(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),d._readableStreamController[ze](),d._reader=void 0,c._ownerReadableStream=void 0}a(H,"ReadableStreamReaderGenericRelease");function re(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(re,"readerLockException");function X(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g})}a(X,"defaultReaderClosedPromiseInitialize");function ue(c,d){X(c),Ce(c,d)}a(ue,"defaultReaderClosedPromiseInitializeAsRejected");function de(c){X(c),Je(c)}a(de,"defaultReaderClosedPromiseInitializeAsResolved");function Ce(c,d){c._closedPromise_reject!==void 0&&(P(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Ce,"defaultReaderClosedPromiseReject");function De(c,d){ue(c,d)}a(De,"defaultReaderClosedPromiseResetToRejected");function Je(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(Je,"defaultReaderClosedPromiseResolve");let tt=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},xt=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function ie(c){return typeof c=="object"||typeof c=="function"}a(ie,"isDictionary");function dt(c,d){if(c!==void 0&&!ie(c))throw new TypeError(`${d} is not an object.`)}a(dt,"assertDictionary");function ft(c,d){if(typeof c!="function")throw new TypeError(`${d} is not a function.`)}a(ft,"assertFunction");function er(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(er,"isObject");function He(c,d){if(!er(c))throw new TypeError(`${d} is not an object.`)}a(He,"assertObject");function Ke(c,d,g){if(c===void 0)throw new TypeError(`Parameter ${d} is required in '${g}'.`)}a(Ke,"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 U(c){return A(xt(c))}a(U,"integerPart");function O(c,d){let S=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!tt(I))throw new TypeError(`${d} is not a finite number`);if(I=U(I),I<0||I>S)throw new TypeError(`${d} is outside the accepted range of 0 to ${S}, inclusive`);return!tt(I)||I===0?0:I}a(O,"convertUnsignedLongLongWithEnforceRange");function k(c,d){if(!Hn(c))throw new TypeError(`${d} is not a ReadableStream.`)}a(k,"assertReadableStream");function F(c){return new W(c)}a(F,"AcquireReadableStreamDefaultReader");function R(c,d){c._reader._readRequests.push(d)}a(R,"ReadableStreamAddReadRequest");function $(c,d,g){let I=c._reader._readRequests.shift();g?I._closeSteps():I._chunkSteps(d)}a($,"ReadableStreamFulfillReadRequest");function j(c){return c._reader._readRequests.length}a(j,"ReadableStreamGetNumReadRequests");function D(c){let d=c._reader;return!(d===void 0||!pe(d))}a(D,"ReadableStreamHasDefaultReader");class W{static{a(this,"ReadableStreamDefaultReader")}constructor(d){if(Ke(d,1,"ReadableStreamDefaultReader"),k(d,"First parameter"),Gn(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");se(this,d),this._readRequests=new Z}get closed(){return pe(this)?this._closedPromise:f(at("closed"))}cancel(d=void 0){return pe(this)?this._ownerReadableStream===void 0?f(re("cancel")):G(this,d):f(at("cancel"))}read(){if(!pe(this))return f(at("read"));if(this._ownerReadableStream===void 0)return f(re("read from"));let d,g,S=l((L,V)=>{d=L,g=V});return me(this,{_chunkSteps:a(L=>d({value:L,done:!1}),"_chunkSteps"),_closeSteps:a(()=>d({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(L=>g(L),"_errorSteps")}),S}releaseLock(){if(!pe(this))throw at("releaseLock");this._ownerReadableStream!==void 0&&qe(this)}}Object.defineProperties(W.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(W.prototype.cancel,"cancel"),r(W.prototype.read,"read"),r(W.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(W.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function pe(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof W}a(pe,"IsReadableStreamDefaultReader");function me(c,d){let g=c._ownerReadableStream;g._disturbed=!0,g._state==="closed"?d._closeSteps():g._state==="errored"?d._errorSteps(g._storedError):g._readableStreamController[Y](d)}a(me,"ReadableStreamDefaultReaderRead");function qe(c){H(c);let d=new TypeError("Reader was released");it(c,d)}a(qe,"ReadableStreamDefaultReaderRelease");function it(c,d){let g=c._readRequests;c._readRequests=new Z,g.forEach(S=>{S._errorSteps(d)})}a(it,"ReadableStreamDefaultReaderErrorReadRequests");function at(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(at,"defaultReaderBrandCheckException");let Fe=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Ze{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?E(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?E(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,le)=>{g=V,S=le});return me(d,{_chunkSteps:a(V=>{this._ongoingPromise=void 0,x(()=>g({value:V,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,H(d),g({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(V=>{this._ongoingPromise=void 0,this._isFinished=!0,H(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=G(g,d);return H(g),E(S,()=>({value:d,done:!0}))}return H(g),p({value:d,done:!0})}}let vt={next(){return Si(this)?this._asyncIteratorImpl.next():f(Ei("next"))},return(c){return Si(this)?this._asyncIteratorImpl.return(c):f(Ei("return"))}};Object.setPrototypeOf(vt,Fe);function bi(c,d){let g=F(c),S=new Ze(g,d),I=Object.create(vt);return I._asyncIteratorImpl=S,I}a(bi,"AcquireReadableStreamAsyncIterator");function Si(c){if(!n(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Ze}catch{return!1}}a(Si,"IsReadableStreamAsyncIterator");function Ei(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(Ei,"streamAsyncIteratorBrandCheckException");let tr=Number.isNaN||function(c){return c!==c};var yn,zt,bt;function Xe(c){return c.slice()}a(Xe,"CreateArrayFromList");function mP(c,d,g,S,I){new Uint8Array(c).set(new Uint8Array(g,S,I),d)}a(mP,"CopyDataBlockBytes");let _n=a(c=>(typeof c.transfer=="function"?_n=a(d=>d.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?_n=a(d=>structuredClone(d,{transfer:[d]}),"TransferArrayBuffer"):_n=a(d=>d,"TransferArrayBuffer"),_n(c)),"TransferArrayBuffer"),Bn=a(c=>(typeof c.detached=="boolean"?Bn=a(d=>d.detached,"IsDetachedBuffer"):Bn=a(d=>d.byteLength===0,"IsDetachedBuffer"),Bn(c)),"IsDetachedBuffer");function hP(c,d,g){if(c.slice)return c.slice(d,g);let S=g-d,I=new ArrayBuffer(S);return mP(I,0,c,d,S),I}a(hP,"ArrayBufferSlice");function Vu(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(Vu,"GetMethod");function DN(c){let d={[Symbol.iterator]:()=>c.iterator},g=(async function*(){return yield*d})(),S=g.next;return{iterator:g,nextMethod:S,done:!1}}a(DN,"CreateAsyncFromSyncIterator");let Km=(bt=(yn=Symbol.asyncIterator)!==null&&yn!==void 0?yn:(zt=Symbol.for)===null||zt===void 0?void 0:zt.call(Symbol,"Symbol.asyncIterator"))!==null&&bt!==void 0?bt:"@@asyncIterator";function gP(c,d="sync",g){if(g===void 0)if(d==="async"){if(g=Vu(c,Km),g===void 0){let L=Vu(c,Symbol.iterator),V=gP(c,"sync",L);return DN(V)}}else g=Vu(c,Symbol.iterator);if(g===void 0)throw new TypeError("The object is not iterable");let S=z(g,c,[]);if(!n(S))throw new TypeError("The iterator method must return an object");let I=S.next;return{iterator:S,nextMethod:I,done:!1}}a(gP,"GetIterator");function UN(c){let d=z(c.nextMethod,c.iterator,[]);if(!n(d))throw new TypeError("The iterator.next() method must return an object");return d}a(UN,"IteratorNext");function MN(c){return!!c.done}a(MN,"IteratorComplete");function jN(c){return c.value}a(jN,"IteratorValue");function LN(c){return!(typeof c!="number"||tr(c)||c<0)}a(LN,"IsNonNegativeNumber");function yP(c){let d=hP(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(yP,"CloneAsUint8Array");function Xm(c){let d=c._queue.shift();return c._queueTotalSize-=d.size,c._queueTotalSize<0&&(c._queueTotalSize=0),d.value}a(Xm,"DequeueValue");function Ym(c,d,g){if(!LN(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(Ym,"EnqueueValueWithSize");function FN(c){return c._queue.peek().value}a(FN,"PeekQueueValue");function qn(c){c._queue=new Z,c._queueTotalSize=0}a(qn,"ResetQueue");function _P(c){return c===DataView}a(_P,"isDataViewConstructor");function BN(c){return _P(c.constructor)}a(BN,"isDataView");function qN(c){return _P(c)?1:c.BYTES_PER_ELEMENT}a(qN,"arrayBufferViewElementSize");class Ro{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Qm(this))throw oh("view");return this._view}respond(d){if(!Qm(this))throw oh("respond");if(Ke(d,1,"respond"),d=O(d,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Bn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Wu(this._associatedReadableByteStreamController,d)}respondWithNewView(d){if(!Qm(this))throw oh("respondWithNewView");if(Ke(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(Bn(d.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Ju(this._associatedReadableByteStreamController,d)}}Object.defineProperties(Ro.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),r(Ro.prototype.respond,"respond"),r(Ro.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ro.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class vn{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Oo(this))throw Ya("byobRequest");return nh(this)}get desiredSize(){if(!Oo(this))throw Ya("desiredSize");return IP(this)}close(){if(!Oo(this))throw Ya("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`);Xa(this)}enqueue(d){if(!Oo(this))throw Ya("enqueue");if(Ke(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`);Gu(this,d)}error(d=void 0){if(!Oo(this))throw Ya("error");br(this,d)}[ae](d){vP(this),qn(this);let g=this._cancelAlgorithm(d);return Hu(this),g}[Y](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){wP(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 L={buffer:I,bufferByteLength:S,byteOffset:0,byteLength:S,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(L)}R(g,d),Co(this)}[ze](){if(this._pendingPullIntos.length>0){let d=this._pendingPullIntos.peek();d.readerType="none",this._pendingPullIntos=new Z,this._pendingPullIntos.push(d)}}}Object.defineProperties(vn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),r(vn.prototype.close,"close"),r(vn.prototype.enqueue,"enqueue"),r(vn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(vn.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Oo(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof vn}a(Oo,"IsReadableByteStreamController");function Qm(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Ro}a(Qm,"IsReadableStreamBYOBRequest");function Co(c){if(!WN(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,Co(c)),null),S=>(br(c,S),null))}a(Co,"ReadableByteStreamControllerCallPullIfNeeded");function vP(c){th(c),c._pendingPullIntos=new Z}a(vP,"ReadableByteStreamControllerClearPendingPullIntos");function eh(c,d){let g=!1;c._state==="closed"&&(g=!0);let S=bP(d);d.readerType==="default"?$(c,S,g):ez(c,S,g)}a(eh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function bP(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(bP,"ReadableByteStreamControllerConvertPullIntoDescriptor");function Zu(c,d,g,S){c._queue.push({buffer:d,byteOffset:g,byteLength:S}),c._queueTotalSize+=S}a(Zu,"ReadableByteStreamControllerEnqueueChunkToQueue");function SP(c,d,g,S){let I;try{I=hP(d,g,g+S)}catch(L){throw br(c,L),L}Zu(c,I,0,S)}a(SP,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function EP(c,d){d.bytesFilled>0&&SP(c,d.buffer,d.byteOffset,d.bytesFilled),Pi(c)}a(EP,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function PP(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),S=d.bytesFilled+g,I=g,L=!1,V=S%d.elementSize,le=S-V;le>=d.minimumFill&&(I=le-d.bytesFilled,L=!0);let xe=c._queue;for(;I>0;){let he=xe.peek(),Ie=Math.min(I,he.byteLength),Ue=d.byteOffset+d.bytesFilled;mP(d.buffer,Ue,he.buffer,he.byteOffset,Ie),he.byteLength===Ie?xe.shift():(he.byteOffset+=Ie,he.byteLength-=Ie),c._queueTotalSize-=Ie,xP(c,Ie,d),I-=Ie}return L}a(PP,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function xP(c,d,g){g.bytesFilled+=d}a(xP,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function TP(c){c._queueTotalSize===0&&c._closeRequested?(Hu(c),os(c._controlledReadableByteStream)):Co(c)}a(TP,"ReadableByteStreamControllerHandleQueueDrain");function th(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(th,"ReadableByteStreamControllerInvalidateBYOBRequest");function rh(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let d=c._pendingPullIntos.peek();PP(c,d)&&(Pi(c),eh(c._controlledReadableByteStream,d))}}a(rh,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function VN(c){let d=c._controlledReadableByteStream._reader;for(;d._readRequests.length>0;){if(c._queueTotalSize===0)return;let g=d._readRequests.shift();wP(c,g)}}a(VN,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function ZN(c,d,g,S){let I=c._controlledReadableByteStream,L=d.constructor,V=qN(L),{byteOffset:le,byteLength:xe}=d,he=g*V,Ie;try{Ie=_n(d.buffer)}catch(rt){S._errorSteps(rt);return}let Ue={buffer:Ie,bufferByteLength:Ie.byteLength,byteOffset:le,byteLength:xe,bytesFilled:0,minimumFill:he,elementSize:V,viewConstructor:L,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Ue),CP(I,S);return}if(I._state==="closed"){let rt=new L(Ue.buffer,Ue.byteOffset,0);S._closeSteps(rt);return}if(c._queueTotalSize>0){if(PP(c,Ue)){let rt=bP(Ue);TP(c),S._chunkSteps(rt);return}if(c._closeRequested){let rt=new TypeError("Insufficient bytes to fill elements in the given buffer");br(c,rt),S._errorSteps(rt);return}}c._pendingPullIntos.push(Ue),CP(I,S),Co(c)}a(ZN,"ReadableByteStreamControllerPullInto");function HN(c,d){d.readerType==="none"&&Pi(c);let g=c._controlledReadableByteStream;if(ih(g))for(;$P(g)>0;){let S=Pi(c);eh(g,S)}}a(HN,"ReadableByteStreamControllerRespondInClosedState");function GN(c,d,g){if(xP(c,d,g),g.readerType==="none"){EP(c,g),rh(c);return}if(g.bytesFilled<g.minimumFill)return;Pi(c);let S=g.bytesFilled%g.elementSize;if(S>0){let I=g.byteOffset+g.bytesFilled;SP(c,g.buffer,I-S,S)}g.bytesFilled-=S,eh(c._controlledReadableByteStream,g),rh(c)}a(GN,"ReadableByteStreamControllerRespondInReadableState");function AP(c,d){let g=c._pendingPullIntos.peek();th(c),c._controlledReadableByteStream._state==="closed"?HN(c,g):GN(c,d,g),Co(c)}a(AP,"ReadableByteStreamControllerRespondInternal");function Pi(c){return c._pendingPullIntos.shift()}a(Pi,"ReadableByteStreamControllerShiftPendingPullInto");function WN(c){let d=c._controlledReadableByteStream;return d._state!=="readable"||c._closeRequested||!c._started?!1:!!(D(d)&&j(d)>0||ih(d)&&$P(d)>0||IP(c)>0)}a(WN,"ReadableByteStreamControllerShouldCallPull");function Hu(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Hu,"ReadableByteStreamControllerClearAlgorithms");function Xa(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 br(c,S),S}}Hu(c),os(d)}}a(Xa,"ReadableByteStreamControllerClose");function Gu(c,d){let g=c._controlledReadableByteStream;if(c._closeRequested||g._state!=="readable")return;let{buffer:S,byteOffset:I,byteLength:L}=d;if(Bn(S))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let V=_n(S);if(c._pendingPullIntos.length>0){let le=c._pendingPullIntos.peek();if(Bn(le.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");th(c),le.buffer=_n(le.buffer),le.readerType==="none"&&EP(c,le)}if(D(g))if(VN(c),j(g)===0)Zu(c,V,I,L);else{c._pendingPullIntos.length>0&&Pi(c);let le=new Uint8Array(V,I,L);$(g,le,!1)}else ih(g)?(Zu(c,V,I,L),rh(c)):Zu(c,V,I,L);Co(c)}a(Gu,"ReadableByteStreamControllerEnqueue");function br(c,d){let g=c._controlledReadableByteStream;g._state==="readable"&&(vP(c),qn(c),Hu(c),rx(g,d))}a(br,"ReadableByteStreamControllerError");function wP(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,TP(c);let S=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(S)}a(wP,"ReadableByteStreamControllerFillReadRequestFromQueue");function nh(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(Ro.prototype);KN(S,c,g),c._byobRequest=S}return c._byobRequest}a(nh,"ReadableByteStreamControllerGetBYOBRequest");function IP(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(IP,"ReadableByteStreamControllerGetDesiredSize");function Wu(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=_n(g.buffer),AP(c,d)}a(Wu,"ReadableByteStreamControllerRespond");function Ju(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=_n(d.buffer),AP(c,I)}a(Ju,"ReadableByteStreamControllerRespondWithNewView");function RP(c,d,g,S,I,L,V){d._controlledReadableByteStream=c,d._pullAgain=!1,d._pulling=!1,d._byobRequest=null,d._queue=d._queueTotalSize=void 0,qn(d),d._closeRequested=!1,d._started=!1,d._strategyHWM=L,d._pullAlgorithm=S,d._cancelAlgorithm=I,d._autoAllocateChunkSize=V,d._pendingPullIntos=new Z,c._readableStreamController=d;let le=g();m(p(le),()=>(d._started=!0,Co(d),null),xe=>(br(d,xe),null))}a(RP,"SetUpReadableByteStreamController");function JN(c,d,g){let S=Object.create(vn.prototype),I,L,V;d.start!==void 0?I=a(()=>d.start(S),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?L=a(()=>d.pull(S),"pullAlgorithm"):L=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?V=a(xe=>d.cancel(xe),"cancelAlgorithm"):V=a(()=>p(void 0),"cancelAlgorithm");let le=d.autoAllocateChunkSize;if(le===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");RP(c,S,I,L,V,g,le)}a(JN,"SetUpReadableByteStreamControllerFromUnderlyingSource");function KN(c,d,g){c._associatedReadableByteStreamController=d,c._view=g}a(KN,"SetUpReadableStreamBYOBRequest");function oh(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(oh,"byobRequestBrandCheckException");function Ya(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(Ya,"byteStreamControllerBrandCheckException");function XN(c,d){dt(c,d);let g=c?.mode;return{mode:g===void 0?void 0:YN(g,`${d} has member 'mode' that`)}}a(XN,"convertReaderOptions");function YN(c,d){if(c=`${c}`,c!=="byob")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a(YN,"convertReadableStreamReaderMode");function QN(c,d){var g;dt(c,d);let S=(g=c?.min)!==null&&g!==void 0?g:1;return{min:O(S,`${d} has member 'min' that`)}}a(QN,"convertByobReadOptions");function OP(c){return new Vn(c)}a(OP,"AcquireReadableStreamBYOBReader");function CP(c,d){c._reader._readIntoRequests.push(d)}a(CP,"ReadableStreamAddReadIntoRequest");function ez(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(ez,"ReadableStreamFulfillReadIntoRequest");function $P(c){return c._reader._readIntoRequests.length}a($P,"ReadableStreamGetNumReadIntoRequests");function ih(c){let d=c._reader;return!(d===void 0||!$o(d))}a(ih,"ReadableStreamHasBYOBReader");class Vn{static{a(this,"ReadableStreamBYOBReader")}constructor(d){if(Ke(d,1,"ReadableStreamBYOBReader"),k(d,"First parameter"),Gn(d))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Oo(d._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");se(this,d),this._readIntoRequests=new Z}get closed(){return $o(this)?this._closedPromise:f(Ku("closed"))}cancel(d=void 0){return $o(this)?this._ownerReadableStream===void 0?f(re("cancel")):G(this,d):f(Ku("cancel"))}read(d,g={}){if(!$o(this))return f(Ku("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(Bn(d.buffer))return f(new TypeError("view's buffer has been detached"));let S;try{S=QN(g,"options")}catch(he){return f(he)}let I=S.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(BN(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(re("read from"));let L,V,le=l((he,Ie)=>{L=he,V=Ie});return kP(this,d,I,{_chunkSteps:a(he=>L({value:he,done:!1}),"_chunkSteps"),_closeSteps:a(he=>L({value:he,done:!0}),"_closeSteps"),_errorSteps:a(he=>V(he),"_errorSteps")}),le}releaseLock(){if(!$o(this))throw Ku("releaseLock");this._ownerReadableStream!==void 0&&tz(this)}}Object.defineProperties(Vn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(Vn.prototype.cancel,"cancel"),r(Vn.prototype.read,"read"),r(Vn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Vn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function $o(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Vn}a($o,"IsReadableStreamBYOBReader");function kP(c,d,g,S){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?S._errorSteps(I._storedError):ZN(I._readableStreamController,d,g,S)}a(kP,"ReadableStreamBYOBReaderRead");function tz(c){H(c);let d=new TypeError("Reader was released");NP(c,d)}a(tz,"ReadableStreamBYOBReaderRelease");function NP(c,d){let g=c._readIntoRequests;c._readIntoRequests=new Z,g.forEach(S=>{S._errorSteps(d)})}a(NP,"ReadableStreamBYOBReaderErrorReadIntoRequests");function Ku(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(Ku,"byobReaderBrandCheckException");function Qa(c,d){let{highWaterMark:g}=c;if(g===void 0)return d;if(tr(g)||g<0)throw new RangeError("Invalid highWaterMark");return g}a(Qa,"ExtractHighWaterMark");function Xu(c){let{size:d}=c;return d||(()=>1)}a(Xu,"ExtractSizeAlgorithm");function Yu(c,d){dt(c,d);let g=c?.highWaterMark,S=c?.size;return{highWaterMark:g===void 0?void 0:T(g),size:S===void 0?void 0:rz(S,`${d} has member 'size' that`)}}a(Yu,"convertQueuingStrategy");function rz(c,d){return ft(c,d),g=>T(c(g))}a(rz,"convertQueuingStrategySize");function nz(c,d){dt(c,d);let g=c?.abort,S=c?.close,I=c?.start,L=c?.type,V=c?.write;return{abort:g===void 0?void 0:oz(g,c,`${d} has member 'abort' that`),close:S===void 0?void 0:iz(S,c,`${d} has member 'close' that`),start:I===void 0?void 0:az(I,c,`${d} has member 'start' that`),write:V===void 0?void 0:sz(V,c,`${d} has member 'write' that`),type:L}}a(nz,"convertUnderlyingSink");function oz(c,d,g){return ft(c,g),S=>M(c,d,[S])}a(oz,"convertUnderlyingSinkAbortCallback");function iz(c,d,g){return ft(c,g),()=>M(c,d,[])}a(iz,"convertUnderlyingSinkCloseCallback");function az(c,d,g){return ft(c,g),S=>z(c,d,[S])}a(az,"convertUnderlyingSinkStartCallback");function sz(c,d,g){return ft(c,g),(S,I)=>M(c,d,[S,I])}a(sz,"convertUnderlyingSinkWriteCallback");function zP(c,d){if(!xi(c))throw new TypeError(`${d} is not a WritableStream.`)}a(zP,"assertWritableStream");function cz(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(cz,"isAbortSignal");let uz=typeof AbortController=="function";function lz(){if(uz)return new AbortController}a(lz,"createAbortController");class Zn{static{a(this,"WritableStream")}constructor(d={},g={}){d===void 0?d=null:He(d,"First parameter");let S=Yu(g,"Second parameter"),I=nz(d,"First parameter");if(UP(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=Xu(S),le=Qa(S,1);xz(this,I,le,V)}get locked(){if(!xi(this))throw nl("locked");return Ti(this)}abort(d=void 0){return xi(this)?Ti(this)?f(new TypeError("Cannot abort a stream that already has a writer")):Qu(this,d):f(nl("abort"))}close(){return xi(this)?Ti(this)?f(new TypeError("Cannot close a stream that already has a writer")):Yr(this)?f(new TypeError("Cannot close an already-closing stream")):MP(this):f(nl("close"))}getWriter(){if(!xi(this))throw nl("getWriter");return DP(this)}}Object.defineProperties(Zn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),r(Zn.prototype.abort,"abort"),r(Zn.prototype.close,"close"),r(Zn.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Zn.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function DP(c){return new bn(c)}a(DP,"AcquireWritableStreamDefaultWriter");function dz(c,d,g,S,I=1,L=()=>1){let V=Object.create(Zn.prototype);UP(V);let le=Object.create(Ai.prototype);return VP(V,le,c,d,g,S,I,L),V}a(dz,"CreateWritableStream");function UP(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new Z,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(UP,"InitializeWritableStream");function xi(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof Zn}a(xi,"IsWritableStream");function Ti(c){return c._writer!==void 0}a(Ti,"IsWritableStreamLocked");function Qu(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 L=l((V,le)=>{c._pendingAbortRequest={_promise:void 0,_resolve:V,_reject:le,_reason:d,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=L,I||sh(c,d),L}a(Qu,"WritableStreamAbort");function MP(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,L)=>{let V={_resolve:I,_reject:L};c._closeRequest=V}),S=c._writer;return S!==void 0&&c._backpressure&&d==="writable"&&hh(S),Tz(c._writableStreamController),g}a(MP,"WritableStreamClose");function pz(c){return l((g,S)=>{let I={_resolve:g,_reject:S};c._writeRequests.push(I)})}a(pz,"WritableStreamAddWriteRequest");function ah(c,d){if(c._state==="writable"){sh(c,d);return}ch(c)}a(ah,"WritableStreamDealWithRejection");function sh(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let S=c._writer;S!==void 0&&LP(S,d),!yz(c)&&g._started&&ch(c)}a(sh,"WritableStreamStartErroring");function ch(c){c._state="errored",c._writableStreamController[ee]();let d=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(d)}),c._writeRequests=new Z,c._pendingAbortRequest===void 0){el(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),el(c);return}let S=c._writableStreamController[J](g._reason);m(S,()=>(g._resolve(),el(c),null),I=>(g._reject(I),el(c),null))}a(ch,"WritableStreamFinishErroring");function fz(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(fz,"WritableStreamFinishInFlightWrite");function mz(c,d){c._inFlightWriteRequest._reject(d),c._inFlightWriteRequest=void 0,ah(c,d)}a(mz,"WritableStreamFinishInFlightWriteWithError");function hz(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&&WP(g)}a(hz,"WritableStreamFinishInFlightClose");function gz(c,d){c._inFlightCloseRequest._reject(d),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(d),c._pendingAbortRequest=void 0),ah(c,d)}a(gz,"WritableStreamFinishInFlightCloseWithError");function Yr(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(Yr,"WritableStreamCloseQueuedOrInFlight");function yz(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(yz,"WritableStreamHasOperationMarkedInFlight");function _z(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(_z,"WritableStreamMarkCloseRequestInFlight");function vz(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(vz,"WritableStreamMarkFirstWriteRequestInFlight");function el(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let d=c._writer;d!==void 0&&fh(d,c._storedError)}a(el,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function uh(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?$z(g):hh(g)),c._backpressure=d}a(uh,"WritableStreamUpdateBackpressure");class bn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(Ke(d,1,"WritableStreamDefaultWriter"),zP(d,"First parameter"),Ti(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")!Yr(d)&&d._backpressure?il(this):JP(this),ol(this);else if(g==="erroring")mh(this,d._storedError),ol(this);else if(g==="closed")JP(this),Oz(this);else{let S=d._storedError;mh(this,S),GP(this,S)}}get closed(){return ko(this)?this._closedPromise:f(No("closed"))}get desiredSize(){if(!ko(this))throw No("desiredSize");if(this._ownerWritableStream===void 0)throw ts("desiredSize");return Pz(this)}get ready(){return ko(this)?this._readyPromise:f(No("ready"))}abort(d=void 0){return ko(this)?this._ownerWritableStream===void 0?f(ts("abort")):bz(this,d):f(No("abort"))}close(){if(!ko(this))return f(No("close"));let d=this._ownerWritableStream;return d===void 0?f(ts("close")):Yr(d)?f(new TypeError("Cannot close an already-closing stream")):jP(this)}releaseLock(){if(!ko(this))throw No("releaseLock");this._ownerWritableStream!==void 0&&FP(this)}write(d=void 0){return ko(this)?this._ownerWritableStream===void 0?f(ts("write to")):BP(this,d):f(No("write"))}}Object.defineProperties(bn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),r(bn.prototype.abort,"abort"),r(bn.prototype.close,"close"),r(bn.prototype.releaseLock,"releaseLock"),r(bn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(bn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function ko(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof bn}a(ko,"IsWritableStreamDefaultWriter");function bz(c,d){let g=c._ownerWritableStream;return Qu(g,d)}a(bz,"WritableStreamDefaultWriterAbort");function jP(c){let d=c._ownerWritableStream;return MP(d)}a(jP,"WritableStreamDefaultWriterClose");function Sz(c){let d=c._ownerWritableStream,g=d._state;return Yr(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):jP(c)}a(Sz,"WritableStreamDefaultWriterCloseWithErrorPropagation");function Ez(c,d){c._closedPromiseState==="pending"?fh(c,d):Cz(c,d)}a(Ez,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function LP(c,d){c._readyPromiseState==="pending"?KP(c,d):kz(c,d)}a(LP,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function Pz(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:ZP(d._writableStreamController)}a(Pz,"WritableStreamDefaultWriterGetDesiredSize");function FP(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");LP(c,g),Ez(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(FP,"WritableStreamDefaultWriterRelease");function BP(c,d){let g=c._ownerWritableStream,S=g._writableStreamController,I=Az(S,d);if(g!==c._ownerWritableStream)return f(ts("write to"));let L=g._state;if(L==="errored")return f(g._storedError);if(Yr(g)||L==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(L==="erroring")return f(g._storedError);let V=pz(g);return wz(S,d,I),V}a(BP,"WritableStreamDefaultWriterWrite");let qP={};class Ai{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!lh(this))throw ph("abortReason");return this._abortReason}get signal(){if(!lh(this))throw ph("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!lh(this))throw ph("error");this._controlledWritableStream._state==="writable"&&HP(this,d)}[J](d){let g=this._abortAlgorithm(d);return tl(this),g}[ee](){qn(this)}}Object.defineProperties(Ai.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ai.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function lh(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Ai}a(lh,"IsWritableStreamDefaultController");function VP(c,d,g,S,I,L,V,le){d._controlledWritableStream=c,c._writableStreamController=d,d._queue=void 0,d._queueTotalSize=void 0,qn(d),d._abortReason=void 0,d._abortController=lz(),d._started=!1,d._strategySizeAlgorithm=le,d._strategyHWM=V,d._writeAlgorithm=S,d._closeAlgorithm=I,d._abortAlgorithm=L;let xe=dh(d);uh(c,xe);let he=g(),Ie=p(he);m(Ie,()=>(d._started=!0,rl(d),null),Ue=>(d._started=!0,ah(c,Ue),null))}a(VP,"SetUpWritableStreamDefaultController");function xz(c,d,g,S){let I=Object.create(Ai.prototype),L,V,le,xe;d.start!==void 0?L=a(()=>d.start(I),"startAlgorithm"):L=a(()=>{},"startAlgorithm"),d.write!==void 0?V=a(he=>d.write(he,I),"writeAlgorithm"):V=a(()=>p(void 0),"writeAlgorithm"),d.close!==void 0?le=a(()=>d.close(),"closeAlgorithm"):le=a(()=>p(void 0),"closeAlgorithm"),d.abort!==void 0?xe=a(he=>d.abort(he),"abortAlgorithm"):xe=a(()=>p(void 0),"abortAlgorithm"),VP(c,I,L,V,le,xe,g,S)}a(xz,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function tl(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(tl,"WritableStreamDefaultControllerClearAlgorithms");function Tz(c){Ym(c,qP,0),rl(c)}a(Tz,"WritableStreamDefaultControllerClose");function Az(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return es(c,g),1}}a(Az,"WritableStreamDefaultControllerGetChunkSize");function ZP(c){return c._strategyHWM-c._queueTotalSize}a(ZP,"WritableStreamDefaultControllerGetDesiredSize");function wz(c,d,g){try{Ym(c,d,g)}catch(I){es(c,I);return}let S=c._controlledWritableStream;if(!Yr(S)&&S._state==="writable"){let I=dh(c);uh(S,I)}rl(c)}a(wz,"WritableStreamDefaultControllerWrite");function rl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){ch(d);return}if(c._queue.length===0)return;let S=FN(c);S===qP?Iz(c):Rz(c,S)}a(rl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function es(c,d){c._controlledWritableStream._state==="writable"&&HP(c,d)}a(es,"WritableStreamDefaultControllerErrorIfNeeded");function Iz(c){let d=c._controlledWritableStream;_z(d),Xm(c);let g=c._closeAlgorithm();tl(c),m(g,()=>(hz(d),null),S=>(gz(d,S),null))}a(Iz,"WritableStreamDefaultControllerProcessClose");function Rz(c,d){let g=c._controlledWritableStream;vz(g);let S=c._writeAlgorithm(d);m(S,()=>{fz(g);let I=g._state;if(Xm(c),!Yr(g)&&I==="writable"){let L=dh(c);uh(g,L)}return rl(c),null},I=>(g._state==="writable"&&tl(c),mz(g,I),null))}a(Rz,"WritableStreamDefaultControllerProcessWrite");function dh(c){return ZP(c)<=0}a(dh,"WritableStreamDefaultControllerGetBackpressure");function HP(c,d){let g=c._controlledWritableStream;tl(c),sh(g,d)}a(HP,"WritableStreamDefaultControllerError");function nl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(nl,"streamBrandCheckException$2");function ph(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(ph,"defaultControllerBrandCheckException$2");function No(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(No,"defaultWriterBrandCheckException");function ts(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(ts,"defaultWriterLockException");function ol(c){c._closedPromise=l((d,g)=>{c._closedPromise_resolve=d,c._closedPromise_reject=g,c._closedPromiseState="pending"})}a(ol,"defaultWriterClosedPromiseInitialize");function GP(c,d){ol(c),fh(c,d)}a(GP,"defaultWriterClosedPromiseInitializeAsRejected");function Oz(c){ol(c),WP(c)}a(Oz,"defaultWriterClosedPromiseInitializeAsResolved");function fh(c,d){c._closedPromise_reject!==void 0&&(P(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(fh,"defaultWriterClosedPromiseReject");function Cz(c,d){GP(c,d)}a(Cz,"defaultWriterClosedPromiseResetToRejected");function WP(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(WP,"defaultWriterClosedPromiseResolve");function il(c){c._readyPromise=l((d,g)=>{c._readyPromise_resolve=d,c._readyPromise_reject=g}),c._readyPromiseState="pending"}a(il,"defaultWriterReadyPromiseInitialize");function mh(c,d){il(c),KP(c,d)}a(mh,"defaultWriterReadyPromiseInitializeAsRejected");function JP(c){il(c),hh(c)}a(JP,"defaultWriterReadyPromiseInitializeAsResolved");function KP(c,d){c._readyPromise_reject!==void 0&&(P(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(KP,"defaultWriterReadyPromiseReject");function $z(c){il(c)}a($z,"defaultWriterReadyPromiseReset");function kz(c,d){mh(c,d)}a(kz,"defaultWriterReadyPromiseResetToRejected");function hh(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(hh,"defaultWriterReadyPromiseResolve");function Nz(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(Nz,"getGlobals");let gh=Nz();function zz(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(zz,"isDOMExceptionConstructor");function Dz(){let c=gh?.DOMException;return zz(c)?c:void 0}a(Dz,"getFromGlobal");function Uz(){let c=a(function(g,S){this.message=g||"",this.name=S||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return r(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(Uz,"createPolyfill");let Mz=Dz()||Uz();function XP(c,d,g,S,I,L){let V=F(c),le=DP(d);c._disturbed=!0;let xe=!1,he=p(void 0);return l((Ie,Ue)=>{let rt;if(L!==void 0){if(rt=a(()=>{let ye=L.reason!==void 0?L.reason:new Mz("Aborted","AbortError"),je=[];S||je.push(()=>d._state==="writable"?Qu(d,ye):p(void 0)),I||je.push(()=>c._state==="readable"?zr(c,ye):p(void 0)),Vt(()=>Promise.all(je.map(nt=>nt())),!0,ye)},"abortAlgorithm"),L.aborted){rt();return}L.addEventListener("abort",rt)}function Dr(){return l((ye,je)=>{function nt(rr){rr?ye():y(Oi(),nt,je)}a(nt,"next"),nt(!1)})}a(Dr,"pipeLoop");function Oi(){return xe?p(!0):y(le._readyPromise,()=>l((ye,je)=>{me(V,{_chunkSteps:a(nt=>{he=y(BP(le,nt),void 0,e),ye(!1)},"_chunkSteps"),_closeSteps:a(()=>ye(!0),"_closeSteps"),_errorSteps:je})}))}if(a(Oi,"pipeStep"),En(c,V._closedPromise,ye=>(S?Sr(!0,ye):Vt(()=>Qu(d,ye),!0,ye),null)),En(d,le._closedPromise,ye=>(I?Sr(!0,ye):Vt(()=>zr(c,ye),!0,ye),null)),jt(c,V._closedPromise,()=>(g?Sr():Vt(()=>Sz(le)),null)),Yr(d)||d._state==="closed"){let ye=new TypeError("the destination writable stream closed before all data could be piped to it");I?Sr(!0,ye):Vt(()=>zr(c,ye),!0,ye)}P(Dr());function Jn(){let ye=he;return y(he,()=>ye!==he?Jn():void 0)}a(Jn,"waitForWritesToFinish");function En(ye,je,nt){ye._state==="errored"?nt(ye._storedError):_(je,nt)}a(En,"isOrBecomesErrored");function jt(ye,je,nt){ye._state==="closed"?nt():h(je,nt)}a(jt,"isOrBecomesClosed");function Vt(ye,je,nt){if(xe)return;xe=!0,d._state==="writable"&&!Yr(d)?h(Jn(),rr):rr();function rr(){return m(ye(),()=>Pn(je,nt),Ci=>Pn(!0,Ci)),null}a(rr,"doTheRest")}a(Vt,"shutdownWithAction");function Sr(ye,je){xe||(xe=!0,d._state==="writable"&&!Yr(d)?h(Jn(),()=>Pn(ye,je)):Pn(ye,je))}a(Sr,"shutdown");function Pn(ye,je){return FP(le),H(V),L!==void 0&&L.removeEventListener("abort",rt),ye?Ue(je):Ie(void 0),null}a(Pn,"finalize")})}a(XP,"ReadableStreamPipeTo");class Sn{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!al(this))throw cl("desiredSize");return yh(this)}close(){if(!al(this))throw cl("close");if(!Ii(this))throw new TypeError("The stream is not in a state that permits close");zo(this)}enqueue(d=void 0){if(!al(this))throw cl("enqueue");if(!Ii(this))throw new TypeError("The stream is not in a state that permits enqueue");return wi(this,d)}error(d=void 0){if(!al(this))throw cl("error");Nr(this,d)}[ae](d){qn(this);let g=this._cancelAlgorithm(d);return sl(this),g}[Y](d){let g=this._controlledReadableStream;if(this._queue.length>0){let S=Xm(this);this._closeRequested&&this._queue.length===0?(sl(this),os(g)):rs(this),d._chunkSteps(S)}else R(g,d),rs(this)}[ze](){}}Object.defineProperties(Sn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),r(Sn.prototype.close,"close"),r(Sn.prototype.enqueue,"enqueue"),r(Sn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Sn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function al(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof Sn}a(al,"IsReadableStreamDefaultController");function rs(c){if(!YP(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,rs(c)),null),S=>(Nr(c,S),null))}a(rs,"ReadableStreamDefaultControllerCallPullIfNeeded");function YP(c){let d=c._controlledReadableStream;return!Ii(c)||!c._started?!1:!!(Gn(d)&&j(d)>0||yh(c)>0)}a(YP,"ReadableStreamDefaultControllerShouldCallPull");function sl(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(sl,"ReadableStreamDefaultControllerClearAlgorithms");function zo(c){if(!Ii(c))return;let d=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(sl(c),os(d))}a(zo,"ReadableStreamDefaultControllerClose");function wi(c,d){if(!Ii(c))return;let g=c._controlledReadableStream;if(Gn(g)&&j(g)>0)$(g,d,!1);else{let S;try{S=c._strategySizeAlgorithm(d)}catch(I){throw Nr(c,I),I}try{Ym(c,d,S)}catch(I){throw Nr(c,I),I}}rs(c)}a(wi,"ReadableStreamDefaultControllerEnqueue");function Nr(c,d){let g=c._controlledReadableStream;g._state==="readable"&&(qn(c),sl(c),rx(g,d))}a(Nr,"ReadableStreamDefaultControllerError");function yh(c){let d=c._controlledReadableStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(yh,"ReadableStreamDefaultControllerGetDesiredSize");function jz(c){return!YP(c)}a(jz,"ReadableStreamDefaultControllerHasBackpressure");function Ii(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Ii,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function QP(c,d,g,S,I,L,V){d._controlledReadableStream=c,d._queue=void 0,d._queueTotalSize=void 0,qn(d),d._started=!1,d._closeRequested=!1,d._pullAgain=!1,d._pulling=!1,d._strategySizeAlgorithm=V,d._strategyHWM=L,d._pullAlgorithm=S,d._cancelAlgorithm=I,c._readableStreamController=d;let le=g();m(p(le),()=>(d._started=!0,rs(d),null),xe=>(Nr(d,xe),null))}a(QP,"SetUpReadableStreamDefaultController");function Lz(c,d,g,S){let I=Object.create(Sn.prototype),L,V,le;d.start!==void 0?L=a(()=>d.start(I),"startAlgorithm"):L=a(()=>{},"startAlgorithm"),d.pull!==void 0?V=a(()=>d.pull(I),"pullAlgorithm"):V=a(()=>p(void 0),"pullAlgorithm"),d.cancel!==void 0?le=a(xe=>d.cancel(xe),"cancelAlgorithm"):le=a(()=>p(void 0),"cancelAlgorithm"),QP(c,I,L,V,le,g,S)}a(Lz,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function cl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(cl,"defaultControllerBrandCheckException$1");function Fz(c,d){return Oo(c._readableStreamController)?qz(c):Bz(c)}a(Fz,"ReadableStreamTee");function Bz(c,d){let g=F(c),S=!1,I=!1,L=!1,V=!1,le,xe,he,Ie,Ue,rt=l(jt=>{Ue=jt});function Dr(){return S?(I=!0,p(void 0)):(S=!0,me(g,{_chunkSteps:a(Vt=>{x(()=>{I=!1;let Sr=Vt,Pn=Vt;L||wi(he._readableStreamController,Sr),V||wi(Ie._readableStreamController,Pn),S=!1,I&&Dr()})},"_chunkSteps"),_closeSteps:a(()=>{S=!1,L||zo(he._readableStreamController),V||zo(Ie._readableStreamController),(!L||!V)&&Ue(void 0)},"_closeSteps"),_errorSteps:a(()=>{S=!1},"_errorSteps")}),p(void 0))}a(Dr,"pullAlgorithm");function Oi(jt){if(L=!0,le=jt,V){let Vt=Xe([le,xe]),Sr=zr(c,Vt);Ue(Sr)}return rt}a(Oi,"cancel1Algorithm");function Jn(jt){if(V=!0,xe=jt,L){let Vt=Xe([le,xe]),Sr=zr(c,Vt);Ue(Sr)}return rt}a(Jn,"cancel2Algorithm");function En(){}return a(En,"startAlgorithm"),he=ns(En,Dr,Oi),Ie=ns(En,Dr,Jn),_(g._closedPromise,jt=>(Nr(he._readableStreamController,jt),Nr(Ie._readableStreamController,jt),(!L||!V)&&Ue(void 0),null)),[he,Ie]}a(Bz,"ReadableStreamDefaultTee");function qz(c){let d=F(c),g=!1,S=!1,I=!1,L=!1,V=!1,le,xe,he,Ie,Ue,rt=l(ye=>{Ue=ye});function Dr(ye){_(ye._closedPromise,je=>(ye!==d||(br(he._readableStreamController,je),br(Ie._readableStreamController,je),(!L||!V)&&Ue(void 0)),null))}a(Dr,"forwardReaderError");function Oi(){$o(d)&&(H(d),d=F(c),Dr(d)),me(d,{_chunkSteps:a(je=>{x(()=>{S=!1,I=!1;let nt=je,rr=je;if(!L&&!V)try{rr=yP(je)}catch(Ci){br(he._readableStreamController,Ci),br(Ie._readableStreamController,Ci),Ue(zr(c,Ci));return}L||Gu(he._readableStreamController,nt),V||Gu(Ie._readableStreamController,rr),g=!1,S?En():I&&jt()})},"_chunkSteps"),_closeSteps:a(()=>{g=!1,L||Xa(he._readableStreamController),V||Xa(Ie._readableStreamController),he._readableStreamController._pendingPullIntos.length>0&&Wu(he._readableStreamController,0),Ie._readableStreamController._pendingPullIntos.length>0&&Wu(Ie._readableStreamController,0),(!L||!V)&&Ue(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(Oi,"pullWithDefaultReader");function Jn(ye,je){pe(d)&&(H(d),d=OP(c),Dr(d));let nt=je?Ie:he,rr=je?he:Ie;kP(d,ye,1,{_chunkSteps:a($i=>{x(()=>{S=!1,I=!1;let ki=je?V:L;if(je?L:V)ki||Ju(nt._readableStreamController,$i);else{let hx;try{hx=yP($i)}catch(Eh){br(nt._readableStreamController,Eh),br(rr._readableStreamController,Eh),Ue(zr(c,Eh));return}ki||Ju(nt._readableStreamController,$i),Gu(rr._readableStreamController,hx)}g=!1,S?En():I&&jt()})},"_chunkSteps"),_closeSteps:a($i=>{g=!1;let ki=je?V:L,gl=je?L:V;ki||Xa(nt._readableStreamController),gl||Xa(rr._readableStreamController),$i!==void 0&&(ki||Ju(nt._readableStreamController,$i),!gl&&rr._readableStreamController._pendingPullIntos.length>0&&Wu(rr._readableStreamController,0)),(!ki||!gl)&&Ue(void 0)},"_closeSteps"),_errorSteps:a(()=>{g=!1},"_errorSteps")})}a(Jn,"pullWithBYOBReader");function En(){if(g)return S=!0,p(void 0);g=!0;let ye=nh(he._readableStreamController);return ye===null?Oi():Jn(ye._view,!1),p(void 0)}a(En,"pull1Algorithm");function jt(){if(g)return I=!0,p(void 0);g=!0;let ye=nh(Ie._readableStreamController);return ye===null?Oi():Jn(ye._view,!0),p(void 0)}a(jt,"pull2Algorithm");function Vt(ye){if(L=!0,le=ye,V){let je=Xe([le,xe]),nt=zr(c,je);Ue(nt)}return rt}a(Vt,"cancel1Algorithm");function Sr(ye){if(V=!0,xe=ye,L){let je=Xe([le,xe]),nt=zr(c,je);Ue(nt)}return rt}a(Sr,"cancel2Algorithm");function Pn(){}return a(Pn,"startAlgorithm"),he=tx(Pn,En,Vt),Ie=tx(Pn,jt,Sr),Dr(d),[he,Ie]}a(qz,"ReadableByteStreamTee");function Vz(c){return n(c)&&typeof c.getReader<"u"}a(Vz,"isReadableStreamLike");function Zz(c){return Vz(c)?Gz(c.getReader()):Hz(c)}a(Zz,"ReadableStreamFrom");function Hz(c){let d,g=gP(c,"async"),S=e;function I(){let V;try{V=UN(g)}catch(xe){return f(xe)}let le=p(V);return E(le,xe=>{if(!n(xe))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(MN(xe))zo(d._readableStreamController);else{let Ie=jN(xe);wi(d._readableStreamController,Ie)}})}a(I,"pullAlgorithm");function L(V){let le=g.iterator,xe;try{xe=Vu(le,"return")}catch(Ue){return f(Ue)}if(xe===void 0)return p(void 0);let he;try{he=z(xe,le,[V])}catch(Ue){return f(Ue)}let Ie=p(he);return E(Ie,Ue=>{if(!n(Ue))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(L,"cancelAlgorithm"),d=ns(S,I,L,0),d}a(Hz,"ReadableStreamFromIterable");function Gz(c){let d,g=e;function S(){let L;try{L=c.read()}catch(V){return f(V)}return E(L,V=>{if(!n(V))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(V.done)zo(d._readableStreamController);else{let le=V.value;wi(d._readableStreamController,le)}})}a(S,"pullAlgorithm");function I(L){try{return p(c.cancel(L))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=ns(g,S,I,0),d}a(Gz,"ReadableStreamFromDefaultReader");function Wz(c,d){dt(c,d);let g=c,S=g?.autoAllocateChunkSize,I=g?.cancel,L=g?.pull,V=g?.start,le=g?.type;return{autoAllocateChunkSize:S===void 0?void 0:O(S,`${d} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:Jz(I,g,`${d} has member 'cancel' that`),pull:L===void 0?void 0:Kz(L,g,`${d} has member 'pull' that`),start:V===void 0?void 0:Xz(V,g,`${d} has member 'start' that`),type:le===void 0?void 0:Yz(le,`${d} has member 'type' that`)}}a(Wz,"convertUnderlyingDefaultOrByteSource");function Jz(c,d,g){return ft(c,g),S=>M(c,d,[S])}a(Jz,"convertUnderlyingSourceCancelCallback");function Kz(c,d,g){return ft(c,g),S=>M(c,d,[S])}a(Kz,"convertUnderlyingSourcePullCallback");function Xz(c,d,g){return ft(c,g),S=>z(c,d,[S])}a(Xz,"convertUnderlyingSourceStartCallback");function Yz(c,d){if(c=`${c}`,c!=="bytes")throw new TypeError(`${d} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a(Yz,"convertReadableStreamType");function Qz(c,d){return dt(c,d),{preventCancel:!!c?.preventCancel}}a(Qz,"convertIteratorOptions");function ex(c,d){dt(c,d);let g=c?.preventAbort,S=c?.preventCancel,I=c?.preventClose,L=c?.signal;return L!==void 0&&eD(L,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!S,preventClose:!!I,signal:L}}a(ex,"convertPipeOptions");function eD(c,d){if(!cz(c))throw new TypeError(`${d} is not an AbortSignal.`)}a(eD,"assertAbortSignal");function tD(c,d){dt(c,d);let g=c?.readable;b(g,"readable","ReadableWritablePair"),k(g,`${d} has member 'readable' that`);let S=c?.writable;return b(S,"writable","ReadableWritablePair"),zP(S,`${d} has member 'writable' that`),{readable:g,writable:S}}a(tD,"convertReadableWritablePair");class Dt{static{a(this,"ReadableStream")}constructor(d={},g={}){d===void 0?d=null:He(d,"First parameter");let S=Yu(g,"Second parameter"),I=Wz(d,"First parameter");if(_h(this),I.type==="bytes"){if(S.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let L=Qa(S,0);JN(this,I,L)}else{let L=Xu(S),V=Qa(S,1);Lz(this,I,V,L)}}get locked(){if(!Hn(this))throw Do("locked");return Gn(this)}cancel(d=void 0){return Hn(this)?Gn(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):zr(this,d):f(Do("cancel"))}getReader(d=void 0){if(!Hn(this))throw Do("getReader");return XN(d,"First parameter").mode===void 0?F(this):OP(this)}pipeThrough(d,g={}){if(!Hn(this))throw Do("pipeThrough");Ke(d,1,"pipeThrough");let S=tD(d,"First parameter"),I=ex(g,"Second parameter");if(Gn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Ti(S.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let L=XP(this,S.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return P(L),S.readable}pipeTo(d,g={}){if(!Hn(this))return f(Do("pipeTo"));if(d===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!xi(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let S;try{S=ex(g,"Second parameter")}catch(I){return f(I)}return Gn(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Ti(d)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):XP(this,d,S.preventClose,S.preventAbort,S.preventCancel,S.signal)}tee(){if(!Hn(this))throw Do("tee");let d=Fz(this);return Xe(d)}values(d=void 0){if(!Hn(this))throw Do("values");let g=Qz(d,"First parameter");return bi(this,g.preventCancel)}[Km](d){return this.values(d)}static from(d){return Zz(d)}}Object.defineProperties(Dt,{from:{enumerable:!0}}),Object.defineProperties(Dt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),r(Dt.from,"from"),r(Dt.prototype.cancel,"cancel"),r(Dt.prototype.getReader,"getReader"),r(Dt.prototype.pipeThrough,"pipeThrough"),r(Dt.prototype.pipeTo,"pipeTo"),r(Dt.prototype.tee,"tee"),r(Dt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Dt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Dt.prototype,Km,{value:Dt.prototype.values,writable:!0,configurable:!0});function ns(c,d,g,S=1,I=()=>1){let L=Object.create(Dt.prototype);_h(L);let V=Object.create(Sn.prototype);return QP(L,V,c,d,g,S,I),L}a(ns,"CreateReadableStream");function tx(c,d,g){let S=Object.create(Dt.prototype);_h(S);let I=Object.create(vn.prototype);return RP(S,I,c,d,g,0,void 0),S}a(tx,"CreateReadableByteStream");function _h(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(_h,"InitializeReadableStream");function Hn(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof Dt}a(Hn,"IsReadableStream");function Gn(c){return c._reader!==void 0}a(Gn,"IsReadableStreamLocked");function zr(c,d){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);os(c);let g=c._reader;if(g!==void 0&&$o(g)){let I=g._readIntoRequests;g._readIntoRequests=new Z,I.forEach(L=>{L._closeSteps(void 0)})}let S=c._readableStreamController[ae](d);return E(S,e)}a(zr,"ReadableStreamCancel");function os(c){c._state="closed";let d=c._reader;if(d!==void 0&&(Je(d),pe(d))){let g=d._readRequests;d._readRequests=new Z,g.forEach(S=>{S._closeSteps()})}}a(os,"ReadableStreamClose");function rx(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(Ce(g,d),pe(g)?it(g,d):NP(g,d))}a(rx,"ReadableStreamError");function Do(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Do,"streamBrandCheckException$1");function nx(c,d){dt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:T(g)}}a(nx,"convertQueuingStrategyInit");let ox=a(c=>c.byteLength,"byteLengthSizeFunction");r(ox,"size");class ul{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){Ke(d,1,"ByteLengthQueuingStrategy"),d=nx(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!ax(this))throw ix("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!ax(this))throw ix("size");return ox}}Object.defineProperties(ul.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ul.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function ix(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(ix,"byteLengthBrandCheckException");function ax(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof ul}a(ax,"IsByteLengthQueuingStrategy");let sx=a(()=>1,"countSizeFunction");r(sx,"size");class ll{static{a(this,"CountQueuingStrategy")}constructor(d){Ke(d,1,"CountQueuingStrategy"),d=nx(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!ux(this))throw cx("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!ux(this))throw cx("size");return sx}}Object.defineProperties(ll.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ll.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function cx(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(cx,"countBrandCheckException");function ux(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof ll}a(ux,"IsCountQueuingStrategy");function rD(c,d){dt(c,d);let g=c?.cancel,S=c?.flush,I=c?.readableType,L=c?.start,V=c?.transform,le=c?.writableType;return{cancel:g===void 0?void 0:aD(g,c,`${d} has member 'cancel' that`),flush:S===void 0?void 0:nD(S,c,`${d} has member 'flush' that`),readableType:I,start:L===void 0?void 0:oD(L,c,`${d} has member 'start' that`),transform:V===void 0?void 0:iD(V,c,`${d} has member 'transform' that`),writableType:le}}a(rD,"convertTransformer");function nD(c,d,g){return ft(c,g),S=>M(c,d,[S])}a(nD,"convertTransformerFlushCallback");function oD(c,d,g){return ft(c,g),S=>z(c,d,[S])}a(oD,"convertTransformerStartCallback");function iD(c,d,g){return ft(c,g),(S,I)=>M(c,d,[S,I])}a(iD,"convertTransformerTransformCallback");function aD(c,d,g){return ft(c,g),S=>M(c,d,[S])}a(aD,"convertTransformerCancelCallback");class dl{static{a(this,"TransformStream")}constructor(d={},g={},S={}){d===void 0&&(d=null);let I=Yu(g,"Second parameter"),L=Yu(S,"Third parameter"),V=rD(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 le=Qa(L,0),xe=Xu(L),he=Qa(I,1),Ie=Xu(I),Ue,rt=l(Dr=>{Ue=Dr});sD(this,rt,he,Ie,le,xe),uD(this,V),V.start!==void 0?Ue(V.start(this._transformStreamController)):Ue(void 0)}get readable(){if(!lx(this))throw mx("readable");return this._readable}get writable(){if(!lx(this))throw mx("writable");return this._writable}}Object.defineProperties(dl.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(dl.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function sD(c,d,g,S,I,L){function V(){return d}a(V,"startAlgorithm");function le(rt){return pD(c,rt)}a(le,"writeAlgorithm");function xe(rt){return fD(c,rt)}a(xe,"abortAlgorithm");function he(){return mD(c)}a(he,"closeAlgorithm"),c._writable=dz(V,le,he,xe,g,S);function Ie(){return hD(c)}a(Ie,"pullAlgorithm");function Ue(rt){return gD(c,rt)}a(Ue,"cancelAlgorithm"),c._readable=ns(V,Ie,Ue,I,L),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,pl(c,!0),c._transformStreamController=void 0}a(sD,"InitializeTransformStream");function lx(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof dl}a(lx,"IsTransformStream");function dx(c,d){Nr(c._readable._readableStreamController,d),vh(c,d)}a(dx,"TransformStreamError");function vh(c,d){ml(c._transformStreamController),es(c._writable._writableStreamController,d),bh(c)}a(vh,"TransformStreamErrorWritableAndUnblockWrite");function bh(c){c._backpressure&&pl(c,!1)}a(bh,"TransformStreamUnblockWrite");function pl(c,d){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=l(g=>{c._backpressureChangePromise_resolve=g}),c._backpressure=d}a(pl,"TransformStreamSetBackpressure");class Wn{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!fl(this))throw hl("desiredSize");let d=this._controlledTransformStream._readable._readableStreamController;return yh(d)}enqueue(d=void 0){if(!fl(this))throw hl("enqueue");px(this,d)}error(d=void 0){if(!fl(this))throw hl("error");lD(this,d)}terminate(){if(!fl(this))throw hl("terminate");dD(this)}}Object.defineProperties(Wn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),r(Wn.prototype.enqueue,"enqueue"),r(Wn.prototype.error,"error"),r(Wn.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Wn.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function fl(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof Wn}a(fl,"IsTransformStreamDefaultController");function cD(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(cD,"SetUpTransformStreamDefaultController");function uD(c,d){let g=Object.create(Wn.prototype),S,I,L;d.transform!==void 0?S=a(V=>d.transform(V,g),"transformAlgorithm"):S=a(V=>{try{return px(g,V),p(void 0)}catch(le){return f(le)}},"transformAlgorithm"),d.flush!==void 0?I=a(()=>d.flush(g),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),d.cancel!==void 0?L=a(V=>d.cancel(V),"cancelAlgorithm"):L=a(()=>p(void 0),"cancelAlgorithm"),cD(c,g,S,I,L)}a(uD,"SetUpTransformStreamDefaultControllerFromTransformer");function ml(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(ml,"TransformStreamDefaultControllerClearAlgorithms");function px(c,d){let g=c._controlledTransformStream,S=g._readable._readableStreamController;if(!Ii(S))throw new TypeError("Readable side is not in a state that permits enqueue");try{wi(S,d)}catch(L){throw vh(g,L),g._readable._storedError}jz(S)!==g._backpressure&&pl(g,!0)}a(px,"TransformStreamDefaultControllerEnqueue");function lD(c,d){dx(c._controlledTransformStream,d)}a(lD,"TransformStreamDefaultControllerError");function fx(c,d){let g=c._transformAlgorithm(d);return E(g,void 0,S=>{throw dx(c._controlledTransformStream,S),S})}a(fx,"TransformStreamDefaultControllerPerformTransform");function dD(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;zo(g);let S=new TypeError("TransformStream terminated");vh(d,S)}a(dD,"TransformStreamDefaultControllerTerminate");function pD(c,d){let g=c._transformStreamController;if(c._backpressure){let S=c._backpressureChangePromise;return E(S,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return fx(g,d)})}return fx(g,d)}a(pD,"TransformStreamDefaultSinkWriteAlgorithm");function fD(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let S=c._readable;g._finishPromise=l((L,V)=>{g._finishPromise_resolve=L,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return ml(g),m(I,()=>(S._state==="errored"?Ri(g,S._storedError):(Nr(S._readableStreamController,d),Sh(g)),null),L=>(Nr(S._readableStreamController,L),Ri(g,L),null)),g._finishPromise}a(fD,"TransformStreamDefaultSinkAbortAlgorithm");function mD(c){let d=c._transformStreamController;if(d._finishPromise!==void 0)return d._finishPromise;let g=c._readable;d._finishPromise=l((I,L)=>{d._finishPromise_resolve=I,d._finishPromise_reject=L});let S=d._flushAlgorithm();return ml(d),m(S,()=>(g._state==="errored"?Ri(d,g._storedError):(zo(g._readableStreamController),Sh(d)),null),I=>(Nr(g._readableStreamController,I),Ri(d,I),null)),d._finishPromise}a(mD,"TransformStreamDefaultSinkCloseAlgorithm");function hD(c){return pl(c,!1),c._backpressureChangePromise}a(hD,"TransformStreamDefaultSourcePullAlgorithm");function gD(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let S=c._writable;g._finishPromise=l((L,V)=>{g._finishPromise_resolve=L,g._finishPromise_reject=V});let I=g._cancelAlgorithm(d);return ml(g),m(I,()=>(S._state==="errored"?Ri(g,S._storedError):(es(S._writableStreamController,d),bh(c),Sh(g)),null),L=>(es(S._writableStreamController,L),bh(c),Ri(g,L),null)),g._finishPromise}a(gD,"TransformStreamDefaultSourceCancelAlgorithm");function hl(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(hl,"defaultControllerBrandCheckException");function Sh(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Sh,"defaultControllerFinishPromiseResolve");function Ri(c,d){c._finishPromise_reject!==void 0&&(P(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Ri,"defaultControllerFinishPromiseReject");function mx(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(mx,"streamBrandCheckException"),t.ByteLengthQueuingStrategy=ul,t.CountQueuingStrategy=ll,t.ReadableByteStreamController=vn,t.ReadableStream=Dt,t.ReadableStreamBYOBReader=Vn,t.ReadableStreamBYOBRequest=Ro,t.ReadableStreamDefaultController=Sn,t.ReadableStreamDefaultReader=W,t.TransformStream=dl,t.TransformStreamDefaultController=Wn,t.WritableStream=Zn,t.WritableStreamDefaultController=Ai,t.WritableStreamDefaultWriter=bn}))});var tC=N(()=>{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(n){throw t.emitWarning=e,n}}catch{Object.assign(globalThis,eC())}try{let{Blob:t}=require("buffer");t&&!t.prototype.stream&&(t.prototype.stream=a(function(n){let o=0,r=this;return new ReadableStream({type:"bytes",async pull(i){let u=await r.slice(o,Math.min(r.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===r.size&&i.close()}})},"name"))}catch{}});async function*xb(t,e=!0){for(let n of t)if("stream"in n)yield*n.stream();else if(ArrayBuffer.isView(n))if(e){let o=n.byteOffset,r=n.byteOffset+n.byteLength;for(;o!==r;){let i=Math.min(r-o,rC),s=n.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield n;else{let o=0,r=n;for(;o!==r.size;){let s=await r.slice(o,Math.min(r.size,o+rC)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var gne,rC,nC,d4,qr,ou=Tt(()=>{gne=St(tC(),1);rC=65536;a(xb,"toIterator");nC=class Tb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(e=[],n={}){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 n!="object"&&typeof n!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");n===null&&(n={});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 Tb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${n.endings===void 0?"transparent":n.endings}`;let r=n.type===void 0?"":String(n.type);this.#t=/^[\x20-\x7E]*$/.test(r)?r:""}get size(){return this.#r}get type(){return this.#t}async text(){let e=new TextDecoder,n="";for await(let o of xb(this.#e,!1))n+=e.decode(o,{stream:!0});return n+=e.decode(),n}async arrayBuffer(){let e=new Uint8Array(this.size),n=0;for await(let o of xb(this.#e,!1))e.set(o,n),n+=o.length;return e.buffer}stream(){let e=xb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(n){let o=await e.next();o.done?n.close():n.enqueue(o.value)},async cancel(){await e.return()}})}slice(e=0,n=this.size,o=""){let{size:r}=this,i=e<0?Math.max(r+e,0):Math.min(e,r),s=n<0?Math.max(r+n,0):Math.min(n,r),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 Tb([],{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(nC.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});d4=nC,qr=d4});var p4,f4,bo,Ab=Tt(()=>{ou();p4=class extends qr{static{a(this,"File")}#e=0;#t="";constructor(e,n,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 r=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(r)||(this.#e=r),this.#t=String(n)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof qr&&/^(File)$/.test(e[Symbol.toStringTag])}},f4=p4,bo=f4});function aC(t,e=qr){var n=`${oC()}${oC()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],r=`--${n}\r
|
|
15
|
-
Content-Disposition: form-data; name="`;return t.forEach((i,s)=>typeof i=="string"?o.push(
|
|
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 E=_.split(" "),S=+E[1],T=E.slice(2).join(" "),k={};for(let L of h){if(!L)continue;let Y=L.indexOf(":");if(Y===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${L}"`));let H=L.slice(0,Y).toLowerCase(),X=L.slice(Y+1).trimStart(),re=k[H];typeof re=="string"?k[H]=[re,X]:Array.isArray(re)?re.push(X):k[H]=X}$f("got proxy server response: %o %o",_,k),s(),e({connect:{statusCode:S,statusText:T,headers:k},buffered:y})}a(p,"ondata"),t.on("error",l),t.on("end",u),i()})}a(f6,"parseProxyResponse");za.parseProxyResponse=f6});var kk=z(zr=>{"use strict";var m6=zr&&zr.__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=zr&&zr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rk=zr&&zr.__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)&&m6(e,t,r);return h6(e,t),e},Ok=zr&&zr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zr,"__esModule",{value:!0});zr.HttpsProxyAgent=void 0;var zf=Rk(require("net")),wk=Rk(require("tls")),g6=Ok(require("assert")),y6=Ok(Hb()),_6=Tk(),v6=require("url"),b6=Ak(),Tu=(0,y6.default)("https-proxy-agent"),Ik=a(t=>t.servername===void 0&&t.host&&!zf.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Df=class extends _6.Agent{static{a(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new v6.URL(e):e,this.proxyHeaders=r?.headers??{},Tu("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?Ck(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:"?(Tu("Creating `tls.Socket`: %o",this.connectOpts),n=wk.connect(Ik(this.connectOpts))):(Tu("Creating `net.Socket`: %o",this.connectOpts),n=zf.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=zf.isIPv6(r.host)?`[${r.host}]`:r.host,u=`CONNECT ${s}:${r.port} HTTP/1.1\r
|
|
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,b6.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",P6),r.secureEndpoint?(Tu("Upgrading socket connection to TLS"),wk.connect({...Ck(Ik(r),"host","path","port"),socket:n})):n;n.destroy();let y=new zf.Socket({writable:!1});return y.readable=!0,e.once("socket",m=>{Tu("Replaying proxy buffer for failed request"),(0,g6.default)(m.listenerCount("data")>0),m.push(f),m.push(null)}),y}};Df.protocols=["http","https"];zr.HttpsProxyAgent=Df;function P6(t){t.resume()}a(P6,"resume");function Ck(t,...e){let r={},o;for(o in t)e.includes(o)||(r[o]=t[o]);return r}a(Ck,"omit")});function E6(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 Nk,$k=Ct(()=>{a(E6,"dataUriToBuffer");Nk=E6});var Dk=z((Uf,zk)=>{(function(t,e){typeof Uf=="object"&&typeof zk<"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 E(c,d,g){return y(c,d,g)}a(E,"transformPromiseWith");function S(c){y(c,void 0,o)}a(S,"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 L(c,d,g){try{return p(k(c,d,g))}catch(P){return f(P)}}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,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,F=d._elements,V=F[P];return I===Y&&(g=d._next,I=0),--this._size,this._cursor=I,d!==g&&(this._front=g),F[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 X=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ce=Symbol("[[CancelSteps]]"),ee=Symbol("[[PullSteps]]"),Le=Symbol("[[ReleaseSteps]]");function ue(c,d){c._ownerReadableStream=d,d._reader=c,d._state==="readable"?Q(c):d._state==="closed"?me(c):pe(c,d._storedError)}a(ue,"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"?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 pe(c,d){Q(c),ze(c,d)}a(pe,"defaultReaderClosedPromiseInitializeAsRejected");function me(c){Q(c),Qe(c)}a(me,"defaultReaderClosedPromiseInitializeAsResolved");function ze(c,d){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(d),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ze,"defaultReaderClosedPromiseReject");function je(c,d){pe(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 R(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(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");ue(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((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")}),P}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(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?E(this._ongoingPromise,d,d):d(),this._ongoingPromise}return(d){let g=a(()=>this._returnSteps(d),"returnSteps");return this._ongoingPromise?E(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),E(P,()=>({value:d,done:!0}))}return Z(g),p({value:d,done:!0})}}let St={next(){return Oi(this)?this._asyncIteratorImpl.next():f(ki("next"))},return(c){return Oi(this)?this._asyncIteratorImpl.return(c):f(ki("return"))}};Object.setPrototypeOf(St,Ve);function Ri(c,d){let g=B(c),P=new Ke(g,d),I=Object.create(St);return I._asyncIteratorImpl=P,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,xt;function tt(c){return c.slice()}a(tt,"CreateArrayFromList");function MS(c,d,g,P,I){new Uint8Array(c).set(new Uint8Array(g,P,I),d)}a(MS,"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 LS(c,d,g){if(c.slice)return c.slice(d,g);let P=g-d,I=new ArrayBuffer(P);return MS(I,0,c,d,P),I}a(LS,"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})(),P=g.next;return{iterator:g,nextMethod:P,done:!1}}a(_D,"CreateAsyncFromSyncIterator");let uh=(xt=(An=Symbol.asyncIterator)!==null&&An!==void 0?An:(Lt=Symbol.for)===null||Lt===void 0?void 0:Lt.call(Symbol,"Symbol.asyncIterator"))!==null&&xt!==void 0?xt:"@@asyncIterator";function jS(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=jS(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 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(jS,"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 PD(c){return c.value}a(PD,"IteratorValue");function ED(c){return!(typeof c!="number"||cr(c)||c<0)}a(ED,"IsNonNegativeNumber");function FS(c){let d=LS(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(d)}a(FS,"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(!ED(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 SD(c){return c._queue.peek().value}a(SD,"PeekQueueValue");function Yn(c){c._queue=new H,c._queueTotalSize=0}a(Yn,"ResetQueue");function BS(c){return c===DataView}a(BS,"isDataViewConstructor");function xD(c){return BS(c.constructor)}a(xD,"isDataView");function TD(c){return BS(c)?1:c.BYTES_PER_ELEMENT}a(TD,"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 YS(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){qS(this),Yn(this);let g=this._cancelAlgorithm(d);return ml(this),g}[ee](d){let g=this._controlledReadableByteStream;if(this._queueTotalSize>0){XS(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 F={buffer:I,bufferByteLength:P,byteOffset:0,byteLength:P,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),P=>(wr(c,P),null))}a(Lo,"ReadableByteStreamControllerCallPullIfNeeded");function qS(c){mh(c),c._pendingPullIntos=new H}a(qS,"ReadableByteStreamControllerClearPendingPullIntos");function fh(c,d){let g=!1;c._state==="closed"&&(g=!0);let P=GS(d);d.readerType==="default"?N(c,P,g):DD(c,P,g)}a(fh,"ReadableByteStreamControllerCommitPullIntoDescriptor");function GS(c){let d=c.bytesFilled,g=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,d/g)}a(GS,"ReadableByteStreamControllerConvertPullIntoDescriptor");function fl(c,d,g,P){c._queue.push({buffer:d,byteOffset:g,byteLength:P}),c._queueTotalSize+=P}a(fl,"ReadableByteStreamControllerEnqueueChunkToQueue");function VS(c,d,g,P){let I;try{I=LS(d,g,g+P)}catch(F){throw wr(c,F),F}fl(c,I,0,P)}a(VS,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function HS(c,d){d.bytesFilled>0&&VS(c,d.buffer,d.byteOffset,d.bytesFilled),Ni(c)}a(HS,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function ZS(c,d){let g=Math.min(c._queueTotalSize,d.byteLength-d.bytesFilled),P=d.bytesFilled+g,I=g,F=!1,V=P%d.elementSize,fe=P-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;MS(d.buffer,Fe,_e.buffer,_e.byteOffset,Ne),_e.byteLength===Ne?Ie.shift():(_e.byteOffset+=Ne,_e.byteLength-=Ne),c._queueTotalSize-=Ne,WS(c,Ne,d),I-=Ne}return F}a(ZS,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function WS(c,d,g){g.bytesFilled+=d}a(WS,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function KS(c){c._queueTotalSize===0&&c._closeRequested?(ml(c),ms(c._controlledReadableByteStream)):Lo(c)}a(KS,"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();ZS(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();XS(c,g)}}a(AD,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function wD(c,d,g,P){let I=c._controlledReadableByteStream,F=d.constructor,V=TD(F),{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:F,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(Fe),tx(I,P);return}if(I._state==="closed"){let at=new F(Fe.buffer,Fe.byteOffset,0);P._closeSteps(at);return}if(c._queueTotalSize>0){if(ZS(c,Fe)){let at=GS(Fe);KS(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),tx(I,P),Lo(c)}a(wD,"ReadableByteStreamControllerPullInto");function ID(c,d){d.readerType==="none"&&Ni(c);let g=c._controlledReadableByteStream;if(_h(g))for(;rx(g)>0;){let P=Ni(c);fh(g,P)}}a(ID,"ReadableByteStreamControllerRespondInClosedState");function CD(c,d,g){if(WS(c,d,g),g.readerType==="none"){HS(c,g),hh(c);return}if(g.bytesFilled<g.minimumFill)return;Ni(c);let P=g.bytesFilled%g.elementSize;if(P>0){let I=g.byteOffset+g.bytesFilled;VS(c,g.buffer,I-P,P)}g.bytesFilled-=P,fh(c._controlledReadableByteStream,g),hh(c)}a(CD,"ReadableByteStreamControllerRespondInReadableState");function JS(c,d){let g=c._pendingPullIntos.peek();mh(c),c._controlledReadableByteStream._state==="closed"?ID(c,g):CD(c,d,g),Lo(c)}a(JS,"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)&&rx(d)>0||YS(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 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:F}=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");mh(c),fe.buffer=wn(fe.buffer),fe.readerType==="none"&&HS(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"&&(qS(c),Yn(c),ml(c),Ax(g,d))}a(wr,"ReadableByteStreamControllerError");function XS(c,d){let g=c._queue.shift();c._queueTotalSize-=g.byteLength,KS(c);let P=new Uint8Array(g.buffer,g.byteOffset,g.byteLength);d._chunkSteps(P)}a(XS,"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),P=Object.create(Uo.prototype);kD(P,c,g),c._byobRequest=P}return c._byobRequest}a(gh,"ReadableByteStreamControllerGetBYOBRequest");function YS(c){let d=c._controlledReadableByteStream._state;return d==="errored"?null:d==="closed"?0:c._strategyHWM-c._queueTotalSize}a(YS,"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),JS(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),JS(c,I)}a(yl,"ReadableByteStreamControllerRespondWithNewView");function QS(c,d,g,P,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=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(QS,"SetUpReadableByteStreamController");function OD(c,d,g){let P=Object.create(In.prototype),I,F,V;d.start!==void 0?I=a(()=>d.start(P),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),d.pull!==void 0?F=a(()=>d.pull(P),"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");QS(c,P,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 P=(g=c?.min)!==null&&g!==void 0?g:1;return{min:R(P,`${d} has member 'min' that`)}}a(zD,"convertByobReadOptions");function ex(c){return new Qn(c)}a(ex,"AcquireReadableStreamBYOBReader");function tx(c,d){c._reader._readIntoRequests.push(d)}a(tx,"ReadableStreamAddReadIntoRequest");function DD(c,d,g){let I=c._reader._readIntoRequests.shift();g?I._closeSteps(d):I._chunkSteps(d)}a(DD,"ReadableStreamFulfillReadIntoRequest");function rx(c){return c._reader._readIntoRequests.length}a(rx,"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");ue(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=zD(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(xD(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 nx(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 nx(c,d,g,P){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?P._errorSteps(I._storedError):wD(I._readableStreamController,d,g,P)}a(nx,"ReadableStreamBYOBReaderRead");function UD(c){Z(c);let d=new TypeError("Reader was released");ox(c,d)}a(UD,"ReadableStreamBYOBReaderRelease");function ox(c,d){let g=c._readIntoRequests;c._readIntoRequests=new H,g.forEach(P=>{P._errorSteps(d)})}a(ox,"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:MD(P,`${d} has member 'size' that`)}}a(bl,"convertQueuingStrategy");function MD(c,d){return _t(c,d),g=>x(c(g))}a(MD,"convertQueuingStrategySize");function LD(c,d){gt(c,d);let g=c?.abort,P=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:P===void 0?void 0:FD(P,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),P=>L(c,d,[P])}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),P=>k(c,d,[P])}a(BD,"convertUnderlyingSinkStartCallback");function qD(c,d,g){return _t(c,g),(P,I)=>L(c,d,[P,I])}a(qD,"convertUnderlyingSinkWriteCallback");function ix(c,d){if(!$i(c))throw new TypeError(`${d} is not a WritableStream.`)}a(ix,"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 P=bl(g,"Second parameter"),I=LD(d,"First parameter");if(sx(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let V=vl(P),fe=us(P,1);aU(this,I,fe,V)}get locked(){if(!$i(this))throw Tl("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")):Pl(this,d):f(Tl("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")):cx(this):f(Tl("close"))}getWriter(){if(!$i(this))throw Tl("getWriter");return ax(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 ax(c){return new Cn(c)}a(ax,"AcquireWritableStreamDefaultWriter");function ZD(c,d,g,P,I=1,F=()=>1){let V=Object.create(eo.prototype);sx(V);let fe=Object.create(Di.prototype);return mx(V,fe,c,d,g,P,I,F),V}a(ZD,"CreateWritableStream");function sx(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(sx,"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 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 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(Pl,"WritableStreamAbort");function cx(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}),P=c._writer;return P!==void 0&&c._backpressure&&d==="writable"&&Ih(P),sU(c._writableStreamController),g}a(cx,"WritableStreamClose");function WD(c){return l((g,P)=>{let I={_resolve:g,_reject:P};c._writeRequests.push(I)})}a(WD,"WritableStreamAddWriteRequest");function vh(c,d){if(c._state==="writable"){bh(c,d);return}Ph(c)}a(vh,"WritableStreamDealWithRejection");function bh(c,d){let g=c._writableStreamController;c._state="erroring",c._storedError=d;let P=c._writer;P!==void 0&&lx(P,d),!QD(c)&&g._started&&Ph(c)}a(bh,"WritableStreamStartErroring");function Ph(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){El(c);return}let g=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,g._wasAlreadyErroring){g._reject(d),El(c);return}let P=c._writableStreamController[X](g._reason);m(P,()=>(g._resolve(),El(c),null),I=>(g._reject(I),El(c),null))}a(Ph,"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&&_x(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 El(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(El,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Eh(c,d){let g=c._writer;g!==void 0&&d!==c._backpressure&&(d?mU(g):Ih(g)),c._backpressure=d}a(Eh,"WritableStreamUpdateBackpressure");class Cn{static{a(this,"WritableStreamDefaultWriter")}constructor(d){if(et(d,1,"WritableStreamDefaultWriter"),ix(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):vx(this),Al(this);else if(g==="erroring")wh(this,d._storedError),Al(this);else if(g==="closed")vx(this),pU(this);else{let P=d._storedError;wh(this,P),yx(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 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")):ux(this)}releaseLock(){if(!Fo(this))throw Bo("releaseLock");this._ownerWritableStream!==void 0&&dx(this)}write(d=void 0){return Fo(this)?this._ownerWritableStream===void 0?f(ds("write to")):px(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 Pl(g,d)}a(rU,"WritableStreamDefaultWriterAbort");function ux(c){let d=c._ownerWritableStream;return cx(d)}a(ux,"WritableStreamDefaultWriterClose");function nU(c){let d=c._ownerWritableStream,g=d._state;return sn(d)||g==="closed"?p(void 0):g==="errored"?f(d._storedError):ux(c)}a(nU,"WritableStreamDefaultWriterCloseWithErrorPropagation");function oU(c,d){c._closedPromiseState==="pending"?Ah(c,d):fU(c,d)}a(oU,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function lx(c,d){c._readyPromiseState==="pending"?bx(c,d):hU(c,d)}a(lx,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function iU(c){let d=c._ownerWritableStream,g=d._state;return g==="errored"||g==="erroring"?null:g==="closed"?0:hx(d._writableStreamController)}a(iU,"WritableStreamDefaultWriterGetDesiredSize");function dx(c){let d=c._ownerWritableStream,g=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");lx(c,g),oU(c,g),d._writer=void 0,c._ownerWritableStream=void 0}a(dx,"WritableStreamDefaultWriterRelease");function px(c,d){let g=c._ownerWritableStream,P=g._writableStreamController,I=cU(P,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(P,d,I),V}a(px,"WritableStreamDefaultWriterWrite");let fx={};class Di{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Sh(this))throw Th("abortReason");return this._abortReason}get signal(){if(!Sh(this))throw Th("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(d=void 0){if(!Sh(this))throw Th("error");this._controlledWritableStream._state==="writable"&&gx(this,d)}[X](d){let g=this._abortAlgorithm(d);return Sl(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 Sh(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof Di}a(Sh,"IsWritableStreamDefaultController");function mx(c,d,g,P,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=P,d._closeAlgorithm=I,d._abortAlgorithm=F;let Ie=xh(d);Eh(c,Ie);let _e=g(),Ne=p(_e);m(Ne,()=>(d._started=!0,xl(d),null),Fe=>(d._started=!0,vh(c,Fe),null))}a(mx,"SetUpWritableStreamDefaultController");function aU(c,d,g,P){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"),mx(c,I,F,V,fe,Ie,g,P)}a(aU,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Sl(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Sl,"WritableStreamDefaultControllerClearAlgorithms");function sU(c){dh(c,fx,0),xl(c)}a(sU,"WritableStreamDefaultControllerClose");function cU(c,d){try{return c._strategySizeAlgorithm(d)}catch(g){return ls(c,g),1}}a(cU,"WritableStreamDefaultControllerGetChunkSize");function hx(c){return c._strategyHWM-c._queueTotalSize}a(hx,"WritableStreamDefaultControllerGetDesiredSize");function uU(c,d,g){try{dh(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)}xl(c)}a(uU,"WritableStreamDefaultControllerWrite");function xl(c){let d=c._controlledWritableStream;if(!c._started||d._inFlightWriteRequest!==void 0)return;if(d._state==="erroring"){Ph(d);return}if(c._queue.length===0)return;let P=SD(c);P===fx?lU(c):dU(c,P)}a(xl,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ls(c,d){c._controlledWritableStream._state==="writable"&&gx(c,d)}a(ls,"WritableStreamDefaultControllerErrorIfNeeded");function lU(c){let d=c._controlledWritableStream;eU(d),lh(c);let g=c._closeAlgorithm();Sl(c),m(g,()=>(XD(d),null),P=>(YD(d,P),null))}a(lU,"WritableStreamDefaultControllerProcessClose");function dU(c,d){let g=c._controlledWritableStream;tU(g);let P=c._writeAlgorithm(d);m(P,()=>{KD(g);let I=g._state;if(lh(c),!sn(g)&&I==="writable"){let F=xh(c);Eh(g,F)}return xl(c),null},I=>(g._state==="writable"&&Sl(c),JD(g,I),null))}a(dU,"WritableStreamDefaultControllerProcessWrite");function xh(c){return hx(c)<=0}a(xh,"WritableStreamDefaultControllerGetBackpressure");function gx(c,d){let g=c._controlledWritableStream;Sl(c),bh(g,d)}a(gx,"WritableStreamDefaultControllerError");function Tl(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(Tl,"streamBrandCheckException$2");function Th(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Th,"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 yx(c,d){Al(c),Ah(c,d)}a(yx,"defaultWriterClosedPromiseInitializeAsRejected");function pU(c){Al(c),_x(c)}a(pU,"defaultWriterClosedPromiseInitializeAsResolved");function Ah(c,d){c._closedPromise_reject!==void 0&&(S(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){yx(c,d)}a(fU,"defaultWriterClosedPromiseResetToRejected");function _x(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(_x,"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),bx(c,d)}a(wh,"defaultWriterReadyPromiseInitializeAsRejected");function vx(c){wl(c),Ih(c)}a(vx,"defaultWriterReadyPromiseInitializeAsResolved");function bx(c,d){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(d),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(bx,"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,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(vU,"createPolyfill");let bU=_U()||vU();function Px(c,d,g,P,I,F){let V=B(c),fe=ax(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=[];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"),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(px(fe,st),void 0,e),be(!1)},"_chunkSteps"),_closeSteps:a(()=>be(!0),"_closeSteps"),_errorSteps:qe})}))}if(a(ji,"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(()=>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)}S(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 dx(fe),Z(V),F!==void 0&&F.removeEventListener("abort",at),be?Fe(qe):Ne(void 0),null}a(kn,"finalize")})}a(Px,"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 P=lh(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(!Ex(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 Ex(c){let d=c._controlledReadableStream;return!Mi(c)||!c._started?!1:!!(ro(d)&&j(d)>0||Rh(c)>0)}a(Ex,"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 P;try{P=c._strategySizeAlgorithm(d)}catch(I){throw Br(c,I),I}try{dh(c,d,P)}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),Ax(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 PU(c){return!Ex(c)}a(PU,"ReadableStreamDefaultControllerHasBackpressure");function Mi(c){let d=c._controlledReadableStream._state;return!c._closeRequested&&d==="readable"}a(Mi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function Sx(c,d,g,P,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=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(Sx,"SetUpReadableStreamDefaultController");function EU(c,d,g,P){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"),Sx(c,I,F,V,fe,g,P)}a(EU,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rl(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Rl,"defaultControllerBrandCheckException$1");function SU(c,d){return Mo(c._readableStreamController)?TU(c):xU(c)}a(SU,"ReadableStreamTee");function xU(c,d){let g=B(c),P=!1,I=!1,F=!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;F||Ui(_e._readableStreamController,Ir),V||Ui(Ne._readableStreamController,kn),P=!1,I&&Gr()})},"_chunkSteps"),_closeSteps:a(()=>{P=!1,F||qo(_e._readableStreamController),V||qo(Ne._readableStreamController),(!F||!V)&&Fe(void 0)},"_closeSteps"),_errorSteps:a(()=>{P=!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(xU,"ReadableStreamDefaultTee");function TU(c){let d=B(c),g=!1,P=!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=>{T(()=>{P=!1,I=!1;let st=qe,ur=qe;if(!F&&!V)try{ur=FS(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,P?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=ex(c),Gr(d));let st=qe?Ne:_e,ur=qe?_e:Ne;nx(d,be,1,{_chunkSteps:a(Bi=>{T(()=>{P=!1,I=!1;let qi=qe?V:F;if(qe?F:V)qi||yl(st._readableStreamController,Bi);else{let Lx;try{Lx=FS(Bi)}catch(zh){wr(st._readableStreamController,zh),wr(ur._readableStreamController,zh),Fe(qr(c,zh));return}qi||yl(st._readableStreamController,Bi),hl(ur._readableStreamController,Lx)}g=!1,P?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 P=!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=Tx(kn,On,Jt),Ne=Tx(kn,Gt,Ir),Gr(d),[_e,Ne]}a(TU,"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=jS(c,"async"),P=e;function I(){let V;try{V=vD(g)}catch(Ie){return f(Ie)}let fe=p(V);return E(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=PD(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 E(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(P,I,F,0),d}a(IU,"ReadableStreamFromIterable");function CU(c){let d,g=e;function P(){let F;try{F=c.read()}catch(V){return f(V)}return E(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(P,"pullAlgorithm");function I(F){try{return p(c.cancel(F))}catch(V){return f(V)}}return a(I,"cancelAlgorithm"),d=fs(g,P,I,0),d}a(CU,"ReadableStreamFromDefaultReader");function RU(c,d){gt(c,d);let g=c,P=g?.autoAllocateChunkSize,I=g?.cancel,F=g?.pull,V=g?.start,fe=g?.type;return{autoAllocateChunkSize:P===void 0?void 0:R(P,`${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),P=>L(c,d,[P])}a(OU,"convertUnderlyingSourceCancelCallback");function kU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(kU,"convertUnderlyingSourcePullCallback");function NU(c,d,g){return _t(c,g),P=>k(c,d,[P])}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 xx(c,d){gt(c,d);let g=c?.preventAbort,P=c?.preventCancel,I=c?.preventClose,F=c?.signal;return F!==void 0&&DU(F,`${d} has member 'signal' that`),{preventAbort:!!g,preventCancel:!!P,preventClose:!!I,signal:F}}a(xx,"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 P=c?.writable;return b(P,"writable","ReadableWritablePair"),ix(P,`${d} has member 'writable' that`),{readable:g,writable:P}}a(UU,"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=RU(d,"First parameter");if(Oh(this),I.type==="bytes"){if(P.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let F=us(P,0);OD(this,I,F)}else{let F=vl(P),V=us(P,1);EU(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):ex(this)}pipeThrough(d,g={}){if(!to(this))throw Go("pipeThrough");et(d,1,"pipeThrough");let P=UU(d,"First parameter"),I=xx(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 F=Px(this,P.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return S(F),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(!$i(d))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let P;try{P=xx(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")):Px(this,d,P.preventClose,P.preventAbort,P.preventCancel,P.signal)}tee(){if(!to(this))throw Go("tee");let d=SU(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,P=1,I=()=>1){let F=Object.create(jt.prototype);Oh(F);let V=Object.create(Rn.prototype);return Sx(F,V,c,d,g,P,I),F}a(fs,"CreateReadableStream");function Tx(c,d,g){let P=Object.create(jt.prototype);Oh(P);let I=Object.create(In.prototype);return QS(P,I,c,d,g,0,void 0),P}a(Tx,"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 P=c._readableStreamController[ce](d);return E(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 Ax(c,d){c._state="errored",c._storedError=d;let g=c._reader;g!==void 0&&(ze(g,d),he(g)?ut(g,d):ox(g,d))}a(Ax,"ReadableStreamError");function Go(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Go,"streamBrandCheckException$1");function wx(c,d){gt(c,d);let g=c?.highWaterMark;return b(g,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(g)}}a(wx,"convertQueuingStrategyInit");let Ix=a(c=>c.byteLength,"byteLengthSizeFunction");n(Ix,"size");class Ol{static{a(this,"ByteLengthQueuingStrategy")}constructor(d){et(d,1,"ByteLengthQueuingStrategy"),d=wx(d,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Rx(this))throw Cx("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Rx(this))throw Cx("size");return Ix}}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 Cx(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(Cx,"byteLengthBrandCheckException");function Rx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Ol}a(Rx,"IsByteLengthQueuingStrategy");let Ox=a(()=>1,"countSizeFunction");n(Ox,"size");class kl{static{a(this,"CountQueuingStrategy")}constructor(d){et(d,1,"CountQueuingStrategy"),d=wx(d,"First parameter"),this._countQueuingStrategyHighWaterMark=d.highWaterMark}get highWaterMark(){if(!Nx(this))throw kx("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Nx(this))throw kx("size");return Ox}}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 kx(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(kx,"countBrandCheckException");function Nx(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof kl}a(Nx,"IsCountQueuingStrategy");function MU(c,d){gt(c,d);let g=c?.cancel,P=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:P===void 0?void 0:LU(P,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),P=>L(c,d,[P])}a(LU,"convertTransformerFlushCallback");function jU(c,d,g){return _t(c,g),P=>k(c,d,[P])}a(jU,"convertTransformerStartCallback");function FU(c,d,g){return _t(c,g),(P,I)=>L(c,d,[P,I])}a(FU,"convertTransformerTransformCallback");function BU(c,d,g){return _t(c,g),P=>L(c,d,[P])}a(BU,"convertTransformerCancelCallback");class Nl{static{a(this,"TransformStream")}constructor(d={},g={},P={}){d===void 0&&(d=null);let I=bl(g,"Second parameter"),F=bl(P,"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(!$x(this))throw Mx("readable");return this._readable}get writable(){if(!$x(this))throw Mx("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,P,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,P);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 $x(c){return!r(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Nl}a($x,"IsTransformStream");function zx(c,d){Br(c._readable._readableStreamController,d),kh(c,d)}a(zx,"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");Dx(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,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(GU,"SetUpTransformStreamDefaultController");function VU(c,d){let g=Object.create(no.prototype),P,I,F;d.transform!==void 0?P=a(V=>d.transform(V,g),"transformAlgorithm"):P=a(V=>{try{return Dx(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,P,I,F)}a(VU,"SetUpTransformStreamDefaultControllerFromTransformer");function Dl(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Dl,"TransformStreamDefaultControllerClearAlgorithms");function Dx(c,d){let g=c._controlledTransformStream,P=g._readable._readableStreamController;if(!Mi(P))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ui(P,d)}catch(F){throw kh(g,F),g._readable._storedError}PU(P)!==g._backpressure&&$l(g,!0)}a(Dx,"TransformStreamDefaultControllerEnqueue");function HU(c,d){zx(c._controlledTransformStream,d)}a(HU,"TransformStreamDefaultControllerError");function Ux(c,d){let g=c._transformAlgorithm(d);return E(g,void 0,P=>{throw zx(c._controlledTransformStream,P),P})}a(Ux,"TransformStreamDefaultControllerPerformTransform");function ZU(c){let d=c._controlledTransformStream,g=d._readable._readableStreamController;qo(g);let P=new TypeError("TransformStream terminated");kh(d,P)}a(ZU,"TransformStreamDefaultControllerTerminate");function WU(c,d){let g=c._transformStreamController;if(c._backpressure){let P=c._backpressureChangePromise;return E(P,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return Ux(g,d)})}return Ux(g,d)}a(WU,"TransformStreamDefaultSinkWriteAlgorithm");function KU(c,d){let g=c._transformStreamController;if(g._finishPromise!==void 0)return g._finishPromise;let P=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,()=>(P._state==="errored"?Li(g,P._storedError):(Br(P._readableStreamController,d),$h(g)),null),F=>(Br(P._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 P=d._flushAlgorithm();return Dl(d),m(P,()=>(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 P=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,()=>(P._state==="errored"?Li(g,P._storedError):(ls(P._writableStreamController,d),Nh(c),$h(g)),null),F=>(ls(P._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&&(S(c._finishPromise),c._finishPromise_reject(d),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(Li,"defaultControllerFinishPromiseReject");function Mx(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(Mx,"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 Uk=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,Dk())}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,Mk),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+Mk)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var pce,Mk,Lk,S6,Xr,Au=Ct(()=>{pce=Tt(Uk(),1);Mk=65536;a(Wb,"toIterator");Lk=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(Lk.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});S6=Lk,Xr=S6});var x6,T6,Io,Jb=Ct(()=>{Au();x6=class extends Xr{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 Xr&&/^(File)$/.test(e[Symbol.toStringTag])}},T6=x6,Io=T6});function Bk(t,e=Xr){var r=`${jk()}${jk()}`.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+Xb(s)+`"\r
|
|
16
16
|
\r
|
|
17
17
|
${i.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
18
18
|
`)}\r
|
|
19
|
-
`):o.push(
|
|
19
|
+
`):o.push(n+Xb(s)+`"; filename="${Xb(i.name,1)}"\r
|
|
20
20
|
Content-Type: ${i.type||"application/octet-stream"}\r
|
|
21
21
|
\r
|
|
22
22
|
`,i,`\r
|
|
23
|
-
`)),o.push(`--${
|
|
24
|
-
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),
|
|
25
|
-
--`+e;let n=new Uint8Array(e.length);for(let o=0;o<e.length;o++)n[o]=e.charCodeAt(o),this.boundaryChars[n[o]]=!0;this.boundary=n,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ot.START_BOUNDARY}write(e){let n=0,o=e.length,r=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,_,E,P=a(K=>{this[K+"Mark"]=n},"mark"),x=a(K=>{delete this[K+"Mark"]},"clear"),z=a((K,Z,J,ee)=>{(Z===void 0||Z!==J)&&this[K](ee&&ee.subarray(Z,J))},"callback"),M=a((K,Z)=>{let J=K+"Mark";J in this&&(Z?(z(K,this[J],n,e),delete this[J]):(z(K,this[J],e.length,e),this[J]=0))},"dataCallback");for(n=0;n<o;n++)switch(_=e[n],p){case ot.START_BOUNDARY:if(l===s.length-2){if(_===su)f|=Eo.LAST_BOUNDARY;else if(_!==Cf)return;l++;break}else if(l-1===s.length-2){if(f&Eo.LAST_BOUNDARY&&_===su)p=ot.END,f=0;else if(!(f&Eo.LAST_BOUNDARY)&&_===Of)l=0,z("onPartBegin"),p=ot.HEADER_FIELD_START;else return;break}_!==s[l+2]&&(l=-2),_===s[l+2]&&l++;break;case ot.HEADER_FIELD_START:p=ot.HEADER_FIELD,P("onHeaderField"),l=0;case ot.HEADER_FIELD:if(_===Cf){x("onHeaderField"),p=ot.HEADERS_ALMOST_DONE;break}if(l++,_===su)break;if(_===_4){if(l===1)return;M("onHeaderField",!0),p=ot.HEADER_VALUE_START;break}if(E=S4(_),E<v4||E>b4)return;break;case ot.HEADER_VALUE_START:if(_===y4)break;P("onHeaderValue"),p=ot.HEADER_VALUE;case ot.HEADER_VALUE:_===Cf&&(M("onHeaderValue",!0),z("onHeaderEnd"),p=ot.HEADER_VALUE_ALMOST_DONE);break;case ot.HEADER_VALUE_ALMOST_DONE:if(_!==Of)return;p=ot.HEADER_FIELD_START;break;case ot.HEADERS_ALMOST_DONE:if(_!==Of)return;z("onHeadersEnd"),p=ot.PART_DATA_START;break;case ot.PART_DATA_START:p=ot.PART_DATA,P("onPartData");case ot.PART_DATA:if(r=l,l===0){for(n+=m;n<h&&!(e[n]in u);)n+=y;n-=m,_=e[n]}if(l<s.length)s[l]===_?(l===0&&M("onPartData",!0),l++):l=0;else if(l===s.length)l++,_===Cf?f|=Eo.PART_BOUNDARY:_===su?f|=Eo.LAST_BOUNDARY:l=0;else if(l-1===s.length)if(f&Eo.PART_BOUNDARY){if(l=0,_===Of){f&=~Eo.PART_BOUNDARY,z("onPartEnd"),z("onPartBegin"),p=ot.HEADER_FIELD_START;break}}else f&Eo.LAST_BOUNDARY&&_===su?(z("onPartEnd"),p=ot.END,f=0):l=0;if(l>0)i[l-1]=_;else if(r>0){let K=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);z("onPartData",0,r,K),r=0,P("onPartData"),n--}break;case ot.END:break;default:throw new Error(`Unexpected state entered: ${p}`)}M("onHeaderField"),M("onHeaderValue"),M("onPartData"),this.index=l,this.state=p,this.flags=f}end(){if(this.state===ot.HEADER_FIELD_START&&this.index===0||this.state===ot.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ot.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a(E4,"_fileName");a(P4,"toFormData")});async function kb(t){if(t[Yt].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[Yt].disturbed=!0,t[Yt].error)throw t[Yt].error;let{body:e}=t;if(e===null)return ur.Buffer.alloc(0);if(!(e instanceof Ir.default))return ur.Buffer.alloc(0);let n=[],o=0;try{for await(let r of e){if(t.size>0&&o+r.length>t.size){let i=new Bt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(i),i}o+=r.length,n.push(r)}}catch(r){throw r instanceof kn?r:new Bt(`Invalid response body while trying to fetch ${t.url}: ${r.message}`,"system",r)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return n.every(r=>typeof r=="string")?ur.Buffer.from(n.join("")):ur.Buffer.concat(n,o)}catch(r){throw new Bt(`Could not create Buffer from response body for ${t.url}: ${r.message}`,"system",r)}else throw new Bt(`Premature close of server response while trying to fetch ${t.url}`)}var Ir,Nn,ur,x4,Yt,nn,Aa,T4,$f,PC,xC,kf=Tt(()=>{Ir=St(require("node:stream"),1),Nn=require("node:util"),ur=require("node:buffer");ou();Tf();Ib();Af();If();x4=(0,Nn.promisify)(Ir.default.pipeline),Yt=Symbol("Body internals"),nn=class{static{a(this,"Body")}constructor(e,{size:n=0}={}){let o=null;e===null?e=null:Rb(e)?e=ur.Buffer.from(e.toString()):au(e)||ur.Buffer.isBuffer(e)||(Nn.types.isAnyArrayBuffer(e)?e=ur.Buffer.from(e):ArrayBuffer.isView(e)?e=ur.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Ir.default||(e instanceof So?(e=aC(e),o=e.type.split("=")[1]):e=ur.Buffer.from(String(e))));let r=e;ur.Buffer.isBuffer(e)?r=Ir.default.Readable.from(e):au(e)&&(r=Ir.default.Readable.from(e.stream())),this[Yt]={body:e,stream:r,boundary:o,disturbed:!1,error:null},this.size=n,e instanceof Ir.default&&e.on("error",i=>{let s=i instanceof kn?i:new Bt(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[Yt].error=s})}get body(){return this[Yt].stream}get bodyUsed(){return this[Yt].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:n,byteLength:o}=await kb(this);return e.slice(n,n+o)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let o=new So,r=new URLSearchParams(await this.text());for(let[i,s]of r)o.append(i,s);return o}let{toFormData:n}=await Promise.resolve().then(()=>(EC(),SC));return n(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[Yt].body&&this[Yt].body.type||"",n=await this.arrayBuffer();return new qr([n],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await kb(this);return new TextDecoder().decode(e)}buffer(){return kb(this)}};nn.prototype.buffer=(0,Nn.deprecate)(nn.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(nn.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,Nn.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});a(kb,"consumeBody");Aa=a((t,e)=>{let n,o,{body:r}=t[Yt];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof Ir.default&&typeof r.getBoundary!="function"&&(n=new Ir.PassThrough({highWaterMark:e}),o=new Ir.PassThrough({highWaterMark:e}),r.pipe(n),r.pipe(o),t[Yt].stream=n,r=o),r},"clone"),T4=(0,Nn.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"),$f=a((t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":Rb(t)?"application/x-www-form-urlencoded;charset=UTF-8":au(t)?t.type||null:ur.Buffer.isBuffer(t)||Nn.types.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof So?`multipart/form-data; boundary=${e[Yt].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${T4(t)}`:t instanceof Ir.default?null:"text/plain;charset=UTF-8","extractContentType"),PC=a(t=>{let{body:e}=t[Yt];return e===null?0:au(e)?e.size:ur.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),xC=a(async(t,{body:e})=>{e===null?t.end():await x4(e,t)},"writeToStream")});function TC(t=[]){return new Qt(t.reduce((e,n,o,r)=>(o%2===0&&e.push(r.slice(o,o+2)),e),[]).filter(([e,n])=>{try{return Nf(e),zb(e,String(n)),!0}catch{return!1}}))}var Nb,cu,Nf,zb,Qt,zf=Tt(()=>{Nb=require("node:util"),cu=St(require("node:http"),1),Nf=typeof cu.default.validateHeaderName=="function"?cu.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}},zb=typeof cu.default.validateHeaderValue=="function"?cu.default.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let n=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(n,"code",{value:"ERR_INVALID_CHAR"}),n}},Qt=class t extends URLSearchParams{static{a(this,"Headers")}constructor(e){let n=[];if(e instanceof t){let o=e.raw();for(let[r,i]of Object.entries(o))n.push(...i.map(s=>[r,s]))}else if(e!=null)if(typeof e=="object"&&!Nb.types.isBoxedPrimitive(e)){let o=e[Symbol.iterator];if(o==null)n.push(...Object.entries(e));else{if(typeof o!="function")throw new TypeError("Header pairs must be iterable");n=[...e].map(r=>{if(typeof r!="object"||Nb.types.isBoxedPrimitive(r))throw new TypeError("Each header pair must be an iterable object");return[...r]}).map(r=>{if(r.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...r]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return n=n.length>0?n.map(([o,r])=>(Nf(o),zb(o,String(r)),[String(o).toLowerCase(),String(r)])):void 0,super(n),new Proxy(this,{get(o,r,i){switch(r){case"append":case"set":return(s,u)=>(Nf(s),zb(s,String(u)),URLSearchParams.prototype[r].call(o,String(s).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return s=>(Nf(s),URLSearchParams.prototype[r].call(o,String(s).toLowerCase()));case"keys":return()=>(o.sort(),new Set(URLSearchParams.prototype.keys.call(o)).keys());default:return Reflect.get(o,r,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let n=this.getAll(e);if(n.length===0)return null;let o=n.join(", ");return/^content-encoding$/i.test(e)&&(o=o.toLowerCase()),o}forEach(e,n=void 0){for(let o of this.keys())Reflect.apply(e,n,[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,n)=>(e[n]=this.getAll(n),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,n)=>{let o=this.getAll(n);return n==="host"?e[n]=o[0]:e[n]=o.length>1?o:o[0],e},{})}};Object.defineProperties(Qt.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));a(TC,"fromRawHeaders")});var A4,uu,Db=Tt(()=>{A4=new Set([301,302,303,307,308]),uu=a(t=>A4.has(t),"isRedirect")});var Vr,lr,AC=Tt(()=>{zf();kf();Db();Vr=Symbol("Response internals"),lr=class t extends nn{static{a(this,"Response")}constructor(e=null,n={}){super(e,n);let o=n.status!=null?n.status:200,r=new Qt(n.headers);if(e!==null&&!r.has("Content-Type")){let i=$f(e,this);i&&r.append("Content-Type",i)}this[Vr]={type:"default",url:n.url,status:o,statusText:n.statusText||"",headers:r,counter:n.counter,highWaterMark:n.highWaterMark}}get type(){return this[Vr].type}get url(){return this[Vr].url||""}get status(){return this[Vr].status}get ok(){return this[Vr].status>=200&&this[Vr].status<300}get redirected(){return this[Vr].counter>0}get statusText(){return this[Vr].statusText}get headers(){return this[Vr].headers}get highWaterMark(){return this[Vr].highWaterMark}clone(){return new t(Aa(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,n=302){if(!uu(n))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:n})}static error(){let e=new t(null,{status:0,statusText:""});return e[Vr].type="error",e}static json(e=void 0,n={}){let o=JSON.stringify(e);if(o===void 0)throw new TypeError("data is not JSON serializable");let r=new Qt(n&&n.headers);return r.has("content-type")||r.set("content-type","application/json"),new t(o,{...n,headers:r})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(lr.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 wC,IC=Tt(()=>{wC=a(t=>{if(t.search)return t.search;let e=t.href.length-1,n=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-n.length]==="?"?"?":""},"getSearch")});function RC(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 kC(t){if(!CC.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function w4(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),n=(0,OC.isIP)(e);return n===4&&/^127\./.test(e)||n===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function wa(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:w4(t)}function NC(t,{referrerURLCallback:e,referrerOriginCallback:n}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let o=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let r=t.referrer,i=RC(r),s=RC(r,!0);i.toString().length>4096&&(i=s),e&&(i=e(i)),n&&(s=n(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 wa(i)&&!wa(u)?"no-referrer":s.toString();case"strict-origin-when-cross-origin":return i.origin===u.origin?i:wa(i)&&!wa(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 wa(i)&&!wa(u)?"no-referrer":i;default:throw new TypeError(`Invalid referrerPolicy: ${o}`)}}function zC(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),n="";for(let o of e)o&&CC.has(o)&&(n=o);return n}var OC,CC,$C,Ub=Tt(()=>{OC=require("node:net");a(RC,"stripURLForUseAsAReferrer");CC=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),$C="strict-origin-when-cross-origin";a(kC,"validateReferrerPolicy");a(w4,"isOriginPotentiallyTrustworthy");a(wa,"isUrlPotentiallyTrustworthy");a(NC,"determineRequestsReferrer");a(zC,"parseReferrerPolicyFromHeader")});var DC,UC,$t,lu,I4,Po,MC,jC=Tt(()=>{DC=require("node:url"),UC=require("node:util");zf();kf();If();IC();Ub();$t=Symbol("Request internals"),lu=a(t=>typeof t=="object"&&typeof t[$t]=="object","isRequest"),I4=(0,UC.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Po=class t extends nn{static{a(this,"Request")}constructor(e,n={}){let o;if(lu(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 r=n.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(r)&&(r=r.toUpperCase()),!lu(n)&&"data"in n&&I4(),(n.body!=null||lu(e)&&e.body!==null)&&(r==="GET"||r==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=n.body?n.body:lu(e)&&e.body!==null?Aa(e):null;super(i,{size:n.size||e.size||0});let s=new Qt(n.headers||e.headers||{});if(i!==null&&!s.has("Content-Type")){let p=$f(i,this);p&&s.set("Content-Type",p)}let u=lu(e)?e.signal:null;if("signal"in n&&(u=n.signal),u!=null&&!sC(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=n.referrer==null?e.referrer:n.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[$t]={method:r,redirect:n.redirect||e.redirect||"follow",headers:s,parsedURL:o,signal:u,referrer:l},this.follow=n.follow===void 0?e.follow===void 0?20:e.follow:n.follow,this.compress=n.compress===void 0?e.compress===void 0?!0:e.compress:n.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent,this.highWaterMark=n.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=n.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=n.referrerPolicy||e.referrerPolicy||""}get method(){return this[$t].method}get url(){return(0,DC.format)(this[$t].parsedURL)}get headers(){return this[$t].headers}get redirect(){return this[$t].redirect}get signal(){return this[$t].signal}get referrer(){if(this[$t].referrer==="no-referrer")return"";if(this[$t].referrer==="client")return"about:client";if(this[$t].referrer)return this[$t].referrer.toString()}get referrerPolicy(){return this[$t].referrerPolicy}set referrerPolicy(e){this[$t].referrerPolicy=kC(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Po.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}});MC=a(t=>{let{parsedURL:e}=t[$t],n=new Qt(t[$t].headers);n.has("Accept")||n.set("Accept","*/*");let o=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(o="0"),t.body!==null){let u=PC(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&n.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=$C),t.referrer&&t.referrer!=="no-referrer"?t[$t].referrer=NC(t):t[$t].referrer="no-referrer",t[$t].referrer instanceof URL&&n.set("Referer",t.referrer),n.has("User-Agent")||n.set("User-Agent","node-fetch"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip, deflate, br");let{agent:r}=t;typeof r=="function"&&(r=r(e));let i=wC(e),s={path:e.pathname+i,method:t.method,headers:n[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:r};return{parsedURL:e,options:s}},"getNodeRequestOptions")});var du,LC=Tt(()=>{Af();du=class extends kn{static{a(this,"AbortError")}constructor(e,n="aborted"){super(e,n)}}});var qC={};nr(qC,{AbortError:()=>du,Blob:()=>qr,FetchError:()=>Bt,File:()=>bo,FormData:()=>So,Headers:()=>Qt,Request:()=>Po,Response:()=>lr,blobFrom:()=>hC,blobFromSync:()=>mC,default:()=>Mb,fileFrom:()=>gC,fileFromSync:()=>yC,isRedirect:()=>uu});async function Mb(t,e){return new Promise((n,o)=>{let r=new Po(t,e),{parsedURL:i,options:s}=MC(r);if(!R4.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=XO(r.url),E=new lr(_,{headers:{"Content-Type":_.typeFull}});n(E);return}let u=(i.protocol==="https:"?BC.default:FC.default).request,{signal:l}=r,p=null,f=a(()=>{let _=new du("The operation was aborted.");o(_),r.body&&r.body instanceof dr.default.Readable&&r.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 Bt(`request to ${r.url} failed, reason: ${_.message}`,"system",_)),h()}),O4(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let E;_.prependListener("end",()=>{E=_._eventsCount}),_.prependListener("close",P=>{if(p&&E<_._eventsCount&&!P){let x=new Error("Premature close");x.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",x)}})}),m.on("response",_=>{m.setTimeout(0);let E=TC(_.rawHeaders);if(uu(_.statusCode)){let K=E.get("Location"),Z=null;try{Z=K===null?null:new URL(K,r.url)}catch{if(r.redirect!=="manual"){o(new Bt(`uri requested responds with an invalid redirect URL: ${K}`,"invalid-redirect")),h();return}}switch(r.redirect){case"error":o(new Bt(`uri requested responds with a redirect, redirect mode is set to error: ${r.url}`,"no-redirect")),h();return;case"manual":break;case"follow":{if(Z===null)break;if(r.counter>=r.follow){o(new Bt(`maximum redirect reached at: ${r.url}`,"max-redirect")),h();return}let J={headers:new Qt(r.headers),follow:r.follow,counter:r.counter+1,agent:r.agent,compress:r.compress,method:r.method,body:Aa(r),signal:r.signal,size:r.size,referrer:r.referrer,referrerPolicy:r.referrerPolicy};if(!cC(r.url,Z)||!uC(r.url,Z))for(let ae of["authorization","www-authenticate","cookie","cookie2"])J.headers.delete(ae);if(_.statusCode!==303&&r.body&&e.body instanceof dr.default.Readable){o(new Bt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),h();return}(_.statusCode===303||(_.statusCode===301||_.statusCode===302)&&r.method==="POST")&&(J.method="GET",J.body=void 0,J.headers.delete("content-length"));let ee=zC(E);ee&&(J.referrerPolicy=ee),n(Mb(new Po(Z,J))),h();return}default:return o(new TypeError(`Redirect option '${r.redirect}' is not a valid value of RequestRedirect`))}}l&&_.once("end",()=>{l.removeEventListener("abort",y)});let P=(0,dr.pipeline)(_,new dr.PassThrough,K=>{K&&o(K)});process.version<"v12.10"&&_.on("aborted",y);let x={url:r.url,status:_.statusCode,statusText:_.statusMessage,headers:E,size:r.size,counter:r.counter,highWaterMark:r.highWaterMark},z=E.get("Content-Encoding");if(!r.compress||r.method==="HEAD"||z===null||_.statusCode===204||_.statusCode===304){p=new lr(P,x),n(p);return}let M={flush:li.default.Z_SYNC_FLUSH,finishFlush:li.default.Z_SYNC_FLUSH};if(z==="gzip"||z==="x-gzip"){P=(0,dr.pipeline)(P,li.default.createGunzip(M),K=>{K&&o(K)}),p=new lr(P,x),n(p);return}if(z==="deflate"||z==="x-deflate"){let K=(0,dr.pipeline)(_,new dr.PassThrough,Z=>{Z&&o(Z)});K.once("data",Z=>{(Z[0]&15)===8?P=(0,dr.pipeline)(P,li.default.createInflate(),J=>{J&&o(J)}):P=(0,dr.pipeline)(P,li.default.createInflateRaw(),J=>{J&&o(J)}),p=new lr(P,x),n(p)}),K.once("end",()=>{p||(p=new lr(P,x),n(p))});return}if(z==="br"){P=(0,dr.pipeline)(P,li.default.createBrotliDecompress(),K=>{K&&o(K)}),p=new lr(P,x),n(p);return}p=new lr(P,x),n(p)}),xC(m,r).catch(o)})}function O4(t,e){let n=pu.Buffer.from(`0\r
|
|
23
|
+
`)),o.push(`--${r}--`),new e(o,{type:"multipart/form-data; boundary="+r})}var wu,A6,w6,jk,I6,Fk,Xb,yi,Co,Mf=Ct(()=>{Au();Jb();({toStringTag:wu,iterator:A6,hasInstance:w6}=Symbol),jk=Math.random,I6="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),Fk=a((t,e,r)=>(t+="",/^(Blob|File)$/.test(e&&e[wu])?[(r=r!==void 0?r+"":e[wu]=="File"?e.name:"blob",t),e.name!==r||e[wu]=="blob"?new Io([e],r,e):e]:[t,e+""]),"f"),Xb=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[wu](){return"FormData"}[A6](){return this.entries()}static[w6](e){return e&&typeof e=="object"&&e[wu]==="FormData"&&!I6.some(r=>typeof e[r]!="function")}append(...e){yi("append",arguments,2),this.#e.push(Fk(...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=Fk(...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(Bk,"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,Yb=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,Qb,Iu,qk,Gk,Vk,Ff=Ct(()=>{jf=Symbol.toStringTag,Qb=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"),Iu=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"),qk=a(t=>typeof t=="object"&&(t[jf]==="AbortSignal"||t[jf]==="EventTarget"),"isAbortSignal"),Gk=a((t,e)=>{let r=new URL(e).hostname,o=new URL(t).hostname;return r===o||r.endsWith(`.${o}`)},"isDomainOrSubdomain"),Vk=a((t,e)=>{let r=new URL(e).protocol,o=new URL(t).protocol;return r===o},"isSameProtocol")});var Zk=z((Oce,Hk)=>{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)}Hk.exports=globalThis.DOMException});var _i,Wk,Kk,eP,Jk,Xk,Yk,Qk,e0,t0,Bf,tP=Ct(()=>{_i=require("node:fs"),Wk=require("node:path"),Kk=Tt(Zk(),1);Jb();Au();({stat:eP}=_i.promises),Jk=a((t,e)=>e0((0,_i.statSync)(t),t,e),"blobFromSync"),Xk=a((t,e)=>eP(t).then(r=>e0(r,t,e)),"blobFrom"),Yk=a((t,e)=>eP(t).then(r=>t0(r,t,e)),"fileFrom"),Qk=a((t,e)=>t0((0,_i.statSync)(t),t,e),"fileFromSync"),e0=a((t,e,r="")=>new Xr([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],{type:r}),"fromBlob"),t0=a((t,e,r="")=>new Io([new Bf({path:e,size:t.size,lastModified:t.mtimeMs,start:0})],(0,Wk.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 eP(this.#e);if(e>this.lastModified)throw new Kk.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 n0={};Xt(n0,{toFormData:()=>z6});function $6(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 z6(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 rP(r[1]||r[2]),n,i,s,u,l,p,f=[],y=new Co,m=a(T=>{s+=S.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"),E=a(()=>{y.append(u,s)},"appendEntryToFormData"),S=new TextDecoder("utf-8");S.decode(),o.onPartBegin=function(){o.onPartData=m,o.onPartEnd=E,n="",i="",s="",u="",l="",p=null,f.length=0},o.onHeaderField=function(T){n+=S.decode(T,{stream:!0})},o.onHeaderValue=function(T){i+=S.decode(T,{stream:!0})},o.onHeaderEnd=function(){if(i+=S.decode(),n=n.toLowerCase(),n==="content-disposition"){let T=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);T&&(u=T[2]||T[3]||""),p=$6(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,r0,Ro,qf,Gf,C6,Cu,R6,O6,k6,N6,vi,rP,o0=Ct(()=>{tP();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++},r0=1,Ro={PART_BOUNDARY:r0,LAST_BOUNDARY:r0*=2},qf=10,Gf=13,C6=32,Cu=45,R6=58,O6=97,k6=122,N6=a(t=>t|32,"lower"),vi=a(()=>{},"noop"),rP=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,_,E,S=a(Y=>{this[Y+"Mark"]=r},"mark"),T=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(_===Cu)f|=Ro.LAST_BOUNDARY;else if(_!==Gf)return;l++;break}else if(l-1===s.length-2){if(f&Ro.LAST_BOUNDARY&&_===Cu)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,S("onHeaderField"),l=0;case ct.HEADER_FIELD:if(_===Gf){T("onHeaderField"),p=ct.HEADERS_ALMOST_DONE;break}if(l++,_===Cu)break;if(_===R6){if(l===1)return;L("onHeaderField",!0),p=ct.HEADER_VALUE_START;break}if(E=N6(_),E<O6||E>k6)return;break;case ct.HEADER_VALUE_START:if(_===C6)break;S("onHeaderValue"),p=ct.HEADER_VALUE;case ct.HEADER_VALUE:_===Gf&&(L("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,S("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++,_===Gf?f|=Ro.PART_BOUNDARY:_===Cu?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&&_===Cu?(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,S("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($6,"_fileName");a(z6,"toFormData")});async function nP(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 gr.Buffer.alloc(0);if(!(e instanceof Dr.default))return gr.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")?gr.Buffer.from(r.join("")):gr.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,gr,D6,ir,fn,Da,U6,Vf,i0,a0,Hf=Ct(()=>{Dr=Tt(require("node:stream"),1),qn=require("node:util"),gr=require("node:buffer");Au();Mf();Yb();Lf();Ff();D6=(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=gr.Buffer.from(e.toString()):Iu(e)||gr.Buffer.isBuffer(e)||(qn.types.isAnyArrayBuffer(e)?e=gr.Buffer.from(e):ArrayBuffer.isView(e)?e=gr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Dr.default||(e instanceof Co?(e=Bk(e),o=e.type.split("=")[1]):e=gr.Buffer.from(String(e))));let n=e;gr.Buffer.isBuffer(e)?n=Dr.default.Readable.from(e):Iu(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 nP(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(()=>(o0(),n0));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 Xr([r],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await nP(this);return new TextDecoder().decode(e)}buffer(){return nP(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(nP,"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"),U6=(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":Qb(t)?"application/x-www-form-urlencoded;charset=UTF-8":Iu(t)?t.type||null:gr.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=${U6(t)}`:t instanceof Dr.default?null:"text/plain;charset=UTF-8","extractContentType"),i0=a(t=>{let{body:e}=t[ir];return e===null?0:Iu(e)?e.size:gr.Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),a0=a(async(t,{body:e})=>{e===null?t.end():await D6(e,t)},"writeToStream")});function s0(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),iP(e,String(r)),!0}catch{return!1}}))}var oP,Ru,Zf,iP,ar,Wf=Ct(()=>{oP=require("node:util"),Ru=Tt(require("node:http"),1),Zf=typeof Ru.default.validateHeaderName=="function"?Ru.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}},iP=typeof Ru.default.validateHeaderValue=="function"?Ru.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"&&!oP.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"||oP.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),iP(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),iP(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(s0,"fromRawHeaders")});var M6,Ou,aP=Ct(()=>{M6=new Set([301,302,303,307,308]),Ou=a(t=>M6.has(t),"isRedirect")});var Yr,yr,c0=Ct(()=>{Wf();Hf();aP();Yr=Symbol("Response internals"),yr=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[Yr]={type:"default",url:r.url,status:o,statusText:r.statusText||"",headers:n,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Yr].type}get url(){return this[Yr].url||""}get status(){return this[Yr].status}get ok(){return this[Yr].status>=200&&this[Yr].status<300}get redirected(){return this[Yr].counter>0}get statusText(){return this[Yr].statusText}get headers(){return this[Yr].headers}get highWaterMark(){return this[Yr].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(!Ou(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[Yr].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(yr.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 u0,l0=Ct(()=>{u0=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 d0(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 h0(t){if(!f0.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function L6(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),r=(0,p0.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:L6(t)}function g0(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=d0(n),s=d0(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 y0(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let o of e)o&&f0.has(o)&&(r=o);return r}var p0,f0,m0,sP=Ct(()=>{p0=require("node:net");a(d0,"stripURLForUseAsAReferrer");f0=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),m0="strict-origin-when-cross-origin";a(h0,"validateReferrerPolicy");a(L6,"isOriginPotentiallyTrustworthy");a(Ua,"isUrlPotentiallyTrustworthy");a(g0,"determineRequestsReferrer");a(y0,"parseReferrerPolicyFromHeader")});var _0,v0,Dt,ku,j6,Oo,b0,P0=Ct(()=>{_0=require("node:url"),v0=require("node:util");Wf();Hf();Ff();l0();sP();Dt=Symbol("Request internals"),ku=a(t=>typeof t=="object"&&typeof t[Dt]=="object","isRequest"),j6=(0,v0.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(ku(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()),!ku(r)&&"data"in r&&j6(),(r.body!=null||ku(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:ku(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=Vf(i,this);p&&s.set("Content-Type",p)}let u=ku(e)?e.signal:null;if("signal"in r&&(u=r.signal),u!=null&&!qk(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,_0.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=h0(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}});b0=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=i0(t);typeof u=="number"&&!Number.isNaN(u)&&(o=String(u))}o&&r.set("Content-Length",o),t.referrerPolicy===""&&(t.referrerPolicy=m0),t.referrer&&t.referrer!=="no-referrer"?t[Dt].referrer=g0(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=u0(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 Nu,E0=Ct(()=>{Lf();Nu=class extends Bn{static{a(this,"AbortError")}constructor(e,r="aborted"){super(e,r)}}});var T0={};Xt(T0,{AbortError:()=>Nu,Blob:()=>Xr,FetchError:()=>Wt,File:()=>Io,FormData:()=>Co,Headers:()=>ar,Request:()=>Oo,Response:()=>yr,blobFrom:()=>Xk,blobFromSync:()=>Jk,default:()=>cP,fileFrom:()=>Yk,fileFromSync:()=>Qk,isRedirect:()=>Ou});async function cP(t,e){return new Promise((r,o)=>{let n=new Oo(t,e),{parsedURL:i,options:s}=b0(n);if(!F6.has(i.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${i.protocol.replace(/:$/,"")}" is not supported.`);if(i.protocol==="data:"){let _=Nk(n.url),E=new yr(_,{headers:{"Content-Type":_.typeFull}});r(E);return}let u=(i.protocol==="https:"?x0.default:S0.default).request,{signal:l}=n,p=null,f=a(()=>{let _=new Nu("The operation was aborted.");o(_),n.body&&n.body instanceof _r.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()}),B6(m,_=>{p&&p.body&&p.body.destroy(_)}),process.version<"v14"&&m.on("socket",_=>{let E;_.prependListener("end",()=>{E=_._eventsCount}),_.prependListener("close",S=>{if(p&&E<_._eventsCount&&!S){let T=new Error("Premature close");T.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",T)}})}),m.on("response",_=>{m.setTimeout(0);let E=s0(_.rawHeaders);if(Ou(_.statusCode)){let Y=E.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(!Gk(n.url,H)||!Vk(n.url,H))for(let ce of["authorization","www-authenticate","cookie","cookie2"])X.headers.delete(ce);if(_.statusCode!==303&&n.body&&e.body instanceof _r.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=y0(E);re&&(X.referrerPolicy=re),r(cP(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 S=(0,_r.pipeline)(_,new _r.PassThrough,Y=>{Y&&o(Y)});process.version<"v12.10"&&_.on("aborted",y);let T={url:n.url,status:_.statusCode,statusText:_.statusMessage,headers:E,size:n.size,counter:n.counter,highWaterMark:n.highWaterMark},k=E.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||k===null||_.statusCode===204||_.statusCode===304){p=new yr(S,T),r(p);return}let L={flush:bi.default.Z_SYNC_FLUSH,finishFlush:bi.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){S=(0,_r.pipeline)(S,bi.default.createGunzip(L),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}if(k==="deflate"||k==="x-deflate"){let Y=(0,_r.pipeline)(_,new _r.PassThrough,H=>{H&&o(H)});Y.once("data",H=>{(H[0]&15)===8?S=(0,_r.pipeline)(S,bi.default.createInflate(),X=>{X&&o(X)}):S=(0,_r.pipeline)(S,bi.default.createInflateRaw(),X=>{X&&o(X)}),p=new yr(S,T),r(p)}),Y.once("end",()=>{p||(p=new yr(S,T),r(p))});return}if(k==="br"){S=(0,_r.pipeline)(S,bi.default.createBrotliDecompress(),Y=>{Y&&o(Y)}),p=new yr(S,T),r(p);return}p=new yr(S,T),r(p)}),a0(m,n).catch(o)})}function B6(t,e){let r=$u.Buffer.from(`0\r
|
|
26
26
|
\r
|
|
27
|
-
`),o=!1,
|
|
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=$u.Buffer.compare(p.slice(-5),r)===0,!n&&i&&(n=$u.Buffer.compare(i.slice(-3),r.slice(0,3))===0&&$u.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 S0,x0,bi,_r,$u,F6,A0=Ct(()=>{S0=Tt(require("node:http"),1),x0=Tt(require("node:https"),1),bi=Tt(require("node:zlib"),1),_r=Tt(require("node:stream"),1),$u=require("node:buffer");$k();Hf();c0();Wf();P0();Yb();E0();aP();Mf();Ff();sP();tP();F6=new Set(["data:","http:","https:"]);a(cP,"fetch");a(B6,"fixResponseChunkedTransferBadEnding")});var C0=z(La=>{"use strict";var q6=La&&La.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Ma;Object.defineProperty(La,"__esModule",{value:!0});La.Gaxios=void 0;var G6=q6(xu()),V6=require("https"),Pi=Mb(),H6=sk(),w0=require("stream"),I0=Fb(),Z6=a(async()=>globalThis.crypto?.randomUUID()||(await import("crypto")).randomUUID(),"randomUUID"),W6=204,Kf=class{static{a(this,"Gaxios")}agentCache=new Map;defaults;interceptors;constructor(e){this.defaults=e||{},this.interceptors={request:new I0.GaxiosInterceptorManager,response:new I0.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,H6.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===W6)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,G6.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 w0.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 Z6();r.set("content-type",`multipart/related; boundary=${s}`),o.body=w0.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 V6.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
|
-
`,typeof
|
|
31
|
-
`}yield o}static#i;static#a;static async#s(){return this.#i||=(await Promise.resolve().then(()=>St(KO()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(VC(),qC))).default,this.#a}static mergeHeaders(e,...n){e=e instanceof Headers?e:new Headers(e);for(let o of n)(o instanceof Headers?o:new Headers(o)).forEach((i,s)=>{s==="set-cookie"?e.append(s,i):e.set(s,i)});return e}};Ra.Gaxios=Df;Ia=Df});var gt=N(qt=>{"use strict";var U4=qt&&qt.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),M4=qt&&qt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&U4(e,t,n)};Object.defineProperty(qt,"__esModule",{value:!0});qt.instance=qt.Gaxios=qt.GaxiosError=void 0;qt.request=L4;var WC=GC();Object.defineProperty(qt,"Gaxios",{enumerable:!0,get:a(function(){return WC.Gaxios},"get")});var j4=mb();Object.defineProperty(qt,"GaxiosError",{enumerable:!0,get:a(function(){return j4.GaxiosError},"get")});M4(yb(),qt);qt.instance=new WC.Gaxios;async function L4(t){return qt.instance.request(t)}a(L4,"request")});var jb=N((JC,Uf)=>{(function(t){"use strict";var e,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,r=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(Z){var J,ee,ae,Y=ie.prototype={constructor:ie,toString:null,valueOf:null},ze=new ie(1),se=20,G=4,H=-7,re=21,X=-1e7,ue=1e7,de=!1,Ce=1,De=0,Je={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},tt="0123456789abcdefghijklmnopqrstuvwxyz",xt=!0;function ie(b,T){var A,U,O,k,F,R,$,j,D=this;if(!(D instanceof ie))return new ie(b,T);if(T==null){if(b&&b._isBigNumber===!0){D.s=b.s,!b.c||b.e>ue?D.c=D.e=null:b.e<X?D.c=[D.e=0]:(D.e=b.e,D.c=b.c.slice());return}if((R=typeof b=="number")&&b*0==0){if(D.s=1/b<0?(b=-b,-1):1,b===~~b){for(k=0,F=b;F>=10;F/=10,k++);k>ue?D.c=D.e=null:(D.e=k,D.c=[b]);return}j=String(b)}else{if(!n.test(j=String(b)))return ae(D,j,R);D.s=j.charCodeAt(0)==45?(j=j.slice(1),-1):1}(k=j.indexOf("."))>-1&&(j=j.replace(".","")),(F=j.search(/e/i))>0?(k<0&&(k=F),k+=+j.slice(F+1),j=j.substring(0,F)):k<0&&(k=j.length)}else{if(x(T,2,tt.length,"Base"),T==10&&xt)return D=new ie(b),He(D,se+D.e+1,G);if(j=String(b),R=typeof b=="number"){if(b*0!=0)return ae(D,j,R,T);if(D.s=1/b<0?(j=j.slice(1),-1):1,ie.DEBUG&&j.replace(/^0\.0*|\./,"").length>15)throw Error(s+b)}else D.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1;for(A=tt.slice(0,T),k=F=0,$=j.length;F<$;F++)if(A.indexOf(U=j.charAt(F))<0){if(U=="."){if(F>k){k=$;continue}}else if(!O&&(j==j.toUpperCase()&&(j=j.toLowerCase())||j==j.toLowerCase()&&(j=j.toUpperCase()))){O=!0,F=-1,k=0;continue}return ae(D,String(b),R,T)}R=!1,j=ee(j,T,10,D.s),(k=j.indexOf("."))>-1?j=j.replace(".",""):k=j.length}for(F=0;j.charCodeAt(F)===48;F++);for($=j.length;j.charCodeAt(--$)===48;);if(j=j.slice(F,++$)){if($-=F,R&&ie.DEBUG&&$>15&&(b>p||b!==r(b)))throw Error(s+D.s*b);if((k=k-F-1)>ue)D.c=D.e=null;else if(k<X)D.c=[D.e=0];else{if(D.e=k,D.c=[],F=(k+1)%l,k<0&&(F+=l),F<$){for(F&&D.c.push(+j.slice(0,F)),$-=l;F<$;)D.c.push(+j.slice(F,F+=l));F=l-(j=j.slice(F)).length}else F-=$;for(;F--;j+="0");D.c.push(+j)}}else D.c=[D.e=0]}a(ie,"BigNumber"),ie.clone=h,ie.ROUND_UP=0,ie.ROUND_DOWN=1,ie.ROUND_CEIL=2,ie.ROUND_FLOOR=3,ie.ROUND_HALF_UP=4,ie.ROUND_HALF_DOWN=5,ie.ROUND_HALF_EVEN=6,ie.ROUND_HALF_CEIL=7,ie.ROUND_HALF_FLOOR=8,ie.EUCLID=9,ie.config=ie.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),se=A),b.hasOwnProperty(T="ROUNDING_MODE")&&(A=b[T],x(A,0,8,T),G=A),b.hasOwnProperty(T="EXPONENTIAL_AT")&&(A=b[T],A&&A.pop?(x(A[0],-m,0,T),x(A[1],0,m,T),H=A[0],re=A[1]):(x(A,-m,m,T),H=-(re=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),X=A[0],ue=A[1];else if(x(A,-m,m,T),A)X=-(ue=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))de=A;else throw de=!A,Error(i+"crypto unavailable");else de=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),Ce=A),b.hasOwnProperty(T="POW_PRECISION")&&(A=b[T],x(A,0,m,T),De=A),b.hasOwnProperty(T="FORMAT"))if(A=b[T],typeof A=="object")Je=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))xt=A.slice(0,10)=="0123456789",tt=A;else throw Error(i+T+" invalid: "+A)}else throw Error(i+"Object expected: "+b);return{DECIMAL_PLACES:se,ROUNDING_MODE:G,EXPONENTIAL_AT:[H,re],RANGE:[X,ue],CRYPTO:de,MODULO_MODE:Ce,POW_PRECISION:De,FORMAT:Je,ALPHABET:tt}},ie.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!ie.DEBUG)return!0;var T,A,U=b.c,O=b.e,k=b.s;e:if({}.toString.call(U)=="[object Array]"){if((k===1||k===-1)&&O>=-m&&O<=m&&O===r(O)){if(U[0]===0){if(O===0&&U.length===1)return!0;break e}if(T=(O+1)%l,T<1&&(T+=l),String(U[0]).length==T){for(T=0;T<U.length;T++)if(A=U[T],A<0||A>=u||A!==r(A))break e;if(A!==0)return!0}}}else if(U===null&&O===null&&(k===null||k===1||k===-1))return!0;throw Error(i+"Invalid BigNumber: "+b)},ie.maximum=ie.max=function(){return ft(arguments,-1)},ie.minimum=ie.min=function(){return ft(arguments,1)},ie.random=(function(){var b=9007199254740992,T=Math.random()*b&2097151?function(){return r(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var U,O,k,F,R,$=0,j=[],D=new ie(ze);if(A==null?A=se:x(A,0,m),F=o(A/l),de)if(crypto.getRandomValues){for(U=crypto.getRandomValues(new Uint32Array(F*=2));$<F;)R=U[$]*131072+(U[$+1]>>>11),R>=9e15?(O=crypto.getRandomValues(new Uint32Array(2)),U[$]=O[0],U[$+1]=O[1]):(j.push(R%1e14),$+=2);$=F/2}else if(crypto.randomBytes){for(U=crypto.randomBytes(F*=7);$<F;)R=(U[$]&31)*281474976710656+U[$+1]*1099511627776+U[$+2]*4294967296+U[$+3]*16777216+(U[$+4]<<16)+(U[$+5]<<8)+U[$+6],R>=9e15?crypto.randomBytes(7).copy(U,$):(j.push(R%1e14),$+=7);$=F/7}else throw de=!1,Error(i+"crypto unavailable");if(!de)for(;$<F;)R=T(),R<9e15&&(j[$++]=R%1e14);for(F=j[--$],A%=l,F&&A&&(R=f[l-A],j[$]=r(F/R)*R);j[$]===0;j.pop(),$--);if($<0)j=[k=0];else{for(k=-1;j[0]===0;j.splice(0,1),k-=l);for($=1,R=j[0];R>=10;R/=10,$++);$<l&&(k-=l-$)}return D.e=k,D.c=j,D}})(),ie.sum=function(){for(var b=1,T=arguments,A=new ie(T[0]);b<T.length;)A=A.plus(T[b++]);return A},ee=(function(){var b="0123456789";function T(A,U,O,k){for(var F,R=[0],$,j=0,D=A.length;j<D;){for($=R.length;$--;R[$]*=U);for(R[0]+=k.indexOf(A.charAt(j++)),F=0;F<R.length;F++)R[F]>O-1&&(R[F+1]==null&&(R[F+1]=0),R[F+1]+=R[F]/O|0,R[F]%=O)}return R.reverse()}return a(T,"toBaseOut"),function(A,U,O,k,F){var R,$,j,D,W,pe,me,qe,it=A.indexOf("."),at=se,Fe=G;for(it>=0&&(D=De,De=0,A=A.replace(".",""),qe=new ie(U),pe=qe.pow(A.length-it),De=D,qe.c=T(K(E(pe.c),pe.e,"0"),10,O,b),qe.e=qe.c.length),me=T(A,U,O,F?(R=tt,b):(R=b,tt)),j=D=me.length;me[--D]==0;me.pop());if(!me[0])return R.charAt(0);if(it<0?--j:(pe.c=me,pe.e=j,pe.s=k,pe=J(pe,qe,at,Fe,O),me=pe.c,W=pe.r,j=pe.e),$=j+at+1,it=me[$],D=O/2,W=W||$<0||me[$+1]!=null,W=Fe<4?(it!=null||W)&&(Fe==0||Fe==(pe.s<0?3:2)):it>D||it==D&&(Fe==4||W||Fe==6&&me[$-1]&1||Fe==(pe.s<0?8:7)),$<1||!me[0])A=W?K(R.charAt(1),-at,R.charAt(0)):R.charAt(0);else{if(me.length=$,W)for(--O;++me[--$]>O;)me[$]=0,$||(++j,me=[1].concat(me));for(D=me.length;!me[--D];);for(it=0,A="";it<=D;A+=R.charAt(me[it++]));A=K(A,j,R.charAt(0))}return A}})(),J=(function(){function b(U,O,k){var F,R,$,j,D=0,W=U.length,pe=O%y,me=O/y|0;for(U=U.slice();W--;)$=U[W]%y,j=U[W]/y|0,F=me*$+j*pe,R=pe*$+F%y*y+D,D=(R/k|0)+(F/y|0)+me*j,U[W]=R%k;return D&&(U=[D].concat(U)),U}a(b,"multiply");function T(U,O,k,F){var R,$;if(k!=F)$=k>F?1:-1;else for(R=$=0;R<k;R++)if(U[R]!=O[R]){$=U[R]>O[R]?1:-1;break}return $}a(T,"compare");function A(U,O,k,F){for(var R=0;k--;)U[k]-=R,R=U[k]<O[k]?1:0,U[k]=R*F+U[k]-O[k];for(;!U[0]&&U.length>1;U.splice(0,1));}return a(A,"subtract"),function(U,O,k,F,R){var $,j,D,W,pe,me,qe,it,at,Fe,Ze,vt,bi,Si,Ei,tr,yn,zt=U.s==O.s?1:-1,bt=U.c,Xe=O.c;if(!bt||!bt[0]||!Xe||!Xe[0])return new ie(!U.s||!O.s||(bt?Xe&&bt[0]==Xe[0]:!Xe)?NaN:bt&&bt[0]==0||!Xe?zt*0:zt/0);for(it=new ie(zt),at=it.c=[],j=U.e-O.e,zt=k+j+1,R||(R=u,j=_(U.e/l)-_(O.e/l),zt=zt/l|0),D=0;Xe[D]==(bt[D]||0);D++);if(Xe[D]>(bt[D]||0)&&j--,zt<0)at.push(1),W=!0;else{for(Si=bt.length,tr=Xe.length,D=0,zt+=2,pe=r(R/(Xe[0]+1)),pe>1&&(Xe=b(Xe,pe,R),bt=b(bt,pe,R),tr=Xe.length,Si=bt.length),bi=tr,Fe=bt.slice(0,tr),Ze=Fe.length;Ze<tr;Fe[Ze++]=0);yn=Xe.slice(),yn=[0].concat(yn),Ei=Xe[0],Xe[1]>=R/2&&Ei++;do{if(pe=0,$=T(Xe,Fe,tr,Ze),$<0){if(vt=Fe[0],tr!=Ze&&(vt=vt*R+(Fe[1]||0)),pe=r(vt/Ei),pe>1)for(pe>=R&&(pe=R-1),me=b(Xe,pe,R),qe=me.length,Ze=Fe.length;T(me,Fe,qe,Ze)==1;)pe--,A(me,tr<qe?yn:Xe,qe,R),qe=me.length,$=1;else pe==0&&($=pe=1),me=Xe.slice(),qe=me.length;if(qe<Ze&&(me=[0].concat(me)),A(Fe,me,Ze,R),Ze=Fe.length,$==-1)for(;T(Xe,Fe,tr,Ze)<1;)pe++,A(Fe,tr<Ze?yn:Xe,Ze,R),Ze=Fe.length}else $===0&&(pe++,Fe=[0]);at[D++]=pe,Fe[0]?Fe[Ze++]=bt[bi]||0:(Fe=[bt[bi]],Ze=1)}while((bi++<Si||Fe[0]!=null)&&zt--);W=Fe[0]!=null,at[0]||at.splice(0,1)}if(R==u){for(D=1,zt=at[0];zt>=10;zt/=10,D++);He(it,k+(it.e=D+j*l-1)+1,F,W)}else it.e=j,it.r=+W;return it}})();function dt(b,T,A,U){var O,k,F,R,$;if(A==null?A=G:x(A,0,8),!b.c)return b.toString();if(O=b.c[0],F=b.e,T==null)$=E(b.c),$=U==1||U==2&&(F<=H||F>=re)?M($,F):K($,F,"0");else if(b=He(new ie(b),T,A),k=b.e,$=E(b.c),R=$.length,U==1||U==2&&(T<=k||k<=H)){for(;R<T;$+="0",R++);$=M($,k)}else if(T-=F+(U===2&&k>F),$=K($,k,"0"),k+1>R){if(--T>0)for($+=".";T--;$+="0");}else if(T+=k-R,T>0)for(k+1==R&&($+=".");T--;$+="0");return b.s<0&&O?"-"+$:$}a(dt,"format");function ft(b,T){for(var A,U,O=1,k=new ie(b[0]);O<b.length;O++)U=new ie(b[O]),(!U.s||(A=P(k,U))===T||A===0&&k.s===T)&&(k=U);return k}a(ft,"maxOrMin");function er(b,T,A){for(var U=1,O=T.length;!T[--O];T.pop());for(O=T[0];O>=10;O/=10,U++);return(A=U+A*l-1)>ue?b.c=b.e=null:A<X?b.c=[b.e=0]:(b.e=A,b.c=T),b}a(er,"normalise"),ae=(function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,T=/^([^.]+)\.$/,A=/^\.([^.]+)$/,U=/^-?(Infinity|NaN)$/,O=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(k,F,R,$){var j,D=R?F:F.replace(O,"");if(U.test(D))k.s=isNaN(D)?null:D<0?-1:1;else{if(!R&&(D=D.replace(b,function(W,pe,me){return j=(me=me.toLowerCase())=="x"?16:me=="b"?2:8,!$||$==j?pe:W}),$&&(j=$,D=D.replace(T,"$1").replace(A,"0.$1")),F!=D))return new ie(D,j);if(ie.DEBUG)throw Error(i+"Not a"+($?" base "+$:"")+" number: "+F);k.s=null}k.c=k.e=null}})();function He(b,T,A,U){var O,k,F,R,$,j,D,W=b.c,pe=f;if(W){e:{for(O=1,R=W[0];R>=10;R/=10,O++);if(k=T-O,k<0)k+=l,F=T,$=W[j=0],D=r($/pe[O-F-1]%10);else if(j=o((k+1)/l),j>=W.length)if(U){for(;W.length<=j;W.push(0));$=D=0,O=1,k%=l,F=k-l+1}else break e;else{for($=R=W[j],O=1;R>=10;R/=10,O++);k%=l,F=k-l+O,D=F<0?0:r($/pe[O-F-1]%10)}if(U=U||T<0||W[j+1]!=null||(F<0?$:$%pe[O-F-1]),U=A<4?(D||U)&&(A==0||A==(b.s<0?3:2)):D>5||D==5&&(A==4||U||A==6&&(k>0?F>0?$/pe[O-F]:0:W[j-1])%10&1||A==(b.s<0?8:7)),T<1||!W[0])return W.length=0,U?(T-=b.e+1,W[0]=pe[(l-T%l)%l],b.e=-T||0):W[0]=b.e=0,b;if(k==0?(W.length=j,R=1,j--):(W.length=j+1,R=pe[l-k],W[j]=F>0?r($/pe[O-F]%pe[F])*R:0),U)for(;;)if(j==0){for(k=1,F=W[0];F>=10;F/=10,k++);for(F=W[0]+=R,R=1;F>=10;F/=10,R++);k!=R&&(b.e++,W[0]==u&&(W[0]=1));break}else{if(W[j]+=R,W[j]!=u)break;W[j--]=0,R=1}for(k=W.length;W[--k]===0;W.pop());}b.e>ue?b.c=b.e=null:b.e<X&&(b.c=[b.e=0])}return b}a(He,"round");function Ke(b){var T,A=b.e;return A===null?b.toString():(T=E(b.c),T=A<=H||A>=re?M(T,A):K(T,A,"0"),b.s<0?"-"+T:T)}return a(Ke,"valueOf"),Y.absoluteValue=Y.abs=function(){var b=new ie(this);return b.s<0&&(b.s=1),b},Y.comparedTo=function(b,T){return P(this,new ie(b,T))},Y.decimalPlaces=Y.dp=function(b,T){var A,U,O,k=this;if(b!=null)return x(b,0,m),T==null?T=G:x(T,0,8),He(new ie(k),b+k.e+1,T);if(!(A=k.c))return null;if(U=((O=A.length-1)-_(this.e/l))*l,O=A[O])for(;O%10==0;O/=10,U--);return U<0&&(U=0),U},Y.dividedBy=Y.div=function(b,T){return J(this,new ie(b,T),se,G)},Y.dividedToIntegerBy=Y.idiv=function(b,T){return J(this,new ie(b,T),0,1)},Y.exponentiatedBy=Y.pow=function(b,T){var A,U,O,k,F,R,$,j,D,W=this;if(b=new ie(b),b.c&&!b.isInteger())throw Error(i+"Exponent not an integer: "+Ke(b));if(T!=null&&(T=new ie(T)),R=b.e>14,!W.c||!W.c[0]||W.c[0]==1&&!W.e&&W.c.length==1||!b.c||!b.c[0])return D=new ie(Math.pow(+Ke(W),R?b.s*(2-z(b)):+Ke(b))),T?D.mod(T):D;if($=b.s<0,T){if(T.c?!T.c[0]:!T.s)return new ie(NaN);U=!$&&W.isInteger()&&T.isInteger(),U&&(W=W.mod(T))}else{if(b.e>9&&(W.e>0||W.e<-1||(W.e==0?W.c[0]>1||R&&W.c[1]>=24e7:W.c[0]<8e13||R&&W.c[0]<=9999975e7)))return k=W.s<0&&z(b)?-0:0,W.e>-1&&(k=1/k),new ie($?1/k:k);De&&(k=o(De/l+2))}for(R?(A=new ie(.5),$&&(b.s=1),j=z(b)):(O=Math.abs(+Ke(b)),j=O%2),D=new ie(ze);;){if(j){if(D=D.times(W),!D.c)break;k?D.c.length>k&&(D.c.length=k):U&&(D=D.mod(T))}if(O){if(O=r(O/2),O===0)break;j=O%2}else if(b=b.times(A),He(b,b.e+1,1),b.e>14)j=z(b);else{if(O=+Ke(b),O===0)break;j=O%2}W=W.times(W),k?W.c&&W.c.length>k&&(W.c.length=k):U&&(W=W.mod(T))}return U?D:($&&(D=ze.div(D)),T?D.mod(T):k?He(D,De,G,F):D)},Y.integerValue=function(b){var T=new ie(this);return b==null?b=G:x(b,0,8),He(T,T.e+1,b)},Y.isEqualTo=Y.eq=function(b,T){return P(this,new ie(b,T))===0},Y.isFinite=function(){return!!this.c},Y.isGreaterThan=Y.gt=function(b,T){return P(this,new ie(b,T))>0},Y.isGreaterThanOrEqualTo=Y.gte=function(b,T){return(T=P(this,new ie(b,T)))===1||T===0},Y.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},Y.isLessThan=Y.lt=function(b,T){return P(this,new ie(b,T))<0},Y.isLessThanOrEqualTo=Y.lte=function(b,T){return(T=P(this,new ie(b,T)))===-1||T===0},Y.isNaN=function(){return!this.s},Y.isNegative=function(){return this.s<0},Y.isPositive=function(){return this.s>0},Y.isZero=function(){return!!this.c&&this.c[0]==0},Y.minus=function(b,T){var A,U,O,k,F=this,R=F.s;if(b=new ie(b,T),T=b.s,!R||!T)return new ie(NaN);if(R!=T)return b.s=-T,F.plus(b);var $=F.e/l,j=b.e/l,D=F.c,W=b.c;if(!$||!j){if(!D||!W)return D?(b.s=-T,b):new ie(W?F:NaN);if(!D[0]||!W[0])return W[0]?(b.s=-T,b):new ie(D[0]?F:G==3?-0:0)}if($=_($),j=_(j),D=D.slice(),R=$-j){for((k=R<0)?(R=-R,O=D):(j=$,O=W),O.reverse(),T=R;T--;O.push(0));O.reverse()}else for(U=(k=(R=D.length)<(T=W.length))?R:T,R=T=0;T<U;T++)if(D[T]!=W[T]){k=D[T]<W[T];break}if(k&&(O=D,D=W,W=O,b.s=-b.s),T=(U=W.length)-(A=D.length),T>0)for(;T--;D[A++]=0);for(T=u-1;U>R;){if(D[--U]<W[U]){for(A=U;A&&!D[--A];D[A]=T);--D[A],D[U]+=u}D[U]-=W[U]}for(;D[0]==0;D.splice(0,1),--j);return D[0]?er(b,D,j):(b.s=G==3?-1:1,b.c=[b.e=0],b)},Y.modulo=Y.mod=function(b,T){var A,U,O=this;return b=new ie(b,T),!O.c||!b.s||b.c&&!b.c[0]?new ie(NaN):!b.c||O.c&&!O.c[0]?new ie(O):(Ce==9?(U=b.s,b.s=1,A=J(O,b,0,3),b.s=U,A.s*=U):A=J(O,b,0,Ce),b=O.minus(A.times(b)),!b.c[0]&&Ce==1&&(b.s=O.s),b)},Y.multipliedBy=Y.times=function(b,T){var A,U,O,k,F,R,$,j,D,W,pe,me,qe,it,at,Fe=this,Ze=Fe.c,vt=(b=new ie(b,T)).c;if(!Ze||!vt||!Ze[0]||!vt[0])return!Fe.s||!b.s||Ze&&!Ze[0]&&!vt||vt&&!vt[0]&&!Ze?b.c=b.e=b.s=null:(b.s*=Fe.s,!Ze||!vt?b.c=b.e=null:(b.c=[0],b.e=0)),b;for(U=_(Fe.e/l)+_(b.e/l),b.s*=Fe.s,$=Ze.length,W=vt.length,$<W&&(qe=Ze,Ze=vt,vt=qe,O=$,$=W,W=O),O=$+W,qe=[];O--;qe.push(0));for(it=u,at=y,O=W;--O>=0;){for(A=0,pe=vt[O]%at,me=vt[O]/at|0,F=$,k=O+F;k>O;)j=Ze[--F]%at,D=Ze[F]/at|0,R=me*j+D*pe,j=pe*j+R%at*at+qe[k]+A,A=(j/it|0)+(R/at|0)+me*D,qe[k--]=j%it;qe[k]=A}return A?++U:qe.splice(0,1),er(b,qe,U)},Y.negated=function(){var b=new ie(this);return b.s=-b.s||null,b},Y.plus=function(b,T){var A,U=this,O=U.s;if(b=new ie(b,T),T=b.s,!O||!T)return new ie(NaN);if(O!=T)return b.s=-T,U.minus(b);var k=U.e/l,F=b.e/l,R=U.c,$=b.c;if(!k||!F){if(!R||!$)return new ie(O/0);if(!R[0]||!$[0])return $[0]?b:new ie(R[0]?U:O*0)}if(k=_(k),F=_(F),R=R.slice(),O=k-F){for(O>0?(F=k,A=$):(O=-O,A=R),A.reverse();O--;A.push(0));A.reverse()}for(O=R.length,T=$.length,O-T<0&&(A=$,$=R,R=A,T=O),O=0;T;)O=(R[--T]=R[T]+$[T]+O)/u|0,R[T]=u===R[T]?0:R[T]%u;return O&&(R=[O].concat(R),++F),er(b,R,F)},Y.precision=Y.sd=function(b,T){var A,U,O,k=this;if(b!=null&&b!==!!b)return x(b,1,m),T==null?T=G:x(T,0,8),He(new ie(k),b,T);if(!(A=k.c))return null;if(O=A.length-1,U=O*l+1,O=A[O]){for(;O%10==0;O/=10,U--);for(O=A[0];O>=10;O/=10,U++);}return b&&k.e+1>U&&(U=k.e+1),U},Y.shiftedBy=function(b){return x(b,-p,p),this.times("1e"+b)},Y.squareRoot=Y.sqrt=function(){var b,T,A,U,O,k=this,F=k.c,R=k.s,$=k.e,j=se+4,D=new ie("0.5");if(R!==1||!F||!F[0])return new ie(!R||R<0&&(!F||F[0])?NaN:F?k:1/0);if(R=Math.sqrt(+Ke(k)),R==0||R==1/0?(T=E(F),(T.length+$)%2==0&&(T+="0"),R=Math.sqrt(+T),$=_(($+1)/2)-($<0||$%2),R==1/0?T="5e"+$:(T=R.toExponential(),T=T.slice(0,T.indexOf("e")+1)+$),A=new ie(T)):A=new ie(R+""),A.c[0]){for($=A.e,R=$+j,R<3&&(R=0);;)if(O=A,A=D.times(O.plus(J(k,O,j,1))),E(O.c).slice(0,R)===(T=E(A.c)).slice(0,R))if(A.e<$&&--R,T=T.slice(R-3,R+1),T=="9999"||!U&&T=="4999"){if(!U&&(He(O,O.e+se+2,0),O.times(O).eq(k))){A=O;break}j+=4,R+=4,U=1}else{(!+T||!+T.slice(1)&&T.charAt(0)=="5")&&(He(A,A.e+se+2,1),b=!A.times(A).eq(k));break}}return He(A,A.e+se+1,G,b)},Y.toExponential=function(b,T){return b!=null&&(x(b,0,m),b++),dt(this,b,T,1)},Y.toFixed=function(b,T){return b!=null&&(x(b,0,m),b=b+this.e+1),dt(this,b,T)},Y.toFormat=function(b,T,A){var U,O=this;if(A==null)b!=null&&T&&typeof T=="object"?(A=T,T=null):b&&typeof b=="object"?(A=b,b=T=null):A=Je;else if(typeof A!="object")throw Error(i+"Argument not an object: "+A);if(U=O.toFixed(b,T),O.c){var k,F=U.split("."),R=+A.groupSize,$=+A.secondaryGroupSize,j=A.groupSeparator||"",D=F[0],W=F[1],pe=O.s<0,me=pe?D.slice(1):D,qe=me.length;if($&&(k=R,R=$,$=k,qe-=k),R>0&&qe>0){for(k=qe%R||R,D=me.substr(0,k);k<qe;k+=R)D+=j+me.substr(k,R);$>0&&(D+=j+me.slice(k)),pe&&(D="-"+D)}U=W?D+(A.decimalSeparator||"")+(($=+A.fractionGroupSize)?W.replace(new RegExp("\\d{"+$+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):W):D}return(A.prefix||"")+U+(A.suffix||"")},Y.toFraction=function(b){var T,A,U,O,k,F,R,$,j,D,W,pe,me=this,qe=me.c;if(b!=null&&(R=new ie(b),!R.isInteger()&&(R.c||R.s!==1)||R.lt(ze)))throw Error(i+"Argument "+(R.isInteger()?"out of range: ":"not an integer: ")+Ke(R));if(!qe)return new ie(me);for(T=new ie(ze),j=A=new ie(ze),U=$=new ie(ze),pe=E(qe),k=T.e=pe.length-me.e-1,T.c[0]=f[(F=k%l)<0?l+F:F],b=!b||R.comparedTo(T)>0?k>0?T:j:R,F=ue,ue=1/0,R=new ie(pe),$.c[0]=0;D=J(R,T,0,1),O=A.plus(D.times(U)),O.comparedTo(b)!=1;)A=U,U=O,j=$.plus(D.times(O=j)),$=O,T=R.minus(D.times(O=T)),R=O;return O=J(b.minus(A),U,0,1),$=$.plus(O.times(j)),A=A.plus(O.times(U)),$.s=j.s=me.s,k=k*2,W=J(j,U,k,G).minus(me).abs().comparedTo(J($,A,k,G).minus(me).abs())<1?[j,U]:[$,A],ue=F,W},Y.toNumber=function(){return+Ke(this)},Y.toPrecision=function(b,T){return b!=null&&x(b,1,m),dt(this,b,T,2)},Y.toString=function(b){var T,A=this,U=A.s,O=A.e;return O===null?U?(T="Infinity",U<0&&(T="-"+T)):T="NaN":(b==null?T=O<=H||O>=re?M(E(A.c),O):K(E(A.c),O,"0"):b===10&&xt?(A=He(new ie(A),se+O+1,G),T=K(E(A.c),A.e,"0")):(x(b,2,tt.length,"Base"),T=ee(K(E(A.c),O,"0"),10,b,U,!0)),U<0&&A.c[0]&&(T="-"+T)),T},Y.valueOf=Y.toJSON=function(){return Ke(this)},Y._isBigNumber=!0,Z!=null&&ie.set(Z),ie}a(h,"clone");function _(Z){var J=Z|0;return Z>0||Z===J?J:J-1}a(_,"bitFloor");function E(Z){for(var J,ee,ae=1,Y=Z.length,ze=Z[0]+"";ae<Y;){for(J=Z[ae++]+"",ee=l-J.length;ee--;J="0"+J);ze+=J}for(Y=ze.length;ze.charCodeAt(--Y)===48;);return ze.slice(0,Y+1||1)}a(E,"coeffToString");function P(Z,J){var ee,ae,Y=Z.c,ze=J.c,se=Z.s,G=J.s,H=Z.e,re=J.e;if(!se||!G)return null;if(ee=Y&&!Y[0],ae=ze&&!ze[0],ee||ae)return ee?ae?0:-G:se;if(se!=G)return se;if(ee=se<0,ae=H==re,!Y||!ze)return ae?0:!Y^ee?1:-1;if(!ae)return H>re^ee?1:-1;for(G=(H=Y.length)<(re=ze.length)?H:re,se=0;se<G;se++)if(Y[se]!=ze[se])return Y[se]>ze[se]^ee?1:-1;return H==re?0:H>re^ee?1:-1}a(P,"compare");function x(Z,J,ee,ae){if(Z<J||Z>ee||Z!==r(Z))throw Error(i+(ae||"Argument")+(typeof Z=="number"?Z<J||Z>ee?" out of range: ":" not an integer: ":" not a primitive number: ")+String(Z))}a(x,"intCheck");function z(Z){var J=Z.c.length-1;return _(Z.e/l)==J&&Z.c[J]%2!=0}a(z,"isOdd");function M(Z,J){return(Z.length>1?Z.charAt(0)+"."+Z.slice(1):Z)+(J<0?"e":"e+")+J}a(M,"toExponential");function K(Z,J,ee){var ae,Y;if(J<0){for(Y=ee+".";++J;Y+=ee);Z=Y+Z}else if(ae=Z.length,++J>ae){for(Y=ee,J-=ae;--J;Y+=ee);Z+=Y}else J<ae&&(Z=Z.slice(0,J)+"."+Z.slice(J));return Z}a(K,"toFixedPoint"),e=h(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Uf<"u"&&Uf.exports?Uf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(JC)});var QC=N((Uoe,YC)=>{var KC=jb(),XC=YC.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,n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,r,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function u(p){return n.lastIndex=0,n.test(p)?'"'+p.replace(n,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,_,E=o,P,x=f[p],z=x!=null&&(x instanceof KC||KC.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 z?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+=r,P=[],Object.prototype.toString.apply(x)==="[object Array]"){for(_=x.length,y=0;y<_;y+=1)P[y]=l(y,x)||"null";return h=P.length===0?"[]":o?`[
|
|
32
|
-
`+o+
|
|
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(()=>Tt(kk()))).HttpsProxyAgent,this.#i}static async#c(){let e=typeof window<"u"&&!!window;return this.#a||=e?window.fetch:(await Promise.resolve().then(()=>(A0(),T0))).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=z(Kt=>{"use strict";var K6=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]})),J6=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K6(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.instance=Kt.Gaxios=Kt.GaxiosError=void 0;Kt.request=Y6;var R0=C0();Object.defineProperty(Kt,"Gaxios",{enumerable:!0,get:a(function(){return R0.Gaxios},"get")});var X6=Mb();Object.defineProperty(Kt,"GaxiosError",{enumerable:!0,get:a(function(){return X6.GaxiosError},"get")});J6(Fb(),Kt);Kt.instance=new R0.Gaxios;async function Y6(t){return Kt.instance.request(t)}a(Y6,"request")});var uP=z((O0,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 X,re,ce,ee=se.prototype={constructor:se,toString:null,valueOf:null},Le=new se(1),ue=20,K=4,Z=-7,oe=21,Q=-1e7,pe=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,x){var A,M,R,$,B,C,N,j,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>pe?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,$++);$>pe?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(T(x,2,it.length,"Base"),x==10&&It)return U=new se(b),Je(U,ue+U.e+1,K);if(j=String(b),C=typeof b=="number"){if(b*0!=0)return ce(U,j,C,x);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,x),$=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,x)}C=!1,j=re(j,x,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)>pe)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 x,A;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(x="DECIMAL_PLACES")&&(A=b[x],T(A,0,m,x),ue=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],pe=A[1];else if(T(A,-m,m,x),A)Q=-(pe=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),ze=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:ue,ROUNDING_MODE:K,EXPONENTIAL_AT:[Z,oe],RANGE:[Q,pe],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 x,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(x=(R+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&&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,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,R,$,B,C,N=0,j=[],U=new se(Le);if(A==null?A=ue:T(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=x(),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,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,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(x,"toBaseOut"),function(A,M,R,$,B){var C,N,j,U,J,he,ye,Ze,ut=A.indexOf("."),lt=ue,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(E(he.c),he.e,"0"),10,R,b),Ze.e=Ze.c.length),ye=x(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 x(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(x,"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,St,Ri,Oi,ki,cr,An,Lt=M.s==R.s?1:-1,xt=M.c,tt=R.c;if(!xt||!xt[0]||!tt||!tt[0])return new se(!M.s||!R.s||(xt?tt&&xt[0]==tt[0]:!tt)?NaN:xt&&xt[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]==(xt[U]||0);U++);if(tt[U]>(xt[U]||0)&&j--,Lt<0)lt.push(1),J=!0;else{for(Oi=xt.length,cr=tt.length,U=0,Lt+=2,he=n(C/(tt[0]+1)),he>1&&(tt=b(tt,he,C),xt=b(xt,he,C),cr=tt.length,Oi=xt.length),Ri=cr,Ve=xt.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=x(tt,Ve,cr,Ke),N<0){if(St=Ve[0],cr!=Ke&&(St=St*C+(Ve[1]||0)),he=n(St/ki),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++]=xt[Ri]||0:(Ve=[xt[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,x,A,M){var R,$,B,C,N;if(A==null?A=K:T(A,0,8),!b.c)return b.toString();if(R=b.c[0],B=b.e,x==null)N=E(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),x,A),$=b.e,N=E(b.c),C=N.length,M==1||M==2&&(x<=$||$<=Z)){for(;C<x;N+="0",C++);N=L(N,$)}else if(x-=B+(M===2&&$>B),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&&R?"-"+N:N}a(gt,"format");function _t(b,x){for(var A,M,R=1,$=new se(b[0]);R<b.length;R++)M=new se(b[R]),(!M.s||(A=S($,M))===x||A===0&&$.s===x)&&($=M);return $}a(_t,"maxOrMin");function sr(b,x,A){for(var M=1,R=x.length;!x[--R];x.pop());for(R=x[0];R>=10;R/=10,M++);return(A=M+A*l-1)>pe?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)$/,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(x,"$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,x,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($=x-R,$<0)$+=l,B=x,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||x<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)),x<1||!J[0])return J.length=0,M?(x-=b.e+1,J[0]=he[(l-x%l)%l],b.e=-x||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>pe?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=E(b.c),x=A<=Z||A>=oe?L(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 S(this,new se(b,x))},ee.decimalPlaces=ee.dp=function(b,x){var A,M,R,$=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=((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,x){return X(this,new se(b,x),ue,K)},ee.dividedToIntegerBy=ee.idiv=function(b,x){return X(this,new se(b,x),0,1)},ee.exponentiatedBy=ee.pow=function(b,x){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(x!=null&&(x=new se(x)),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))),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&&J.isInteger()&&x.isInteger(),M&&(J=J.mod(x))}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(x))}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(x))}return M?U:(N&&(U=Le.div(U)),x?U.mod(x):$?Je(U,je,K,B):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 S(this,new se(b,x))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(b,x){return S(this,new se(b,x))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(b,x){return(x=S(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 S(this,new se(b,x))<0},ee.isLessThanOrEqualTo=ee.lte=function(b,x){return(x=S(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,R,$,B=this,C=B.s;if(b=new se(b,x),x=b.s,!C||!x)return new se(NaN);if(C!=x)return b.s=-x,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=-x,b):new se(J?B:NaN);if(!U[0]||!J[0])return J[0]?(b.s=-x,b):new se(U[0]?B:K==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(),x=C;x--;R.push(0));R.reverse()}else for(M=($=(C=U.length)<(x=J.length))?C:x,C=x=0;x<M;x++)if(U[x]!=J[x]){$=U[x]<J[x];break}if($&&(R=U,U=J,J=R,b.s=-b.s),x=(M=J.length)-(A=U.length),x>0)for(;x--;U[A++]=0);for(x=u-1;M>C;){if(U[--M]<J[M]){for(A=M;A&&!U[--A];U[A]=x);--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=K==3?-1:1,b.c=[b.e=0],b)},ee.modulo=ee.mod=function(b,x){var A,M,R=this;return b=new se(b,x),!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,x){var A,M,R,$,B,C,N,j,U,J,he,ye,Ze,ut,lt,Ve=this,Ke=Ve.c,St=(b=new se(b,x)).c;if(!Ke||!St||!Ke[0]||!St[0])return!Ve.s||!b.s||Ke&&!Ke[0]&&!St||St&&!St[0]&&!Ke?b.c=b.e=b.s=null:(b.s*=Ve.s,!Ke||!St?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=St.length,N<J&&(Ze=Ke,Ke=St,St=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=St[R]%lt,ye=St[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,x){var A,M=this,R=M.s;if(b=new se(b,x),x=b.s,!R||!x)return new se(NaN);if(R!=x)return b.s=-x,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,x=N.length,R-x<0&&(A=N,N=C,C=A,x=R),R=0;x;)R=(C[--x]=C[x]+N[x]+R)/u|0,C[x]=u===C[x]?0:C[x]%u;return R&&(C=[R].concat(C),++B),sr(b,C,B)},ee.precision=ee.sd=function(b,x){var A,M,R,$=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(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 T(b,-p,p),this.times("1e"+b)},ee.squareRoot=ee.sqrt=function(){var b,x,A,M,R,$=this,B=$.c,C=$.s,N=$.e,j=ue+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?(x=E(B),(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+j,C<3&&(C=0);;)if(R=A,A=U.times(R.plus(X($,R,j,1))),E(R.c).slice(0,C)===(x=E(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(R,R.e+ue+2,0),R.times(R).eq($))){A=R;break}j+=4,C+=4,M=1}else{(!+x||!+x.slice(1)&&x.charAt(0)=="5")&&(Je(A,A.e+ue+2,1),b=!A.times(A).eq($));break}}return Je(A,A.e+ue+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,R=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=R.toFixed(b,x),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 x,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(x=new se(Le),j=A=new se(Le),M=N=new se(Le),he=E(Ze),$=x.e=he.length-ye.e-1,x.c[0]=f[(B=$%l)<0?l+B:B],b=!b||C.comparedTo(x)>0?$>0?x:j:C,B=pe,pe=1/0,C=new se(he),N.c[0]=0;U=X(C,x,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,x=C.minus(U.times(R=x)),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,$,K).minus(ye).abs().comparedTo(X(N,A,$,K).minus(ye).abs())<1?[j,M]:[N,A],pe=B,J},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,R=A.e;return R===null?M?(x="Infinity",M<0&&(x="-"+x)):x="NaN":(b==null?x=R<=Z||R>=oe?L(E(A.c),R):Y(E(A.c),R,"0"):b===10&&It?(A=Je(new se(A),ue+R+1,K),x=Y(E(A.c),A.e,"0")):(T(b,2,it.length,"Base"),x=re(Y(E(A.c),R,"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 X=H|0;return H>0||H===X?X:X-1}a(_,"bitFloor");function E(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(E,"coeffToString");function S(H,X){var re,ce,ee=H.c,Le=X.c,ue=H.s,K=X.s,Z=H.e,oe=X.e;if(!ue||!K)return null;if(re=ee&&!ee[0],ce=Le&&!Le[0],re||ce)return re?ce?0:-K:ue;if(ue!=K)return ue;if(re=ue<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,ue=0;ue<K;ue++)if(ee[ue]!=Le[ue])return ee[ue]>Le[ue]^re?1:-1;return Z==oe?0:Z>oe^re?1:-1}a(S,"compare");function T(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(T,"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 Jf<"u"&&Jf.exports?Jf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(O0)});var z0=z((Nue,$0)=>{var k0=uP(),N0=$0.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,_,E=o,S,T=f[p],k=T!=null&&(T instanceof k0||k0.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,S=[],Object.prototype.toString.apply(T)==="[object Array]"){for(_=T.length,y=0;y<_;y+=1)S[y]=l(y,T)||"null";return h=S.length===0?"[]":o?`[
|
|
32
|
+
`+o+S.join(`,
|
|
33
33
|
`+o)+`
|
|
34
|
-
`+E+"]":"["+
|
|
35
|
-
`+o+
|
|
34
|
+
`+E+"]":"["+S.join(",")+"]",o=E,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&&S.push(u(m)+(o?": ":":")+h));else Object.keys(T).forEach(function(L){var Y=l(L,T);Y&&S.push(u(L)+(o?": ":":")+Y)});return h=S.length===0?"{}":o?`{
|
|
35
|
+
`+o+S.join(`,
|
|
36
36
|
`+o)+`
|
|
37
|
-
`+E+"}":"{"+
|
|
38
|
-
`,r:"\r",t:" "},i,s=a(function(E){throw{name:"SyntaxError",message:E,at:n,text:i}},"error"),u=a(function(E){return E&&E!==o&&s("Expected '"+E+"' instead of '"+o+"'"),o=i.charAt(n),n+=1,o},"next"),l=a(function(){var E,P="";for(o==="-"&&(P="-",u("-"));o>="0"&&o<="9";)P+=o,u();if(o===".")for(P+=".";u()&&o>="0"&&o<="9";)P+=o;if(o==="e"||o==="E")for(P+=o,u(),(o==="-"||o==="+")&&(P+=o,u());o>="0"&&o<="9";)P+=o,u();if(E=+P,!isFinite(E))s("Bad number");else return Mf==null&&(Mf=jb()),P.length>15?e.storeAsString?P:e.useNativeBigInt?BigInt(P):new Mf(P):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(E):new Mf(E):E},"number"),p=a(function(){var E,P,x="",z;if(o==='"')for(var M=n;u();){if(o==='"')return n-1>M&&(x+=i.substring(M,n-1)),u(),x;if(o==="\\"){if(n-1>M&&(x+=i.substring(M,n-1)),u(),o==="u"){for(z=0,P=0;P<4&&(E=parseInt(u(),16),!!isFinite(E));P+=1)z=z*16+E;x+=String.fromCharCode(z)}else if(typeof r[o]=="string")x+=r[o];else break;M=n}}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 E=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),E;for(;o;){if(E.push(m()),f(),o==="]")return u("]"),E;u(","),f()}}s("Bad array")},"array"),_=a(function(){var E,P=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),P;for(;o;){if(E=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(P,E)&&s('Duplicate key "'+E+'"'),F4.test(E)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():P[E]=m():B4.test(E)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():P[E]=m():P[E]=m(),f(),o==="}")return u("}"),P;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(E,P){var x;return i=E+"",n=0,o=" ",x=m(),f(),o&&s("Syntax error"),typeof P=="function"?a((function z(M,K){var Z,J,ee=M[K];return ee&&typeof ee=="object"&&Object.keys(ee).forEach(function(ae){J=z(ee,ae),J!==void 0?ee[ae]=J:delete ee[ae]}),P.call(M,K,ee)}),"walk")({"":x},""):x}},"json_parse");e0.exports=q4});var o0=N((Foe,jf)=>{var r0=QC().stringify,n0=t0();jf.exports=function(t){return{parse:n0(t),stringify:r0}};jf.exports.parse=n0();jf.exports.stringify=r0});var Lb=N(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.GCE_LINUX_BIOS_PATHS=void 0;Zr.isGoogleCloudServerless=s0;Zr.isGoogleComputeEngineLinux=c0;Zr.isGoogleComputeEngineMACAddress=u0;Zr.isGoogleComputeEngine=l0;Zr.detectGCPResidency=Z4;var i0=require("fs"),a0=require("os");Zr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var V4=/^42:01/;function s0(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(s0,"isGoogleCloudServerless");function c0(){if((0,a0.platform)()!=="linux")return!1;try{(0,i0.statSync)(Zr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,i0.readFileSync)(Zr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(c0,"isGoogleComputeEngineLinux");function u0(){let t=(0,a0.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:n}of e)if(V4.test(n))return!0}return!1}a(u0,"isGoogleComputeEngineMACAddress");function l0(){return c0()||u0()}a(l0,"isGoogleComputeEngine");function Z4(){return s0()||l0()}a(Z4,"detectGCPResidency")});var d0=N(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.Colours=void 0;var Mt=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="")}};Lf.Colours=Mt;Mt.enabled=!1;Mt.reset="";Mt.bright="";Mt.dim="";Mt.red="";Mt.green="";Mt.yellow="";Mt.blue="";Mt.magenta="";Mt.cyan="";Mt.white="";Mt.grey="";Mt.refresh()});var h0=N(et=>{"use strict";var H4=et&&et.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),G4=et&&et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),p0=et&&et.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(n){var o=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[o.length]=r);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var o=t(e),r=0;r<o.length;r++)o[r]!=="default"&&H4(n,e,o[r]);return G4(n,e),n}})();Object.defineProperty(et,"__esModule",{value:!0});et.env=et.DebugLogBackendBase=et.placeholder=et.AdhocDebugLogger=et.LogSeverity=void 0;et.getNodeBackend=Bb;et.getDebugBackend=J4;et.getStructuredBackend=K4;et.setBackend=X4;et.log=m0;var W4=require("events"),fu=p0(require("process")),f0=p0(require("util")),pr=d0(),Hr;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(Hr||(et.LogSeverity=Hr={}));var mu=class extends W4.EventEmitter{static{a(this,"AdhocDebugLogger")}constructor(e,n){super(),this.namespace=e,this.upstream=n,this.func=Object.assign(this.invoke.bind(this),{instance:this,on:a((o,r)=>this.on(o,r),"on")}),this.func.debug=(...o)=>this.invokeSeverity(Hr.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(Hr.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(Hr.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(Hr.ERROR,...o),this.func.sublog=o=>m0(o,this.func)}invoke(e,...n){if(this.upstream)try{this.upstream(e,...n)}catch{}try{this.emit("log",e,n)}catch{}}invokeSeverity(e,...n){this.invoke({severity:e},...n)}};et.AdhocDebugLogger=mu;et.placeholder=new mu("",()=>{}).func;var Oa=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let n=(e=fu.env[et.env.nodeEnables])!==null&&e!==void 0?e:"*";n==="all"&&(n="*"),this.filters=n.split(",")}log(e,n,...o){try{this.filtersSet||(this.setFilters(),this.filtersSet=!0);let r=this.cached.get(e);r||(r=this.makeLogger(e),this.cached.set(e,r)),r(n,...o)}catch(r){console.error(r)}}};et.DebugLogBackendBase=Oa;var Fb=class extends Oa{static{a(this,"NodeBackend")}constructor(){super(...arguments),this.enabledRegexp=/.*/g}isEnabled(e){return this.enabledRegexp.test(e)}makeLogger(e){return this.enabledRegexp.test(e)?(n,...o)=>{var r;let i=`${pr.Colours.green}${e}${pr.Colours.reset}`,s=`${pr.Colours.yellow}${fu.pid}${pr.Colours.reset}`,u;switch(n.severity){case Hr.ERROR:u=`${pr.Colours.red}${n.severity}${pr.Colours.reset}`;break;case Hr.INFO:u=`${pr.Colours.magenta}${n.severity}${pr.Colours.reset}`;break;case Hr.WARNING:u=`${pr.Colours.yellow}${n.severity}${pr.Colours.reset}`;break;default:u=(r=n.severity)!==null&&r!==void 0?r:Hr.DEFAULT;break}let l=f0.formatWithOptions({colors:pr.Colours.enabled},...o),p=Object.assign({},n);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${pr.Colours.grey}${f}${pr.Colours.reset}`:"";console.error("%s [%s|%s] %s%s",s,i,u,l,f?` ${y}`:"")}:()=>{}}setFilters(){let n=this.filters.join(",").replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^");this.enabledRegexp=new RegExp(`^${n}$`,"i")}};function Bb(){return new Fb}a(Bb,"getNodeBackend");var qb=class extends Oa{static{a(this,"DebugBackend")}constructor(e){super(),this.debugPkg=e}makeLogger(e){let n=this.debugPkg(e);return(o,...r)=>{n(r[0],...r.slice(1))}}setFilters(){var e;let n=(e=fu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";fu.env.NODE_DEBUG=`${n}${n?",":""}${this.filters.join(",")}`}};function J4(t){return new qb(t)}a(J4,"getDebugBackend");var Vb=class extends Oa{static{a(this,"StructuredBackend")}constructor(e){var n;super(),this.upstream=(n=e)!==null&&n!==void 0?n:void 0}makeLogger(e){var n;let o=(n=this.upstream)===null||n===void 0?void 0:n.makeLogger(e);return(r,...i)=>{var s;let u=(s=r.severity)!==null&&s!==void 0?s:Hr.INFO,l=Object.assign({severity:u,message:f0.format(...i)},r),p=JSON.stringify(l);o?o(r,p):console.log("%s",p)}}setFilters(){var e;(e=this.upstream)===null||e===void 0||e.setFilters()}};function K4(t){return new Vb(t)}a(K4,"getStructuredBackend");et.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var Zb=new Map,fr;function X4(t){fr=t,Zb.clear()}a(X4,"setBackend");function m0(t,e){if(!fr&&!fu.env[et.env.nodeEnables]||!t)return et.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let n=Zb.get(t);if(n)return n.func;if(fr===null)return et.placeholder;fr===void 0&&(fr=Bb());let o=(()=>{let r;return new mu(t,(s,...u)=>{if(r!==fr){if(fr===null)return;fr===void 0&&(fr=Bb()),r=fr}fr?.log(t,s,...u)})})();return Zb.set(t,o),o.func}a(m0,"log")});var Hb=N(pi=>{"use strict";var Y4=pi&&pi.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),Q4=pi&&pi.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Y4(e,t,n)};Object.defineProperty(pi,"__esModule",{value:!0});Q4(h0(),pi)});var gu=N(ve=>{"use strict";var y0=ve&&ve.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),e6=ve&&ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t6=ve&&ve.__importStar||(function(){var t=a(function(e){return t=Object.getOwnPropertyNames||function(n){var o=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[o.length]=r);return o},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var o=t(e),r=0;r<o.length;r++)o[r]!=="default"&&y0(n,e,o[r]);return e6(n,e),n}})(),r6=ve&&ve.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&y0(e,t,n)};Object.defineProperty(ve,"__esModule",{value:!0});ve.gcpResidencyCache=ve.METADATA_SERVER_DETECTION=ve.HEADERS=ve.HEADER_VALUE=ve.HEADER_NAME=ve.SECONDARY_HOST_ADDRESS=ve.HOST_ADDRESS=ve.BASE_PATH=void 0;ve.instance=c6;ve.project=u6;ve.universe=l6;ve.bulk=d6;ve.isAvailable=f6;ve.resetIsAvailableCache=m6;ve.getGCPResidency=Jb;ve.setGCPResidency=_0;ve.requestTimeout=v0;var Gb=gt(),n6=o0(),o6=Lb(),i6=t6(Hb());ve.BASE_PATH="/computeMetadata/v1";ve.HOST_ADDRESS="http://169.254.169.254";ve.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";ve.HEADER_NAME="Metadata-Flavor";ve.HEADER_VALUE="Google";ve.HEADERS=Object.freeze({[ve.HEADER_NAME]:ve.HEADER_VALUE});var g0=i6.log("gcp-metadata");ve.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 Wb(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||ve.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(ve.BASE_PATH,t).href}a(Wb,"getBaseUrl");function a6(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(a6,"validate");async function hu(t,e={},n=3,o=!1){let r=new Headers(ve.HEADERS),i="",s={};if(typeof t=="object"){let y=t;new Headers(y.headers).forEach((m,h)=>r.set(h,m)),i=y.metadataKey,s=y.params||s,n=y.noResponseRetries||n,o=y.fastFail||o}else i=t;typeof e=="string"?i+=`/${e}`:(a6(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>r.set(m,y)),s=e.params||s);let u=o?s6:Gb.request,l={url:`${Wb()}/${i}`,headers:r,retryConfig:{noResponseRetries:n},params:s,responseType:"text",timeout:v0()};g0.info("instance request %j",l);let p=await u(l);g0.info("instance metadata is %s",p.data);let f=p.headers.get(ve.HEADER_NAME);if(f!==ve.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${ve.HEADER_NAME} header. Expected '${ve.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return n6.parse(p.data)}catch{}return p.data}a(hu,"metadataAccessor");async function s6(t){let e={...t,url:t.url?.toString().replace(Wb(),Wb(ve.SECONDARY_HOST_ADDRESS))},n=(0,Gb.request)(t),o=(0,Gb.request)(e);return Promise.any([n,o])}a(s6,"fastFailMetadataRequest");function c6(t){return hu("instance",t)}a(c6,"instance");function u6(t){return hu("project",t)}a(u6,"project");function l6(t){return hu("universe",t)}a(l6,"universe");async function d6(t){let e={};return await Promise.all(t.map(n=>(async()=>{let o=await hu(n),r=n.metadataKey;e[r]=o})())),e}a(d6,"bulk");function p6(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(p6,"detectGCPAvailableRetries");var Ff;async function f6(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in ve.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(ve.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return Jb();case"ping-only":}}try{return Ff===void 0&&(Ff=hu("instance",void 0,p6(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))),await Ff,!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 n="UNKNOWN";e.code&&(n=e.code.toString()),process.emitWarning(`received unexpected error = ${e.message} code = ${n}`,"MetadataLookupWarning")}return!1}}a(f6,"isAvailable");function m6(){Ff=void 0}a(m6,"resetIsAvailableCache");ve.gcpResidencyCache=null;function Jb(){return ve.gcpResidencyCache===null&&_0(),ve.gcpResidencyCache}a(Jb,"getGCPResidency");function _0(t=null){ve.gcpResidencyCache=t!==null?t:(0,o6.detectGCPResidency)()}a(_0,"setGCPResidency");function v0(){return Jb()?0:3e3}a(v0,"requestTimeout");r6(Lb(),ve)});var E0=N(Bf=>{"use strict";Bf.byteLength=g6;Bf.toByteArray=_6;Bf.fromByteArray=S6;var on=[],Rr=[],h6=typeof Uint8Array<"u"?Uint8Array:Array,Kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(fi=0,b0=Kb.length;fi<b0;++fi)on[fi]=Kb[fi],Rr[Kb.charCodeAt(fi)]=fi;var fi,b0;Rr[45]=62;Rr[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 n=t.indexOf("=");n===-1&&(n=e);var o=n===e?0:4-n%4;return[n,o]}a(S0,"getLens");function g6(t){var e=S0(t),n=e[0],o=e[1];return(n+o)*3/4-o}a(g6,"byteLength");function y6(t,e,n){return(e+n)*3/4-n}a(y6,"_byteLength");function _6(t){var e,n=S0(t),o=n[0],r=n[1],i=new h6(y6(t,o,r)),s=0,u=r>0?o-4:o,l;for(l=0;l<u;l+=4)e=Rr[t.charCodeAt(l)]<<18|Rr[t.charCodeAt(l+1)]<<12|Rr[t.charCodeAt(l+2)]<<6|Rr[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return r===2&&(e=Rr[t.charCodeAt(l)]<<2|Rr[t.charCodeAt(l+1)]>>4,i[s++]=e&255),r===1&&(e=Rr[t.charCodeAt(l)]<<10|Rr[t.charCodeAt(l+1)]<<4|Rr[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}a(_6,"toByteArray");function v6(t){return on[t>>18&63]+on[t>>12&63]+on[t>>6&63]+on[t&63]}a(v6,"tripletToBase64");function b6(t,e,n){for(var o,r=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),r.push(v6(o));return r.join("")}a(b6,"encodeChunk");function S6(t){for(var e,n=t.length,o=n%3,r=[],i=16383,s=0,u=n-o;s<u;s+=i)r.push(b6(t,s,s+i>u?u:s+i));return o===1?(e=t[n-1],r.push(on[e>>2]+on[e<<4&63]+"==")):o===2&&(e=(t[n-2]<<8)+t[n-1],r.push(on[e>>10]+on[e>>4&63]+on[e<<2&63]+"=")),r.join("")}a(S6,"fromByteArray")});var Yb=N(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.fromArrayBufferToHex=E6;function E6(t){return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}a(E6,"fromArrayBufferToHex")});var P0=N(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.BrowserCrypto=void 0;var Ca=E0(),P6=Yb(),Qb=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 n=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",n);return Ca.fromByteArray(new Uint8Array(o))}randomBytesBase64(e){let n=new Uint8Array(e);return window.crypto.getRandomValues(n),Ca.fromByteArray(n)}static padBase64(e){for(;e.length%4!==0;)e+="=";return e}async verify(e,n,o){let r={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},i=new TextEncoder().encode(n),s=Ca.toByteArray(t.padBase64(o)),u=await window.crypto.subtle.importKey("jwk",e,r,!0,["verify"]);return await window.crypto.subtle.verify(r,u,s,i)}async sign(e,n){let o={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},r=new TextEncoder().encode(n),i=await window.crypto.subtle.importKey("jwk",e,o,!0,["sign"]),s=await window.crypto.subtle.sign(o,i,r);return Ca.fromByteArray(new Uint8Array(s))}decodeBase64StringUtf8(e){let n=Ca.toByteArray(t.padBase64(e));return new TextDecoder().decode(n)}encodeBase64StringUtf8(e){let n=new TextEncoder().encode(e);return Ca.fromByteArray(n)}async sha256DigestHex(e){let n=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",n);return(0,P6.fromArrayBufferToHex)(o)}async signWithHmacSha256(e,n){let o=typeof e=="string"?e:String.fromCharCode(...new Uint16Array(e)),r=new TextEncoder,i=await window.crypto.subtle.importKey("raw",r.encode(o),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return window.crypto.subtle.sign("HMAC",i,r.encode(n))}};qf.BrowserCrypto=Qb});var x0=N(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.NodeCrypto=void 0;var $a=require("crypto"),eS=class{static{a(this,"NodeCrypto")}async sha256DigestBase64(e){return $a.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return $a.randomBytes(e).toString("base64")}async verify(e,n,o){let r=$a.createVerify("RSA-SHA256");return r.update(n),r.end(),r.verify(e,o,"base64")}async sign(e,n){let o=$a.createSign("RSA-SHA256");return o.update(n),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 $a.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,n){let o=typeof e=="string"?e:T6(e);return x6($a.createHmac("sha256",o).update(n).digest())}};Vf.NodeCrypto=eS;function x6(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(x6,"toArrayBuffer");function T6(t){return Buffer.from(t)}a(T6,"toBuffer")});var yu=N(zn=>{"use strict";var A6=zn&&zn.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),w6=zn&&zn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&A6(e,t,n)};Object.defineProperty(zn,"__esModule",{value:!0});zn.createCrypto=O6;zn.hasBrowserCrypto=T0;var I6=P0(),R6=x0();w6(Yb(),zn);function O6(){return T0()?new I6.BrowserCrypto:new R6.NodeCrypto}a(O6,"createCrypto");function T0(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(T0,"hasBrowserCrypto")});var ka=N((tS,w0)=>{var Zf=require("buffer"),an=Zf.Buffer;function A0(t,e){for(var n in t)e[n]=t[n]}a(A0,"copyProps");an.from&&an.alloc&&an.allocUnsafe&&an.allocUnsafeSlow?w0.exports=Zf:(A0(Zf,tS),tS.Buffer=mi);function mi(t,e,n){return an(t,e,n)}a(mi,"SafeBuffer");mi.prototype=Object.create(an.prototype);A0(an,mi);mi.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return an(t,e,n)};mi.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var o=an(t);return e!==void 0?typeof n=="string"?o.fill(e,n):o.fill(e):o.fill(0),o};mi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return an(t)};mi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Zf.SlowBuffer(t)}});var R0=N((uie,I0)=>{"use strict";function rS(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(rS,"getParamSize");var C6={ES256:rS(256),ES384:rS(384),ES512:rS(521)};function $6(t){var e=C6[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a($6,"getParamBytesForAlg");I0.exports=$6});var nS=N((die,z0)=>{"use strict";var Hf=ka().Buffer,C0=R0(),Gf=128,$0=0,k6=32,N6=16,z6=2,k0=N6|k6|$0<<6,Wf=z6|$0<<6;function D6(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(D6,"base64Url");function N0(t){if(Hf.isBuffer(t))return t;if(typeof t=="string")return Hf.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}a(N0,"signatureAsBuffer");function U6(t,e){t=N0(t);var n=C0(e),o=n+1,r=t.length,i=0;if(t[i++]!==k0)throw new Error('Could not find expected "seq"');var s=t[i++];if(s===(Gf|1)&&(s=t[i++]),r-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(r-i)+'" remaining');if(t[i++]!==Wf)throw new Error('Could not find expected "int" for "r"');var u=t[i++];if(r-i-2<u)throw new Error('"r" specified length of "'+u+'", only "'+(r-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++]!==Wf)throw new Error('Could not find expected "int" for "s"');var p=t[i++];if(r-i!==p)throw new Error('"s" specified length of "'+p+'", expected "'+(r-i)+'"');if(o<p)throw new Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var f=i;if(i+=p,i!==r)throw new Error('Expected to consume entire buffer, but "'+(r-i)+'" bytes remain');var y=n-u,m=n-p,h=Hf.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=n;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=D6(h),h}a(U6,"derToJose");function O0(t,e,n){for(var o=0;e+o<n&&t[e+o]===0;)++o;var r=t[e+o]>=Gf;return r&&--o,o}a(O0,"countPadding");function M6(t,e){t=N0(t);var n=C0(e),o=t.length;if(o!==n*2)throw new TypeError('"'+e+'" signatures must be "'+n*2+'" bytes, saw "'+o+'"');var r=O0(t,0,n),i=O0(t,n,t.length),s=n-r,u=n-i,l=2+s+1+1+u,p=l<Gf,f=Hf.allocUnsafe((p?2:3)+l),y=0;return f[y++]=k0,p?f[y++]=l:(f[y++]=Gf|1,f[y++]=l&255),f[y++]=Wf,f[y++]=s,r<0?(f[y++]=0,y+=t.copy(f,y,0,n)):y+=t.copy(f,y,r,n),f[y++]=Wf,f[y++]=u,i<0?(f[y++]=0,t.copy(f,y,n)):t.copy(f,y,n+i),f}a(M6,"joseToDer");z0.exports={derToJose:U6,joseToDer:M6}});var Gr=N(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.LRUCache=void 0;Dn.snakeToCamel=U0;Dn.originalOrCamelOptions=B6;Dn.removeUndefinedValuesInObject=q6;Dn.isValidFile=V6;Dn.getWellKnownCertificateConfigFileLocation=Z6;var j6=require("fs"),L6=require("os"),oS=require("path"),F6="certificate_config.json",D0="gcloud";function U0(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a(U0,"snakeToCamel");function B6(t){function e(n){let o=t||{};return o[n]??o[U0(n)]}return a(e,"get"),{get:e}}a(B6,"originalOrCamelOptions");var iS=class{static{a(this,"LRUCache")}capacity;#e=new Map;maxAge;constructor(e){this.capacity=e.capacity,this.maxAge=e.maxAge}#t(e,n){this.#e.delete(e),this.#e.set(e,{value:n,lastAccessed:Date.now()})}set(e,n){this.#t(e,n),this.#r()}get(e){let n=this.#e.get(e);if(n)return this.#t(e,n.value),this.#r(),n.value}#r(){let e=this.maxAge?Date.now()-this.maxAge:0,n=this.#e.entries().next();for(;!n.done&&(this.#e.size>this.capacity||n.value[1].lastAccessed<e);)this.#e.delete(n.value[0]),n=this.#e.entries().next()}};Dn.LRUCache=iS;function q6(t){return Object.entries(t).forEach(([e,n])=>{(n===void 0||n==="undefined")&&delete t[e]}),t}a(q6,"removeUndefinedValuesInObject");async function V6(t){try{return(await j6.promises.lstat(t)).isFile()}catch{return!1}}a(V6,"isValidFile");function Z6(){let t=process.env.CLOUDSDK_CONFIG||(H6()?oS.join(process.env.APPDATA||"",D0):oS.join(process.env.HOME||"",".config",D0));return oS.join(t,F6)}a(Z6,"getWellKnownCertificateConfigFileLocation");function H6(){return L6.platform().startsWith("win")}a(H6,"_isWindows")});var M0=N((hie,G6)=>{G6.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 aS=N(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.USER_AGENT=xo.PRODUCT_NAME=xo.pkg=void 0;var j0=M0();xo.pkg=j0;var L0="google-api-nodejs-client";xo.PRODUCT_NAME=L0;var W6=`${L0}/${j0.version}`;xo.USER_AGENT=W6});var mr=N(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.AuthClient=Wr.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=Wr.DEFAULT_UNIVERSE=void 0;var J6=require("events"),sS=gt(),K6=Gr(),X6=Hb(),cS=aS();Wr.DEFAULT_UNIVERSE="googleapis.com";Wr.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var uS=class t extends J6.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=Wr.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=Wr.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let n=(0,K6.originalOrCamelOptions)(e);this.apiKey=e.apiKey,this.projectId=n.get("project_id")??null,this.quotaProjectId=n.get("quota_project_id"),this.credentials=n.get("credentials")??{},this.universeDomain=n.get("universe_domain")??Wr.DEFAULT_UNIVERSE,this.transporter=e.transporter??new sS.Gaxios(e.transporterOptions),n.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 n=e[0],o=e[1],r,i=new Headers;return typeof n=="string"?r=new URL(n):n instanceof URL?r=n:n&&n.url&&(r=new URL(n.url)),n&&typeof n=="object"&&"headers"in n&&sS.Gaxios.mergeHeaders(i,n.headers),o&&sS.Gaxios.mergeHeaders(i,new Headers(o.headers)),typeof n=="object"&&!(n instanceof URL)?this.request({...o,...n,headers:i,url:r}):this.request({...o,headers:i,url:r})}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,n){let o=n.get("x-goog-user-project"),r=n.get("authorization");return o&&e.set("x-goog-user-project",o),r&&e.set("authorization",r),e}static log=(0,X6.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 n=e.headers.get("User-Agent");n?n.includes(`${cS.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${n} ${cS.USER_AGENT}`):e.headers.set("User-Agent",cS.USER_AGENT);try{let o=e,r=o[t.RequestMethodNameSymbol],i=`${Math.floor(Math.random()*1e3)}`;o[t.RequestLogIdSymbol]=i;let s={url:e.url,headers:e.headers};r?t.log.info("%s [%s] request %j",r,i,s):t.log.info("[%s] request %j",i,s)}catch{}return e},"resolved")};static DEFAULT_RESPONSE_INTERCEPTOR={resolved:a(async e=>{try{let n=e.config,o=n[t.RequestMethodNameSymbol],r=n[t.RequestLogIdSymbol];o?t.log.info("%s [%s] response %j",o,r,e.data):t.log.info("[%s] response %j",r,e.data)}catch{}return e},"resolved"),rejected:a(async e=>{try{let n=e.config,o=n[t.RequestMethodNameSymbol],r=n[t.RequestLogIdSymbol];o?t.log.info("%s [%s] error %j",o,r,e.response?.data):t.log.error("[%s] error %j",r,e.response?.data)}catch{}throw e},"rejected")};static setMethodName(e,n){try{let o=e;o[t.RequestMethodNameSymbol]=n}catch{}}static get RETRY_CONFIG(){return{retry:!0,retryConfig:{httpMethodsToRetry:["GET","PUT","POST","HEAD","OPTIONS","DELETE"]}}}};Wr.AuthClient=uS});var dS=N(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.LoginTicket=void 0;var lS=class{static{a(this,"LoginTicket")}envelope;payload;constructor(e,n){this.envelope=e,this.payload=n}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()}}};Jf.LoginTicket=lS});var hi=N(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.OAuth2Client=sn.ClientAuthentication=sn.CertificateFormat=sn.CodeChallengeMethod=void 0;var F0=gt(),Y6=require("querystring"),Q6=require("stream"),eq=nS(),B0=Gr(),pS=yu(),Na=mr(),tq=dS(),q0;(function(t){t.Plain="plain",t.S256="S256"})(q0||(sn.CodeChallengeMethod=q0={}));var Un;(function(t){t.PEM="PEM",t.JWK="JWK"})(Un||(sn.CertificateFormat=Un={}));var _u;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(_u||(sn.ClientAuthentication=_u={}));var fS=class t extends Na.AuthClient{static{a(this,"OAuth2Client")}redirectUri;certificateCache={};certificateExpiry=null;certificateCacheFormat=Un.PEM;refreshTokenPromises=new Map;endpoints;issuers;clientAuthentication;_clientId;_clientSecret;refreshHandler;constructor(e={},n,o){super(typeof e=="object"?e:{}),typeof e!="object"&&(e={clientId:e,clientSecret:n,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||_u.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()+"?"+Y6.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,pS.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,n){let o=typeof e=="string"?{code:e}:e;if(n)this.getTokenAsync(o).then(r=>n(null,r.tokens,r.res),r=>n(r,null,r.response));else return this.getTokenAsync(o)}async getTokenAsync(e){let n=this.endpoints.oauth2TokenUrl.toString(),o=new Headers,r={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===_u.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===_u.ClientSecretPost&&(r.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:n,data:new URLSearchParams((0,B0.removeUndefinedValuesInObject)(r)),headers:o};Na.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 n=this.refreshTokenNoCache(e).then(o=>(this.refreshTokenPromises.delete(e),o),o=>{throw this.refreshTokenPromises.delete(e),o});return this.refreshTokenPromises.set(e,n),n}async refreshTokenNoCache(e){if(!e)throw new Error("No refresh token is set.");let n=this.endpoints.oauth2TokenUrl.toString(),o={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"},r;try{let s={...t.RETRY_CONFIG,method:"POST",url:n,data:new URLSearchParams((0,B0.removeUndefinedValuesInObject)(o))};Na.AuthClient.setMethodName(s,"refreshTokenNoCache"),r=await this.transporter.request(s)}catch(s){throw s instanceof F0.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=r.data;return r.data&&r.data.expires_in&&(i.expiry_date=new Date().getTime()+r.data.expires_in*1e3,delete i.expires_in),this.emit("tokens",i),{tokens:i,res:r}}refreshAccessToken(e){if(e)this.refreshAccessTokenAsync().then(n=>e(null,n.credentials,n.res),e);else return this.refreshAccessTokenAsync()}async refreshAccessTokenAsync(){let e=await this.refreshToken(this.credentials.refresh_token),n=e.tokens;return n.refresh_token=this.credentials.refresh_token,this.credentials=n,{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e)this.getAccessTokenAsync().then(n=>e(null,n.token,n.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 n=await this.refreshAccessTokenAsync();if(!n.credentials||n.credentials&&!n.credentials.access_token)throw new Error("Could not refresh access token.");return{token:n.credentials.access_token,res:n.res}}else return{token:this.credentials.access_token}}async getRequestHeaders(e){return(await this.getRequestMetadataAsync(e)).headers}async getRequestMetadataAsync(e){let n=this.credentials;if(!n.access_token&&!n.refresh_token&&!this.apiKey&&!this.refreshHandler)throw new Error("No access, refresh token, API key or refresh handler callback is set.");if(n.access_token&&!this.isTokenExpiring()){n.token_type=n.token_type||"Bearer";let u=new Headers({authorization:n.token_type+" "+n.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,r=null;try{o=await this.refreshToken(n.refresh_token),r=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",r.refresh_token=i.refresh_token,this.credentials=r;let s=new Headers({authorization:i.token_type+" "+r.access_token});return{headers:this.addSharedMetadataHeaders(s),res:o.res}}static getRevokeTokenUrl(e){return new t().getRevokeTokenURL(e).toString()}getRevokeTokenURL(e){let n=new URL(this.endpoints.oauth2RevokeUrl);return n.searchParams.append("token",e),n}revokeToken(e,n){let o={...t.RETRY_CONFIG,url:this.getRevokeTokenURL(e).toString(),method:"POST"};if(Na.AuthClient.setMethodName(o,"revokeToken"),n)this.transporter.request(o).then(r=>n(null,r),n);else return this.transporter.request(o)}revokeCredentials(e){if(e)this.revokeCredentialsAsync().then(n=>e(null,n),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,n){if(n)this.requestAsync(e).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(e)}async requestAsync(e,n=!1){try{let o=await this.getRequestMetadataAsync();return e.headers=F0.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 r=o.response;if(r){let i=r.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=r.config.data instanceof Q6.Readable,p=i===401||i===403;if(!n&&p&&!l&&s)return await this.refreshAccessTokenAsync(),this.requestAsync(e,!0);if(!n&&p&&!l&&u){let f=await this.processAndValidateRefreshHandler();return f?.access_token&&this.setCredentials(f),this.requestAsync(e,!0)}}throw o}}verifyIdToken(e,n){if(n&&typeof n!="function")throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.");if(n)this.verifyIdTokenAsync(e).then(o=>n(null,o),n);else return this.verifyIdTokenAsync(e)}async verifyIdTokenAsync(e){if(!e.idToken)throw new Error("The verifyIdToken method requires an ID Token");let n=await this.getFederatedSignonCertsAsync();return await this.verifySignedJwtWithCertsAsync(e.idToken,n.certs,e.audience,this.issuers,e.maxExpiry)}async getTokenInfo(e){let{data:n}=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()+n.expires_in*1e3,scopes:n.scope.split(" ")},n);return delete o.expires_in,delete o.scope,o}getFederatedSignonCerts(e){if(e)this.getFederatedSignonCertsAsync().then(n=>e(null,n.certs,n.res),e);else return this.getFederatedSignonCertsAsync()}async getFederatedSignonCertsAsync(){let e=new Date().getTime(),n=(0,pS.hasBrowserCrypto)()?Un.JWK:Un.PEM;if(this.certificateExpiry&&e<this.certificateExpiry.getTime()&&this.certificateCacheFormat===n)return{certs:this.certificateCache,format:n};let o,r;switch(n){case Un.PEM:r=this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();break;case Un.JWK:r=this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();break;default:throw new Error(`Unsupported certificate format ${n}`)}try{let p={...t.RETRY_CONFIG,url:r};Na.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(n){case Un.PEM:u=o.data;break;case Un.JWK:for(let p of o.data.keys)u[p.kid]=p;break;default:throw new Error(`Unsupported certificate format ${n}`)}let l=new Date;return this.certificateExpiry=s===-1?null:new Date(l.getTime()+s),this.certificateCache=u,this.certificateCacheFormat=n,{certs:u,format:n,res:o}}getIapPublicKeys(e){if(e)this.getIapPublicKeysAsync().then(n=>e(null,n.pubkeys,n.res),e);else return this.getIapPublicKeysAsync()}async getIapPublicKeysAsync(){let e,n=this.endpoints.oauth2IapPublicKeyUrl.toString();try{let o={...t.RETRY_CONFIG,url:n};Na.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,n,o,r,i){let s=(0,pS.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(M){throw M instanceof Error&&(M.message=`Can't parse token envelope: ${u[0]}': ${M.message}`),M}if(!f)throw new Error("Can't parse token envelope: "+u[0]);try{y=JSON.parse(s.decodeBase64StringUtf8(u[1]))}catch(M){throw M instanceof Error&&(M.message=`Can't parse token payload '${u[0]}`),M}if(!y)throw new Error("Can't parse token payload: "+u[1]);if(!Object.prototype.hasOwnProperty.call(n,f.kid))throw new Error("No pem found for envelope: "+JSON.stringify(f));let m=n[f.kid];if(f.alg==="ES256"&&(p=eq.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 E=Number(y.exp);if(isNaN(E))throw new Error("exp field using invalid format");let P=new Date().getTime()/1e3;if(E>=P+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let x=_-t.CLOCK_SKEW_SECS_,z=E+t.CLOCK_SKEW_SECS_;if(P<x)throw new Error("Token used too early, "+P+" < "+x+": "+JSON.stringify(y));if(P>z)throw new Error("Token used too late, "+P+" > "+z+": "+JSON.stringify(y));if(r&&r.indexOf(y.iss)<0)throw new Error("Invalid issuer, expected one of ["+r+"], but got "+y.iss);if(typeof o<"u"&&o!==null){let M=y.aud,K=!1;if(o.constructor===Array?K=o.indexOf(M)>-1:K=M===o,!K)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new tq.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}};sn.OAuth2Client=fS});var hS=N(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.Compute=void 0;var rq=gt(),V0=gu(),nq=hi(),mS=class extends nq.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`,n;try{let r={property:e};this.scopes.length>0&&(r.params={scopes:this.scopes.join(",")}),n=await V0.instance(r)}catch(r){throw r instanceof rq.GaxiosError&&(r.message=`Could not refresh access token: ${r.message}`,this.wrapError(r)),r}let o=n;return n&&n.expires_in&&(o.expiry_date=new Date().getTime()+n.expires_in*1e3,delete o.expires_in),this.emit("tokens",o),{tokens:o,res:null}}async fetchIdToken(e){let n=`service-accounts/${this.serviceAccountEmail}/identity?format=full&audience=${e}`,o;try{let r={property:n};o=await V0.instance(r)}catch(r){throw r instanceof Error&&(r.message=`Could not fetch ID token: ${r.message}`),r}return o}wrapError(e){let n=e.response;n&&n.status&&(e.status=n.status,n.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:n.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))}};Kf.Compute=mS});var yS=N(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.IdTokenClient=void 0;var oq=hi(),gS=class extends oq.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 n=await this.idTokenProvider.fetchIdToken(this.targetAudience);this.credentials={id_token:n,expiry_date:this.getIdTokenExpiryDate(n)}}return{headers:new Headers({authorization:"Bearer "+this.credentials.id_token})}}getIdTokenExpiryDate(e){let n=e.split(".")[1];if(n)return JSON.parse(Buffer.from(n,"base64").toString("ascii")).exp*1e3}};Xf.IdTokenClient=gS});var _S=N(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.GCPEnv=void 0;za.clear=iq;za.getEnv=aq;var Z0=gu(),cn;(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"})(cn||(za.GCPEnv=cn={}));var vu;function iq(){vu=void 0}a(iq,"clear");async function aq(){return vu||(vu=sq(),vu)}a(aq,"getEnv");async function sq(){let t=cn.NONE;return cq()?t=cn.APP_ENGINE:uq()?t=cn.CLOUD_FUNCTIONS:await fq()?await pq()?t=cn.KUBERNETES_ENGINE:lq()?t=cn.CLOUD_RUN:dq()?t=cn.CLOUD_RUN_JOBS:t=cn.COMPUTE_ENGINE:t=cn.NONE,t}a(sq,"getEnvMemoized");function cq(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(cq,"isAppEngine");function uq(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(uq,"isCloudFunction");function lq(){return!!process.env.K_CONFIGURATION}a(lq,"isCloudRun");function dq(){return!!process.env.CLOUD_RUN_JOB}a(dq,"isCloudRunJob");async function pq(){try{return await Z0.instance("attributes/cluster-name"),!0}catch{return!1}}a(pq,"isKubernetesEngine");async function fq(){return Z0.isAvailable()}a(fq,"isComputeEngine")});var vS=N((Rie,H0)=>{var Yf=ka().Buffer,mq=require("stream"),hq=require("util");function Qf(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=Yf.alloc(0),this;if(typeof t.pipe=="function")return this.buffer=Yf.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(Qf,"DataStream");hq.inherits(Qf,mq);Qf.prototype.write=a(function(e){this.buffer=Yf.concat([this.buffer,Yf.from(e)]),this.emit("data",e)},"write");Qf.prototype.end=a(function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},"end");H0.exports=Qf});var W0=N((Cie,G0)=>{"use strict";var bu=require("buffer").Buffer,bS=require("buffer").SlowBuffer;G0.exports=em;function em(t,e){if(!bu.isBuffer(t)||!bu.isBuffer(e)||t.length!==e.length)return!1;for(var n=0,o=0;o<t.length;o++)n|=t[o]^e[o];return n===0}a(em,"bufferEq");em.install=function(){bu.prototype.equal=bS.prototype.equal=a(function(e){return em(this,e)},"equal")};var gq=bu.prototype.equal,yq=bS.prototype.equal;em.restore=function(){bu.prototype.equal=gq,bS.prototype.equal=yq}});var xS=N((kie,n$)=>{var Ua=ka().Buffer,Or=require("crypto"),K0=nS(),J0=require("util"),_q=`"%s" is not a valid algorithm.
|
|
37
|
+
`+E+"}":"{"+S.join(",")+"}",o=E,h}}a(l,"str"),typeof N0.stringify!="function"&&(N0.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 U0=z((zue,D0)=>{var Xf=null,Q6=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,eG=/(?: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)/,tG=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(E){throw{name:"SyntaxError",message:E,at:r,text:i}},"error"),u=a(function(E){return E&&E!==o&&s("Expected '"+E+"' instead of '"+o+"'"),o=i.charAt(r),r+=1,o},"next"),l=a(function(){var E,S="";for(o==="-"&&(S="-",u("-"));o>="0"&&o<="9";)S+=o,u();if(o===".")for(S+=".";u()&&o>="0"&&o<="9";)S+=o;if(o==="e"||o==="E")for(S+=o,u(),(o==="-"||o==="+")&&(S+=o,u());o>="0"&&o<="9";)S+=o,u();if(E=+S,!isFinite(E))s("Bad number");else return Xf==null&&(Xf=uP()),S.length>15?e.storeAsString?S:e.useNativeBigInt?BigInt(S):new Xf(S):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(E):new Xf(E):E},"number"),p=a(function(){var E,S,T="",k;if(o==='"')for(var L=r;u();){if(o==='"')return r-1>L&&(T+=i.substring(L,r-1)),u(),T;if(o==="\\"){if(r-1>L&&(T+=i.substring(L,r-1)),u(),o==="u"){for(k=0,S=0;S<4&&(E=parseInt(u(),16),!!isFinite(E));S+=1)k=k*16+E;T+=String.fromCharCode(k)}else if(typeof n[o]=="string")T+=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 E=[];if(o==="["){if(u("["),f(),o==="]")return u("]"),E;for(;o;){if(E.push(m()),f(),o==="]")return u("]"),E;u(","),f()}}s("Bad array")},"array"),_=a(function(){var E,S=Object.create(null);if(o==="{"){if(u("{"),f(),o==="}")return u("}"),S;for(;o;){if(E=p(),f(),u(":"),e.strict===!0&&Object.hasOwnProperty.call(S,E)&&s('Duplicate key "'+E+'"'),Q6.test(E)===!0?e.protoAction==="error"?s("Object contains forbidden prototype property"):e.protoAction==="ignore"?m():S[E]=m():eG.test(E)===!0?e.constructorAction==="error"?s("Object contains forbidden constructor property"):e.constructorAction==="ignore"?m():S[E]=m():S[E]=m(),f(),o==="}")return u("}"),S;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(E,S){var T;return i=E+"",r=0,o=" ",T=m(),f(),o&&s("Syntax error"),typeof S=="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]}),S.call(L,Y,re)}),"walk")({"":T},""):T}},"json_parse");D0.exports=tG});var j0=z((Uue,Yf)=>{var M0=z0().stringify,L0=U0();Yf.exports=function(t){return{parse:L0(t),stringify:M0}};Yf.exports.parse=L0();Yf.exports.stringify=M0});var lP=z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.GCE_LINUX_BIOS_PATHS=void 0;Qr.isGoogleCloudServerless=q0;Qr.isGoogleComputeEngineLinux=G0;Qr.isGoogleComputeEngineMACAddress=V0;Qr.isGoogleComputeEngine=H0;Qr.detectGCPResidency=nG;var F0=require("fs"),B0=require("os");Qr.GCE_LINUX_BIOS_PATHS={BIOS_DATE:"/sys/class/dmi/id/bios_date",BIOS_VENDOR:"/sys/class/dmi/id/bios_vendor"};var rG=/^42:01/;function q0(){return!!(process.env.CLOUD_RUN_JOB||process.env.FUNCTION_NAME||process.env.K_SERVICE)}a(q0,"isGoogleCloudServerless");function G0(){if((0,B0.platform)()!=="linux")return!1;try{(0,F0.statSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_DATE);let t=(0,F0.readFileSync)(Qr.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR,"utf8");return/Google/.test(t)}catch{return!1}}a(G0,"isGoogleComputeEngineLinux");function V0(){let t=(0,B0.networkInterfaces)();for(let e of Object.values(t))if(e){for(let{mac:r}of e)if(rG.test(r))return!0}return!1}a(V0,"isGoogleComputeEngineMACAddress");function H0(){return G0()||V0()}a(H0,"isGoogleComputeEngine");function nG(){return q0()||H0()}a(nG,"detectGCPResidency")});var Z0=z(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Colours=void 0;var qt=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=qt;qt.enabled=!1;qt.reset="";qt.bright="";qt.dim="";qt.red="";qt.green="";qt.yellow="";qt.blue="";qt.magenta="";qt.cyan="";qt.white="";qt.grey="";qt.refresh()});var X0=z(ot=>{"use strict";var oG=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]})),iG=ot&&ot.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W0=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"&&oG(r,e,o[n]);return iG(r,e),r}})();Object.defineProperty(ot,"__esModule",{value:!0});ot.env=ot.DebugLogBackendBase=ot.placeholder=ot.AdhocDebugLogger=ot.LogSeverity=void 0;ot.getNodeBackend=pP;ot.getDebugBackend=sG;ot.getStructuredBackend=cG;ot.setBackend=uG;ot.log=J0;var aG=require("events"),zu=W0(require("process")),K0=W0(require("util")),vr=Z0(),en;(function(t){t.DEFAULT="DEFAULT",t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR"})(en||(ot.LogSeverity=en={}));var Du=class extends aG.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(en.DEBUG,...o),this.func.info=(...o)=>this.invokeSeverity(en.INFO,...o),this.func.warn=(...o)=>this.invokeSeverity(en.WARNING,...o),this.func.error=(...o)=>this.invokeSeverity(en.ERROR,...o),this.func.sublog=o=>J0(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=Du;ot.placeholder=new Du("",()=>{}).func;var ja=class{static{a(this,"DebugLogBackendBase")}constructor(){var e;this.cached=new Map,this.filters=[],this.filtersSet=!1;let r=(e=zu.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 dP=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=`${vr.Colours.green}${e}${vr.Colours.reset}`,s=`${vr.Colours.yellow}${zu.pid}${vr.Colours.reset}`,u;switch(r.severity){case en.ERROR:u=`${vr.Colours.red}${r.severity}${vr.Colours.reset}`;break;case en.INFO:u=`${vr.Colours.magenta}${r.severity}${vr.Colours.reset}`;break;case en.WARNING:u=`${vr.Colours.yellow}${r.severity}${vr.Colours.reset}`;break;default:u=(n=r.severity)!==null&&n!==void 0?n:en.DEFAULT;break}let l=K0.formatWithOptions({colors:vr.Colours.enabled},...o),p=Object.assign({},r);delete p.severity;let f=Object.getOwnPropertyNames(p).length?JSON.stringify(p):"",y=f?`${vr.Colours.grey}${f}${vr.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 pP(){return new dP}a(pP,"getNodeBackend");var fP=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=zu.env.NODE_DEBUG)!==null&&e!==void 0?e:"";zu.env.NODE_DEBUG=`${r}${r?",":""}${this.filters.join(",")}`}};function sG(t){return new fP(t)}a(sG,"getDebugBackend");var mP=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:en.INFO,l=Object.assign({severity:u,message:K0.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 cG(t){return new mP(t)}a(cG,"getStructuredBackend");ot.env={nodeEnables:"GOOGLE_SDK_NODE_LOGGING"};var hP=new Map,br;function uG(t){br=t,hP.clear()}a(uG,"setBackend");function J0(t,e){if(!br&&!zu.env[ot.env.nodeEnables]||!t)return ot.placeholder;e&&(t=`${e.instance.namespace}:${t}`);let r=hP.get(t);if(r)return r.func;if(br===null)return ot.placeholder;br===void 0&&(br=pP());let o=(()=>{let n;return new Du(t,(s,...u)=>{if(n!==br){if(br===null)return;br===void 0&&(br=pP()),n=br}br?.log(t,s,...u)})})();return hP.set(t,o),o.func}a(J0,"log")});var gP=z(Ei=>{"use strict";var lG=Ei&&Ei.__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]})),dG=Ei&&Ei.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lG(e,t,r)};Object.defineProperty(Ei,"__esModule",{value:!0});dG(X0(),Ei)});var Mu=z(Ee=>{"use strict";var Q0=Ee&&Ee.__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]})),pG=Ee&&Ee.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fG=Ee&&Ee.__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"&&Q0(r,e,o[n]);return pG(r,e),r}})(),mG=Ee&&Ee.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Q0(e,t,r)};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.gcpResidencyCache=Ee.METADATA_SERVER_DETECTION=Ee.HEADERS=Ee.HEADER_VALUE=Ee.HEADER_NAME=Ee.SECONDARY_HOST_ADDRESS=Ee.HOST_ADDRESS=Ee.BASE_PATH=void 0;Ee.instance=bG;Ee.project=PG;Ee.universe=EG;Ee.bulk=SG;Ee.isAvailable=TG;Ee.resetIsAvailableCache=AG;Ee.getGCPResidency=vP;Ee.setGCPResidency=eN;Ee.requestTimeout=tN;var yP=bt(),hG=j0(),gG=lP(),yG=fG(gP());Ee.BASE_PATH="/computeMetadata/v1";Ee.HOST_ADDRESS="http://169.254.169.254";Ee.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";Ee.HEADER_NAME="Metadata-Flavor";Ee.HEADER_VALUE="Google";Ee.HEADERS=Object.freeze({[Ee.HEADER_NAME]:Ee.HEADER_VALUE});var Y0=yG.log("gcp-metadata");Ee.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 _P(t){return t||(t=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||Ee.HOST_ADDRESS),/^https?:\/\//.test(t)||(t=`http://${t}`),new URL(Ee.BASE_PATH,t).href}a(_P,"getBaseUrl");function _G(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(_G,"validate");async function Uu(t,e={},r=3,o=!1){let n=new Headers(Ee.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}`:(_G(e),e.property&&(i+=`/${e.property}`),new Headers(e.headers).forEach((y,m)=>n.set(m,y)),s=e.params||s);let u=o?vG:yP.request,l={url:`${_P()}/${i}`,headers:n,retryConfig:{noResponseRetries:r},params:s,responseType:"text",timeout:tN()};Y0.info("instance request %j",l);let p=await u(l);Y0.info("instance metadata is %s",p.data);let f=p.headers.get(Ee.HEADER_NAME);if(f!==Ee.HEADER_VALUE)throw new RangeError(`Invalid response from metadata service: incorrect ${Ee.HEADER_NAME} header. Expected '${Ee.HEADER_VALUE}', got ${f?`'${f}'`:"no header"}`);if(typeof p.data=="string")try{return hG.parse(p.data)}catch{}return p.data}a(Uu,"metadataAccessor");async function vG(t){let e={...t,url:t.url?.toString().replace(_P(),_P(Ee.SECONDARY_HOST_ADDRESS))},r=(0,yP.request)(t),o=(0,yP.request)(e);return Promise.any([r,o])}a(vG,"fastFailMetadataRequest");function bG(t){return Uu("instance",t)}a(bG,"instance");function PG(t){return Uu("project",t)}a(PG,"project");function EG(t){return Uu("universe",t)}a(EG,"universe");async function SG(t){let e={};return await Promise.all(t.map(r=>(async()=>{let o=await Uu(r),n=r.metadataKey;e[n]=o})())),e}a(SG,"bulk");function xG(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}a(xG,"detectGCPAvailableRetries");var em;async function TG(){if(process.env.METADATA_SERVER_DETECTION){let t=process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase();if(!(t in Ee.METADATA_SERVER_DETECTION))throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${t}\`, but it should be \`${Object.keys(Ee.METADATA_SERVER_DETECTION).join("`, `")}\`, or unset`);switch(t){case"assume-present":return!0;case"none":return!1;case"bios-only":return vP();case"ping-only":}}try{return em===void 0&&(em=Uu("instance",void 0,xG(),!(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(TG,"isAvailable");function AG(){em=void 0}a(AG,"resetIsAvailableCache");Ee.gcpResidencyCache=null;function vP(){return Ee.gcpResidencyCache===null&&eN(),Ee.gcpResidencyCache}a(vP,"getGCPResidency");function eN(t=null){Ee.gcpResidencyCache=t!==null?t:(0,gG.detectGCPResidency)()}a(eN,"setGCPResidency");function tN(){return vP()?0:3e3}a(tN,"requestTimeout");mG(lP(),Ee)});var oN=z(tm=>{"use strict";tm.byteLength=IG;tm.toByteArray=RG;tm.fromByteArray=NG;var mn=[],Ur=[],wG=typeof Uint8Array<"u"?Uint8Array:Array,bP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Si=0,rN=bP.length;Si<rN;++Si)mn[Si]=bP[Si],Ur[bP.charCodeAt(Si)]=Si;var Si,rN;Ur[45]=62;Ur[95]=63;function nN(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(nN,"getLens");function IG(t){var e=nN(t),r=e[0],o=e[1];return(r+o)*3/4-o}a(IG,"byteLength");function CG(t,e,r){return(e+r)*3/4-r}a(CG,"_byteLength");function RG(t){var e,r=nN(t),o=r[0],n=r[1],i=new wG(CG(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(RG,"toByteArray");function OG(t){return mn[t>>18&63]+mn[t>>12&63]+mn[t>>6&63]+mn[t&63]}a(OG,"tripletToBase64");function kG(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(OG(o));return n.join("")}a(kG,"encodeChunk");function NG(t){for(var e,r=t.length,o=r%3,n=[],i=16383,s=0,u=r-o;s<u;s+=i)n.push(kG(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(NG,"fromByteArray")});var EP=z(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0});PP.fromArrayBufferToHex=$G;function $G(t){return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}a($G,"fromArrayBufferToHex")});var iN=z(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.BrowserCrypto=void 0;var Fa=oN(),zG=EP(),SP=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,zG.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=SP});var aN=z(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.NodeCrypto=void 0;var Ba=require("crypto"),xP=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:UG(e);return DG(Ba.createHmac("sha256",o).update(r).digest())}};nm.NodeCrypto=xP;function DG(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}a(DG,"toArrayBuffer");function UG(t){return Buffer.from(t)}a(UG,"toBuffer")});var Lu=z(Gn=>{"use strict";var MG=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]})),LG=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&MG(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createCrypto=BG;Gn.hasBrowserCrypto=sN;var jG=iN(),FG=aN();LG(EP(),Gn);function BG(){return sN()?new jG.BrowserCrypto:new FG.NodeCrypto}a(BG,"createCrypto");function sN(){return typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.subtle<"u"}a(sN,"hasBrowserCrypto")});var qa=z((TP,uN)=>{var om=require("buffer"),hn=om.Buffer;function cN(t,e){for(var r in t)e[r]=t[r]}a(cN,"copyProps");hn.from&&hn.alloc&&hn.allocUnsafe&&hn.allocUnsafeSlow?uN.exports=om:(cN(om,TP),TP.Buffer=xi);function xi(t,e,r){return hn(t,e,r)}a(xi,"SafeBuffer");xi.prototype=Object.create(hn.prototype);cN(hn,xi);xi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return hn(t,e,r)};xi.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};xi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return hn(t)};xi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return om.SlowBuffer(t)}});var dN=z((ile,lN)=>{"use strict";function AP(t){var e=(t/8|0)+(t%8===0?0:1);return e}a(AP,"getParamSize");var qG={ES256:AP(256),ES384:AP(384),ES512:AP(521)};function GG(t){var e=qG[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}a(GG,"getParamBytesForAlg");lN.exports=GG});var wP=z((sle,yN)=>{"use strict";var im=qa().Buffer,fN=dN(),am=128,mN=0,VG=32,HG=16,ZG=2,hN=HG|VG|mN<<6,sm=ZG|mN<<6;function WG(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(WG,"base64Url");function gN(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(gN,"signatureAsBuffer");function KG(t,e){t=gN(t);var r=fN(e),o=r+1,n=t.length,i=0;if(t[i++]!==hN)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=WG(h),h}a(KG,"derToJose");function pN(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(pN,"countPadding");function JG(t,e){t=gN(t);var r=fN(e),o=t.length;if(o!==r*2)throw new TypeError('"'+e+'" signatures must be "'+r*2+'" bytes, saw "'+o+'"');var n=pN(t,0,r),i=pN(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++]=hN,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(JG,"joseToDer");yN.exports={derToJose:KG,joseToDer:JG}});var tn=z(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.LRUCache=void 0;Vn.snakeToCamel=vN;Vn.originalOrCamelOptions=eV;Vn.removeUndefinedValuesInObject=tV;Vn.isValidFile=rV;Vn.getWellKnownCertificateConfigFileLocation=nV;var XG=require("fs"),YG=require("os"),IP=require("path"),QG="certificate_config.json",_N="gcloud";function vN(t){return t.replace(/([_][^_])/g,e=>e.slice(1).toUpperCase())}a(vN,"snakeToCamel");function eV(t){function e(r){let o=t||{};return o[r]??o[vN(r)]}return a(e,"get"),{get:e}}a(eV,"originalOrCamelOptions");var CP=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=CP;function tV(t){return Object.entries(t).forEach(([e,r])=>{(r===void 0||r==="undefined")&&delete t[e]}),t}a(tV,"removeUndefinedValuesInObject");async function rV(t){try{return(await XG.promises.lstat(t)).isFile()}catch{return!1}}a(rV,"isValidFile");function nV(){let t=process.env.CLOUDSDK_CONFIG||(oV()?IP.join(process.env.APPDATA||"",_N):IP.join(process.env.HOME||"",".config",_N));return IP.join(t,QG)}a(nV,"getWellKnownCertificateConfigFileLocation");function oV(){return YG.platform().startsWith("win")}a(oV,"_isWindows")});var bN=z((dle,iV)=>{iV.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 RP=z(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.USER_AGENT=ko.PRODUCT_NAME=ko.pkg=void 0;var PN=bN();ko.pkg=PN;var EN="google-api-nodejs-client";ko.PRODUCT_NAME=EN;var aV=`${EN}/${PN.version}`;ko.USER_AGENT=aV});var Pr=z(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.AuthClient=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=rn.DEFAULT_UNIVERSE=void 0;var sV=require("events"),OP=bt(),cV=tn(),uV=gP(),kP=RP();rn.DEFAULT_UNIVERSE="googleapis.com";rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS=300*1e3;var NP=class t extends sV.EventEmitter{static{a(this,"AuthClient")}apiKey;projectId;quotaProjectId;transporter;credentials={};eagerRefreshThresholdMillis=rn.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS;forceRefreshOnFailure=!1;universeDomain=rn.DEFAULT_UNIVERSE;static RequestMethodNameSymbol=Symbol("request method name");static RequestLogIdSymbol=Symbol("request log id");constructor(e={}){super();let r=(0,cV.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")??rn.DEFAULT_UNIVERSE,this.transporter=e.transporter??new OP.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&&OP.Gaxios.mergeHeaders(i,r.headers),o&&OP.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,uV.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(`${kP.PRODUCT_NAME}/`)||e.headers.set("User-Agent",`${r} ${kP.USER_AGENT}`):e.headers.set("User-Agent",kP.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"]}}}};rn.AuthClient=NP});var zP=z(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.LoginTicket=void 0;var $P=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=$P});var Ti=z(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.OAuth2Client=gn.ClientAuthentication=gn.CertificateFormat=gn.CodeChallengeMethod=void 0;var SN=bt(),lV=require("querystring"),dV=require("stream"),pV=wP(),xN=tn(),DP=Lu(),Ga=Pr(),fV=zP(),TN;(function(t){t.Plain="plain",t.S256="S256"})(TN||(gn.CodeChallengeMethod=TN={}));var Hn;(function(t){t.PEM="PEM",t.JWK="JWK"})(Hn||(gn.CertificateFormat=Hn={}));var ju;(function(t){t.ClientSecretPost="ClientSecretPost",t.ClientSecretBasic="ClientSecretBasic",t.None="None"})(ju||(gn.ClientAuthentication=ju={}));var UP=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||ju.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()+"?"+lV.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){let e=(0,DP.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===ju.ClientSecretBasic){let l=Buffer.from(`${this._clientId}:${this._clientSecret}`);o.set("authorization",`Basic ${l.toString("base64")}`)}this.clientAuthentication===ju.ClientSecretPost&&(n.client_secret=this._clientSecret);let i={...t.RETRY_CONFIG,method:"POST",url:r,data:new URLSearchParams((0,xN.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,xN.removeUndefinedValuesInObject)(o))};Ga.AuthClient.setMethodName(s,"refreshTokenNoCache"),n=await this.transporter.request(s)}catch(s){throw s instanceof SN.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=SN.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 dV.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,DP.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,DP.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=pV.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 E=Number(y.exp);if(isNaN(E))throw new Error("exp field using invalid format");let S=new Date().getTime()/1e3;if(E>=S+i)throw new Error("Expiration time too far in future: "+JSON.stringify(y));let T=_-t.CLOCK_SKEW_SECS_,k=E+t.CLOCK_SKEW_SECS_;if(S<T)throw new Error("Token used too early, "+S+" < "+T+": "+JSON.stringify(y));if(S>k)throw new Error("Token used too late, "+S+" > "+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 fV.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=UP});var LP=z(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.Compute=void 0;var mV=bt(),AN=Mu(),hV=Ti(),MP=class extends hV.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 AN.instance(n)}catch(n){throw n instanceof mV.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 AN.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=MP});var FP=z(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.IdTokenClient=void 0;var gV=Ti(),jP=class extends gV.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=jP});var BP=z(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.GCPEnv=void 0;Va.clear=yV;Va.getEnv=_V;var wN=Mu(),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 Fu;function yV(){Fu=void 0}a(yV,"clear");async function _V(){return Fu||(Fu=vV(),Fu)}a(_V,"getEnv");async function vV(){let t=yn.NONE;return bV()?t=yn.APP_ENGINE:PV()?t=yn.CLOUD_FUNCTIONS:await TV()?await xV()?t=yn.KUBERNETES_ENGINE:EV()?t=yn.CLOUD_RUN:SV()?t=yn.CLOUD_RUN_JOBS:t=yn.COMPUTE_ENGINE:t=yn.NONE,t}a(vV,"getEnvMemoized");function bV(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}a(bV,"isAppEngine");function PV(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}a(PV,"isCloudFunction");function EV(){return!!process.env.K_CONFIGURATION}a(EV,"isCloudRun");function SV(){return!!process.env.CLOUD_RUN_JOB}a(SV,"isCloudRunJob");async function xV(){try{return await wN.instance("attributes/cluster-name"),!0}catch{return!1}}a(xV,"isKubernetesEngine");async function TV(){return wN.isAvailable()}a(TV,"isComputeEngine")});var qP=z((Tle,IN)=>{var dm=qa().Buffer,AV=require("stream"),wV=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");wV.inherits(pm,AV);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");IN.exports=pm});var RN=z((wle,CN)=>{"use strict";var Bu=require("buffer").Buffer,GP=require("buffer").SlowBuffer;CN.exports=fm;function fm(t,e){if(!Bu.isBuffer(t)||!Bu.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(){Bu.prototype.equal=GP.prototype.equal=a(function(e){return fm(this,e)},"equal")};var IV=Bu.prototype.equal,CV=GP.prototype.equal;fm.restore=function(){Bu.prototype.equal=IV,GP.prototype.equal=CV}});var WP=z((Cle,LN)=>{var Za=qa().Buffer,Mr=require("crypto"),kN=wP(),ON=require("util"),RV=`"%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".`,Su="secret must be a string or buffer",Da="key must be a string or a buffer",vq="key must be a string, a buffer or an object",ES=typeof Or.createPublicKey=="function";ES&&(Da+=" or a KeyObject",Su+="or a KeyObject");function X0(t){if(!Ua.isBuffer(t)&&typeof t!="string"&&(!ES||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw Jr(Da)}a(X0,"checkIsPublicKey");function Y0(t){if(!Ua.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw Jr(vq)}a(Y0,"checkIsPrivateKey");function bq(t){if(!Ua.isBuffer(t)){if(typeof t=="string")return t;if(!ES||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw Jr(Su)}}a(bq,"checkIsSecretKey");function PS(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(PS,"fromBase64");function Q0(t){t=t.toString();var e=4-t.length%4;if(e!==4)for(var n=0;n<e;++n)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}a(Q0,"toBase64");function Jr(t){var e=[].slice.call(arguments,1),n=J0.format.bind(J0,t).apply(null,e);return new TypeError(n)}a(Jr,"typeError");function Sq(t){return Ua.isBuffer(t)||typeof t=="string"}a(Sq,"bufferOrString");function Eu(t){return Sq(t)||(t=JSON.stringify(t)),t}a(Eu,"normalizeInput");function e$(t){return a(function(n,o){bq(o),n=Eu(n);var r=Or.createHmac("sha"+t,o),i=(r.update(n),r.digest("base64"));return PS(i)},"sign")}a(e$,"createHmacSigner");var SS,Eq="timingSafeEqual"in Or?a(function(e,n){return e.byteLength!==n.byteLength?!1:Or.timingSafeEqual(e,n)},"timingSafeEqual"):a(function(e,n){return SS||(SS=W0()),SS(e,n)},"timingSafeEqual");function Pq(t){return a(function(n,o,r){var i=e$(t)(n,r);return Eq(Ua.from(o),Ua.from(i))},"verify")}a(Pq,"createHmacVerifier");function t$(t){return a(function(n,o){Y0(o),n=Eu(n);var r=Or.createSign("RSA-SHA"+t),i=(r.update(n),r.sign(o,"base64"));return PS(i)},"sign")}a(t$,"createKeySigner");function r$(t){return a(function(n,o,r){X0(r),n=Eu(n),o=Q0(o);var i=Or.createVerify("RSA-SHA"+t);return i.update(n),i.verify(r,o,"base64")},"verify")}a(r$,"createKeyVerifier");function xq(t){return a(function(n,o){Y0(o),n=Eu(n);var r=Or.createSign("RSA-SHA"+t),i=(r.update(n),r.sign({key:o,padding:Or.constants.RSA_PKCS1_PSS_PADDING,saltLength:Or.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return PS(i)},"sign")}a(xq,"createPSSKeySigner");function Tq(t){return a(function(n,o,r){X0(r),n=Eu(n),o=Q0(o);var i=Or.createVerify("RSA-SHA"+t);return i.update(n),i.verify({key:r,padding:Or.constants.RSA_PKCS1_PSS_PADDING,saltLength:Or.constants.RSA_PSS_SALTLEN_DIGEST},o,"base64")},"verify")}a(Tq,"createPSSKeyVerifier");function Aq(t){var e=t$(t);return a(function(){var o=e.apply(null,arguments);return o=K0.derToJose(o,"ES"+t),o},"sign")}a(Aq,"createECDSASigner");function wq(t){var e=r$(t);return a(function(o,r,i){r=K0.joseToDer(r,"ES"+t).toString("base64");var s=e(o,r,i);return s},"verify")}a(wq,"createECDSAVerifer");function Iq(){return a(function(){return""},"sign")}a(Iq,"createNoneSigner");function Rq(){return a(function(e,n){return n===""},"verify")}a(Rq,"createNoneVerifier");n$.exports=a(function(e){var n={hs:e$,rs:t$,ps:xq,es:Aq,none:Iq},o={hs:Pq,rs:r$,ps:Tq,es:wq,none:Rq},r=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!r)throw Jr(_q,e);var i=(r[1]||r[3]).toLowerCase(),s=r[2];return{sign:n[i](s),verify:o[i](s)}},"jwa")});var TS=N((zie,o$)=>{var Oq=require("buffer").Buffer;o$.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||Oq.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var l$=N((Uie,u$)=>{var Cq=ka().Buffer,i$=vS(),$q=xS(),kq=require("stream"),a$=TS(),AS=require("util");function s$(t,e){return Cq.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(s$,"base64url");function Nq(t,e,n){n=n||"utf8";var o=s$(a$(t),"binary"),r=s$(a$(e),n);return AS.format("%s.%s",o,r)}a(Nq,"jwsSecuredInput");function c$(t){var e=t.header,n=t.payload,o=t.secret||t.privateKey,r=t.encoding,i=$q(e.alg),s=Nq(e,n,r),u=i.sign(s,o);return AS.format("%s.%s",s,u)}a(c$,"jwsSign");function tm(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 n=new i$(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=n,this.payload=new i$(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(tm,"SignStream");AS.inherits(tm,kq);tm.prototype.sign=a(function(){try{var e=c$({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(n){this.readable=!1,this.emit("error",n),this.emit("close")}},"sign");tm.sign=c$;u$.exports=tm});var b$=N((jie,v$)=>{var p$=ka().Buffer,d$=vS(),zq=xS(),Dq=require("stream"),f$=TS(),Uq=require("util"),Mq=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function jq(t){return Object.prototype.toString.call(t)==="[object Object]"}a(jq,"isObject");function Lq(t){if(jq(t))return t;try{return JSON.parse(t)}catch{return}}a(Lq,"safeJsonParse");function m$(t){var e=t.split(".",1)[0];return Lq(p$.from(e,"base64").toString("binary"))}a(m$,"headerFromJWS");function Fq(t){return t.split(".",2).join(".")}a(Fq,"securedInputFromJWS");function h$(t){return t.split(".")[2]}a(h$,"signatureFromJWS");function Bq(t,e){e=e||"utf8";var n=t.split(".")[1];return p$.from(n,"base64").toString(e)}a(Bq,"payloadFromJWS");function g$(t){return Mq.test(t)&&!!m$(t)}a(g$,"isValidJws");function y$(t,e,n){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=f$(t);var r=h$(t),i=Fq(t),s=zq(e);return s.verify(i,r,n)}a(y$,"jwsVerify");function _$(t,e){if(e=e||{},t=f$(t),!g$(t))return null;var n=m$(t);if(!n)return null;var o=Bq(t);return(n.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:n,payload:o,signature:h$(t)}}a(_$,"jwsDecode");function Ma(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 n=new d$(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=n,this.signature=new d$(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(Ma,"VerifyStream");Uq.inherits(Ma,Dq);Ma.prototype.verify=a(function(){try{var e=y$(this.signature.buffer,this.algorithm,this.key.buffer),n=_$(this.signature.buffer,this.encoding);return this.emit("done",e,n),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(o){this.readable=!1,this.emit("error",o),this.emit("close")}},"verify");Ma.decode=_$;Ma.isValid=g$;Ma.verify=y$;v$.exports=Ma});var wS=N(To=>{var S$=l$(),rm=b$(),qq=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];To.ALGORITHMS=qq;To.sign=S$.sign;To.verify=rm.verify;To.decode=rm.decode;To.isValid=rm.isValid;To.createSign=a(function(e){return new S$(e)},"createSign");To.createVerify=a(function(e){return new rm(e)},"createVerify")});var D$=N(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.GoogleToken=void 0;var E$=nm(require("fs")),Vq=gt(),Zq=nm(wS()),Hq=nm(require("path")),Gq=require("util");function nm(t,e){if(typeof WeakMap=="function")var n=new WeakMap,o=new WeakMap;return(nm=a(function(i,s){if(!s&&i&&i.__esModule)return i;var u,l,p={__proto__:null,default:i};if(i===null||Mn(i)!="object"&&typeof i!="function")return p;if(u=s?o:n){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(nm,"_interopRequireWildcard");function Mn(t){"@babel/helpers - typeof";return Mn=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},Mn(t)}a(Mn,"_typeof");function Wq(t,e){C$(t,e),e.add(t)}a(Wq,"_classPrivateMethodInitSpec");function Jq(t,e,n){C$(t,e),e.set(t,n)}a(Jq,"_classPrivateFieldInitSpec");function C$(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(C$,"_checkPrivateRedeclaration");function P$(t,e,n){return t.set(Kr(t,e),n),n}a(P$,"_classPrivateFieldSet");function x$(t,e){return t.get(Kr(t,e))}a(x$,"_classPrivateFieldGet");function Kr(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}a(Kr,"_assertClassBrand");function T$(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,N$(o.key),o)}}a(T$,"_defineProperties");function $$(t,e,n){return e&&T$(t.prototype,e),n&&T$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}a($$,"_createClass");function k$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(k$,"_classCallCheck");function Kq(t,e,n){return e=Au(e),Xq(t,kS()?Reflect.construct(e,n||[],Au(t).constructor):e.apply(t,n))}a(Kq,"_callSuper");function Xq(t,e){if(e&&(Mn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yq(t)}a(Xq,"_possibleConstructorReturn");function Yq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(Yq,"_assertThisInitialized");function Qq(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&&Tu(t,e)}a(Qq,"_inherits");function IS(t){var e=typeof Map=="function"?new Map:void 0;return IS=a(function(o){if(o===null||!t2(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,r)}function r(){return e2(o,arguments,Au(this).constructor)}return a(r,"Wrapper"),r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tu(r,o)},"_wrapNativeSuper"),IS(t)}a(IS,"_wrapNativeSuper");function e2(t,e,n){if(kS())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var r=new(t.bind.apply(t,o));return n&&Tu(r,n.prototype),r}a(e2,"_construct");function kS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kS=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(kS,"_isNativeReflectConstruct");function t2(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(t2,"_isNativeFunction");function Tu(t,e){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Tu(t,e)}a(Tu,"_setPrototypeOf");function Au(t){return Au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Au(t)}a(Au,"_getPrototypeOf");function hr(t,e,n){return(e=N$(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}a(hr,"_defineProperty");function N$(t){var e=r2(t,"string");return Mn(e)=="symbol"?e:e+""}a(N$,"_toPropertyKey");function r2(t,e){if(Mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Mn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}a(r2,"_toPrimitive");function yr(){var t,e,n=typeof Symbol=="function"?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(h,_,E,P){var x=_&&_.prototype instanceof u?_:u,z=Object.create(x.prototype);return gr(z,"_invoke",(function(M,K,Z){var J,ee,ae,Y=0,ze=Z||[],se=!1,G={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:a(function(X,ue){return J=X,ee=0,ae=t,G.n=ue,s},"d")};function H(re,X){for(ee=re,ae=X,e=0;!se&&Y&&!ue&&e<ze.length;e++){var ue,de=ze[e],Ce=G.p,De=de[2];re>3?(ue=De===X)&&(ae=de[(ee=de[4])?5:(ee=3,3)],de[4]=de[5]=t):de[0]<=Ce&&((ue=re<2&&Ce<de[1])?(ee=0,G.v=X,G.n=de[1]):Ce<De&&(ue=re<3||de[0]>X||X>De)&&(de[4]=re,de[5]=X,G.n=De,ee=0))}if(ue||re>1)return s;throw se=!0,X}return a(H,"d"),function(re,X,ue){if(Y>1)throw TypeError("Generator is already running");for(se&&X===1&&H(X,ue),ee=X,ae=ue;(e=ee<2?t:ae)||!se;){J||(ee?ee<3?(ee>1&&(G.n=-1),H(ee,ae)):G.n=ae:G.v=ae);try{if(Y=2,J){if(ee||(re="next"),e=J[re]){if(!(e=e.call(J,ae)))throw TypeError("iterator result is not an object");if(!e.done)return e;ae=e.value,ee<2&&(ee=0)}else ee===1&&(e=J.return)&&e.call(J),ee<2&&(ae=TypeError("The iterator does not provide a '"+re+"' method"),ee=1);J=t}else if((e=(se=G.n<0)?ae:M.call(K,G))!==s)break}catch(de){J=t,ee=1,ae=de}finally{Y=1}}return{value:e,done:se}}})(h,E,P),!0),z}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]())):(gr(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,gr(h,r,"GeneratorFunction")),h.prototype=Object.create(y),h}return a(m,"f"),l.prototype=p,gr(y,"constructor",p),gr(p,"constructor",l),l.displayName="GeneratorFunction",gr(p,r,"GeneratorFunction"),gr(y),gr(y,r,"Generator"),gr(y,o,function(){return this}),gr(y,"toString",function(){return"[object Generator]"}),(yr=a(function(){return{w:i,m}},"_regenerator"))()}a(yr,"_regenerator");function gr(t,e,n,o){var r=Object.defineProperty;try{r({},"",{})}catch{r=0}gr=a(function(s,u,l,p){if(u)r?r(s,u,{value:l,enumerable:!p,configurable:!p,writable:!p}):s[u]=l;else{var f=a(function(m,h){gr(s,m,function(_){return this._invoke(m,h,_)})},"o");f("next",0),f("throw",1),f("return",2)}},"_regeneratorDefine"),gr(t,e,n,o)}a(gr,"_regeneratorDefine2");function A$(t,e,n,o,r,i,s){try{var u=t[i](s),l=u.value}catch(p){return void n(p)}u.done?e(l):Promise.resolve(l).then(o,r)}a(A$,"asyncGeneratorStep");function ja(t){return function(){var e=this,n=arguments;return new Promise(function(o,r){var i=t.apply(e,n);function s(l){A$(i,o,r,s,u,"next",l)}a(s,"_next");function u(l){A$(i,o,r,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(ja,"_asyncToGenerator");var w$=E$.readFile?(0,Gq.promisify)(E$.readFile):ja(yr().m(a(function t(){return yr().w(function(e){for(;;)switch(e.n){case 0:throw new xu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),I$="https://oauth2.googleapis.com/token",n2="https://oauth2.googleapis.com/revoke?token=",xu=(function(t){function e(n,o){var r;return k$(this,e),r=Kq(this,e,[n]),hr(r,"code",void 0),r.code=o,r}return a(e,"ErrorWithCode"),Qq(e,t),$$(e)})(IS(Error)),Pu=new WeakMap,un=new WeakSet,qie=om.GoogleToken=(function(){function t(e){k$(this,t),Wq(this,un),hr(this,"expiresAt",void 0),hr(this,"key",void 0),hr(this,"keyFile",void 0),hr(this,"iss",void 0),hr(this,"sub",void 0),hr(this,"scope",void 0),hr(this,"rawToken",void 0),hr(this,"tokenExpires",void 0),hr(this,"email",void 0),hr(this,"additionalClaims",void 0),hr(this,"eagerRefreshThresholdMillis",void 0),hr(this,"transporter",{request:a(function(o){return(0,Vq.request)(o)},"request")}),Jq(this,Pu,void 0),Kr(un,this,z$).call(this,e)}return a(t,"GoogleToken"),$$(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 n=new Date().getTime();return this.rawToken&&this.expiresAt?n>=this.expiresAt:!0},"hasExpired")},{key:"isTokenExpiring",value:a(function(){var n,o=new Date().getTime(),r=(n=this.eagerRefreshThresholdMillis)!==null&&n!==void 0?n:0;return this.rawToken&&this.expiresAt?this.expiresAt<=o+r:!0},"isTokenExpiring")},{key:"getToken",value:a(function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Mn(n)==="object"&&(o=n,n=void 0),o=Object.assign({forceRefresh:!1},o),n){var r=n;Kr(un,this,R$).call(this,o).then(function(i){return r(null,i)},n);return}return Kr(un,this,R$).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=ja(yr().m(a(function o(r){var i,s,u,l,p,f,y;return yr().w(function(m){for(;;)switch(m.n){case 0:i=Hq.extname(r),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,w$(r,"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 xu("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,w$(r,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new xu("*.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 xu("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 n(o){return e.apply(this,arguments)}return a(n,"getCredentials"),n})()},{key:"revokeToken",value:a(function(n){if(n){Kr(un,this,O$).call(this).then(function(){return n()},n);return}return Kr(un,this,O$).call(this)},"revokeToken")}])})();function R$(t){return RS.apply(this,arguments)}a(R$,"_getTokenAsync");function RS(){return RS=ja(yr().m(a(function t(e){return yr().w(function(n){for(;;)switch(n.n){case 0:if(!(x$(Pu,this)&&!e.forceRefresh)){n.n=1;break}return n.a(2,x$(Pu,this));case 1:return n.p=1,n.n=2,P$(Pu,this,Kr(un,this,o2).call(this,e));case 2:return n.a(2,n.v);case 3:return n.p=3,P$(Pu,this,void 0),n.f(3);case 4:return n.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),RS.apply(this,arguments)}a(RS,"_getTokenAsync2");function o2(t){return OS.apply(this,arguments)}a(o2,"_getTokenAsyncInner");function OS(){return OS=ja(yr().m(a(function t(e){var n;return yr().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:n=o.v,this.key=n.privateKey,this.iss=n.clientEmail||this.iss,n.clientEmail||Kr(un,this,i2).call(this);case 4:return o.a(2,Kr(un,this,a2).call(this))}},t,this)},"_callee4"))),OS.apply(this,arguments)}a(OS,"_getTokenAsyncInner2");function i2(){if(!this.iss)throw new xu("email is required.","MISSING_CREDENTIALS")}a(i2,"_ensureEmail");function O$(){return CS.apply(this,arguments)}a(O$,"_revokeTokenAsync");function CS(){return CS=ja(yr().m(a(function t(){var e;return yr().w(function(n){for(;;)switch(n.n){case 0:if(this.accessToken){n.n=1;break}throw new Error("No token to revoke.");case 1:return e=n2+this.accessToken,n.n=2,this.transporter.request({url:e,retry:!0});case 2:Kr(un,this,z$).call(this,{email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims});case 3:return n.a(2)}},t,this)},"_callee5"))),CS.apply(this,arguments)}a(CS,"_revokeTokenAsync2");function z$(){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,Mn(t.scope)==="object"?this.scope=t.scope.join(" "):this.scope=t.scope,this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,t.transporter&&(this.transporter=t.transporter)}a(z$,"_configure");function a2(){return $S.apply(this,arguments)}a(a2,"_requestToken");function $S(){return $S=ja(yr().m(a(function t(){var e,n,o,r,i,s,u,l,p,f;return yr().w(function(y){for(;;)switch(y.n){case 0:return e=Math.floor(new Date().getTime()/1e3),n=this.additionalClaims||{},o=Object.assign({iss:this.iss,scope:this.scope,aud:I$,exp:e+3600,iat:e,sub:this.sub},n),r=Zq.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:I$,data:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:r}),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"))),$S.apply(this,arguments)}a($S,"_requestToken2")});var zS=N(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.JWTAccess=void 0;var s2=wS(),c2=Gr(),U$={alg:"RS256",typ:"JWT"},NS=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new c2.LRUCache({capacity:500,maxAge:3600*1e3});constructor(e,n,o,r){this.email=e,this.key=n,this.keyId=o,this.eagerRefreshThresholdMillis=r??300*1e3}getCachedKey(e,n){let o=e;if(n&&Array.isArray(n)&&n.length?o=e?`${e}_${n.join("_")}`:`${n.join("_")}`:typeof n=="string"&&(o=e?`${e}_${n}`:n),!o)throw Error("Scopes or url must be provided");return o}getRequestHeaders(e,n,o){let r=this.getCachedKey(e,o),i=this.cache.get(r),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},n){for(let _ in p)if(n[_])throw new Error(`The '${_}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}let f=this.keyId?{...U$,kid:this.keyId}:U$,y=Object.assign(p,n),m=s2.sign({header:f,payload:y,secret:this.key}),h=new Headers({authorization:`Bearer ${m}`});return this.cache.set(r,{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,n){if(n)this.fromStreamAsync(e).then(()=>n(),n);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((n,o)=>{e||o(new Error("Must pass in a stream containing the service account auth settings."));let r="";e.setEncoding("utf8").on("data",i=>r+=i).on("error",o).on("end",()=>{try{let i=JSON.parse(r);this.fromJSON(i),n()}catch(i){o(i)}})})}};im.JWTAccess=NS});var US=N(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.JWT=void 0;var M$=D$(),u2=zS(),l2=hi(),am=mr(),DS=class t extends l2.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 n=new t(this);return n.scopes=e,n}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;let n=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes()||this.universeDomain!==am.DEFAULT_UNIVERSE;if(this.subject&&this.universeDomain!==am.DEFAULT_UNIVERSE)throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${am.DEFAULT_UNIVERSE}`);if(!this.apiKey&&n)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 u2.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis));let o;this.hasUserScopes()?o=this.scopes:e||(o=this.defaultScopes);let r=this.useJWTAccessWithScope||this.universeDomain!==am.DEFAULT_UNIVERSE,i=await this.access.getRequestHeaders(e??void 0,this.additionalClaims,r?o:void 0);return{headers:this.addSharedMetadataHeaders(i)}}else return this.hasAnyScopes()||this.apiKey?super.getRequestMetadataAsync(e):{headers:new Headers}}async fetchIdToken(e){let n=new M$.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 n.getToken({forceRefresh:!0}),!n.idToken)throw new Error("Unknown error: Failed to fetch ID token");return n.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(n=>e(null,n),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 M$.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,n){if(n)this.fromStreamAsync(e).then(()=>n(),n);else return this.fromStreamAsync(e)}fromStreamAsync(e){return new Promise((n,o)=>{if(!e)throw new Error("Must pass in a stream containing the service account auth settings.");let r="";e.setEncoding("utf8").on("error",o).on("data",i=>r+=i).on("end",()=>{try{let i=JSON.parse(r);this.fromJSON(i),n()}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 n=await this.createGToken().getCredentials(this.keyFile);return{private_key:n.privateKey,client_email:n.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}};sm.JWT=DS});var jS=N(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.UserRefreshClient=La.USER_REFRESH_ACCOUNT_TYPE=void 0;var d2=hi(),p2=mr();La.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var MS=class t extends d2.OAuth2Client{static{a(this,"UserRefreshClient")}_refreshToken;constructor(e,n,o,r,i){let s=e&&typeof e=="object"?e:{clientId:e,clientSecret:n,refreshToken:o,eagerRefreshThresholdMillis:r,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 n={...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(n,"fetchIdToken"),(await this.transporter.request(n)).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,n){if(n)this.fromStreamAsync(e).then(()=>n(),n);else return this.fromStreamAsync(e)}async fromStreamAsync(e){return new Promise((n,o)=>{if(!e)return o(new Error("Must pass in a stream containing the user refresh token."));let r="";e.setEncoding("utf8").on("error",o).on("data",i=>r+=i).on("end",()=>{try{let i=JSON.parse(r);return this.fromJSON(i),n()}catch(i){return o(i)}})})}static fromJSON(e){let n=new t;return n.fromJSON(e),n}};La.UserRefreshClient=MS});var FS=N(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.Impersonated=Fa.IMPERSONATED_ACCOUNT_TYPE=void 0;var j$=hi(),f2=gt(),m2=Gr();Fa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var LS=class t extends j$.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 j$.OAuth2Client,this.targetPrincipal=e.targetPrincipal??"",this.delegates=e.delegates??[],this.targetScopes=e.targetScopes??[],this.lifetime=e.lifetime??3600,!!!(0,m2.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 n=`projects/-/serviceAccounts/${this.targetPrincipal}`,o=`${this.endpoint}/v1/${n}:signBlob`,r={delegates:this.delegates,payload:Buffer.from(e).toString("base64")};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:o,data:r,method:"POST"})).data}getTargetPrincipal(){return this.targetPrincipal}async refreshToken(){try{await this.sourceClient.getAccessToken();let e="projects/-/serviceAccounts/"+this.targetPrincipal,n=`${this.endpoint}/v1/${e}:generateAccessToken`,o={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"},r=await this.sourceClient.request({...t.RETRY_CONFIG,url:n,data:o,method:"POST"}),i=r.data;return this.credentials.access_token=i.accessToken,this.credentials.expiry_date=Date.parse(i.expireTime),{tokens:this.credentials,res:r}}catch(e){if(!(e instanceof Error))throw e;let n=0,o="";throw e instanceof f2.GaxiosError&&(n=e?.response?.data?.error?.status,o=e?.response?.data?.error?.message),n&&o?(e.message=`${n}: unable to impersonate: ${o}`,e):(e.message=`unable to impersonate: ${e}`,e)}}async fetchIdToken(e,n){await this.sourceClient.getAccessToken();let o=`projects/-/serviceAccounts/${this.targetPrincipal}`,r=`${this.endpoint}/v1/${o}:generateIdToken`,i={delegates:this.delegates,audience:e,includeEmail:n?.includeEmail??!0,useEmailAzp:n?.includeEmail??!0};return(await this.sourceClient.request({...t.RETRY_CONFIG,url:r,data:i,method:"POST"})).data.token}};Fa.Impersonated=LS});var qS=N(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.OAuthClientAuthHandler=void 0;wu.getErrorFromOAuthErrorResponse=y2;var Ba=gt(),h2=yu(),g2=["PUT","POST","PATCH"],BS=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,h2.createCrypto)();#t;transporter;constructor(e){e&&"clientId"in e?(this.#t=e,this.transporter=new Ba.Gaxios):(this.#t=e?.clientAuthentication,this.transporter=e?.transporter||new Ba.Gaxios)}applyClientAuthenticationOptions(e,n){e.headers=Ba.Gaxios.mergeHeaders(e.headers),this.injectAuthenticatedHeaders(e,n),n||this.injectAuthenticatedRequestBody(e)}injectAuthenticatedHeaders(e,n){if(n)e.headers=Ba.Gaxios.mergeHeaders(e.headers,{authorization:`Bearer ${n}`});else if(this.#t?.confidentialClientType==="basic"){e.headers=Ba.Gaxios.mergeHeaders(e.headers);let o=this.#t.clientId,r=this.#t.clientSecret||"",i=this.#e.encodeBase64StringUtf8(`${o}:${r}`);Ba.Gaxios.mergeHeaders(e.headers,{authorization:`Basic ${i}`})}}injectAuthenticatedRequestBody(e){if(this.#t?.confidentialClientType==="request-body"){let n=(e.method||"GET").toUpperCase();if(!g2.includes(n))throw new Error(`${n} HTTP method does not support ${this.#t.confidentialClientType} client authentication`);let r=new Headers(e.headers).get("content-type");if(r?.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(r?.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(`${r} 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"]}}}};wu.OAuthClientAuthHandler=BS;function y2(t,e){let n=t.error,o=t.error_description,r=t.error_uri,i=`Error code ${n}`;typeof o<"u"&&(i+=`: ${o}`),typeof r<"u"&&(i+=` - ${r}`);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(y2,"getErrorFromOAuthErrorResponse")});var um=N(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.StsCredentials=void 0;var _2=gt(),v2=mr(),L$=qS(),b2=Gr(),VS=class t extends L$.OAuthClientAuthHandler{static{a(this,"StsCredentials")}#e;constructor(e={tokenExchangeEndpoint:""},n){(typeof e!="object"||e instanceof URL)&&(e={tokenExchangeEndpoint:e,clientAuthentication:n}),super(e),this.#e=e.tokenExchangeEndpoint}async exchangeToken(e,n,o){let r={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:n,data:new URLSearchParams((0,b2.removeUndefinedValuesInObject)(r))};v2.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 _2.GaxiosError&&s.response?(0,L$.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};cm.StsCredentials=VS});var Ao=N(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.BaseExternalAccountClient=Cr.CLOUD_RESOURCE_MANAGER=Cr.EXTERNAL_ACCOUNT_TYPE=Cr.EXPIRATION_TIME_OFFSET=void 0;var S2=gt(),E2=require("stream"),ZS=mr(),P2=um(),F$=Gr(),x2=aS(),T2="urn:ietf:params:oauth:grant-type:token-exchange",A2="urn:ietf:params:oauth:token-type:access_token",HS="https://www.googleapis.com/auth/cloud-platform",w2=3600;Cr.EXPIRATION_TIME_OFFSET=300*1e3;Cr.EXTERNAL_ACCOUNT_TYPE="external_account";Cr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var I2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",R2="https://sts.{universeDomain}/v1/token",GS=class t extends ZS.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 n=(0,F$.originalOrCamelOptions)(e),o=n.get("type");if(o&&o!==Cr.EXTERNAL_ACCOUNT_TYPE)throw new Error(`Expected "${Cr.EXTERNAL_ACCOUNT_TYPE}" type but received "${e.type}"`);let r=n.get("client_id"),i=n.get("client_secret");this.tokenUrl=n.get("token_url")??R2.replace("{universeDomain}",this.universeDomain);let s=n.get("subject_token_type"),u=n.get("workforce_pool_user_project"),l=n.get("service_account_impersonation_url"),p=n.get("service_account_impersonation"),f=(0,F$.originalOrCamelOptions)(p).get("token_lifetime_seconds");this.cloudResourceManagerURL=new URL(n.get("cloud_resource_manager_url")||`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`),r&&(this.clientAuth={confidentialClientType:"basic",clientId:r,clientSecret:i}),this.stsCredential=new P2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=n.get("scopes")||[HS],this.cachedAccessToken=null,this.audience=n.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(I2);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=w2),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(),n=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(n)}request(e,n){if(n)this.requestAsync(e).then(o=>n(null,o),o=>n(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 n=await this.getRequestHeaders(),o={...t.RETRY_CONFIG,headers:n,url:`${this.cloudResourceManagerURL.toString()}${e}`};ZS.AuthClient.setMethodName(o,"getProjectId");let r=await this.transporter.request(o);return this.projectId=r.data.projectId,this.projectId}return null}async requestAsync(e,n=!1){let o;try{let r=await this.getRequestHeaders();e.headers=S2.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,r),o=await this.transporter.request(e)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof E2.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw r}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(),n={grantType:T2,audience:this.audience,requestedTokenType:A2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[HS]:this.getScopesArray()},o=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:void 0,r=new Headers({"x-goog-api-client":this.getMetricsHeaderValue()}),i=await this.stsCredential.exchangeToken(n,r,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 n=e.match(/\/projects\/([^/]+)/);return n?n[1]:null}async getImpersonatedAccessToken(e){let n={...t.RETRY_CONFIG,url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${e}`},data:{scope:this.getScopesArray(),lifetime:this.serviceAccountImpersonationLifetime+"s"}};ZS.AuthClient.setMethodName(n,"getImpersonatedAccessToken");let o=await this.transporter.request(n),r=o.data;return{access_token:r.accessToken,expiry_date:new Date(r.expireTime).getTime(),res:o}}isExpired(e){let n=new Date().getTime();return e.expiry_date?n>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}getScopesArray(){return typeof this.scopes=="string"?[this.scopes]:this.scopes||[HS]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),n=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${x2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${n} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Cr.BaseExternalAccountClient=GS});var B$=N(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.FileSubjectTokenSupplier=void 0;var JS=require("util"),KS=require("fs"),O2=(0,JS.promisify)(KS.readFile??(()=>{})),C2=(0,JS.promisify)(KS.realpath??(()=>{})),$2=(0,JS.promisify)(KS.lstat??(()=>{})),WS=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 C2(e),!(await $2(e)).isFile())throw new Error}catch(r){throw r instanceof Error&&(r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`),r}let n,o=await O2(e,{encoding:"utf8"});if(this.formatType==="text"?n=o:this.formatType==="json"&&this.subjectTokenFieldName&&(n=JSON.parse(o)[this.subjectTokenFieldName]),!n)throw new Error("Unable to parse the subject_token from the credential_source file");return n}};lm.FileSubjectTokenSupplier=WS});var q$=N(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.UrlSubjectTokenSupplier=void 0;var k2=mr(),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 n={...this.additionalGaxiosOptions,url:this.url,method:"GET",headers:this.headers};k2.AuthClient.setMethodName(n,"getSubjectToken");let o;if(this.formatType==="text"?o=(await e.transporter.request(n)).data:this.formatType==="json"&&this.subjectTokenFieldName&&(o=(await e.transporter.request(n)).data[this.subjectTokenFieldName]),!o)throw new Error("Unable to parse the subject_token from the credential_source URL");return o}};dm.UrlSubjectTokenSupplier=XS});var V$=N(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.CertificateSubjectTokenSupplier=_r.InvalidConfigurationError=_r.CertificateSourceUnavailableError=_r.CERTIFICATE_CONFIGURATION_ENV_VARIABLE=void 0;var pm=Gr(),fm=require("fs"),mm=require("crypto"),N2=require("https");_r.CERTIFICATE_CONFIGURATION_ENV_VARIABLE="GOOGLE_API_CERTIFICATE_CONFIG";var ln=class extends Error{static{a(this,"CertificateSourceUnavailableError")}constructor(e){super(e),this.name="CertificateSourceUnavailableError"}};_r.CertificateSourceUnavailableError=ln;var $r=class extends Error{static{a(this,"InvalidConfigurationError")}constructor(e){super(e),this.name="InvalidConfigurationError"}};_r.InvalidConfigurationError=$r;var YS=class{static{a(this,"CertificateSubjectTokenSupplier")}certificateConfigPath;trustChainPath;cert;key;constructor(e){if(!e.useDefaultCertificateConfig&&!e.certificateConfigLocation)throw new $r("Either `useDefaultCertificateConfig` must be true or a `certificateConfigLocation` must be provided.");if(e.useDefaultCertificateConfig&&e.certificateConfigLocation)throw new $r("Both `useDefaultCertificateConfig` and `certificateConfigLocation` cannot be provided.");this.trustChainPath=e.trustChainPath,this.certificateConfigPath=e.certificateConfigLocation??""}async createMtlsHttpsAgent(){if(!this.key||!this.cert)throw new $r("Cannot create mTLS Agent with missing certificate or key");return new N2.Agent({key:this.key,cert:this.cert})}async getSubjectToken(){this.certificateConfigPath=await this.#e();let{certPath:e,keyPath:n}=await this.#t();return{cert:this.cert,key:this.key}=await this.#r(e,n),await this.#n(this.cert)}async#e(){let e=this.certificateConfigPath;if(e){if(await(0,pm.isValidFile)(e))return e;throw new ln(`Provided certificate config path is invalid: ${e}`)}let n=process.env[_r.CERTIFICATE_CONFIGURATION_ENV_VARIABLE];if(n){if(await(0,pm.isValidFile)(n))return n;throw new ln(`Path from environment variable "${_r.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" is invalid: ${n}`)}let o=(0,pm.getWellKnownCertificateConfigFileLocation)();if(await(0,pm.isValidFile)(o))return o;throw new ln(`Could not find certificate configuration file. Searched override path, the "${_r.CERTIFICATE_CONFIGURATION_ENV_VARIABLE}" env var, and the gcloud path (${o}).`)}async#t(){let e=this.certificateConfigPath,n;try{n=await fm.promises.readFile(e,"utf8")}catch{throw new ln(`Failed to read certificate config file at: ${e}`)}try{let o=JSON.parse(n),r=o?.cert_configs?.workload?.cert_path,i=o?.cert_configs?.workload?.key_path;if(!r||!i)throw new $r(`Certificate config file (${e}) is missing required "cert_path" or "key_path" in the workload config.`);return{certPath:r,keyPath:i}}catch(o){throw o instanceof $r?o:new $r(`Failed to parse certificate config from ${e}: ${o.message}`)}}async#r(e,n){let o,r;try{o=await fm.promises.readFile(e),new mm.X509Certificate(o)}catch(i){let s=i instanceof Error?i.message:String(i);throw new ln(`Failed to read certificate file at ${e}: ${s}`)}try{r=await fm.promises.readFile(n),(0,mm.createPrivateKey)(r)}catch(i){let s=i instanceof Error?i.message:String(i);throw new ln(`Failed to read private key file at ${n}: ${s}`)}return{cert:o,key:r}}async#n(e){let n=new mm.X509Certificate(e);if(!this.trustChainPath)return JSON.stringify([n.raw.toString("base64")]);try{let i=((await fm.promises.readFile(this.trustChainPath,"utf8")).match(/-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----/g)??[]).map((l,p)=>{try{return new mm.X509Certificate(l)}catch(f){let y=f instanceof Error?f.message:String(f);throw new $r(`Failed to parse certificate at index ${p} in trust chain file ${this.trustChainPath}: ${y}`)}}),s=i.findIndex(l=>n.raw.equals(l.raw)),u;if(s===-1)u=[n,...i];else if(s===0)u=i;else throw new $r(`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 $r)throw o;let r=o instanceof Error?o.message:String(o);throw new ln(`Failed to process certificate chain from ${this.trustChainPath}: ${r}`)}}};_r.CertificateSubjectTokenSupplier=YS});var tE=N(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.IdentityPoolClient=void 0;var z2=Ao(),QS=Gr(),D2=B$(),U2=q$(),Z$=V$(),M2=um(),H$=gt(),eE=class t extends z2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let n=(0,QS.originalOrCamelOptions)(e),o=n.get("credential_source"),r=n.get("subject_token_supplier");if(!o&&!r)throw new Error("A credential source or subject token supplier must be specified.");if(o&&r)throw new Error("Only one of credential source or subject token supplier can be specified.");if(r)this.subjectTokenSupplier=r,this.credentialSourceType="programmatic";else{let i=(0,QS.originalOrCamelOptions)(o),s=(0,QS.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 D2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new U2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new Z$.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 Z$.CertificateSubjectTokenSupplier){let n=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new M2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new H$.Gaxios({agent:n})}),this.transporter=new H$.Gaxios({...this.transporter.defaults||{},agent:n})}return e}};hm.IdentityPoolClient=eE});var nE=N(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.AwsRequestSigner=void 0;var gm=gt(),W$=yu(),G$="AWS4-HMAC-SHA256",j2="aws4_request",rE=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,n){this.getCredentials=e,this.region=n,this.crypto=(0,W$.createCrypto)()}async getRequestOptions(e){if(!e.url)throw new RangeError('"url" is required in "amzOptions"');let n=typeof e.data=="object"?JSON.stringify(e.data):e.data,o=e.url,r=e.method||"GET",i=e.body||n,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 F2({crypto:this.crypto,host:l.host,canonicalUri:l.pathname,canonicalQuerystring:l.search.slice(1),method:r,region:this.region,securityCredentials:u,requestPayload:i,additionalAmzHeaders:s}),f=gm.Gaxios.mergeHeaders(p.amzDate?{"x-amz-date":p.amzDate}:{},{authorization:p.authorizationHeader,host:l.host},s||{});u.token&&gm.Gaxios.mergeHeaders(f,{"x-amz-security-token":u.token});let y={url:o,method:r,headers:f};return i!==void 0&&(y.body=i),y}};ym.AwsRequestSigner=rE;async function Iu(t,e,n){return await t.signWithHmacSha256(e,n)}a(Iu,"sign");async function L2(t,e,n,o,r){let i=await Iu(t,`AWS4${e}`,n),s=await Iu(t,i,o),u=await Iu(t,s,r);return await Iu(t,u,"aws4_request")}a(L2,"getSigningKey");async function F2(t){let e=gm.Gaxios.mergeHeaders(t.additionalAmzHeaders),n=t.requestPayload||"",o=t.host.split(".")[0],r=new Date,i=r.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,""),s=r.toISOString().replace(/[-]/g,"").replace(/T.*/,"");t.securityCredentials.token&&e.set("x-amz-security-token",t.securityCredentials.token);let u=gm.Gaxios.mergeHeaders({host:t.host},e.has("date")?{}:{"x-amz-date":i},e),l="",p=[...u.keys()].sort();p.forEach(z=>{l+=`${z}:${u.get(z)}
|
|
41
|
-
`});let f=p.join(";"),y=await t.crypto.sha256DigestHex(
|
|
40
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,qu="secret must be a string or buffer",Ha="key must be a string or a buffer",OV="key must be a string, a buffer or an object",HP=typeof Mr.createPublicKey=="function";HP&&(Ha+=" or a KeyObject",qu+="or a KeyObject");function NN(t){if(!Za.isBuffer(t)&&typeof t!="string"&&(!HP||typeof t!="object"||typeof t.type!="string"||typeof t.asymmetricKeyType!="string"||typeof t.export!="function"))throw nn(Ha)}a(NN,"checkIsPublicKey");function $N(t){if(!Za.isBuffer(t)&&typeof t!="string"&&typeof t!="object")throw nn(OV)}a($N,"checkIsPrivateKey");function kV(t){if(!Za.isBuffer(t)){if(typeof t=="string")return t;if(!HP||typeof t!="object"||t.type!=="secret"||typeof t.export!="function")throw nn(qu)}}a(kV,"checkIsSecretKey");function ZP(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(ZP,"fromBase64");function zN(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(zN,"toBase64");function nn(t){var e=[].slice.call(arguments,1),r=ON.format.bind(ON,t).apply(null,e);return new TypeError(r)}a(nn,"typeError");function NV(t){return Za.isBuffer(t)||typeof t=="string"}a(NV,"bufferOrString");function Gu(t){return NV(t)||(t=JSON.stringify(t)),t}a(Gu,"normalizeInput");function DN(t){return a(function(r,o){kV(o),r=Gu(r);var n=Mr.createHmac("sha"+t,o),i=(n.update(r),n.digest("base64"));return ZP(i)},"sign")}a(DN,"createHmacSigner");var VP,$V="timingSafeEqual"in Mr?a(function(e,r){return e.byteLength!==r.byteLength?!1:Mr.timingSafeEqual(e,r)},"timingSafeEqual"):a(function(e,r){return VP||(VP=RN()),VP(e,r)},"timingSafeEqual");function zV(t){return a(function(r,o,n){var i=DN(t)(r,n);return $V(Za.from(o),Za.from(i))},"verify")}a(zV,"createHmacVerifier");function UN(t){return a(function(r,o){$N(o),r=Gu(r);var n=Mr.createSign("RSA-SHA"+t),i=(n.update(r),n.sign(o,"base64"));return ZP(i)},"sign")}a(UN,"createKeySigner");function MN(t){return a(function(r,o,n){NN(n),r=Gu(r),o=zN(o);var i=Mr.createVerify("RSA-SHA"+t);return i.update(r),i.verify(n,o,"base64")},"verify")}a(MN,"createKeyVerifier");function DV(t){return a(function(r,o){$N(o),r=Gu(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 ZP(i)},"sign")}a(DV,"createPSSKeySigner");function UV(t){return a(function(r,o,n){NN(n),r=Gu(r),o=zN(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(UV,"createPSSKeyVerifier");function MV(t){var e=UN(t);return a(function(){var o=e.apply(null,arguments);return o=kN.derToJose(o,"ES"+t),o},"sign")}a(MV,"createECDSASigner");function LV(t){var e=MN(t);return a(function(o,n,i){n=kN.joseToDer(n,"ES"+t).toString("base64");var s=e(o,n,i);return s},"verify")}a(LV,"createECDSAVerifer");function jV(){return a(function(){return""},"sign")}a(jV,"createNoneSigner");function FV(){return a(function(e,r){return r===""},"verify")}a(FV,"createNoneVerifier");LN.exports=a(function(e){var r={hs:DN,rs:UN,ps:DV,es:MV,none:jV},o={hs:zV,rs:MN,ps:UV,es:LV,none:FV},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!n)throw nn(RV,e);var i=(n[1]||n[3]).toLowerCase(),s=n[2];return{sign:r[i](s),verify:o[i](s)}},"jwa")});var KP=z((Ole,jN)=>{var BV=require("buffer").Buffer;jN.exports=a(function(e){return typeof e=="string"?e:typeof e=="number"||BV.isBuffer(e)?e.toString():JSON.stringify(e)},"toString")});var HN=z((Nle,VN)=>{var qV=qa().Buffer,FN=qP(),GV=WP(),VV=require("stream"),BN=KP(),JP=require("util");function qN(t,e){return qV.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}a(qN,"base64url");function HV(t,e,r){r=r||"utf8";var o=qN(BN(t),"binary"),n=qN(BN(e),r);return JP.format("%s.%s",o,n)}a(HV,"jwsSecuredInput");function GN(t){var e=t.header,r=t.payload,o=t.secret||t.privateKey,n=t.encoding,i=GV(e.alg),s=HV(e,r,n),u=i.sign(s,o);return JP.format("%s.%s",s,u)}a(GN,"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 FN(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new FN(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");JP.inherits(mm,VV);mm.prototype.sign=a(function(){try{var e=GN({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=GN;VN.exports=mm});var r$=z((zle,t$)=>{var WN=qa().Buffer,ZN=qP(),ZV=WP(),WV=require("stream"),KN=KP(),KV=require("util"),JV=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function XV(t){return Object.prototype.toString.call(t)==="[object Object]"}a(XV,"isObject");function YV(t){if(XV(t))return t;try{return JSON.parse(t)}catch{return}}a(YV,"safeJsonParse");function JN(t){var e=t.split(".",1)[0];return YV(WN.from(e,"base64").toString("binary"))}a(JN,"headerFromJWS");function QV(t){return t.split(".",2).join(".")}a(QV,"securedInputFromJWS");function XN(t){return t.split(".")[2]}a(XN,"signatureFromJWS");function e2(t,e){e=e||"utf8";var r=t.split(".")[1];return WN.from(r,"base64").toString(e)}a(e2,"payloadFromJWS");function YN(t){return JV.test(t)&&!!JN(t)}a(YN,"isValidJws");function QN(t,e,r){if(!e){var o=new Error("Missing algorithm parameter for jws.verify");throw o.code="MISSING_ALGORITHM",o}t=KN(t);var n=XN(t),i=QV(t),s=ZV(e);return s.verify(i,n,r)}a(QN,"jwsVerify");function e$(t,e){if(e=e||{},t=KN(t),!YN(t))return null;var r=JN(t);if(!r)return null;var o=e2(t);return(r.typ==="JWT"||e.json)&&(o=JSON.parse(o,e.encoding)),{header:r,payload:o,signature:XN(t)}}a(e$,"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 ZN(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new ZN(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");KV.inherits(Wa,WV);Wa.prototype.verify=a(function(){try{var e=QN(this.signature.buffer,this.algorithm,this.key.buffer),r=e$(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=e$;Wa.isValid=YN;Wa.verify=QN;t$.exports=Wa});var XP=z(No=>{var n$=HN(),hm=r$(),t2=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];No.ALGORITHMS=t2;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 _$=z(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.GoogleToken=void 0;var o$=gm(require("fs")),r2=bt(),n2=gm(XP()),o2=gm(require("path")),i2=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 a2(t,e){f$(t,e),e.add(t)}a(a2,"_classPrivateMethodInitSpec");function s2(t,e,r){f$(t,e),e.set(t,r)}a(s2,"_classPrivateFieldInitSpec");function f$(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}a(f$,"_checkPrivateRedeclaration");function i$(t,e,r){return t.set(on(t,e),r),r}a(i$,"_classPrivateFieldSet");function a$(t,e){return t.get(on(t,e))}a(a$,"_classPrivateFieldGet");function on(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(on,"_assertClassBrand");function s$(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,g$(o.key),o)}}a(s$,"_defineProperties");function m$(t,e,r){return e&&s$(t.prototype,e),r&&s$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}a(m$,"_createClass");function h$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}a(h$,"_classCallCheck");function c2(t,e,r){return e=Wu(e),u2(t,nE()?Reflect.construct(e,r||[],Wu(t).constructor):e.apply(t,r))}a(c2,"_callSuper");function u2(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 l2(t)}a(u2,"_possibleConstructorReturn");function l2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(l2,"_assertThisInitialized");function d2(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&&Zu(t,e)}a(d2,"_inherits");function YP(t){var e=typeof Map=="function"?new Map:void 0;return YP=a(function(o){if(o===null||!f2(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 p2(o,arguments,Wu(this).constructor)}return a(n,"Wrapper"),n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zu(n,o)},"_wrapNativeSuper"),YP(t)}a(YP,"_wrapNativeSuper");function p2(t,e,r){if(nE())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&Zu(n,r.prototype),n}a(p2,"_construct");function nE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nE=a(function(){return!!t},"_isNativeReflectConstruct"))()}a(nE,"_isNativeReflectConstruct");function f2(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}a(f2,"_isNativeFunction");function Zu(t,e){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Zu(t,e)}a(Zu,"_setPrototypeOf");function Wu(t){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wu(t)}a(Wu,"_getPrototypeOf");function Er(t,e,r){return(e=g$(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a(Er,"_defineProperty");function g$(t){var e=m2(t,"string");return Zn(e)=="symbol"?e:e+""}a(g$,"_toPropertyKey");function m2(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(m2,"_toPrimitive");function xr(){var t,e,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(h,_,E,S){var T=_&&_.prototype instanceof u?_:u,k=Object.create(T.prototype);return Sr(k,"_invoke",(function(L,Y,H){var X,re,ce,ee=0,Le=H||[],ue=!1,K={p:0,n:0,v:t,a:Z,f:Z.bind(t,4),d:a(function(Q,pe){return X=Q,re=0,ce=t,K.n=pe,s},"d")};function Z(oe,Q){for(re=oe,ce=Q,e=0;!ue&&ee&&!pe&&e<Le.length;e++){var pe,me=Le[e],ze=K.p,je=me[2];oe>3?(pe=je===Q)&&(ce=me[(re=me[4])?5:(re=3,3)],me[4]=me[5]=t):me[0]<=ze&&((pe=oe<2&&ze<me[1])?(re=0,K.v=Q,K.n=me[1]):ze<je&&(pe=oe<3||me[0]>Q||Q>je)&&(me[4]=oe,me[5]=Q,K.n=je,re=0))}if(pe||oe>1)return s;throw ue=!0,Q}return a(Z,"d"),function(oe,Q,pe){if(ee>1)throw TypeError("Generator is already running");for(ue&&Q===1&&Z(Q,pe),re=Q,ce=pe;(e=re<2?t:ce)||!ue;){X||(re?re<3?(re>1&&(K.n=-1),Z(re,ce)):K.n=ce:K.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=(ue=K.n<0)?ce:L.call(Y,K))!==s)break}catch(me){X=t,re=1,ce=me}finally{ee=1}}return{value:e,done:ue}}})(h,E,S),!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]"}),(xr=a(function(){return{w:i,m}},"_regenerator"))()}a(xr,"_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 c$(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(c$,"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){c$(i,o,n,s,u,"next",l)}a(s,"_next");function u(l){c$(i,o,n,s,u,"throw",l)}a(u,"_throw"),s(void 0)})}}a(Ka,"_asyncToGenerator");var u$=o$.readFile?(0,i2.promisify)(o$.readFile):Ka(xr().m(a(function t(){return xr().w(function(e){for(;;)switch(e.n){case 0:throw new Hu("use key rather than keyFile.","MISSING_CREDENTIALS");case 1:return e.a(2)}},t)},"_callee"))),l$="https://oauth2.googleapis.com/token",h2="https://oauth2.googleapis.com/revoke?token=",Hu=(function(t){function e(r,o){var n;return h$(this,e),n=c2(this,e,[r]),Er(n,"code",void 0),n.code=o,n}return a(e,"ErrorWithCode"),d2(e,t),m$(e)})(YP(Error)),Vu=new WeakMap,_n=new WeakSet,Lle=ym.GoogleToken=(function(){function t(e){h$(this,t),a2(this,_n),Er(this,"expiresAt",void 0),Er(this,"key",void 0),Er(this,"keyFile",void 0),Er(this,"iss",void 0),Er(this,"sub",void 0),Er(this,"scope",void 0),Er(this,"rawToken",void 0),Er(this,"tokenExpires",void 0),Er(this,"email",void 0),Er(this,"additionalClaims",void 0),Er(this,"eagerRefreshThresholdMillis",void 0),Er(this,"transporter",{request:a(function(o){return(0,r2.request)(o)},"request")}),s2(this,Vu,void 0),on(_n,this,y$).call(this,e)}return a(t,"GoogleToken"),m$(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;on(_n,this,d$).call(this,o).then(function(i){return n(null,i)},r);return}return on(_n,this,d$).call(this,o)},"getToken")},{key:"getCredentials",value:(function(){var e=Ka(xr().m(a(function o(n){var i,s,u,l,p,f,y;return xr().w(function(m){for(;;)switch(m.n){case 0:i=o2.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,u$(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 Hu("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,u$(n,"utf8");case 5:return f=m.v,m.a(2,{privateKey:f});case 6:throw new Hu("*.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 Hu("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){on(_n,this,p$).call(this).then(function(){return r()},r);return}return on(_n,this,p$).call(this)},"revokeToken")}])})();function d$(t){return QP.apply(this,arguments)}a(d$,"_getTokenAsync");function QP(){return QP=Ka(xr().m(a(function t(e){return xr().w(function(r){for(;;)switch(r.n){case 0:if(!(a$(Vu,this)&&!e.forceRefresh)){r.n=1;break}return r.a(2,a$(Vu,this));case 1:return r.p=1,r.n=2,i$(Vu,this,on(_n,this,g2).call(this,e));case 2:return r.a(2,r.v);case 3:return r.p=3,i$(Vu,this,void 0),r.f(3);case 4:return r.a(2)}},t,this,[[1,,3,4]])},"_callee3"))),QP.apply(this,arguments)}a(QP,"_getTokenAsync2");function g2(t){return eE.apply(this,arguments)}a(g2,"_getTokenAsyncInner");function eE(){return eE=Ka(xr().m(a(function t(e){var r;return xr().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||on(_n,this,y2).call(this);case 4:return o.a(2,on(_n,this,_2).call(this))}},t,this)},"_callee4"))),eE.apply(this,arguments)}a(eE,"_getTokenAsyncInner2");function y2(){if(!this.iss)throw new Hu("email is required.","MISSING_CREDENTIALS")}a(y2,"_ensureEmail");function p$(){return tE.apply(this,arguments)}a(p$,"_revokeTokenAsync");function tE(){return tE=Ka(xr().m(a(function t(){var e;return xr().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=h2+this.accessToken,r.n=2,this.transporter.request({url:e,retry:!0});case 2:on(_n,this,y$).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"))),tE.apply(this,arguments)}a(tE,"_revokeTokenAsync2");function y$(){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(y$,"_configure");function _2(){return rE.apply(this,arguments)}a(_2,"_requestToken");function rE(){return rE=Ka(xr().m(a(function t(){var e,r,o,n,i,s,u,l,p,f;return xr().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:l$,exp:e+3600,iat:e,sub:this.sub},r),n=n2.sign({header:{alg:"RS256"},payload:o,secret:this.key}),y.p=1,y.n=2,this.transporter.request({method:"POST",url:l$,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"))),rE.apply(this,arguments)}a(rE,"_requestToken2")});var iE=z(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.JWTAccess=void 0;var v2=XP(),b2=tn(),v$={alg:"RS256",typ:"JWT"},oE=class t{static{a(this,"JWTAccess")}email;key;keyId;projectId;eagerRefreshThresholdMillis;cache=new b2.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?{...v$,kid:this.keyId}:v$,y=Object.assign(p,r),m=v2.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=oE});var sE=z(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.JWT=void 0;var b$=_$(),P2=iE(),E2=Ti(),vm=Pr(),aE=class t extends E2.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 P2.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 b$.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 b$.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=aE});var uE=z(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.UserRefreshClient=Ja.USER_REFRESH_ACCOUNT_TYPE=void 0;var S2=Ti(),x2=Pr();Ja.USER_REFRESH_ACCOUNT_TYPE="authorized_user";var cE=class t extends S2.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 x2.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=cE});var dE=z(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Impersonated=Xa.IMPERSONATED_ACCOUNT_TYPE=void 0;var P$=Ti(),T2=bt(),A2=tn();Xa.IMPERSONATED_ACCOUNT_TYPE="impersonated_service_account";var lE=class t extends P$.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 P$.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 T2.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=lE});var fE=z(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OAuthClientAuthHandler=void 0;Ku.getErrorFromOAuthErrorResponse=C2;var Ya=bt(),w2=Lu(),I2=["PUT","POST","PATCH"],pE=class{static{a(this,"OAuthClientAuthHandler")}#e=(0,w2.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(!I2.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"]}}}};Ku.OAuthClientAuthHandler=pE;function C2(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(C2,"getErrorFromOAuthErrorResponse")});var Em=z(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.StsCredentials=void 0;var R2=bt(),O2=Pr(),E$=fE(),k2=tn(),mE=class t extends E$.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,k2.removeUndefinedValuesInObject)(n))};O2.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 R2.GaxiosError&&s.response?(0,E$.getErrorFromOAuthErrorResponse)(s.response.data,s):s}}};Pm.StsCredentials=mE});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 N2=bt(),$2=require("stream"),hE=Pr(),z2=Em(),S$=tn(),D2=RP(),U2="urn:ietf:params:oauth:grant-type:token-exchange",M2="urn:ietf:params:oauth:token-type:access_token",gE="https://www.googleapis.com/auth/cloud-platform",L2=3600;Lr.EXPIRATION_TIME_OFFSET=300*1e3;Lr.EXTERNAL_ACCOUNT_TYPE="external_account";Lr.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";var j2="//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+",F2="https://sts.{universeDomain}/v1/token",yE=class t extends hE.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,S$.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")??F2.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,S$.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 z2.StsCredentials({tokenExchangeEndpoint:this.tokenUrl,clientAuthentication:this.clientAuth}),this.scopes=r.get("scopes")||[gE],this.cachedAccessToken=null,this.audience=r.get("audience"),this.subjectTokenType=s,this.workforcePoolUserProject=u;let y=new RegExp(j2);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=L2),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}`};hE.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=N2.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 $2.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:U2,audience:this.audience,requestedTokenType:M2,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[gE]: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"}};hE.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||[gE]}getMetricsHeaderValue(){let e=process.version.replace(/^v/,""),r=this.serviceAccountImpersonationUrl!==void 0,o=this.credentialSourceType?this.credentialSourceType:"unknown";return`gl-node/${e} auth/${D2.pkg.version} google-byoid-sdk source/${o} sa-impersonation/${r} config-lifetime/${this.configLifetimeRequested}`}getTokenUrl(){return this.tokenUrl}};Lr.BaseExternalAccountClient=yE});var x$=z(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.FileSubjectTokenSupplier=void 0;var vE=require("util"),bE=require("fs"),B2=(0,vE.promisify)(bE.readFile??(()=>{})),q2=(0,vE.promisify)(bE.realpath??(()=>{})),G2=(0,vE.promisify)(bE.lstat??(()=>{})),_E=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 q2(e),!(await G2(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 B2(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}};Sm.FileSubjectTokenSupplier=_E});var T$=z(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.UrlSubjectTokenSupplier=void 0;var V2=Pr(),PE=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};V2.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}};xm.UrlSubjectTokenSupplier=PE});var A$=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=tn(),Am=require("fs"),wm=require("crypto"),H2=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 EE=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 H2.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 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=EE});var TE=z(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.IdentityPoolClient=void 0;var Z2=$o(),SE=tn(),W2=x$(),K2=T$(),w$=A$(),J2=Em(),I$=bt(),xE=class t extends Z2.BaseExternalAccountClient{static{a(this,"IdentityPoolClient")}subjectTokenSupplier;constructor(e){super(e);let r=(0,SE.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,SE.originalOrCamelOptions)(o),s=(0,SE.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 W2.FileSubjectTokenSupplier({filePath:p,formatType:u,subjectTokenFieldName:l});else if(f)this.credentialSourceType="url",this.subjectTokenSupplier=new K2.UrlSubjectTokenSupplier({url:f,formatType:u,subjectTokenFieldName:l,headers:m,additionalGaxiosOptions:t.RETRY_CONFIG});else if(y){this.credentialSourceType="certificate";let h=new w$.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 w$.CertificateSubjectTokenSupplier){let r=await this.subjectTokenSupplier.createMtlsHttpsAgent();this.stsCredential=new J2.StsCredentials({tokenExchangeEndpoint:this.getTokenUrl(),clientAuthentication:this.clientAuth,transporter:new I$.Gaxios({agent:r})}),this.transporter=new I$.Gaxios({...this.transporter.defaults||{},agent:r})}return e}};Im.IdentityPoolClient=xE});var wE=z(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.AwsRequestSigner=void 0;var Cm=bt(),R$=Lu(),C$="AWS4-HMAC-SHA256",X2="aws4_request",AE=class{static{a(this,"AwsRequestSigner")}getCredentials;region;crypto;constructor(e,r){this.getCredentials=e,this.region=r,this.crypto=(0,R$.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 Q2({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=AE;async function Ju(t,e,r){return await t.signWithHmacSha256(e,r)}a(Ju,"sign");async function Y2(t,e,r,o,n){let i=await Ju(t,`AWS4${e}`,r),s=await Ju(t,i,o),u=await Ju(t,s,n);return await Ju(t,u,"aws4_request")}a(Y2,"getSigningKey");async function Q2(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
|
+
`});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}/${X2}`,_=`${C$}
|
|
47
47
|
${i}
|
|
48
48
|
${h}
|
|
49
|
-
`+await t.crypto.sha256DigestHex(m),E=await L2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),P=await Iu(t.crypto,E,_),x=`${G$} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,W$.fromArrayBufferToHex)(P)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:x,canonicalQuerystring:t.canonicalQuerystring}}a(F2,"generateAuthenticationHeaderMap")});var J$=N(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.DefaultAwsSecurityCredentialsSupplier=void 0;var _m=mr(),oE=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 n=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&n.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:n};_m.AuthClient.setMethodName(o,"getAwsRegion");let r=await e.transporter.request(o);return r.data.substr(0,r.data.length-1)}async getAwsSecurityCredentials(e){if(this.#o)return this.#o;let n=new Headers;this.imdsV2SessionTokenUrl&&n.set("x-aws-ec2-metadata-token",await this.#e(e.transporter));let o=await this.#t(n,e.transporter),r=await this.#r(o,n,e.transporter);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,token:r.Token}}async#e(e){let n={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return _m.AuthClient.setMethodName(n,"#getImdsV2SessionToken"),(await e.request(n)).data}async#t(e,n){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 _m.AuthClient.setMethodName(o,"#getAwsRoleName"),(await n.request(o)).data}async#r(e,n,o){let r={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${e}`,headers:n};return _m.AuthClient.setMethodName(r,"#retrieveAwsSecurityCredentials"),(await o.request(r)).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}};vm.DefaultAwsSecurityCredentialsSupplier=oE});var aE=N(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.AwsClient=void 0;var B2=nE(),q2=Ao(),V2=J$(),K$=Gr(),Z2=gt(),iE=class t extends q2.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 n=(0,K$.originalOrCamelOptions)(e),o=n.get("credential_source"),r=n.get("aws_security_credentials_supplier");if(!o&&!r)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&r)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(r)this.awsSecurityCredentialsSupplier=r,this.regionalCredVerificationUrl=t.#e,this.credentialSourceType="programmatic";else{let i=(0,K$.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 V2.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 B2.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"}),n=[];return Z2.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},e.headers).forEach((r,i)=>n.push({key:i,value:r})),encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:n}))}};bm.AwsClient=iE});var dE=N(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.InvalidSubjectTokenError=_t.InvalidMessageFieldError=_t.InvalidCodeFieldError=_t.InvalidTokenTypeFieldError=_t.InvalidExpirationTimeFieldError=_t.InvalidSuccessFieldError=_t.InvalidVersionFieldError=_t.ExecutableResponseError=_t.ExecutableResponse=void 0;var Sm="urn:ietf:params:oauth:token-type:saml2",sE="urn:ietf:params:oauth:token-type:id_token",cE="urn:ietf:params:oauth:token-type:jwt",uE=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new Em("Executable response must contain a 'version' field.");if(e.success===void 0)throw new Pm("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!==Sm&&this.tokenType!==sE&&this.tokenType!==cE)throw new xm(`Executable response must contain a 'token_type' field when successful and it must be one of ${sE}, ${cE}, or ${Sm}.`);if(this.tokenType===Sm){if(!e.saml_response)throw new Ru(`Executable response must contain a 'saml_response' field when token_type=${Sm}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Ru(`Executable response must contain a 'id_token' field when token_type=${sE} or ${cE}.`);this.subjectToken=e.id_token}}else{if(!e.code)throw new Tm("Executable response must contain a 'code' field when unsuccessful.");if(!e.message)throw new Am("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)}};_t.ExecutableResponse=uE;var dn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};_t.ExecutableResponseError=dn;var Em=class extends dn{static{a(this,"InvalidVersionFieldError")}};_t.InvalidVersionFieldError=Em;var Pm=class extends dn{static{a(this,"InvalidSuccessFieldError")}};_t.InvalidSuccessFieldError=Pm;var lE=class extends dn{static{a(this,"InvalidExpirationTimeFieldError")}};_t.InvalidExpirationTimeFieldError=lE;var xm=class extends dn{static{a(this,"InvalidTokenTypeFieldError")}};_t.InvalidTokenTypeFieldError=xm;var Tm=class extends dn{static{a(this,"InvalidCodeFieldError")}};_t.InvalidCodeFieldError=Tm;var Am=class extends dn{static{a(this,"InvalidMessageFieldError")}};_t.InvalidMessageFieldError=Am;var Ru=class extends dn{static{a(this,"InvalidSubjectTokenError")}};_t.InvalidSubjectTokenError=Ru});var mE=N(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.PluggableAuthHandler=qa.ExecutableError=void 0;var gi=dE(),H2=require("child_process"),pE=require("fs"),wm=class extends Error{static{a(this,"ExecutableError")}code;constructor(e,n){super(`The executable failed with exit code: ${n} and error message: ${e}.`),this.code=n,Object.setPrototypeOf(this,new.target.prototype)}};qa.ExecutableError=wm;var fE=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((n,o)=>{let r=H2.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(e)}}),i="";r.stdout.on("data",u=>{i+=u}),r.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(r.removeAllListeners(),r.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);r.on("close",u=>{if(clearTimeout(s),u===0)try{let l=JSON.parse(i),p=new gi.ExecutableResponse(l);return n(p)}catch(l){return l instanceof gi.ExecutableResponseError?o(l):o(new gi.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new wm(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let e;try{e=await pE.promises.realpath(this.outputFile)}catch{return}if(!(await pE.promises.lstat(e)).isFile())return;let n=await pE.promises.readFile(e,{encoding:"utf8"});if(n!=="")try{let o=JSON.parse(n);return new gi.ExecutableResponse(o).isValid()?new gi.ExecutableResponse(o):void 0}catch(o){throw o instanceof gi.ExecutableResponseError?o:new gi.ExecutableResponseError(`The output file contained an invalid response: ${n}`)}}static parseCommand(e){let n=e.match(/(?:[^\s"]+|"[^"]*")+/g);if(!n)throw new Error(`Provided command: "${e}" could not be parsed.`);for(let o=0;o<n.length;o++)n[o][0]==='"'&&n[o].slice(-1)==='"'&&(n[o]=n[o].slice(1,-1));return n}};qa.PluggableAuthHandler=fE});var gE=N(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.PluggableAuthClient=Va.ExecutableError=void 0;var G2=Ao(),W2=dE(),X$=mE(),J2=mE();Object.defineProperty(Va,"ExecutableError",{enumerable:!0,get:a(function(){return J2.ExecutableError},"get")});var K2=30*1e3,Y$=5*1e3,Q$=120*1e3,X2="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",ek=1,hE=class extends G2.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=K2;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<Y$||this.timeoutMillis>Q$)throw new Error(`Timeout must be between ${Y$} and ${Q$} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new X$.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[X2]!=="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 n=new Map;n.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),n.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),n.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&n.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&n.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),e=await this.handler.retrieveResponseFromExecutable(n)}if(e.version>ek)throw new Error(`Version of executable is not currently supported, maximum supported version is ${ek}.`);if(!e.success)throw new X$.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new W2.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}};Va.PluggableAuthClient=hE});var _E=N(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.ExternalAccountClient=void 0;var Y2=Ao(),Q2=tE(),eV=aE(),tV=gE(),yE=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===Y2.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new eV.AwsClient(e):e.credential_source?.executable?new tV.PluggableAuthClient(e):new Q2.IdentityPoolClient(e):null}};Im.ExternalAccountClient=yE});var SE=N(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.ExternalAccountAuthorizedUserClient=Za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var rk=mr(),tk=qS(),nk=gt(),rV=require("stream"),nV=Ao();Za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var oV="https://sts.{universeDomain}/v1/oauthtoken",vE=class t extends tk.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(e){super(e),this.#e=e.tokenRefreshEndpoint}async refreshToken(e,n){let o={...t.RETRY_CONFIG,url:this.#e,method:"POST",headers:n,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:e})};rk.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let r=await this.transporter.request(o),i=r.data;return i.res=r,i}catch(r){throw r instanceof nk.GaxiosError&&r.response?(0,tk.getErrorFromOAuthErrorResponse)(r.response.data,r):r}}},bE=class extends rk.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 n={confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret};this.externalAccountAuthorizedUserHandler=new vE({tokenRefreshEndpoint:e.token_url??oV.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:n}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=nV.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(),n=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(n)}request(e,n){if(n)this.requestAsync(e).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(e)}async requestAsync(e,n=!1){let o;try{let r=await this.getRequestHeaders();e.headers=nk.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,r),o=await this.transporter.request(e)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof rV.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw r}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 n=new Date().getTime();return e.expiry_date?n>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};Za.ExternalAccountAuthorizedUserClient=bE});var sk=N(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.GoogleAuth=Xr.GoogleAuthExceptionMessages=void 0;var iV=require("child_process"),Ou=require("fs"),aV=gt(),Cu=gu(),sV=require("os"),EE=require("path"),cV=yu(),uV=hS(),lV=yS(),dV=_S(),Ha=US(),ok=jS(),Ga=FS(),pV=_E(),$u=Ao(),PE=mr(),ik=SE(),ak=Gr();Xr.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),E=await Y2(t.crypto,t.securityCredentials.secretAccessKey,s,t.region,o),S=await Ju(t.crypto,E,_),T=`${C$} Credential=${t.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,R$.fromArrayBufferToHex)(S)}`;return{amzDate:e.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:t.canonicalQuerystring}}a(Q2,"generateAuthenticationHeaderMap")});var O$=z(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.DefaultAwsSecurityCredentialsSupplier=void 0;var Om=Pr(),IE=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=IE});var RE=z(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.AwsClient=void 0;var eH=wE(),tH=$o(),rH=O$(),k$=tn(),nH=bt(),CE=class t extends tH.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,k$.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,k$.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 rH.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 eH.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 nH.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=CE});var zE=z(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.InvalidSubjectTokenError=Et.InvalidMessageFieldError=Et.InvalidCodeFieldError=Et.InvalidTokenTypeFieldError=Et.InvalidExpirationTimeFieldError=Et.InvalidSuccessFieldError=Et.InvalidVersionFieldError=Et.ExecutableResponseError=Et.ExecutableResponse=void 0;var $m="urn:ietf:params:oauth:token-type:saml2",OE="urn:ietf:params:oauth:token-type:id_token",kE="urn:ietf:params:oauth:token-type:jwt",NE=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(e){if(!e.version)throw new zm("Executable response must contain a 'version' field.");if(e.success===void 0)throw new Dm("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!==OE&&this.tokenType!==kE)throw new Um(`Executable response must contain a 'token_type' field when successful and it must be one of ${OE}, ${kE}, or ${$m}.`);if(this.tokenType===$m){if(!e.saml_response)throw new Xu(`Executable response must contain a 'saml_response' field when token_type=${$m}.`);this.subjectToken=e.saml_response}else{if(!e.id_token)throw new Xu(`Executable response must contain a 'id_token' field when token_type=${OE} or ${kE}.`);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)}};Et.ExecutableResponse=NE;var bn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}};Et.ExecutableResponseError=bn;var zm=class extends bn{static{a(this,"InvalidVersionFieldError")}};Et.InvalidVersionFieldError=zm;var Dm=class extends bn{static{a(this,"InvalidSuccessFieldError")}};Et.InvalidSuccessFieldError=Dm;var $E=class extends bn{static{a(this,"InvalidExpirationTimeFieldError")}};Et.InvalidExpirationTimeFieldError=$E;var Um=class extends bn{static{a(this,"InvalidTokenTypeFieldError")}};Et.InvalidTokenTypeFieldError=Um;var Mm=class extends bn{static{a(this,"InvalidCodeFieldError")}};Et.InvalidCodeFieldError=Mm;var Lm=class extends bn{static{a(this,"InvalidMessageFieldError")}};Et.InvalidMessageFieldError=Lm;var Xu=class extends bn{static{a(this,"InvalidSubjectTokenError")}};Et.InvalidSubjectTokenError=Xu});var ME=z(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.PluggableAuthHandler=Qa.ExecutableError=void 0;var Ai=zE(),oH=require("child_process"),DE=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 UE=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=oH.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 DE.promises.realpath(this.outputFile)}catch{return}if(!(await DE.promises.lstat(e)).isFile())return;let r=await DE.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=UE});var jE=z(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PluggableAuthClient=es.ExecutableError=void 0;var iH=$o(),aH=zE(),N$=ME(),sH=ME();Object.defineProperty(es,"ExecutableError",{enumerable:!0,get:a(function(){return sH.ExecutableError},"get")});var cH=30*1e3,$$=5*1e3,z$=120*1e3,uH="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",D$=1,LE=class extends iH.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=cH;else if(this.timeoutMillis=e.credential_source.executable.timeout_millis,this.timeoutMillis<$$||this.timeoutMillis>z$)throw new Error(`Timeout must be between ${$$} and ${z$} milliseconds.`);this.outputFile=e.credential_source.executable.output_file,this.handler=new N$.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[uH]!=="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>D$)throw new Error(`Version of executable is not currently supported, maximum supported version is ${D$}.`);if(!e.success)throw new N$.ExecutableError(e.errorMessage,e.errorCode);if(this.outputFile&&!e.expirationTime)throw new aH.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=LE});var BE=z(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.ExternalAccountClient=void 0;var lH=$o(),dH=TE(),pH=RE(),fH=jE(),FE=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===lH.EXTERNAL_ACCOUNT_TYPE?e.credential_source?.environment_id?new pH.AwsClient(e):e.credential_source?.executable?new fH.PluggableAuthClient(e):new dH.IdentityPoolClient(e):null}};Fm.ExternalAccountClient=FE});var VE=z(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ExternalAccountAuthorizedUserClient=ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var M$=Pr(),U$=fE(),L$=bt(),mH=require("stream"),hH=$o();ts.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var gH="https://sts.{universeDomain}/v1/oauthtoken",qE=class t extends U$.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})};M$.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 L$.GaxiosError&&n.response?(0,U$.getErrorFromOAuthErrorResponse)(n.response.data,n):n}}},GE=class extends M$.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 qE({tokenRefreshEndpoint:e.token_url??gH.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:r}),this.cachedAccessToken=null,this.quotaProjectId=e.quota_project_id,typeof e?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=hH.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=L$.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 mH.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=GE});var q$=z(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.GoogleAuth=an.GoogleAuthExceptionMessages=void 0;var yH=require("child_process"),Yu=require("fs"),_H=bt(),Qu=Mu(),vH=require("os"),HE=require("path"),bH=Lu(),PH=LP(),EH=FP(),SH=BP(),rs=sE(),j$=uE(),ns=dE(),xH=BE(),el=$o(),ZE=Pr(),F$=VE(),B$=tn();an.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 xE=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(Xr.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(n=>e(null,n),e);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(e){if(e instanceof Error&&e.message===Xr.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(Xr.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 Cu.universe("universe-domain"),e||=PE.DEFAULT_UNIVERSE}catch(n){if(n&&n?.response?.status===404)e=PE.DEFAULT_UNIVERSE;else throw n}return e}async getUniverseDomain(){let e=(0,ak.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=PE.DEFAULT_UNIVERSE}return e}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},n){let o;if(typeof e=="function"?n=e:o=e,n)this.getApplicationDefaultAsync(o).then(r=>n(null,r.credential,r.projectId),n);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(e={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let n;if(n=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e),n)return n instanceof Ha.JWT?n.scopes=this.scopes:n instanceof $u.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(n=await this._tryGetApplicationCredentialsFromWellKnownFile(e),n)return n instanceof Ha.JWT?n.scopes=this.scopes:n instanceof $u.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new uV.Compute(e));throw new Error(Xr.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(e,n=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return n&&(e.quotaProjectId=n),this.cachedCredential=e,{credential:e,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=Cu.getGCPResidency()||await Cu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){let n=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!n||n.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(n,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 n=null;if(this._isWindows())n=process.env.APPDATA;else{let r=process.env.HOME;r&&(n=EE.join(r,".config"))}return n&&(n=EE.join(n,"gcloud","application_default_credentials.json"),Ou.existsSync(n)||(n=null)),n?await this._getApplicationCredentialsFromFilePath(n,e):null}async _getApplicationCredentialsFromFilePath(e,n={}){if(!e||e.length===0)throw new Error("The file path is invalid.");try{if(e=Ou.realpathSync(e),!Ou.lstatSync(e).isFile())throw new Error}catch(r){throw r instanceof Error&&(r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`),r}let o=Ou.createReadStream(e);return this.fromStream(o,n)}fromImpersonatedJSON(e){if(!e)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(e.type!==Ga.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${Ga.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 n=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 r=(this.scopes||e.scopes||this.defaultScopes)??[];return new Ga.Impersonated({...e,sourceClient:n,targetPrincipal:o,targetScopes:Array.isArray(r)?r:[r]})}fromJSON(e,n={}){let o,r=(0,ak.originalOrCamelOptions)(n).get("universe_domain");return e.type===ok.USER_REFRESH_ACCOUNT_TYPE?(o=new ok.UserRefreshClient(n),o.fromJSON(e)):e.type===Ga.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===$u.EXTERNAL_ACCOUNT_TYPE?(o=pV.ExternalAccountClient.fromJSON({...e,...n}),o.scopes=this.getAnyScopes()):e.type===ik.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new ik.ExternalAccountAuthorizedUserClient({...e,...n}):(n.scopes=this.scopes,o=new Ha.JWT(n),this.setGapicJWTValues(o),o.fromJSON(e)),r&&(o.universeDomain=r),o}_cacheClientFromJSON(e,n){let o=this.fromJSON(e,n);return this.jsonContent=e,this.cachedCredential=o,o}fromStream(e,n={},o){let r={};if(typeof n=="function"?o=n:r=n,o)this.fromStreamAsync(e,r).then(i=>o(null,i),o);else return this.fromStreamAsync(e,r)}fromStreamAsync(e,n){return new Promise((o,r)=>{if(!e)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];e.setEncoding("utf8").on("error",r).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,n);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new Ha.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return r(s)}})})}fromAPIKey(e,n={}){return new Ha.JWT({...n,apiKey:e})}_isWindows(){let e=sV.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,iV.exec)("gcloud config config-helper --format json",(n,o)=>{if(!n&&o)try{let r=JSON.parse(o).configuration.properties.core.project;e(r);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 n=await this.getClient();if(n&&n.projectId)return n.projectId}let e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return e?e.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==$u.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Cu.project("project-id")}catch{return null}}getCredentials(e){if(e)this.getCredentialsAsync().then(n=>e(null,n),e);else return this.getCredentialsAsync()}async getCredentialsAsync(){let e=await this.getClient();if(e instanceof Ga.Impersonated)return{client_email:e.getTargetPrincipal()};if(e instanceof $u.BaseExternalAccountClient){let n=e.getServiceAccountEmail();if(n)return{client_email:n,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[n,o]=await Promise.all([Cu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:n,universe_domain:o}}throw new Error(Xr.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=EE.resolve(this.keyFilename),n=Ou.createReadStream(e);return await this.fromStreamAsync(n,this.clientOptions)}else if(this.apiKey){let e=await this.fromAPIKey(this.apiKey,this.clientOptions);e.scopes=this.scopes;let{credential:n}=await this.#t(e);return n}else{let{credential:e}=await this.getApplicationDefaultAsync(this.clientOptions);return e}}async getIdTokenClient(e){let n=await this.getClient();if(!("fetchIdToken"in n))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 lV.IdTokenClient({targetAudience:e,idTokenProvider:n})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(e){return(await this.getClient()).getRequestHeaders(e)}async authorizeRequest(e={}){let n=e.url,r=await(await this.getClient()).getRequestHeaders(n);return e.headers=aV.Gaxios.mergeHeaders(e.headers,r),e}async fetch(...e){return(await this.getClient()).fetch(...e)}async request(e){return(await this.getClient()).request(e)}getEnv(){return(0,dV.getEnv)()}async sign(e,n){let o=await this.getClient(),r=await this.getUniverseDomain();if(n=n||`https://iamcredentials.${r}/v1/projects/-/serviceAccounts/`,o instanceof Ga.Impersonated)return(await o.sign(e)).signedBlob;let i=(0,cV.createCrypto)();if(o instanceof Ha.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,n)}async signBlob(e,n,o,r){let i=new URL(r+`${n}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:e.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};Xr.GoogleAuth=xE});var ck=N(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.IAMAuth=void 0;var TE=class{static{a(this,"IAMAuth")}selector;token;constructor(e,n){this.selector=e,this.token=n,this.selector=e,this.token=n}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};Rm.IAMAuth=TE});var uk=N(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.DownscopedClient=pn.EXPIRATION_TIME_OFFSET=pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var fV=gt(),mV=require("stream"),AE=mr(),hV=um(),gV="urn:ietf:params:oauth:grant-type:token-exchange",yV="urn:ietf:params:oauth:token-type:access_token",_V="urn:ietf:params:oauth:token-type:access_token";pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;pn.EXPIRATION_TIME_OFFSET=300*1e3;var wE=class extends AE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,n={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof AE.AuthClient?{}:e),e instanceof AE.AuthClient?(this.authClient=e,this.credentialAccessBoundary=n):(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 hV.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(),n=new Headers({authorization:`Bearer ${e.token}`});return this.addSharedMetadataHeaders(n)}request(e,n){if(n)this.requestAsync(e).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(e)}async requestAsync(e,n=!1){let o;try{let r=await this.getRequestHeaders();e.headers=fV.Gaxios.mergeHeaders(e.headers),this.addUserProjectAndAuthHeaders(e.headers,r),o=await this.transporter.request(e)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof mV.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(e,!0)}throw r}return o}async refreshAccessTokenAsync(){let e=(await this.authClient.getAccessToken()).token,n={grantType:gV,requestedTokenType:yV,subjectToken:e,subjectTokenType:_V},o=await this.stsCredential.exchangeToken(n,void 0,this.credentialAccessBoundary),r=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:r;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 n=new Date().getTime();return e.expiry_date?n>=e.expiry_date-this.eagerRefreshThresholdMillis:!1}};pn.DownscopedClient=wE});var lk=N(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.PassThroughClient=void 0;var vV=mr(),IE=class extends vV.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};Om.PassThroughClient=IE});var ku=N(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.GoogleAuth=fe.auth=fe.PassThroughClient=fe.ExternalAccountAuthorizedUserClient=fe.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=fe.ExecutableError=fe.PluggableAuthClient=fe.DownscopedClient=fe.BaseExternalAccountClient=fe.ExternalAccountClient=fe.IdentityPoolClient=fe.AwsRequestSigner=fe.AwsClient=fe.UserRefreshClient=fe.LoginTicket=fe.ClientAuthentication=fe.OAuth2Client=fe.CodeChallengeMethod=fe.Impersonated=fe.JWT=fe.JWTAccess=fe.IdTokenClient=fe.IAMAuth=fe.GCPEnv=fe.Compute=fe.DEFAULT_UNIVERSE=fe.AuthClient=fe.gaxios=fe.gcpMetadata=void 0;var dk=sk();Object.defineProperty(fe,"GoogleAuth",{enumerable:!0,get:a(function(){return dk.GoogleAuth},"get")});fe.gcpMetadata=gu();fe.gaxios=gt();var pk=mr();Object.defineProperty(fe,"AuthClient",{enumerable:!0,get:a(function(){return pk.AuthClient},"get")});Object.defineProperty(fe,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return pk.DEFAULT_UNIVERSE},"get")});var bV=hS();Object.defineProperty(fe,"Compute",{enumerable:!0,get:a(function(){return bV.Compute},"get")});var SV=_S();Object.defineProperty(fe,"GCPEnv",{enumerable:!0,get:a(function(){return SV.GCPEnv},"get")});var EV=ck();Object.defineProperty(fe,"IAMAuth",{enumerable:!0,get:a(function(){return EV.IAMAuth},"get")});var PV=yS();Object.defineProperty(fe,"IdTokenClient",{enumerable:!0,get:a(function(){return PV.IdTokenClient},"get")});var xV=zS();Object.defineProperty(fe,"JWTAccess",{enumerable:!0,get:a(function(){return xV.JWTAccess},"get")});var TV=US();Object.defineProperty(fe,"JWT",{enumerable:!0,get:a(function(){return TV.JWT},"get")});var AV=FS();Object.defineProperty(fe,"Impersonated",{enumerable:!0,get:a(function(){return AV.Impersonated},"get")});var RE=hi();Object.defineProperty(fe,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return RE.CodeChallengeMethod},"get")});Object.defineProperty(fe,"OAuth2Client",{enumerable:!0,get:a(function(){return RE.OAuth2Client},"get")});Object.defineProperty(fe,"ClientAuthentication",{enumerable:!0,get:a(function(){return RE.ClientAuthentication},"get")});var wV=dS();Object.defineProperty(fe,"LoginTicket",{enumerable:!0,get:a(function(){return wV.LoginTicket},"get")});var IV=jS();Object.defineProperty(fe,"UserRefreshClient",{enumerable:!0,get:a(function(){return IV.UserRefreshClient},"get")});var RV=aE();Object.defineProperty(fe,"AwsClient",{enumerable:!0,get:a(function(){return RV.AwsClient},"get")});var OV=nE();Object.defineProperty(fe,"AwsRequestSigner",{enumerable:!0,get:a(function(){return OV.AwsRequestSigner},"get")});var CV=tE();Object.defineProperty(fe,"IdentityPoolClient",{enumerable:!0,get:a(function(){return CV.IdentityPoolClient},"get")});var $V=_E();Object.defineProperty(fe,"ExternalAccountClient",{enumerable:!0,get:a(function(){return $V.ExternalAccountClient},"get")});var kV=Ao();Object.defineProperty(fe,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return kV.BaseExternalAccountClient},"get")});var NV=uk();Object.defineProperty(fe,"DownscopedClient",{enumerable:!0,get:a(function(){return NV.DownscopedClient},"get")});var fk=gE();Object.defineProperty(fe,"PluggableAuthClient",{enumerable:!0,get:a(function(){return fk.PluggableAuthClient},"get")});Object.defineProperty(fe,"ExecutableError",{enumerable:!0,get:a(function(){return fk.ExecutableError},"get")});var mk=SE();Object.defineProperty(fe,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return mk.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(fe,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return mk.ExternalAccountAuthorizedUserClient},"get")});var zV=lk();Object.defineProperty(fe,"PassThroughClient",{enumerable:!0,get:a(function(){return zV.PassThroughClient},"get")});var DV=new dk.GoogleAuth;fe.auth=DV});var hk=N(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.getAPI=UV;function UV(t,e,n,o){let r;if(typeof e=="string")r=e,e={};else if(typeof e=="object")r=e.version,delete e.version;else throw new Error("Argument error: Accepts only string or object");try{let i=n[r],s=new i(e,o);return Object.freeze(s)}catch(i){throw new Error(`Unable to load endpoint ${t}("${r}"): ${i.message}`)}}a(UV,"getAPI")});var yk=N((Bae,gk)=>{gk.exports=require("util").inspect});var Mu=N((qae,Uk)=>{var LE=typeof Map=="function"&&Map.prototype,CE=Object.getOwnPropertyDescriptor&&LE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$m=LE&&CE&&typeof CE.get=="function"?CE.get:null,_k=LE&&Map.prototype.forEach,FE=typeof Set=="function"&&Set.prototype,$E=Object.getOwnPropertyDescriptor&&FE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,km=FE&&$E&&typeof $E.get=="function"?$E.get:null,vk=FE&&Set.prototype.forEach,MV=typeof WeakMap=="function"&&WeakMap.prototype,zu=MV?WeakMap.prototype.has:null,jV=typeof WeakSet=="function"&&WeakSet.prototype,Du=jV?WeakSet.prototype.has:null,LV=typeof WeakRef=="function"&&WeakRef.prototype,bk=LV?WeakRef.prototype.deref:null,FV=Boolean.prototype.valueOf,BV=Object.prototype.toString,qV=Function.prototype.toString,VV=String.prototype.match,BE=String.prototype.slice,wo=String.prototype.replace,ZV=String.prototype.toUpperCase,Sk=String.prototype.toLowerCase,Ok=RegExp.prototype.test,Ek=Array.prototype.concat,fn=Array.prototype.join,HV=Array.prototype.slice,Pk=Math.floor,zE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,kE=Object.getOwnPropertySymbols,DE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Uu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Wa||!0)?Symbol.toStringTag:null,Ck=Object.prototype.propertyIsEnumerable,xk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Tk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Ok.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-Pk(-t):Pk(t);if(o!==t){var r=String(o),i=BE.call(e,r.length+1);return wo.call(r,n,"$&_")+"."+wo.call(wo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return wo.call(e,n,"$&_")}a(Tk,"addNumericSeparator");var UE=yk(),Ak=UE.custom,wk=Nk(Ak)?Ak:null,$k={__proto__:null,double:'"',single:"'"},GV={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Uk.exports=a(function t(e,n,o,r){var i=n||{};if(jn(i,"quoteStyle")&&!jn($k,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(jn(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=jn(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(jn(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(jn(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 Dk(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?Tk(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?Tk(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 ME(e)?"[Array]":"[Object]";var y=dZ(i,o);if(typeof r>"u")r=[];else if(zk(r,e)>=0)return"[Circular]";function m(H,re,X){if(re&&(r=HV.call(r),r.push(re)),X){var ue={depth:i.depth};return jn(i,"quoteStyle")&&(ue.quoteStyle=i.quoteStyle),t(H,ue,o+1,r)}return t(H,i,o+1,r)}if(a(m,"inspect"),typeof e=="function"&&!Ik(e)){var h=rZ(e),_=Cm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+fn.call(_,", ")+" }":"")}if(Nk(e)){var E=Wa?wo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):DE.call(e);return typeof e=="object"&&!Wa?Nu(E):E}if(cZ(e)){for(var P="<"+Sk.call(String(e.nodeName)),x=e.attributes||[],z=0;z<x.length;z++)P+=" "+x[z].name+"="+kk(WV(x[z].value),"double",i);return P+=">",e.childNodes&&e.childNodes.length&&(P+="..."),P+="</"+Sk.call(String(e.nodeName))+">",P}if(ME(e)){if(e.length===0)return"[]";var M=Cm(e,m);return y&&!lZ(M)?"["+jE(M,y)+"]":"[ "+fn.call(M,", ")+" ]"}if(KV(e)){var K=Cm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!Ck.call(e,"cause")?"{ ["+String(e)+"] "+fn.call(Ek.call("[cause]: "+m(e.cause),K),", ")+" }":K.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+fn.call(K,", ")+" }"}if(typeof e=="object"&&s){if(wk&&typeof e[wk]=="function"&&UE)return UE(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(nZ(e)){var Z=[];return _k&&_k.call(e,function(H,re){Z.push(m(re,e,!0)+" => "+m(H,e))}),Rk("Map",$m.call(e),Z,y)}if(aZ(e)){var J=[];return vk&&vk.call(e,function(H){J.push(m(H,e))}),Rk("Set",km.call(e),J,y)}if(oZ(e))return NE("WeakMap");if(sZ(e))return NE("WeakSet");if(iZ(e))return NE("WeakRef");if(YV(e))return Nu(m(Number(e)));if(eZ(e))return Nu(m(zE.call(e)));if(QV(e))return Nu(FV.call(e));if(XV(e))return Nu(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(!JV(e)&&!Ik(e)){var ee=Cm(e,m),ae=xk?xk(e)===Object.prototype:e instanceof Object||e.constructor===Object,Y=e instanceof Object?"":"null prototype",ze=!ae&&Uu&&Object(e)===e&&Uu in e?BE.call(Io(e),8,-1):Y?"Object":"",se=ae||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",G=se+(ze||Y?"["+fn.call(Ek.call([],ze||[],Y||[]),": ")+"] ":"");return ee.length===0?G+"{}":y?G+"{"+jE(ee,y)+"}":G+"{ "+fn.call(ee,", ")+" }"}return String(e)},"inspect_");function kk(t,e,n){var o=n.quoteStyle||e,r=$k[o];return r+t+r}a(kk,"wrapQuotes");function WV(t){return wo.call(String(t),/"/g,""")}a(WV,"quote");function yi(t){return!Uu||!(typeof t=="object"&&(Uu in t||typeof t[Uu]<"u"))}a(yi,"canTrustToString");function ME(t){return Io(t)==="[object Array]"&&yi(t)}a(ME,"isArray");function JV(t){return Io(t)==="[object Date]"&&yi(t)}a(JV,"isDate");function Ik(t){return Io(t)==="[object RegExp]"&&yi(t)}a(Ik,"isRegExp");function KV(t){return Io(t)==="[object Error]"&&yi(t)}a(KV,"isError");function XV(t){return Io(t)==="[object String]"&&yi(t)}a(XV,"isString");function YV(t){return Io(t)==="[object Number]"&&yi(t)}a(YV,"isNumber");function QV(t){return Io(t)==="[object Boolean]"&&yi(t)}a(QV,"isBoolean");function Nk(t){if(Wa)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!DE)return!1;try{return DE.call(t),!0}catch{}return!1}a(Nk,"isSymbol");function eZ(t){if(!t||typeof t!="object"||!zE)return!1;try{return zE.call(t),!0}catch{}return!1}a(eZ,"isBigInt");var tZ=Object.prototype.hasOwnProperty||function(t){return t in this};function jn(t,e){return tZ.call(t,e)}a(jn,"has");function Io(t){return BV.call(t)}a(Io,"toStr");function rZ(t){if(t.name)return t.name;var e=VV.call(qV.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}a(rZ,"nameOf");function zk(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1}a(zk,"indexOf");function nZ(t){if(!$m||!t||typeof t!="object")return!1;try{$m.call(t);try{km.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}a(nZ,"isMap");function oZ(t){if(!zu||!t||typeof t!="object")return!1;try{zu.call(t,zu);try{Du.call(t,Du)}catch{return!0}return t instanceof WeakMap}catch{}return!1}a(oZ,"isWeakMap");function iZ(t){if(!bk||!t||typeof t!="object")return!1;try{return bk.call(t),!0}catch{}return!1}a(iZ,"isWeakRef");function aZ(t){if(!km||!t||typeof t!="object")return!1;try{km.call(t);try{$m.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}a(aZ,"isSet");function sZ(t){if(!Du||!t||typeof t!="object")return!1;try{Du.call(t,Du);try{zu.call(t,zu)}catch{return!0}return t instanceof WeakSet}catch{}return!1}a(sZ,"isWeakSet");function cZ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}a(cZ,"isElement");function Dk(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return Dk(BE.call(t,0,e.maxStringLength),e)+o}var r=GV[e.quoteStyle||"single"];r.lastIndex=0;var i=wo.call(wo.call(t,r,"\\$1"),/[\x00-\x1f]/g,uZ);return kk(i,"single",e)}a(Dk,"inspectString");function uZ(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+ZV.call(e.toString(16))}a(uZ,"lowbyte");function Nu(t){return"Object("+t+")"}a(Nu,"markBoxed");function NE(t){return t+" { ? }"}a(NE,"weakCollectionOf");function Rk(t,e,n,o){var r=o?jE(n,o):fn.call(n,", ");return t+" ("+e+") {"+r+"}"}a(Rk,"collectionOf");function lZ(t){for(var e=0;e<t.length;e++)if(zk(t[e],`
|
|
56
|
-
`)>=0)return!1;return!0}a(
|
|
57
|
-
`+e.prev+e.base;return
|
|
58
|
-
`+e.prev}a(jE,"indentedJoin");function Cm(t,e){var n=ME(t),o=[];if(n){o.length=t.length;for(var r=0;r<t.length;r++)o[r]=jn(t,r)?e(t[r],t):""}var i=typeof kE=="function"?kE(t):[],s;if(Wa){s={};for(var u=0;u<i.length;u++)s["$"+i[u]]=i[u]}for(var l in t)jn(t,l)&&(n&&String(Number(l))===l&&l<t.length||Wa&&s["$"+l]instanceof Symbol||(Ok.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof kE=="function")for(var p=0;p<i.length;p++)Ck.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Cm,"arrObjKeys")});var jk=N((Zae,Mk)=>{"use strict";var pZ=Mu(),fZ=go(),Nm=a(function(t,e,n){for(var o=t,r;(r=o.next)!=null;o=r)if(r.key===e)return o.next=r.next,n||(r.next=t.next,t.next=r),r},"listGetNode"),mZ=a(function(t,e){if(t){var n=Nm(t,e);return n&&n.value}},"listGet"),hZ=a(function(t,e,n){var o=Nm(t,e);o?o.value=n:t.next={key:e,next:t.next,value:n}},"listSet"),gZ=a(function(t,e){return t?!!Nm(t,e):!1},"listHas"),yZ=a(function(t,e){if(t)return Nm(t,e,!0)},"listDelete");Mk.exports=a(function(){var e,n={assert:a(function(o){if(!n.has(o))throw new fZ("Side channel does not contain "+pZ(o))},"assert"),delete:a(function(o){var r=yZ(e,o);return r&&e&&!e.next&&(e=void 0),!!r},"delete"),get:a(function(o){return mZ(e,o)},"get"),has:a(function(o){return gZ(e,o)},"has"),set:a(function(o,r){e||(e={next:void 0}),hZ(e,o,r)},"set")};return n},"getSideChannelList")});var qE=N((Gae,Bk)=>{"use strict";var Lk=eu(),Fk=nb(),_Z=Fk([Lk("%String.prototype.indexOf%")]);Bk.exports=a(function(e,n){var o=Lk(e,!!n);return typeof o=="function"&&_Z(e,".prototype.")>-1?Fk([o]):o},"callBoundIntrinsic")});var VE=N((Jae,Vk)=>{"use strict";var vZ=eu(),ju=qE(),bZ=Mu(),SZ=go(),qk=vZ("%Map%",!0),EZ=ju("Map.prototype.get",!0),PZ=ju("Map.prototype.set",!0),xZ=ju("Map.prototype.has",!0),TZ=ju("Map.prototype.delete",!0),AZ=ju("Map.prototype.size",!0);Vk.exports=!!qk&&a(function(){var e,n={assert:a(function(o){if(!n.has(o))throw new SZ("Side channel does not contain "+bZ(o))},"assert"),delete:a(function(o){if(e){var r=TZ(e,o);return AZ(e)===0&&(e=void 0),r}return!1},"delete"),get:a(function(o){if(e)return EZ(e,o)},"get"),has:a(function(o){return e?xZ(e,o):!1},"has"),set:a(function(o,r){e||(e=new qk),PZ(e,o,r)},"set")};return n},"getSideChannelMap")});var Hk=N((Xae,Zk)=>{"use strict";var wZ=eu(),Dm=qE(),IZ=Mu(),zm=VE(),RZ=go(),Ja=wZ("%WeakMap%",!0),OZ=Dm("WeakMap.prototype.get",!0),CZ=Dm("WeakMap.prototype.set",!0),$Z=Dm("WeakMap.prototype.has",!0),kZ=Dm("WeakMap.prototype.delete",!0);Zk.exports=Ja?a(function(){var e,n,o={assert:a(function(r){if(!o.has(r))throw new RZ("Side channel does not contain "+IZ(r))},"assert"),delete:a(function(r){if(Ja&&r&&(typeof r=="object"||typeof r=="function")){if(e)return kZ(e,r)}else if(zm&&n)return n.delete(r);return!1},"delete"),get:a(function(r){return Ja&&r&&(typeof r=="object"||typeof r=="function")&&e?OZ(e,r):n&&n.get(r)},"get"),has:a(function(r){return Ja&&r&&(typeof r=="object"||typeof r=="function")&&e?$Z(e,r):!!n&&n.has(r)},"has"),set:a(function(r,i){Ja&&r&&(typeof r=="object"||typeof r=="function")?(e||(e=new Ja),CZ(e,r,i)):zm&&(n||(n=zm()),n.set(r,i))},"set")};return o},"getSideChannelWeakMap"):zm});var ZE=N((Qae,Gk)=>{"use strict";var NZ=go(),zZ=Mu(),DZ=jk(),UZ=VE(),MZ=Hk(),jZ=MZ||UZ||DZ;Gk.exports=a(function(){var e,n={assert:a(function(o){if(!n.has(o))throw new NZ("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,r){e||(e=jZ()),e.set(o,r)},"set")};return n},"getSideChannel")});var Um=N((tse,Wk)=>{"use strict";var LZ=String.prototype.replace,FZ=/%20/g,HE={RFC1738:"RFC1738",RFC3986:"RFC3986"};Wk.exports={default:HE.RFC3986,formatters:{RFC1738:a(function(t){return LZ.call(t,FZ,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:HE.RFC1738,RFC3986:HE.RFC3986}});var KE=N((nse,Jk)=>{"use strict";var BZ=Um(),qZ=ZE(),GE=Object.prototype.hasOwnProperty,_i=Array.isArray,Mm=qZ(),Ka=a(function(e,n){return Mm.set(e,n),e},"markOverflow"),vi=a(function(e){return Mm.has(e)},"isOverflow"),Lu=a(function(e){return Mm.get(e)},"getMaxIndex"),JE=a(function(e,n){Mm.set(e,n)},"setMaxIndex"),mn=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),VZ=a(function(e){for(;e.length>1;){var n=e.pop(),o=n.obj[n.prop];if(_i(o)){for(var r=[],i=0;i<o.length;++i)typeof o[i]<"u"&&(r[r.length]=o[i]);n.obj[n.prop]=r}}},"compactQueue"),Fu=a(function(e,n){for(var o=n&&n.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)typeof e[r]<"u"&&(o[r]=e[r]);return o},"arrayToObject"),ZZ=a(function t(e,n,o){if(!n)return e;if(typeof n!="object"&&typeof n!="function"){if(_i(e)){var r=e.length;if(o&&typeof o.arrayLimit=="number"&&r>o.arrayLimit)return Ka(Fu(e.concat(n),o),r);e[r]=n}else if(e&&typeof e=="object")if(vi(e)){var i=Lu(e)+1;e[i]=n,JE(e,i)}else{if(o&&o.strictMerge)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!GE.call(Object.prototype,n))&&(e[n]=!0)}else return[e,n];return e}if(!e||typeof e!="object"){if(vi(n)){for(var s=Object.keys(n),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]=n[s[l]]}return Ka(u,Lu(n)+1)}var f=[e].concat(n);return o&&typeof o.arrayLimit=="number"&&f.length>o.arrayLimit?Ka(Fu(f,o),f.length-1):f}var y=e;return _i(e)&&!_i(n)&&(y=Fu(e,o)),_i(e)&&_i(n)?(n.forEach(function(m,h){if(GE.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(n).reduce(function(m,h){var _=n[h];if(GE.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,vi(n)&&!vi(m)&&Ka(m,Lu(n)),vi(m)){var E=parseInt(h,10);String(E)===h&&E>=0&&E>Lu(m)&&JE(m,E)}return m},y)},"merge"),HZ=a(function(e,n){return Object.keys(n).reduce(function(o,r){return o[r]=n[r],o},e)},"assignSingleSource"),GZ=a(function(t,e,n){var o=t.replace(/\+/g," ");if(n==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},"decode"),WE=1024,WZ=a(function(e,n,o,r,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+=WE){for(var p=s.length>=WE?s.slice(l,l+WE):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===BZ.RFC1738&&(m===40||m===41)){f[f.length]=p.charAt(y);continue}if(m<128){f[f.length]=mn[m];continue}if(m<2048){f[f.length]=mn[192|m>>6]+mn[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=mn[224|m>>12]+mn[128|m>>6&63]+mn[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=mn[240|m>>18]+mn[128|m>>12&63]+mn[128|m>>6&63]+mn[128|m&63]}u+=f.join("")}return u},"encode"),JZ=a(function(e){for(var n=[{obj:{o:e},prop:"o"}],o=[],r=0;r<n.length;++r)for(var i=n[r],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&&(n[n.length]={obj:s,prop:p},o[o.length]=f)}return VZ(n),e},"compact"),KZ=a(function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},"isRegExp"),XZ=a(function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},"isBuffer"),YZ=a(function(e,n,o,r){if(vi(e)){var i=Lu(e)+1;return e[i]=n,JE(e,i),e}var s=[].concat(e,n);return s.length>o?Ka(Fu(s,{plainObjects:r}),s.length-1):s},"combine"),QZ=a(function(e,n){if(_i(e)){for(var o=[],r=0;r<e.length;r+=1)o[o.length]=n(e[r]);return o}return n(e)},"maybeMap");Jk.exports={arrayToObject:Fu,assign:HZ,combine:YZ,compact:JZ,decode:GZ,encode:WZ,isBuffer:XZ,isOverflow:vi,isRegExp:KZ,markOverflow:Ka,maybeMap:QZ,merge:ZZ}});var tN=N((ise,eN)=>{"use strict";var Xk=ZE(),jm=KE(),Bu=Um(),eH=Object.prototype.hasOwnProperty,Yk={brackets:a(function(e){return e+"[]"},"brackets"),comma:"comma",indices:a(function(e,n){return e+"["+n+"]"},"indices"),repeat:a(function(e){return e},"repeat")},hn=Array.isArray,tH=Array.prototype.push,Qk=a(function(t,e){tH.apply(t,hn(e)?e:[e])},"pushToArray"),rH=Date.prototype.toISOString,Kk=Bu.default,Pt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:jm.encode,encodeValuesOnly:!1,filter:void 0,format:Kk,formatter:Bu.formatters[Kk],indices:!1,serializeDate:a(function(e){return rH.call(e)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},nH=a(function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},"isNonNullishPrimitive"),XE={},oH=a(function t(e,n,o,r,i,s,u,l,p,f,y,m,h,_,E,P,x,z){for(var M=e,K=z,Z=0,J=!1;(K=K.get(XE))!==void 0&&!J;){var ee=K.get(e);if(Z+=1,typeof ee<"u"){if(ee===Z)throw new RangeError("Cyclic object value");J=!0}typeof K.get(XE)>"u"&&(Z=0)}if(typeof f=="function"?M=f(n,M):M instanceof Date?M=h(M):o==="comma"&&hn(M)&&(M=jm.maybeMap(M,function(Je){return Je instanceof Date?h(Je):Je})),M===null){if(s)return p&&!P?p(n,Pt.encoder,x,"key",_):n;M=""}if(nH(M)||jm.isBuffer(M)){if(p){var ae=P?n:p(n,Pt.encoder,x,"key",_);return[E(ae)+"="+E(p(M,Pt.encoder,x,"value",_))]}return[E(n)+"="+E(String(M))]}var Y=[];if(typeof M>"u")return Y;var ze;if(o==="comma"&&hn(M))P&&p&&(M=jm.maybeMap(M,p)),ze=[{value:M.length>0?M.join(",")||null:void 0}];else if(hn(f))ze=f;else{var se=Object.keys(M);ze=y?se.sort(y):se}var G=l?String(n).replace(/\./g,"%2E"):String(n),H=r&&hn(M)&&M.length===1?G+"[]":G;if(i&&hn(M)&&M.length===0)return H+"[]";for(var re=0;re<ze.length;++re){var X=ze[re],ue=typeof X=="object"&&X&&typeof X.value<"u"?X.value:M[X];if(!(u&&ue===null)){var de=m&&l?String(X).replace(/\./g,"%2E"):String(X),Ce=hn(M)?typeof o=="function"?o(H,de):H:H+(m?"."+de:"["+de+"]");z.set(e,Z);var De=Xk();De.set(XE,z),Qk(Y,t(ue,Ce,o,r,i,s,u,l,o==="comma"&&P&&hn(M)?null:p,f,y,m,h,_,E,P,x,De))}}return Y},"stringify"),iH=a(function(e){if(!e)return Pt;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 n=e.charset||Pt.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=Bu.default;if(typeof e.format<"u"){if(!eH.call(Bu.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var r=Bu.formatters[o],i=Pt.filter;(typeof e.filter=="function"||hn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in Yk?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=Pt.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:Pt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Pt.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Pt.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Pt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Pt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Pt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Pt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Pt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Pt.encodeValuesOnly,filter:i,format:o,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Pt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Pt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Pt.strictNullHandling}},"normalizeStringifyOptions");eN.exports=function(t,e){var n=t,o=iH(e),r,i;typeof o.filter=="function"?(i=o.filter,n=i("",n)):hn(o.filter)&&(i=o.filter,r=i);var s=[];if(typeof n!="object"||n===null)return"";var u=Yk[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var p=Xk(),f=0;f<r.length;++f){var y=r[f],m=n[y];o.skipNulls&&m===null||Qk(s,oH(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 oN=N((sse,nN)=>{"use strict";var gn=KE(),Lm=Object.prototype.hasOwnProperty,YE=Array.isArray,lt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:gn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},aH=a(function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},"interpretNumericEntities"),rN=a(function(t,e,n){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&n>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},"parseArrayValue"),sH="utf8=%26%2310003%3B",cH="utf8=%E2%9C%93",uH=a(function(e,n){var o={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=r.split(n.delimiter,n.throwOnLimitExceeded&&typeof i<"u"?i+1:i);if(n.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=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===cH?p="utf-8":s[l]===sH&&(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=n.decoder(f,lt.decoder,p,"key"),_=n.strictNullHandling?null:""):(h=n.decoder(f.slice(0,m),lt.decoder,p,"key"),h!==null&&(_=gn.maybeMap(rN(f.slice(m+1),n,YE(o[h])?o[h].length:0),function(P){return n.decoder(P,lt.decoder,p,"value")}))),_&&n.interpretNumericEntities&&p==="iso-8859-1"&&(_=aH(String(_))),f.indexOf("[]=")>-1&&(_=YE(_)?[_]:_),n.comma&&YE(_)&&_.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");_=gn.combine([],_,n.arrayLimit,n.plainObjects)}if(h!==null){var E=Lm.call(o,h);E&&(n.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=gn.combine(o[h],_,n.arrayLimit,n.plainObjects):(!E||n.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),lH=a(function(t,e,n,o){var r=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");r=Array.isArray(e)&&e[i]?e[i].length:0}for(var s=o?e:rN(e,n,r),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&n.parseArrays)gn.isOverflow(s)?l=s:l=n.allowEmptyArrays&&(s===""||n.strictNullHandling&&s===null)?[]:gn.combine([],s,n.arrayLimit,n.plainObjects);else{l=n.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=n.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(y,10),h=!isNaN(m)&&p!==y&&String(m)===y&&m>=0&&n.parseArrays;if(!n.parseArrays&&y==="")l={0:s};else if(h&&m<n.arrayLimit)l=[],l[m]=s;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");h?(l[m]=s,gn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),dH=a(function(e,n){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(n.depth<=0)return!n.plainObjects&&Lm.call(Object.prototype,o)&&!n.allowPrototypes?void 0:[o];var r=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=r.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!n.plainObjects&&Lm.call(Object.prototype,u)&&!n.allowPrototypes)return;l[l.length]=u}for(var p=0;(s=i.exec(o))!==null&&p<n.depth;){p+=1;var f=s[1].slice(1,-1);if(!n.plainObjects&&Lm.call(Object.prototype,f)&&!n.allowPrototypes)return;l[l.length]=s[1]}if(s){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l[l.length]="["+o.slice(s.index)+"]"}return l},"splitKeyIntoSegments"),pH=a(function(e,n,o,r){if(e){var i=dH(e,o);if(i)return lH(i,n,o,r)}},"parseQueryStringKeys"),fH=a(function(e){if(!e)return lt;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 n=typeof e.charset>"u"?lt.charset:e.charset,o=typeof e.duplicates>"u"?lt.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:lt.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:lt.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:lt.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:lt.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:lt.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:lt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:lt.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:lt.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:lt.decoder,delimiter:typeof e.delimiter=="string"||gn.isRegExp(e.delimiter)?e.delimiter:lt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:lt.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:lt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:lt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:lt.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:lt.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:lt.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:lt.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},"normalizeParseOptions");nN.exports=function(t,e){var n=fH(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?uH(t,n):t,r=n.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=pH(u,o[u],n,typeof t=="string");r=gn.merge(r,l,n)}return n.allowSparse===!0?r:gn.compact(r)}});var QE=N((use,iN)=>{"use strict";var mH=tN(),hH=oN(),gH=Um();iN.exports={formats:gH,parse:hH,stringify:mH}});var sN=N((eP,aN)=>{(function(t,e){typeof eP=="object"?aN.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(eP,function(){function t(){}return a(t,"UrlTemplate"),t.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(n){return/%[0-9A-Fa-f]/.test(n)||(n=encodeURI(n).replace(/%5B/g,"[").replace(/%5D/g,"]")),n}).join("")},t.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})},t.prototype.encodeValue=function(e,n,o){return n=e==="+"||e==="#"?this.encodeReserved(n):this.encodeUnreserved(n),o?this.encodeUnreserved(o)+"="+n:n},t.prototype.isDefined=function(e){return e!=null},t.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"},t.prototype.getValues=function(e,n,o,r){var i=e[o],s=[];if(this.isDefined(i)&&i!=="")if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")i=i.toString(),r&&r!=="*"&&(i=i.substring(0,parseInt(r,10))),s.push(this.encodeValue(n,i,this.isKeyOperator(n)?o:null));else if(r==="*")Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){s.push(this.encodeValue(n,l,this.isKeyOperator(n)?o:null))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&s.push(this.encodeValue(n,i[l],l))},this);else{var u=[];Array.isArray(i)?i.filter(this.isDefined).forEach(function(l){u.push(this.encodeValue(n,l))},this):Object.keys(i).forEach(function(l){this.isDefined(i[l])&&(u.push(this.encodeUnreserved(l)),u.push(this.encodeValue(n,i[l].toString())))},this),this.isKeyOperator(n)?s.push(this.encodeUnreserved(o)+"="+u.join(",")):u.length!==0&&s.push(u.join(","))}else n===";"?this.isDefined(i)&&s.push(this.encodeUnreserved(o)):i===""&&(n==="&"||n==="?")?s.push(this.encodeUnreserved(o)+"="):i===""&&s.push("");return s},t.prototype.parse=function(e){var n=this,o=["+","#",".","/",";","?","&"];return{expand:a(function(r){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,n.getValues(r,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 n.encodeReserved(u)})},"expand")}},new t})});var cN=N(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.isBrowser=yH;function yH(){return typeof window<"u"}a(yH,"isBrowser")});var Bm=N(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.headersToClassicHeaders=uN;Fm.marshallGaxiosResponse=_H;function uN(t){let e={};if(t instanceof Headers)t.forEach((n,o)=>{e[o]=n});else if(Array.isArray(t))for(let[n,o]of t)e[n]=o;else e=t||{};return e}a(uN,"headersToClassicHeaders");function _H(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:uN(t?.headers)}})}a(_H,"marshallGaxiosResponse")});var pN=N(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.sessions=void 0;vr.request=CH;vr.closeSession=rP;var dN=require("http2"),vH=require("zlib"),bH=require("url"),SH=QE(),EH=ru(),PH=require("stream"),xH=require("util"),TH=require("process"),AH=Bm(),{HTTP2_HEADER_CONTENT_ENCODING:wH,HTTP2_HEADER_CONTENT_TYPE:lN,HTTP2_HEADER_METHOD:IH,HTTP2_HEADER_PATH:RH,HTTP2_HEADER_STATUS:OH}=dN.constants,qu=!!TH.env.HTTP2_DEBUG;vr.sessions={};async function CH(t){let e=EH(!0,{},t);e.validateStatus=e.validateStatus||$H,e.responseType=e.responseType||"json";let n=new bH.URL(e.url),o=kH(n.host);o.timeoutHandle!==void 0&&clearTimeout(o.timeoutHandle);let r=n.pathname;if(t.params&&Object.keys(t.params).length>0){let y=(t.paramsSerializer||SH.stringify)(e.params);r+=`?${y}`}let i=(0,AH.headersToClassicHeaders)(e.headers);i[RH]=r,i[IH]=t.method||"GET",e.headers=i,i[lN]||e.responseType!=="text"&&(i[lN]="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[OH]});let h=p;if(m[wH]==="gzip"&&(h=p.pipe(vH.createGunzip())),e.responseType==="stream"){s.data=h,f(s);return}h.on("data",_=>{u.push(_)}).on("error",_=>{y(_)}).on("end",()=>{let _=Buffer.concat(u),E=_;if(_){if(e.responseType==="json")try{E=JSON.parse(_.toString("utf8"))}catch{E=_.toString("utf8")}else e.responseType==="text"?E=_.toString("utf8"):e.responseType==="arraybuffer"&&(E=_.buffer);s.data=E}if(!e.validateStatus(s.status)){let P=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let x=xH.inspect(s.data,{depth:5});P=`${P}
|
|
59
|
-
'${
|
|
60
|
-
`),this.push(E),
|
|
61
|
-
content-type: ${
|
|
55
|
+
https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var WE=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(an.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===an.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(an.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 Qu.universe("universe-domain"),e||=ZE.DEFAULT_UNIVERSE}catch(r){if(r&&r?.response?.status===404)e=ZE.DEFAULT_UNIVERSE;else throw r}return e}async getUniverseDomain(){let e=(0,B$.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{e??=(await this.getClient()).universeDomain}catch{e??=ZE.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 el.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 el.BaseExternalAccountClient&&(r.scopes=this.getAnyScopes()),await this.#t(r);if(await this._checkIsGCE())return e.scopes=this.getAnyScopes(),await this.#t(new PH.Compute(e));throw new Error(an.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=Qu.getGCPResidency()||await Qu.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=HE.join(n,".config"))}return r&&(r=HE.join(r,"gcloud","application_default_credentials.json"),Yu.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=Yu.realpathSync(e),!Yu.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=Yu.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,B$.originalOrCamelOptions)(r).get("universe_domain");return e.type===j$.USER_REFRESH_ACCOUNT_TYPE?(o=new j$.UserRefreshClient(r),o.fromJSON(e)):e.type===ns.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(e):e.type===el.EXTERNAL_ACCOUNT_TYPE?(o=xH.ExternalAccountClient.fromJSON({...e,...r}),o.scopes=this.getAnyScopes()):e.type===F$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new F$.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=vH.platform();return!!(e&&e.length>=3&&e.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(e=>{(0,yH.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!==el.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await Qu.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 el.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([Qu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:r,universe_domain:o}}throw new Error(an.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=HE.resolve(this.keyFilename),r=Yu.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 EH.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=_H.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,SH.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,bH.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}};an.GoogleAuth=WE});var G$=z(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.IAMAuth=void 0;var KE=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=KE});var V$=z(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DownscopedClient=Pn.EXPIRATION_TIME_OFFSET=Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var TH=bt(),AH=require("stream"),JE=Pr(),wH=Em(),IH="urn:ietf:params:oauth:grant-type:token-exchange",CH="urn:ietf:params:oauth:token-type:access_token",RH="urn:ietf:params:oauth:token-type:access_token";Pn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;Pn.EXPIRATION_TIME_OFFSET=300*1e3;var XE=class extends JE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(e,r={accessBoundary:{accessBoundaryRules:[]}}){if(super(e instanceof JE.AuthClient?{}:e),e instanceof JE.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 wH.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=TH.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:IH,requestedTokenType:CH,subjectToken:e,subjectTokenType:RH},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=XE});var H$=z(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.PassThroughClient=void 0;var OH=Pr(),YE=class extends OH.AuthClient{static{a(this,"PassThroughClient")}async request(e){return this.transporter.request(e)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};qm.PassThroughClient=YE});var tl=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 Z$=q$();Object.defineProperty(ge,"GoogleAuth",{enumerable:!0,get:a(function(){return Z$.GoogleAuth},"get")});ge.gcpMetadata=Mu();ge.gaxios=bt();var W$=Pr();Object.defineProperty(ge,"AuthClient",{enumerable:!0,get:a(function(){return W$.AuthClient},"get")});Object.defineProperty(ge,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return W$.DEFAULT_UNIVERSE},"get")});var kH=LP();Object.defineProperty(ge,"Compute",{enumerable:!0,get:a(function(){return kH.Compute},"get")});var NH=BP();Object.defineProperty(ge,"GCPEnv",{enumerable:!0,get:a(function(){return NH.GCPEnv},"get")});var $H=G$();Object.defineProperty(ge,"IAMAuth",{enumerable:!0,get:a(function(){return $H.IAMAuth},"get")});var zH=FP();Object.defineProperty(ge,"IdTokenClient",{enumerable:!0,get:a(function(){return zH.IdTokenClient},"get")});var DH=iE();Object.defineProperty(ge,"JWTAccess",{enumerable:!0,get:a(function(){return DH.JWTAccess},"get")});var UH=sE();Object.defineProperty(ge,"JWT",{enumerable:!0,get:a(function(){return UH.JWT},"get")});var MH=dE();Object.defineProperty(ge,"Impersonated",{enumerable:!0,get:a(function(){return MH.Impersonated},"get")});var QE=Ti();Object.defineProperty(ge,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return QE.CodeChallengeMethod},"get")});Object.defineProperty(ge,"OAuth2Client",{enumerable:!0,get:a(function(){return QE.OAuth2Client},"get")});Object.defineProperty(ge,"ClientAuthentication",{enumerable:!0,get:a(function(){return QE.ClientAuthentication},"get")});var LH=zP();Object.defineProperty(ge,"LoginTicket",{enumerable:!0,get:a(function(){return LH.LoginTicket},"get")});var jH=uE();Object.defineProperty(ge,"UserRefreshClient",{enumerable:!0,get:a(function(){return jH.UserRefreshClient},"get")});var FH=RE();Object.defineProperty(ge,"AwsClient",{enumerable:!0,get:a(function(){return FH.AwsClient},"get")});var BH=wE();Object.defineProperty(ge,"AwsRequestSigner",{enumerable:!0,get:a(function(){return BH.AwsRequestSigner},"get")});var qH=TE();Object.defineProperty(ge,"IdentityPoolClient",{enumerable:!0,get:a(function(){return qH.IdentityPoolClient},"get")});var GH=BE();Object.defineProperty(ge,"ExternalAccountClient",{enumerable:!0,get:a(function(){return GH.ExternalAccountClient},"get")});var VH=$o();Object.defineProperty(ge,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return VH.BaseExternalAccountClient},"get")});var HH=V$();Object.defineProperty(ge,"DownscopedClient",{enumerable:!0,get:a(function(){return HH.DownscopedClient},"get")});var K$=jE();Object.defineProperty(ge,"PluggableAuthClient",{enumerable:!0,get:a(function(){return K$.PluggableAuthClient},"get")});Object.defineProperty(ge,"ExecutableError",{enumerable:!0,get:a(function(){return K$.ExecutableError},"get")});var J$=VE();Object.defineProperty(ge,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return J$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(ge,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return J$.ExternalAccountAuthorizedUserClient},"get")});var ZH=H$();Object.defineProperty(ge,"PassThroughClient",{enumerable:!0,get:a(function(){return ZH.PassThroughClient},"get")});var WH=new Z$.GoogleAuth;ge.auth=WH});var X$=z(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.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 Q$=z((Mde,Y$)=>{Y$.exports=require("util").inspect});var al=z((Lde,vz)=>{var lS=typeof Map=="function"&&Map.prototype,tS=Object.getOwnPropertyDescriptor&&lS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vm=lS&&tS&&typeof tS.get=="function"?tS.get:null,ez=lS&&Map.prototype.forEach,dS=typeof Set=="function"&&Set.prototype,rS=Object.getOwnPropertyDescriptor&&dS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hm=dS&&rS&&typeof rS.get=="function"?rS.get:null,tz=dS&&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,rz=YH?WeakRef.prototype.deref:null,QH=Boolean.prototype.valueOf,eZ=Object.prototype.toString,tZ=Function.prototype.toString,rZ=String.prototype.match,pS=String.prototype.slice,zo=String.prototype.replace,nZ=String.prototype.toUpperCase,nz=String.prototype.toLowerCase,pz=RegExp.prototype.test,oz=Array.prototype.concat,En=Array.prototype.join,oZ=Array.prototype.slice,iz=Math.floor,iS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nS=Object.getOwnPropertySymbols,aS=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,fz=Object.prototype.propertyIsEnumerable,az=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function sz(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||pz.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-iz(-t):iz(t);if(o!==t){var n=String(o),i=pS.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(sz,"addNumericSeparator");var sS=Q$(),cz=sS.custom,uz=gz(cz)?cz:null,mz={__proto__:null,double:'"',single:"'"},iZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};vz.exports=a(function t(e,r,o,n){var i=r||{};if(Wn(i,"quoteStyle")&&!Wn(mz,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 _z(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?sz(e,l):l}if(typeof e=="bigint"){var p=String(e)+"n";return u?sz(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 cS(e)?"[Array]":"[Object]";var y=SZ(i,o);if(typeof n>"u")n=[];else if(yz(n,e)>=0)return"[Circular]";function m(Z,oe,Q){if(oe&&(n=oZ.call(n),n.push(oe)),Q){var pe={depth:i.depth};return Wn(i,"quoteStyle")&&(pe.quoteStyle=i.quoteStyle),t(Z,pe,o+1,n)}return t(Z,i,o+1,n)}if(a(m,"inspect"),typeof e=="function"&&!lz(e)){var h=mZ(e),_=Gm(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(_.length>0?" { "+En.call(_,", ")+" }":"")}if(gz(e)){var E=os?zo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):aS.call(e);return typeof e=="object"&&!os?rl(E):E}if(bZ(e)){for(var S="<"+nz.call(String(e.nodeName)),T=e.attributes||[],k=0;k<T.length;k++)S+=" "+T[k].name+"="+hz(aZ(T[k].value),"double",i);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+nz.call(String(e.nodeName))+">",S}if(cS(e)){if(e.length===0)return"[]";var L=Gm(e,m);return y&&!EZ(L)?"["+uS(L,y)+"]":"[ "+En.call(L,", ")+" ]"}if(cZ(e)){var Y=Gm(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!fz.call(e,"cause")?"{ ["+String(e)+"] "+En.call(oz.call("[cause]: "+m(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+En.call(Y,", ")+" }"}if(typeof e=="object"&&s){if(uz&&typeof e[uz]=="function"&&sS)return sS(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(hZ(e)){var H=[];return ez&&ez.call(e,function(Z,oe){H.push(m(oe,e,!0)+" => "+m(Z,e))}),dz("Map",Vm.call(e),H,y)}if(_Z(e)){var X=[];return tz&&tz.call(e,function(Z){X.push(m(Z,e))}),dz("Set",Hm.call(e),X,y)}if(gZ(e))return oS("WeakMap");if(vZ(e))return oS("WeakSet");if(yZ(e))return oS("WeakRef");if(lZ(e))return rl(m(Number(e)));if(pZ(e))return rl(m(iS.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)&&!lz(e)){var re=Gm(e,m),ce=az?az(e)===Object.prototype:e instanceof Object||e.constructor===Object,ee=e instanceof Object?"":"null prototype",Le=!ce&&il&&Object(e)===e&&il in e?pS.call(Do(e),8,-1):ee?"Object":"",ue=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",K=ue+(Le||ee?"["+En.call(oz.call([],Le||[],ee||[]),": ")+"] ":"");return re.length===0?K+"{}":y?K+"{"+uS(re,y)+"}":K+"{ "+En.call(re,", ")+" }"}return String(e)},"inspect_");function hz(t,e,r){var o=r.quoteStyle||e,n=mz[o];return n+t+n}a(hz,"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 cS(t){return Do(t)==="[object Array]"&&wi(t)}a(cS,"isArray");function sZ(t){return Do(t)==="[object Date]"&&wi(t)}a(sZ,"isDate");function lz(t){return Do(t)==="[object RegExp]"&&wi(t)}a(lz,"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 gz(t){if(os)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!aS)return!1;try{return aS.call(t),!0}catch{}return!1}a(gz,"isSymbol");function pZ(t){if(!t||typeof t!="object"||!iS)return!1;try{return iS.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 yz(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(yz,"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(!rz||!t||typeof t!="object")return!1;try{return rz.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 _z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return _z(pS.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,PZ);return hz(i,"single",e)}a(_z,"inspectString");function PZ(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(PZ,"lowbyte");function rl(t){return"Object("+t+")"}a(rl,"markBoxed");function oS(t){return t+" { ? }"}a(oS,"weakCollectionOf");function dz(t,e,r,o){var n=o?uS(r,o):En.call(r,", ");return t+" ("+e+") {"+n+"}"}a(dz,"collectionOf");function EZ(t){for(var e=0;e<t.length;e++)if(yz(t[e],`
|
|
56
|
+
`)>=0)return!1;return!0}a(EZ,"singleLineValues");function SZ(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=En.call(Array(t.indent+1)," ");else return null;return{base:r,prev:En.call(Array(e+1),r)}}a(SZ,"getIndent");function uS(t,e){if(t.length===0)return"";var r=`
|
|
57
|
+
`+e.prev+e.base;return r+En.call(t,","+r)+`
|
|
58
|
+
`+e.prev}a(uS,"indentedJoin");function Gm(t,e){var r=cS(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 nS=="function"?nS(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||(pz.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if(typeof nS=="function")for(var p=0;p<i.length;p++)fz.call(t,i[p])&&o.push("["+e(i[p])+"]: "+e(t[i[p]],t));return o}a(Gm,"arrObjKeys")});var Pz=z((Fde,bz)=>{"use strict";var xZ=al(),TZ=xo(),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");bz.exports=a(function(){var e,r={assert:a(function(o){if(!r.has(o))throw new TZ("Side channel does not contain "+xZ(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 fS=z((qde,xz)=>{"use strict";var Ez=vu(),Sz=Tb(),RZ=Sz([Ez("%String.prototype.indexOf%")]);xz.exports=a(function(e,r){var o=Ez(e,!!r);return typeof o=="function"&&RZ(e,".prototype.")>-1?Sz([o]):o},"callBoundIntrinsic")});var mS=z((Vde,Az)=>{"use strict";var OZ=vu(),sl=fS(),kZ=al(),NZ=xo(),Tz=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);Az.exports=!!Tz&&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 Tz),zZ(e,o,n)},"set")};return r},"getSideChannelMap")});var Iz=z((Zde,wz)=>{"use strict";var LZ=vu(),Km=fS(),jZ=al(),Wm=mS(),FZ=xo(),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);wz.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 hS=z((Kde,Cz)=>{"use strict";var HZ=xo(),ZZ=al(),WZ=Pz(),KZ=mS(),JZ=Iz(),XZ=JZ||KZ||WZ;Cz.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((Xde,Rz)=>{"use strict";var YZ=String.prototype.replace,QZ=/%20/g,gS={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rz.exports={default:gS.RFC3986,formatters:{RFC1738:a(function(t){return YZ.call(t,QZ,"+")},"RFC1738"),RFC3986:a(function(t){return String(t)},"RFC3986")},RFC1738:gS.RFC1738,RFC3986:gS.RFC3986}});var bS=z((Qde,Oz)=>{"use strict";var eW=Jm(),tW=hS(),yS=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"),vS=a(function(e,r){Xm.set(e,r)},"setMaxIndex"),Sn=(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,vS(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!yS.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(yS.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(yS.call(m,h)?m[h]=t(m[h],_,o):m[h]=_,Ci(r)&&!Ci(m)&&as(m,cl(r)),Ci(m)){var E=parseInt(h,10);String(E)===h&&E>=0&&E>cl(m)&&vS(m,E)}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"),_S=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+=_S){for(var p=s.length>=_S?s.slice(l,l+_S):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]=Sn[m];continue}if(m<2048){f[f.length]=Sn[192|m>>6]+Sn[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=Sn[224|m>>12]+Sn[128|m>>6&63]+Sn[128|m&63];continue}y+=1,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),f[f.length]=Sn[240|m>>18]+Sn[128|m>>12&63]+Sn[128|m>>6&63]+Sn[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,vS(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");Oz.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 Uz=z((tpe,Dz)=>{"use strict";var Nz=hS(),Ym=bS(),ll=Jm(),pW=Object.prototype.hasOwnProperty,$z={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")},xn=Array.isArray,fW=Array.prototype.push,zz=a(function(t,e){fW.apply(t,xn(e)?e:[e])},"pushToArray"),mW=Date.prototype.toISOString,kz=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:kz,formatter:ll.formatters[kz],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"),PS={},gW=a(function t(e,r,o,n,i,s,u,l,p,f,y,m,h,_,E,S,T,k){for(var L=e,Y=k,H=0,X=!1;(Y=Y.get(PS))!==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(PS)>"u"&&(H=0)}if(typeof f=="function"?L=f(r,L):L instanceof Date?L=h(L):o==="comma"&&xn(L)&&(L=Ym.maybeMap(L,function(Qe){return Qe instanceof Date?h(Qe):Qe})),L===null){if(s)return p&&!S?p(r,wt.encoder,T,"key",_):r;L=""}if(hW(L)||Ym.isBuffer(L)){if(p){var ce=S?r:p(r,wt.encoder,T,"key",_);return[E(ce)+"="+E(p(L,wt.encoder,T,"value",_))]}return[E(r)+"="+E(String(L))]}var ee=[];if(typeof L>"u")return ee;var Le;if(o==="comma"&&xn(L))S&&p&&(L=Ym.maybeMap(L,p)),Le=[{value:L.length>0?L.join(",")||null:void 0}];else if(xn(f))Le=f;else{var ue=Object.keys(L);Le=y?ue.sort(y):ue}var K=l?String(r).replace(/\./g,"%2E"):String(r),Z=n&&xn(L)&&L.length===1?K+"[]":K;if(i&&xn(L)&&L.length===0)return Z+"[]";for(var oe=0;oe<Le.length;++oe){var Q=Le[oe],pe=typeof Q=="object"&&Q&&typeof Q.value<"u"?Q.value:L[Q];if(!(u&&pe===null)){var me=m&&l?String(Q).replace(/\./g,"%2E"):String(Q),ze=xn(L)?typeof o=="function"?o(Z,me):Z:Z+(m?"."+me:"["+me+"]");k.set(e,H);var je=Nz();je.set(PS,k),zz(ee,t(pe,ze,o,n,i,s,u,l,o==="comma"&&S&&xn(L)?null:p,f,y,m,h,_,E,S,T,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"||xn(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in $z?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");Dz.exports=function(t,e){var r=t,o=yW(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):xn(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var u=$z[o.arrayFormat],l=u==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p=Nz(),f=0;f<n.length;++f){var y=n[f],m=r[y];o.skipNulls&&m===null||zz(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 jz=z((npe,Lz)=>{"use strict";var Tn=bS(),Qm=Object.prototype.hasOwnProperty,ES=Array.isArray,ht={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Tn.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"),Mz=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",PW=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&&(_=Tn.maybeMap(Mz(f.slice(m+1),r,ES(o[h])?o[h].length:0),function(S){return r.decoder(S,ht.decoder,p,"value")}))),_&&r.interpretNumericEntities&&p==="iso-8859-1"&&(_=_W(String(_))),f.indexOf("[]=")>-1&&(_=ES(_)?[_]:_),r.comma&&ES(_)&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");_=Tn.combine([],_,r.arrayLimit,r.plainObjects)}if(h!==null){var E=Qm.call(o,h);E&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?o[h]=Tn.combine(o[h],_,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(o[h]=_)}}return o},"parseQueryStringValues"),EW=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:Mz(e,r,n),u=t.length-1;u>=0;--u){var l,p=t[u];if(p==="[]"&&r.parseArrays)Tn.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Tn.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,Tn.markOverflow(l,m)):y!=="__proto__"&&(l[y]=s)}}s=l}return s},"parseObject"),SW=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"),xW=a(function(e,r,o,n){if(e){var i=SW(e,o);if(i)return EW(i,r,o,n)}},"parseQueryStringKeys"),TW=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"||Tn.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");Lz.exports=function(t,e){var r=TW(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?PW(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],l=xW(u,o[u],r,typeof t=="string");n=Tn.merge(n,l,r)}return r.allowSparse===!0?n:Tn.compact(n)}});var SS=z((ipe,Fz)=>{"use strict";var AW=Uz(),wW=jz(),IW=Jm();Fz.exports={formats:IW,parse:wW,stringify:AW}});var qz=z((xS,Bz)=>{(function(t,e){typeof xS=="object"?Bz.exports=e():typeof define=="function"&&define.amd?define([],e):t.urltemplate=e()})(xS,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 Gz=z(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.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=Vz;eh.marshallGaxiosResponse=RW;function Vz(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(Vz,"headersToClassicHeaders");function RW(t){return Object.defineProperties(t||{},{headers:{configurable:!0,writable:!0,enumerable:!0,value:Vz(t?.headers)}})}a(RW,"marshallGaxiosResponse")});var Wz=z(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.sessions=void 0;Ar.request=qW;Ar.closeSession=AS;var Zz=require("http2"),OW=require("zlib"),kW=require("url"),NW=SS(),$W=xu(),zW=require("stream"),DW=require("util"),UW=require("process"),MW=th(),{HTTP2_HEADER_CONTENT_ENCODING:LW,HTTP2_HEADER_CONTENT_TYPE:Hz,HTTP2_HEADER_METHOD:jW,HTTP2_HEADER_PATH:FW,HTTP2_HEADER_STATUS:BW}=Zz.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[Hz]||e.responseType!=="text"&&(i[Hz]="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),E=_;if(_){if(e.responseType==="json")try{E=JSON.parse(_.toString("utf8"))}catch{E=_.toString("utf8")}else e.responseType==="text"?E=_.toString("utf8"):e.responseType==="arraybuffer"&&(E=_.buffer);s.data=E}if(!e.validateStatus(s.status)){let S=`Request failed with status code ${s.status}. `;if(s.data&&typeof s.data=="object"){let T=DW.inspect(s.data,{depth:5});S=`${S}
|
|
59
|
+
'${T}`}y(new Error(S,{cause:s}))}f(s)})}).on("error",m=>{y(m)})}catch(m){AS(r).then(()=>y(m)).catch(y);return}if(s.request=p,t.data){if(t.data instanceof zW.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(()=>AS(r),500)})}a(qW,"request");function GW(t){return t>=200&&t<300}a(GW,"validateStatus");function VW(t){if(Ar.sessions[t])dl&&console.log(`Used cached client for ${t}`);else{dl&&console.log(`Creating client for ${t}`);let e=Zz.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(VW,"_getClient");async function AS(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(AS,"closeSession")});var Kz=z((fpe,HW)=>{HW.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 rh=z(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.createAPIRequest=XW;var wS=bt(),ZW=SS(),eD=require("stream"),Jz=qz(),Xz=xu(),CS=Gz(),WW=Wz(),IS=th(),tD=Kz(),Yz=a(()=>globalThis.crypto?.randomUUID()||require("crypto").randomUUID(),"randomUUID");function KW(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object"}a(KW,"isReadableStream");function JW(t,e){let r=new Array;return e.forEach(o=>{t[o]===void 0&&r.push(o)}),r.length>0?r:null}a(JW,"getMissingParams");function XW(t,e){if(e)Qz(t).then(r=>e(null,r),e);else return Qz(t)}a(XW,"createAPIRequest");async function Qz(t){let e=Xz(!0,{},t.context.google?._options||{},t.context._options||{},t.options),r=Xz(!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,IS.headersToClassicHeaders)(r.headers||{});YW(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=JW(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=Jz.parse(h).expand(r)}if(t.mediaUrl&&(t.mediaUrl=Jz.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=>ZW.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 _=Yz(),E=`--${_}--`,S=new eD.PassThrough({flush(L){this.push(`\r
|
|
60
|
+
`),this.push(E),L()}}),T=new RS,k=KW(h[1].body);u["content-type"]=`multipart/related; boundary=${_}`;for(let L of h){let Y=`--${_}\r
|
|
61
|
+
content-type: ${L["content-type"]}\r
|
|
62
62
|
\r
|
|
63
|
-
`;
|
|
64
|
-
`)):(
|
|
65
|
-
content-type: ${
|
|
63
|
+
`;S.push(Y),typeof L.body=="string"?(S.push(L.body),S.push(`\r
|
|
64
|
+
`)):(T.on("progress",H=>{e.onUploadProgress&&e.onUploadProgress({bytesRead:H})}),L.body.pipe(T).pipe(S))}k||(S.push(E),S.push(null)),e.data=S}a(p,"multipartUpload");function f(h){let _=Yz(),E=`--${_}--`;u["content-type"]=`multipart/related; boundary=${_}`;let S="";for(let T of h){let k=`--${_}\r
|
|
65
|
+
content-type: ${T["content-type"]}\r
|
|
66
66
|
\r
|
|
67
|
-
`;
|
|
68
|
-
`)}P+=E,e.data=P}if(a(f,"browserMultipartUpload"),t.mediaUrl&&o.body)if(e.url=t.mediaUrl,r){n.uploadType="multipart";let h=[{"content-type":"application/json",body:JSON.stringify(r)},{"content-type":o.mimeType||r&&r.mimeType||s,body:o.body}];(0,iP.isBrowser)()?f(h):p(h)}else n.uploadType="media",Object.assign(u,{"content-type":o.mimeType||s}),e.data=o.body;else e.data=r||void 0;if(e.headers=nP.Gaxios.mergeHeaders(e.headers||{},u),e.params=n,!(0,iP.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:vN.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let E=`${_.product}/${_.version}`;return _.comment&&(E+=` (${_.comment})`),E}).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),E=Object.assign({},e);return E.headers=nP.Gaxios.mergeHeaders(E.headers,_),DH.request(E)}else{let _=await i.request(e);return(0,oP.marshallGaxiosResponse)(_)}}else return new nP.Gaxios().request(e).then(h=>(0,oP.marshallGaxiosResponse)(h))}a(yN,"createAPIRequestAsync");var aP=class extends _N.Transform{static{a(this,"ProgressStream")}bytesRead=0;_transform(e,n,o){this.bytesRead+=e.length,this.emit("progress",this.bytesRead),this.push(e),o()}};function LH(t,e){(0,iP.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${vN.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(LH,"populateAPIHeader")});var bN=N(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.AuthPlus=void 0;var Ln=ku(),cP=class extends Ln.GoogleAuth{static{a(this,"AuthPlus")}JWT=Ln.JWT;Compute=Ln.Compute;OAuth2=Ln.OAuth2Client;GoogleAuth=Ln.GoogleAuth;AwsClient=Ln.AwsClient;IdentityPoolClient=Ln.IdentityPoolClient;ExternalAccountClient=Ln.ExternalAccountClient;_cachedAuth;async getClient(e){return this._cachedAuth=new Ln.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()}};Vm.AuthPlus=cP});var lP=N(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.Endpoint=void 0;var SN=qm(),uP=class{static{a(this,"Endpoint")}_options;google;constructor(e){this._options=e||{}}applySchema(e,n,o,r){if(this.applyMethodsFromSchema(e,n,o,r),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],n,s,r)}}}applyMethodsFromSchema(e,n,o,r){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(n,s,r)}}}makeMethod(e,n,o){return(r,i)=>{let s=typeof r=="function"?{}:r;i=typeof r=="function"?r:i;let u=EN(e.rootUrl+e.servicePath+n.path),l={options:{url:u.substring(1,u.length-1),method:n.httpMethod,apiVersion:n.apiVersion},params:s,requiredParams:n.parameterOrder||[],pathParams:this.getPathParams(n.parameters),context:o};if(n.mediaUpload&&n.mediaUpload.protocols&&n.mediaUpload.protocols.simple&&n.mediaUpload.protocols.simple.path){let p=EN(e.rootUrl+n.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,SN.createAPIRequest)(l);(0,SN.createAPIRequest)(l,i)}}getPathParams(e){let n=new Array;return typeof e!="object"&&(e={}),Object.keys(e).forEach(o=>{e[o].location==="path"&&n.push(o)}),n}};Zm.Endpoint=uP;function EN(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(EN,"buildurl")});var xN=N(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.Discovery=void 0;var FH=require("fs"),BH=gt(),qH=require("url"),PN=require("util"),VH=qm(),ZH=lP(),HH=PN.promisify(FH.readFile),dP=class{static{a(this,"Discovery")}transporter=new BH.Gaxios;options;constructor(e){this.options=e||{}}makeEndpoint(e){return n=>{let o=new ZH.Endpoint(n);return o.applySchema(o,e,e,o),o}}log(...e){this.options&&this.options.debug&&console.log(...e)}async discoverAllAPIs(e){let n=new Headers(this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"}),r=(await this.transporter.request({url:e,headers:n})).data.items,i=await Promise.all(r.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(PN.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 n=qH.parse(e);if(e&&!n.protocol){this.log("Reading from file "+e);let o=await HH(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 n=e;this.log("Requesting "+n.url);let o=n.url;delete n.url;let r={options:{url:o,method:"GET"},requiredParams:[],pathParams:[],params:n,context:{google:{_options:{}},_options:{}}},i=await(0,VH.createAPIRequest)(r);return this.makeEndpoint(i.data)}}};Hm.Discovery=dP});var Gm=N(Oe=>{"use strict";var GH=Oe&&Oe.__createBinding||(Object.create?(function(t,e,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return e[n]},"get")}),Object.defineProperty(t,o,r)}):(function(t,e,n,o){o===void 0&&(o=n),t[o]=e[n]})),WH=Oe&&Oe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&GH(e,t,n)};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.Endpoint=Oe.Discovery=Oe.AuthPlus=Oe.createAPIRequest=Oe.getAPI=Oe.GaxiosError=Oe.Gaxios=Oe.AwsClient=Oe.IdentityPoolClient=Oe.BaseExternalAccountClient=Oe.ExternalAccountClient=Oe.GoogleAuth=Oe.UserRefreshClient=Oe.Compute=Oe.JWT=Oe.OAuth2Client=Oe.gaxios=Oe.googleAuthLibrary=void 0;Oe.googleAuthLibrary=ku();Oe.gaxios=gt();var Fn=ku();Object.defineProperty(Oe,"OAuth2Client",{enumerable:!0,get:a(function(){return Fn.OAuth2Client},"get")});Object.defineProperty(Oe,"JWT",{enumerable:!0,get:a(function(){return Fn.JWT},"get")});Object.defineProperty(Oe,"Compute",{enumerable:!0,get:a(function(){return Fn.Compute},"get")});Object.defineProperty(Oe,"UserRefreshClient",{enumerable:!0,get:a(function(){return Fn.UserRefreshClient},"get")});Object.defineProperty(Oe,"GoogleAuth",{enumerable:!0,get:a(function(){return Fn.GoogleAuth},"get")});Object.defineProperty(Oe,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Fn.ExternalAccountClient},"get")});Object.defineProperty(Oe,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Fn.BaseExternalAccountClient},"get")});Object.defineProperty(Oe,"IdentityPoolClient",{enumerable:!0,get:a(function(){return Fn.IdentityPoolClient},"get")});Object.defineProperty(Oe,"AwsClient",{enumerable:!0,get:a(function(){return Fn.AwsClient},"get")});var TN=gt();Object.defineProperty(Oe,"Gaxios",{enumerable:!0,get:a(function(){return TN.Gaxios},"get")});Object.defineProperty(Oe,"GaxiosError",{enumerable:!0,get:a(function(){return TN.GaxiosError},"get")});var JH=hk();Object.defineProperty(Oe,"getAPI",{enumerable:!0,get:a(function(){return JH.getAPI},"get")});var KH=qm();Object.defineProperty(Oe,"createAPIRequest",{enumerable:!0,get:a(function(){return KH.createAPIRequest},"get")});var XH=bN();Object.defineProperty(Oe,"AuthPlus",{enumerable:!0,get:a(function(){return XH.AuthPlus},"get")});var YH=xN();Object.defineProperty(Oe,"Discovery",{enumerable:!0,get:a(function(){return YH.Discovery},"get")});var QH=lP();Object.defineProperty(Oe,"Endpoint",{enumerable:!0,get:a(function(){return QH.Endpoint},"get")});WH(Bm(),Oe)});var wN=N(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.people_v1=void 0;var Pe=Gm(),AN;(function(t){class e{static{a(this,"People")}context;contactGroups;otherContacts;people;constructor(l,p){this.context={_options:l||{},google:p},this.contactGroups=new n(this.context),this.otherContacts=new r(this.context),this.people=new i(this.context)}}t.People=e;class n{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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.createAPIRequest)(_)}}t.Resource$Contactgroups=n;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,Pe.createAPIRequest)(_,f);else return(0,Pe.createAPIRequest)(_)}}t.Resource$Contactgroups$Members=o;class r{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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.createAPIRequest)(_)}}t.Resource$Othercontacts=r;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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.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,Pe.createAPIRequest)(_,f);else return(0,Pe.createAPIRequest)(_)}}t.Resource$People$Connections=s})(AN||(Wm.people_v1=AN={}))});var ON=N(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.AuthPlus=kr.people_v1=kr.auth=kr.VERSIONS=void 0;kr.people=eG;var IN=Gm(),RN=wN();Object.defineProperty(kr,"people_v1",{enumerable:!0,get:a(function(){return RN.people_v1},"get")});kr.VERSIONS={v1:RN.people_v1.People};function eG(t){return(0,IN.getAPI)("people",t,kr.VERSIONS,this)}a(eG,"people");var tG=new IN.AuthPlus;kr.auth=tG;var rG=Gm();Object.defineProperty(kr,"AuthPlus",{enumerable:!0,get:a(function(){return rG.AuthPlus},"get")})});var CN=N((pP,fP)=>{(function(t,e){typeof pP=="object"&&typeof fP<"u"?fP.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(pP,(function(){"use strict";var t=1e3,e=6e4,n=36e5,o="millisecond",r="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+)?$/,E=/\[([^\]]+)]|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,P={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(se){var G=["th","st","nd","rd"],H=se%100;return"["+se+(G[(H-20)%10]||G[H]||G[0])+"]"},"ordinal")},x=a(function(se,G,H){var re=String(se);return!re||re.length>=G?se:""+Array(G+1-re.length).join(H)+se},"m"),z={s:x,z:a(function(se){var G=-se.utcOffset(),H=Math.abs(G),re=Math.floor(H/60),X=H%60;return(G<=0?"+":"-")+x(re,2,"0")+":"+x(X,2,"0")},"z"),m:a(function se(G,H){if(G.date()<H.date())return-se(H,G);var re=12*(H.year()-G.year())+(H.month()-G.month()),X=G.clone().add(re,p),ue=H-X<0,de=G.clone().add(re+(ue?-1:1),p);return+(-(re+(H-X)/(ue?X-de:de-X))||0)},"t"),a:a(function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},"a"),p:a(function(se){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:r,ms:o,Q:f}[se]||String(se||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(se){return se===void 0},"u")},M="en",K={};K[M]=P;var Z=a(function(se){return se instanceof Y},"p"),J=a(function se(G,H,re){var X;if(!G)return M;if(typeof G=="string"){var ue=G.toLowerCase();K[ue]&&(X=ue),H&&(K[ue]=H,X=ue);var de=G.split("-");if(!X&&de.length>1)return se(de[0])}else{var Ce=G.name;K[Ce]=G,X=Ce}return!re&&X&&(M=X),X||!re&&M},"t"),ee=a(function(se,G){if(Z(se))return se.clone();var H=typeof G=="object"?G:{};return H.date=se,H.args=arguments,new Y(H)},"w"),ae=z;ae.l=J,ae.i=Z,ae.w=function(se,G){return ee(se,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var Y=(function(){function se(H){this.$L=J(H.locale,null,!0),this.parse(H)}a(se,"M");var G=se.prototype;return G.parse=function(H){this.$d=(function(re){var X=re.date,ue=re.utc;if(X===null)return new Date(NaN);if(ae.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var de=X.match(_);if(de){var Ce=de[2]-1||0,De=(de[7]||"0").substring(0,3);return ue?new Date(Date.UTC(de[1],Ce,de[3]||1,de[4]||0,de[5]||0,de[6]||0,De)):new Date(de[1],Ce,de[3]||1,de[4]||0,de[5]||0,de[6]||0,De)}}return new Date(X)})(H),this.$x=H.x||{},this.init()},G.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},G.$utils=function(){return ae},G.isValid=function(){return this.$d.toString()!==h},G.isSame=function(H,re){var X=ee(H);return this.startOf(re)<=X&&X<=this.endOf(re)},G.isAfter=function(H,re){return ee(H)<this.startOf(re)},G.isBefore=function(H,re){return this.endOf(re)<ee(H)},G.$g=function(H,re,X){return ae.u(H)?this[re]:this.set(X,H)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(H,re){var X=this,ue=!!ae.u(re)||re,de=ae.p(H),Ce=a(function(er,He){var Ke=ae.w(X.$u?Date.UTC(X.$y,He,er):new Date(X.$y,He,er),X);return ue?Ke:Ke.endOf(u)},"l"),De=a(function(er,He){return ae.w(X.toDate()[er].apply(X.toDate("s"),(ue?[0,0,0,0]:[23,59,59,999]).slice(He)),X)},"$"),Je=this.$W,tt=this.$M,xt=this.$D,ie="set"+(this.$u?"UTC":"");switch(de){case y:return ue?Ce(1,0):Ce(31,11);case p:return ue?Ce(1,tt):Ce(0,tt+1);case l:var dt=this.$locale().weekStart||0,ft=(Je<dt?Je+7:Je)-dt;return Ce(ue?xt-ft:xt+(6-ft),tt);case u:case m:return De(ie+"Hours",0);case s:return De(ie+"Minutes",1);case i:return De(ie+"Seconds",2);case r:return De(ie+"Milliseconds",3);default:return this.clone()}},G.endOf=function(H){return this.startOf(H,!1)},G.$set=function(H,re){var X,ue=ae.p(H),de="set"+(this.$u?"UTC":""),Ce=(X={},X[u]=de+"Date",X[m]=de+"Date",X[p]=de+"Month",X[y]=de+"FullYear",X[s]=de+"Hours",X[i]=de+"Minutes",X[r]=de+"Seconds",X[o]=de+"Milliseconds",X)[ue],De=ue===u?this.$D+(re-this.$W):re;if(ue===p||ue===y){var Je=this.clone().set(m,1);Je.$d[Ce](De),Je.init(),this.$d=Je.set(m,Math.min(this.$D,Je.daysInMonth())).$d}else Ce&&this.$d[Ce](De);return this.init(),this},G.set=function(H,re){return this.clone().$set(H,re)},G.get=function(H){return this[ae.p(H)]()},G.add=function(H,re){var X,ue=this;H=Number(H);var de=ae.p(re),Ce=a(function(tt){var xt=ee(ue);return ae.w(xt.date(xt.date()+Math.round(tt*H)),ue)},"y");if(de===p)return this.set(p,this.$M+H);if(de===y)return this.set(y,this.$y+H);if(de===u)return Ce(1);if(de===l)return Ce(7);var De=(X={},X[i]=e,X[s]=n,X[r]=t,X)[de]||1,Je=this.$d.getTime()+H*De;return ae.w(Je,this)},G.subtract=function(H,re){return this.add(-1*H,re)},G.format=function(H){var re=this,X=this.$locale();if(!this.isValid())return X.invalidDate||h;var ue=H||"YYYY-MM-DDTHH:mm:ssZ",de=ae.z(this),Ce=this.$H,De=this.$m,Je=this.$M,tt=X.weekdays,xt=X.months,ie=X.meridiem,dt=a(function(He,Ke,b,T){return He&&(He[Ke]||He(re,ue))||b[Ke].slice(0,T)},"h"),ft=a(function(He){return ae.s(Ce%12||12,He,"0")},"d"),er=ie||function(He,Ke,b){var T=He<12?"AM":"PM";return b?T.toLowerCase():T};return ue.replace(E,(function(He,Ke){return Ke||(function(b){switch(b){case"YY":return String(re.$y).slice(-2);case"YYYY":return ae.s(re.$y,4,"0");case"M":return Je+1;case"MM":return ae.s(Je+1,2,"0");case"MMM":return dt(X.monthsShort,Je,xt,3);case"MMMM":return dt(xt,Je);case"D":return re.$D;case"DD":return ae.s(re.$D,2,"0");case"d":return String(re.$W);case"dd":return dt(X.weekdaysMin,re.$W,tt,2);case"ddd":return dt(X.weekdaysShort,re.$W,tt,3);case"dddd":return tt[re.$W];case"H":return String(Ce);case"HH":return ae.s(Ce,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return er(Ce,De,!0);case"A":return er(Ce,De,!1);case"m":return String(De);case"mm":return ae.s(De,2,"0");case"s":return String(re.$s);case"ss":return ae.s(re.$s,2,"0");case"SSS":return ae.s(re.$ms,3,"0");case"Z":return de}return null})(He)||de.replace(":","")}))},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(H,re,X){var ue,de=this,Ce=ae.p(re),De=ee(H),Je=(De.utcOffset()-this.utcOffset())*e,tt=this-De,xt=a(function(){return ae.m(de,De)},"D");switch(Ce){case y:ue=xt()/12;break;case p:ue=xt();break;case f:ue=xt()/3;break;case l:ue=(tt-Je)/6048e5;break;case u:ue=(tt-Je)/864e5;break;case s:ue=tt/n;break;case i:ue=tt/e;break;case r:ue=tt/t;break;default:ue=tt}return X?ue:ae.a(ue)},G.daysInMonth=function(){return this.endOf(p).$D},G.$locale=function(){return K[this.$L]},G.locale=function(H,re){if(!H)return this.$L;var X=this.clone(),ue=J(H,re,!0);return ue&&(X.$L=ue),X},G.clone=function(){return ae.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},se})(),ze=Y.prototype;return ee.prototype=ze,[["$ms",o],["$s",r],["$m",i],["$H",s],["$W",u],["$M",p],["$y",y],["$D",m]].forEach((function(se){ze[se[1]]=function(G){return this.$g(G,se[0],se[1])}})),ee.extend=function(se,G){return se.$i||(se(G,Y,ee),se.$i=!0),ee},ee.locale=J,ee.isDayjs=Z,ee.unix=function(se){return ee(1e3*se)},ee.en=K[M],ee.Ls=K,ee.p={},ee}))});var oG={};nr(oG,{googleContacts:()=>nG});module.exports=ED(oG);var ir={};nr(ir,{$ZodAny:()=>bs,$ZodArray:()=>xs,$ZodAsyncError:()=>Ur,$ZodBase64:()=>id,$ZodBase64URL:()=>ad,$ZodBigInt:()=>Gi,$ZodBigIntFormat:()=>ld,$ZodBoolean:()=>Fo,$ZodCIDRv4:()=>nd,$ZodCIDRv6:()=>od,$ZodCUID:()=>Zl,$ZodCUID2:()=>Hl,$ZodCatch:()=>Ad,$ZodCheck:()=>Ye,$ZodCheckBigIntFormat:()=>cg,$ZodCheckEndsWith:()=>bg,$ZodCheckGreaterThan:()=>Nl,$ZodCheckIncludes:()=>_g,$ZodCheckLengthEquals:()=>mg,$ZodCheckLessThan:()=>kl,$ZodCheckLowerCase:()=>gg,$ZodCheckMaxLength:()=>pg,$ZodCheckMaxSize:()=>ug,$ZodCheckMimeType:()=>Eg,$ZodCheckMinLength:()=>fg,$ZodCheckMinSize:()=>lg,$ZodCheckMultipleOf:()=>ag,$ZodCheckNumberFormat:()=>sg,$ZodCheckOverwrite:()=>Pg,$ZodCheckProperty:()=>Sg,$ZodCheckRegex:()=>hg,$ZodCheckSizeEquals:()=>dg,$ZodCheckStartsWith:()=>vg,$ZodCheckStringFormat:()=>Zi,$ZodCheckUpperCase:()=>yg,$ZodCodec:()=>Ji,$ZodCustom:()=>ks,$ZodCustomStringFormat:()=>ud,$ZodDate:()=>Ps,$ZodDefault:()=>Ed,$ZodDiscriminatedUnion:()=>Ts,$ZodE164:()=>sd,$ZodEmail:()=>Bl,$ZodEmoji:()=>ql,$ZodEncodeError:()=>Kn,$ZodEnum:()=>Is,$ZodError:()=>ms,$ZodExactOptional:()=>Sd,$ZodFile:()=>bd,$ZodFunction:()=>Od,$ZodGUID:()=>Ll,$ZodIPv4:()=>ed,$ZodIPv6:()=>td,$ZodISODate:()=>Xl,$ZodISODateTime:()=>Kl,$ZodISODuration:()=>Ql,$ZodISOTime:()=>Yl,$ZodIntersection:()=>yd,$ZodJWT:()=>cd,$ZodKSUID:()=>Jl,$ZodLazy:()=>$d,$ZodLiteral:()=>Rs,$ZodMAC:()=>rd,$ZodMap:()=>_d,$ZodNaN:()=>wd,$ZodNanoID:()=>Vl,$ZodNever:()=>md,$ZodNonOptional:()=>xd,$ZodNull:()=>fd,$ZodNullable:()=>Cs,$ZodNumber:()=>Hi,$ZodNumberFormat:()=>vs,$ZodObject:()=>hd,$ZodObjectJIT:()=>wg,$ZodOptional:()=>Wi,$ZodPipe:()=>$s,$ZodPrefault:()=>Pd,$ZodPromise:()=>Cd,$ZodReadonly:()=>Id,$ZodRealError:()=>Ht,$ZodRecord:()=>ws,$ZodRegistry:()=>kd,$ZodSet:()=>vd,$ZodString:()=>Tn,$ZodStringFormat:()=>Ge,$ZodSuccess:()=>Td,$ZodSymbol:()=>dd,$ZodTemplateLiteral:()=>Rd,$ZodTransform:()=>Os,$ZodTuple:()=>As,$ZodType:()=>Se,$ZodULID:()=>Gl,$ZodURL:()=>_s,$ZodUUID:()=>Fl,$ZodUndefined:()=>pd,$ZodUnion:()=>Bo,$ZodUnknown:()=>Ss,$ZodVoid:()=>Es,$ZodXID:()=>Wl,$ZodXor:()=>gd,$brand:()=>ss,$constructor:()=>w,$input:()=>zd,$output:()=>Nd,Doc:()=>ys,JSONSchema:()=>uT,JSONSchemaGenerator:()=>lp,NEVER:()=>yl,TimePrecision:()=>Ud,_any:()=>fc,_array:()=>by,_base64:()=>nc,_base64url:()=>oc,_bigint:()=>Hd,_boolean:()=>lc,_catch:()=>IM,_check:()=>cT,_cidrv4:()=>tc,_cidrv6:()=>rc,_coercedBigint:()=>pc,_coercedBoolean:()=>dc,_coercedDate:()=>gc,_coercedNumber:()=>cc,_coercedString:()=>Ls,_cuid:()=>Ws,_cuid2:()=>Js,_custom:()=>Ec,_date:()=>Qd,_decode:()=>xl,_decodeAsync:()=>Al,_default:()=>TM,_discriminatedUnion:()=>fM,_e164:()=>ic,_email:()=>Fs,_emoji:()=>Hs,_encode:()=>Pl,_encodeAsync:()=>Tl,_endsWith:()=>Wo,_enum:()=>vM,_file:()=>tp,_float32:()=>Bd,_float64:()=>qd,_gt:()=>jr,_gte:()=>Et,_guid:()=>Yi,_includes:()=>Ho,_int:()=>uc,_int32:()=>Vd,_int64:()=>Gd,_intersection:()=>mM,_ipv4:()=>Qs,_ipv6:()=>ec,_isoDate:()=>jd,_isoDateTime:()=>Md,_isoDuration:()=>Fd,_isoTime:()=>Ld,_jwt:()=>ac,_ksuid:()=>Ys,_lazy:()=>$M,_length:()=>no,_literal:()=>SM,_lowercase:()=>Vo,_lt:()=>Mr,_lte:()=>Lt,_mac:()=>Dd,_map:()=>yM,_max:()=>Lt,_maxLength:()=>ro,_maxSize:()=>wn,_mime:()=>Jo,_min:()=>Et,_minLength:()=>mt,_minSize:()=>Lr,_multipleOf:()=>An,_nan:()=>ep,_nanoid:()=>Gs,_nativeEnum:()=>bM,_negative:()=>_c,_never:()=>Yd,_nonnegative:()=>bc,_nonoptional:()=>AM,_nonpositive:()=>vc,_normalize:()=>Ko,_null:()=>Xd,_nullable:()=>xM,_number:()=>sc,_optional:()=>PM,_overwrite:()=>Pr,_parse:()=>ji,_parseAsync:()=>Li,_pipe:()=>RM,_positive:()=>yc,_promise:()=>kM,_property:()=>Sc,_readonly:()=>OM,_record:()=>gM,_refine:()=>rp,_regex:()=>kt,_safeDecode:()=>Il,_safeDecodeAsync:()=>Ol,_safeEncode:()=>wl,_safeEncodeAsync:()=>Rl,_safeParse:()=>Fi,_safeParseAsync:()=>qi,_set:()=>_M,_size:()=>to,_slugify:()=>Qi,_startsWith:()=>Go,_string:()=>js,_stringFormat:()=>ei,_stringbool:()=>ap,_success:()=>wM,_superRefine:()=>np,_symbol:()=>Jd,_templateLiteral:()=>CM,_toLowerCase:()=>Yo,_toUpperCase:()=>Qo,_transform:()=>EM,_trim:()=>Xo,_tuple:()=>hM,_uint32:()=>Zd,_uint64:()=>Wd,_ulid:()=>Ks,_undefined:()=>Kd,_union:()=>dM,_unknown:()=>mc,_uppercase:()=>Zo,_url:()=>qo,_uuid:()=>Bs,_uuidv4:()=>qs,_uuidv6:()=>Vs,_uuidv7:()=>Zs,_void:()=>hc,_xid:()=>Xs,_xor:()=>pM,clone:()=>At,config:()=>ct,createStandardJSONSchemaMethod:()=>ea,createToJSONSchemaMethod:()=>Sy,decode:()=>Rx,decodeAsync:()=>Cx,describe:()=>op,encode:()=>Ix,encodeAsync:()=>Ox,extractDefs:()=>io,finalize:()=>ao,flattenError:()=>Ui,formatError:()=>Mi,globalConfig:()=>as,globalRegistry:()=>wt,initializeContext:()=>oo,isValidBase64:()=>Ag,isValidBase64URL:()=>Qx,isValidJWT:()=>eT,locales:()=>Xi,meta:()=>ip,parse:()=>Mo,parseAsync:()=>jo,prettifyError:()=>El,process:()=>We,regexes:()=>Gt,registry:()=>Ms,safeDecode:()=>kx,safeDecodeAsync:()=>zx,safeEncode:()=>$x,safeEncodeAsync:()=>Nx,safeParse:()=>Bi,safeParseAsync:()=>Vi,toDotPath:()=>wx,toJSONSchema:()=>Pc,treeifyError:()=>Sl,util:()=>ne,version:()=>xg});var yl=Object.freeze({status:"aborted"});function w(t,e,n){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 r=n?.Parent??Object;class i extends r{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:t});function s(u){var l;let p=n?.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=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(t),"value")}),Object.defineProperty(s,"name",{value:t}),s}a(w,"$constructor");var ss=Symbol("zod_brand"),Ur=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Kn=class extends Error{static{a(this,"$ZodEncodeError")}constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},as={};function ct(t){return t&&Object.assign(as,t),as}a(ct,"config");var ne={};nr(ne,{BIGINT_FORMAT_RANGES:()=>Ch,Class:()=>xh,NUMBER_FORMAT_RANGES:()=>Oh,aborted:()=>eo,allowsEval:()=>wh,assert:()=>wD,assertEqual:()=>PD,assertIs:()=>TD,assertNever:()=>AD,assertNotEqual:()=>xD,assignProp:()=>Yn,base64ToUint8Array:()=>xx,base64urlToUint8Array:()=>MD,cached:()=>zi,captureStackTrace:()=>vl,cleanEnum:()=>UD,cleanRegex:()=>ls,clone:()=>At,cloneDef:()=>RD,createTransparentProxy:()=>zD,defineLazy:()=>$e,esc:()=>_l,escapeRegex:()=>Er,extend:()=>bx,finalizeIssue:()=>Zt,floatSafeRemainder:()=>Th,getElementAtPath:()=>OD,getEnumValues:()=>us,getLengthableOrigin:()=>fs,getParsedType:()=>ND,getSizableOrigin:()=>ps,hexToUint8Array:()=>LD,isObject:()=>Uo,isPlainObject:()=>Qn,issue:()=>Di,joinValues:()=>B,jsonStringifyReplacer:()=>Ni,merge:()=>DD,mergeDefs:()=>xn,normalizeParams:()=>Q,nullish:()=>Xn,numKeys:()=>kD,objectClone:()=>ID,omit:()=>vx,optionalKeys:()=>Rh,parsedType:()=>oe,partial:()=>Ex,pick:()=>_x,prefixIssues:()=>or,primitiveTypes:()=>Ih,promiseAllObject:()=>CD,propertyKeyTypes:()=>ds,randomString:()=>$D,required:()=>Px,safeExtend:()=>Sx,shallowClone:()=>bl,slugify:()=>Ah,stringifyPrimitive:()=>te,uint8ArrayToBase64:()=>Tx,uint8ArrayToBase64url:()=>jD,uint8ArrayToHex:()=>FD,unwrapMessage:()=>cs});function PD(t){return t}a(PD,"assertEqual");function xD(t){return t}a(xD,"assertNotEqual");function TD(t){}a(TD,"assertIs");function AD(t){throw new Error("Unexpected value in exhaustive check")}a(AD,"assertNever");function wD(t){}a(wD,"assert");function us(t){let e=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,r])=>e.indexOf(+o)===-1).map(([o,r])=>r)}a(us,"getEnumValues");function B(t,e="|"){return t.map(n=>te(n)).join(e)}a(B,"joinValues");function Ni(t,e){return typeof e=="bigint"?e.toString():e}a(Ni,"jsonStringifyReplacer");function zi(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}a(zi,"cached");function Xn(t){return t==null}a(Xn,"nullish");function ls(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}a(ls,"cleanRegex");function Th(t,e){let n=(t.toString().split(".")[1]||"").length,o=e.toString(),r=(o.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(r=Number.parseInt(l[1]))}let i=n>r?n:r,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}a(Th,"floatSafeRemainder");var yx=Symbol("evaluating");function $e(t,e,n){let o;Object.defineProperty(t,e,{get(){if(o!==yx)return o===void 0&&(o=yx,o=n()),o},set(r){Object.defineProperty(t,e,{value:r})},configurable:!0})}a($e,"defineLazy");function ID(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}a(ID,"objectClone");function Yn(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}a(Yn,"assignProp");function xn(...t){let e={};for(let n of t){let o=Object.getOwnPropertyDescriptors(n);Object.assign(e,o)}return Object.defineProperties({},e)}a(xn,"mergeDefs");function RD(t){return xn(t._zod.def)}a(RD,"cloneDef");function OD(t,e){return e?e.reduce((n,o)=>n?.[o],t):t}a(OD,"getElementAtPath");function CD(t){let e=Object.keys(t),n=e.map(o=>t[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<e.length;i++)r[e[i]]=o[i];return r})}a(CD,"promiseAllObject");function $D(t=10){let e="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<t;o++)n+=e[Math.floor(Math.random()*e.length)];return n}a($D,"randomString");function _l(t){return JSON.stringify(t)}a(_l,"esc");function Ah(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(Ah,"slugify");var vl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Uo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}a(Uo,"isObject");var wh=zi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Qn(t){if(Uo(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(Uo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}a(Qn,"isPlainObject");function bl(t){return Qn(t)?{...t}:Array.isArray(t)?[...t]:t}a(bl,"shallowClone");function kD(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}a(kD,"numKeys");var ND=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"),ds=new Set(["string","number","symbol"]),Ih=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Er(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Er,"escapeRegex");function At(t,e,n){let o=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(o._zod.parent=t),o}a(At,"clone");function Q(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(Q,"normalizeParams");function zD(t){let e;return new Proxy({},{get(n,o,r){return e??(e=t()),Reflect.get(e,o,r)},set(n,o,r,i){return e??(e=t()),Reflect.set(e,o,r,i)},has(n,o){return e??(e=t()),Reflect.has(e,o)},deleteProperty(n,o){return e??(e=t()),Reflect.deleteProperty(e,o)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,o){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,o)},defineProperty(n,o,r){return e??(e=t()),Reflect.defineProperty(e,o,r)}})}a(zD,"createTransparentProxy");function te(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}a(te,"stringifyPrimitive");function Rh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}a(Rh,"optionalKeys");var Oh={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]},Ch={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function _x(t,e){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=xn(t._zod.def,{get shape(){let s={};for(let u in e){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&(s[u]=n.shape[u])}return Yn(this,"shape",s),s},checks:[]});return At(t,i)}a(_x,"pick");function vx(t,e){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=xn(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let u in e){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);e[u]&&delete s[u]}return Yn(this,"shape",s),s},checks:[]});return At(t,i)}a(vx,"omit");function bx(t,e){if(!Qn(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.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 r=xn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return Yn(this,"shape",i),i}});return At(t,r)}a(bx,"extend");function Sx(t,e){if(!Qn(e))throw new Error("Invalid input to safeExtend: expected a plain object");let n=xn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return Yn(this,"shape",o),o}});return At(t,n)}a(Sx,"safeExtend");function DD(t,e){let n=xn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e._zod.def.shape};return Yn(this,"shape",o),o},get catchall(){return e._zod.def.catchall},checks:[]});return At(t,n)}a(DD,"merge");function Ex(t,e,n){let r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=xn(e._zod.def,{get shape(){let u=e._zod.def.shape,l={...u};if(n)for(let p in n){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);n[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 Yn(this,"shape",l),l},checks:[]});return At(e,s)}a(Ex,"partial");function Px(t,e,n){let o=xn(e._zod.def,{get shape(){let r=e._zod.def.shape,i={...r};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new t({type:"nonoptional",innerType:r[s]}))}else for(let s in r)i[s]=new t({type:"nonoptional",innerType:r[s]});return Yn(this,"shape",i),i}});return At(e,o)}a(Px,"required");function eo(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}a(eo,"aborted");function or(t,e){return e.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(t),n})}a(or,"prefixIssues");function cs(t){return typeof t=="string"?t:t?.message}a(cs,"unwrapMessage");function Zt(t,e,n){let o={...t,path:t.path??[]};if(!t.message){let r=cs(t.inst?._zod.def?.error?.(t))??cs(e?.error?.(t))??cs(n.customError?.(t))??cs(n.localeError?.(t))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,e?.reportInput||delete o.input,o}a(Zt,"finalizeIssue");function ps(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(ps,"getSizableOrigin");function fs(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(fs,"getLengthableOrigin");function oe(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 n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}a(oe,"parsedType");function Di(...t){let[e,n,o]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:o}:{...e}}a(Di,"issue");function UD(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}a(UD,"cleanEnum");function xx(t){let e=atob(t),n=new Uint8Array(e.length);for(let o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return n}a(xx,"base64ToUint8Array");function Tx(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}a(Tx,"uint8ArrayToBase64");function MD(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-e.length%4)%4);return xx(e+n)}a(MD,"base64urlToUint8Array");function jD(t){return Tx(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(jD,"uint8ArrayToBase64url");function LD(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2)n[o/2]=Number.parseInt(e.slice(o,o+2),16);return n}a(LD,"hexToUint8Array");function FD(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a(FD,"uint8ArrayToHex");var xh=class{static{a(this,"Class")}constructor(...e){}};var Ax=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,Ni,2),Object.defineProperty(t,"toString",{value:a(()=>t.message,"value"),enumerable:!1})},"initializer"),ms=w("$ZodError",Ax),Ht=w("$ZodError",Ax,{Parent:Error});function Ui(t,e=n=>n.message){let n={},o=[];for(let r of t.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(e(r))):o.push(e(r));return{formErrors:o,fieldErrors:n}}a(Ui,"flattenError");function Mi(t,e=n=>n.message){let n={_errors:[]},o=a(r=>{for(let i of r.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)n._errors.push(e(i));else{let s=n,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),n}a(Mi,"formatError");function Sl(t,e=n=>n.message){let n={errors:[]},o=a((r,i=[])=>{var s,u;for(let l of r.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){n.errors.push(e(l));continue}let f=n,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),n}a(Sl,"treeifyError");function wx(t){let e=[],n=t.map(o=>typeof o=="object"?o.key:o);for(let o of n)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(wx,"toDotPath");function El(t){let e=[],n=[...t.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)e.push(`\u2716 ${o.message}`),o.path?.length&&e.push(` \u2192 at ${wx(o.path)}`);return e.join(`
|
|
69
|
-
`)}a(El,"prettifyError");var ji=a(t=>(e,n,o,r)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=e._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Ur;if(s.issues.length){let u=new(r?.Err??t)(s.issues.map(l=>Zt(l,i,ct())));throw vl(u,r?.callee),u}return s.value},"_parse"),Mo=ji(Ht),Li=a(t=>async(e,n,o,r)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=e._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(r?.Err??t)(s.issues.map(l=>Zt(l,i,ct())));throw vl(u,r?.callee),u}return s.value},"_parseAsync"),jo=Li(Ht),Fi=a(t=>(e,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=e._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Ur;return i.issues.length?{success:!1,error:new(t??ms)(i.issues.map(s=>Zt(s,r,ct())))}:{success:!0,data:i.value}},"_safeParse"),Bi=Fi(Ht),qi=a(t=>async(e,n,o)=>{let r=o?Object.assign(o,{async:!0}):{async:!0},i=e._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Zt(s,r,ct())))}:{success:!0,data:i.value}},"_safeParseAsync"),Vi=qi(Ht),Pl=a(t=>(e,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ji(t)(e,n,r)},"_encode"),Ix=Pl(Ht),xl=a(t=>(e,n,o)=>ji(t)(e,n,o),"_decode"),Rx=xl(Ht),Tl=a(t=>async(e,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Li(t)(e,n,r)},"_encodeAsync"),Ox=Tl(Ht),Al=a(t=>async(e,n,o)=>Li(t)(e,n,o),"_decodeAsync"),Cx=Al(Ht),wl=a(t=>(e,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Fi(t)(e,n,r)},"_safeEncode"),$x=wl(Ht),Il=a(t=>(e,n,o)=>Fi(t)(e,n,o),"_safeDecode"),kx=Il(Ht),Rl=a(t=>async(e,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return qi(t)(e,n,r)},"_safeEncodeAsync"),Nx=Rl(Ht),Ol=a(t=>async(e,n,o)=>qi(t)(e,n,o),"_safeDecodeAsync"),zx=Ol(Ht);var Gt={};nr(Gt,{base64:()=>Gh,base64url:()=>Cl,bigint:()=>Qh,boolean:()=>tg,browserEmail:()=>KD,cidrv4:()=>Zh,cidrv6:()=>Hh,cuid:()=>$h,cuid2:()=>kh,date:()=>Jh,datetime:()=>Xh,domain:()=>QD,duration:()=>Mh,e164:()=>Wh,email:()=>Lh,emoji:()=>Fh,extendedDuration:()=>qD,guid:()=>jh,hex:()=>eU,hostname:()=>YD,html5Email:()=>GD,idnEmail:()=>JD,integer:()=>eg,ipv4:()=>Bh,ipv6:()=>qh,ksuid:()=>Dh,lowercase:()=>og,mac:()=>Vh,md5_base64:()=>rU,md5_base64url:()=>nU,md5_hex:()=>tU,nanoid:()=>Uh,null:()=>rg,number:()=>$l,rfc5322Email:()=>WD,sha1_base64:()=>iU,sha1_base64url:()=>aU,sha1_hex:()=>oU,sha256_base64:()=>cU,sha256_base64url:()=>uU,sha256_hex:()=>sU,sha384_base64:()=>dU,sha384_base64url:()=>pU,sha384_hex:()=>lU,sha512_base64:()=>mU,sha512_base64url:()=>hU,sha512_hex:()=>fU,string:()=>Yh,time:()=>Kh,ulid:()=>Nh,undefined:()=>ng,unicodeEmail:()=>Dx,uppercase:()=>ig,uuid:()=>Lo,uuid4:()=>VD,uuid6:()=>ZD,uuid7:()=>HD,xid:()=>zh});var $h=/^[cC][^\s-]{8,}$/,kh=/^[0-9a-z]+$/,Nh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zh=/^[0-9a-vA-V]{20}$/,Dh=/^[A-Za-z0-9]{27}$/,Uh=/^[a-zA-Z0-9_-]{21}$/,Mh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qD=/^[-+]?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)?)??$/,jh=/^([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})$/,Lo=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"),VD=Lo(4),ZD=Lo(6),HD=Lo(7),Lh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GD=/^[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])?)*$/,WD=/^(([^<>()\[\]\\.,;:\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,}))$/,Dx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,JD=Dx,KD=/^[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])?)*$/,XD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fh(){return new RegExp(XD,"u")}a(Fh,"emoji");var Bh=/^(?:(?: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])$/,qh=/^(([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}|:))$/,Vh=a(t=>{let e=Er(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"),Zh=/^((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])$/,Hh=/^(([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])$/,Gh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cl=/^[A-Za-z0-9_-]*$/,YD=/^(?=.{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])?)*\.?$/,QD=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Wh=/^\+[1-9]\d{6,14}$/,Ux="(?:(?:\\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])))",Jh=new RegExp(`^${Ux}$`);function Mx(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(Mx,"timeSource");function Kh(t){return new RegExp(`^${Mx(t)}$`)}a(Kh,"time");function Xh(t){let e=Mx({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${e}(?:${n.join("|")})`;return new RegExp(`^${Ux}T(?:${o})$`)}a(Xh,"datetime");var Yh=a(t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},"string"),Qh=/^-?\d+n?$/,eg=/^-?\d+$/,$l=/^-?\d+(?:\.\d+)?$/,tg=/^(?:true|false)$/i,rg=/^null$/i;var ng=/^undefined$/i;var og=/^[^A-Z]*$/,ig=/^[^a-z]*$/,eU=/^[0-9a-fA-F]*$/;function hs(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(hs,"fixedBase64");function gs(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(gs,"fixedBase64url");var tU=/^[0-9a-fA-F]{32}$/,rU=hs(22,"=="),nU=gs(22),oU=/^[0-9a-fA-F]{40}$/,iU=hs(27,"="),aU=gs(27),sU=/^[0-9a-fA-F]{64}$/,cU=hs(43,"="),uU=gs(43),lU=/^[0-9a-fA-F]{96}$/,dU=hs(64,""),pU=gs(64),fU=/^[0-9a-fA-F]{128}$/,mU=hs(86,"=="),hU=gs(86);var Ye=w("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Lx={number:"number",bigint:"bigint",object:"date"},kl=w("$ZodCheckLessThan",(t,e)=>{Ye.init(t,e);let n=Lx[typeof e.value];t._zod.onattach.push(o=>{let r=o._zod.bag,i=(e.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value<=e.value:o.value<e.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Nl=w("$ZodCheckGreaterThan",(t,e)=>{Ye.init(t,e);let n=Lx[typeof e.value];t._zod.onattach.push(o=>{let r=o._zod.bag,i=(e.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),t._zod.check=o=>{(e.inclusive?o.value>=e.value:o.value>e.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:o.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),ag=w("$ZodCheckMultipleOf",(t,e)=>{Ye.init(t,e),t._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Th(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),sg=w("$ZodCheckNumberFormat",(t,e)=>{Ye.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),o=n?"int":"number",[r,i]=Oh[e.format];t._zod.onattach.push(s=>{let u=s._zod.bag;u.format=e.format,u.minimum=r,u.maximum=i,n&&(u.pattern=eg)}),t._zod.check=s=>{let u=s.value;if(n){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<r&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:r,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})}}),cg=w("$ZodCheckBigIntFormat",(t,e)=>{Ye.init(t,e);let[n,o]=Ch[e.format];t._zod.onattach.push(r=>{let i=r._zod.bag;i.format=e.format,i.minimum=n,i.maximum=o}),t._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),ug=w("$ZodCheckMaxSize",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.size!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<r&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let r=o.value;r.size<=e.maximum||o.issues.push({origin:ps(r),code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),lg=w("$ZodCheckMinSize",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.size!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>r&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let r=o.value;r.size>=e.minimum||o.issues.push({origin:ps(r),code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),dg=w("$ZodCheckSizeEquals",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.size!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=e.size,r.maximum=e.size,r.size=e.size}),t._zod.check=o=>{let r=o.value,i=r.size;if(i===e.size)return;let s=i>e.size;o.issues.push({origin:ps(r),...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})}}),pg=w("$ZodCheckMaxLength",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.length!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<r&&(o._zod.bag.maximum=e.maximum)}),t._zod.check=o=>{let r=o.value;if(r.length<=e.maximum)return;let s=fs(r);o.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),fg=w("$ZodCheckMinLength",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.length!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>r&&(o._zod.bag.minimum=e.minimum)}),t._zod.check=o=>{let r=o.value;if(r.length>=e.minimum)return;let s=fs(r);o.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),mg=w("$ZodCheckLengthEquals",(t,e)=>{var n;Ye.init(t,e),(n=t._zod.def).when??(n.when=o=>{let r=o.value;return!Xn(r)&&r.length!==void 0}),t._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=e.length,r.maximum=e.length,r.length=e.length}),t._zod.check=o=>{let r=o.value,i=r.length;if(i===e.length)return;let s=fs(r),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})}}),Zi=w("$ZodCheckStringFormat",(t,e)=>{var n,o;Ye.init(t,e),t._zod.onattach.push(r=>{let i=r._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:e.format,input:r.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(o=t._zod).check??(o.check=()=>{})}),hg=w("$ZodCheckRegex",(t,e)=>{Zi.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),gg=w("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=og),Zi.init(t,e)}),yg=w("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=ig),Zi.init(t,e)}),_g=w("$ZodCheckIncludes",(t,e)=>{Ye.init(t,e);let n=Er(e.includes),o=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=o,t._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:t,continue:!e.abort})}}),vg=w("$ZodCheckStartsWith",(t,e)=>{Ye.init(t,e);let n=new RegExp(`^${Er(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),bg=w("$ZodCheckEndsWith",(t,e)=>{Ye.init(t,e);let n=new RegExp(`.*${Er(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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 jx(t,e,n){t.issues.length&&e.issues.push(...or(n,t.issues))}a(jx,"handleCheckPropertyResult");var Sg=w("$ZodCheckProperty",(t,e)=>{Ye.init(t,e),t._zod.check=n=>{let o=e.schema._zod.run({value:n.value[e.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>jx(r,n,e.property));jx(o,n,e.property)}}),Eg=w("$ZodCheckMimeType",(t,e)=>{Ye.init(t,e);let n=new Set(e.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=e.mime}),t._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:e.mime,input:o.value.type,inst:t,continue:!e.abort})}}),Pg=w("$ZodCheckOverwrite",(t,e)=>{Ye.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var ys=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
|
-
`).filter(s=>s),
|
|
71
|
-
`))}};var xg={major:4,minor:3,patch:6};var Se=w("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=xg;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let r of o)for(let i of r._zod.onattach)i(t);if(o.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=a((s,u,l)=>{let p=eo(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 Ur;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(p||(p=eo(s,m)))});else{if(s.issues.length===m)continue;p||(p=eo(s,m))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,l)=>{if(eo(s))return s.aborted=!0,s;let p=r(u,o,l);if(p instanceof Promise){if(l.async===!1)throw new Ur;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 Ur;return l.then(p=>r(p,o,u))}return r(l,o,u)}}$e(t,"~standard",()=>({validate:a(r=>{try{let i=Bi(t,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Vi(t,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Tn=w("$ZodString",(t,e)=>{Se.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Yh(t._zod.bag),t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),Ge=w("$ZodStringFormat",(t,e)=>{Zi.init(t,e),Tn.init(t,e)}),Ll=w("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=jh),Ge.init(t,e)}),Fl=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=Lo(o))}else e.pattern??(e.pattern=Lo());Ge.init(t,e)}),Bl=w("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Lh),Ge.init(t,e)}),_s=w("$ZodURL",(t,e)=>{Ge.init(t,e),t._zod.check=n=>{try{let o=n.value.trim(),r=new URL(o);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=r.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),ql=w("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Fh()),Ge.init(t,e)}),Vl=w("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Uh),Ge.init(t,e)}),Zl=w("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=$h),Ge.init(t,e)}),Hl=w("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=kh),Ge.init(t,e)}),Gl=w("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Nh),Ge.init(t,e)}),Wl=w("$ZodXID",(t,e)=>{e.pattern??(e.pattern=zh),Ge.init(t,e)}),Jl=w("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Dh),Ge.init(t,e)}),Kl=w("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Xh(e)),Ge.init(t,e)}),Xl=w("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Jh),Ge.init(t,e)}),Yl=w("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Kh(e)),Ge.init(t,e)}),Ql=w("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Mh),Ge.init(t,e)}),ed=w("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Bh),Ge.init(t,e),t._zod.bag.format="ipv4"}),td=w("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=qh),Ge.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}}),rd=w("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Vh(e.delimiter)),Ge.init(t,e),t._zod.bag.format="mac"}),nd=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Zh),Ge.init(t,e)}),od=w("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Hh),Ge.init(t,e),t._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[r,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://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function Ag(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}a(Ag,"isValidBase64");var id=w("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Gh),Ge.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Ag(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function Qx(t){if(!Cl.test(t))return!1;let e=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Ag(n)}a(Qx,"isValidBase64URL");var ad=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Cl),Ge.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Qx(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),sd=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Wh),Ge.init(t,e)});function eT(t,e=null){try{let n=t.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch{return!1}}a(eT,"isValidJWT");var cd=w("$ZodJWT",(t,e)=>{Ge.init(t,e),t._zod.check=n=>{eT(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),ud=w("$ZodCustomStringFormat",(t,e)=>{Ge.init(t,e),t._zod.check=n=>{e.fn(n.value)||n.issues.push({code:"invalid_format",format:e.format,input:n.value,inst:t,continue:!e.abort})}}),Hi=w("$ZodNumber",(t,e)=>{Se.init(t,e),t._zod.pattern=t._zod.bag.pattern??$l,t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:t,...i?{received:i}:{}}),n}}),vs=w("$ZodNumberFormat",(t,e)=>{sg.init(t,e),Hi.init(t,e)}),Fo=w("$ZodBoolean",(t,e)=>{Se.init(t,e),t._zod.pattern=tg,t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:t}),n}}),Gi=w("$ZodBigInt",(t,e)=>{Se.init(t,e),t._zod.pattern=Qh,t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),ld=w("$ZodBigIntFormat",(t,e)=>{cg.init(t,e),Gi.init(t,e)}),dd=w("$ZodSymbol",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:t}),n}}),pd=w("$ZodUndefined",(t,e)=>{Se.init(t,e),t._zod.pattern=ng,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:t}),n}}),fd=w("$ZodNull",(t,e)=>{Se.init(t,e),t._zod.pattern=rg,t._zod.values=new Set([null]),t._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:t}),n}}),bs=w("$ZodAny",(t,e)=>{Se.init(t,e),t._zod.parse=n=>n}),Ss=w("$ZodUnknown",(t,e)=>{Se.init(t,e),t._zod.parse=n=>n}),md=w("$ZodNever",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),Es=w("$ZodVoid",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:t}),n}}),Ps=w("$ZodDate",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:t}),n}});function Bx(t,e,n){t.issues.length&&e.issues.push(...or(n,t.issues)),e.value[n]=t.value}a(Bx,"handleArrayResult");var xs=w("$ZodArray",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:t}),n;n.value=Array(r.length);let i=[];for(let s=0;s<r.length;s++){let u=r[s],l=e.element._zod.run({value:u,issues:[]},o);l instanceof Promise?i.push(l.then(p=>Bx(p,n,s))):Bx(l,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function jl(t,e,n,o,r){if(t.issues.length){if(r&&!(n in o))return;e.issues.push(...or(n,t.issues))}t.value===void 0?n in o&&(e.value[n]=void 0):e.value[n]=t.value}a(jl,"handlePropertyResult");function tT(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 n=Rh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}a(tT,"normalizeDef");function rT(t,e,n,o,r,i){let s=[],u=r.keySet,l=r.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=>jl(h,n,y,e,f))):jl(m,n,y,e,f)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:i}),t.length?Promise.all(t).then(()=>n):n}a(rT,"handleCatchall");var hd=w("$ZodObject",(t,e)=>{if(Se.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=zi(()=>tT(e));$e(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 r=Uo,i=e.catchall,s;t._zod.parse=(u,l)=>{s??(s=o.value);let p=u.value;if(!r(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",E=h._zod.run({value:p[m],issues:[]},l);E instanceof Promise?f.push(E.then(P=>jl(P,u,m,p,_))):jl(E,u,m,p,_)}return i?rT(f,p,u,l,o.value,t):f.length?Promise.all(f).then(()=>u):u}}),wg=w("$ZodObjectJIT",(t,e)=>{hd.init(t,e);let n=t._zod.parse,o=zi(()=>tT(e)),r=a(m=>{let h=new ys(["shape","payload","ctx"]),_=o.value,E=a(M=>{let K=_l(M);return`shape[${K}]._zod.run({ value: input[${K}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let P=Object.create(null),x=0;for(let M of _.keys)P[M]=`key_${x++}`;h.write("const newResult = {};");for(let M of _.keys){let K=P[M],Z=_l(M),ee=m[M]?._zod?.optout==="optional";h.write(`const ${K} = ${E(M)};`),ee?h.write(`
|
|
72
|
-
if (${
|
|
73
|
-
if (${
|
|
74
|
-
payload.issues = payload.issues.concat(${
|
|
67
|
+
`;S+=k,typeof T.body=="string"&&(S+=T.body,S+=`\r
|
|
68
|
+
`)}S+=E,e.data=S}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,CS.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=wS.Gaxios.mergeHeaders(e.headers||{},u),e.params=r,!(0,CS.isBrowser)()){e.headers.set("Accept-Encoding","gzip"),e.userAgentDirectives.push({product:"google-api-nodejs-client",version:tD.version,comment:"gzip"});let h=e.userAgentDirectives.map(_=>{let E=`${_.product}/${_.version}`;return _.comment&&(E+=` (${_.comment})`),E}).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),E=Object.assign({},e);return E.headers=wS.Gaxios.mergeHeaders(E.headers,_),WW.request(E)}else{let _=await i.request(e);return(0,IS.marshallGaxiosResponse)(_)}}else return new wS.Gaxios().request(e).then(h=>(0,IS.marshallGaxiosResponse)(h))}a(Qz,"createAPIRequestAsync");var RS=class extends eD.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,CS.isBrowser)()||(t["x-goog-api-client"]=`gdcl/${tD.version} gl-node/${process.versions.node}`),e&&(t["x-goog-api-version"]=e)}a(YW,"populateAPIHeader")});var rD=z(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.AuthPlus=void 0;var Kn=tl(),kS=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=kS});var $S=z(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Endpoint=void 0;var nD=rh(),NS=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=oD(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=oD(e.rootUrl+r.mediaUpload.protocols.simple.path);l.mediaUrl=p.substring(1,p.length-1)}if(!i)return(0,nD.createAPIRequest)(l);(0,nD.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=NS;function oD(t){return t?`'${t}'`.replace(/([^:]\/)\/+/g,"$1"):""}a(oD,"buildurl")});var aD=z(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Discovery=void 0;var QW=require("fs"),e3=bt(),t3=require("url"),iD=require("util"),r3=rh(),n3=$S(),o3=iD.promisify(QW.readFile),zS=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(iD.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=zS});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=tl();$e.gaxios=bt();var Jn=tl();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 sD=bt();Object.defineProperty($e,"Gaxios",{enumerable:!0,get:a(function(){return sD.Gaxios},"get")});Object.defineProperty($e,"GaxiosError",{enumerable:!0,get:a(function(){return sD.GaxiosError},"get")});var s3=X$();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=rD();Object.defineProperty($e,"AuthPlus",{enumerable:!0,get:a(function(){return u3.AuthPlus},"get")});var l3=aD();Object.defineProperty($e,"Discovery",{enumerable:!0,get:a(function(){return l3.Discovery},"get")});var d3=$S();Object.defineProperty($e,"Endpoint",{enumerable:!0,get:a(function(){return d3.Endpoint},"get")});a3(th(),$e)});var uD=z(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.people_v1=void 0;var we=ah(),cD;(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})(cD||(sh.people_v1=cD={}))});var pD=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 lD=ah(),dD=uD();Object.defineProperty(Fr,"people_v1",{enumerable:!0,get:a(function(){return dD.people_v1},"get")});Fr.VERSIONS={v1:dD.people_v1.People};function p3(t){return(0,lD.getAPI)("people",t,Fr.VERSIONS,this)}a(p3,"people");var f3=new lD.AuthPlus;Fr.auth=f3;var m3=ah();Object.defineProperty(Fr,"AuthPlus",{enumerable:!0,get:a(function(){return m3.AuthPlus},"get")})});var fD=z((DS,US)=>{(function(t,e){typeof DS=="object"&&typeof US<"u"?US.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(DS,(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+)?$/,E=/\[([^\]]+)]|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,S={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(ue){var K=["th","st","nd","rd"],Z=ue%100;return"["+ue+(K[(Z-20)%10]||K[Z]||K[0])+"]"},"ordinal")},T=a(function(ue,K,Z){var oe=String(ue);return!oe||oe.length>=K?ue:""+Array(K+1-oe.length).join(Z)+ue},"m"),k={s:T,z:a(function(ue){var K=-ue.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 ue(K,Z){if(K.date()<Z.date())return-ue(Z,K);var oe=12*(Z.year()-K.year())+(Z.month()-K.month()),Q=K.clone().add(oe,p),pe=Z-Q<0,me=K.clone().add(oe+(pe?-1:1),p);return+(-(oe+(Z-Q)/(pe?Q-me:me-Q))||0)},"t"),a:a(function(ue){return ue<0?Math.ceil(ue)||0:Math.floor(ue)},"a"),p:a(function(ue){return{M:p,y,w:l,d:u,D:m,h:s,m:i,s:n,ms:o,Q:f}[ue]||String(ue||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(ue){return ue===void 0},"u")},L="en",Y={};Y[L]=S;var H=a(function(ue){return ue instanceof ee},"p"),X=a(function ue(K,Z,oe){var Q;if(!K)return L;if(typeof K=="string"){var pe=K.toLowerCase();Y[pe]&&(Q=pe),Z&&(Y[pe]=Z,Q=pe);var me=K.split("-");if(!Q&&me.length>1)return ue(me[0])}else{var ze=K.name;Y[ze]=K,Q=ze}return!oe&&Q&&(L=Q),Q||!oe&&L},"t"),re=a(function(ue,K){if(H(ue))return ue.clone();var Z=typeof K=="object"?K:{};return Z.date=ue,Z.args=arguments,new ee(Z)},"w"),ce=k;ce.l=X,ce.i=H,ce.w=function(ue,K){return re(ue,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var ee=(function(){function ue(Z){this.$L=X(Z.locale,null,!0),this.parse(Z)}a(ue,"M");var K=ue.prototype;return K.parse=function(Z){this.$d=(function(oe){var Q=oe.date,pe=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 pe?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()},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,pe=!!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 pe?et:et.endOf(u)},"l"),je=a(function(sr,Je){return ce.w(Q.toDate()[sr].apply(Q.toDate("s"),(pe?[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 pe?ze(1,0):ze(31,11);case p:return pe?ze(1,it):ze(0,it+1);case l:var gt=this.$locale().weekStart||0,_t=(Qe<gt?Qe+7:Qe)-gt;return ze(pe?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,pe=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)[pe],je=pe===u?this.$D+(oe-this.$W):oe;if(pe===p||pe===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},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,pe=this;Z=Number(Z);var me=ce.p(oe),ze=a(function(it){var It=re(pe);return ce.w(It.date(It.date()+Math.round(it*Z)),pe)},"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)},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 pe=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,x){return Je&&(Je[et]||Je(oe,pe))||b[et].slice(0,x)},"h"),_t=a(function(Je){return ce.s(ze%12||12,Je,"0")},"d"),sr=se||function(Je,et,b){var x=Je<12?"AM":"PM";return b?x.toLowerCase():x};return pe.replace(E,(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(":","")}))},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Z,oe,Q){var pe,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:pe=It()/12;break;case p:pe=It();break;case f:pe=It()/3;break;case l:pe=(it-Qe)/6048e5;break;case u:pe=(it-Qe)/864e5;break;case s:pe=it/r;break;case i:pe=it/e;break;case n:pe=it/t;break;default:pe=it}return Q?pe:ce.a(pe)},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(),pe=X(Z,oe,!0);return pe&&(Q.$L=pe),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()},ue})(),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(ue){Le[ue[1]]=function(K){return this.$g(K,ue[0],ue[1])}})),re.extend=function(ue,K){return ue.$i||(ue(K,ee,re),ue.$i=!0),re},re.locale=X,re.isDayjs=H,re.unix=function(ue){return re(1e3*ue)},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:()=>Sd,$ZodBase64URL:()=>xd,$ZodBigInt:()=>na,$ZodBigIntFormat:()=>Id,$ZodBoolean:()=>Ko,$ZodCIDRv4:()=>Pd,$ZodCIDRv6:()=>Ed,$ZodCUID:()=>fd,$ZodCUID2:()=>md,$ZodCatch:()=>Gd,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Pg,$ZodCheckEndsWith:()=>Ng,$ZodCheckGreaterThan:()=>rd,$ZodCheckIncludes:()=>Og,$ZodCheckLengthEquals:()=>wg,$ZodCheckLessThan:()=>td,$ZodCheckLowerCase:()=>Cg,$ZodCheckMaxLength:()=>Tg,$ZodCheckMaxSize:()=>Eg,$ZodCheckMimeType:()=>zg,$ZodCheckMinLength:()=>Ag,$ZodCheckMinSize:()=>Sg,$ZodCheckMultipleOf:()=>vg,$ZodCheckNumberFormat:()=>bg,$ZodCheckOverwrite:()=>Dg,$ZodCheckProperty:()=>$g,$ZodCheckRegex:()=>Ig,$ZodCheckSizeEquals:()=>xg,$ZodCheckStartsWith:()=>kg,$ZodCheckStringFormat:()=>ta,$ZodCheckUpperCase:()=>Rg,$ZodCodec:()=>ia,$ZodCustom:()=>Zs,$ZodCustomStringFormat:()=>wd,$ZodDate:()=>Us,$ZodDefault:()=>jd,$ZodDiscriminatedUnion:()=>Ls,$ZodE164:()=>Td,$ZodEmail:()=>ld,$ZodEmoji:()=>dd,$ZodEncodeError:()=>io,$ZodEnum:()=>Bs,$ZodError:()=>xs,$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:()=>Te,$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:()=>NT,JSONSchemaGenerator:()=>Sp,NEVER:()=>Ll,TimePrecision:()=>tp,_any:()=>Oc,_array:()=>Ny,_base64:()=>yc,_base64url:()=>_c,_bigint:()=>ap,_boolean:()=>Ic,_catch:()=>lL,_check:()=>kT,_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:()=>Ec,_isoDateTime:()=>Pc,_isoDuration:()=>xc,_isoTime:()=>Sc,_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:()=>Tc,_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:()=>Qx,decodeAsync:()=>tT,describe:()=>yp,encode:()=>Yx,encodeAsync:()=>eT,extractDefs:()=>ho,finalize:()=>go,flattenError:()=>Zi,formatError:()=>Wi,globalConfig:()=>gs,globalRegistry:()=>Ot,initializeContext:()=>mo,isValidBase64:()=>Lg,isValidBase64URL:()=>ST,isValidJWT:()=>xT,locales:()=>sa,meta:()=>_p,parse:()=>Ho,parseAsync:()=>Zo,prettifyError:()=>Gl,process:()=>Ye,regexes:()=>er,registry:()=>Ys,safeDecode:()=>nT,safeDecodeAsync:()=>iT,safeEncode:()=>rT,safeEncodeAsync:()=>oT,safeParse:()=>Yi,safeParseAsync:()=>ea,toDotPath:()=>Xx,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:()=>Wx,base64urlToUint8Array:()=>bM,cached:()=>Vi,captureStackTrace:()=>Fl,cleanEnum:()=>vM,cleanRegex:()=>bs,clone:()=>Rt,cloneDef:()=>dM,createTransparentProxy:()=>yM,defineLazy:()=>De,esc:()=>jl,escapeRegex:()=>Cr,extend:()=>Gx,finalizeIssue:()=>Yt,floatSafeRemainder:()=>Mh,getElementAtPath:()=>pM,getEnumValues:()=>vs,getLengthableOrigin:()=>Ss,getParsedType:()=>gM,getSizableOrigin:()=>Es,hexToUint8Array:()=>EM,isObject:()=>Vo,isPlainObject:()=>co,issue:()=>Hi,joinValues:()=>G,jsonStringifyReplacer:()=>Gi,merge:()=>_M,mergeDefs:()=>Nn,normalizeParams:()=>te,nullish:()=>ao,numKeys:()=>hM,objectClone:()=>lM,omit:()=>qx,optionalKeys:()=>Bh,parsedType:()=>ae,partial:()=>Hx,pick:()=>Bx,prefixIssues:()=>lr,primitiveTypes:()=>Fh,promiseAllObject:()=>fM,propertyKeyTypes:()=>Ps,randomString:()=>mM,required:()=>Zx,safeExtend:()=>Vx,shallowClone:()=>Bl,slugify:()=>Lh,stringifyPrimitive:()=>ne,uint8ArrayToBase64:()=>Kx,uint8ArrayToBase64url:()=>PM,uint8ArrayToHex:()=>SM,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 Fx=Symbol("evaluating");function De(t,e,r){let o;Object.defineProperty(t,e,{get(){if(o!==Fx)return o===void 0&&(o=Fx,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"),Ps=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 Bx(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(Bx,"pick");function qx(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(qx,"omit");function Gx(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(Gx,"extend");function Vx(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(Vx,"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 Hx(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(Hx,"partial");function Zx(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(Zx,"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 Es(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}a(Es,"getSizableOrigin");function Ss(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}a(Ss,"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 Wx(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(Wx,"base64ToUint8Array");function Kx(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}a(Kx,"uint8ArrayToBase64");function bM(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return Wx(e+r)}a(bM,"base64urlToUint8Array");function PM(t){return Kx(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(PM,"uint8ArrayToBase64url");function EM(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(EM,"hexToUint8Array");function SM(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}a(SM,"uint8ArrayToHex");var Uh=class{static{a(this,"Class")}constructor(...e){}};var Jx=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"),xs=w("$ZodError",Jx),Qt=w("$ZodError",Jx,{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 Xx(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(Xx,"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 ${Xx(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??xs)(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"),Yx=Vl(Qt),Hl=a(t=>(e,r,o)=>Ki(t)(e,r,o),"_decode"),Qx=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"),eT=Zl(Qt),Wl=a(t=>async(e,r,o)=>Ji(t)(e,r,o),"_decodeAsync"),tT=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"),rT=Kl(Qt),Jl=a(t=>(e,r,o)=>Xi(t)(e,r,o),"_safeDecode"),nT=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"),oT=Xl(Qt),Yl=a(t=>async(e,r,o)=>Qi(t)(e,r,o),"_safeDecodeAsync"),iT=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:()=>TM,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:()=>aT,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)?)?)$/,TM=/^[-+]?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,}))$/,aT=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,OM=aT,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}$/,sT="(?:(?:\\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(`^${sT}$`);function cT(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(cT,"timeSource");function ug(t){return new RegExp(`^${cT(t)}$`)}a(ug,"time");function lg(t){let e=cT({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(`^${sT}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 Ts(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}a(Ts,"fixedBase64");function As(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}a(As,"fixedBase64url");var UM=/^[0-9a-fA-F]{32}$/,MM=Ts(22,"=="),LM=As(22),jM=/^[0-9a-fA-F]{40}$/,FM=Ts(27,"="),BM=As(27),qM=/^[0-9a-fA-F]{64}$/,GM=Ts(43,"="),VM=As(43),HM=/^[0-9a-fA-F]{96}$/,ZM=Ts(64,""),WM=As(64),KM=/^[0-9a-fA-F]{128}$/,JM=Ts(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=[])}),lT={number:"number",bigint:"bigint",object:"date"},td=w("$ZodCheckLessThan",(t,e)=>{rt.init(t,e);let r=lT[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=lT[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})}}),Pg=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})}}),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:Es(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Sg=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:Es(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:Es(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})}}),Tg=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=Ss(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=Ss(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=Ss(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 uT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues))}a(uT,"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=>uT(n,r,e.property));uT(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(`
|
|
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 Te=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)=>{Te.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"}),Pd=w("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=og),Xe.init(t,e)}),Ed=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 Sd=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 ST(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(ST,"isValidBase64URL");var xd=w("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ql),Xe.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{ST(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Td=w("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sg),Xe.init(t,e)});function xT(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(xT,"isValidJWT");var Ad=w("$ZodJWT",(t,e)=>{Xe.init(t,e),t._zod.check=r=>{xT(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)=>{Te.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)=>{Te.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)=>{Te.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)=>{Pg.init(t,e),na.init(t,e)}),Cd=w("$ZodSymbol",(t,e)=>{Te.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)=>{Te.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)=>{Te.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)=>{Te.init(t,e),t._zod.parse=r=>r}),zs=w("$ZodUnknown",(t,e)=>{Te.init(t,e),t._zod.parse=r=>r}),kd=w("$ZodNever",(t,e)=>{Te.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)=>{Te.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)=>{Te.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 pT(t,e,r){t.issues.length&&e.issues.push(...lr(r,t.issues)),e.value[r]=t.value}a(pT,"handleArrayResult");var Ms=w("$ZodArray",(t,e)=>{Te.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=>pT(p,r,s))):pT(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 TT(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(TT,"normalizeDef");function AT(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(AT,"handleCatchall");var Nd=w("$ZodObject",(t,e)=>{if(Te.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(()=>TT(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",E=h._zod.run({value:p[m],issues:[]},l);E instanceof Promise?f.push(E.then(S=>sd(S,u,m,p,_))):sd(E,u,m,p,_)}return i?AT(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(()=>TT(e)),n=a(m=>{let h=new ws(["shape","payload","ctx"]),_=o.value,E=a(L=>{let Y=jl(L);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let S=Object.create(null),T=0;for(let L of _.keys)S[L]=`key_${T++}`;h.write("const newResult = {};");for(let L of _.keys){let Y=S[L],H=jl(L),re=m[L]?._zod?.optout==="optional";h.write(`const ${Y} = ${E(L)};`),re?h.write(`
|
|
72
|
+
if (${Y}.issues.length) {
|
|
73
|
+
if (${H} in input) {
|
|
74
|
+
payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
|
|
75
75
|
...iss,
|
|
76
|
-
path: iss.path ? [${
|
|
76
|
+
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
|
77
77
|
})));
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
if (${
|
|
82
|
-
if (${
|
|
83
|
-
newResult[${
|
|
81
|
+
if (${Y}.value === undefined) {
|
|
82
|
+
if (${H} in input) {
|
|
83
|
+
newResult[${H}] = undefined;
|
|
84
84
|
}
|
|
85
85
|
} else {
|
|
86
|
-
newResult[${
|
|
86
|
+
newResult[${H}] = ${Y}.value;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
`):h.write(`
|
|
90
|
-
if (${
|
|
91
|
-
payload.issues = payload.issues.concat(${
|
|
90
|
+
if (${Y}.issues.length) {
|
|
91
|
+
payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
|
|
92
92
|
...iss,
|
|
93
|
-
path: iss.path ? [${
|
|
93
|
+
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
|
94
94
|
})));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
if (${
|
|
98
|
-
if (${
|
|
99
|
-
newResult[${
|
|
97
|
+
if (${Y}.value === undefined) {
|
|
98
|
+
if (${H} in input) {
|
|
99
|
+
newResult[${H}] = undefined;
|
|
100
100
|
}
|
|
101
101
|
} else {
|
|
102
|
-
newResult[${
|
|
102
|
+
newResult[${H}] = ${Y}.value;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
`)}h.write("payload.value = newResult;"),h.write("return payload;");let z=h.compile();return(M,K)=>z(m,M,K)},"generateFastpass"),i,s=Uo,u=!as.jitless,p=u&&wh.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=r(e.shape)),m=i(m,h),f?rT([],_,m,h,y,t):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function qx(t,e,n,o){for(let i of t)if(i.issues.length===0)return e.value=i.value,e;let r=t.filter(i=>!eo(i));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(i=>i.issues.map(s=>Zt(s,o,ct())))}),e)}a(qx,"handleUnionResults");var Bo=w("$ZodUnion",(t,e)=>{Se.init(t,e),$e(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),$e(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),$e(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),$e(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){let r=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>ls(i.source)).join("|")})$`)}});let n=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(r,i)=>{if(n)return o(r,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:r.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=>qx(l,r,t,i)):qx(u,r,t,i)}});function Vx(t,e,n,o){let r=t.filter(i=>i.issues.length===0);return r.length===1?(e.value=r[0].value,e):(r.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(i=>i.issues.map(s=>Zt(s,o,ct())))}):e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:[],inclusive:!1}),e)}a(Vx,"handleExclusiveUnionResults");var gd=w("$ZodXor",(t,e)=>{Bo.init(t,e),e.inclusive=!1;let n=e.options.length===1,o=e.options[0]._zod.run;t._zod.parse=(r,i)=>{if(n)return o(r,i);let s=!1,u=[];for(let l of e.options){let p=l._zod.run({value:r.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(l=>Vx(l,r,t,i)):Vx(u,r,t,i)}}),Ts=w("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Bo.init(t,e);let n=t._zod.parse;$e(t._zod,"propValues",()=>{let r={};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)){r[u]||(r[u]=new Set);for(let p of l)r[u].add(p)}}return r});let o=zi(()=>{let r=e.options,i=new Map;for(let s of r){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=(r,i)=>{let s=r.value;if(!Uo(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),r;let u=o.value.get(s?.[e.discriminator]);return u?u._zod.run(r,i):e.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),r)}}),yd=w("$ZodIntersection",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value,i=e.left._zod.run({value:r,issues:[]},o),s=e.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,p])=>Zx(n,l,p)):Zx(n,i,s)}});function Tg(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(Qn(t)&&Qn(e)){let n=Object.keys(e),o=Object.keys(t).filter(i=>n.indexOf(i)!==-1),r={...t,...e};for(let i of o){let s=Tg(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r[i]=s.data}return{valid:!0,data:r}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<t.length;o++){let r=t[o],i=e[o],s=Tg(r,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}a(Tg,"mergeValues");function Zx(t,e,n){let o=new Map,r;for(let u of e.issues)if(u.code==="unrecognized_keys"){r??(r=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 n.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&&r&&t.issues.push({...r,keys:i}),eo(t))return t;let s=Tg(e.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}a(Zx,"handleIntersectionResults");var As=w("$ZodTuple",(t,e)=>{Se.init(t,e);let n=e.items;t._zod.parse=(o,r)=>{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=[...n].reverse().findIndex(f=>f._zod.optin!=="optional"),l=u===-1?0:n.length-u;if(!e.rest){let f=i.length>n.length,y=i.length<l-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:t,origin:"array"}),o}let p=-1;for(let f of n){if(p++,p>=i.length&&p>=l)continue;let y=f._zod.run({value:i[p],issues:[]},r);y instanceof Promise?s.push(y.then(m=>zl(m,o,p))):zl(y,o,p)}if(e.rest){let f=i.slice(n.length);for(let y of f){p++;let m=e.rest._zod.run({value:y,issues:[]},r);m instanceof Promise?s.push(m.then(h=>zl(h,o,p))):zl(m,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function zl(t,e,n){t.issues.length&&e.issues.push(...or(n,t.issues)),e.value[n]=t.value}a(zl,"handleTupleResult");var ws=w("$ZodRecord",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;if(!Qn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:t}),n;let i=[],s=e.keyType._zod.values;if(s){n.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:r[p],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&n.issues.push(...or(p,y.issues)),n.value[p]=y.value})):(f.issues.length&&n.issues.push(...or(p,f.issues)),n.value[p]=f.value)}let l;for(let p in r)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:l})}else{n.value={};for(let u of Reflect.ownKeys(r)){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"&&$l.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"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>Zt(y,o,ct())),input:u,path:[u],inst:t});continue}let f=e.valueType._zod.run({value:r[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&n.issues.push(...or(u,y.issues)),n.value[l.value]=y.value})):(f.issues.length&&n.issues.push(...or(u,f.issues)),n.value[l.value]=f.value)}}return i.length?Promise.all(i).then(()=>n):n}}),_d=w("$ZodMap",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:t}),n;let i=[];n.value=new Map;for(let[s,u]of r){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])=>{Hx(f,y,n,s,r,t,o)})):Hx(l,p,n,s,r,t,o)}return i.length?Promise.all(i).then(()=>n):n}});function Hx(t,e,n,o,r,i,s){t.issues.length&&(ds.has(typeof o)?n.issues.push(...or(o,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:t.issues.map(u=>Zt(u,s,ct()))})),e.issues.length&&(ds.has(typeof o)?n.issues.push(...or(o,e.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:e.issues.map(u=>Zt(u,s,ct()))})),n.value.set(t.value,e.value)}a(Hx,"handleMapResult");var vd=w("$ZodSet",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:t,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of r){let u=e.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Gx(l,n))):Gx(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function Gx(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(Gx,"handleSetResult");var Is=w("$ZodEnum",(t,e)=>{Se.init(t,e);let n=us(e.entries),o=new Set(n);t._zod.values=o,t._zod.pattern=new RegExp(`^(${n.filter(r=>ds.has(typeof r)).map(r=>typeof r=="string"?Er(r):r.toString()).join("|")})$`),t._zod.parse=(r,i)=>{let s=r.value;return o.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:t}),r}}),Rs=w("$ZodLiteral",(t,e)=>{if(Se.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(o=>typeof o=="string"?Er(o):o?Er(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),o}}),bd=w("$ZodFile",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:t}),n}}),Os=w("$ZodTransform",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Kn(t.constructor.name);let r=e.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new Ur;return n.value=r,n}});function Wx(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(Wx,"handleOptionalResult");var Wi=w("$ZodOptional",(t,e)=>{Se.init(t,e),t._zod.optin="optional",t._zod.optout="optional",$e(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),$e(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${ls(n.source)})?$`):void 0}),t._zod.parse=(n,o)=>{if(e.innerType._zod.optin==="optional"){let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Wx(i,n.value)):Wx(r,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,o)}}),Sd=w("$ZodExactOptional",(t,e)=>{Wi.init(t,e),$e(t._zod,"values",()=>e.innerType._zod.values),$e(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(n,o)=>e.innerType._zod.run(n,o)}),Cs=w("$ZodNullable",(t,e)=>{Se.init(t,e),$e(t._zod,"optin",()=>e.innerType._zod.optin),$e(t._zod,"optout",()=>e.innerType._zod.optout),$e(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${ls(n.source)}|null)$`):void 0}),$e(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,o)=>n.value===null?n:e.innerType._zod.run(n,o)}),Ed=w("$ZodDefault",(t,e)=>{Se.init(t,e),t._zod.optin="optional",$e(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return e.innerType._zod.run(n,o);if(n.value===void 0)return n.value=e.defaultValue,n;let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Jx(i,e)):Jx(r,e)}});function Jx(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(Jx,"handleDefaultResult");var Pd=w("$ZodPrefault",(t,e)=>{Se.init(t,e),t._zod.optin="optional",$e(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,o))}),xd=w("$ZodNonOptional",(t,e)=>{Se.init(t,e),$e(t._zod,"values",()=>{let n=e.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),t._zod.parse=(n,o)=>{let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Kx(i,t)):Kx(r,t)}});function Kx(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(Kx,"handleNonOptionalResult");var Td=w("$ZodSuccess",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Kn("ZodSuccess");let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Ad=w("$ZodCatch",(t,e)=>{Se.init(t,e),$e(t._zod,"optin",()=>e.innerType._zod.optin),$e(t._zod,"optout",()=>e.innerType._zod.optout),$e(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return e.innerType._zod.run(n,o);let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(s=>Zt(s,o,ct()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=e.catchValue({...n,error:{issues:r.issues.map(i=>Zt(i,o,ct()))},input:n.value}),n.issues=[]),n)}}),wd=w("$ZodNaN",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),$s=w("$ZodPipe",(t,e)=>{Se.init(t,e),$e(t._zod,"values",()=>e.in._zod.values),$e(t._zod,"optin",()=>e.in._zod.optin),$e(t._zod,"optout",()=>e.out._zod.optout),$e(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=e.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Dl(s,e.in,o)):Dl(i,e.in,o)}let r=e.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Dl(i,e.out,o)):Dl(r,e.out,o)}});function Dl(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}a(Dl,"handlePipeResult");var Ji=w("$ZodCodec",(t,e)=>{Se.init(t,e),$e(t._zod,"values",()=>e.in._zod.values),$e(t._zod,"optin",()=>e.in._zod.optin),$e(t._zod,"optout",()=>e.out._zod.optout),$e(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=e.in._zod.run(n,o);return i instanceof Promise?i.then(s=>Ul(s,e,o)):Ul(i,e,o)}else{let i=e.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Ul(s,e,o)):Ul(i,e,o)}}});function Ul(t,e,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){let r=e.transform(t.value,t);return r instanceof Promise?r.then(i=>Ml(t,i,e.out,n)):Ml(t,r,e.out,n)}else{let r=e.reverseTransform(t.value,t);return r instanceof Promise?r.then(i=>Ml(t,i,e.in,n)):Ml(t,r,e.in,n)}}a(Ul,"handleCodecAResult");function Ml(t,e,n,o){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:e,issues:t.issues},o)}a(Ml,"handleCodecTxResult");var Id=w("$ZodReadonly",(t,e)=>{Se.init(t,e),$e(t._zod,"propValues",()=>e.innerType._zod.propValues),$e(t._zod,"values",()=>e.innerType._zod.values),$e(t._zod,"optin",()=>e.innerType?._zod?.optin),$e(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(n,o)=>{if(o.direction==="backward")return e.innerType._zod.run(n,o);let r=e.innerType._zod.run(n,o);return r instanceof Promise?r.then(Xx):Xx(r)}});function Xx(t){return t.value=Object.freeze(t.value),t}a(Xx,"handleReadonlyResult");var Rd=w("$ZodTemplateLiteral",(t,e)=>{Se.init(t,e);let n=[];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 r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,s=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,s))}else if(o===null||Ih.has(typeof o))n.push(Er(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(o,r)=>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)}),Od=w("$ZodFunction",(t,e)=>(Se.init(t,e),t._def=e,t._zod.def=e,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let r=t._def.input?Mo(t._def.input,o):o,i=Reflect.apply(n,this,r);return t._def.output?Mo(t._def.output,i):i}},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let r=t._def.input?await jo(t._def.input,o):o,i=await Reflect.apply(n,this,r);return t._def.output?await jo(t._def.output,i):i}},t._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{let o=t.constructor;return Array.isArray(n[0])?new o({type:"function",input:new As({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new o({type:"function",input:n[0],output:t._def.output})},t.output=n=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:n})},t)),Cd=w("$ZodPromise",(t,e)=>{Se.init(t,e),t._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>e.innerType._zod.run({value:r,issues:[]},o))}),$d=w("$ZodLazy",(t,e)=>{Se.init(t,e),$e(t._zod,"innerType",()=>e.getter()),$e(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),$e(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),$e(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),$e(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(n,o)=>t._zod.innerType._zod.run(n,o)}),ks=w("$ZodCustom",(t,e)=>{Ye.init(t,e),Se.init(t,e),t._zod.parse=(n,o)=>n,t._zod.check=n=>{let o=n.value,r=e.fn(o);if(r instanceof Promise)return r.then(i=>Yx(i,n,o,t));Yx(r,n,o,t)}});function Yx(t,e,n,o){if(!t){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),e.issues.push(Di(r))}}a(Yx,"handleRefineResult");var Xi={};nr(Xi,{ar:()=>Ig,az:()=>Rg,be:()=>Og,bg:()=>Cg,ca:()=>$g,cs:()=>kg,da:()=>Ng,de:()=>zg,en:()=>Ns,eo:()=>Dg,es:()=>Ug,fa:()=>Mg,fi:()=>jg,fr:()=>Lg,frCA:()=>Fg,he:()=>Bg,hu:()=>qg,hy:()=>Vg,id:()=>Zg,is:()=>Hg,it:()=>Gg,ja:()=>Wg,ka:()=>Jg,kh:()=>Kg,km:()=>zs,ko:()=>Xg,lt:()=>Yg,mk:()=>Qg,ms:()=>ey,nl:()=>ty,no:()=>ry,ota:()=>ny,pl:()=>iy,ps:()=>oy,pt:()=>ay,ru:()=>sy,sl:()=>cy,sv:()=>uy,ta:()=>ly,th:()=>dy,tr:()=>py,ua:()=>fy,uk:()=>Us,ur:()=>my,uz:()=>hy,vi:()=>gy,yo:()=>vy,zhCN:()=>yy,zhTW:()=>_y});var yU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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: ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;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 "${r.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}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${B(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Ig(){return{localeError:yU()}}a(Ig,"default");var _U=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${te(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${B(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Rg(){return{localeError:_U()}}a(Rg,"default");function nT(t,e,n,o){let r=Math.abs(t),i=r%10,s=r%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?n:o}a(nT,"getBelarusianPlural");var vU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.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 r.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 ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);if(s){let u=Number(r.maximum),l=nT(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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);if(s){let u=Number(r.minimum),l=nT(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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${r.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${B(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Og(){return{localeError:vU()}}a(Og,"default");var bU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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} ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${B(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Cg(){return{localeError:bU()}}a(Cg,"default");var SU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${te(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${B(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",s=e(r.origin);return s?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(r.origin);return s?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function $g(){return{localeError:SU()}}a($g,"default");var EU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${te(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${B(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function kg(){return{localeError:EU()}}a(kg,"default");var PU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${te(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin),u=o[r.origin]??r.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin),u=o[r.origin]??r.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${r.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${B(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}},"error");function Ng(){return{localeError:PU()}}a(Ng,"default");var xU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${te(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;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: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${B(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function zg(){return{localeError:xU()}}a(zg,"default");var TU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${te(r.values[0])}`:`Invalid option: expected one of ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${s.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}},"error");function Ns(){return{localeError:TU()}}a(Ns,"default");var AU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${te(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}},"error");function Dg(){return{localeError:AU()}}a(Dg,"default");var wU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${te(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin),u=o[r.origin]??r.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin),u=o[r.origin]??r.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Ug(){return{localeError:wU()}}a(Ug,"default");var IU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.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 r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${te(r.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 ${B(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=r;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`:`${n[i.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${B(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Mg(){return{localeError:IU()}}a(Mg,"default");var RU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${te(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${B(r.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 jg(){return{localeError:RU()}}a(jg,"default");var OU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${te(r.values[0])} attendu`:`Option invalide : une valeur parmi ${B(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Trop grand : ${r.origin??"valeur"} doit ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Trop petit : ${r.origin} doit ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${B(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Lg(){return{localeError:OU()}}a(Lg,"default");var CU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${te(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",s=e(r.origin);return s?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",s=e(r.origin);return s?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${B(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Fg(){return{localeError:CU()}}a(Fg,"default");var $U=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"}},n=a(p=>p?t[p]:void 0,"typeEntry"),o=a(p=>{let f=n(p);return f?f.label:p??t.unknown.label},"typeLabel"),r=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(n(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=oe(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 ${te(p.values[0])}`;let f=p.values.map(h=>te(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=r(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",E=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 ${E}`.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=r(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 P=(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 ${P}`}let E=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 ${E}`.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"}: ${B(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${r(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function Bg(){return{localeError:$U()}}a(Bg,"default");var kU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${te(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function qg(){return{localeError:kU()}}a(qg,"default");function oT(t,e,n){return Math.abs(t)===1?e:n}a(oT,"getArmenianPlural");function Ki(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=t[t.length-1];return t+(e.includes(n)?"\u0576":"\u0568")}a(Ki,"withDefiniteArticle");var NU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);if(s){let u=Number(r.maximum),l=oT(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 ${Ki(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.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 ${Ki(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);if(s){let u=Number(r.minimum),l=oT(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 ${Ki(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.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 ${Ki(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${B(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ki(r.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 ${Ki(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function Vg(){return{localeError:NU()}}a(Vg,"default");var zU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${te(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}},"error");function Zg(){return{localeError:zU()}}a(Zg,"default");var DU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${te(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${B(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}},"error");function Hg(){return{localeError:DU()}}a(Hg,"default");var UU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${te(r.values[0])}`:`Opzione non valida: atteso uno tra ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${B(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}},"error");function Gg(){return{localeError:UU()}}a(Gg,"default");var MU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.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 r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${te(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${B(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(r.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(r.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=r;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${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${B(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function Wg(){return{localeError:MU()}}a(Wg,"default");var jU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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 ${B(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.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 ${r.origin} ${s.verb} ${i}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${B(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function Jg(){return{localeError:jU()}}a(Jg,"default");var LU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${B(r.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 ${r.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 ${r.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 zs(){return{localeError:LU()}}a(zs,"default");function Kg(){return zs()}a(Kg,"default");var FU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.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 r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${te(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${B(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(r.origin),l=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${l} ${i}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${s}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=e(r.origin),l=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${l} ${i}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${B(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function Xg(){return{localeError:FU()}}a(Xg,"default");var Ds=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function iT(t){let e=Math.abs(t),n=e%10,o=e%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}a(iT,"getUnitTypeFromNumber");var BU=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(r,i,s,u){let l=t[r]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[u][s?"inclusive":"notInclusive"]}}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${te(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${B(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,s=e(r.origin,iT(Number(r.maximum)),r.inclusive??!1,"smaller");if(s?.verb)return`${Ds(i??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.maximum.toString()} ${s.unit??"element\u0173"}`;let u=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ds(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,s=e(r.origin,iT(Number(r.minimum)),r.inclusive??!1,"bigger");if(s?.verb)return`${Ds(i??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.minimum.toString()} ${s.unit??"element\u0173"}`;let u=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ds(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${B(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${Ds(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Yg(){return{localeError:BU()}}a(Yg,"default");var qU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.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 r.values.length===1?`Invalid input: expected ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${B(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function Qg(){return{localeError:qU()}}a(Qg,"default");var VU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${te(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Terlalu besar: dijangka ${r.origin??"nilai"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Terlalu kecil: dijangka ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${B(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}},"error");function ey(){return{localeError:VU()}}a(ey,"default");var ZU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${te(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;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: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}},"error");function ty(){return{localeError:ZU()}}a(ty,"default");var HU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${te(r.values[0])}`:`Ugyldig valg: forventet en av ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${B(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}},"error");function ry(){return{localeError:HU()}}a(ry,"default");var GU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${te(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function ny(){return{localeError:GU()}}a(ny,"default");var WU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.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 r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${te(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${B(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=r;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`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${B(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function oy(){return{localeError:WU()}}a(oy,"default");var JU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${te(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function iy(){return{localeError:JU()}}a(iy,"default");var KU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${te(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${B(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}},"error");function ay(){return{localeError:KU()}}a(ay,"default");function aT(t,e,n,o){let r=Math.abs(t),i=r%10,s=r%100;return s>=11&&s<=19?o:i===1?e:i>=2&&i<=4?n:o}a(aT,"getRussianPlural");var XU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);if(s){let u=Number(r.maximum),l=aT(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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);if(s){let u=Number(r.minimum),l=aT(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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${B(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.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 sy(){return{localeError:XU()}}a(sy,"default");var YU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${te(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${B(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}},"error");function cy(){return{localeError:YU()}}a(cy,"default");var QU=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${te(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${B(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function uy(){return{localeError:QU()}}a(uy,"default");var eM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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 ${B(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.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 ${r.origin} ${i}${r.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 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${B(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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 ly(){return{localeError:eM()}}a(ly,"default");var tM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(r.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(r.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;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: ${n[i.format]??r.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 ${r.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: ${B(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function dy(){return{localeError:tM()}}a(dy,"default");var rM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${te(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${B(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function py(){return{localeError:rM()}}a(py,"default");var nM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${te(r.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 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.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 ${r.origin} ${s.verb} ${i}${r.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 ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${B(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.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 Us(){return{localeError:nM()}}a(Us,"default");function fy(){return Us()}a(fy,"default");var oM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.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 r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${te(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${B(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.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: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${B(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function my(){return{localeError:oM()}}a(my,"default");var iM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${te(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${B(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function hy(){return{localeError:iM()}}a(hy,"default");var aM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.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 r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${te(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${B(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function gy(){return{localeError:aM()}}a(gy,"default");var sM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.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 r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${te(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${B(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function yy(){return{localeError:sM()}}a(yy,"default");var cM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.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 r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${te(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${B(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function _y(){return{localeError:cM()}}a(_y,"default");var uM=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(r){return t[r]??null}a(e,"getSizing");let n={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 r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=oe(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.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 r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${te(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${B(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=e(r.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${s.verb} ${i}${r.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",s=e(r.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${s.verb} ${i}${r.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;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: ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${B(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function vy(){return{localeError:uM()}}a(vy,"default");var sT,Nd=Symbol("ZodOutput"),zd=Symbol("ZodInput"),kd=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){let o=n[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 n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){let n=e._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ms(){return new kd}a(Ms,"registry");(sT=globalThis).__zod_globalRegistry??(sT.__zod_globalRegistry=Ms());var wt=globalThis.__zod_globalRegistry;function js(t,e){return new t({type:"string",...Q(e)})}a(js,"_string");function Ls(t,e){return new t({type:"string",coerce:!0,...Q(e)})}a(Ls,"_coercedString");function Fs(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Q(e)})}a(Fs,"_email");function Yi(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Q(e)})}a(Yi,"_guid");function Bs(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Q(e)})}a(Bs,"_uuid");function qs(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Q(e)})}a(qs,"_uuidv4");function Vs(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Q(e)})}a(Vs,"_uuidv6");function Zs(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Q(e)})}a(Zs,"_uuidv7");function qo(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Q(e)})}a(qo,"_url");function Hs(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Q(e)})}a(Hs,"_emoji");function Gs(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Q(e)})}a(Gs,"_nanoid");function Ws(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Q(e)})}a(Ws,"_cuid");function Js(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Q(e)})}a(Js,"_cuid2");function Ks(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Q(e)})}a(Ks,"_ulid");function Xs(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Q(e)})}a(Xs,"_xid");function Ys(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Q(e)})}a(Ys,"_ksuid");function Qs(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Q(e)})}a(Qs,"_ipv4");function ec(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Q(e)})}a(ec,"_ipv6");function Dd(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...Q(e)})}a(Dd,"_mac");function tc(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Q(e)})}a(tc,"_cidrv4");function rc(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Q(e)})}a(rc,"_cidrv6");function nc(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Q(e)})}a(nc,"_base64");function oc(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Q(e)})}a(oc,"_base64url");function ic(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Q(e)})}a(ic,"_e164");function ac(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Q(e)})}a(ac,"_jwt");var Ud={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Md(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Q(e)})}a(Md,"_isoDateTime");function jd(t,e){return new t({type:"string",format:"date",check:"string_format",...Q(e)})}a(jd,"_isoDate");function Ld(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...Q(e)})}a(Ld,"_isoTime");function Fd(t,e){return new t({type:"string",format:"duration",check:"string_format",...Q(e)})}a(Fd,"_isoDuration");function sc(t,e){return new t({type:"number",checks:[],...Q(e)})}a(sc,"_number");function cc(t,e){return new t({type:"number",coerce:!0,checks:[],...Q(e)})}a(cc,"_coercedNumber");function uc(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...Q(e)})}a(uc,"_int");function Bd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...Q(e)})}a(Bd,"_float32");function qd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...Q(e)})}a(qd,"_float64");function Vd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...Q(e)})}a(Vd,"_int32");function Zd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...Q(e)})}a(Zd,"_uint32");function lc(t,e){return new t({type:"boolean",...Q(e)})}a(lc,"_boolean");function dc(t,e){return new t({type:"boolean",coerce:!0,...Q(e)})}a(dc,"_coercedBoolean");function Hd(t,e){return new t({type:"bigint",...Q(e)})}a(Hd,"_bigint");function pc(t,e){return new t({type:"bigint",coerce:!0,...Q(e)})}a(pc,"_coercedBigint");function Gd(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Q(e)})}a(Gd,"_int64");function Wd(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Q(e)})}a(Wd,"_uint64");function Jd(t,e){return new t({type:"symbol",...Q(e)})}a(Jd,"_symbol");function Kd(t,e){return new t({type:"undefined",...Q(e)})}a(Kd,"_undefined");function Xd(t,e){return new t({type:"null",...Q(e)})}a(Xd,"_null");function fc(t){return new t({type:"any"})}a(fc,"_any");function mc(t){return new t({type:"unknown"})}a(mc,"_unknown");function Yd(t,e){return new t({type:"never",...Q(e)})}a(Yd,"_never");function hc(t,e){return new t({type:"void",...Q(e)})}a(hc,"_void");function Qd(t,e){return new t({type:"date",...Q(e)})}a(Qd,"_date");function gc(t,e){return new t({type:"date",coerce:!0,...Q(e)})}a(gc,"_coercedDate");function ep(t,e){return new t({type:"nan",...Q(e)})}a(ep,"_nan");function Mr(t,e){return new kl({check:"less_than",...Q(e),value:t,inclusive:!1})}a(Mr,"_lt");function Lt(t,e){return new kl({check:"less_than",...Q(e),value:t,inclusive:!0})}a(Lt,"_lte");function jr(t,e){return new Nl({check:"greater_than",...Q(e),value:t,inclusive:!1})}a(jr,"_gt");function Et(t,e){return new Nl({check:"greater_than",...Q(e),value:t,inclusive:!0})}a(Et,"_gte");function yc(t){return jr(0,t)}a(yc,"_positive");function _c(t){return Mr(0,t)}a(_c,"_negative");function vc(t){return Lt(0,t)}a(vc,"_nonpositive");function bc(t){return Et(0,t)}a(bc,"_nonnegative");function An(t,e){return new ag({check:"multiple_of",...Q(e),value:t})}a(An,"_multipleOf");function wn(t,e){return new ug({check:"max_size",...Q(e),maximum:t})}a(wn,"_maxSize");function Lr(t,e){return new lg({check:"min_size",...Q(e),minimum:t})}a(Lr,"_minSize");function to(t,e){return new dg({check:"size_equals",...Q(e),size:t})}a(to,"_size");function ro(t,e){return new pg({check:"max_length",...Q(e),maximum:t})}a(ro,"_maxLength");function mt(t,e){return new fg({check:"min_length",...Q(e),minimum:t})}a(mt,"_minLength");function no(t,e){return new mg({check:"length_equals",...Q(e),length:t})}a(no,"_length");function kt(t,e){return new hg({check:"string_format",format:"regex",...Q(e),pattern:t})}a(kt,"_regex");function Vo(t){return new gg({check:"string_format",format:"lowercase",...Q(t)})}a(Vo,"_lowercase");function Zo(t){return new yg({check:"string_format",format:"uppercase",...Q(t)})}a(Zo,"_uppercase");function Ho(t,e){return new _g({check:"string_format",format:"includes",...Q(e),includes:t})}a(Ho,"_includes");function Go(t,e){return new vg({check:"string_format",format:"starts_with",...Q(e),prefix:t})}a(Go,"_startsWith");function Wo(t,e){return new bg({check:"string_format",format:"ends_with",...Q(e),suffix:t})}a(Wo,"_endsWith");function Sc(t,e,n){return new Sg({check:"property",property:t,schema:e,...Q(n)})}a(Sc,"_property");function Jo(t,e){return new Eg({check:"mime_type",mime:t,...Q(e)})}a(Jo,"_mime");function Pr(t){return new Pg({check:"overwrite",tx:t})}a(Pr,"_overwrite");function Ko(t){return Pr(e=>e.normalize(t))}a(Ko,"_normalize");function Xo(){return Pr(t=>t.trim())}a(Xo,"_trim");function Yo(){return Pr(t=>t.toLowerCase())}a(Yo,"_toLowerCase");function Qo(){return Pr(t=>t.toUpperCase())}a(Qo,"_toUpperCase");function Qi(){return Pr(t=>Ah(t))}a(Qi,"_slugify");function by(t,e,n){return new t({type:"array",element:e,...Q(n)})}a(by,"_array");function dM(t,e,n){return new t({type:"union",options:e,...Q(n)})}a(dM,"_union");function pM(t,e,n){return new t({type:"union",options:e,inclusive:!1,...Q(n)})}a(pM,"_xor");function fM(t,e,n,o){return new t({type:"union",options:n,discriminator:e,...Q(o)})}a(fM,"_discriminatedUnion");function mM(t,e,n){return new t({type:"intersection",left:e,right:n})}a(mM,"_intersection");function hM(t,e,n,o){let r=n instanceof Se,i=r?o:n,s=r?n:null;return new t({type:"tuple",items:e,rest:s,...Q(i)})}a(hM,"_tuple");function gM(t,e,n,o){return new t({type:"record",keyType:e,valueType:n,...Q(o)})}a(gM,"_record");function yM(t,e,n,o){return new t({type:"map",keyType:e,valueType:n,...Q(o)})}a(yM,"_map");function _M(t,e,n){return new t({type:"set",valueType:e,...Q(n)})}a(_M,"_set");function vM(t,e,n){let o=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new t({type:"enum",entries:o,...Q(n)})}a(vM,"_enum");function bM(t,e,n){return new t({type:"enum",entries:e,...Q(n)})}a(bM,"_nativeEnum");function SM(t,e,n){return new t({type:"literal",values:Array.isArray(e)?e:[e],...Q(n)})}a(SM,"_literal");function tp(t,e){return new t({type:"file",...Q(e)})}a(tp,"_file");function EM(t,e){return new t({type:"transform",transform:e})}a(EM,"_transform");function PM(t,e){return new t({type:"optional",innerType:e})}a(PM,"_optional");function xM(t,e){return new t({type:"nullable",innerType:e})}a(xM,"_nullable");function TM(t,e,n){return new t({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():bl(n)}})}a(TM,"_default");function AM(t,e,n){return new t({type:"nonoptional",innerType:e,...Q(n)})}a(AM,"_nonoptional");function wM(t,e){return new t({type:"success",innerType:e})}a(wM,"_success");function IM(t,e,n){return new t({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}a(IM,"_catch");function RM(t,e,n){return new t({type:"pipe",in:e,out:n})}a(RM,"_pipe");function OM(t,e){return new t({type:"readonly",innerType:e})}a(OM,"_readonly");function CM(t,e,n){return new t({type:"template_literal",parts:e,...Q(n)})}a(CM,"_templateLiteral");function $M(t,e){return new t({type:"lazy",getter:e})}a($M,"_lazy");function kM(t,e){return new t({type:"promise",innerType:e})}a(kM,"_promise");function Ec(t,e,n){let o=Q(n);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:e,...o})}a(Ec,"_custom");function rp(t,e,n){return new t({type:"custom",check:"custom",fn:e,...Q(n)})}a(rp,"_refine");function np(t){let e=cT(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Di(o,n.value,e._zod.def));else{let r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!e._zod.def.abort),n.issues.push(Di(r))}},t(n.value,n)));return e}a(np,"_superRefine");function cT(t,e){let n=new Ye({check:"custom",...Q(e)});return n._zod.check=t,n}a(cT,"_check");function op(t){let e=new Ye({check:"describe"});return e._zod.onattach=[n=>{let o=wt.get(n)??{};wt.add(n,{...o,description:t})}],e._zod.check=()=>{},e}a(op,"describe");function ip(t){let e=new Ye({check:"meta"});return e._zod.onattach=[n=>{let o=wt.get(n)??{};wt.add(n,{...o,...t})}],e._zod.check=()=>{},e}a(ip,"meta");function ap(t,e){let n=Q(e),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(r),u=t.Codec??Ji,l=t.Boolean??Fo,p=t.String??Tn,f=new p({type:"string",error:n.error}),y=new l({type:"boolean",error:n.error}),m=new u({type:"pipe",in:f,out:y,transform:a(((h,_)=>{let E=h;return n.case!=="sensitive"&&(E=E.toLowerCase()),i.has(E)?!0:s.has(E)?!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":r[0]||"false"),"reverseTransform"),error:n.error});return m}a(ap,"_stringbool");function ei(t,e,n,o={}){let r=Q(o),i={...Q(o),check:"string_format",type:"string",format:e,fn:typeof n=="function"?n:u=>n.test(u),...r};return n instanceof RegExp&&(i.pattern=n),new t(i)}a(ei,"_stringFormat");function oo(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??wt,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(oo,"initializeContext");function We(t,e,n={path:[],schemaPath:[]}){var o;let r=t._zod.def,i=e.seen.get(t);if(i)return i.count++,n.schemaPath.includes(t)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,s);let u=t._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,f);else{let m=s.schema,h=e.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(t,e,m,f)}let y=t._zod.parent;y&&(s.ref||(s.ref=y),We(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"&&Ft(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(We,"process");function io(t,e){let n=t.seen.get(e);if(!n)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 r=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]===n)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}=r(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(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?AT([],_,m,h,y,t):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),m)}});function fT(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(fT,"handleUnionResults");var Jo=w("$ZodUnion",(t,e)=>{Te.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=>fT(l,n,t,i)):fT(u,n,t,i)}});function mT(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(mT,"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=>mT(l,n,t,i)):mT(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)=>{Te.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])=>hT(r,l,p)):hT(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 hT(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(hT,"handleIntersectionResults");var js=w("$ZodTuple",(t,e)=>{Te.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)=>{Te.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)=>{Te.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])=>{gT(f,y,r,s,n,t,o)})):gT(l,p,r,s,n,t,o)}return i.length?Promise.all(i).then(()=>r):r}});function gT(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(gT,"handleMapResult");var Ud=w("$ZodSet",(t,e)=>{Te.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=>yT(l,r))):yT(u,r)}return i.length?Promise.all(i).then(()=>r):r}});function yT(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}a(yT,"handleSetResult");var Bs=w("$ZodEnum",(t,e)=>{Te.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(Te.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)=>{Te.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)=>{Te.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 _T(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}a(_T,"handleOptionalResult");var oa=w("$ZodOptional",(t,e)=>{Te.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=>_T(i,r.value)):_T(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)=>{Te.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)=>{Te.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=>vT(i,e)):vT(n,e)}});function vT(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}a(vT,"handleDefaultResult");var Fd=w("$ZodPrefault",(t,e)=>{Te.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)=>{Te.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=>bT(i,t)):bT(n,t)}});function bT(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(bT,"handleNonOptionalResult");var qd=w("$ZodSuccess",(t,e)=>{Te.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)=>{Te.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)=>{Te.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)=>{Te.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)=>{Te.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)=>{Te.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(PT):PT(n)}});function PT(t){return t.value=Object.freeze(t.value),t}a(PT,"handleReadonlyResult");var Zd=w("$ZodTemplateLiteral",(t,e)=>{Te.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)=>(Te.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)=>{Te.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)=>{Te.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),Te.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=>ET(i,r,o,t));ET(n,r,o,t)}});function ET(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(ET,"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:()=>Py,sv:()=>Ey,ta:()=>Sy,th:()=>xy,tr:()=>Ty,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 wT(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(wT,"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=wT(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=wT(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",E=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 ${E}`.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 S=(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 ${S}`}let E=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 ${E}`.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 IT(t,e,r){return Math.abs(t)===1?e:r}a(IT,"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=IT(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=IT(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 P1=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:P1()}}a(cy,"default");var E1=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:E1()}}a(Ks,"default");function uy(){return Ks()}a(uy,"default");var S1=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:S1()}}a(ly,"default");var Js=a(t=>t.charAt(0).toUpperCase()+t.slice(1),"capitalizeFirstCharacter");function CT(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(CT,"getUnitTypeFromNumber");var x1=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,CT(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,CT(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:x1()}}a(dy,"default");var T1=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:T1()}}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 RT(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(RT,"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=RT(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=RT(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 Py(){return{localeError:$1()}}a(Py,"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 Ey(){return{localeError:z1()}}a(Ey,"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 Sy(){return{localeError:D1()}}a(Sy,"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 xy(){return{localeError:U1()}}a(xy,"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 Ty(){return{localeError:M1()}}a(Ty,"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 OT,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");(OT=globalThis).__zod_globalRegistry??(OT.__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 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 Ec(t,e){return new t({type:"string",format:"date",check:"string_format",...te(e)})}a(Ec,"_isoDate");function Sc(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...te(e)})}a(Sc,"_isoTime");function xc(t,e){return new t({type:"string",format:"duration",check:"string_format",...te(e)})}a(xc,"_isoDuration");function Tc(t,e){return new t({type:"number",checks:[],...te(e)})}a(Tc,"_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 Eg({check:"max_size",...te(e),maximum:t})}a(Dn,"_maxSize");function Wr(t,e){return new Sg({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 Tg({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 Te,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=kT(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 kT(t,e){let r=new rt({check:"custom",...te(e)});return r._zod.check=t,r}a(kT,"_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 E=h;return r.case!=="sensitive"&&(E=E.toLowerCase()),i.has(E)?!0:s.has(E)?!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(io,"extractDefs");function ao(t,e){let n=t.seen.get(e);if(!n)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 E in l)E==="$ref"||E==="allOf"||E in p||delete l[E];if(h.$ref&&m.def)for(let E in l)E==="$ref"||E==="allOf"||E in m.def&&JSON.stringify(l[E])===JSON.stringify(m.def[E])&&delete l[E]}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 r={};if(t.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?r.$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");r.$id=t.external.uri(s)}Object.assign(r,n.def??n.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"?r.$defs=i:r.definitions=i);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:ea(e,"input",t.processors),output:ea(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(ao,"finalize");function Ft(t,e){let n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ft(o.element,n);if(o.type==="set")return Ft(o.valueType,n);if(o.type==="lazy")return Ft(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ft(o.innerType,n);if(o.type==="intersection")return Ft(o.left,n)||Ft(o.right,n);if(o.type==="record"||o.type==="map")return Ft(o.keyType,n)||Ft(o.valueType,n);if(o.type==="pipe")return Ft(o.in,n)||Ft(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Ft(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Ft(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Ft(r,n))return!0;return!!(o.rest&&Ft(o.rest,n))}return!1}a(Ft,"isTransforming");var Sy=a((t,e={})=>n=>{let o=oo({...n,processors:e});return We(t,o),io(o,t),ao(o,t)},"createToJSONSchemaMethod"),ea=a((t,e,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},s=oo({...r??{},target:i,io:e,processors:n});return We(t,s),io(s,t),ao(s,t)},"createStandardJSONSchemaMethod");var NM={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ey=a((t,e,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:s,format:u,patterns:l,contentEncoding:p}=t._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof s=="number"&&(r.maxLength=s),u&&(r.format=NM[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),p&&(r.contentEncoding=p),l&&l.size>0){let f=[...l];f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(y=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Py=a((t,e,n,o)=>{let r=n,{minimum:i,maximum:s,format:u,multipleOf:l,exclusiveMaximum:p,exclusiveMinimum:f}=t._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof f=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=f,r.exclusiveMinimum=!0):r.exclusiveMinimum=f),typeof i=="number"&&(r.minimum=i,typeof f=="number"&&e.target!=="draft-04"&&(f>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof p=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=p,r.exclusiveMaximum=!0):r.exclusiveMaximum=p),typeof s=="number"&&(r.maximum=s,typeof p=="number"&&e.target!=="draft-04"&&(p<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof l=="number"&&(r.multipleOf=l)},"numberProcessor"),xy=a((t,e,n,o)=>{n.type="boolean"},"booleanProcessor"),Ty=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Ay=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),wy=a((t,e,n,o)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Iy=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Ry=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Oy=a((t,e,n,o)=>{n.not={}},"neverProcessor"),Cy=a((t,e,n,o)=>{},"anyProcessor"),$y=a((t,e,n,o)=>{},"unknownProcessor"),ky=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Ny=a((t,e,n,o)=>{let r=t._zod.def,i=us(r.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),zy=a((t,e,n,o)=>{let r=t._zod.def,i=[];for(let s of r.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];n.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},"literalProcessor"),Dy=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Uy=a((t,e,n,o)=>{let r=n,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),My=a((t,e,n,o)=>{let r=n,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(r,i)):(Object.assign(r,i),r.anyOf=l.map(p=>({contentMediaType:p}))):Object.assign(r,i)},"fileProcessor"),jy=a((t,e,n,o)=>{n.type="boolean"},"successProcessor"),Ly=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Fy=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),By=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),qy=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),Vy=a((t,e,n,o)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),Zy=a((t,e,n,o)=>{let r=n,i=t._zod.def,{minimum:s,maximum:u}=t._zod.bag;typeof s=="number"&&(r.minItems=s),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=We(i.element,e,{...o,path:[...o.path,"items"]})},"arrayProcessor"),Hy=a((t,e,n,o)=>{let r=n,i=t._zod.def;r.type="object",r.properties={};let s=i.shape;for(let p in s)r.properties[p]=We(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&&(r.required=Array.from(l)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=We(i.catchall,e,{...o,path:[...o.path,"additionalProperties"]})):e.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),cp=a((t,e,n,o)=>{let r=t._zod.def,i=r.inclusive===!1,s=r.options.map((u,l)=>We(u,e,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},"unionProcessor"),Gy=a((t,e,n,o)=>{let r=t._zod.def,i=We(r.left,e,{...o,path:[...o.path,"allOf",0]}),s=We(r.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]];n.allOf=l},"intersectionProcessor"),Wy=a((t,e,n,o)=>{let r=n,i=t._zod.def;r.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)=>We(m,e,{...o,path:[...o.path,s,h]})),p=i.rest?We(i.rest,e,{...o,path:[...o.path,u,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;e.target==="draft-2020-12"?(r.prefixItems=l,p&&(r.items=p)):e.target==="openapi-3.0"?(r.items={anyOf:l},p&&r.items.anyOf.push(p),r.minItems=l.length,p||(r.maxItems=l.length)):(r.items=l,p&&(r.additionalItems=p));let{minimum:f,maximum:y}=t._zod.bag;typeof f=="number"&&(r.minItems=f),typeof y=="number"&&(r.maxItems=y)},"tupleProcessor"),Jy=a((t,e,n,o)=>{let r=n,i=t._zod.def;r.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let f=We(i.valueType,e,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let y of l)r.patternProperties[y.source]=f}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=We(i.keyType,e,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=We(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&&(r.required=f)}},"recordProcessor"),Ky=a((t,e,n,o)=>{let r=t._zod.def,i=We(r.innerType,e,o),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),Xy=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType},"nonoptionalProcessor"),Yy=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),Qy=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),e_=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},"catchProcessor"),t_=a((t,e,n,o)=>{let r=t._zod.def,i=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;We(i,e,o);let s=e.seen.get(t);s.ref=i},"pipeProcessor"),r_=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),n_=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType},"promiseProcessor"),up=a((t,e,n,o)=>{let r=t._zod.def;We(r.innerType,e,o);let i=e.seen.get(t);i.ref=r.innerType},"optionalProcessor"),o_=a((t,e,n,o)=>{let r=t._zod.innerType;We(r,e,o);let i=e.seen.get(t);i.ref=r},"lazyProcessor"),sp={string:Ey,number:Py,boolean:xy,bigint:Ty,symbol:Ay,null:wy,undefined:Iy,void:Ry,never:Oy,any:Cy,unknown:$y,date:ky,enum:Ny,literal:zy,nan:Dy,template_literal:Uy,file:My,success:jy,custom:Ly,function:Fy,transform:By,map:qy,set:Vy,array:Zy,object:Hy,union:cp,intersection:Gy,tuple:Wy,record:Jy,nullable:Ky,nonoptional:Xy,default:Yy,prefault:Qy,catch:e_,pipe:t_,readonly:r_,promise:n_,optional:up,lazy:o_};function Pc(t,e){if("_idmap"in t){let o=t,r=oo({...e,processors:sp}),i={};for(let l of o._idmap.entries()){let[p,f]=l;We(f,r)}let s={},u={registry:o,uri:e?.uri,defs:i};r.external=u;for(let l of o._idmap.entries()){let[p,f]=l;io(r,f),s[p]=ao(r,f)}if(Object.keys(i).length>0){let l=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let n=oo({...e,processors:sp});return We(t,n),io(n,t),ao(n,t)}a(Pc,"toJSONSchema");var lp=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 n=e?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=oo({processors:sp,target:n,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,n={path:[],schemaPath:[]}){return We(e,this.ctx,n)}emit(e,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),io(this.ctx,e);let o=ao(this.ctx,e),{"~standard":r,...i}=o;return i}};var uT={};var yt=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Se.init(t,e),t.def=e,t.type=e.type,t.parse=(n,o)=>Mo(t,n,o,{callee:t.parse}),t.safeParse=(n,o)=>Bi(t,n,o),t.parseAsync=async(n,o)=>jo(t,n,o,{callee:t.parseAsync}),t.safeParseAsync=async(n,o)=>Vi(t,n,o),t.check=(...n)=>t.clone({...e,checks:[...e.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),t.with=t.check,t.clone=(n,o)=>At(t,n,o),t.brand=()=>t,t.register=((n,o)=>(n.add(t,o),t)),t.apply=n=>n(t)}),dp=w("ZodMiniString",(t,e)=>{Tn.init(t,e),yt.init(t,e)});function v(t){return js(dp,t)}a(v,"string");var lT=w("ZodMiniStringFormat",(t,e)=>{Ge.init(t,e),dp.init(t,e)});var UM=w("ZodMiniURL",(t,e)=>{_s.init(t,e),lT.init(t,e)});function dT(t){return qo(UM,t)}a(dT,"url");var pp=w("ZodMiniNumber",(t,e)=>{Hi.init(t,e),yt.init(t,e)});function It(t){return sc(pp,t)}a(It,"number");var MM=w("ZodMiniNumberFormat",(t,e)=>{vs.init(t,e),pp.init(t,e)});function pT(t){return uc(MM,t)}a(pT,"int");var i_=w("ZodMiniBoolean",(t,e)=>{Fo.init(t,e),yt.init(t,e)});function Be(t){return lc(i_,t)}a(Be,"boolean");var fT=w("ZodMiniBigInt",(t,e)=>{Gi.init(t,e),yt.init(t,e)});var jM=w("ZodMiniAny",(t,e)=>{bs.init(t,e),yt.init(t,e)});function xc(){return fc(jM)}a(xc,"any");var LM=w("ZodMiniUnknown",(t,e)=>{Ss.init(t,e),yt.init(t,e)});function Te(){return mc(LM)}a(Te,"unknown");var FM=w("ZodMiniVoid",(t,e)=>{Es.init(t,e),yt.init(t,e)});function mT(t){return hc(FM,t)}a(mT,"_void");var hT=w("ZodMiniDate",(t,e)=>{Ps.init(t,e),yt.init(t,e)});var BM=w("ZodMiniArray",(t,e)=>{xs.init(t,e),yt.init(t,e)});function be(t,e){return new BM({type:"array",element:t,...Q(e)})}a(be,"array");var qM=w("ZodMiniObject",(t,e)=>{hd.init(t,e),yt.init(t,e),$e(t,"shape",()=>e.shape)});function C(t,e){let n={type:"object",shape:t??{},...Q(e)};return new qM(n)}a(C,"object");var VM=w("ZodMiniUnion",(t,e)=>{Bo.init(t,e),yt.init(t,e)});function ke(t,e){return new VM({type:"union",options:t,...Q(e)})}a(ke,"union");var ZM=w("ZodMiniDiscriminatedUnion",(t,e)=>{Ts.init(t,e),yt.init(t,e)});function so(t,e,n){return new ZM({type:"union",options:e,discriminator:t,...Q(n)})}a(so,"discriminatedUnion");var HM=w("ZodMiniRecord",(t,e)=>{ws.init(t,e),yt.init(t,e)});function Ae(t,e,n){return new HM({type:"record",keyType:t,valueType:e,...Q(n)})}a(Ae,"record");var GM=w("ZodMiniEnum",(t,e)=>{Is.init(t,e),yt.init(t,e),t.options=Object.values(e.entries)});function _e(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new GM({type:"enum",entries:n,...Q(e)})}a(_e,"_enum");var WM=w("ZodMiniLiteral",(t,e)=>{Rs.init(t,e),yt.init(t,e)});function ge(t,e){return new WM({type:"literal",values:Array.isArray(t)?t:[t],...Q(e)})}a(ge,"literal");var JM=w("ZodMiniTransform",(t,e)=>{Os.init(t,e),yt.init(t,e)});function co(t){return new JM({type:"transform",transform:t})}a(co,"transform");var KM=w("ZodMiniOptional",(t,e)=>{Wi.init(t,e),yt.init(t,e)});function q(t){return new KM({type:"optional",innerType:t})}a(q,"optional");var XM=w("ZodMiniNullable",(t,e)=>{Cs.init(t,e),yt.init(t,e)});function Tc(t){return new XM({type:"nullable",innerType:t})}a(Tc,"nullable");var YM=w("ZodMiniPipe",(t,e)=>{$s.init(t,e),yt.init(t,e)});function uo(t,e){return new YM({type:"pipe",in:t,out:e})}a(uo,"pipe");var QM=w("ZodMiniCustom",(t,e)=>{ks.init(t,e),yt.init(t,e)});function fp(t,e){return Ec(QM,t??(()=>!0),e)}a(fp,"custom");var Ac={};nr(Ac,{bigint:()=>o1,boolean:()=>n1,date:()=>i1,number:()=>r1,string:()=>t1});function t1(t){return Ls(dp,t)}a(t1,"string");function r1(t){return cc(pp,t)}a(r1,"number");function n1(t){return dc(i_,t)}a(n1,"boolean");function o1(t){return pc(fT,t)}a(o1,"bigint");function i1(t){return gc(hT,t)}a(i1,"date");var s_=C({retryOnFailure:C({defaultValue:q(Be()),hide:q(Be())}),continueOnFailure:C({defaultValue:q(Be()),hide:q(Be())})}),a_=class{constructor(e,n,o,r,i,s,u,l,p,f,y,m,h){this.name=e;this.displayName=n;this.description=o;this.props=r;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")}},lo=a(t=>new a_(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 Le=C({displayName:v(),description:q(v()),advanced:q(Be()),width:q(_e(["half","full"])),icon:q(v()),placeholder:q(v())}),we=a((t,e)=>C({type:ge(e),required:Be(),defaultValue:q(xc())}),"TPropertyValue");var ar=C({...Le.shape,...we(v(),"SHORT_TEXT").shape}),In=C({...Le.shape,...we(v(),"LONG_TEXT").shape});var yT=C({label:v(),value:Te(),description:q(v()),icon:q(v())}),mp=C({disabled:q(Be()),placeholder:q(v()),options:be(yT)});var s1=_e(["cards"]),sr=C({...Le.shape,options:mp,display:q(s1),...we(Te(),"STATIC_DROPDOWN").shape}),Rn=C({...Le.shape,options:mp,...we(be(Te()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var c_=C({...Le.shape,...we(Te(),"DROPDOWN").shape,refreshers:be(v())}),wc=C({...Le.shape,...we(be(Te()),"MULTI_SELECT_DROPDOWN").shape,refreshers:be(v())});var On=C({...Le.shape,reveals:q(be(v())),...we(Be(),"CHECKBOX").shape});var Cn=C({...Le.shape,display:q(_e(["stepper"])),min:q(It()),max:q(It()),step:q(It()),...we(It(),"NUMBER").shape});var Ic=C({...Le.shape,streaming:q(Be()),...we(Te(),"FILE").shape});var Rc=C({...Le.shape,...we(v(),"DATE_TIME").shape});var _T=Ae(v(),ke([ar,In,sr,wc,Rn,On,Cn,Ic,Rc])),Oc=C({...Le.shape,properties:_T,...we(be(Te()),"ARRAY").shape});var vT=_e(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),bT=C({preset:q(vT),after:q(v()),before:q(v())}),u_=C({...Le.shape,display:q(_e(["dropdown"])),...we(bT,"DATE_RANGE").shape});var Cc=C({...Le.shape,...we(ke([Ae(v(),Te())]),"JSON").shape});var ST=ke([ar,sr,Cc,Oc,Rn]),c1=Ae(v(),ST),l_=C({refreshers:be(v()),...Le.shape,...we(Te(),"DYNAMIC").shape});var hp=C({...Le.shape,...we(mT(),"MARKDOWN").shape});var $c=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))($c||{}),ta=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(ta||{}),ra=(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))(ra||{});var kc=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(kc||{}),d_="both_client_credentials_and_authorization_code";var po=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(po||{}),Nc=(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))(Nc||{}),u1=C({strategy:_e(Nc),paramName:q(v())}),zc=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(zc||{});var gp=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(gp||{}),ET=C({status:q(It()),body:q(Te()),headers:q(Ae(v(),v()))}),PT=C({type:ge("DELAY"),resumeDateTime:v(),requestIdToReply:q(v()),handlerId:q(v()),streamStepProgress:q(_e(gp))}),xT=C({type:ge("WEBHOOK"),requestId:v(),requestIdToReply:q(v()),response:ET,handlerId:q(v()),streamStepProgress:q(_e(gp))}),l1=ke([PT,xT]);var d1=C({body:Te(),rawBody:q(Te()),headers:Ae(v(),v()),queryParams:Ae(v(),v())});function ht(t){return t==null}a(ht,"isNil");function Dc(t){return t==null?!0:typeof t=="string"||Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}a(Dc,"isEmpty");function yp(t,e){if(t==null)throw new Error(`${e} is null or undefined`)}a(yp,"assertNotNullOrUndefined");function p_(t){try{return{data:t(),error:null}}catch(e){return{data:null,error:e}}}a(p_,"tryCatchSync");var f_=St(require("crypto"),1);var p1=128,fo,na,f1=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!fo||fo.length<t?(fo=Buffer.allocUnsafe(t*p1),f_.default.randomFillSync(fo),na=0):na+t>fo.length&&(f_.default.randomFillSync(fo),na=0)}catch(e){throw fo=void 0,e}na+=t},"fillPool"),m1=a(t=>(f1(t|=0),fo.subarray(na-t,na)),"random"),h1=a((t,e,n)=>{let o=(2<<31-Math.clz32(t.length-1|1))-1,r=Math.ceil(1.6*o*e/t.length);return(i=e)=>{if(i<=0)return"";let s="";for(;;){let u=n(r),l=r;for(;l--;)if(s+=t[u[l]&o]||"",s.length===i)return s}}},"customRandom"),AT=a((t,e=21)=>h1(t,e,m1),"customAlphabet");var g1="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",wT=21,E8=v().check(kt(new RegExp(`^[0-9a-zA-Z]{${wT}}$`))),y1=AT(g1,wT);var mo=uo(co(t=>t instanceof Date?t.toISOString():t),v()),xr={id:v(),created:mo,updated:mo},ut=a(t=>q(Tc(t)),"Nullable");function m_(t){return q(Tc(_e(t)))}a(m_,"NullableEnum");var T8=uo(co(t=>t==="true"||t===!0?!0:t==="false"||t===!1?!1:void 0),q(Be())),_p=a(t=>uo(co(e=>Array.isArray(e)?e:e!==void 0?[e]:void 0),q(be(t))),"OptionalArrayFromQuery");var I8=Ae(v(),Te());var oa=(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))(oa||{});var F8=v().check(kt(/^#[0-9A-Fa-f]{6}$/));var q8=C({filename:v(),data:Te(),type:ge("file"),mimetype:q(v())});var _1=St(RT());var K8=C({...xr,name:v(),permissions:be(v()),platformId:ut(v()),type:v(),userCount:q(It())});var Qp={};nr(Qp,{$brand:()=>ss,$input:()=>zd,$output:()=>Nd,NEVER:()=>yl,TimePrecision:()=>Ud,ZodAny:()=>M_,ZodArray:()=>B_,ZodBase64:()=>Lp,ZodBase64URL:()=>Fp,ZodBigInt:()=>da,ZodBigIntFormat:()=>Vp,ZodBoolean:()=>la,ZodCIDRv4:()=>Mp,ZodCIDRv6:()=>jp,ZodCUID:()=>Cp,ZodCUID2:()=>$p,ZodCatch:()=>lv,ZodCodec:()=>Yp,ZodCustom:()=>Wc,ZodCustomStringFormat:()=>ca,ZodDate:()=>qc,ZodDefault:()=>ov,ZodDiscriminatedUnion:()=>V_,ZodE164:()=>Bp,ZodEmail:()=>Ip,ZodEmoji:()=>Rp,ZodEnum:()=>aa,ZodError:()=>v1,ZodExactOptional:()=>tv,ZodFile:()=>Q_,ZodFirstPartyTypeKind:()=>Ev,ZodFunction:()=>vv,ZodGUID:()=>Mc,ZodIPv4:()=>Dp,ZodIPv6:()=>Up,ZodISODate:()=>Ep,ZodISODateTime:()=>Sp,ZodISODuration:()=>xp,ZodISOTime:()=>Pp,ZodIntersection:()=>Z_,ZodIssueCode:()=>S1,ZodJWT:()=>qp,ZodKSUID:()=>zp,ZodLazy:()=>gv,ZodLiteral:()=>Y_,ZodMAC:()=>C_,ZodMap:()=>K_,ZodNaN:()=>pv,ZodNanoID:()=>Op,ZodNever:()=>L_,ZodNonOptional:()=>Kp,ZodNull:()=>D_,ZodNullable:()=>nv,ZodNumber:()=>ua,ZodNumberFormat:()=>ri,ZodObject:()=>Zc,ZodOptional:()=>Jp,ZodPipe:()=>Xp,ZodPrefault:()=>av,ZodPromise:()=>_v,ZodReadonly:()=>fv,ZodRealError:()=>Wt,ZodRecord:()=>Gc,ZodSet:()=>X_,ZodString:()=>sa,ZodStringFormat:()=>Qe,ZodSuccess:()=>uv,ZodSymbol:()=>N_,ZodTemplateLiteral:()=>hv,ZodTransform:()=>ev,ZodTuple:()=>G_,ZodType:()=>Ne,ZodULID:()=>kp,ZodURL:()=>Bc,ZodUUID:()=>Qr,ZodUndefined:()=>z_,ZodUnion:()=>Hc,ZodUnknown:()=>j_,ZodVoid:()=>F_,ZodXID:()=>Np,ZodXor:()=>q_,_ZodString:()=>wp,_default:()=>iv,_function:()=>DA,any:()=>mA,array:()=>Vc,base64:()=>XT,base64url:()=>YT,bigint:()=>uA,boolean:()=>k_,catch:()=>dv,check:()=>UA,cidrv4:()=>JT,cidrv6:()=>KT,clone:()=>At,codec:()=>kA,coerce:()=>Pv,config:()=>ct,core:()=>ir,cuid:()=>FT,cuid2:()=>BT,custom:()=>MA,date:()=>gA,decode:()=>x_,decodeAsync:()=>A_,describe:()=>jA,discriminatedUnion:()=>EA,e164:()=>QT,email:()=>CT,emoji:()=>jT,encode:()=>P_,encodeAsync:()=>T_,endsWith:()=>Wo,enum:()=>Gp,exactOptional:()=>rv,file:()=>RA,flattenError:()=>Ui,float32:()=>iA,float64:()=>aA,formatError:()=>Mi,fromJSONSchema:()=>HA,function:()=>DA,getErrorMap:()=>P1,globalRegistry:()=>wt,gt:()=>jr,gte:()=>Et,guid:()=>$T,hash:()=>oA,hex:()=>nA,hostname:()=>rA,httpUrl:()=>MT,includes:()=>Ho,instanceof:()=>FA,int:()=>Ap,int32:()=>sA,int64:()=>lA,intersection:()=>H_,ipv4:()=>HT,ipv6:()=>WT,iso:()=>ia,json:()=>qA,jwt:()=>eA,keyof:()=>yA,ksuid:()=>ZT,lazy:()=>yv,length:()=>no,literal:()=>IA,locales:()=>Xi,looseObject:()=>bA,looseRecord:()=>xA,lowercase:()=>Vo,lt:()=>Mr,lte:()=>Lt,mac:()=>GT,map:()=>TA,maxLength:()=>ro,maxSize:()=>wn,meta:()=>LA,mime:()=>Jo,minLength:()=>mt,minSize:()=>Lr,multipleOf:()=>An,nan:()=>$A,nanoid:()=>LT,nativeEnum:()=>wA,negative:()=>_c,never:()=>Zp,nonnegative:()=>bc,nonoptional:()=>cv,nonpositive:()=>vc,normalize:()=>Ko,null:()=>U_,nullable:()=>Lc,nullish:()=>OA,number:()=>$_,object:()=>_A,optional:()=>jc,overwrite:()=>Pr,parse:()=>v_,parseAsync:()=>b_,partialRecord:()=>PA,pipe:()=>Fc,positive:()=>yc,prefault:()=>sv,preprocess:()=>VA,prettifyError:()=>El,promise:()=>zA,property:()=>Sc,readonly:()=>mv,record:()=>J_,refine:()=>bv,regex:()=>kt,regexes:()=>Gt,registry:()=>Ms,safeDecode:()=>I_,safeDecodeAsync:()=>O_,safeEncode:()=>w_,safeEncodeAsync:()=>R_,safeParse:()=>S_,safeParseAsync:()=>E_,set:()=>AA,setErrorMap:()=>E1,size:()=>to,slugify:()=>Qi,startsWith:()=>Go,strictObject:()=>vA,string:()=>Tp,stringFormat:()=>tA,stringbool:()=>BA,success:()=>CA,superRefine:()=>Sv,symbol:()=>pA,templateLiteral:()=>NA,toJSONSchema:()=>Pc,toLowerCase:()=>Yo,toUpperCase:()=>Qo,transform:()=>Wp,treeifyError:()=>Sl,trim:()=>Xo,tuple:()=>W_,uint32:()=>cA,uint64:()=>dA,ulid:()=>qT,undefined:()=>fA,union:()=>Hp,unknown:()=>ti,uppercase:()=>Zo,url:()=>UT,util:()=>ne,uuid:()=>kT,uuidv4:()=>NT,uuidv6:()=>zT,uuidv7:()=>DT,void:()=>hA,xid:()=>VT,xor:()=>SA});var Uc={};nr(Uc,{ZodAny:()=>M_,ZodArray:()=>B_,ZodBase64:()=>Lp,ZodBase64URL:()=>Fp,ZodBigInt:()=>da,ZodBigIntFormat:()=>Vp,ZodBoolean:()=>la,ZodCIDRv4:()=>Mp,ZodCIDRv6:()=>jp,ZodCUID:()=>Cp,ZodCUID2:()=>$p,ZodCatch:()=>lv,ZodCodec:()=>Yp,ZodCustom:()=>Wc,ZodCustomStringFormat:()=>ca,ZodDate:()=>qc,ZodDefault:()=>ov,ZodDiscriminatedUnion:()=>V_,ZodE164:()=>Bp,ZodEmail:()=>Ip,ZodEmoji:()=>Rp,ZodEnum:()=>aa,ZodExactOptional:()=>tv,ZodFile:()=>Q_,ZodFunction:()=>vv,ZodGUID:()=>Mc,ZodIPv4:()=>Dp,ZodIPv6:()=>Up,ZodIntersection:()=>Z_,ZodJWT:()=>qp,ZodKSUID:()=>zp,ZodLazy:()=>gv,ZodLiteral:()=>Y_,ZodMAC:()=>C_,ZodMap:()=>K_,ZodNaN:()=>pv,ZodNanoID:()=>Op,ZodNever:()=>L_,ZodNonOptional:()=>Kp,ZodNull:()=>D_,ZodNullable:()=>nv,ZodNumber:()=>ua,ZodNumberFormat:()=>ri,ZodObject:()=>Zc,ZodOptional:()=>Jp,ZodPipe:()=>Xp,ZodPrefault:()=>av,ZodPromise:()=>_v,ZodReadonly:()=>fv,ZodRecord:()=>Gc,ZodSet:()=>X_,ZodString:()=>sa,ZodStringFormat:()=>Qe,ZodSuccess:()=>uv,ZodSymbol:()=>N_,ZodTemplateLiteral:()=>hv,ZodTransform:()=>ev,ZodTuple:()=>G_,ZodType:()=>Ne,ZodULID:()=>kp,ZodURL:()=>Bc,ZodUUID:()=>Qr,ZodUndefined:()=>z_,ZodUnion:()=>Hc,ZodUnknown:()=>j_,ZodVoid:()=>F_,ZodXID:()=>Np,ZodXor:()=>q_,_ZodString:()=>wp,_default:()=>iv,_function:()=>DA,any:()=>mA,array:()=>Vc,base64:()=>XT,base64url:()=>YT,bigint:()=>uA,boolean:()=>k_,catch:()=>dv,check:()=>UA,cidrv4:()=>JT,cidrv6:()=>KT,codec:()=>kA,cuid:()=>FT,cuid2:()=>BT,custom:()=>MA,date:()=>gA,describe:()=>jA,discriminatedUnion:()=>EA,e164:()=>QT,email:()=>CT,emoji:()=>jT,enum:()=>Gp,exactOptional:()=>rv,file:()=>RA,float32:()=>iA,float64:()=>aA,function:()=>DA,guid:()=>$T,hash:()=>oA,hex:()=>nA,hostname:()=>rA,httpUrl:()=>MT,instanceof:()=>FA,int:()=>Ap,int32:()=>sA,int64:()=>lA,intersection:()=>H_,ipv4:()=>HT,ipv6:()=>WT,json:()=>qA,jwt:()=>eA,keyof:()=>yA,ksuid:()=>ZT,lazy:()=>yv,literal:()=>IA,looseObject:()=>bA,looseRecord:()=>xA,mac:()=>GT,map:()=>TA,meta:()=>LA,nan:()=>$A,nanoid:()=>LT,nativeEnum:()=>wA,never:()=>Zp,nonoptional:()=>cv,null:()=>U_,nullable:()=>Lc,nullish:()=>OA,number:()=>$_,object:()=>_A,optional:()=>jc,partialRecord:()=>PA,pipe:()=>Fc,prefault:()=>sv,preprocess:()=>VA,promise:()=>zA,readonly:()=>mv,record:()=>J_,refine:()=>bv,set:()=>AA,strictObject:()=>vA,string:()=>Tp,stringFormat:()=>tA,stringbool:()=>BA,success:()=>CA,superRefine:()=>Sv,symbol:()=>pA,templateLiteral:()=>NA,transform:()=>Wp,tuple:()=>W_,uint32:()=>cA,uint64:()=>dA,ulid:()=>qT,undefined:()=>fA,union:()=>Hp,unknown:()=>ti,url:()=>UT,uuid:()=>kT,uuidv4:()=>NT,uuidv6:()=>zT,uuidv7:()=>DT,void:()=>hA,xid:()=>VT,xor:()=>SA});var bp={};nr(bp,{endsWith:()=>Wo,gt:()=>jr,gte:()=>Et,includes:()=>Ho,length:()=>no,lowercase:()=>Vo,lt:()=>Mr,lte:()=>Lt,maxLength:()=>ro,maxSize:()=>wn,mime:()=>Jo,minLength:()=>mt,minSize:()=>Lr,multipleOf:()=>An,negative:()=>_c,nonnegative:()=>bc,nonpositive:()=>vc,normalize:()=>Ko,overwrite:()=>Pr,positive:()=>yc,property:()=>Sc,regex:()=>kt,size:()=>to,slugify:()=>Qi,startsWith:()=>Go,toLowerCase:()=>Yo,toUpperCase:()=>Qo,trim:()=>Xo,uppercase:()=>Zo});var ia={};nr(ia,{ZodISODate:()=>Ep,ZodISODateTime:()=>Sp,ZodISODuration:()=>xp,ZodISOTime:()=>Pp,date:()=>g_,datetime:()=>h_,duration:()=>__,time:()=>y_});var Sp=w("ZodISODateTime",(t,e)=>{Kl.init(t,e),Qe.init(t,e)});function h_(t){return Md(Sp,t)}a(h_,"datetime");var Ep=w("ZodISODate",(t,e)=>{Xl.init(t,e),Qe.init(t,e)});function g_(t){return jd(Ep,t)}a(g_,"date");var Pp=w("ZodISOTime",(t,e)=>{Yl.init(t,e),Qe.init(t,e)});function y_(t){return Ld(Pp,t)}a(y_,"time");var xp=w("ZodISODuration",(t,e)=>{Ql.init(t,e),Qe.init(t,e)});function __(t){return Fd(xp,t)}a(__,"duration");var OT=a((t,e)=>{ms.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:a(n=>Mi(t,n),"value")},flatten:{value:a(n=>Ui(t,n),"value")},addIssue:{value:a(n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,Ni,2)},"value")},addIssues:{value:a(n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,Ni,2)},"value")},isEmpty:{get(){return t.issues.length===0}}})},"initializer"),v1=w("ZodError",OT),Wt=w("ZodError",OT,{Parent:Error});var v_=ji(Wt),b_=Li(Wt),S_=Fi(Wt),E_=qi(Wt),P_=Pl(Wt),x_=xl(Wt),T_=Tl(Wt),A_=Al(Wt),w_=wl(Wt),I_=Il(Wt),R_=Rl(Wt),O_=Ol(Wt);var Ne=w("ZodType",(t,e)=>(Se.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:ea(t,"input"),output:ea(t,"output")}}),t.toJSONSchema=Sy(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(ne.mergeDefs(e,{checks:[...e.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),t.with=t.check,t.clone=(n,o)=>At(t,n,o),t.brand=()=>t,t.register=((n,o)=>(n.add(t,o),t)),t.parse=(n,o)=>v_(t,n,o,{callee:t.parse}),t.safeParse=(n,o)=>S_(t,n,o),t.parseAsync=async(n,o)=>b_(t,n,o,{callee:t.parseAsync}),t.safeParseAsync=async(n,o)=>E_(t,n,o),t.spa=t.safeParseAsync,t.encode=(n,o)=>P_(t,n,o),t.decode=(n,o)=>x_(t,n,o),t.encodeAsync=async(n,o)=>T_(t,n,o),t.decodeAsync=async(n,o)=>A_(t,n,o),t.safeEncode=(n,o)=>w_(t,n,o),t.safeDecode=(n,o)=>I_(t,n,o),t.safeEncodeAsync=async(n,o)=>R_(t,n,o),t.safeDecodeAsync=async(n,o)=>O_(t,n,o),t.refine=(n,o)=>t.check(bv(n,o)),t.superRefine=n=>t.check(Sv(n)),t.overwrite=n=>t.check(Pr(n)),t.optional=()=>jc(t),t.exactOptional=()=>rv(t),t.nullable=()=>Lc(t),t.nullish=()=>jc(Lc(t)),t.nonoptional=n=>cv(t,n),t.array=()=>Vc(t),t.or=n=>Hp([t,n]),t.and=n=>H_(t,n),t.transform=n=>Fc(t,Wp(n)),t.default=n=>iv(t,n),t.prefault=n=>sv(t,n),t.catch=n=>dv(t,n),t.pipe=n=>Fc(t,n),t.readonly=()=>mv(t),t.describe=n=>{let o=t.clone();return wt.add(o,{description:n}),o},Object.defineProperty(t,"description",{get(){return wt.get(t)?.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return wt.get(t);let o=t.clone();return wt.add(o,n[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=n=>n(t),t)),wp=w("_ZodString",(t,e)=>{Tn.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(o,r,i)=>Ey(t,o,r,i);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...o)=>t.check(kt(...o)),t.includes=(...o)=>t.check(Ho(...o)),t.startsWith=(...o)=>t.check(Go(...o)),t.endsWith=(...o)=>t.check(Wo(...o)),t.min=(...o)=>t.check(mt(...o)),t.max=(...o)=>t.check(ro(...o)),t.length=(...o)=>t.check(no(...o)),t.nonempty=(...o)=>t.check(mt(1,...o)),t.lowercase=o=>t.check(Vo(o)),t.uppercase=o=>t.check(Zo(o)),t.trim=()=>t.check(Xo()),t.normalize=(...o)=>t.check(Ko(...o)),t.toLowerCase=()=>t.check(Yo()),t.toUpperCase=()=>t.check(Qo()),t.slugify=()=>t.check(Qi())}),sa=w("ZodString",(t,e)=>{Tn.init(t,e),wp.init(t,e),t.email=n=>t.check(Fs(Ip,n)),t.url=n=>t.check(qo(Bc,n)),t.jwt=n=>t.check(ac(qp,n)),t.emoji=n=>t.check(Hs(Rp,n)),t.guid=n=>t.check(Yi(Mc,n)),t.uuid=n=>t.check(Bs(Qr,n)),t.uuidv4=n=>t.check(qs(Qr,n)),t.uuidv6=n=>t.check(Vs(Qr,n)),t.uuidv7=n=>t.check(Zs(Qr,n)),t.nanoid=n=>t.check(Gs(Op,n)),t.guid=n=>t.check(Yi(Mc,n)),t.cuid=n=>t.check(Ws(Cp,n)),t.cuid2=n=>t.check(Js($p,n)),t.ulid=n=>t.check(Ks(kp,n)),t.base64=n=>t.check(nc(Lp,n)),t.base64url=n=>t.check(oc(Fp,n)),t.xid=n=>t.check(Xs(Np,n)),t.ksuid=n=>t.check(Ys(zp,n)),t.ipv4=n=>t.check(Qs(Dp,n)),t.ipv6=n=>t.check(ec(Up,n)),t.cidrv4=n=>t.check(tc(Mp,n)),t.cidrv6=n=>t.check(rc(jp,n)),t.e164=n=>t.check(ic(Bp,n)),t.datetime=n=>t.check(h_(n)),t.date=n=>t.check(g_(n)),t.time=n=>t.check(y_(n)),t.duration=n=>t.check(__(n))});function Tp(t){return js(sa,t)}a(Tp,"string");var Qe=w("ZodStringFormat",(t,e)=>{Ge.init(t,e),wp.init(t,e)}),Ip=w("ZodEmail",(t,e)=>{Bl.init(t,e),Qe.init(t,e)});function CT(t){return Fs(Ip,t)}a(CT,"email");var Mc=w("ZodGUID",(t,e)=>{Ll.init(t,e),Qe.init(t,e)});function $T(t){return Yi(Mc,t)}a($T,"guid");var Qr=w("ZodUUID",(t,e)=>{Fl.init(t,e),Qe.init(t,e)});function kT(t){return Bs(Qr,t)}a(kT,"uuid");function NT(t){return qs(Qr,t)}a(NT,"uuidv4");function zT(t){return Vs(Qr,t)}a(zT,"uuidv6");function DT(t){return Zs(Qr,t)}a(DT,"uuidv7");var Bc=w("ZodURL",(t,e)=>{_s.init(t,e),Qe.init(t,e)});function UT(t){return qo(Bc,t)}a(UT,"url");function MT(t){return qo(Bc,{protocol:/^https?$/,hostname:Gt.domain,...ne.normalizeParams(t)})}a(MT,"httpUrl");var Rp=w("ZodEmoji",(t,e)=>{ql.init(t,e),Qe.init(t,e)});function jT(t){return Hs(Rp,t)}a(jT,"emoji");var Op=w("ZodNanoID",(t,e)=>{Vl.init(t,e),Qe.init(t,e)});function LT(t){return Gs(Op,t)}a(LT,"nanoid");var Cp=w("ZodCUID",(t,e)=>{Zl.init(t,e),Qe.init(t,e)});function FT(t){return Ws(Cp,t)}a(FT,"cuid");var $p=w("ZodCUID2",(t,e)=>{Hl.init(t,e),Qe.init(t,e)});function BT(t){return Js($p,t)}a(BT,"cuid2");var kp=w("ZodULID",(t,e)=>{Gl.init(t,e),Qe.init(t,e)});function qT(t){return Ks(kp,t)}a(qT,"ulid");var Np=w("ZodXID",(t,e)=>{Wl.init(t,e),Qe.init(t,e)});function VT(t){return Xs(Np,t)}a(VT,"xid");var zp=w("ZodKSUID",(t,e)=>{Jl.init(t,e),Qe.init(t,e)});function ZT(t){return Ys(zp,t)}a(ZT,"ksuid");var Dp=w("ZodIPv4",(t,e)=>{ed.init(t,e),Qe.init(t,e)});function HT(t){return Qs(Dp,t)}a(HT,"ipv4");var C_=w("ZodMAC",(t,e)=>{rd.init(t,e),Qe.init(t,e)});function GT(t){return Dd(C_,t)}a(GT,"mac");var Up=w("ZodIPv6",(t,e)=>{td.init(t,e),Qe.init(t,e)});function WT(t){return ec(Up,t)}a(WT,"ipv6");var Mp=w("ZodCIDRv4",(t,e)=>{nd.init(t,e),Qe.init(t,e)});function JT(t){return tc(Mp,t)}a(JT,"cidrv4");var jp=w("ZodCIDRv6",(t,e)=>{od.init(t,e),Qe.init(t,e)});function KT(t){return rc(jp,t)}a(KT,"cidrv6");var Lp=w("ZodBase64",(t,e)=>{id.init(t,e),Qe.init(t,e)});function XT(t){return nc(Lp,t)}a(XT,"base64");var Fp=w("ZodBase64URL",(t,e)=>{ad.init(t,e),Qe.init(t,e)});function YT(t){return oc(Fp,t)}a(YT,"base64url");var Bp=w("ZodE164",(t,e)=>{sd.init(t,e),Qe.init(t,e)});function QT(t){return ic(Bp,t)}a(QT,"e164");var qp=w("ZodJWT",(t,e)=>{cd.init(t,e),Qe.init(t,e)});function eA(t){return ac(qp,t)}a(eA,"jwt");var ca=w("ZodCustomStringFormat",(t,e)=>{ud.init(t,e),Qe.init(t,e)});function tA(t,e,n={}){return ei(ca,t,e,n)}a(tA,"stringFormat");function rA(t){return ei(ca,"hostname",Gt.hostname,t)}a(rA,"hostname");function nA(t){return ei(ca,"hex",Gt.hex,t)}a(nA,"hex");function oA(t,e){let n=e?.enc??"hex",o=`${t}_${n}`,r=Gt[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return ei(ca,o,r,e)}a(oA,"hash");var ua=w("ZodNumber",(t,e)=>{Hi.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(o,r,i)=>Py(t,o,r,i),t.gt=(o,r)=>t.check(jr(o,r)),t.gte=(o,r)=>t.check(Et(o,r)),t.min=(o,r)=>t.check(Et(o,r)),t.lt=(o,r)=>t.check(Mr(o,r)),t.lte=(o,r)=>t.check(Lt(o,r)),t.max=(o,r)=>t.check(Lt(o,r)),t.int=o=>t.check(Ap(o)),t.safe=o=>t.check(Ap(o)),t.positive=o=>t.check(jr(0,o)),t.nonnegative=o=>t.check(Et(0,o)),t.negative=o=>t.check(Mr(0,o)),t.nonpositive=o=>t.check(Lt(0,o)),t.multipleOf=(o,r)=>t.check(An(o,r)),t.step=(o,r)=>t.check(An(o,r)),t.finite=()=>t;let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function $_(t){return sc(ua,t)}a($_,"number");var ri=w("ZodNumberFormat",(t,e)=>{vs.init(t,e),ua.init(t,e)});function Ap(t){return uc(ri,t)}a(Ap,"int");function iA(t){return Bd(ri,t)}a(iA,"float32");function aA(t){return qd(ri,t)}a(aA,"float64");function sA(t){return Vd(ri,t)}a(sA,"int32");function cA(t){return Zd(ri,t)}a(cA,"uint32");var la=w("ZodBoolean",(t,e)=>{Fo.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>xy(t,n,o,r)});function k_(t){return lc(la,t)}a(k_,"boolean");var da=w("ZodBigInt",(t,e)=>{Gi.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(o,r,i)=>Ty(t,o,r,i),t.gte=(o,r)=>t.check(Et(o,r)),t.min=(o,r)=>t.check(Et(o,r)),t.gt=(o,r)=>t.check(jr(o,r)),t.gte=(o,r)=>t.check(Et(o,r)),t.min=(o,r)=>t.check(Et(o,r)),t.lt=(o,r)=>t.check(Mr(o,r)),t.lte=(o,r)=>t.check(Lt(o,r)),t.max=(o,r)=>t.check(Lt(o,r)),t.positive=o=>t.check(jr(BigInt(0),o)),t.negative=o=>t.check(Mr(BigInt(0),o)),t.nonpositive=o=>t.check(Lt(BigInt(0),o)),t.nonnegative=o=>t.check(Et(BigInt(0),o)),t.multipleOf=(o,r)=>t.check(An(o,r));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});function uA(t){return Hd(da,t)}a(uA,"bigint");var Vp=w("ZodBigIntFormat",(t,e)=>{ld.init(t,e),da.init(t,e)});function lA(t){return Gd(Vp,t)}a(lA,"int64");function dA(t){return Wd(Vp,t)}a(dA,"uint64");var N_=w("ZodSymbol",(t,e)=>{dd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Ay(t,n,o,r)});function pA(t){return Jd(N_,t)}a(pA,"symbol");var z_=w("ZodUndefined",(t,e)=>{pd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Iy(t,n,o,r)});function fA(t){return Kd(z_,t)}a(fA,"_undefined");var D_=w("ZodNull",(t,e)=>{fd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>wy(t,n,o,r)});function U_(t){return Xd(D_,t)}a(U_,"_null");var M_=w("ZodAny",(t,e)=>{bs.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Cy(t,n,o,r)});function mA(){return fc(M_)}a(mA,"any");var j_=w("ZodUnknown",(t,e)=>{Ss.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>$y(t,n,o,r)});function ti(){return mc(j_)}a(ti,"unknown");var L_=w("ZodNever",(t,e)=>{md.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Oy(t,n,o,r)});function Zp(t){return Yd(L_,t)}a(Zp,"never");var F_=w("ZodVoid",(t,e)=>{Es.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Ry(t,n,o,r)});function hA(t){return hc(F_,t)}a(hA,"_void");var qc=w("ZodDate",(t,e)=>{Ps.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(o,r,i)=>ky(t,o,r,i),t.min=(o,r)=>t.check(Et(o,r)),t.max=(o,r)=>t.check(Lt(o,r));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function gA(t){return Qd(qc,t)}a(gA,"date");var B_=w("ZodArray",(t,e)=>{xs.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Zy(t,n,o,r),t.element=e.element,t.min=(n,o)=>t.check(mt(n,o)),t.nonempty=n=>t.check(mt(1,n)),t.max=(n,o)=>t.check(ro(n,o)),t.length=(n,o)=>t.check(no(n,o)),t.unwrap=()=>t.element});function Vc(t,e){return by(B_,t,e)}a(Vc,"array");function yA(t){let e=t._zod.def.shape;return Gp(Object.keys(e))}a(yA,"keyof");var Zc=w("ZodObject",(t,e)=>{wg.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Hy(t,n,o,r),ne.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Gp(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:ti()}),t.loose=()=>t.clone({...t._zod.def,catchall:ti()}),t.strict=()=>t.clone({...t._zod.def,catchall:Zp()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>ne.extend(t,n),t.safeExtend=n=>ne.safeExtend(t,n),t.merge=n=>ne.merge(t,n),t.pick=n=>ne.pick(t,n),t.omit=n=>ne.omit(t,n),t.partial=(...n)=>ne.partial(Jp,t,n[0]),t.required=(...n)=>ne.required(Kp,t,n[0])});function _A(t,e){let n={type:"object",shape:t??{},...ne.normalizeParams(e)};return new Zc(n)}a(_A,"object");function vA(t,e){return new Zc({type:"object",shape:t,catchall:Zp(),...ne.normalizeParams(e)})}a(vA,"strictObject");function bA(t,e){return new Zc({type:"object",shape:t,catchall:ti(),...ne.normalizeParams(e)})}a(bA,"looseObject");var Hc=w("ZodUnion",(t,e)=>{Bo.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>cp(t,n,o,r),t.options=e.options});function Hp(t,e){return new Hc({type:"union",options:t,...ne.normalizeParams(e)})}a(Hp,"union");var q_=w("ZodXor",(t,e)=>{Hc.init(t,e),gd.init(t,e),t._zod.processJSONSchema=(n,o,r)=>cp(t,n,o,r),t.options=e.options});function SA(t,e){return new q_({type:"union",options:t,inclusive:!1,...ne.normalizeParams(e)})}a(SA,"xor");var V_=w("ZodDiscriminatedUnion",(t,e)=>{Hc.init(t,e),Ts.init(t,e)});function EA(t,e,n){return new V_({type:"union",options:e,discriminator:t,...ne.normalizeParams(n)})}a(EA,"discriminatedUnion");var Z_=w("ZodIntersection",(t,e)=>{yd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Gy(t,n,o,r)});function H_(t,e){return new Z_({type:"intersection",left:t,right:e})}a(H_,"intersection");var G_=w("ZodTuple",(t,e)=>{As.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Wy(t,n,o,r),t.rest=n=>t.clone({...t._zod.def,rest:n})});function W_(t,e,n){let o=e instanceof Se,r=o?n:e,i=o?e:null;return new G_({type:"tuple",items:t,rest:i,...ne.normalizeParams(r)})}a(W_,"tuple");var Gc=w("ZodRecord",(t,e)=>{ws.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Jy(t,n,o,r),t.keyType=e.keyType,t.valueType=e.valueType});function J_(t,e,n){return new Gc({type:"record",keyType:t,valueType:e,...ne.normalizeParams(n)})}a(J_,"record");function PA(t,e,n){let o=At(t);return o._zod.values=void 0,new Gc({type:"record",keyType:o,valueType:e,...ne.normalizeParams(n)})}a(PA,"partialRecord");function xA(t,e,n){return new Gc({type:"record",keyType:t,valueType:e,mode:"loose",...ne.normalizeParams(n)})}a(xA,"looseRecord");var K_=w("ZodMap",(t,e)=>{_d.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>qy(t,n,o,r),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...n)=>t.check(Lr(...n)),t.nonempty=n=>t.check(Lr(1,n)),t.max=(...n)=>t.check(wn(...n)),t.size=(...n)=>t.check(to(...n))});function TA(t,e,n){return new K_({type:"map",keyType:t,valueType:e,...ne.normalizeParams(n)})}a(TA,"map");var X_=w("ZodSet",(t,e)=>{vd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Vy(t,n,o,r),t.min=(...n)=>t.check(Lr(...n)),t.nonempty=n=>t.check(Lr(1,n)),t.max=(...n)=>t.check(wn(...n)),t.size=(...n)=>t.check(to(...n))});function AA(t,e){return new X_({type:"set",valueType:t,...ne.normalizeParams(e)})}a(AA,"set");var aa=w("ZodEnum",(t,e)=>{Is.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(o,r,i)=>Ny(t,o,r,i),t.enum=e.entries,t.options=Object.values(e.entries);let n=new Set(Object.keys(e.entries));t.extract=(o,r)=>{let i={};for(let s of o)if(n.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new aa({...e,checks:[],...ne.normalizeParams(r),entries:i})},t.exclude=(o,r)=>{let i={...e.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new aa({...e,checks:[],...ne.normalizeParams(r),entries:i})}});function Gp(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new aa({type:"enum",entries:n,...ne.normalizeParams(e)})}a(Gp,"_enum");function wA(t,e){return new aa({type:"enum",entries:t,...ne.normalizeParams(e)})}a(wA,"nativeEnum");var Y_=w("ZodLiteral",(t,e)=>{Rs.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>zy(t,n,o,r),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 IA(t,e){return new Y_({type:"literal",values:Array.isArray(t)?t:[t],...ne.normalizeParams(e)})}a(IA,"literal");var Q_=w("ZodFile",(t,e)=>{bd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>My(t,n,o,r),t.min=(n,o)=>t.check(Lr(n,o)),t.max=(n,o)=>t.check(wn(n,o)),t.mime=(n,o)=>t.check(Jo(Array.isArray(n)?n:[n],o))});function RA(t){return tp(Q_,t)}a(RA,"file");var ev=w("ZodTransform",(t,e)=>{Os.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>By(t,n,o,r),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Kn(t.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ne.issue(i,n.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),n.issues.push(ne.issue(s))}};let r=e.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function Wp(t){return new ev({type:"transform",transform:t})}a(Wp,"transform");var Jp=w("ZodOptional",(t,e)=>{Wi.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>up(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function jc(t){return new Jp({type:"optional",innerType:t})}a(jc,"optional");var tv=w("ZodExactOptional",(t,e)=>{Sd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>up(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function rv(t){return new tv({type:"optional",innerType:t})}a(rv,"exactOptional");var nv=w("ZodNullable",(t,e)=>{Cs.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Ky(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function Lc(t){return new nv({type:"nullable",innerType:t})}a(Lc,"nullable");function OA(t){return jc(Lc(t))}a(OA,"nullish");var ov=w("ZodDefault",(t,e)=>{Ed.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Yy(t,n,o,r),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function iv(t,e){return new ov({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ne.shallowClone(e)}})}a(iv,"_default");var av=w("ZodPrefault",(t,e)=>{Pd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Qy(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function sv(t,e){return new av({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():ne.shallowClone(e)}})}a(sv,"prefault");var Kp=w("ZodNonOptional",(t,e)=>{xd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Xy(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function cv(t,e){return new Kp({type:"nonoptional",innerType:t,...ne.normalizeParams(e)})}a(cv,"nonoptional");var uv=w("ZodSuccess",(t,e)=>{Td.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>jy(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function CA(t){return new uv({type:"success",innerType:t})}a(CA,"success");var lv=w("ZodCatch",(t,e)=>{Ad.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>e_(t,n,o,r),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function dv(t,e){return new lv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}a(dv,"_catch");var pv=w("ZodNaN",(t,e)=>{wd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Dy(t,n,o,r)});function $A(t){return ep(pv,t)}a($A,"nan");var Xp=w("ZodPipe",(t,e)=>{$s.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>t_(t,n,o,r),t.in=e.in,t.out=e.out});function Fc(t,e){return new Xp({type:"pipe",in:t,out:e})}a(Fc,"pipe");var Yp=w("ZodCodec",(t,e)=>{Xp.init(t,e),Ji.init(t,e)});function kA(t,e,n){return new Yp({type:"pipe",in:t,out:e,transform:n.decode,reverseTransform:n.encode})}a(kA,"codec");var fv=w("ZodReadonly",(t,e)=>{Id.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>r_(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function mv(t){return new fv({type:"readonly",innerType:t})}a(mv,"readonly");var hv=w("ZodTemplateLiteral",(t,e)=>{Rd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Uy(t,n,o,r)});function NA(t,e){return new hv({type:"template_literal",parts:t,...ne.normalizeParams(e)})}a(NA,"templateLiteral");var gv=w("ZodLazy",(t,e)=>{$d.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>o_(t,n,o,r),t.unwrap=()=>t._zod.def.getter()});function yv(t){return new gv({type:"lazy",getter:t})}a(yv,"lazy");var _v=w("ZodPromise",(t,e)=>{Cd.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>n_(t,n,o,r),t.unwrap=()=>t._zod.def.innerType});function zA(t){return new _v({type:"promise",innerType:t})}a(zA,"promise");var vv=w("ZodFunction",(t,e)=>{Od.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Fy(t,n,o,r)});function DA(t){return new vv({type:"function",input:Array.isArray(t?.input)?W_(t?.input):t?.input??Vc(ti()),output:t?.output??ti()})}a(DA,"_function");var Wc=w("ZodCustom",(t,e)=>{ks.init(t,e),Ne.init(t,e),t._zod.processJSONSchema=(n,o,r)=>Ly(t,n,o,r)});function UA(t){let e=new Ye({check:"custom"});return e._zod.check=t,e}a(UA,"check");function MA(t,e){return Ec(Wc,t??(()=>!0),e)}a(MA,"custom");function bv(t,e={}){return rp(Wc,t,e)}a(bv,"refine");function Sv(t){return np(t)}a(Sv,"superRefine");var jA=op,LA=ip;function FA(t,e={}){let n=new Wc({type:"custom",check:"custom",fn:a(o=>o instanceof t,"fn"),abort:!0,...ne.normalizeParams(e)});return n._zod.bag.Class=t,n._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}a(FA,"_instanceof");var BA=a((...t)=>ap({Codec:Yp,Boolean:la,String:sa},...t),"stringbool");function qA(t){let e=yv(()=>Hp([Tp(t),$_(),k_(),U_(),Vc(e),J_(Tp(),e)]));return e}a(qA,"json");function VA(t,e){return Fc(Wp(t),e)}a(VA,"preprocess");var S1={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 E1(t){ct({customError:t})}a(E1,"setErrorMap");function P1(){return ct().customError}a(P1,"getErrorMap");var Ev;Ev||(Ev={});var ce={...Uc,...bp,iso:ia},x1=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 T1(t,e){let n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}a(T1,"detectVersion");function A1(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return e.rootSchema;let o=e.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1];if(!r||!e.defs[r])throw new Error(`Reference not found: ${t}`);return e.defs[r]}throw new Error(`Reference not found: ${t}`)}a(A1,"resolveRef");function ZA(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return ce.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 r=t.$ref;if(e.refs.has(r))return e.refs.get(r);if(e.processing.has(r))return ce.lazy(()=>{if(!e.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return e.refs.get(r)});e.processing.add(r);let i=A1(r,e),s=Ut(i,e);return e.refs.set(r,s),e.processing.delete(r),s}if(t.enum!==void 0){let r=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&r.length===1&&r[0]===null)return ce.null();if(r.length===0)return ce.never();if(r.length===1)return ce.literal(r[0]);if(r.every(s=>typeof s=="string"))return ce.enum(r);let i=r.map(s=>ce.literal(s));return i.length<2?i[0]:ce.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return ce.literal(t.const);let n=t.type;if(Array.isArray(n)){let r=n.map(i=>{let s={...t,type:i};return ZA(s,e)});return r.length===0?ce.never():r.length===1?r[0]:ce.union(r)}if(!n)return ce.any();let o;switch(n){case"string":{let r=ce.string();if(t.format){let i=t.format;i==="email"?r=r.check(ce.email()):i==="uri"||i==="uri-reference"?r=r.check(ce.url()):i==="uuid"||i==="guid"?r=r.check(ce.uuid()):i==="date-time"?r=r.check(ce.iso.datetime()):i==="date"?r=r.check(ce.iso.date()):i==="time"?r=r.check(ce.iso.time()):i==="duration"?r=r.check(ce.iso.duration()):i==="ipv4"?r=r.check(ce.ipv4()):i==="ipv6"?r=r.check(ce.ipv6()):i==="mac"?r=r.check(ce.mac()):i==="cidr"?r=r.check(ce.cidrv4()):i==="cidr-v6"?r=r.check(ce.cidrv6()):i==="base64"?r=r.check(ce.base64()):i==="base64url"?r=r.check(ce.base64url()):i==="e164"?r=r.check(ce.e164()):i==="jwt"?r=r.check(ce.jwt()):i==="emoji"?r=r.check(ce.emoji()):i==="nanoid"?r=r.check(ce.nanoid()):i==="cuid"?r=r.check(ce.cuid()):i==="cuid2"?r=r.check(ce.cuid2()):i==="ulid"?r=r.check(ce.ulid()):i==="xid"?r=r.check(ce.xid()):i==="ksuid"&&(r=r.check(ce.ksuid()))}typeof t.minLength=="number"&&(r=r.min(t.minLength)),typeof t.maxLength=="number"&&(r=r.max(t.maxLength)),t.pattern&&(r=r.regex(new RegExp(t.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?ce.number().int():ce.number();typeof t.minimum=="number"&&(r=r.min(t.minimum)),typeof t.maximum=="number"&&(r=r.max(t.maximum)),typeof t.exclusiveMinimum=="number"?r=r.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(r=r.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?r=r.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(r=r.lt(t.maximum)),typeof t.multipleOf=="number"&&(r=r.multipleOf(t.multipleOf)),o=r;break}case"boolean":{o=ce.boolean();break}case"null":{o=ce.null();break}case"object":{let r={},i=t.properties||{},s=new Set(t.required||[]);for(let[l,p]of Object.entries(i)){let f=Ut(p,e);r[l]=s.has(l)?f:f.optional()}if(t.propertyNames){let l=Ut(t.propertyNames,e),p=t.additionalProperties&&typeof t.additionalProperties=="object"?Ut(t.additionalProperties,e):ce.any();if(Object.keys(r).length===0){o=ce.record(l,p);break}let f=ce.object(r).passthrough(),y=ce.looseRecord(l,p);o=ce.intersection(f,y);break}if(t.patternProperties){let l=t.patternProperties,p=Object.keys(l),f=[];for(let m of p){let h=Ut(l[m],e),_=ce.string().regex(new RegExp(m));f.push(ce.looseRecord(_,h))}let y=[];if(Object.keys(r).length>0&&y.push(ce.object(r).passthrough()),y.push(...f),y.length===0)o=ce.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=ce.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=ce.intersection(m,y[h]);o=m}break}let u=ce.object(r);t.additionalProperties===!1?o=u.strict():typeof t.additionalProperties=="object"?o=u.catchall(Ut(t.additionalProperties,e)):o=u.passthrough();break}case"array":{let r=t.prefixItems,i=t.items;if(r&&Array.isArray(r)){let s=r.map(l=>Ut(l,e)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ut(i,e):void 0;u?o=ce.tuple(s).rest(u):o=ce.tuple(s),typeof t.minItems=="number"&&(o=o.check(ce.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(ce.maxLength(t.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>Ut(l,e)),u=t.additionalItems&&typeof t.additionalItems=="object"?Ut(t.additionalItems,e):void 0;u?o=ce.tuple(s).rest(u):o=ce.tuple(s),typeof t.minItems=="number"&&(o=o.check(ce.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(ce.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ut(i,e),u=ce.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=ce.array(ce.any());break}default:throw new Error(`Unsupported type: ${n}`)}return t.description&&(o=o.describe(t.description)),t.default!==void 0&&(o=o.default(t.default)),o}a(ZA,"convertBaseSchema");function Ut(t,e){if(typeof t=="boolean")return t?ce.any():ce.never();let n=ZA(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=>Ut(p,e)),l=ce.union(u);n=o?ce.intersection(n,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ut(p,e)),l=ce.xor(u);n=o?ce.intersection(n,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=o?n:ce.any();else{let u=o?n:Ut(t.allOf[0],e),l=o?0:1;for(let p=l;p<t.allOf.length;p++)u=ce.intersection(u,Ut(t.allOf[p],e));n=u}t.nullable===!0&&e.version==="openapi-3.0"&&(n=ce.nullable(n)),t.readOnly===!0&&(n=ce.readonly(n));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in t&&(r[u]=t[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in t&&(r[u]=t[u]);for(let u of Object.keys(t))x1.has(u)||(r[u]=t[u]);return Object.keys(r).length>0&&e.registry.add(n,r),n}a(Ut,"convertSchema");function HA(t,e){if(typeof t=="boolean")return t?ce.any():ce.never();let n=T1(t,e?.defaultTarget),o=t.$defs||t.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??wt};return Ut(t,r)}a(HA,"fromJSONSchema");var Pv={};nr(Pv,{bigint:()=>O1,boolean:()=>R1,date:()=>C1,number:()=>I1,string:()=>w1});function w1(t){return Ls(sa,t)}a(w1,"string");function I1(t){return cc(ua,t)}a(I1,"number");function R1(t){return dc(la,t)}a(R1,"boolean");function O1(t){return pc(da,t)}a(O1,"bigint");function C1(t){return gc(qc,t)}a(C1,"date");ct(Ns());var D5=Qp.enum(["active","out_of_credits","rejected","unreachable"]);var GA=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(GA||{}),xv=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(xv||{}),Tv=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Tv||{});var Av=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Av||{});var wv=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(wv||{});var $1=C({mode:_e(GA),value:Te()}),k1=C({auth:q(v()),fields:Ae(v(),$1)}),N1=C({pieceName:v(),pieceVersion:v(),actionName:v(),predefinedInput:q(k1)}),z1=C({type:ge("PIECE"),toolName:v().check(mt(1)),pieceMetadata:N1}),D1=C({type:ge("none")}),U1=C({type:ge("access_token"),accessToken:v()}),M1=C({type:ge("api_key"),apiKey:v(),apiKeyHeader:v()}),j1=C({type:ge("headers"),headers:Ae(v(),v())}),L1=so("type",[D1,U1,M1,j1]),WA=C({type:ge("FLOW"),toolName:v().check(mt(1)),externalFlowId:v(),flowDisplayName:q(v())}),JA=C({type:ge("MCP"),toolName:v().check(mt(1)),serverUrl:dT(),protocol:_e(Tv),auth:L1}),KA=C({type:ge("KNOWLEDGE_BASE"),toolName:v().check(mt(1)),sourceType:_e(xv),sourceId:v(),sourceName:v()}),F1=so("type",[z1,WA,JA,KA]),B1=C({displayName:v(),description:q(v()),type:_e(Av)}),XA=C({type:ge("MARKDOWN"),markdown:v()}),pa={type:ge("TOOL_CALL"),input:ut(Ae(v(),Te())),output:q(Te()),toolName:v(),status:_e(wv),toolCallId:v(),startTime:v(),endTime:q(v())},l9=C(pa),YA=so("toolCallType",[C({...pa,toolCallType:ge("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),C({...pa,toolCallType:ge("FLOW"),displayName:v(),externalFlowId:v()}),C({...pa,toolCallType:ge("MCP"),displayName:v(),serverUrl:v()}),C({...pa,toolCallType:ge("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),C({...pa,toolCallType:ge("UNKNOWN"),displayName:v()})]),q1=ke([XA,YA]);var V1=10800*1e3,Z1=900*1e3;var Rv=(n=>(n.IMAGE="image",n.TEXT="text",n))(Rv||{}),$n=C({apiKey:v()}),G1=$n,W1=C({apiKey:v(),apiKeyHash:v()}),J1=$n,K1=$n,X1=$n,Y1=$n,Q1=$n,ej=$n,tj=$n,rw=C({serviceAccountJson:v().check(mt(1))}),nw=C({accessKeyId:v().check(mt(1)),secretAccessKey:v().check(mt(1))}),rj=C({}),nj=C({}),oj=C({}),ij=C({}),aj=C({}),sj=C({}),Ov=C({modelId:v(),modelName:v(),modelType:_e(Rv)}),ow=C({apiKeyHeader:v(),baseUrl:v(),models:be(Ov),defaultHeaders:q(Ae(v(),v())),apiStyle:q(_e(["chat","responses"]))}),iw=C({accountId:v(),gatewayId:v(),models:be(Ov),vertexProject:q(v()),vertexRegion:q(v())}),aw=C({resourceName:v(),apiVersion:uo(co(t=>typeof t=="string"&&t.trim().length===0?void 0:t),q(v()))}),sw=C({region:v().check(mt(1))}),cw=C({project:v().check(kt(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:v().check(kt(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:be(Ov)}),uw=C({}),cj=ke([G1,X1,Y1,Q1,ej,K1,J1,W1,nw,rw,tj]),lw=ke([ow,iw,aw,cw,sw,rj,oj,ij,aj,nj,sj,uw]),uj=C({id:v(),name:v(),type:_e(Rv)}),lj=C({id:v(),name:v(),provider:_e(oa),config:lw,enabledForChat:Be()}),dj=C({provider:_e(oa),name:v(),enabledForChat:Be(),keys:be(C({id:v(),name:v()}))}),pj=C({provider:_e(oa),configId:v(),config:lw,auth:cj,platformId:v()});var m9={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},QA=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],fj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],dw=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Iv=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],mj=["grok-4.20"],h9=dw.map(t=>`anthropic/${t}`),hj={openai:QA,anthropic:fj,google:Iv,vertex:Iv,activepieces:[...dw.map(t=>`anthropic/${t}`),...QA.map(t=>`openai/${t}`),...Iv.map(t=>`google/${t}`),...mj.map(t=>`x-ai/${t}`)]};var ew=128e3,gj={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function yj({provider:t}){return t?gj[t]??ew:ew}a(yj,"getMaxContextTokens");var tw={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"},_j={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},vj=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),bj={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 Nt(t){return{chatModels:hj[t],maxContextTokens:yj({provider:t}),defaultEmbeddingModel:tw[t],supportsEmbedding:tw[t]!==void 0,supportsImageGeneration:!vj.has(t),webSearch:_j[t]}}a(Nt,"buildProviderCapabilities");var Sj={openai:Nt("openai"),anthropic:Nt("anthropic"),openrouter:Nt("openrouter"),azure:Nt("azure"),google:Nt("google"),"cloudflare-gateway":Nt("cloudflare-gateway"),custom:Nt("custom"),bedrock:Nt("bedrock"),vertex:Nt("vertex"),mistral:Nt("mistral"),activepieces:Nt("activepieces"),xai:Nt("xai"),deepseek:Nt("deepseek"),zai:Nt("zai"),qwen:Nt("qwen"),minimax:Nt("minimax"),moonshot:Nt("moonshot")};var Ej=C({base64Url:v(),fileName:v(),extension:q(v())}),Pj=C({mimeType:v(),url:v(),fileName:q(v())}),Cv=ke([Ej,Pj]);var xj=ke([C({type:ge("file"),value:Cv}),C({type:ge("markdown"),value:v(),files:q(be(Cv))})]),Tj=C({sessionId:v(),message:v(),files:q(be(v()))});var fw=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(fw||{}),mw=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(mw||{}),$v=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))($v||{});var Aj=ke([C({...xr,name:v(),externalId:v(),type:ge("STATIC_DROPDOWN"),tableId:v(),projectId:v(),data:C({options:be(C({value:v()}))})}),C({...xr,name:v(),externalId:v(),type:ke([ge("TEXT"),ge("NUMBER"),ge("DATE"),ge("DATETIME")]),tableId:v(),projectId:v()})]),wj=C({...xr,name:v(),folderId:ut(v()),projectId:v(),externalId:v(),status:m_(mw),trigger:m_(fw)}),Ij=C({...xr,tableId:v(),projectId:v(),cells:Ae(v(),C({updated:v(),created:v(),value:Te(),fieldName:v()}))}),Rj=C({events:be(_e($v)),webhookUrl:v(),flowId:v()}),Oj=C({fields:be(C({id:v(),name:v()})),rows:be(Ae(v(),v())),name:v()}),Cj=C({projectId:v(),limit:q(Ac.number()),cursor:q(v()),name:q(v()),externalIds:_p(v()),folderId:q(v()),folderIds:_p(v())}),$j=C({records:be(be(C({fieldId:v(),value:gw()}))),tableId:v()}),kj=C({cells:q(be(C({fieldId:v(),value:gw()}))),tableId:v(),agentUpdate:q(Be())}),hw=so("operator",[ni("eq"),ni("neq"),ni("gt"),ni("gte"),ni("lt"),ni("lte"),ni("co"),pw("exists"),pw("not_exists")]),Nj=C({tableId:v(),limit:q(Ac.number()),cursor:q(v()),filters:_p(hw)});function gw(){return uo(co(t=>t==null?t:String(t)),Tc(v()))}a(gw,"coerceToString");function ni(t){return C({fieldId:v(),operator:ge(t),value:v()})}a(ni,"valueFilter");function pw(t){return C({fieldId:v(),operator:ge(t)})}a(pw,"existenceFilter");var zj=C({status:q(It()),body:q(Te()),headers:q(Ae(v(),v()))}),Dj=C({...xr,deleted:ut(mo),ownerId:v(),displayName:v(),platformId:v(),externalId:ut(v())});var yw=C({name:v(),description:q(v()),type:v(),required:Be()}),Uj=C({pieceName:v(),triggerName:v(),input:C({toolName:v(),toolDescription:v(),inputSchema:be(yw),returnsResponse:Be()})});var _w="^[0-9]+\\.[0-9]+\\.[0-9]+$",N9=new RegExp(_w),jj="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",z9=v().check(kt(new RegExp(_w))),D9=v().check(kt(new RegExp(jj))),Lj=C({packageType:ge("ARCHIVE"),pieceType:_e(ta),pieceName:v(),pieceVersion:v(),archiveId:v(),platformId:v()}),vw=C({packageType:ge("REGISTRY"),pieceType:ge("OFFICIAL"),pieceName:v(),pieceVersion:v()}),bw=C({packageType:ge("REGISTRY"),pieceType:ge("CUSTOM"),pieceName:v(),pieceVersion:v(),platformId:v()}),U9=ke([vw,bw]),M9=ke([Lj,vw,bw]);var Fj=so("type",[C({type:ge("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),C({type:ge("INTERVAL"),intervalMs:pT().check(Et(6e4))})]),j9=C({...xr,type:_e(po),projectId:v(),flowId:v(),triggerName:v(),schedule:ut(Fj),flowVersionId:v(),pieceName:v(),pieceVersion:v(),deleted:ut(v()),simulate:Be()}),Sw=(x=>(x.UNKNOWN="UNKNOWN",x.FLOW_RUN_LOG="FLOW_RUN_LOG",x.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",x.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",x.FLOW_STEP_FILE="FLOW_STEP_FILE",x.SAMPLE_DATA="SAMPLE_DATA",x.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",x.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",x.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",x.PROJECT_RELEASE="PROJECT_RELEASE",x.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",x.PLATFORM_ASSET="PLATFORM_ASSET",x.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",x.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",x.KNOWLEDGE_BASE="KNOWLEDGE_BASE",x.FLOW_BUNDLE="FLOW_BUNDLE",x.PREWARM_SCOPE="PREWARM_SCOPE",x))(Sw||{}),Ew=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(Ew||{}),Pw=(n=>(n.S3="S3",n.DB="DB",n))(Pw||{}),L9=C({...xr,projectId:ut(v()),platformId:ut(v()),type:_e(Sw),compression:_e(Ew),data:q(Te()),location:_e(Pw),size:ut(It()),fileName:ut(v()),s3Key:ut(v()),metadata:ut(Ae(v(),v()))}),xw=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(xw||{}),Tw=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(Tw||{}),F9=C({id:v(),email:v(),firstName:v(),status:_e(Tw),externalId:ut(v()),platformId:ut(v()),platformRole:_e(xw),lastName:v(),created:mo,updated:mo,lastActiveDate:ut(mo),imageUrl:ut(v())});var kv=C({...Le.shape,...we(Ae(v(),Te()),"OBJECT").shape});var Nv=C({...Le.shape,formatProperty:q(v()),...we(v(),"RICH_TEXT").shape});var Rw=C({...Le.shape,...we(v(),"COLOR").shape});var zv=ke([ar,In,Nv,hp,On,sr,Rn,c_,wc,l_,Cn,Oc,kv,Cc,Rc,u_,Ic,Rw]),Re={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 en=C({displayName:v(),description:q(v()),hasConnectionIdentifier:q(Be())});var Ow=C({username:v(),password:v()}),Dv=C({...en.shape,username:C({displayName:v(),description:q(v())}),password:C({displayName:v(),description:q(v())}),...we(Ow,"BASIC_AUTH").shape});var Zj=Ae(v(),ke([ar,In,Cn,On,sr])),Uv=C({...en.shape,props:Zj,...we(Te(),"CUSTOM_AUTH").shape});var oi=C({...en.shape,...we(C({auth:v()}),"SECRET_TEXT").shape});var Hj=Ae(v(),ke([ar,In,oi,Cn,On,sr,Rn,hp])),Cw=C({...en.shape,props:Hj,...we(Te(),"OIDC").shape});var Mv=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(Mv||{}),$w=ke([ar,oi,sr]),kw=Ae(v(),$w),Gj=C({props:q(Ae(v(),$w)),authUrl:v(),tokenUrl:v(),scope:be(v()),prompt:q(ke([ge("none"),ge("consent"),ge("login"),ge("omit")])),pkce:q(Be()),pkceMethod:q(ke([ge("plain"),ge("S256")])),authorizationMethod:q(_e(Mv)),grantType:q(ke([_e(kc),ge(d_)])),extra:q(Ae(v(),v()))}),Nw=C({access_token:v(),props:q(kw),data:Ae(v(),xc())}),jv=C({...en.shape,...Gj.shape,...we(Nw,"OAUTH2").shape});var fa=ke([Dv,Uv,Cw,jv,oi]),Jc="Connection",Lv={SecretText(t){return{...t,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(t){return{...t,valueSchema:void 0,type:"OAUTH2",displayName:t.displayName||Jc}},BasicAuth(t){return{...t,valueSchema:void 0,type:"BASIC_AUTH",displayName:t.displayName||Jc,required:!0}},CustomAuth(t){return{...t,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:t.displayName||Jc}},OIDC(t){return{...t,valueSchema:void 0,type:"OIDC",displayName:t.displayName||Jc}},None(){}};var xY={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 Wj=C({...Le.shape,...we(Te(),"CUSTOM").shape,code:v()});var Jj=ke([zv,fa]),Fv=Ae(v(),Jj),ZY=Ae(v(),zv);var zw=ke([C({strategy:ge("CRON"),cronExpression:v()}),C({strategy:ge("NONE")})]),ma=class{constructor(e,n,o,r,i,s,u,l,p,f,y,m,h,_,E,P,x,z,M,K,Z){this.name=e;this.displayName=n;this.description=o;this.requireAuth=r;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=E;this.sampleData=P;this.testStrategy=x;this.outputSchema=z;this.aiMetadata=M;this.classification=K;this.propertyGroups=Z}static{a(this,"ITrigger")}},Dw=a(t=>{switch(t.type){case"WEBHOOK":return new ma(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 ma(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 ma(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 ma(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,ht(t.sampleData)&&ht(t.test)?"SIMULATION":"TEST_FUNCTION",t.outputSchema,t.aiMetadata,t.classification,t.propertyGroups)}},"createTrigger");var Uw="2",ef="0.82.0";var Bv=class{constructor(e,n,o,r,i,s,u,l,p=ef,f,y="",m){this.displayName=e;this.logoUrl=n;this.authors=o;this.events=r;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:Uw}),"getContextInfo");(!Xj(p)||Yj(p,ef))&&(this.minimumSupportedRelease=ef),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:Kj(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}},jw=a(t=>{if(t.auth&&Array.isArray(t.auth)&&!t.auth.every((n,o,r)=>o===r.findIndex(i=>i.type===n.type)))throw new Error("Auth properties must be unique by type");return new Bv(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 Kj(t){if(t!==void 0)return Array.isArray(t)?t.map(Mw):Mw(t)}a(Kj,"withConnectionIdentifierFlag");function Mw(t){return{...t,hasConnectionIdentifier:t.getConnectionIdentifier!==void 0}}a(Mw,"flagConnectionIdentifier");function Xj(t){return/^\d+\.\d+\.\d+$/.test(t)}a(Xj,"isValidSimpleSemver");function Yj(t,e){let[n,o,r]=t.split(".").map(Number),[i,s,u]=e.split(".").map(Number);return n!==i?n<i:o!==s?o<s:r<u}a(Yj,"isSemverLessThan");var Qj=q(Ae(v(),Ae(v(),v()))),Lw=C({id:q(v()),name:v(),displayName:v(),logoUrl:v(),description:v(),authors:be(v()),platformId:q(v()),directoryPath:q(v()),auth:q(ke([fa,be(fa)])),version:v(),categories:q(be(_e(ra))),minimumSupportedRelease:q(v()),maximumSupportedRelease:q(v()),deprecated:q(Be()),i18n:Qj}),eL=_e(["human","ai","both"]),Fw=C({description:q(v()),idempotent:q(Be())}),Bw=_e(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var tL=_e(["tabs","section","summary","builder","footer"]),qw=C({key:v(),display:tL,label:q(v()),description:q(v()),icon:q(v()),props:be(v())}),Vw=C({name:v(),displayName:v(),description:v(),props:Fv,propertyGroups:q(be(qw)),requireAuth:Be(),errorHandlingOptions:q(s_),outputSchema:q(fp()),audience:q(eL),aiMetadata:q(Fw),classification:q(Bw)}),Zw=C({name:v(),displayName:v(),description:v(),props:Fv,propertyGroups:q(be(qw)),errorHandlingOptions:q(s_),type:_e(po),sampleData:Te(),handshakeConfiguration:q(fp()),renewConfiguration:q(zw),testStrategy:_e(zc),outputSchema:q(fp()),aiMetadata:q(Fw),classification:q(Bw)}),rL=C({...Lw.shape,actions:Ae(v(),Vw),triggers:Ae(v(),Zw)}),nL=C({...Lw.shape,actions:It(),triggers:It(),suggestedActions:q(be(Vw)),suggestedTriggers:q(be(Zw))}),Hw=C({projectUsage:It(),pieceType:_e(ta),packageType:_e($c),platformId:q(v()),archiveId:q(v())}),W7=C({...rL.shape,...Hw.shape}),J7=C({...nL.shape,...Hw.shape}),K7=C({name:v(),version:v()});var oL=St(require("path")),iL=St(require("fs/promises"));var ga=require("node:stream");var tf=class{constructor(e,n){this.baseUrl=e;this.authenticationConverter=n}static{a(this,"BaseHttpClient")}getUrl(e){let n=new URL(`${this.baseUrl}${e.url}`),o=`${n.origin}${n.pathname}`,r=new URLSearchParams;return n.searchParams.forEach((i,s)=>{r.append(s,i)}),{urlWithoutQueryParams:o,queryParams:r}}getHeaders(e){let n={Accept:"application/json"};return e.authentication&&this.populateAuthentication(e.authentication,n),e.body&&(e.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),e.headers&&(n={...n,...e.headers}),n}populateAuthentication(e,n){this.authenticationConverter.convert(e,n)}};var rf=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(e=new qv,n=new Vv){this.converters={BEARER_TOKEN:e,BASIC:n}}convert(e,n){return this.converters[e.type].convert(e,n)}},qv=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(e,n){return n.Authorization=`Bearer ${e.token}`,n}},Vv=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(e,n){let o=`${e.username}:${e.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var Kc=class extends Error{constructor(n,o){let r=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:n}}));this.requestBody=n;this.status=r,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 Gw({error:t,requestBody:e}){return t instanceof Kc?t.errorMessage():{response:{status:0,body:t instanceof Error?t.message:String(t)},request:{body:e}}}a(Gw,"toFailsafeOutput");var ha=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(ha||{});var nf=class extends tf{static{a(this,"FetchHttpClient")}constructor(e="",n=new rf){super(e,n)}async sendRequest(e,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(e),i=this.getHeaders(e),s=e.queryParams??{};for(let[M,K]of Object.entries(s))r.append(M,K);let u=r.toString(),l=u?`${o}?${u}`:o,p=e.responseType??"json",f=e.followRedirects??!0,y=e.retries??0,{body:m,extraHeaders:h,isStream:_}=of(e.method)?aL(e.body,i):{body:void 0,extraHeaders:{},isStream:!1},E=cL({...i,...h}),P=await sL(async()=>{let M=new AbortController,K=e.timeout&&e.timeout>0?setTimeout(()=>M.abort(),e.timeout):void 0;try{let Z={method:e.method.toString(),headers:E,body:m,redirect:f?"follow":"manual",signal:M.signal};return _&&(Z.duplex="half"),n?.dispatcher!==void 0&&(Z.dispatcher=n.dispatcher),await fetch(l,Z)}finally{K!==void 0&&clearTimeout(K)}},_?0:y),x=f?300:400;if(P.status<200||P.status>=x){let M=await Ww(P,p==="stream"?"text":p),K=new Kc(e.body,{status:P.status,responseBody:M});throw console.error("[HttpClient#(sanitized error message)] Request failed:",K),K}let z=await Ww(P,p);return{status:P.status,headers:uL(P.headers),body:z}}};function of(t){return t!=="GET"&&t!=="HEAD"}a(of,"acceptsRequestBody");function aL(t,e){if(Kw(t))return{body:void 0,extraHeaders:{},isStream:!1};if(dL(t)){let o=lL(t);if(o!==null)return{body:o,extraHeaders:t.getHeaders(),isStream:!1};let r=new ga.PassThrough;return t.on("error",i=>r.destroy(i)),t.pipe(r),{body:r,extraHeaders:t.getHeaders(),isStream:!0}}return t instanceof ga.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(aL,"serializeBody");async function Ww(t,e){switch(e){case"arraybuffer":return Buffer.from(await t.arrayBuffer());case"stream":return Kw(t.body)?ga.Readable.from([]):ga.Readable.fromWeb(t.body);case"blob":return await t.blob();case"text":return await t.text();default:{let n=await t.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}a(Ww,"parseResponseBody");async function sL(t,e){let n;for(let o=0;o<=e;o++)try{let r=await t();if(r.status>=500&&o<e){await Jw(o);continue}return r}catch(r){if(n=r,o<e){await Jw(o);continue}throw r}throw n}a(sL,"sendWithRetries");function Jw(t){let e=Math.min(1e3*2**t,3e4);return new Promise(n=>setTimeout(n,e))}a(Jw,"backoff");function cL(t){let e=new Map;for(let[n,o]of Object.entries(t))o!==void 0&&e.set(n.toLowerCase(),[n,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(e.values())}a(cL,"normalizeHeaders");function uL(t){let e={};return t.forEach((n,o)=>{e[o]=n}),e}a(uL,"toHttpHeaders");function lL(t){if(!t.hasKnownLength()||t.getLengthSync()>pL)return null;let{data:e}=p_(()=>t.getBuffer());return e}a(lL,"bufferFormDataIfSafe");function dL(t){return typeof t=="object"&&t!==null&&typeof t.getHeaders=="function"&&typeof t.pipe=="function"&&typeof t.on=="function"}a(dL,"isNodeFormData");function Kw(t){return t==null}a(Kw,"isNil");var pL=100*1024*1024;var ho=new nf;var QF=St(require("fs")),eO=St(QR());var eB={"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 tB(t){let e=t.split(";")[0].trim().toLowerCase();return eB[e]??""}a(tB,"contentTypeToExtension");var rB=a(({baseUrl:t,relativePath:e})=>{let n=t.endsWith("/")?t:`${t}/`,o=e.startsWith("/")?e.slice(1):e;return`${n}${o}`},"joinBaseUrlWithRelativePath"),nB=a((t,e)=>{let n="https://api.example.com";try{let o=e?t(e):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??n}catch{return n}},"getBaseUrlForDescription");function tO({auth:t,baseUrl:e,authMapping:n,description:o,displayName:r,name:i,props:s,extraProps:u,authLocation:l="headers",classification:p="WRITE"}){return lo({audience:"human",name:i||"custom_api_call",classification:p,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:t,requireAuth:!!t,props:{url:Re.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:Re.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${nB(e,f)}`,required:!0,placeholder:"/resource",defaultValue:f?e(f):"",...s?.url??{}})}),"props")}),method:Re.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(ha).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:Re.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:Re.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:Re.Dropdown({auth:t,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>of(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:Re.DynamicProperties({auth:t,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:y})=>{if(!f||!of(y))return{};let m=f,h={};switch(m){case"none":break;case"json":h.data=Re.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=Re.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=Re.Array({displayName:"Form Data",required:!0,properties:{fieldName:Re.ShortText({displayName:"Field Name",required:!0}),fieldType:Re.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:Re.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:Re.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:Re.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:Re.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:Re.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:Re.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:E,body_type:P,failsafe:x,timeout:z,response_is_binary:M,followRedirects:K}=f.propsValue;yp(y,"Method"),yp(m,"URL");let Z=ht(n)?{}:await n(f.auth,f.propsValue),J=m.url,ee=J.startsWith("http://")||J.startsWith("https://")?J:rB({baseUrl:e(f.auth),relativePath:J}),ae={method:y,url:ee,headers:{...h??{},...l==="headers"||!ht(l)?Z:{}},queryParams:{...l==="queryParams"?Z:{},..._??{}},timeout:z?z*1e3:0,followRedirects:K};if(M&&(ae.responseType="arraybuffer"),E)if(P&&P!=="none"){let Y=E.data;if(P==="form_data"){let ze=Y,se=new eO.default;for(let{fieldName:G,fieldType:H,textFieldValue:re,fileFieldValue:X}of ze)H==="text"&&!Dc(re)?se.append(G,re):H==="file"&&!Dc(X)&&se.append(G,X.data,{filename:X?.filename});ae.body=se,ae.headers={...ae.headers,...se.getHeaders()}}else ae.body=Y}else P||(ae.body=E);try{let Y=await ho.sendRequest(ae);return await oB(f.files,Y.body,Y.status,Y.headers,M)}catch(Y){if(x)return Gw({error:Y,requestBody:ae.body});throw Y}},"run")})}a(tO,"createCustomApiCallAction");var oB=a(async(t,e,n,o,r)=>{let i;if(r&&iB(e)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=tB(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:n,headers:o,body:i}},"handleBinaryResponse"),iB=a(t=>t instanceof ArrayBuffer||Buffer.isBuffer(t),"isBinaryBody");var tu={async poll(t,{store:e,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:s}){switch(t.strategy){case 0:{let u=await e.get("lastPoll");if(ht(u))throw new Error("lastPoll doesn't exist in the store.");let l=await t.items({store:e,auth:n,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:n,propsValue:o,lastItemId:u,files:i,server:s}),p=l.findIndex(m=>m.id===u),f=[];ht(u)||p==-1?f=l??[]:f=l?.slice(0,p)??[],ht(r)||(f=f.slice(-r));let y=f?.[0]?.id;return ht(y)||await e.put("lastItem",y),f.map(m=>m.data)}}},async onEnable(t,{store:e,auth:n,propsValue:o,server:r,isRepublish:i}){switch(t.strategy){case 0:{if(i&&!ht(await e.get("lastPoll")))break;await e.put("lastPoll",Date.now());break}case 1:{if(i&&!ht(await e.get("lastItem")))break;let u=(await t.items({store:e,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;ht(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:n,store:o,files:r,server:i}){let s=[];switch(t.strategy){case 0:{s=await t.items({store:o,auth:e,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{s=await t.items({store:o,auth:e,propsValue:n,lastItemId:null,files:r,server:i});break}}return aB(s.map(u=>u.data))}};function aB(t){return t.length<=5?t:t.slice(0,5)}a(aB,"getFirstFiveOrAll");var _o={baseUrl:"https://people.googleapis.com/v1/people"};var Br=Lv.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"]});var sB=[{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"}],cB=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],uB=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],lB=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],dB=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],pB=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],fB=[{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"}]}],mf=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:sB},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:cB},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:uB},{key:"organizations",label:"Organizations",labelKey:"name",listItems:lB},{key:"photos",label:"Photos",labelKey:"url",listItems:dB},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:pB},{key:"metadata",label:"Metadata",children:fB}],rO={fields:mf},nO={fields:mf},oO={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:mf}]}]},iO={fields:mf};var sO=lo({auth:Br,name:"add_contact",classification:"WRITE",description:"Add a contact to a Google Contacts account",audience:"both",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:rO,props:{firstName:Re.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:Re.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:Re.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:Re.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:Re.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:Re.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:Re.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}]},n={};t.propsValue.email&&(n.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(n.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(n.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]),e={...e,...n};let o={method:"POST",url:`${_o.baseUrl}:createContact`,body:e,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token}};return(await ho.sendRequest(o)).body}});var cO=lo({auth:Br,name:"update_contact",classification:"WRITE",description:"Update a contact in Google Contacts account.",audience:"both",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:nO,props:{resourceName:Re.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:Re.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:Re.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:Re.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:Re.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:Re.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:Re.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:Re.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:Re.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:Re.ShortText({displayName:"Phone Number",description:"The phone number of the contact",required:!1})},async run(t){let e=t.propsValue.resourceName.substring(6),n={etag:t.propsValue.etag},o={updatePersonFields:t.propsValue.updatePersonFields.join(",")};(t.propsValue.firstName||t.propsValue.middleName||t.propsValue.lastName)&&(n.names=[{givenName:t.propsValue.firstName||void 0,middleName:t.propsValue.middleName||void 0,familyName:t.propsValue.lastName||void 0}]),t.propsValue.email&&(n.emailAddresses=[{value:t.propsValue.email}]),t.propsValue.phoneNumber&&(n.phoneNumbers=[{value:t.propsValue.phoneNumber}]),(t.propsValue.company||t.propsValue.jobTitle)&&(n.organizations=[{name:t.propsValue.company||void 0,title:t.propsValue.jobTitle||void 0}]);let r={method:"PATCH",url:`${_o.baseUrl}${e}:updateContact`,body:n,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:o};return(await ho.sendRequest(r)).body}});var uO=lo({auth:Br,name:"search_contact",classification:"SEARCH",description:"Search contacts in Google Contacts account.",audience:"both",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:oO,props:{query:Re.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:Re.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:Re.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 n={method:"GET",url:`${_o.baseUrl}:searchContacts`,authentication:{type:"BEARER_TOKEN",token:t.auth.access_token},queryParams:e};return(await ho.sendRequest(n)).body}});var $N=St(ON()),kN=St(ku()),NN=St(CN());var Jm={strategy:0,items:a(async({store:t,auth:e})=>{let n=new kN.OAuth2Client;n.setCredentials(e);let o=(0,$N.people)({version:"v1",auth:n}),r,i=[];do{let s=await o.people.connections.list({resourceName:"people/me",pageToken:r,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 u of s.data.connections||[])u.metadata?.deleted!==!0&&i.push({data:u,epochMilliSeconds:(0,NN.default)(u.metadata?.sources?.[0].updateTime).valueOf()});r=s.data.nextPageToken}while(r);return i},"items")},zN=Dw({auth:Br,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:iO,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 tu.onEnable(Jm,{store:t.store,auth:t.auth,propsValue:{}})},async onDisable(t){return await tu.onEnable(Jm,{store:t.store,auth:t.auth,propsValue:{}})},async run(t){return await tu.poll(Jm,{store:t.store,auth:t.auth,propsValue:{},files:t.files})},test:a(async t=>await tu.test(Jm,{store:t.store,auth:t.auth,propsValue:{},files:t.files}),"test")});var nG=jw({minimumSupportedRelease:"0.30.0",logoUrl:"https://cdn.activepieces.com/pieces/google-contacts.png",categories:["SALES_AND_CRM"],actions:[sO,cO,uO,tO({baseUrl:a(()=>_o.baseUrl,"baseUrl"),auth:Br,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:[zN],auth:Br});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 E in l)E==="$ref"||E==="allOf"||E in p||delete l[E];if(h.$ref&&m.def)for(let E in l)E==="$ref"||E==="allOf"||E in m.def&&JSON.stringify(l[E])===JSON.stringify(m.def[E])&&delete l[E]}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"),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"),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"),Ep=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:Pp,intersection:a_,tuple:s_,record:c_,nullable:u_,nonoptional:l_,default:d_,prefault:p_,catch:f_,pipe:m_,readonly:h_,promise:g_,optional:Ep,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 Sp=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 NT={};var Pt=w("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");Te.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)}),xp=w("ZodMiniString",(t,e)=>{$n.init(t,e),Pt.init(t,e)});function v(t){return Qs(xp,t)}a(v,"string");var da=w("ZodMiniStringFormat",(t,e)=>{Xe.init(t,e),xp.init(t,e)});var vL=w("ZodMiniURL",(t,e)=>{Is.init(t,e),da.init(t,e)});function $T(t){return Xo(vL,t)}a($T,"url");var Tp=w("ZodMiniNumber",(t,e)=>{ra.init(t,e),Pt.init(t,e)});function kt(t){return Tc(Tp,t)}a(kt,"number");var bL=w("ZodMiniNumberFormat",(t,e)=>{Ns.init(t,e),Tp.init(t,e)});function zT(t){return wc(bL,t)}a(zT,"int");var __=w("ZodMiniBoolean",(t,e)=>{Ko.init(t,e),Pt.init(t,e)});function He(t){return Ic(__,t)}a(He,"boolean");var DT=w("ZodMiniBigInt",(t,e)=>{na.init(t,e),Pt.init(t,e)});var PL=w("ZodMiniAny",(t,e)=>{$s.init(t,e),Pt.init(t,e)});function qc(){return Oc(PL)}a(qc,"any");var EL=w("ZodMiniUnknown",(t,e)=>{zs.init(t,e),Pt.init(t,e)});function Ce(){return kc(EL)}a(Ce,"unknown");var SL=w("ZodMiniVoid",(t,e)=>{Ds.init(t,e),Pt.init(t,e)});function UT(t){return Nc(SL,t)}a(UT,"_void");var MT=w("ZodMiniDate",(t,e)=>{Us.init(t,e),Pt.init(t,e)});var xL=w("ZodMiniArray",(t,e)=>{Ms.init(t,e),Pt.init(t,e)});function Se(t,e){return new xL({type:"array",element:t,...te(e)})}a(Se,"array");var TL=w("ZodMiniObject",(t,e)=>{Nd.init(t,e),Pt.init(t,e),De(t,"shape",()=>e.shape)});function O(t,e){let r={type:"object",shape:t??{},...te(e)};return new TL(r)}a(O,"object");var AL=w("ZodMiniUnion",(t,e)=>{Jo.init(t,e),Pt.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),Pt.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),Pt.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),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 CL({type:"enum",entries:r,...te(e)})}a(Pe,"_enum");var RL=w("ZodMiniLiteral",(t,e)=>{qs.init(t,e),Pt.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),Pt.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),Pt.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),Pt.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),Pt.init(t,e)});function vo(t,e){return new $L({type:"pipe",in:t,out:e})}a(vo,"pipe");var LT=w("ZodMiniCustom",(t,e)=>{Zs.init(t,e),Pt.init(t,e)});function Ap(t,e){return jc(LT,t??(()=>!0),e)}a(Ap,"custom");function v_(t,e={}){return Fc(LT,t,e)}a(v_,"refine");var wp={};Xt(wp,{ZodMiniISODate:()=>P_,ZodMiniISODateTime:()=>b_,ZodMiniISODuration:()=>S_,ZodMiniISOTime:()=>E_,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 Pc(b_,t)}a(zL,"datetime");var P_=w("ZodMiniISODate",(t,e)=>{Rs.init(t,e),da.init(t,e)});function DL(t){return Ec(P_,t)}a(DL,"date");var E_=w("ZodMiniISOTime",(t,e)=>{Os.init(t,e),da.init(t,e)});function UL(t){return Sc(E_,t)}a(UL,"time");var S_=w("ZodMiniISODuration",(t,e)=>{ks.init(t,e),da.init(t,e)});function ML(t){return xc(S_,t)}a(ML,"duration");var Vc={};Xt(Vc,{bigint:()=>BL,boolean:()=>FL,date:()=>qL,number:()=>jL,string:()=>LL});function LL(t){return ec(xp,t)}a(LL,"string");function jL(t){return Ac(Tp,t)}a(jL,"number");function FL(t){return Cc(__,t)}a(FL,"boolean");function BL(t){return Rc(DT,t)}a(BL,"bigint");function qL(t){return $c(MT,t)}a(qL,"date");var T_=O({retryOnFailure:O({defaultValue:q(He()),hide:q(He())}),continueOnFailure:O({defaultValue:q(He()),hide:q(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=O({displayName:v(),description:q(v()),advanced:q(He()),width:q(Pe(["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 FT=O({label:v(),value:Ce(),description:q(v()),icon:q(v())}),Ip=O({disabled:q(He()),placeholder:q(v()),options:Se(FT)});var VL=Pe(["cards"]),fr=O({...Ge.shape,options:Ip,display:q(VL),...ke(Ce(),"STATIC_DROPDOWN").shape}),Mn=O({...Ge.shape,options:Ip,...ke(Se(Ce()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var A_=O({...Ge.shape,...ke(Ce(),"DROPDOWN").shape,refreshers:Se(v())}),Hc=O({...Ge.shape,...ke(Se(Ce()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Se(v())});var Ln=O({...Ge.shape,reveals:q(Se(v())),...ke(He(),"CHECKBOX").shape});var jn=O({...Ge.shape,display:q(Pe(["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 BT=Re(v(),Ue([pr,Un,fr,Hc,Mn,Ln,jn,Zc,Wc])),Kc=O({...Ge.shape,properties:BT,...ke(Se(Ce()),"ARRAY").shape});var qT=Pe(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),GT=O({preset:q(qT),after:q(v()),before:q(v())}),w_=O({...Ge.shape,display:q(Pe(["dropdown"])),...ke(GT,"DATE_RANGE").shape});var Jc=O({...Ge.shape,...ke(Ue([Re(v(),Ce())]),"JSON").shape});var VT=Ue([pr,fr,Jc,Kc,Mn]),HL=Re(v(),VT),I_=O({refreshers:Se(v()),...Ge.shape,...ke(Ce(),"DYNAMIC").shape});var Cp=O({...Ge.shape,...ke(UT(),"MARKDOWN").shape});var Xc=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Xc||{}),pa=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(pa||{}),fa=(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))(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:Pe(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||{}),HT=O({status:q(kt()),body:q(Ce()),headers:q(Re(v(),v()))}),ZT=O({type:ve("DELAY"),resumeDateTime:v(),requestIdToReply:q(v()),handlerId:q(v()),streamStepProgress:q(Pe(Rp))}),WT=O({type:ve("WEBHOOK"),requestId:v(),requestIdToReply:q(v()),response:HT,handlerId:q(v()),streamStepProgress:q(Pe(Rp))}),WL=Ue([ZT,WT]);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_=Tt(require("crypto"),1);var JL=128,Po,ma,XL=a(t=>{if(t<0)throw new RangeError("Wrong ID size");try{!Po||Po.length<t?(Po=Buffer.allocUnsafe(t*JL),k_.default.randomFillSync(Po),ma=0):ma+t>Po.length&&(k_.default.randomFillSync(Po),ma=0)}catch(e){throw Po=void 0,e}ma+=t},"fillPool"),YL=a(t=>(XL(t|=0),Po.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"),KT=a((t,e=21)=>QL(t,e,YL),"customAlphabet");var ej="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",JT=21,R9=v().check(Ut(new RegExp(`^[0-9a-zA-Z]{${JT}}$`))),tj=KT(ej,JT);var Eo=vo(_o(t=>t instanceof Date?t.toISOString():t),v()),Or={id:v(),created:Eo,updated:Eo},mt=a(t=>q(Gc(t)),"Nullable");function N_(t){return q(Gc(Pe(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(Se(t))),"OptionalArrayFromQuery");var U9=Re(v(),Ce());var So=(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))(So||{});var le={};Xt(le,{$brand:()=>ys,$input:()=>Qd,$output:()=>Yd,NEVER:()=>Ll,TimePrecision:()=>tp,ZodAny:()=>nv,ZodArray:()=>sv,ZodBase64:()=>Qp,ZodBase64URL:()=>ef,ZodBigInt:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,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:()=>Ev,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,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:()=>xv,_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:()=>YT,emoji:()=>aA,encode:()=>B_,encodeAsync:()=>G_,endsWith:()=>ri,enum:()=>sf,exactOptional:()=>Pv,file:()=>JA,flattenError:()=>Zi,float32:()=>AA,float64:()=>wA,formatError:()=>Wi,fromJSONSchema:()=>fw,function:()=>nw,getErrorMap:()=>aj,globalRegistry:()=>Ot,gt:()=>Zr,gte:()=>At,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,includes:()=>ei,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,iso:()=>ha,json:()=>lw,jwt:()=>PA,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:()=>EA,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:()=>Pa,ZodBigIntFormat:()=>nf,ZodBoolean:()=>ba,ZodCIDRv4:()=>Xp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Gp,ZodCUID2:()=>Vp,ZodCatch:()=>Cv,ZodCodec:()=>pf,ZodCustom:()=>fu,ZodCustomStringFormat:()=>_a,ZodDate:()=>cu,ZodDefault:()=>Sv,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:()=>Ev,ZodNumber:()=>va,ZodNumberFormat:()=>li,ZodObject:()=>lu,ZodOptional:()=>uf,ZodPipe:()=>df,ZodPrefault:()=>Tv,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:()=>xv,_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:()=>YT,emoji:()=>aA,enum:()=>sf,exactOptional:()=>Pv,file:()=>JA,float32:()=>AA,float64:()=>wA,function:()=>nw,guid:()=>QT,hash:()=>TA,hex:()=>xA,hostname:()=>SA,httpUrl:()=>iA,instanceof:()=>cw,int:()=>Lp,int32:()=>IA,int64:()=>OA,intersection:()=>dv,ipv4:()=>fA,ipv6:()=>hA,json:()=>lw,jwt:()=>PA,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:()=>EA,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 Pc($p,t)}a($_,"datetime");var zp=w("ZodISODate",(t,e)=>{Rs.init(t,e),nt.init(t,e)});function z_(t){return Ec(zp,t)}a(z_,"date");var Dp=w("ZodISOTime",(t,e)=>{Os.init(t,e),nt.init(t,e)});function D_(t){return Sc(Dp,t)}a(D_,"time");var Up=w("ZodISODuration",(t,e)=>{ks.init(t,e),nt.init(t,e)});function U_(t){return xc(Up,t)}a(U_,"duration");var XT=a((t,e)=>{xs.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",XT),tr=w("ZodError",XT,{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)=>(Te.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=()=>Pv(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=>xv(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 YT(t){return tc(Fp,t)}a(YT,"email");var nu=w("ZodGUID",(t,e)=>{cd.init(t,e),nt.init(t,e)});function QT(t){return ca(nu,t)}a(QT,"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)=>{Pd.init(t,e),nt.init(t,e)});function gA(t){return hc(Xp,t)}a(gA,"cidrv4");var Yp=w("ZodCIDRv6",(t,e)=>{Ed.init(t,e),nt.init(t,e)});function yA(t){return gc(Yp,t)}a(yA,"cidrv6");var Qp=w("ZodBase64",(t,e)=>{Sd.init(t,e),nt.init(t,e)});function _A(t){return yc(Qp,t)}a(_A,"base64");var ef=w("ZodBase64URL",(t,e)=>{xd.init(t,e),nt.init(t,e)});function vA(t){return _c(ef,t)}a(vA,"base64url");var tf=w("ZodE164",(t,e)=>{Td.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 PA(t){return bc(rf,t)}a(PA,"jwt");var _a=w("ZodCustomStringFormat",(t,e)=>{wd.init(t,e),nt.init(t,e)});function EA(t,e,r={}){return ci(_a,t,e,r)}a(EA,"stringFormat");function SA(t){return ci(_a,"hostname",er.hostname,t)}a(SA,"hostname");function xA(t){return ci(_a,"hex",er.hex,t)}a(xA,"hex");function TA(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(TA,"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 Tc(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 Pa=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(Pa,t)}a(RA,"bigint");var nf=w("ZodBigIntFormat",(t,e)=>{Id.init(t,e),Pa.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)=>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 cv=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 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 Te,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)=>Ep(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)=>Ep(t,r,o,n),t.unwrap=()=>t._zod.def.innerType});function Pv(t){return new bv({type:"optional",innerType:t})}a(Pv,"exactOptional");var Ev=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 Ev({type:"nullable",innerType:t})}a(iu,"nullable");function XA(t){return ou(iu(t))}a(XA,"nullish");var Sv=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 xv(t,e){return new Sv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():ie.shallowClone(e)}})}a(xv,"_default");var Tv=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 Tv({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 de={...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 de.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 de.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 de.null();if(n.length===0)return de.never();if(n.length===1)return de.literal(n[0]);if(n.every(s=>typeof s=="string"))return de.enum(n);let i=n.map(s=>de.literal(s));return i.length<2?i[0]:de.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return de.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?de.never():n.length===1?n[0]:de.union(n)}if(!r)return de.any();let o;switch(r){case"string":{let n=de.string();if(t.format){let i=t.format;i==="email"?n=n.check(de.email()):i==="uri"||i==="uri-reference"?n=n.check(de.url()):i==="uuid"||i==="guid"?n=n.check(de.uuid()):i==="date-time"?n=n.check(de.iso.datetime()):i==="date"?n=n.check(de.iso.date()):i==="time"?n=n.check(de.iso.time()):i==="duration"?n=n.check(de.iso.duration()):i==="ipv4"?n=n.check(de.ipv4()):i==="ipv6"?n=n.check(de.ipv6()):i==="mac"?n=n.check(de.mac()):i==="cidr"?n=n.check(de.cidrv4()):i==="cidr-v6"?n=n.check(de.cidrv6()):i==="base64"?n=n.check(de.base64()):i==="base64url"?n=n.check(de.base64url()):i==="e164"?n=n.check(de.e164()):i==="jwt"?n=n.check(de.jwt()):i==="emoji"?n=n.check(de.emoji()):i==="nanoid"?n=n.check(de.nanoid()):i==="cuid"?n=n.check(de.cuid()):i==="cuid2"?n=n.check(de.cuid2()):i==="ulid"?n=n.check(de.ulid()):i==="xid"?n=n.check(de.xid()):i==="ksuid"&&(n=n.check(de.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"?de.number().int():de.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=de.boolean();break}case"null":{o=de.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):de.any();if(Object.keys(n).length===0){o=de.record(l,p);break}let f=de.object(n).passthrough(),y=de.looseRecord(l,p);o=de.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),_=de.string().regex(new RegExp(m));f.push(de.looseRecord(_,h))}let y=[];if(Object.keys(n).length>0&&y.push(de.object(n).passthrough()),y.push(...f),y.length===0)o=de.object({}).passthrough();else if(y.length===1)o=y[0];else{let m=de.intersection(y[0],y[1]);for(let h=2;h<y.length;h++)m=de.intersection(m,y[h]);o=m}break}let u=de.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=de.tuple(s).rest(u):o=de.tuple(s),typeof t.minItems=="number"&&(o=o.check(de.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(de.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=de.tuple(s).rest(u):o=de.tuple(s),typeof t.minItems=="number"&&(o=o.check(de.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check(de.maxLength(t.maxItems)))}else if(i!==void 0){let s=Ft(i,e),u=de.array(s);typeof t.minItems=="number"&&(u=u.min(t.minItems)),typeof t.maxItems=="number"&&(u=u.max(t.maxItems)),o=u}else o=de.array(de.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?de.any():de.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=de.union(u);r=o?de.intersection(r,l):l}if(t.oneOf&&Array.isArray(t.oneOf)){let u=t.oneOf.map(p=>Ft(p,e)),l=de.xor(u);r=o?de.intersection(r,l):l}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=o?r:de.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=de.intersection(u,Ft(t.allOf[p],e));r=u}t.nullable===!0&&e.version==="openapi-3.0"&&(r=de.nullable(r)),t.readOnly===!0&&(r=de.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?de.any():de.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(Pa,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=le.object({apiKey:le.string()}),hw=le.object({serviceAccountJson:le.string().min(1)}),gw=Zt,yw=Zt.extend({apiKeyHash:le.string()}),_w=Zt,vw=Zt,bw=Zt,Pw=Zt,Ew=Zt,Sw=Zt,xw=le.object({accessKeyId:le.string().min(1),secretAccessKey:le.string().min(1),sessionToken:le.string().optional()}),Tw=Zt,Aw=le.object({}),ww=le.object({}),Gv=le.object({modelId:le.string(),modelName:le.string(),modelType:le.enum(mw)}),Iw=le.object({apiKeyHeader:le.string(),baseUrl:le.string(),models:le.array(Gv),defaultHeaders:le.record(le.string(),le.string()).optional(),apiStyle:le.enum(["chat","responses"]).optional()}),Cw=le.object({accountId:le.string(),gatewayId:le.string(),models:le.array(Gv),vertexProject:le.string().optional(),vertexRegion:le.string().optional()}),Rw=le.object({resourceName:le.string(),apiVersion:le.preprocess(t=>typeof t=="string"&&t.trim().length===0?void 0:t,le.string().optional())}),Ow=le.object({}),kw=le.object({}),Nw=le.object({}),$w=le.object({region:le.string().min(1)}),zw=le.object({project:le.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),region:le.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,qv.invalidGcpResourceId),models:le.array(Gv)}),Dw=le.object({}),di=le.object({}),wX=le.union([gw,bw,Pw,Ew,Sw,vw,_w,yw,xw,hw,Tw]),IX=le.union([Iw,Cw,Rw,zw,$w,Aw,Ow,kw,Nw,ww,Dw,di]),CX=le.discriminatedUnion("provider",[le.object({provider:le.literal("openai"),config:kw.partial(),auth:Ew.partial()}),le.object({provider:le.literal("openrouter"),config:Nw.partial(),auth:Sw.partial()}),le.object({provider:le.literal("anthropic"),config:Aw.partial(),auth:gw.partial()}),le.object({provider:le.literal("azure"),config:Rw.partial(),auth:bw.partial()}),le.object({provider:le.literal("google"),config:Ow.partial(),auth:Pw.partial()}),le.object({provider:le.literal("cloudflare-gateway"),config:Cw.partial(),auth:vw.partial()}),le.object({provider:le.literal("custom"),config:Iw.partial(),auth:_w.partial()}),le.object({provider:le.literal("activepieces"),config:ww.partial(),auth:yw.partial()}),le.object({provider:le.literal("bedrock"),config:$w.partial(),auth:xw.partial()}),le.object({provider:le.literal("vertex"),config:zw.partial(),auth:hw.partial()}),le.object({provider:le.literal("mistral"),config:Dw.partial(),auth:Tw.partial()}),le.object({provider:le.literal("xai"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("deepseek"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("zai"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("qwen"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.literal("minimax"),config:di.partial(),auth:Zt.partial()}),le.object({provider:le.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=Tt(Mw());var WX=O({...Or,name:v(),permissions:Se(v()),platformId:mt(v()),type:v(),userCount:q(kt())});var oY=le.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:Pe(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")}),Pj=O({type:ve("access_token"),accessToken:v()}),Ej=O({type:ve("api_key"),apiKey:v(),apiKeyHeader:v()}),Sj=O({type:ve("headers"),headers:Re(v(),v())}),xj=yo("type",[bj,Pj,Ej,Sj]),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:$T(),protocol:Pe(Hv),auth:xj}),Bw=O({type:ve("KNOWLEDGE_BASE"),toolName:v().check(vt(1)),sourceType:Pe(Vv),sourceId:v(),sourceName:v()}),Tj=yo("type",[vj,jw,Fw,Bw]),Aj=O({displayName:v(),description:q(v()),type:Pe(Zv)}),qw=O({type:ve("MARKDOWN"),markdown:v()}),Ea={type:ve("TOOL_CALL"),input:mt(Re(v(),Ce())),output:q(Ce()),toolName:v(),status:Pe(Wv),toolCallId:v(),startTime:v(),endTime:q(v())},VY=O(Ea),Gw=yo("toolCallType",[O({...Ea,toolCallType:ve("PIECE"),pieceName:v(),pieceVersion:v(),actionName:v()}),O({...Ea,toolCallType:ve("FLOW"),displayName:v(),externalFlowId:v()}),O({...Ea,toolCallType:ve("MCP"),displayName:v(),serverUrl:v()}),O({...Ea,toolCallType:ve("KNOWLEDGE_BASE"),displayName:v(),sourceType:v()}),O({...Ea,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:Pe(Xv)}),Jw=O({apiKeyHeader:v(),baseUrl:v(),models:Se(Yv),defaultHeaders:q(Re(v(),v())),apiStyle:q(Pe(["chat","responses"]))}),Xw=O({accountId:v(),gatewayId:v(),models:Se(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:Se(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:Pe(Xv)}),Wj=O({id:v(),name:v(),provider:Pe(So),config:rI,enabledForChat:He()}),Kj=O({provider:Pe(So),name:v(),enabledForChat:He(),keys:Se(O({id:v(),name:v()}))}),Jj=O({provider:Pe(So),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(Se(Qv))})]),lF=O({sessionId:v(),message:v(),files:q(Se(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:Se(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:Se(Pe(eb)),webhookUrl:v(),flowId:v()}),hF=O({fields:Se(O({id:v(),name:v()})),rows:Se(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:Se(Se(O({fieldId:v(),value:uI()}))),tableId:v()}),_F=O({cells:q(Se(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()))}),PF=O({...Or,deleted:mt(Eo),ownerId:v(),displayName:v(),platformId:v(),externalId:mt(v())});var lI=O({name:v(),description:q(v()),type:v(),required:He()}),EF=O({pieceName:v(),triggerName:v(),input:O({toolName:v(),toolDescription:v(),inputSchema:Se(lI),returnsResponse:He()})});var dI="^[0-9]+\\.[0-9]+\\.[0-9]+$",g7=new RegExp(dI),xF="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",y7=v().check(Ut(new RegExp(dI))),_7=v().check(Ut(new RegExp(xF))),TF=O({packageType:ve("ARCHIVE"),pieceType:Pe(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([TF,pI,fI]);var AF=yo("type",[O({type:ve("CRON_EXPRESSION"),cronExpression:v(),timezone:v()}),O({type:ve("INTERVAL"),intervalMs:zT().check(At(6e4))})]),P7=O({...Or,type:Pe(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||{}),E7=O({...Or,projectId:mt(v()),platformId:mt(v()),type:Pe(mI),compression:Pe(hI),data:q(Ce()),location:Pe(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||{}),S7=O({id:v(),email:v(),firstName:v(),status:Pe(_I),externalId:mt(v()),platformId:mt(v()),platformRole:Pe(yI),lastName:v(),created:Eo,updated:Eo,lastActiveDate:mt(Eo),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 EI=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,EI]),W={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 SI=O({username:v(),password:v()}),ob=O({...un.shape,username:O({displayName:v(),description:q(v())}),password:O({displayName:v(),description:q(v())}),...ke(SI,"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])),xI=O({...un.shape,props:OF,...ke(Ce(),"OIDC").shape});var ab=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ab||{}),TI=Ue([pr,fi,fr]),AI=Re(v(),TI),kF=O({props:q(Re(v(),TI)),authUrl:v(),tokenUrl:v(),scope:Se(v()),prompt:q(Ue([ve("none"),ve("consent"),ve("login"),ve("omit")])),pkce:q(He()),pkceMethod:q(Ue([ve("plain"),ve("S256")])),authorizationMethod:q(Pe(ab)),grantType:q(Ue([Pe(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 Sa=Ue([ob,ib,xI,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,Sa]),ub=Re(v(),$F),Aee=Re(v(),nb);var II=Ue([O({strategy:ve("CRON"),cronExpression:v()}),O({strategy:ve("NONE")})]),xa=class{constructor(e,r,o,n,i,s,u,l,p,f,y,m,h,_,E,S,T,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=E;this.sampleData=S;this.testStrategy=T;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 xa(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 xa(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 xa(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 xa(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:Se(v()),platformId:q(v()),directoryPath:q(v()),auth:q(Ue([Sa,Se(Sa)])),version:v(),categories:q(Se(Pe(fa))),minimumSupportedRelease:q(v()),maximumSupportedRelease:q(v()),deprecated:q(He()),i18n:MF}),LF=Pe(["human","ai","both"]),$I=O({description:q(v()),idempotent:q(He())}),zI=Pe(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var jF=Pe(["tabs","section","summary","builder","footer"]),DI=O({key:v(),display:jF,label:q(v()),description:q(v()),icon:q(v()),props:Se(v())}),UI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),requireAuth:He(),errorHandlingOptions:q(T_),outputSchema:q(Ap()),audience:q(LF),aiMetadata:q($I),classification:q(zI)}),MI=O({name:v(),displayName:v(),description:v(),props:ub,propertyGroups:q(Se(DI)),errorHandlingOptions:q(T_),type:Pe(bo),sampleData:Ce(),handshakeConfiguration:q(Ap()),renewConfiguration:q(II),testStrategy:Pe(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(Se(UI)),suggestedTriggers:q(Se(MI))}),LI=O({projectUsage:kt(),pieceType:Pe(pa),packageType:Pe(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=Tt(require("path")),GF=Tt(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 Ta=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Ta||{});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},E=ZF({...i,...h}),S=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:E,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),T=f?300:400;if(S.status<200||S.status>=T){let L=await FI(S,p==="stream"?"text":p),Y=new hu(e.body,{status:S.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",Y),Y}let k=await FI(S,p);return{status:S.status,headers:WF(S.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=Tt(require("fs")),ZR=Tt(HR());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 WR({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:W.DynamicProperties({auth:t,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:W.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:W.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Ta).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:W.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:W.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:W.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:W.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=W.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=W.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=W.Array({displayName:"Form Data",required:!0,properties:{fieldName:W.ShortText({displayName:"Field Name",required:!0}),fieldType:W.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:W.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:W.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:W.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:W.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:W.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:W.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:E,body_type:S,failsafe:T,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"),E)if(S&&S!=="none"){let ee=E.data;if(S==="form_data"){let Le=ee,ue=new ZR.default;for(let{fieldName:K,fieldType:Z,textFieldValue:oe,fileFieldValue:Q}of Le)Z==="text"&&!tu(oe)?ue.append(K,oe):Z==="file"&&!tu(Q)&&ue.append(K,Q.data,{filename:Q?.filename});ce.body=ue,ce.headers={...ce.headers,...ue.getHeaders()}}else ce.body=ee}else S||(ce.body=E);try{let ee=await ln.sendRequest(ce);return await qq(f.files,ee.body,ee.status,ee.headers,L)}catch(ee){if(T)return jI({error:ee,requestBody:ce.body});throw ee}},"run")})}a(WR,"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 KR="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?`${KR}${t}?${n}`:`${KR}${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 Pu({source:t,path:e}){let r=kr({source:t,path:e});return typeof r=="string"?r:void 0}a(Pu,"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 JR({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(JR,"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:Pu({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:JR({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=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(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:Pu,readRecord:Xq,readArray:Yq,toStringList:e4,assertBatchSize:t4,splitItemResponses:r4,describeStatus:JR,isFailedItem:$b};var xe=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"]});var a4=[{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"}],s4=[{key:"value",label:"Email Address",format:"email"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],c4=[{key:"value",label:"Phone Number"},{key:"canonicalForm",label:"Canonical Form"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],u4=[{key:"value",label:"Nickname"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],l4=[{key:"value",label:"Notes"},{key:"contentType",label:"Content Type"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],d4=[{key:"name",label:"Company"},{key:"title",label:"Job Title"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],p4=[{key:"url",label:"Photo URL",format:"image"},{key:"default",label:"Is Placeholder",format:"boolean"},{key:"primary",label:"Primary",value:"metadata.primary",format:"boolean"}],f4=[{key:"contactGroupId",label:"Contact Group ID",value:"contactGroupMembership.contactGroupId"},{key:"contactGroupResourceName",label:"Contact Group Resource Name",value:"contactGroupMembership.contactGroupResourceName"}],m4=[{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"}]}],Jr=[{key:"resourceName",label:"Resource Name"},{key:"etag",label:"ETag"},{key:"names",label:"Names",labelKey:"displayName",listItems:a4},{key:"emailAddresses",label:"Email Addresses",labelKey:"value",listItems:s4},{key:"phoneNumbers",label:"Phone Numbers",labelKey:"value",listItems:c4},{key:"nicknames",label:"Nicknames",labelKey:"value",listItems:u4},{key:"biographies",label:"Notes",labelKey:"value",listItems:l4},{key:"organizations",label:"Organizations",labelKey:"name",listItems:d4},{key:"photos",label:"Photos",labelKey:"url",listItems:p4},{key:"memberships",label:"Group Memberships",labelKey:"contactGroupMembership.contactGroupId",listItems:f4},{key:"metadata",label:"Metadata",children:m4}],Eu=[{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"}],Su=[{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"}],XR=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"}],h4=[{key:"resourceName",label:"Resource Name"},{key:"status",label:"Failure Reason"},{key:"updateMask",label:"Field Groups Not Applied"}],g4=[{key:"requestIndex",label:"Request Index",format:"number"},{key:"status",label:"Failure Reason"}],YR={fields:Jr},QR={fields:Jr},eO={fields:[{key:"results",label:"Matching Contacts",listItems:[{key:"person",label:"Contact",children:Jr}]}]},tO={fields:Jr},rO={fields:Jr},nO={fields:Jr},oO={fields:Jr},iO={fields:[{key:"contacts",label:"Contacts",labelKey:"displayName",listItems:Eu},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},aO={fields:[{key:"results",label:"Matching Contacts",labelKey:"displayName",listItems:Eu},{key:"count",label:"Count",format:"number"}]},sO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"}]},cO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceNames",label:"Resource Names"},{key:"count",label:"Count",format:"number"}]},uO={fields:[{key:"succeeded",label:"Contacts Read",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Eu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:XR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},lO={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:Eu}]},{key:"failed",label:"Failures",labelKey:"requestIndex",listItems:g4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"requestedCount",label:"Requested Count",format:"number"}]},dO={fields:[{key:"succeeded",label:"Contacts Updated",labelKey:"contact.displayName",listItems:[{key:"resourceName",label:"Resource Name"},{key:"contact",label:"Contact",children:Eu},{key:"person",label:"Full Person",children:Jr}]},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:h4},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"updateMasks",label:"Update Masks"}]},pO={fields:Jr},fO={fields:Jr},mO={fields:[{key:"contactGroups",label:"Contact Groups",labelKey:"formattedName",listItems:Su},{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"}]},hO={fields:Su},gO={fields:Su},yO={fields:[{key:"succeeded",label:"Contact Groups Read",labelKey:"formattedName",listItems:Su},{key:"failed",label:"Failures",labelKey:"resourceName",listItems:XR},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"}]},_O={fields:[{key:"created",label:"Created",format:"boolean"},{key:"contactGroup",label:"Contact Group",children:Su}]},vO={fields:[{key:"deleted",label:"Deleted",format:"boolean"},{key:"resourceName",label:"Resource Name"},{key:"deletedContacts",label:"Contacts Also Deleted",format:"boolean"}]},bO={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 PO=Oe({auth:xe,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:YR,props:{firstName:W.ShortText({displayName:"First Name",description:"The first name of the contact",required:!0}),middleName:W.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:W.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!0}),jobTitle:W.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:W.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:W.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:W.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 EO=Oe({auth:xe,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:QR,props:{resourceName:W.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:W.ShortText({displayName:"Etag",description:"The `etag` ensures contact updates only apply if the contact hasn't changed since last retrieved.",required:!0}),updatePersonFields:W.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:W.ShortText({displayName:"First Name",description:"The first name of the contact",required:!1}),middleName:W.ShortText({displayName:"Middle Name",description:"The middle name of the contact",required:!1}),lastName:W.ShortText({displayName:"Last Name",description:"The last name of the contact",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",description:"The job title of the contact",required:!1}),company:W.ShortText({displayName:"Company",description:"The company of the contact",required:!1}),email:W.ShortText({displayName:"Email",description:"The email address of the contact",required:!1}),phoneNumber:W.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 SO=Oe({auth:xe,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:eO,props:{query:W.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:W.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:W.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 wf({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(wf,"mergeFirstEntry");function y4({input:t,current:e}){let r={},o=[];return(t.firstName!==void 0||t.middleName!==void 0||t.lastName!==void 0)&&(r.names=wf({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=wf({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=wf({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=wf({current:e,group:"biographies",overrides:{value:t.biography},defaults:{contentType:"TEXT_PLAIN"}}),o.push("biographies")),{person:r,fields:o}}a(y4,"buildPerson");function xO({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(xO,"valuesOf");function _4({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:xO({person:t,group:"emailAddresses"}),phoneNumbers:xO({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(_4,"summarizePerson");var Bt={buildPerson:y4,summarizePerson:_4};var TO=Oe({auth:xe,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:rO,props:{firstName:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),nickname:W.ShortText({displayName:"Nickname",required:!1}),emails:W.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:W.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:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",required:!1}),biography:W.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}=Bt.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 AO=Oe({auth:xe,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:oO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),firstName:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),nickname:W.ShortText({displayName:"Nickname",required:!1}),emails:W.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:W.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:W.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:W.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:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.ShortText({displayName:"Job Title",required:!1}),biography:W.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}=Bt.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}=Bt.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 wO=Oe({auth:xe,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:aO,props:{query:W.ShortText({displayName:"Query",description:"Plain-text query prefix-matched against contact fields such as name, email and phone number.",required:!0}),pageSize:W.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=>Bt.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 IO=Oe({auth:xe,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:nO,props:{resourceName:W.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 v4=10,CO=Oe({auth:xe,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:iO,props:{maxResults:W.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<v4;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(Bt.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 RO=Oe({auth:xe,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:sO,props:{resourceName:W.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 OO=Oe({auth:xe,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:uO,props:{resourceNames:W.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:Bt.summarizePerson({person:s.payload}),person:s.payload})),failed:i,succeededCount:n.length,failedCount:i.length}}});function hi({source:t,key:e}){let r=D.readString({source:t,path:[e]});if(!(r===void 0||r.trim().length===0))return r.trim()}a(hi,"optionalString");var kO=Oe({auth:xe,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:lO,props:{contacts:W.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:W.ShortText({displayName:"First Name",required:!1}),middleName:W.ShortText({displayName:"Middle Name",required:!1}),lastName:W.ShortText({displayName:"Last Name",required:!1}),email:W.ShortText({displayName:"Email Address",required:!1}),phoneNumber:W.ShortText({displayName:"Phone Number",required:!1}),company:W.ShortText({displayName:"Company",required:!1}),jobTitle:W.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=hi({source:u,key:"email"}),f=hi({source:u,key:"phoneNumber"}),{person:y,fields:m}=Bt.buildPerson({input:{firstName:hi({source:u,key:"firstName"}),middleName:hi({source:u,key:"middleName"}),lastName:hi({source:u,key:"lastName"}),emails:p===void 0?[]:[p],phoneNumbers:f===void 0?[]:[f],company:hi({source:u,key:"company"}),jobTitle:hi({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:Bt.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 b4({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(b4,"toPerson");function P4({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(P4,"groupBySignature");var NO=Oe({auth:xe,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:dO,props:{contacts:W.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)=>b4({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=P4({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:Bt.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 $O=Oe({auth:xe,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:cO,props:{resourceNames:W.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 zO="base64,",DO=Oe({auth:xe,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:pO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact resource name such as people/c12345. Resolve it with List Contacts or Search Contacts.",required:!0}),photoBytes:W.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(zO),n=o===-1?r:r.slice(o+zO.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 UO=Oe({auth:xe,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:fO,props:{resourceName:W.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 E4({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(E4,"summarizeGroup");function S4({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(S4,"matchesName");var mr={summarizeGroup:E4,matchesName:S4};var x4=10,MO=Oe({auth:xe,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:mO,props:{},async run(t){let e=[],r;try{for(let o=0;o<x4;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(mr.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 LO=Oe({auth:xe,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:hO,props:{resourceName:W.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:W.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 mr.summarizeGroup({group:o})}catch(o){throw D.toApiError({error:o,operation:"Get Contact Group"})}}});var jO=Oe({auth:xe,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:yO,props:{resourceNames:W.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:W.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=>mr.summarizeGroup({group:u.payload})),failed:s,succeededCount:i.length,failedCount:s.length}}});var T4=10;async function FO({accessToken:t,name:e}){let r;for(let o=0;o<T4;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=>mr.matchesName({group:s,name:e}));if(i!==void 0)return i;if(r=D.readString({source:n,path:["nextPageToken"]}),r===void 0)return}}a(FO,"findGroupByName");var BO=Oe({auth:xe,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:_O,props:{name:W.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 FO({accessToken:r,name:e});if(o!==void 0)return{created:!1,contactGroup:mr.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:mr.summarizeGroup({group:o})}}catch(o){if(!D.isConflict({error:o}))throw D.toApiError({error:o,operation:"Create Contact Group"});let n=await FO({accessToken:r,name:e});if(n===void 0)throw D.toApiError({error:o,operation:"Create Contact Group"});return{created:!1,contactGroup:mr.summarizeGroup({group:n})}}}});var qO=Oe({auth:xe,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:gO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),name:W.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 mr.summarizeGroup({group:s})}catch(s){throw D.toApiError({error:s,operation:"Update Contact Group"})}}});var GO=Oe({auth:xe,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:vO,props:{resourceName:W.ShortText({displayName:"Resource Name",description:"Opaque contact group resource name such as contactGroups/abc123. Resolve it with List Contact Groups.",required:!0}),deleteContacts:W.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 VO=Oe({auth:xe,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:bO,props:{resourceName:W.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:W.Array({displayName:"Contacts To Add",description:"Opaque contact resource names such as people/c12345 to add to the group.",required:!1}),resourceNamesToRemove:W.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 mD=Tt(pD()),hD=Tt(tl()),gD=Tt(fD());var ch={strategy:0,items:a(async({store:t,auth:e})=>{let r=new hD.OAuth2Client;r.setCredentials(e);let o=(0,mD.people)({version:"v1",auth:r}),n,i=[];do{let s=await o.people.connections.list({resourceName:"people/me",pageToken:n,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 u of s.data.connections||[])u.metadata?.deleted!==!0&&i.push({data:u,epochMilliSeconds:(0,gD.default)(u.metadata?.sources?.[0].updateTime).valueOf()});n=s.data.nextPageToken}while(n);return i},"items")},yD=CI({auth:xe,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:tO,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:[PO,EO,SO,TO,AO,wO,IO,CO,RO,OO,kO,NO,$O,DO,UO,MO,LO,jO,BO,qO,GO,VO,WR({baseUrl:a(()=>Ao.baseUrl,"baseUrl"),auth:xe,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:xe});0&&(module.exports={googleContacts});
|
|
108
108
|
/*! Bundled license information:
|
|
109
109
|
|
|
110
110
|
mime-types/index.js:
|