@activepieces/piece-microsoft-outlook 0.7.4 → 0.7.6

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/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";var TT=Object.create;var Uo=Object.defineProperty;var IT=Object.getOwnPropertyDescriptor;var ST=Object.getOwnPropertyNames;var wT=Object.getPrototypeOf,OT=Object.prototype.hasOwnProperty;var s=(e,t)=>Uo(e,"name",{value:t,configurable:!0});var kT=(e,t,o)=>()=>{if(o)throw o[0];try{return e&&(t=e(e=0)),t}catch(n){throw o=[n],n}};var $=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},Xe=(e,t)=>{for(var o in t)Uo(e,o,{get:t[o],enumerable:!0})},$h=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ST(t))!OT.call(e,r)&&r!==o&&Uo(e,r,{get:()=>t[r],enumerable:!(n=IT(t,r))||n.enumerable});return e};var Le=(e,t,o)=>(o=e!=null?TT(wT(e)):{},$h(t||!e||!e.__esModule?Uo(o,"default",{value:e,enumerable:!0}):o,e)),ve=e=>$h(Uo({},"__esModule",{value:!0}),e);var Ov=$((wv,kc)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",o={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function u(p,v){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let b=0,T=-1,A=(p.match(c.zoneIndex)||[])[0],w,B;for(A&&(A=A.substring(1),p=p.replace(/%.+$/,""));(T=p.indexOf(":",T+1))>=0;)b++;if(p.substr(0,2)==="::"&&b--,p.substr(-2,2)==="::"&&b--,b>v)return null;for(B=v-b,w=":";B--;)w+="0:";return p=p.replace("::",w),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),v=(function(){let ie=p.split(":"),ue=[];for(let Se=0;Se<ie.length;Se++)ue.push(parseInt(ie[Se],16));return ue})(),{parts:v,zoneId:A}}s(u,"expandIPv6");function l(p,v,b,T){if(p.length!==v.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,w;for(;T>0;){if(w=b-T,w<0&&(w=0),p[A]>>w!==v[A]>>w)return!1;T-=b,A+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(n.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function g(p,v){for(;p.length<v;)p=`0${p}`;return p}s(g,"padPart");let f={};f.IPv4=(function(){function p(v){if(v.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,T;for(b=0;b<v.length;b++)if(T=v[b],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=v}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(v,b){let T;if(b===void 0&&(T=v,v=T[0],b=T[1]),v.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,v.octets,8,b)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,b=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,w,B;for(A=3;A>=0;A-=1)if(w=this.octets[A],w in T){if(B=T[w],b&&B!==0)return null;B!==8&&(b=!0),v+=B}else return null;return 32-v},p.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),f.IPv4.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),b=v[0].toByteArray(),T=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),A=[],w=0;for(;w<4;)A.push(parseInt(b[w],10)|parseInt(T[w],10)^255),w++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(p){return this.parser(p)!==null},f.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(p){return!!(f.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(p){let v=p.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(p)||!v?!1:f.IPv4.isValidFourPartDecimal(v[1])},f.IPv4.networkAddressFromCIDR=function(p){let v,b,T,A,w;try{for(v=this.parseCIDR(p),T=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),A=[],b=0;b<4;)A.push(parseInt(T[b],10)&parseInt(w[b],10)),b++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(p){let v=this.parser(p);if(v===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(v)},f.IPv4.parseCIDR=function(p){let v;if(v=p.match(/^(.+)\/(\d+)$/)){let b=parseInt(v[2]);if(b>=0&&b<=32){let T=[this.parse(v[1]),b];return Object.defineProperty(T,"toString",{value:s(function(){return this.join("/")},"value")}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(p){let v,b,T;if(v=p.match(o.fourOctet))return(function(){let A=v.slice(1,6),w=[];for(let B=0;B<A.length;B++)b=A[B],w.push(d(b));return w})();if(v=p.match(o.longValue)){if(T=d(v[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return(function(){let A=[],w;for(w=0;w<=24;w+=8)A.push(T>>w&255);return A})().reverse()}else return(v=p.match(o.twoOctet))?(function(){let A=v.slice(1,4),w=[];if(T=d(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return w.push(d(A[0])),w.push(T>>16&255),w.push(T>>8&255),w.push(T&255),w})():(v=p.match(o.threeOctet))?(function(){let A=v.slice(1,5),w=[];if(T=d(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return w.push(d(A[0])),w.push(d(A[1])),w.push(T>>8&255),w.push(T&255),w})():null},f.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let v=[0,0,0,0],b=0,T=Math.floor(p/8);for(;b<T;)v[b]=255,b++;return T<4&&(v[T]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},f.IPv6=(function(){function p(v,b){let T,A;if(v.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(v[T]<<8|v[T+1]);else if(v.length===8)this.parts=v;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(v,b){let T;if(b===void 0&&(T=v,v=T[0],b=T[1]),v.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,v.parts,16,b)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,b=!1,T={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},A,w;for(let B=7;B>=0;B-=1)if(A=this.parts[B],A in T){if(w=T[A],b&&w!==0)return null;w!==16&&(b=!0),v+=w}else return null;return 128-v},p.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let v,b=[],T=this.parts;for(let A=0;A<T.length;A++)v=T[A],b.push(v>>8),b.push(v&255);return b},p.prototype.toFixedLengthString=function(){let v=(function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(g(this.parts[A].toString(16),4));return T}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),v+b},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let v=this.parts.slice(-2),b=v[0],T=v[1];return new f.IPv4([b>>8,b&255,T>>8,T&255])},p.prototype.toNormalizedString=function(){let v=(function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),v+b},p.prototype.toRFC5952String=function(){let v=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString(),T=0,A=-1,w;for(;w=v.exec(b);)w[0].length>A&&(T=w.index,A=w[0].length);return A<0?b:`${b.substring(0,T)}::${b.substring(T+A)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),f.IPv6.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),b=v[0].toByteArray(),T=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),A=[],w=0;for(;w<16;)A.push(parseInt(b[w],10)|parseInt(T[w],10)^255),w++;return new this(A)}catch(v){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${v})`)}},f.IPv6.isIPv6=function(p){return this.parser(p)!==null},f.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let v=this.parser(p);return new this(v.parts,v.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(p){let v,b,T,A,w;try{for(v=this.parseCIDR(p),T=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),A=[],b=0;b<16;)A.push(parseInt(T[b],10)&parseInt(w[b],10)),b++;return new this(A)}catch(B){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${B})`)}},f.IPv6.parse=function(p){let v=this.parser(p);if(v.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(v.parts,v.zoneId)},f.IPv6.parseCIDR=function(p){let v,b,T;if((b=p.match(/^(.+)\/(\d+)$/))&&(v=parseInt(b[2]),v>=0&&v<=128))return T=[this.parse(b[1]),v],Object.defineProperty(T,"toString",{value:s(function(){return this.join("/")},"value")}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(p){let v,b,T,A,w,B;if(T=p.match(c.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(c.native.test(p))return u(p,8);if((T=p.match(c.transitional))&&(B=T[6]||"",v=T[1],T[1].endsWith("::")||(v=v.slice(0,-1)),v=u(v+B,6),v.parts)){for(w=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],b=0;b<w.length;b++)if(A=w[b],!(0<=A&&A<=255))return null;return v.parts.push(w[0]<<8|w[1]),v.parts.push(w[2]<<8|w[3]),{parts:v.parts,zoneId:v.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0,T=Math.floor(p/8);for(;b<T;)v[b]=255,b++;return T<16&&(v[T]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},f.fromByteArray=function(p){let v=p.length;if(v===4)return new f.IPv4(p);if(v===16)return new f.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(p){return f.IPv6.isValid(p)||f.IPv4.isValid(p)},f.isValidCIDR=function(p){return f.IPv6.isValidCIDR(p)||f.IPv4.isValidCIDR(p)},f.parse=function(p){if(f.IPv6.isValid(p))return f.IPv6.parse(p);if(f.IPv4.isValid(p))return f.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(p){try{return f.IPv6.parseCIDR(p)}catch{try{return f.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(p){let v=this.parse(p);return v.kind()==="ipv6"&&v.isIPv4MappedAddress()?v.toIPv4Address():v},f.subnetMatch=function(p,v,b){let T,A,w,B;b==null&&(b="unicast");for(A in v)if(Object.prototype.hasOwnProperty.call(v,A)){for(w=v[A],w[0]&&!(w[0]instanceof Array)&&(w=[w]),T=0;T<w.length;T++)if(B=w[T],p.kind()===B[0].kind()&&p.match.apply(p,B))return A}return b},typeof kc<"u"&&kc.exports?kc.exports=f:e.ipaddr=f})(wv)});var Vx=$((EH,Bx)=>{var jx=require("stream").Stream,kk=require("util");Bx.exports=pt;function pt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(pt,"DelayedStream");kk.inherits(pt,jx);pt.create=function(e,t){var o=new this;t=t||{};for(var n in t)o[n]=t[n];o.source=e;var r=e.emit;return e.emit=function(){return o._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),o.pauseStream&&e.pause(),o};Object.defineProperty(pt.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});pt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};pt.prototype.resume=function(){this._released||this.release(),this.source.resume()};pt.prototype.pause=function(){this.source.pause()};pt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};pt.prototype.pipe=function(){var e=jx.prototype.pipe.apply(this,arguments);return this.resume(),e};pt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};pt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Gx=$((IH,qx)=>{var $k=require("util"),Zx=require("stream").Stream,Hx=Vx();qx.exports=Ee;function Ee(){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}s(Ee,"CombinedStream");$k.inherits(Ee,Zx);Ee.create=function(e){var t=new this;e=e||{};for(var o in e)t[o]=e[o];return t};Ee.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ee.prototype.append=function(e){var t=Ee.isStreamLike(e);if(t){if(!(e instanceof Hx)){var o=Hx.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=o}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ee.prototype.pipe=function(e,t){return Zx.prototype.pipe.call(this,e,t),this.resume(),e};Ee.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}};Ee.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(o){var n=Ee.isStreamLike(o);n&&(o.on("data",this._checkDataSize.bind(this)),this._handleErrors(o)),this._pipeNext(o)}.bind(this))};Ee.prototype._pipeNext=function(e){this._currentStream=e;var t=Ee.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var o=e;this.write(o),this._getNext()};Ee.prototype._handleErrors=function(e){var t=this;e.on("error",function(o){t._emitError(o)})};Ee.prototype.write=function(e){this.emit("data",e)};Ee.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ee.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")};Ee.prototype.end=function(){this._reset(),this.emit("end")};Ee.prototype.destroy=function(){this._reset(),this.emit("close")};Ee.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ee.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ee.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ee.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Kx=$((wH,Wx)=>{"use strict";Wx.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 Yx=$(Ke=>{"use strict";var Mc=Kx(),Rk=require("path").extname,Jx=/^\s*([^;\s]*)(?:;|\s|$)/,Ck=/^text\//i;Ke.charset=Xx;Ke.charsets={lookup:Xx};Ke.contentType=Dk;Ke.extension=zk;Ke.extensions=Object.create(null);Ke.lookup=Nk;Ke.types=Object.create(null);Mk(Ke.extensions,Ke.types);function Xx(e){if(!e||typeof e!="string")return!1;var t=Jx.exec(e),o=t&&Mc[t[1].toLowerCase()];return o&&o.charset?o.charset:t&&Ck.test(t[1])?"UTF-8":!1}s(Xx,"charset");function Dk(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ke.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var o=Ke.charset(t);o&&(t+="; charset="+o.toLowerCase())}return t}s(Dk,"contentType");function zk(e){if(!e||typeof e!="string")return!1;var t=Jx.exec(e),o=t&&Ke.extensions[t[1].toLowerCase()];return!o||!o.length?!1:o[0]}s(zk,"extension");function Nk(e){if(!e||typeof e!="string")return!1;var t=Rk("x."+e).toLowerCase().substr(1);return t&&Ke.types[t]||!1}s(Nk,"lookup");function Mk(e,t){var o=["nginx","apache",void 0,"iana"];Object.keys(Mc).forEach(s(function(r){var i=Mc[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var c=0;c<a.length;c++){var u=a[c];if(t[u]){var l=o.indexOf(Mc[t[u]].source),d=o.indexOf(i.source);if(t[u]!=="application/octet-stream"&&(l>d||l===d&&t[u].substr(0,12)==="application/"))continue}t[u]=r}}},"forEachMimeType"))}s(Mk,"populateMaps")});var e_=$(($H,Qx)=>{Qx.exports=Uk;function Uk(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(Uk,"defer")});var zf=$((CH,r_)=>{var t_=e_();r_.exports=Lk;function Lk(e){var t=!1;return t_(function(){t=!0}),s(function(n,r){t?e(n,r):t_(s(function(){e(n,r)},"nextTick_callback"))},"async_callback")}s(Lk,"async")});var Nf=$((zH,o_)=>{o_.exports=Fk;function Fk(e){Object.keys(e.jobs).forEach(jk.bind(e)),e.jobs={}}s(Fk,"abort");function jk(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(jk,"clean")});var Mf=$((MH,i_)=>{var n_=zf(),Bk=Nf();i_.exports=Vk;function Vk(e,t,o,n){var r=o.keyedList?o.keyedList[o.index]:o.index;o.jobs[r]=Hk(t,r,e[r],function(i,a){r in o.jobs&&(delete o.jobs[r],i?Bk(o):o.results[r]=a,n(i,o.results))})}s(Vk,"iterate");function Hk(e,t,o,n){var r;return e.length==2?r=e(o,n_(n)):r=e(o,t,n_(n)),r}s(Hk,"runJob")});var Uf=$((LH,a_)=>{a_.exports=Zk;function Zk(e,t){var o=!Array.isArray(e),n={index:0,keyedList:o||t?Object.keys(e):null,jobs:{},results:o?{}:[],size:o?Object.keys(e).length:e.length};return t&&n.keyedList.sort(o?t:function(r,i){return t(e[r],e[i])}),n}s(Zk,"state")});var Lf=$((jH,s_)=>{var qk=Nf(),Gk=zf();s_.exports=Wk;function Wk(e){Object.keys(this.jobs).length&&(this.index=this.size,qk(this),Gk(e)(null,this.results))}s(Wk,"terminator")});var u_=$((VH,c_)=>{var Kk=Mf(),Jk=Uf(),Xk=Lf();c_.exports=Yk;function Yk(e,t,o){for(var n=Jk(e);n.index<(n.keyedList||e).length;)Kk(e,t,n,function(r,i){if(r){o(r,i);return}if(Object.keys(n.jobs).length===0){o(null,n.results);return}}),n.index++;return Xk.bind(n,o)}s(Yk,"parallel")});var Ff=$((ZH,Uc)=>{var l_=Mf(),Qk=Uf(),e$=Lf();Uc.exports=t$;Uc.exports.ascending=d_;Uc.exports.descending=r$;function t$(e,t,o,n){var r=Qk(e,o);return l_(e,t,r,s(function i(a,c){if(a){n(a,c);return}if(r.index++,r.index<(r.keyedList||e).length){l_(e,t,r,i);return}n(null,r.results)},"iteratorHandler")),e$.bind(r,n)}s(t$,"serialOrdered");function d_(e,t){return e<t?-1:e>t?1:0}s(d_,"ascending");function r$(e,t){return-1*d_(e,t)}s(r$,"descending")});var m_=$((GH,p_)=>{var o$=Ff();p_.exports=n$;function n$(e,t,o){return o$(e,t,null,o)}s(n$,"serial")});var h_=$((KH,f_)=>{f_.exports={parallel:u_(),serial:m_(),serialOrdered:Ff()}});var jf=$((JH,g_)=>{"use strict";g_.exports=Object});var v_=$((XH,y_)=>{"use strict";y_.exports=Error});var __=$((YH,x_)=>{"use strict";x_.exports=EvalError});var b_=$((QH,P_)=>{"use strict";P_.exports=RangeError});var E_=$((eZ,A_)=>{"use strict";A_.exports=ReferenceError});var I_=$((tZ,T_)=>{"use strict";T_.exports=SyntaxError});var Lc=$((rZ,S_)=>{"use strict";S_.exports=TypeError});var O_=$((oZ,w_)=>{"use strict";w_.exports=URIError});var $_=$((nZ,k_)=>{"use strict";k_.exports=Math.abs});var C_=$((iZ,R_)=>{"use strict";R_.exports=Math.floor});var z_=$((aZ,D_)=>{"use strict";D_.exports=Math.max});var M_=$((sZ,N_)=>{"use strict";N_.exports=Math.min});var L_=$((cZ,U_)=>{"use strict";U_.exports=Math.pow});var j_=$((uZ,F_)=>{"use strict";F_.exports=Math.round});var V_=$((lZ,B_)=>{"use strict";B_.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var Z_=$((pZ,H_)=>{"use strict";var i$=V_();H_.exports=s(function(t){return i$(t)||t===0?t:t<0?-1:1},"sign")});var G_=$((fZ,q_)=>{"use strict";q_.exports=Object.getOwnPropertyDescriptor});var Bf=$((hZ,W_)=>{"use strict";var Fc=G_();if(Fc)try{Fc([],"length")}catch{Fc=null}W_.exports=Fc});var J_=$((gZ,K_)=>{"use strict";var jc=Object.defineProperty||!1;if(jc)try{jc({},"a",{value:1})}catch{jc=!1}K_.exports=jc});var Vf=$((yZ,X_)=>{"use strict";X_.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),n=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;t[o]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,o);if(c.value!==r||c.enumerable!==!0)return!1}return!0},"hasSymbols")});var eP=$((xZ,Q_)=>{"use strict";var Y_=typeof Symbol<"u"&&Symbol,a$=Vf();Q_.exports=s(function(){return typeof Y_!="function"||typeof Symbol!="function"||typeof Y_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a$()},"hasNativeSymbols")});var Hf=$((PZ,tP)=>{"use strict";tP.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Zf=$((bZ,rP)=>{"use strict";var s$=jf();rP.exports=s$.getPrototypeOf||null});var iP=$((AZ,nP)=>{"use strict";var c$="Function.prototype.bind called on incompatible ",u$=Object.prototype.toString,l$=Math.max,d$="[object Function]",oP=s(function(t,o){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<o.length;i+=1)n[i+t.length]=o[i];return n},"concatty"),p$=s(function(t,o){for(var n=[],r=o||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n},"slicy"),m$=s(function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o},"joiny");nP.exports=s(function(t){var o=this;if(typeof o!="function"||u$.apply(o)!==d$)throw new TypeError(c$+o);for(var n=p$(arguments,1),r,i=s(function(){if(this instanceof r){var d=o.apply(this,oP(n,arguments));return Object(d)===d?d:this}return o.apply(t,oP(n,arguments))},"binder"),a=l$(0,o.length-n.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(r=Function("binder","return function ("+m$(c,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var l=s(function(){},"Empty");l.prototype=o.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var fo=$((TZ,aP)=>{"use strict";var f$=iP();aP.exports=Function.prototype.bind||f$});var Bc=$((IZ,sP)=>{"use strict";sP.exports=Function.prototype.call});var qf=$((SZ,cP)=>{"use strict";cP.exports=Function.prototype.apply});var lP=$((wZ,uP)=>{"use strict";uP.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var pP=$((OZ,dP)=>{"use strict";var h$=fo(),g$=qf(),y$=Bc(),v$=lP();dP.exports=v$||h$.call(y$,g$)});var fP=$((kZ,mP)=>{"use strict";var x$=fo(),_$=Lc(),P$=Bc(),b$=pP();mP.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new _$("a function is required");return b$(x$,P$,t)},"callBindBasic")});var _P=$((RZ,xP)=>{"use strict";var A$=fP(),hP=Bf(),yP;try{yP=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Gf=!!yP&&hP&&hP(Object.prototype,"__proto__"),vP=Object,gP=vP.getPrototypeOf;xP.exports=Gf&&typeof Gf.get=="function"?A$([Gf.get]):typeof gP=="function"?s(function(t){return gP(t==null?t:vP(t))},"getDunder"):!1});var TP=$((DZ,EP)=>{"use strict";var PP=Hf(),bP=Zf(),AP=_P();EP.exports=PP?s(function(t){return PP(t)},"getProto"):bP?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return bP(t)},"getProto"):AP?s(function(t){return AP(t)},"getProto"):null});var Wf=$((NZ,IP)=>{"use strict";var E$=Function.prototype.call,T$=Object.prototype.hasOwnProperty,I$=fo();IP.exports=I$.call(E$,T$)});var CP=$((MZ,RP)=>{"use strict";var ne,S$=jf(),w$=v_(),O$=__(),k$=b_(),$$=E_(),vo=I_(),yo=Lc(),R$=O_(),C$=$_(),D$=C_(),z$=z_(),N$=M_(),M$=L_(),U$=j_(),L$=Z_(),kP=Function,Kf=s(function(e){try{return kP('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Fi=Bf(),F$=J_(),Jf=s(function(){throw new yo},"throwTypeError"),j$=Fi?(function(){try{return arguments.callee,Jf}catch{try{return Fi(arguments,"callee").get}catch{return Jf}}})():Jf,ho=eP()(),De=TP(),B$=Zf(),V$=Hf(),$P=qf(),ji=Bc(),go={},H$=typeof Uint8Array>"u"||!De?ne:De(Uint8Array),Ir={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&De?De([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":go,"%AsyncGenerator%":go,"%AsyncGeneratorFunction%":go,"%AsyncIteratorPrototype%":go,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":w$,"%eval%":eval,"%EvalError%":O$,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":kP,"%GeneratorFunction%":go,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&De?De(De([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!De?ne:De(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":S$,"%Object.getOwnPropertyDescriptor%":Fi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":k$,"%ReferenceError%":$$,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!De?ne:De(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&De?De(""[Symbol.iterator]()):ne,"%Symbol%":ho?Symbol:ne,"%SyntaxError%":vo,"%ThrowTypeError%":j$,"%TypedArray%":H$,"%TypeError%":yo,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":R$,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":ji,"%Function.prototype.apply%":$P,"%Object.defineProperty%":F$,"%Object.getPrototypeOf%":B$,"%Math.abs%":C$,"%Math.floor%":D$,"%Math.max%":z$,"%Math.min%":N$,"%Math.pow%":M$,"%Math.round%":U$,"%Math.sign%":L$,"%Reflect.getPrototypeOf%":V$};if(De)try{null.error}catch(e){SP=De(De(e)),Ir["%Error.prototype%"]=SP}var SP,Z$=s(function e(t){var o;if(t==="%AsyncFunction%")o=Kf("async function () {}");else if(t==="%GeneratorFunction%")o=Kf("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=Kf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&De&&(o=De(r.prototype))}return Ir[t]=o,o},"doEval"),wP={__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"]},Bi=fo(),Vc=Wf(),q$=Bi.call(ji,Array.prototype.concat),G$=Bi.call($P,Array.prototype.splice),OP=Bi.call(ji,String.prototype.replace),Hc=Bi.call(ji,String.prototype.slice),W$=Bi.call(ji,RegExp.prototype.exec),K$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J$=/\\(\\)?/g,X$=s(function(t){var o=Hc(t,0,1),n=Hc(t,-1);if(o==="%"&&n!=="%")throw new vo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&o!=="%")throw new vo("invalid intrinsic syntax, expected opening `%`");var r=[];return OP(t,K$,function(i,a,c,u){r[r.length]=c?OP(u,J$,"$1"):a||i}),r},"stringToPath"),Y$=s(function(t,o){var n=t,r;if(Vc(wP,n)&&(r=wP[n],n="%"+r[0]+"%"),Vc(Ir,n)){var i=Ir[n];if(i===go&&(i=Z$(n)),typeof i>"u"&&!o)throw new yo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new vo("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");RP.exports=s(function(t,o){if(typeof t!="string"||t.length===0)throw new yo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new yo('"allowMissing" argument must be a boolean');if(W$(/^%?[^%]*%?$/,t)===null)throw new vo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=X$(t),r=n.length>0?n[0]:"",i=Y$("%"+r+"%",o),a=i.name,c=i.value,u=!1,l=i.alias;l&&(r=l[0],G$(n,q$([0,1],l)));for(var d=1,g=!0;d<n.length;d+=1){var f=n[d],p=Hc(f,0,1),v=Hc(f,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new vo("property names with quotes must have matching quotes");if((f==="constructor"||!g)&&(u=!0),r+="."+f,a="%"+r+"%",Vc(Ir,a))c=Ir[a];else if(c!=null){if(!(f in c)){if(!o)throw new yo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fi&&d+1>=n.length){var b=Fi(c,f);g=!!b,g&&"get"in b&&!("originalValue"in b.get)?c=b.get:c=c[f]}else g=Vc(c,f),c=c[f];g&&!u&&(Ir[a]=c)}}return c},"GetIntrinsic")});var zP=$((LZ,DP)=>{"use strict";var Q$=Vf();DP.exports=s(function(){return Q$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var UP=$((jZ,MP)=>{"use strict";var eR=CP(),NP=eR("%Object.defineProperty%",!0),tR=zP()(),rR=Wf(),oR=Lc(),Zc=tR?Symbol.toStringTag:null;MP.exports=s(function(t,o){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new oR("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Zc&&(n||!rR(t,Zc))&&(NP?NP(t,Zc,{configurable:!r,enumerable:!1,value:o,writable:!1}):t[Zc]=o)},"setToStringTag")});var FP=$((VZ,LP)=>{"use strict";var nR=Function.prototype.call,iR=Object.prototype.hasOwnProperty,aR=fo();LP.exports=aR.call(nR,iR)});var BP=$((HZ,jP)=>{"use strict";jP.exports=function(e,t){return Object.keys(t).forEach(function(o){e[o]=e[o]||t[o]}),e}});var ZP=$((ZZ,HP)=>{"use strict";var eh=Gx(),sR=require("util"),Xf=require("path"),cR=require("http"),uR=require("https"),lR=require("url").parse,dR=require("fs"),pR=require("stream").Stream,mR=require("crypto"),Yf=Yx(),fR=h_(),hR=UP(),Kt=FP(),Qf=BP();function VP(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(VP,"escapeHeaderParam");function ce(e){if(!(this instanceof ce))return new ce(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],eh.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ce,"FormData");sR.inherits(ce,eh);ce.LINE_BREAK=`\r
2
- `;ce.DEFAULT_CONTENT_TYPE="application/octet-stream";ce.prototype.append=function(e,t,o){o=o||{},typeof o=="string"&&(o={filename:o});var n=eh.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(e,t,o),i=this._multiPartFooter();n(r),n(t),n(i),this._trackLength(r,t,o)};ce.prototype._trackLength=function(e,t,o){var n=0;o.knownLength!=null?n+=Number(o.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ce.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Kt(t,"httpVersion"))&&!(t instanceof pR))&&(o.knownLength||this._valuesToMeasure.push(t))};ce.prototype._lengthRetriever=function(e,t){Kt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):dR.stat(e.path,function(o,n){if(o){t(o);return}var r=n.size-(e.start?e.start:0);t(null,r)}):Kt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Kt(e,"httpModule")?(e.on("response",function(o){e.pause(),t(null,Number(o.headers["content-length"]))}),e.resume()):t("Unknown stream")};ce.prototype._multiPartHeader=function(e,t,o){if(typeof o.header=="string")return o.header;var n=this._getContentDisposition(t,o),r=this._getContentType(t,o),i="",a={"Content-Disposition":["form-data",'name="'+VP(e)+'"'].concat(n||[]),"Content-Type":[].concat(r||[])};typeof o.header=="object"&&Qf(a,o.header);var c;for(var u in a)if(Kt(a,u)){if(c=a[u],c==null)continue;Array.isArray(c)||(c=[c]),c.length&&(i+=u+": "+c.join("; ")+ce.LINE_BREAK)}return"--"+this.getBoundary()+ce.LINE_BREAK+i+ce.LINE_BREAK};ce.prototype._getContentDisposition=function(e,t){var o;if(typeof t.filepath=="string"?o=Xf.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?o=Xf.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Kt(e,"httpVersion")&&(o=Xf.basename(e.client._httpMessage.path||"")),o)return'filename="'+VP(o)+'"'};ce.prototype._getContentType=function(e,t){var o=t.contentType;return!o&&e&&e.name&&(o=Yf.lookup(e.name)),!o&&e&&e.path&&(o=Yf.lookup(e.path)),!o&&e&&e.readable&&Kt(e,"httpVersion")&&(o=e.headers["content-type"]),!o&&(t.filepath||t.filename)&&(o=Yf.lookup(t.filepath||t.filename)),!o&&e&&typeof e=="object"&&(o=ce.DEFAULT_CONTENT_TYPE),o};ce.prototype._multiPartFooter=function(){return function(e){var t=ce.LINE_BREAK,o=this._streams.length===0;o&&(t+=this._lastBoundary()),e(t)}.bind(this)};ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ce.LINE_BREAK};ce.prototype.getHeaders=function(e){var t,o={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Kt(e,t)&&(o[t.toLowerCase()]=e[t]);return o};ce.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ce.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),o=0,n=this._streams.length;o<n;o++)typeof this._streams[o]!="function"&&(Buffer.isBuffer(this._streams[o])?e=Buffer.concat([e,this._streams[o]]):e=Buffer.concat([e,Buffer.from(this._streams[o])]),(typeof this._streams[o]!="string"||this._streams[o].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ce.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ce.prototype._generateBoundary=function(){this._boundary="--------------------------"+mR.randomBytes(12).toString("hex")};ce.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ce.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ce.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}fR.parallel(this._valuesToMeasure,this._lengthRetriever,function(o,n){if(o){e(o);return}n.forEach(function(r){t+=r}),e(null,t)})};ce.prototype.submit=function(e,t){var o,n,r={method:"post"};return typeof e=="string"?(e=lR(e),n=Qf({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(n=Qf(e,r),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?o=uR.request(n):o=cR.request(n),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&o.setHeader("Content-Length",a),this.pipe(o),t){var c,u=s(function(l,d){return o.removeListener("error",u),o.removeListener("response",c),t.call(this,l,d)},"callback");c=u.bind(this,null),o.on("error",u),o.on("response",c)}}.bind(this)),o};ce.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ce.prototype.toString=function(){return"[object FormData]"};hR(ce.prototype,"FormData");HP.exports=ce});var Pe={};Xe(Pe,{__addDisposableResource:()=>xb,__assign:()=>Gc,__asyncDelegator:()=>db,__asyncGenerator:()=>lb,__asyncValues:()=>pb,__await:()=>_o,__awaiter:()=>nb,__classPrivateFieldGet:()=>gb,__classPrivateFieldIn:()=>vb,__classPrivateFieldSet:()=>yb,__createBinding:()=>Kc,__decorate:()=>tb,__disposeResources:()=>_b,__esDecorate:()=>IR,__exportStar:()=>ab,__extends:()=>QP,__generator:()=>ib,__importDefault:()=>hb,__importStar:()=>fb,__makeTemplateObject:()=>mb,__metadata:()=>ob,__param:()=>rb,__propKey:()=>wR,__read:()=>rh,__rest:()=>eb,__runInitializers:()=>SR,__setFunctionName:()=>OR,__spread:()=>sb,__spreadArray:()=>ub,__spreadArrays:()=>cb,__values:()=>Wc,default:()=>RR});function QP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");th(e,t);function o(){this.constructor=e}s(o,"__"),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}function eb(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function tb(e,t,o,n){var r=arguments.length,i=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}function rb(e,t){return function(o,n){t(o,n,e)}}function IR(e,t,o,n,r,i){function a(A){if(A!==void 0&&typeof A!="function")throw new TypeError("Function expected");return A}s(a,"accept");for(var c=n.kind,u=c==="getter"?"get":c==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),g,f=!1,p=o.length-1;p>=0;p--){var v={};for(var b in n)v[b]=b==="access"?{}:n[b];for(var b in n.access)v.access[b]=n.access[b];v.addInitializer=function(A){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(A||null))};var T=(0,o[p])(c==="accessor"?{get:d.get,set:d.set}:d[u],v);if(c==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(g=a(T.get))&&(d.get=g),(g=a(T.set))&&(d.set=g),(g=a(T.init))&&r.unshift(g)}else(g=a(T))&&(c==="field"?r.unshift(g):d[u]=g)}l&&Object.defineProperty(l,n.name,d),f=!0}function SR(e,t,o){for(var n=arguments.length>2,r=0;r<t.length;r++)o=n?t[r].call(e,o):t[r].call(e);return n?o:void 0}function wR(e){return typeof e=="symbol"?e:"".concat(e)}function OR(e,t,o){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function ob(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function nb(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return s(r,"adopt"),new(o||(o=Promise))(function(i,a){function c(d){try{l(n.next(d))}catch(g){a(g)}}s(c,"fulfilled");function u(d){try{l(n.throw(d))}catch(g){a(g)}}s(u,"rejected");function l(d){d.done?i(d.value):r(d.value).then(c,u)}s(l,"step"),l((n=n.apply(e,t||[])).next())})}function ib(e,t){var o={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},n,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(d){l=[6,d],r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ab(e,t){for(var o in e)o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o)&&Kc(t,e,o)}function Wc(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rh(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(c){a={error:c}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}return i}function sb(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rh(arguments[t]));return e}function cb(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<o;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,r++)n[r]=i[a];return n}function ub(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function _o(e){return this instanceof _o?(this.v=e,this):new _o(e)}function lb(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(f){n[f]&&(r[f]=function(p){return new Promise(function(v,b){i.push([f,p,v,b])>1||c(f,p)})})}function c(f,p){try{u(n[f](p))}catch(v){g(i[0][3],v)}}function u(f){f.value instanceof _o?Promise.resolve(f.value.v).then(l,d):g(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function db(e){var t,o;return t={},n("next"),n("throw",function(r){throw r}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(r,i){t[r]=e[r]?function(a){return(o=!o)?{value:_o(e[r](a)),done:!1}:i?i(a):a}:i}}function pb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof Wc=="function"?Wc(e):e[Symbol.iterator](),o={},n("next"),n("throw"),n("return"),o[Symbol.asyncIterator]=function(){return this},o);function n(i){o[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),r(c,u,a.done,a.value)})}}function r(i,a,c,u){Promise.resolve(u).then(function(l){i({value:l,done:c})},a)}}function mb(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function fb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)&&Kc(t,e,o);return kR(t,e),t}function hb(e){return e&&e.__esModule?e:{default:e}}function gb(e,t,o,n){if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?n:o==="a"?n.call(e):n?n.value:t.get(e)}function yb(e,t,o,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(e,o):r?r.value=o:t.set(e,o),o}function vb(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function xb(e,t,o){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:o})}else o&&e.stack.push({async:!0});return t}function _b(e){function t(n){e.error=e.hasError?new $R(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}s(t,"fail");function o(){for(;e.stack.length;){var n=e.stack.pop();try{var r=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(r).then(o,function(i){return t(i),o()})}catch(i){t(i)}}if(e.hasError)throw e.error}return s(o,"next"),o()}var th,Gc,Kc,kR,$R,RR,be=kT(()=>{th=s(function(e,t){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])},th(e,t)},"extendStatics");s(QP,"__extends");Gc=s(function(){return Gc=Object.assign||s(function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},"__assign"),Gc.apply(this,arguments)},"__assign");s(eb,"__rest");s(tb,"__decorate");s(rb,"__param");s(IR,"__esDecorate");s(SR,"__runInitializers");s(wR,"__propKey");s(OR,"__setFunctionName");s(ob,"__metadata");s(nb,"__awaiter");s(ib,"__generator");Kc=Object.create?(function(e,t,o,n){n===void 0&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[o]},"get")}),Object.defineProperty(e,n,r)}):(function(e,t,o,n){n===void 0&&(n=o),e[n]=t[o]});s(ab,"__exportStar");s(Wc,"__values");s(rh,"__read");s(sb,"__spread");s(cb,"__spreadArrays");s(ub,"__spreadArray");s(_o,"__await");s(lb,"__asyncGenerator");s(db,"__asyncDelegator");s(pb,"__asyncValues");s(mb,"__makeTemplateObject");kR=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};s(fb,"__importStar");s(hb,"__importDefault");s(gb,"__classPrivateFieldGet");s(yb,"__classPrivateFieldSet");s(vb,"__classPrivateFieldIn");s(xb,"__addDisposableResource");$R=typeof SuppressedError=="function"?SuppressedError:function(e,t,o){var n=new Error(o);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};s(_b,"__disposeResources");RR={__extends:QP,__assign:Gc,__rest:eb,__decorate:tb,__param:rb,__metadata:ob,__awaiter:nb,__generator:ib,__createBinding:Kc,__exportStar:ab,__values:Wc,__read:rh,__spread:sb,__spreadArrays:cb,__spreadArray:ub,__await:_o,__asyncGenerator:lb,__asyncDelegator:db,__asyncValues:pb,__makeTemplateObject:mb,__importStar:fb,__importDefault:hb,__classPrivateFieldGet:gb,__classPrivateFieldSet:yb,__classPrivateFieldIn:vb,__addDisposableResource:xb,__disposeResources:_b}});var Hi=$(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.RequestMethod=void 0;var Pb;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Pb||(Jc.RequestMethod=Pb={}))});var bb=$(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.BatchRequestContent=void 0;var Po=(be(),ve(Pe)),oh=Hi(),CR=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var o=e.requestLimit;if(t.length>o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var o=s(function(a){for(var c=a.entries(),u=c.next();!u.done;){var l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;u=c.next()}return!0},"isParallel"),n=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=u;for(u=c.next();!u.done;){var g=u.value[1];if(g.dependsOn===void 0||g.dependsOn.length!==1||g.dependsOn[0]!==d.value[1].id)return!1;d=u,u=c.next()}return!0},"isSerial"),r=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var g=l.dependsOn[0];if(g!==l.id&&a.has(g))d=g;else return!1}else return!1;for(u=c.next();!u.done;){var f=u.value[1];if((f.dependsOn===void 0||f.dependsOn.length===0)&&d!==f.id||f.dependsOn!==void 0&&f.dependsOn.length!==0&&(f.dependsOn.length===1&&(f.id===d||f.dependsOn[0]!==d)||f.dependsOn.length>1))return!1;u=c.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return o(t)||n(t)||r(t)},e.getRequestData=function(t){return Po.__awaiter(this,void 0,void 0,function(){var o,n,r,i;return Po.__generator(this,function(a){switch(a.label){case 0:return o={url:""},n=new RegExp("^https?://"),o.url=n.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,o.method=t.method,r={},t.headers.forEach(function(c,u){r[u]=c}),Object.keys(r).length&&(o.headers=r),t.method===oh.RequestMethod.PATCH||t.method===oh.RequestMethod.POST||t.method===oh.RequestMethod.PUT?(i=o,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,o]}})})},e.getRequestBody=function(t){return Po.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u,l;return Po.__generator(this,function(d){switch(d.label){case 0:o=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return n=d.sent(),o=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(o)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),c=new FileReader,[4,new Promise(function(g){c.addEventListener("load",function(){var f=c.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),v=p.exec(f);g(v[4])},!1),c.readAsDataURL(a)})];case 7:return n=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:u=d.sent(),n=u.toString("base64"),d.label=10;case 10:return o=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,n]}})})},e.prototype.addRequest=function(t){var o=e.requestLimit;if(t.id===""){var n=new Error("Id for a request is empty, Please provide an unique id");throw n.name="Empty Id For Request",n}if(this.requests.size===o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}if(this.requests.has(t.id)){var n=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw n.name="Duplicate RequestId Error",n}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var o=this.requests.delete(t),n=this.requests.entries(),r=n.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=n.next()}return o},e.prototype.getContent=function(){return Po.__awaiter(this,void 0,void 0,function(){var t,o,n,r,c,c,i,a,c;return Po.__generator(this,function(u){switch(u.label){case 0:if(t=[],o={requests:t},n=this.requests.entries(),r=n.next(),r.done)throw c=new Error("No requests added yet, Please add at least one request."),c.name="Empty Payload",c;if(!e.validateDependencies(this.requests))throw c=new Error(`Invalid dependency found, Dependency should be:
1
+ "use strict";var ST=Object.create;var Uo=Object.defineProperty;var wT=Object.getOwnPropertyDescriptor;var OT=Object.getOwnPropertyNames;var kT=Object.getPrototypeOf,RT=Object.prototype.hasOwnProperty;var s=(e,t)=>Uo(e,"name",{value:t,configurable:!0});var $T=(e,t,o)=>()=>{if(o)throw o[0];try{return e&&(t=e(e=0)),t}catch(n){throw o=[n],n}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},Xe=(e,t)=>{for(var o in t)Uo(e,o,{get:t[o],enumerable:!0})},Rg=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of OT(t))!RT.call(e,r)&&r!==o&&Uo(e,r,{get:()=>t[r],enumerable:!(n=wT(t,r))||n.enumerable});return e};var Fe=(e,t,o)=>(o=e!=null?ST(kT(e)):{},Rg(t||!e||!e.__esModule?Uo(o,"default",{value:e,enumerable:!0}):o,e)),ve=e=>Rg(Uo({},"__esModule",{value:!0}),e);var Rv=R((kv,Rc)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",o={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function u(p,v){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let b=0,E=-1,I=(p.match(c.zoneIndex)||[])[0],w,U;for(I&&(I=I.substring(1),p=p.replace(/%.+$/,""));(E=p.indexOf(":",E+1))>=0;)b++;if(p.substr(0,2)==="::"&&b--,p.substr(-2,2)==="::"&&b--,b>v)return null;for(U=v-b,w=":";U--;)w+="0:";return p=p.replace("::",w),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),v=(function(){let ie=p.split(":"),ue=[];for(let Se=0;Se<ie.length;Se++)ue.push(parseInt(ie[Se],16));return ue})(),{parts:v,zoneId:I}}s(u,"expandIPv6");function l(p,v,b,E){if(p.length!==v.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let I=0,w;for(;E>0;){if(w=b-E,w<0&&(w=0),p[I]>>w!==v[I]>>w)return!1;E-=b,I+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(n.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function h(p,v){for(;p.length<v;)p=`0${p}`;return p}s(h,"padPart");let f={};f.IPv4=(function(){function p(v){if(v.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,E;for(b=0;b<v.length;b++)if(E=v[b],!(0<=E&&E<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=v}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(v,b){let E;if(b===void 0&&(E=v,v=E[0],b=E[1]),v.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,v.octets,8,b)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,b=!1,E={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},I,w,U;for(I=3;I>=0;I-=1)if(w=this.octets[I],w in E){if(U=E[w],b&&U!==0)return null;U!==8&&(b=!0),v+=U}else return null;return 32-v},p.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),f.IPv4.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),b=v[0].toByteArray(),E=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),I=[],w=0;for(;w<4;)I.push(parseInt(b[w],10)|parseInt(E[w],10)^255),w++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(p){return this.parser(p)!==null},f.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(p){return!!(f.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(p){let v=p.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(p)||!v?!1:f.IPv4.isValidFourPartDecimal(v[1])},f.IPv4.networkAddressFromCIDR=function(p){let v,b,E,I,w;try{for(v=this.parseCIDR(p),E=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),I=[],b=0;b<4;)I.push(parseInt(E[b],10)&parseInt(w[b],10)),b++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(p){let v=this.parser(p);if(v===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(v)},f.IPv4.parseCIDR=function(p){let v;if(v=p.match(/^(.+)\/(\d+)$/)){let b=parseInt(v[2]);if(b>=0&&b<=32){let E=[this.parse(v[1]),b];return Object.defineProperty(E,"toString",{value:s(function(){return this.join("/")},"value")}),E}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(p){let v,b,E;if(v=p.match(o.fourOctet))return(function(){let I=v.slice(1,6),w=[];for(let U=0;U<I.length;U++)b=I[U],w.push(d(b));return w})();if(v=p.match(o.longValue)){if(E=d(v[1]),E>4294967295||E<0)throw new Error("ipaddr: address outside defined range");return(function(){let I=[],w;for(w=0;w<=24;w+=8)I.push(E>>w&255);return I})().reverse()}else return(v=p.match(o.twoOctet))?(function(){let I=v.slice(1,4),w=[];if(E=d(I[1]),E>16777215||E<0)throw new Error("ipaddr: address outside defined range");return w.push(d(I[0])),w.push(E>>16&255),w.push(E>>8&255),w.push(E&255),w})():(v=p.match(o.threeOctet))?(function(){let I=v.slice(1,5),w=[];if(E=d(I[2]),E>65535||E<0)throw new Error("ipaddr: address outside defined range");return w.push(d(I[0])),w.push(d(I[1])),w.push(E>>8&255),w.push(E&255),w})():null},f.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let v=[0,0,0,0],b=0,E=Math.floor(p/8);for(;b<E;)v[b]=255,b++;return E<4&&(v[E]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},f.IPv6=(function(){function p(v,b){let E,I;if(v.length===16)for(this.parts=[],E=0;E<=14;E+=2)this.parts.push(v[E]<<8|v[E+1]);else if(v.length===8)this.parts=v;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(E=0;E<this.parts.length;E++)if(I=this.parts[E],!(0<=I&&I<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(v,b){let E;if(b===void 0&&(E=v,v=E[0],b=E[1]),v.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,v.parts,16,b)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,b=!1,E={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},I,w;for(let U=7;U>=0;U-=1)if(I=this.parts[U],I in E){if(w=E[I],b&&w!==0)return null;w!==16&&(b=!0),v+=w}else return null;return 128-v},p.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let v,b=[],E=this.parts;for(let I=0;I<E.length;I++)v=E[I],b.push(v>>8),b.push(v&255);return b},p.prototype.toFixedLengthString=function(){let v=(function(){let E=[];for(let I=0;I<this.parts.length;I++)E.push(h(this.parts[I].toString(16),4));return E}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),v+b},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let v=this.parts.slice(-2),b=v[0],E=v[1];return new f.IPv4([b>>8,b&255,E>>8,E&255])},p.prototype.toNormalizedString=function(){let v=(function(){let E=[];for(let I=0;I<this.parts.length;I++)E.push(this.parts[I].toString(16));return E}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),v+b},p.prototype.toRFC5952String=function(){let v=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString(),E=0,I=-1,w;for(;w=v.exec(b);)w[0].length>I&&(E=w.index,I=w[0].length);return I<0?b:`${b.substring(0,E)}::${b.substring(E+I)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),f.IPv6.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),b=v[0].toByteArray(),E=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),I=[],w=0;for(;w<16;)I.push(parseInt(b[w],10)|parseInt(E[w],10)^255),w++;return new this(I)}catch(v){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${v})`)}},f.IPv6.isIPv6=function(p){return this.parser(p)!==null},f.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let v=this.parser(p);return new this(v.parts,v.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(p){let v,b,E,I,w;try{for(v=this.parseCIDR(p),E=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),I=[],b=0;b<16;)I.push(parseInt(E[b],10)&parseInt(w[b],10)),b++;return new this(I)}catch(U){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${U})`)}},f.IPv6.parse=function(p){let v=this.parser(p);if(v.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(v.parts,v.zoneId)},f.IPv6.parseCIDR=function(p){let v,b,E;if((b=p.match(/^(.+)\/(\d+)$/))&&(v=parseInt(b[2]),v>=0&&v<=128))return E=[this.parse(b[1]),v],Object.defineProperty(E,"toString",{value:s(function(){return this.join("/")},"value")}),E;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(p){let v,b,E,I,w,U;if(E=p.match(c.deprecatedTransitional))return this.parser(`::ffff:${E[1]}`);if(c.native.test(p))return u(p,8);if((E=p.match(c.transitional))&&(U=E[6]||"",v=E[1],E[1].endsWith("::")||(v=v.slice(0,-1)),v=u(v+U,6),v.parts)){for(w=[parseInt(E[2]),parseInt(E[3]),parseInt(E[4]),parseInt(E[5])],b=0;b<w.length;b++)if(I=w[b],!(0<=I&&I<=255))return null;return v.parts.push(w[0]<<8|w[1]),v.parts.push(w[2]<<8|w[3]),{parts:v.parts,zoneId:v.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0,E=Math.floor(p/8);for(;b<E;)v[b]=255,b++;return E<16&&(v[E]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},f.fromByteArray=function(p){let v=p.length;if(v===4)return new f.IPv4(p);if(v===16)return new f.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(p){return f.IPv6.isValid(p)||f.IPv4.isValid(p)},f.isValidCIDR=function(p){return f.IPv6.isValidCIDR(p)||f.IPv4.isValidCIDR(p)},f.parse=function(p){if(f.IPv6.isValid(p))return f.IPv6.parse(p);if(f.IPv4.isValid(p))return f.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(p){try{return f.IPv6.parseCIDR(p)}catch{try{return f.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(p){let v=this.parse(p);return v.kind()==="ipv6"&&v.isIPv4MappedAddress()?v.toIPv4Address():v},f.subnetMatch=function(p,v,b){let E,I,w,U;b==null&&(b="unicast");for(I in v)if(Object.prototype.hasOwnProperty.call(v,I)){for(w=v[I],w[0]&&!(w[0]instanceof Array)&&(w=[w]),E=0;E<w.length;E++)if(U=w[E],p.kind()===U[0].kind()&&p.match.apply(p,U))return I}return b},typeof Rc<"u"&&Rc.exports?Rc.exports=f:e.ipaddr=f})(kv)});var Zx=R((DH,Hx)=>{var Vx=require("stream").Stream,$k=require("util");Hx.exports=pt;function pt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(pt,"DelayedStream");$k.inherits(pt,Vx);pt.create=function(e,t){var o=new this;t=t||{};for(var n in t)o[n]=t[n];o.source=e;var r=e.emit;return e.emit=function(){return o._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),o.pauseStream&&e.pause(),o};Object.defineProperty(pt.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});pt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};pt.prototype.resume=function(){this._released||this.release(),this.source.resume()};pt.prototype.pause=function(){this.source.pause()};pt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};pt.prototype.pipe=function(){var e=Vx.prototype.pipe.apply(this,arguments);return this.resume(),e};pt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};pt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Kx=R((NH,Wx)=>{var Ck=require("util"),Gx=require("stream").Stream,qx=Zx();Wx.exports=Ee;function Ee(){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}s(Ee,"CombinedStream");Ck.inherits(Ee,Gx);Ee.create=function(e){var t=new this;e=e||{};for(var o in e)t[o]=e[o];return t};Ee.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ee.prototype.append=function(e){var t=Ee.isStreamLike(e);if(t){if(!(e instanceof qx)){var o=qx.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=o}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ee.prototype.pipe=function(e,t){return Gx.prototype.pipe.call(this,e,t),this.resume(),e};Ee.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}};Ee.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(o){var n=Ee.isStreamLike(o);n&&(o.on("data",this._checkDataSize.bind(this)),this._handleErrors(o)),this._pipeNext(o)}.bind(this))};Ee.prototype._pipeNext=function(e){this._currentStream=e;var t=Ee.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var o=e;this.write(o),this._getNext()};Ee.prototype._handleErrors=function(e){var t=this;e.on("error",function(o){t._emitError(o)})};Ee.prototype.write=function(e){this.emit("data",e)};Ee.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ee.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")};Ee.prototype.end=function(){this._reset(),this.emit("end")};Ee.prototype.destroy=function(){this._reset(),this.emit("close")};Ee.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ee.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ee.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ee.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Xx=R((UH,Jx)=>{"use strict";Jx.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 e_=R(Ke=>{"use strict";var Uc=Xx(),Dk=require("path").extname,Yx=/^\s*([^;\s]*)(?:;|\s|$)/,zk=/^text\//i;Ke.charset=Qx;Ke.charsets={lookup:Qx};Ke.contentType=Nk;Ke.extension=Mk;Ke.extensions=Object.create(null);Ke.lookup=Uk;Ke.types=Object.create(null);Lk(Ke.extensions,Ke.types);function Qx(e){if(!e||typeof e!="string")return!1;var t=Yx.exec(e),o=t&&Uc[t[1].toLowerCase()];return o&&o.charset?o.charset:t&&zk.test(t[1])?"UTF-8":!1}s(Qx,"charset");function Nk(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ke.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var o=Ke.charset(t);o&&(t+="; charset="+o.toLowerCase())}return t}s(Nk,"contentType");function Mk(e){if(!e||typeof e!="string")return!1;var t=Yx.exec(e),o=t&&Ke.extensions[t[1].toLowerCase()];return!o||!o.length?!1:o[0]}s(Mk,"extension");function Uk(e){if(!e||typeof e!="string")return!1;var t=Dk("x."+e).toLowerCase().substr(1);return t&&Ke.types[t]||!1}s(Uk,"lookup");function Lk(e,t){var o=["nginx","apache",void 0,"iana"];Object.keys(Uc).forEach(s(function(r){var i=Uc[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var c=0;c<a.length;c++){var u=a[c];if(t[u]){var l=o.indexOf(Uc[t[u]].source),d=o.indexOf(i.source);if(t[u]!=="application/octet-stream"&&(l>d||l===d&&t[u].substr(0,12)==="application/"))continue}t[u]=r}}},"forEachMimeType"))}s(Lk,"populateMaps")});var r_=R((jH,t_)=>{t_.exports=Fk;function Fk(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(Fk,"defer")});var zf=R((VH,n_)=>{var o_=r_();n_.exports=jk;function jk(e){var t=!1;return o_(function(){t=!0}),s(function(n,r){t?e(n,r):o_(s(function(){e(n,r)},"nextTick_callback"))},"async_callback")}s(jk,"async")});var Nf=R((ZH,i_)=>{i_.exports=Bk;function Bk(e){Object.keys(e.jobs).forEach(Vk.bind(e)),e.jobs={}}s(Bk,"abort");function Vk(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(Vk,"clean")});var Mf=R((GH,s_)=>{var a_=zf(),Hk=Nf();s_.exports=Zk;function Zk(e,t,o,n){var r=o.keyedList?o.keyedList[o.index]:o.index;o.jobs[r]=qk(t,r,e[r],function(i,a){r in o.jobs&&(delete o.jobs[r],i?Hk(o):o.results[r]=a,n(i,o.results))})}s(Zk,"iterate");function qk(e,t,o,n){var r;return e.length==2?r=e(o,a_(n)):r=e(o,t,a_(n)),r}s(qk,"runJob")});var Uf=R((KH,c_)=>{c_.exports=Gk;function Gk(e,t){var o=!Array.isArray(e),n={index:0,keyedList:o||t?Object.keys(e):null,jobs:{},results:o?{}:[],size:o?Object.keys(e).length:e.length};return t&&n.keyedList.sort(o?t:function(r,i){return t(e[r],e[i])}),n}s(Gk,"state")});var Lf=R((XH,u_)=>{var Wk=Nf(),Kk=zf();u_.exports=Jk;function Jk(e){Object.keys(this.jobs).length&&(this.index=this.size,Wk(this),Kk(e)(null,this.results))}s(Jk,"terminator")});var d_=R((QH,l_)=>{var Xk=Mf(),Yk=Uf(),Qk=Lf();l_.exports=eR;function eR(e,t,o){for(var n=Yk(e);n.index<(n.keyedList||e).length;)Xk(e,t,n,function(r,i){if(r){o(r,i);return}if(Object.keys(n.jobs).length===0){o(null,n.results);return}}),n.index++;return Qk.bind(n,o)}s(eR,"parallel")});var Ff=R((tZ,Lc)=>{var p_=Mf(),tR=Uf(),rR=Lf();Lc.exports=oR;Lc.exports.ascending=m_;Lc.exports.descending=nR;function oR(e,t,o,n){var r=tR(e,o);return p_(e,t,r,s(function i(a,c){if(a){n(a,c);return}if(r.index++,r.index<(r.keyedList||e).length){p_(e,t,r,i);return}n(null,r.results)},"iteratorHandler")),rR.bind(r,n)}s(oR,"serialOrdered");function m_(e,t){return e<t?-1:e>t?1:0}s(m_,"ascending");function nR(e,t){return-1*m_(e,t)}s(nR,"descending")});var g_=R((oZ,f_)=>{var iR=Ff();f_.exports=aR;function aR(e,t,o){return iR(e,t,null,o)}s(aR,"serial")});var y_=R((iZ,h_)=>{h_.exports={parallel:d_(),serial:g_(),serialOrdered:Ff()}});var jf=R((aZ,v_)=>{"use strict";v_.exports=Object});var __=R((sZ,x_)=>{"use strict";x_.exports=Error});var b_=R((cZ,P_)=>{"use strict";P_.exports=EvalError});var E_=R((uZ,A_)=>{"use strict";A_.exports=RangeError});var I_=R((lZ,T_)=>{"use strict";T_.exports=ReferenceError});var w_=R((dZ,S_)=>{"use strict";S_.exports=SyntaxError});var Fc=R((pZ,O_)=>{"use strict";O_.exports=TypeError});var R_=R((mZ,k_)=>{"use strict";k_.exports=URIError});var C_=R((fZ,$_)=>{"use strict";$_.exports=Math.abs});var z_=R((gZ,D_)=>{"use strict";D_.exports=Math.floor});var M_=R((hZ,N_)=>{"use strict";N_.exports=Math.max});var L_=R((yZ,U_)=>{"use strict";U_.exports=Math.min});var j_=R((vZ,F_)=>{"use strict";F_.exports=Math.pow});var V_=R((xZ,B_)=>{"use strict";B_.exports=Math.round});var Z_=R((_Z,H_)=>{"use strict";H_.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var G_=R((bZ,q_)=>{"use strict";var sR=Z_();q_.exports=s(function(t){return sR(t)||t===0?t:t<0?-1:1},"sign")});var K_=R((EZ,W_)=>{"use strict";W_.exports=Object.getOwnPropertyDescriptor});var Bf=R((TZ,J_)=>{"use strict";var jc=K_();if(jc)try{jc([],"length")}catch{jc=null}J_.exports=jc});var Y_=R((IZ,X_)=>{"use strict";var Bc=Object.defineProperty||!1;if(Bc)try{Bc({},"a",{value:1})}catch{Bc=!1}X_.exports=Bc});var Vf=R((SZ,Q_)=>{"use strict";Q_.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),n=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;t[o]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,o);if(c.value!==r||c.enumerable!==!0)return!1}return!0},"hasSymbols")});var rP=R((OZ,tP)=>{"use strict";var eP=typeof Symbol<"u"&&Symbol,cR=Vf();tP.exports=s(function(){return typeof eP!="function"||typeof Symbol!="function"||typeof eP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cR()},"hasNativeSymbols")});var Hf=R((RZ,oP)=>{"use strict";oP.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Zf=R(($Z,nP)=>{"use strict";var uR=jf();nP.exports=uR.getPrototypeOf||null});var sP=R((CZ,aP)=>{"use strict";var lR="Function.prototype.bind called on incompatible ",dR=Object.prototype.toString,pR=Math.max,mR="[object Function]",iP=s(function(t,o){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<o.length;i+=1)n[i+t.length]=o[i];return n},"concatty"),fR=s(function(t,o){for(var n=[],r=o||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n},"slicy"),gR=s(function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o},"joiny");aP.exports=s(function(t){var o=this;if(typeof o!="function"||dR.apply(o)!==mR)throw new TypeError(lR+o);for(var n=fR(arguments,1),r,i=s(function(){if(this instanceof r){var d=o.apply(this,iP(n,arguments));return Object(d)===d?d:this}return o.apply(t,iP(n,arguments))},"binder"),a=pR(0,o.length-n.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(r=Function("binder","return function ("+gR(c,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var l=s(function(){},"Empty");l.prototype=o.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var fo=R((zZ,cP)=>{"use strict";var hR=sP();cP.exports=Function.prototype.bind||hR});var Vc=R((NZ,uP)=>{"use strict";uP.exports=Function.prototype.call});var qf=R((MZ,lP)=>{"use strict";lP.exports=Function.prototype.apply});var pP=R((UZ,dP)=>{"use strict";dP.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var fP=R((LZ,mP)=>{"use strict";var yR=fo(),vR=qf(),xR=Vc(),_R=pP();mP.exports=_R||yR.call(xR,vR)});var hP=R((FZ,gP)=>{"use strict";var PR=fo(),bR=Fc(),AR=Vc(),ER=fP();gP.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new bR("a function is required");return ER(PR,AR,t)},"callBindBasic")});var bP=R((BZ,PP)=>{"use strict";var TR=hP(),yP=Bf(),xP;try{xP=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Gf=!!xP&&yP&&yP(Object.prototype,"__proto__"),_P=Object,vP=_P.getPrototypeOf;PP.exports=Gf&&typeof Gf.get=="function"?TR([Gf.get]):typeof vP=="function"?s(function(t){return vP(t==null?t:_P(t))},"getDunder"):!1});var SP=R((HZ,IP)=>{"use strict";var AP=Hf(),EP=Zf(),TP=bP();IP.exports=AP?s(function(t){return AP(t)},"getProto"):EP?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return EP(t)},"getProto"):TP?s(function(t){return TP(t)},"getProto"):null});var Wf=R((qZ,wP)=>{"use strict";var IR=Function.prototype.call,SR=Object.prototype.hasOwnProperty,wR=fo();wP.exports=wR.call(IR,SR)});var zP=R((GZ,DP)=>{"use strict";var ne,OR=jf(),kR=__(),RR=b_(),$R=E_(),CR=I_(),vo=w_(),yo=Fc(),DR=R_(),zR=C_(),NR=z_(),MR=M_(),UR=L_(),LR=j_(),FR=V_(),jR=G_(),$P=Function,Kf=s(function(e){try{return $P('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Fi=Bf(),BR=Y_(),Jf=s(function(){throw new yo},"throwTypeError"),VR=Fi?(function(){try{return arguments.callee,Jf}catch{try{return Fi(arguments,"callee").get}catch{return Jf}}})():Jf,go=rP()(),ze=SP(),HR=Zf(),ZR=Hf(),CP=qf(),ji=Vc(),ho={},qR=typeof Uint8Array>"u"||!ze?ne:ze(Uint8Array),Ir={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":go&&ze?ze([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":ho,"%AsyncGenerator%":ho,"%AsyncGeneratorFunction%":ho,"%AsyncIteratorPrototype%":ho,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":kR,"%eval%":eval,"%EvalError%":RR,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":$P,"%GeneratorFunction%":ho,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":go&&ze?ze(ze([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!go||!ze?ne:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":OR,"%Object.getOwnPropertyDescriptor%":Fi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":$R,"%ReferenceError%":CR,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!go||!ze?ne:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":go&&ze?ze(""[Symbol.iterator]()):ne,"%Symbol%":go?Symbol:ne,"%SyntaxError%":vo,"%ThrowTypeError%":VR,"%TypedArray%":qR,"%TypeError%":yo,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":DR,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":ji,"%Function.prototype.apply%":CP,"%Object.defineProperty%":BR,"%Object.getPrototypeOf%":HR,"%Math.abs%":zR,"%Math.floor%":NR,"%Math.max%":MR,"%Math.min%":UR,"%Math.pow%":LR,"%Math.round%":FR,"%Math.sign%":jR,"%Reflect.getPrototypeOf%":ZR};if(ze)try{null.error}catch(e){OP=ze(ze(e)),Ir["%Error.prototype%"]=OP}var OP,GR=s(function e(t){var o;if(t==="%AsyncFunction%")o=Kf("async function () {}");else if(t==="%GeneratorFunction%")o=Kf("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=Kf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&ze&&(o=ze(r.prototype))}return Ir[t]=o,o},"doEval"),kP={__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"]},Bi=fo(),Hc=Wf(),WR=Bi.call(ji,Array.prototype.concat),KR=Bi.call(CP,Array.prototype.splice),RP=Bi.call(ji,String.prototype.replace),Zc=Bi.call(ji,String.prototype.slice),JR=Bi.call(ji,RegExp.prototype.exec),XR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,YR=/\\(\\)?/g,QR=s(function(t){var o=Zc(t,0,1),n=Zc(t,-1);if(o==="%"&&n!=="%")throw new vo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&o!=="%")throw new vo("invalid intrinsic syntax, expected opening `%`");var r=[];return RP(t,XR,function(i,a,c,u){r[r.length]=c?RP(u,YR,"$1"):a||i}),r},"stringToPath"),e$=s(function(t,o){var n=t,r;if(Hc(kP,n)&&(r=kP[n],n="%"+r[0]+"%"),Hc(Ir,n)){var i=Ir[n];if(i===ho&&(i=GR(n)),typeof i>"u"&&!o)throw new yo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new vo("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");DP.exports=s(function(t,o){if(typeof t!="string"||t.length===0)throw new yo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new yo('"allowMissing" argument must be a boolean');if(JR(/^%?[^%]*%?$/,t)===null)throw new vo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=QR(t),r=n.length>0?n[0]:"",i=e$("%"+r+"%",o),a=i.name,c=i.value,u=!1,l=i.alias;l&&(r=l[0],KR(n,WR([0,1],l)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],p=Zc(f,0,1),v=Zc(f,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new vo("property names with quotes must have matching quotes");if((f==="constructor"||!h)&&(u=!0),r+="."+f,a="%"+r+"%",Hc(Ir,a))c=Ir[a];else if(c!=null){if(!(f in c)){if(!o)throw new yo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fi&&d+1>=n.length){var b=Fi(c,f);h=!!b,h&&"get"in b&&!("originalValue"in b.get)?c=b.get:c=c[f]}else h=Hc(c,f),c=c[f];h&&!u&&(Ir[a]=c)}}return c},"GetIntrinsic")});var MP=R((KZ,NP)=>{"use strict";var t$=Vf();NP.exports=s(function(){return t$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var FP=R((XZ,LP)=>{"use strict";var r$=zP(),UP=r$("%Object.defineProperty%",!0),o$=MP()(),n$=Wf(),i$=Fc(),qc=o$?Symbol.toStringTag:null;LP.exports=s(function(t,o){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new i$("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");qc&&(n||!n$(t,qc))&&(UP?UP(t,qc,{configurable:!r,enumerable:!1,value:o,writable:!1}):t[qc]=o)},"setToStringTag")});var BP=R((QZ,jP)=>{"use strict";var a$=Function.prototype.call,s$=Object.prototype.hasOwnProperty,c$=fo();jP.exports=c$.call(a$,s$)});var HP=R((e2,VP)=>{"use strict";VP.exports=function(e,t){return Object.keys(t).forEach(function(o){e[o]=e[o]||t[o]}),e}});var GP=R((t2,qP)=>{"use strict";var eg=Kx(),u$=require("util"),Xf=require("path"),l$=require("http"),d$=require("https"),p$=require("url").parse,m$=require("fs"),f$=require("stream").Stream,g$=require("crypto"),Yf=e_(),h$=y_(),y$=FP(),Jt=BP(),Qf=HP();function ZP(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(ZP,"escapeHeaderParam");function ce(e){if(!(this instanceof ce))return new ce(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],eg.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ce,"FormData");u$.inherits(ce,eg);ce.LINE_BREAK=`\r
2
+ `;ce.DEFAULT_CONTENT_TYPE="application/octet-stream";ce.prototype.append=function(e,t,o){o=o||{},typeof o=="string"&&(o={filename:o});var n=eg.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(e,t,o),i=this._multiPartFooter();n(r),n(t),n(i),this._trackLength(r,t,o)};ce.prototype._trackLength=function(e,t,o){var n=0;o.knownLength!=null?n+=Number(o.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ce.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Jt(t,"httpVersion"))&&!(t instanceof f$))&&(o.knownLength||this._valuesToMeasure.push(t))};ce.prototype._lengthRetriever=function(e,t){Jt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):m$.stat(e.path,function(o,n){if(o){t(o);return}var r=n.size-(e.start?e.start:0);t(null,r)}):Jt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Jt(e,"httpModule")?(e.on("response",function(o){e.pause(),t(null,Number(o.headers["content-length"]))}),e.resume()):t("Unknown stream")};ce.prototype._multiPartHeader=function(e,t,o){if(typeof o.header=="string")return o.header;var n=this._getContentDisposition(t,o),r=this._getContentType(t,o),i="",a={"Content-Disposition":["form-data",'name="'+ZP(e)+'"'].concat(n||[]),"Content-Type":[].concat(r||[])};typeof o.header=="object"&&Qf(a,o.header);var c;for(var u in a)if(Jt(a,u)){if(c=a[u],c==null)continue;Array.isArray(c)||(c=[c]),c.length&&(i+=u+": "+c.join("; ")+ce.LINE_BREAK)}return"--"+this.getBoundary()+ce.LINE_BREAK+i+ce.LINE_BREAK};ce.prototype._getContentDisposition=function(e,t){var o;if(typeof t.filepath=="string"?o=Xf.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?o=Xf.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Jt(e,"httpVersion")&&(o=Xf.basename(e.client._httpMessage.path||"")),o)return'filename="'+ZP(o)+'"'};ce.prototype._getContentType=function(e,t){var o=t.contentType;return!o&&e&&e.name&&(o=Yf.lookup(e.name)),!o&&e&&e.path&&(o=Yf.lookup(e.path)),!o&&e&&e.readable&&Jt(e,"httpVersion")&&(o=e.headers["content-type"]),!o&&(t.filepath||t.filename)&&(o=Yf.lookup(t.filepath||t.filename)),!o&&e&&typeof e=="object"&&(o=ce.DEFAULT_CONTENT_TYPE),o};ce.prototype._multiPartFooter=function(){return function(e){var t=ce.LINE_BREAK,o=this._streams.length===0;o&&(t+=this._lastBoundary()),e(t)}.bind(this)};ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ce.LINE_BREAK};ce.prototype.getHeaders=function(e){var t,o={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Jt(e,t)&&(o[t.toLowerCase()]=e[t]);return o};ce.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ce.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),o=0,n=this._streams.length;o<n;o++)typeof this._streams[o]!="function"&&(Buffer.isBuffer(this._streams[o])?e=Buffer.concat([e,this._streams[o]]):e=Buffer.concat([e,Buffer.from(this._streams[o])]),(typeof this._streams[o]!="string"||this._streams[o].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ce.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ce.prototype._generateBoundary=function(){this._boundary="--------------------------"+g$.randomBytes(12).toString("hex")};ce.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ce.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ce.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}h$.parallel(this._valuesToMeasure,this._lengthRetriever,function(o,n){if(o){e(o);return}n.forEach(function(r){t+=r}),e(null,t)})};ce.prototype.submit=function(e,t){var o,n,r={method:"post"};return typeof e=="string"?(e=p$(e),n=Qf({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(n=Qf(e,r),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?o=d$.request(n):o=l$.request(n),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&o.setHeader("Content-Length",a),this.pipe(o),t){var c,u=s(function(l,d){return o.removeListener("error",u),o.removeListener("response",c),t.call(this,l,d)},"callback");c=u.bind(this,null),o.on("error",u),o.on("response",c)}}.bind(this)),o};ce.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ce.prototype.toString=function(){return"[object FormData]"};y$(ce.prototype,"FormData");qP.exports=ce});var Pe={};Xe(Pe,{__addDisposableResource:()=>Pb,__assign:()=>Wc,__asyncDelegator:()=>mb,__asyncGenerator:()=>pb,__asyncValues:()=>fb,__await:()=>_o,__awaiter:()=>ab,__classPrivateFieldGet:()=>vb,__classPrivateFieldIn:()=>_b,__classPrivateFieldSet:()=>xb,__createBinding:()=>Jc,__decorate:()=>ob,__disposeResources:()=>bb,__esDecorate:()=>w$,__exportStar:()=>cb,__extends:()=>tb,__generator:()=>sb,__importDefault:()=>yb,__importStar:()=>hb,__makeTemplateObject:()=>gb,__metadata:()=>ib,__param:()=>nb,__propKey:()=>k$,__read:()=>rg,__rest:()=>rb,__runInitializers:()=>O$,__setFunctionName:()=>R$,__spread:()=>ub,__spreadArray:()=>db,__spreadArrays:()=>lb,__values:()=>Kc,default:()=>D$});function tb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tg(e,t);function o(){this.constructor=e}s(o,"__"),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}function rb(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function ob(e,t,o,n){var r=arguments.length,i=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}function nb(e,t){return function(o,n){t(o,n,e)}}function w$(e,t,o,n,r,i){function a(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}s(a,"accept");for(var c=n.kind,u=c==="getter"?"get":c==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h,f=!1,p=o.length-1;p>=0;p--){var v={};for(var b in n)v[b]=b==="access"?{}:n[b];for(var b in n.access)v.access[b]=n.access[b];v.addInitializer=function(I){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(I||null))};var E=(0,o[p])(c==="accessor"?{get:d.get,set:d.set}:d[u],v);if(c==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(h=a(E.get))&&(d.get=h),(h=a(E.set))&&(d.set=h),(h=a(E.init))&&r.unshift(h)}else(h=a(E))&&(c==="field"?r.unshift(h):d[u]=h)}l&&Object.defineProperty(l,n.name,d),f=!0}function O$(e,t,o){for(var n=arguments.length>2,r=0;r<t.length;r++)o=n?t[r].call(e,o):t[r].call(e);return n?o:void 0}function k$(e){return typeof e=="symbol"?e:"".concat(e)}function R$(e,t,o){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function ib(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ab(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return s(r,"adopt"),new(o||(o=Promise))(function(i,a){function c(d){try{l(n.next(d))}catch(h){a(h)}}s(c,"fulfilled");function u(d){try{l(n.throw(d))}catch(h){a(h)}}s(u,"rejected");function l(d){d.done?i(d.value):r(d.value).then(c,u)}s(l,"step"),l((n=n.apply(e,t||[])).next())})}function sb(e,t){var o={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},n,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(d){l=[6,d],r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function cb(e,t){for(var o in e)o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o)&&Jc(t,e,o)}function Kc(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rg(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(c){a={error:c}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}return i}function ub(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rg(arguments[t]));return e}function lb(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<o;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,r++)n[r]=i[a];return n}function db(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function _o(e){return this instanceof _o?(this.v=e,this):new _o(e)}function pb(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(f){n[f]&&(r[f]=function(p){return new Promise(function(v,b){i.push([f,p,v,b])>1||c(f,p)})})}function c(f,p){try{u(n[f](p))}catch(v){h(i[0][3],v)}}function u(f){f.value instanceof _o?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function mb(e){var t,o;return t={},n("next"),n("throw",function(r){throw r}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(r,i){t[r]=e[r]?function(a){return(o=!o)?{value:_o(e[r](a)),done:!1}:i?i(a):a}:i}}function fb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof Kc=="function"?Kc(e):e[Symbol.iterator](),o={},n("next"),n("throw"),n("return"),o[Symbol.asyncIterator]=function(){return this},o);function n(i){o[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),r(c,u,a.done,a.value)})}}function r(i,a,c,u){Promise.resolve(u).then(function(l){i({value:l,done:c})},a)}}function gb(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function hb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)&&Jc(t,e,o);return $$(t,e),t}function yb(e){return e&&e.__esModule?e:{default:e}}function vb(e,t,o,n){if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?n:o==="a"?n.call(e):n?n.value:t.get(e)}function xb(e,t,o,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(e,o):r?r.value=o:t.set(e,o),o}function _b(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Pb(e,t,o){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:o})}else o&&e.stack.push({async:!0});return t}function bb(e){function t(n){e.error=e.hasError?new C$(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}s(t,"fail");function o(){for(;e.stack.length;){var n=e.stack.pop();try{var r=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(r).then(o,function(i){return t(i),o()})}catch(i){t(i)}}if(e.hasError)throw e.error}return s(o,"next"),o()}var tg,Wc,Jc,$$,C$,D$,be=$T(()=>{tg=s(function(e,t){return tg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])},tg(e,t)},"extendStatics");s(tb,"__extends");Wc=s(function(){return Wc=Object.assign||s(function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},"__assign"),Wc.apply(this,arguments)},"__assign");s(rb,"__rest");s(ob,"__decorate");s(nb,"__param");s(w$,"__esDecorate");s(O$,"__runInitializers");s(k$,"__propKey");s(R$,"__setFunctionName");s(ib,"__metadata");s(ab,"__awaiter");s(sb,"__generator");Jc=Object.create?(function(e,t,o,n){n===void 0&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[o]},"get")}),Object.defineProperty(e,n,r)}):(function(e,t,o,n){n===void 0&&(n=o),e[n]=t[o]});s(cb,"__exportStar");s(Kc,"__values");s(rg,"__read");s(ub,"__spread");s(lb,"__spreadArrays");s(db,"__spreadArray");s(_o,"__await");s(pb,"__asyncGenerator");s(mb,"__asyncDelegator");s(fb,"__asyncValues");s(gb,"__makeTemplateObject");$$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};s(hb,"__importStar");s(yb,"__importDefault");s(vb,"__classPrivateFieldGet");s(xb,"__classPrivateFieldSet");s(_b,"__classPrivateFieldIn");s(Pb,"__addDisposableResource");C$=typeof SuppressedError=="function"?SuppressedError:function(e,t,o){var n=new Error(o);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};s(bb,"__disposeResources");D$={__extends:tb,__assign:Wc,__rest:rb,__decorate:ob,__param:nb,__metadata:ib,__awaiter:ab,__generator:sb,__createBinding:Jc,__exportStar:cb,__values:Kc,__read:rg,__spread:ub,__spreadArrays:lb,__spreadArray:db,__await:_o,__asyncGenerator:pb,__asyncDelegator:mb,__asyncValues:fb,__makeTemplateObject:gb,__importStar:hb,__importDefault:yb,__classPrivateFieldGet:vb,__classPrivateFieldSet:xb,__classPrivateFieldIn:_b,__addDisposableResource:Pb,__disposeResources:bb}});var Hi=R(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.RequestMethod=void 0;var Ab;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Ab||(Xc.RequestMethod=Ab={}))});var Eb=R(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.BatchRequestContent=void 0;var Po=(be(),ve(Pe)),og=Hi(),z$=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var o=e.requestLimit;if(t.length>o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var o=s(function(a){for(var c=a.entries(),u=c.next();!u.done;){var l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;u=c.next()}return!0},"isParallel"),n=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=u;for(u=c.next();!u.done;){var h=u.value[1];if(h.dependsOn===void 0||h.dependsOn.length!==1||h.dependsOn[0]!==d.value[1].id)return!1;d=u,u=c.next()}return!0},"isSerial"),r=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var h=l.dependsOn[0];if(h!==l.id&&a.has(h))d=h;else return!1}else return!1;for(u=c.next();!u.done;){var f=u.value[1];if((f.dependsOn===void 0||f.dependsOn.length===0)&&d!==f.id||f.dependsOn!==void 0&&f.dependsOn.length!==0&&(f.dependsOn.length===1&&(f.id===d||f.dependsOn[0]!==d)||f.dependsOn.length>1))return!1;u=c.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return o(t)||n(t)||r(t)},e.getRequestData=function(t){return Po.__awaiter(this,void 0,void 0,function(){var o,n,r,i;return Po.__generator(this,function(a){switch(a.label){case 0:return o={url:""},n=new RegExp("^https?://"),o.url=n.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,o.method=t.method,r={},t.headers.forEach(function(c,u){r[u]=c}),Object.keys(r).length&&(o.headers=r),t.method===og.RequestMethod.PATCH||t.method===og.RequestMethod.POST||t.method===og.RequestMethod.PUT?(i=o,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,o]}})})},e.getRequestBody=function(t){return Po.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u,l;return Po.__generator(this,function(d){switch(d.label){case 0:o=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return n=d.sent(),o=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(o)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),c=new FileReader,[4,new Promise(function(h){c.addEventListener("load",function(){var f=c.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),v=p.exec(f);h(v[4])},!1),c.readAsDataURL(a)})];case 7:return n=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:u=d.sent(),n=u.toString("base64"),d.label=10;case 10:return o=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,n]}})})},e.prototype.addRequest=function(t){var o=e.requestLimit;if(t.id===""){var n=new Error("Id for a request is empty, Please provide an unique id");throw n.name="Empty Id For Request",n}if(this.requests.size===o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}if(this.requests.has(t.id)){var n=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw n.name="Duplicate RequestId Error",n}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var o=this.requests.delete(t),n=this.requests.entries(),r=n.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=n.next()}return o},e.prototype.getContent=function(){return Po.__awaiter(this,void 0,void 0,function(){var t,o,n,r,c,c,i,a,c;return Po.__generator(this,function(u){switch(u.label){case 0:if(t=[],o={requests:t},n=this.requests.entries(),r=n.next(),r.done)throw c=new Error("No requests added yet, Please add at least one request."),c.name="Empty Payload",c;if(!e.validateDependencies(this.requests))throw c=new Error(`Invalid dependency found, Dependency should be:
3
3
  1. Parallel - no individual request states a dependency in the dependsOn property.
4
4
  2. Serial - all individual requests depend on the previous individual request.
5
- 3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),c.name="Invalid Dependency",c;u.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=u.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw c=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),c.name="Invalid Content-type header",c;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=n.next(),[3,1];case 3:return o.requests=t,[2,o]}})})},e.prototype.addDependency=function(t,o){if(!this.requests.has(t)){var n=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw n.name="Invalid Dependent",n}if(typeof o<"u"&&!this.requests.has(o)){var n=new Error("Dependency ".concat(o," does not exists, Please check the id"));throw n.name="Invalid Dependency",n}if(typeof o<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(o)!==-1){var n=new Error("Dependency ".concat(o," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}r.dependsOn.push(o)}else{for(var i=this.requests.entries(),a=void 0,c=i.next();!c.done&&c.value[1].id!==t;)a=c,c=i.next();if(typeof a<"u"){var u=a.value[0];if(c.value[1].dependsOn===void 0&&(c.value[1].dependsOn=[]),c.value[1].dependsOn.indexOf(u)!==-1){var n=new Error("Dependency ".concat(u," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}c.value[1].dependsOn.push(u)}else{var n=new Error("Can't add dependency ".concat(o,", There is only a dependent request in the batch"));throw n.name="Invalid Dependency Addition",n}}},e.prototype.removeDependency=function(t,o){var n=this.requests.get(t);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof o<"u"){var r=n.dependsOn.indexOf(o);return r===-1?!1:(n.dependsOn.splice(r,1),!0)}else return delete n.dependsOn,!0},e.requestLimit=20,e})();Xc.BatchRequestContent=CR});var Ab=$(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.BatchResponseContent=void 0;var DR=(be(),ve(Pe)),zR=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var o=t.body,n={};if(n.status=t.status,t.statusText!==void 0&&(n.statusText=t.statusText),n.headers=t.headers,n.headers!==void 0&&n.headers["Content-Type"]!==void 0&&n.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(o);return new Response(r,n)}return new Response(o,n)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var o=t.responses,n=0,r=o.length;n<r;n++)this.responses.set(o[n].id,this.createResponseObject(o[n]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,o;return DR.__generator(this,function(n){switch(n.label){case 0:t=this.responses.entries(),o=t.next(),n.label=1;case 1:return o.done?[3,3]:[4,o.value];case 2:return n.sent(),o=t.next(),[3,1];case 3:return[2]}})},e})();Yc.BatchResponseContent=zR});var nh=$(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.GRAPH_URLS=Jt.GRAPH_BASE_URL=Jt.GRAPH_API_VERSION=void 0;Jt.GRAPH_API_VERSION="v1.0";Jt.GRAPH_BASE_URL="https://graph.microsoft.com/";Jt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var Ot=$(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.GraphClientError=void 0;var NR=(be(),ve(Pe)),MR=(function(e){NR.__extends(t,e);function t(o){var n=e.call(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return s(t,"GraphClientError"),t.setGraphClientError=function(o){var n;return o instanceof Error?n=o:(n=new t,n.customError=o),n},t})(Error);Qc.GraphClientError=MR});var eu=$(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isCustomHost=at.isGraphURL=at.serializeContent=at.urlJoin=at.oDataQueryNames=void 0;var UR=nh(),LR=Ot();at.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var FR=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),o=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),n=s(function(i,a){return[t(i),o(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(n)},"urlJoin");at.urlJoin=FR;var jR=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");at.serializeContent=jR;var BR=s(function(e){return Eb(e)},"isGraphURL");at.isGraphURL=BR;var VR=s(function(e,t){return t.forEach(function(o){return HR(o)}),Eb(e,t)},"isCustomHost");at.isCustomHost=VR;var Eb=s(function(e,t){if(t===void 0&&(t=UR.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var o=e.indexOf(":"),n=e.indexOf("/"),r="";if(n!==-1)return o!==-1&&o<n?(r=e.substring(0,o),t.has(r)):(r=e.substring(0,n),t.has(r))}return!1},"isValidEndpoint"),HR=s(function(e){if(e.indexOf("/")!==-1)throw new LR.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Xt=$(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.MiddlewareControl=void 0;var ZR=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var o=0,n=t;o<n.length;o++){var r=n[o],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,o){this.middlewareOptions.set(t,o)},e})();tu.MiddlewareControl=ZR});var bo=$(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.cloneRequestWithNewUrl=st.appendRequestHeader=st.setRequestHeader=st.getRequestHeader=st.generateUUID=void 0;var Tb=(be(),ve(Pe)),qR=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");st.generateUUID=qR;var GR=s(function(e,t,o){var n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(o);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(o);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===o){n=r[i][1];break}}else t.headers[o]!==void 0&&(n=t.headers[o]);return n},"getRequestHeader");st.getRequestHeader=GR;var WR=s(function(e,t,o,n){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(o,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[o]=n,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(o,n);else if(t.headers instanceof Array){for(var a=0,c=t.headers.length;a<c;a++){var u=t.headers[a];if(u[0]===o){u[1]=n;break}}a===c&&t.headers.push([o,n])}else Object.assign(t.headers,(i={},i[o]=n,i))},"setRequestHeader");st.setRequestHeader=WR;var KR=s(function(e,t,o,n){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(o,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[o]=n,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(o,n):t.headers instanceof Array?t.headers.push([o,n]):t.headers===void 0?t.headers=(i={},i[o]=n,i):t.headers[o]===void 0?t.headers[o]=n:t.headers[o]+=", ".concat(n))},"appendRequestHeader");st.appendRequestHeader=KR;var JR=s(function(e,t){return Tb.__awaiter(void 0,void 0,void 0,function(){var o,n,r,i,a,c,u,l,d,g,f,p,v;return Tb.__generator(this,function(b){switch(b.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return n=b.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:n=b.sent(),b.label=4;case 4:return o=n,r=t.method,i=t.headers,a=t.referrer,c=t.referrerPolicy,u=t.mode,l=t.credentials,d=t.cache,g=t.redirect,f=t.integrity,p=t.keepalive,v=t.signal,[2,new Request(e,{method:r,headers:i,body:o,referrer:a,referrerPolicy:c,mode:u,credentials:l,cache:d,redirect:g,integrity:f,keepalive:p,signal:v})]}})})},"cloneRequestWithNewUrl");st.cloneRequestWithNewUrl=JR});var ih=$(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.AuthenticationHandlerOptions=void 0;var XR=(function(){function e(t,o){this.authenticationProvider=t,this.authenticationProviderOptions=o}return s(e,"AuthenticationHandlerOptions"),e})();ru.AuthenticationHandlerOptions=XR});var Eo=$(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TelemetryHandlerOptions=Ao.FeatureUsageFlag=void 0;var Ib=Xt(),ah;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(ah||(Ao.FeatureUsageFlag=ah={}));var YR=(function(){function e(){this.featureUsage=ah.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,o){var n;t.middlewareControl instanceof Ib.MiddlewareControl?n=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new Ib.MiddlewareControl,typeof n>"u"&&(n=new e,t.middlewareControl.setMiddlewareOptions(e,n)),n.setFeatureUsage(o)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();Ao.TelemetryHandlerOptions=YR});var nu=$(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.AuthenticationHandler=void 0;var Sb=(be(),ve(Pe)),wb=eu(),QR=Xt(),eC=bo(),tC=ih(),Ob=Eo(),rC=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return Sb.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c;return Sb.__generator(this,function(u){switch(u.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,wb.isGraphURL)(o)||t.customHosts&&(0,wb.isCustomHost)(o,t.customHosts)?(n=void 0,t.middlewareControl instanceof QR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(tC.AuthenticationHandlerOptions)),r=void 0,i=void 0,n&&(r=n.authenticationProvider,i=n.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=u.sent(),c="Bearer ".concat(a),(0,eC.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,c),Ob.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Ob.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],u.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();ou.AuthenticationHandler=rC});var au=$(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.HTTPMessageHandler=void 0;var kb=(be(),ve(Pe)),oC=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return kb.__awaiter(this,void 0,void 0,function(){var o;return kb.__generator(this,function(n){switch(n.label){case 0:return o=t,[4,fetch(t.request,t.options)];case 1:return o.response=n.sent(),[2]}})})},e})();iu.HTTPMessageHandler=oC});var Zi=$(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.RetryHandlerOptions=void 0;var nC=(function(){function e(t,o,n){if(t===void 0&&(t=e.DEFAULT_DELAY),o===void 0&&(o=e.DEFAULT_MAX_RETRIES),n===void 0&&(n=e.defaultShouldRetry),t>e.MAX_DELAY&&o>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(o>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&o<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(o<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(o,e.MAX_MAX_RETRIES),this.shouldRetry=n}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();su.RetryHandlerOptions=nC});var uu=$(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RetryHandler=void 0;var To=(be(),ve(Pe)),sh=Hi(),iC=Xt(),$b=bo(),Rb=Zi(),Cb=Eo(),aC=(function(){function e(t){t===void 0&&(t=new Rb.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,o){var n=typeof t=="string"?o.method:t.method,r=n===sh.RequestMethod.PUT||n===sh.RequestMethod.PATCH||n===sh.RequestMethod.POST;if(r){var i=(0,$b.getRequestHeader)(t,o,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,o,n){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=o>=2?this.getExponentialBackOffTime(o)+n+r():n+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return To.__awaiter(this,void 0,void 0,function(){var o;return To.__generator(this,function(n){return o=t*1e3,[2,new Promise(function(r){return setTimeout(r,o)})]})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof iC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof o>"u"&&(o=Object.assign(new Rb.RetryHandlerOptions,this.options)),o},e.prototype.executeWithRetry=function(t,o,n){return To.__awaiter(this,void 0,void 0,function(){var r;return To.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),o<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,o,t.request,t.options,t.response)?(++o,(0,$b.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,o.toString()),r=this.getDelay(t.response,o,n.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,o,n)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return To.__awaiter(this,void 0,void 0,function(){var o,n;return To.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),Cb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Cb.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();cu.RetryHandler=aC});var qi=$(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.RedirectHandlerOptions=void 0;var sC=(function(){function e(t,o){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),o===void 0&&(o=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var n=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw n.name="MaxLimitExceeded",n}if(t<0){var n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=t,this.shouldRedirect=o}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();lu.RedirectHandlerOptions=sC});var pu=$(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.RedirectHandler=void 0;var Io=(be(),ve(Pe)),cC=Hi(),uC=Xt(),lC=bo(),ch=qi(),Db=Eo(),dC=(function(){function e(t){t===void 0&&(t=new ch.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,o){var n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=n.exec(t),i,a;r!==null&&(i=r[0]);var c=n.exec(o);return c!==null&&(a=c[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,o){return Io.__awaiter(this,void 0,void 0,function(){var n,r;return Io.__generator(this,function(i){switch(i.label){case 0:return n=o,typeof o.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,lC.cloneRequestWithNewUrl)(t,o.request)];case 2:r=i.sent(),i.label=3;case 3:return n.request=r,[2]}})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof uC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(ch.RedirectHandlerOptions)),typeof o>"u"&&(o=Object.assign(new ch.RedirectHandlerOptions,this.options)),o},e.prototype.executeWithRedirect=function(t,o,n){return Io.__awaiter(this,void 0,void 0,function(){var r,i;return Io.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,o<n.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&n.shouldRedirect(r)?(++o,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=cC.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,o,n)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return Io.__awaiter(this,void 0,void 0,function(){var o,n;return Io.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,Db.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Db.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();du.RedirectHandler=dC});var zb=$(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.PACKAGE_VERSION=void 0;mu.PACKAGE_VERSION="3.0.7"});var gu=$(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.TelemetryHandler=void 0;var Nb=(be(),ve(Pe)),Mb=eu(),pC=zb(),mC=Xt(),fu=bo(),fC=Eo(),hC=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return Nb.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a;return Nb.__generator(this,function(c){switch(c.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,Mb.isGraphURL)(o)||t.customHosts&&(0,Mb.isCustomHost)(o,t.customHosts)?(n=(0,fu.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),n||(n=(0,fu.generateUUID)(),(0,fu.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,n)),r="".concat(e.PRODUCT_NAME,"/").concat(pC.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof mC.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(fC.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,fu.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();hu.TelemetryHandler=hC});var Ub=$(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.MiddlewareFactory=void 0;var gC=nu(),yC=au(),vC=qi(),xC=Zi(),_C=pu(),PC=uu(),bC=gu(),AC=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),EC=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var o=[],n=new gC.AuthenticationHandler(t),r=new PC.RetryHandler(new xC.RetryHandlerOptions),i=new bC.TelemetryHandler,a=new yC.HTTPMessageHandler;if(o.push(n),o.push(r),AC()){var c=new _C.RedirectHandler(new vC.RedirectHandlerOptions);o.push(c)}return o.push(i),o.push(a),o},e})();yu.MiddlewareFactory=EC});var xu=$(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.ChaosStrategy=void 0;var Lb;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Lb||(vu.ChaosStrategy=Lb={}))});var uh=$(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.ChaosHandlerOptions=void 0;var TC=xu(),IC=(function(){function e(t,o,n,r,i,a){if(t===void 0&&(t=TC.ChaosStrategy.RANDOM),o===void 0&&(o="Some error Happened"),this.chaosStrategy=t,this.statusCode=n,this.statusMessage=o,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();_u.ChaosHandlerOptions=IC});var Fb=$(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.httpStatusCode=So.methodStatusCode=void 0;So.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};So.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var Vb=$(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.ChaosHandler=void 0;var Pu=(be(),ve(Pe)),SC=Xt(),wC=bo(),jb=Fb(),lh=uh(),Bb=xu(),OC=(function(){function e(t,o){t===void 0&&(t=new lh.ChaosHandlerOptions),this.options=t,this.manualMap=o}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,o,n){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",o),r.append("client-request-id",o),r.append("x-ms-ags-diagnostic",""),r.append("Date",n),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,o,n){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=jb.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":o,date:n}}}}else r={};return r},e.prototype.createResponse=function(t,o){var n=o.request,r=(0,wC.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),c=this.createResponseBody(t,r,i.toString()),u={url:n,status:t.statusCode,statusText:t.statusMessage,headers:a};o.response=new Response(typeof c=="string"?c:JSON.stringify(c),u)},e.prototype.sendRequest=function(t,o){return Pu.__awaiter(this,void 0,void 0,function(){return Pu.__generator(this,function(n){switch(n.label){case 0:return this.setStatusCode(t,o.request,o.options.method),t.chaosStrategy===Bb.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,o),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(o)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var o=jb.methodStatusCode[t];return o[Math.floor(Math.random()*o.length)]},e.prototype.getRelativeURL=function(t){var o=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,n;return o.exec(t)!==null&&(n=o.exec(t)[1]),n},e.prototype.setStatusCode=function(t,o,n){var r=this;if(t.chaosStrategy===Bb.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(o);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(n)!==void 0&&(t.statusCode=this.manualMap.get(i).get(n)):this.manualMap.forEach(function(a,c){var u=new RegExp(c+"$");u.test(i)&&r.manualMap.get(c).get(n)!==void 0&&(t.statusCode=r.manualMap.get(c).get(n))})}}else t.statusCode=this.getRandomStatusCode(n)},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof SC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(lh.ChaosHandlerOptions)),typeof o>"u"&&(o=Object.assign(new lh.ChaosHandlerOptions,this.options)),o},e.prototype.execute=function(t){return Pu.__awaiter(this,void 0,void 0,function(){var o;return Pu.__generator(this,function(n){switch(n.label){case 0:return o=this.getOptions(t),[4,this.sendRequest(o,t)];case 1:return[2,n.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();bu.ChaosHandler=OC});var Gi=$(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ResponseType=void 0;var Hb;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(Hb||(Au.ResponseType=Hb={}))});var ph=$(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.GraphResponseHandler=wo.DocumentType=void 0;var Eu=(be(),ve(Pe)),Sr=Gi(),dh;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(dh||(wo.DocumentType=dh={}));var Tu;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Tu||(Tu={}));var Iu;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Iu||(Iu={}));var kC=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,o){return typeof DOMParser<"u"?new Promise(function(n,r){t.text().then(function(i){try{var a=new DOMParser,c=a.parseFromString(i,o);n(c)}catch(u){r(u)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,o){return Eu.__awaiter(this,void 0,void 0,function(){var n,r,i,a;return Eu.__generator(this,function(c){switch(c.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=o,i){case Sr.ResponseType.ARRAYBUFFER:return[3,1];case Sr.ResponseType.BLOB:return[3,3];case Sr.ResponseType.DOCUMENT:return[3,5];case Sr.ResponseType.JSON:return[3,7];case Sr.ResponseType.STREAM:return[3,9];case Sr.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return n=c.sent(),[3,24];case 3:return[4,t.blob()];case 4:return n=c.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,dh.TEXT_XML)];case 6:return n=c.sent(),[3,24];case 7:return[4,t.json()];case 8:return n=c.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return n=c.sent(),[3,24];case 11:return[4,t.text()];case 12:return n=c.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(Iu.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return n=c.sent(),[3,21];case 15:return new RegExp(Iu.IMAGE).test(a)?(n=t.blob(),[3,21]):[3,16];case 16:return a!==Tu.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return n=c.sent(),[3,21];case 18:return a!==Tu.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return n=c.sent(),[3,21];case 20:n=Promise.resolve(t.body),c.label=21;case 21:return[3,23];case 22:n=Promise.resolve(t.body),c.label=23;case 23:return[3,24];case 24:return[2,n]}})})},e.getResponse=function(t,o,n){return Eu.__awaiter(this,void 0,void 0,function(){var r;return Eu.__generator(this,function(i){switch(i.label){case 0:return o!==Sr.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,o)];case 2:if(r=i.sent(),t.ok)if(typeof n=="function")n(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();wo.GraphResponseHandler=kC});var mh=$(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.Range=void 0;var $C=(function(){function e(t,o){t===void 0&&(t=-1),o===void 0&&(o=-1),this.minValue=t,this.maxValue=o}return s(e,"Range"),e})();Su.Range=$C});var fh=$(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.UploadResult=void 0;var RC=(function(){function e(t,o){this._location=o,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,o){return new e(t,o.get("location"))},e})();wu.UploadResult=RC});var gh=$(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.LargeFileUploadTask=void 0;var Je=(be(),ve(Pe)),hh=Ot(),CC=ph(),Zb=Gi(),Ou=mh(),DC=fh(),zC=(function(){function e(t,o,n,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,o.sliceFile)this.file=o;else throw new hh.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=o,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=n,this.nextRange=new Ou.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,o,n,r){return r===void 0&&(r={}),Je.__awaiter(this,void 0,void 0,function(){var i,a;return Je.__generator(this,function(c){switch(c.label){case 0:return[4,t.api(o).headers(r).post(n)];case 1:return i=c.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var o=t[0];if(typeof o>"u"||o==="")return new Ou.Range;var n=o.split("-"),r=parseInt(n[0],10),i=parseInt(n[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new Ou.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,o=t+this.options.rangeSize-1;return o>=this.file.size&&(o=this.file.size-1),new Ou.Range(t,o)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new hh.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return Je.__awaiter(this,void 0,void 0,function(){var t,o,n,r,i,a,c;return Je.__generator(this,function(u){switch(u.label){case 0:t=this.options&&this.options.uploadEventHandlers,u.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(o=this.getNextRange(),o.maxValue===-1)throw n=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),n.name="Invalid Session",n;return[4,this.file.sliceFile(o)];case 2:return r=u.sent(),[4,this.uploadSliceGetRawResponse(r,o,this.file.size)];case 3:if(i=u.sent(),!i)throw new hh.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,CC.GraphResponseHandler.getResponse(i)];case 4:return a=u.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,o),[2,DC.UploadResult.CreateUploadResult(a,i.headers)]):(c={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(c),this.reportProgress(t,o),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,o){t&&t.progress&&t.progress(o,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).responseType(Zb.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(Zb.ResponseType.RAW).delete()];case 1:return t=o.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=o.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();ku.LargeFileUploadTask=zC});var yh=$($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.FileUpload=void 0;var NC=Ot(),MC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new NC.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();$u.FileUpload=MC});var vh=$(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.getValidRangeSize=void 0;var UC=5*1024*1024,LC=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),FC=s(function(e){e===void 0&&(e=UC);var t=60*1024*1024;return e>t&&(e=t),LC(e)},"getValidRangeSize");Ru.getValidRangeSize=FC});var Gb=$(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.OneDriveLargeFileUploadTask=void 0;var kt=(be(),ve(Pe)),qb=Ot(),jC=yh(),BC=gh(),VC=vh(),HC=(function(e){kt.__extends(t,e);function t(o,n,r,i){return e.call(this,o,n,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(o,n){return n===void 0&&(n=t.DEFAULT_UPLOAD_PATH),o=o.trim(),n=n.trim(),n===""&&(n="/"),n[0]!=="/"&&(n="/".concat(n)),n[n.length-1]!=="/"&&(n="".concat(n,"/")),"/me/drive/root:".concat(n.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(o),":/createUploadSession")},t.getFileInfo=function(o,n){var r,i;if(typeof Blob<"u"&&o instanceof Blob)r=new File([o],n),i=r.size;else if(typeof File<"u"&&o instanceof File)r=o,i=r.size;else if(typeof Uint8Array<"u"&&o instanceof Uint8Array){var a=o;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(o,n,r){return kt.__awaiter(this,void 0,void 0,function(){var i,a,c;return kt.__generator(this,function(u){if(!o||!n||!r)throw new qb.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(n,i),c=new jC.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(o,c,r)]})})},t.createTaskWithFileObject=function(o,n,r){return kt.__awaiter(this,void 0,void 0,function(){var i,a,c,u;return kt.__generator(this,function(l){switch(l.label){case 0:if(!o||!n||!r)throw new qb.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(o,i,a)];case 1:return c=l.sent(),u=(0,VC.getValidRangeSize)(r.rangeSize),[2,new t(o,n,c,{rangeSize:u,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(o,n,r){return kt.__awaiter(this,void 0,void 0,function(){var i;return kt.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,o,n,i)]})})},t.prototype.commit=function(o,n){return n===void 0&&(n="rename"),kt.__awaiter(this,void 0,void 0,function(){var r;return kt.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":n,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(o).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(BC.LargeFileUploadTask);Cu.OneDriveLargeFileUploadTask=HC});var Kb=$(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.StreamUpload=void 0;var Wb=(be(),ve(Pe)),Wi=Ot(),ZC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new Wi.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return Wb.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u;return Wb.__generator(this,function(l){switch(l.label){case 0:if(o=t.maxValue-t.minValue+1,n=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Wi.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];n.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),o=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=o?(n.push(this.content.read(o)),[3,3]):[3,1]:[3,4];case 1:return c=(a=n).push,[4,this.readNBytesFromStream(o)];case 2:c.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Wi.GraphClientError("Stream is not readable.");case 5:return u=Buffer.concat(n),this.previousSlice={fileSlice:u,range:t},[2,u]}})})},e.prototype.readNBytesFromStream=function(t){var o=this;return new Promise(function(n,r){var i=[],a=t,c=0;o.content.on("end",function(){if(a>0)return r(new Wi.GraphClientError("Stream ended before reading required range size"))}),o.content.on("readable",function(){for(var u;c<t&&(u=o.content.read(a))!==null;)c+=u.length,i.push(u),a>0&&(a=t-c);if(c===t)return n(Buffer.concat(i));if(!o.content||!o.content.readable)return r(new Wi.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();Du.StreamUpload=ZC});var Jb=$(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.PageIterator=void 0;var Oo=(be(),ve(Pe)),qC=(function(){function e(t,o,n,r){this.client=t,this.collection=o.value,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var o=this.collection[this.cursor];t=this.callback(o),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t,o;return Oo.__generator(this,function(n){switch(n.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return o=n.sent(),this.collection=o.value,this.cursor=0,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t;return Oo.__generator(this,function(o){switch(o.label){case 0:t=this.iterationHelper(),o.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return o.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,o.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Oo.__awaiter(this,void 0,void 0,function(){return Oo.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();zu.PageIterator=qC});var xh=$(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.CustomAuthenticationProvider=void 0;var Nu=(be(),ve(Pe)),Xb=Ot(),GC=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return Nu.__awaiter(this,void 0,void 0,function(){var t=this;return Nu.__generator(this,function(o){return[2,new Promise(function(n,r){t.provider(function(i,a){return Nu.__awaiter(t,void 0,void 0,function(){var c,u;return Nu.__generator(this,function(l){switch(l.label){case 0:return a?(n(a),[3,3]):[3,1];case 1:return i||(c="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new Xb.GraphClientError(c)),[4,Xb.GraphClientError.setGraphClientError(i)];case 2:u=l.sent(),r(u),l.label=3;case 3:return[2]}})})})})]})})},e})();Mu.CustomAuthenticationProvider=GC});var _h=$(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.GraphError=void 0;var WC=(be(),ve(Pe)),KC=(function(e){WC.__extends(t,e);function t(o,n,r){o===void 0&&(o=-1);var i=e.call(this,n||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=o,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);Uu.GraphError=KC});var Qb=$(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.GraphErrorHandler=void 0;var Yb=(be(),ve(Pe)),Ph=_h(),JC=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,o,n){var r=new Ph.GraphError(o,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=n?.headers,r},e.constructErrorFromResponse=function(t,o,n){var r=t.error,i=new Ph.GraphError(o,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=n?.headers,i},e.getError=function(t,o,n,r){return t===void 0&&(t=null),o===void 0&&(o=-1),Yb.__awaiter(this,void 0,void 0,function(){var i;return Yb.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,o,r):t instanceof Error?i=e.constructError(t,o,r):(i=new Ph.GraphError(o),i.body=t),typeof n=="function")n(i,null);else return[2,i];return[2]})})},e})();Lu.GraphErrorHandler=JC});var bh=$(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.GraphRequest=void 0;var ge=(be(),ve(Pe)),XC=Ot(),YC=Qb(),Ki=eu(),QC=ph(),eD=Xt(),wr=Hi(),tD=Gi(),rD=(function(){function e(t,o,n){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var c=i.indexOf("/");c!==-1&&(r.urlComponents.version=i.substring(0,c),i=i.substring(c+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var u=i.indexOf("?");if(u===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,u);for(var l=i.substring(u+1,i.length).split("&"),d=0,g=l;d<g.length;d++){var f=g[d];r.parseQueryParameter(f)}}},this.httpClient=t,this.config=o,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,o,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];n.length>1&&typeof o=="string"?r=Array.prototype.slice.call(n):typeof o=="string"?r.push(o):r=r.concat(o),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ki.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,o=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&o.push(n+"="+t.oDataQueryParams[n]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var n in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,n)&&o.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];o.push(a)}return o.length>0?"?"+o.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var o=t.split("&"),n=0,r=o;n<r.length;n++){var i=r[n];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var o=t.indexOf("="),n=t.substring(0,o),r=t.substring(o+1);this.setURLComponentsQueryParamater(n,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,o){if(Ki.oDataQueryNames.indexOf(t)!==-1){var n=this.urlComponents.oDataQueryParams[t],r=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?n+","+o:o}else this.urlComponents.otherURLQueryParams[t]=o},e.prototype.isValidQueryKeyValuePair=function(t){var o=t.indexOf("=");if(o===-1)return!1;var n=t.indexOf("(");return!(n!==-1&&t.indexOf("(")<o)},e.prototype.updateRequestOptions=function(t){var o=ge.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var n=ge.__assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ge.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(o,t.headers),Object.assign(o,this._headers),t.headers=o},e.prototype.send=function(t,o,n){var r;return ge.__awaiter(this,void 0,void 0,function(){var i,a,c,u,l,d,g,f;return ge.__generator(this,function(p){switch(p.label){case 0:a=new eD.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(o),c=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:o,middlewareControl:a,customHosts:c})];case 2:return u=p.sent(),i=u.response,[4,QC.GraphResponseHandler.getResponse(i,this._responseType,n)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof XC.GraphClientError)throw d;return g=void 0,i&&(g=i.status),[4,YC.GraphErrorHandler.getError(d,g,n,i)];case 5:throw f=p.sent(),f;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),o=0,n=t;o<n.length;o++){var r=n[o];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,o){return this._headers[t]=o,this},e.prototype.headers=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._headers[o]=t[o]);return this},e.prototype.option=function(t,o){return this._options[t]=o,this},e.prototype.options=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._options[o]=t[o]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.GET},[4,this.send(o,n,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r,i;return ge.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),r={method:wr.RequestMethod.POST,body:(0,Ki.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(n,r,o)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(n){switch(n.label){case 0:return[4,this.post(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.put=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:wr.RequestMethod.PUT,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:wr.RequestMethod.PATCH,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(n){switch(n.label){case 0:return[4,this.patch(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.delete=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n;return ge.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.DELETE},[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(o){switch(o.label){case 0:return[4,this.delete(t)];case 1:return[2,o.sent()]}})})},e.prototype.getStream=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n;return ge.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.GET},this.responseType(tD.ResponseType.STREAM),[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),r={method:wr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e})();Fu.GraphRequest=rD});var Ah=$(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.HTTPClient=void 0;var eA=(be(),ve(Pe)),oD=(function(){function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(!t||!t.length){var n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Please provide a default middleware chain or custom middleware chain",n}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(o,n){n<t.length-1&&o.setNext(t[n+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return eA.__awaiter(this,void 0,void 0,function(){var o;return eA.__generator(this,function(n){switch(n.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw o=new Error,o.name="InvalidRequestOptions",o.message="Unable to execute the middleware, Please provide valid options for a request",o;return[4,this.middleware.execute(t)];case 1:return n.sent(),[2,t]}})})},e})();ju.HTTPClient=oD});var rA=$(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.HTTPClientFactory=void 0;var nD=(be(),ve(Pe)),tA=Ah(),iD=nu(),aD=au(),sD=qi(),cD=Zi(),uD=pu(),lD=uu(),dD=gu(),pD=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),mD=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var o=new iD.AuthenticationHandler(t),n=new lD.RetryHandler(new cD.RetryHandlerOptions),r=new dD.TelemetryHandler,i=new aD.HTTPMessageHandler;if(o.setNext(n),pD()){var a=new uD.RedirectHandler(new sD.RedirectHandlerOptions);n.setNext(a),a.setNext(r)}else n.setNext(r);return r.setNext(i),e.createWithMiddleware(o)},e.createWithMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new(tA.HTTPClient.bind.apply(tA.HTTPClient,nD.__spreadArray([void 0],t,!1)))},e})();Bu.HTTPClientFactory=mD});var oA=$(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.validatePolyFilling=void 0;var fD=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Vu.validatePolyFilling=fD});var aA=$(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.Client=void 0;var hD=(be(),ve(Pe)),nA=nh(),gD=xh(),yD=bh(),iA=Ah(),vD=rA(),xD=oA(),_D=(function(){function e(t){this.config={baseUrl:nA.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:nA.GRAPH_API_VERSION},(0,xD.validatePolyFilling)();for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.config[o]=t[o]);var n;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)n=vD.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)n=new(iA.HTTPClient.bind.apply(iA.HTTPClient,hD.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=n}return s(e,"Client"),e.init=function(t){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=n==="authProvider"?new gD.CustomAuthenticationProvider(t[n]):t[n]);return e.initWithMiddleware(o)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new yD.GraphRequest(this.httpClient,this.config,t)},e})();Hu.Client=_D});var Ji=$(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.ResponseType=F.GraphRequest=F.GraphClientError=F.GraphError=F.CustomAuthenticationProvider=F.Client=F.PageIterator=F.Range=F.UploadResult=F.FileUpload=F.StreamUpload=F.getValidRangeSize=F.OneDriveLargeFileUploadTask=F.LargeFileUploadTask=F.ChaosHandler=F.ChaosStrategy=F.ChaosHandlerOptions=F.TelemetryHandlerOptions=F.FeatureUsageFlag=F.RedirectHandlerOptions=F.RetryHandlerOptions=F.AuthenticationHandlerOptions=F.MiddlewareFactory=F.TelemetryHandler=F.RedirectHandler=F.RetryHandler=F.HTTPMessageHandler=F.AuthenticationHandler=F.BatchResponseContent=F.BatchRequestContent=void 0;var PD=bb();Object.defineProperty(F,"BatchRequestContent",{enumerable:!0,get:s(function(){return PD.BatchRequestContent},"get")});var bD=Ab();Object.defineProperty(F,"BatchResponseContent",{enumerable:!0,get:s(function(){return bD.BatchResponseContent},"get")});var AD=nu();Object.defineProperty(F,"AuthenticationHandler",{enumerable:!0,get:s(function(){return AD.AuthenticationHandler},"get")});var ED=au();Object.defineProperty(F,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return ED.HTTPMessageHandler},"get")});var TD=uu();Object.defineProperty(F,"RetryHandler",{enumerable:!0,get:s(function(){return TD.RetryHandler},"get")});var ID=pu();Object.defineProperty(F,"RedirectHandler",{enumerable:!0,get:s(function(){return ID.RedirectHandler},"get")});var SD=gu();Object.defineProperty(F,"TelemetryHandler",{enumerable:!0,get:s(function(){return SD.TelemetryHandler},"get")});var wD=Ub();Object.defineProperty(F,"MiddlewareFactory",{enumerable:!0,get:s(function(){return wD.MiddlewareFactory},"get")});var OD=ih();Object.defineProperty(F,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return OD.AuthenticationHandlerOptions},"get")});var kD=Zi();Object.defineProperty(F,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return kD.RetryHandlerOptions},"get")});var $D=qi();Object.defineProperty(F,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return $D.RedirectHandlerOptions},"get")});var sA=Eo();Object.defineProperty(F,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return sA.FeatureUsageFlag},"get")});Object.defineProperty(F,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return sA.TelemetryHandlerOptions},"get")});var RD=uh();Object.defineProperty(F,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return RD.ChaosHandlerOptions},"get")});var CD=xu();Object.defineProperty(F,"ChaosStrategy",{enumerable:!0,get:s(function(){return CD.ChaosStrategy},"get")});var DD=Vb();Object.defineProperty(F,"ChaosHandler",{enumerable:!0,get:s(function(){return DD.ChaosHandler},"get")});var zD=gh();Object.defineProperty(F,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return zD.LargeFileUploadTask},"get")});var ND=Gb();Object.defineProperty(F,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return ND.OneDriveLargeFileUploadTask},"get")});var MD=vh();Object.defineProperty(F,"getValidRangeSize",{enumerable:!0,get:s(function(){return MD.getValidRangeSize},"get")});var UD=Kb();Object.defineProperty(F,"StreamUpload",{enumerable:!0,get:s(function(){return UD.StreamUpload},"get")});var LD=yh();Object.defineProperty(F,"FileUpload",{enumerable:!0,get:s(function(){return LD.FileUpload},"get")});var FD=fh();Object.defineProperty(F,"UploadResult",{enumerable:!0,get:s(function(){return FD.UploadResult},"get")});var jD=mh();Object.defineProperty(F,"Range",{enumerable:!0,get:s(function(){return jD.Range},"get")});var BD=Jb();Object.defineProperty(F,"PageIterator",{enumerable:!0,get:s(function(){return BD.PageIterator},"get")});var VD=aA();Object.defineProperty(F,"Client",{enumerable:!0,get:s(function(){return VD.Client},"get")});var HD=xh();Object.defineProperty(F,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return HD.CustomAuthenticationProvider},"get")});var ZD=_h();Object.defineProperty(F,"GraphError",{enumerable:!0,get:s(function(){return ZD.GraphError},"get")});var qD=Ot();Object.defineProperty(F,"GraphClientError",{enumerable:!0,get:s(function(){return qD.GraphClientError},"get")});var GD=bh();Object.defineProperty(F,"GraphRequest",{enumerable:!0,get:s(function(){return GD.GraphRequest},"get")});var WD=Gi();Object.defineProperty(F,"ResponseType",{enumerable:!0,get:s(function(){return WD.ResponseType},"get")})});var zo=$((Th,Ih)=>{(function(e,t){typeof Th=="object"&&typeof Ih<"u"?Ih.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Th,(function(){"use strict";var e=1e3,t=6e4,o=36e5,n="millisecond",r="second",i="minute",a="hour",c="day",u="week",l="month",d="quarter",g="year",f="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,T={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:s(function(Y){var U=["th","st","nd","rd"],M=Y%100;return"["+Y+(U[(M-20)%10]||U[M]||U[0])+"]"},"ordinal")},A=s(function(Y,U,M){var j=String(Y);return!j||j.length>=U?Y:""+Array(U+1-j.length).join(M)+Y},"m"),w={s:A,z:s(function(Y){var U=-Y.utcOffset(),M=Math.abs(U),j=Math.floor(M/60),L=M%60;return(U<=0?"+":"-")+A(j,2,"0")+":"+A(L,2,"0")},"z"),m:s(function Y(U,M){if(U.date()<M.date())return-Y(M,U);var j=12*(M.year()-U.year())+(M.month()-U.month()),L=U.clone().add(j,l),J=M-L<0,re=U.clone().add(j+(J?-1:1),l);return+(-(j+(M-L)/(J?L-re:re-L))||0)},"t"),a:s(function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},"a"),p:s(function(Y){return{M:l,y:g,w:u,d:c,D:f,h:a,m:i,s:r,ms:n,Q:d}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(Y){return Y===void 0},"u")},B="en",ie={};ie[B]=T;var ue=s(function(Y){return Y instanceof Ve},"p"),Se=s(function Y(U,M,j){var L;if(!U)return B;if(typeof U=="string"){var J=U.toLowerCase();ie[J]&&(L=J),M&&(ie[J]=M,L=J);var re=U.split("-");if(!L&&re.length>1)return Y(re[0])}else{var he=U.name;ie[he]=U,L=he}return!j&&L&&(B=L),L||!j&&B},"t"),Ae=s(function(Y,U){if(ue(Y))return Y.clone();var M=typeof U=="object"?U:{};return M.date=Y,M.args=arguments,new Ve(M)},"w"),oe=w;oe.l=Se,oe.i=ue,oe.w=function(Y,U){return Ae(Y,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var Ve=(function(){function Y(M){this.$L=Se(M.locale,null,!0),this.parse(M)}s(Y,"M");var U=Y.prototype;return U.parse=function(M){this.$d=(function(j){var L=j.date,J=j.utc;if(L===null)return new Date(NaN);if(oe.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var re=L.match(v);if(re){var he=re[2]-1||0,Te=(re[7]||"0").substring(0,3);return J?new Date(Date.UTC(re[1],he,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Te)):new Date(re[1],he,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Te)}}return new Date(L)})(M),this.$x=M.x||{},this.init()},U.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},U.$utils=function(){return oe},U.isValid=function(){return this.$d.toString()!==p},U.isSame=function(M,j){var L=Ae(M);return this.startOf(j)<=L&&L<=this.endOf(j)},U.isAfter=function(M,j){return Ae(M)<this.startOf(j)},U.isBefore=function(M,j){return this.endOf(j)<Ae(M)},U.$g=function(M,j,L){return oe.u(M)?this[j]:this.set(L,M)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(M,j){var L=this,J=!!oe.u(j)||j,re=oe.p(M),he=s(function(tr,He){var $t=oe.w(L.$u?Date.UTC(L.$y,He,tr):new Date(L.$y,He,tr),L);return J?$t:$t.endOf(c)},"l"),Te=s(function(tr,He){return oe.w(L.toDate()[tr].apply(L.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(He)),L)},"$"),ke=this.$W,Me=this.$M,rt=this.$D,kr="set"+(this.$u?"UTC":"");switch(re){case g:return J?he(1,0):he(31,11);case l:return J?he(1,Me):he(0,Me+1);case u:var er=this.$locale().weekStart||0,No=(ke<er?ke+7:ke)-er;return he(J?rt-No:rt+(6-No),Me);case c:case f:return Te(kr+"Hours",0);case a:return Te(kr+"Minutes",1);case i:return Te(kr+"Seconds",2);case r:return Te(kr+"Milliseconds",3);default:return this.clone()}},U.endOf=function(M){return this.startOf(M,!1)},U.$set=function(M,j){var L,J=oe.p(M),re="set"+(this.$u?"UTC":""),he=(L={},L[c]=re+"Date",L[f]=re+"Date",L[l]=re+"Month",L[g]=re+"FullYear",L[a]=re+"Hours",L[i]=re+"Minutes",L[r]=re+"Seconds",L[n]=re+"Milliseconds",L)[J],Te=J===c?this.$D+(j-this.$W):j;if(J===l||J===g){var ke=this.clone().set(f,1);ke.$d[he](Te),ke.init(),this.$d=ke.set(f,Math.min(this.$D,ke.daysInMonth())).$d}else he&&this.$d[he](Te);return this.init(),this},U.set=function(M,j){return this.clone().$set(M,j)},U.get=function(M){return this[oe.p(M)]()},U.add=function(M,j){var L,J=this;M=Number(M);var re=oe.p(j),he=s(function(Me){var rt=Ae(J);return oe.w(rt.date(rt.date()+Math.round(Me*M)),J)},"y");if(re===l)return this.set(l,this.$M+M);if(re===g)return this.set(g,this.$y+M);if(re===c)return he(1);if(re===u)return he(7);var Te=(L={},L[i]=t,L[a]=o,L[r]=e,L)[re]||1,ke=this.$d.getTime()+M*Te;return oe.w(ke,this)},U.subtract=function(M,j){return this.add(-1*M,j)},U.format=function(M){var j=this,L=this.$locale();if(!this.isValid())return L.invalidDate||p;var J=M||"YYYY-MM-DDTHH:mm:ssZ",re=oe.z(this),he=this.$H,Te=this.$m,ke=this.$M,Me=L.weekdays,rt=L.months,kr=L.meridiem,er=s(function(He,$t,Mo,oa){return He&&(He[$t]||He(j,J))||Mo[$t].slice(0,oa)},"h"),No=s(function(He){return oe.s(he%12||12,He,"0")},"d"),tr=kr||function(He,$t,Mo){var oa=He<12?"AM":"PM";return Mo?oa.toLowerCase():oa};return J.replace(b,(function(He,$t){return $t||(function(Mo){switch(Mo){case"YY":return String(j.$y).slice(-2);case"YYYY":return oe.s(j.$y,4,"0");case"M":return ke+1;case"MM":return oe.s(ke+1,2,"0");case"MMM":return er(L.monthsShort,ke,rt,3);case"MMMM":return er(rt,ke);case"D":return j.$D;case"DD":return oe.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return er(L.weekdaysMin,j.$W,Me,2);case"ddd":return er(L.weekdaysShort,j.$W,Me,3);case"dddd":return Me[j.$W];case"H":return String(he);case"HH":return oe.s(he,2,"0");case"h":return No(1);case"hh":return No(2);case"a":return tr(he,Te,!0);case"A":return tr(he,Te,!1);case"m":return String(Te);case"mm":return oe.s(Te,2,"0");case"s":return String(j.$s);case"ss":return oe.s(j.$s,2,"0");case"SSS":return oe.s(j.$ms,3,"0");case"Z":return re}return null})(He)||re.replace(":","")}))},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(M,j,L){var J,re=this,he=oe.p(j),Te=Ae(M),ke=(Te.utcOffset()-this.utcOffset())*t,Me=this-Te,rt=s(function(){return oe.m(re,Te)},"D");switch(he){case g:J=rt()/12;break;case l:J=rt();break;case d:J=rt()/3;break;case u:J=(Me-ke)/6048e5;break;case c:J=(Me-ke)/864e5;break;case a:J=Me/o;break;case i:J=Me/t;break;case r:J=Me/e;break;default:J=Me}return L?J:oe.a(J)},U.daysInMonth=function(){return this.endOf(l).$D},U.$locale=function(){return ie[this.$L]},U.locale=function(M,j){if(!M)return this.$L;var L=this.clone(),J=Se(M,j,!0);return J&&(L.$L=J),L},U.clone=function(){return oe.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},Y})(),ra=Ve.prototype;return Ae.prototype=ra,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",c],["$M",l],["$y",g],["$D",f]].forEach((function(Y){ra[Y[1]]=function(U){return this.$g(U,Y[0],Y[1])}})),Ae.extend=function(Y,U){return Y.$i||(Y(U,Ve,Ae),Y.$i=!0),Ae},Ae.locale=Se,Ae.isDayjs=ue,Ae.unix=function(Y){return Ae(1e3*Y)},Ae.en=ie[B],Ae.Ls=ie,Ae.p={},Ae}))});var Mz={};Xe(Mz,{microsoftOutlook:()=>Nz});module.exports=ve(Mz);var Qe={};Xe(Qe,{$ZodAny:()=>on,$ZodArray:()=>cn,$ZodAsyncError:()=>ct,$ZodBase64:()=>Ba,$ZodBase64URL:()=>Va,$ZodBigInt:()=>Hr,$ZodBigIntFormat:()=>Ga,$ZodBoolean:()=>ar,$ZodCIDRv4:()=>Fa,$ZodCIDRv6:()=>ja,$ZodCUID:()=>Ra,$ZodCUID2:()=>Ca,$ZodCatch:()=>us,$ZodCheck:()=>me,$ZodCheckBigIntFormat:()=>Nl,$ZodCheckEndsWith:()=>Wl,$ZodCheckGreaterThan:()=>Pa,$ZodCheckIncludes:()=>ql,$ZodCheckLengthEquals:()=>Bl,$ZodCheckLessThan:()=>_a,$ZodCheckLowerCase:()=>Hl,$ZodCheckMaxLength:()=>Fl,$ZodCheckMaxSize:()=>Ml,$ZodCheckMimeType:()=>Jl,$ZodCheckMinLength:()=>jl,$ZodCheckMinSize:()=>Ul,$ZodCheckMultipleOf:()=>Dl,$ZodCheckNumberFormat:()=>zl,$ZodCheckOverwrite:()=>Xl,$ZodCheckProperty:()=>Kl,$ZodCheckRegex:()=>Vl,$ZodCheckSizeEquals:()=>Ll,$ZodCheckStartsWith:()=>Gl,$ZodCheckStringFormat:()=>Br,$ZodCheckUpperCase:()=>Zl,$ZodCodec:()=>qr,$ZodCustom:()=>yn,$ZodCustomStringFormat:()=>qa,$ZodDate:()=>sn,$ZodDefault:()=>is,$ZodDiscriminatedUnion:()=>un,$ZodE164:()=>Ha,$ZodEmail:()=>Oa,$ZodEmoji:()=>ka,$ZodEncodeError:()=>Rt,$ZodEnum:()=>pn,$ZodError:()=>Go,$ZodExactOptional:()=>ns,$ZodFile:()=>os,$ZodFunction:()=>ms,$ZodGUID:()=>Sa,$ZodIPv4:()=>Ma,$ZodIPv6:()=>Ua,$ZodISODate:()=>Qo,$ZodISODateTime:()=>Yo,$ZodISODuration:()=>tn,$ZodISOTime:()=>en,$ZodIntersection:()=>es,$ZodJWT:()=>Za,$ZodKSUID:()=>Na,$ZodLazy:()=>hs,$ZodLiteral:()=>mn,$ZodMAC:()=>La,$ZodMap:()=>ts,$ZodNaN:()=>ls,$ZodNanoID:()=>$a,$ZodNever:()=>Xa,$ZodNonOptional:()=>ss,$ZodNull:()=>Ja,$ZodNullable:()=>hn,$ZodNumber:()=>Vr,$ZodNumberFormat:()=>rn,$ZodObject:()=>Ya,$ZodObjectJIT:()=>td,$ZodOptional:()=>Zr,$ZodPipe:()=>gn,$ZodPrefault:()=>as,$ZodPromise:()=>fs,$ZodReadonly:()=>ds,$ZodRealError:()=>qe,$ZodRecord:()=>dn,$ZodRegistry:()=>gs,$ZodSet:()=>rs,$ZodString:()=>_t,$ZodStringFormat:()=>de,$ZodSuccess:()=>cs,$ZodSymbol:()=>Wa,$ZodTemplateLiteral:()=>ps,$ZodTransform:()=>fn,$ZodTuple:()=>ln,$ZodType:()=>q,$ZodULID:()=>Da,$ZodURL:()=>Xo,$ZodUUID:()=>wa,$ZodUndefined:()=>Ka,$ZodUnion:()=>sr,$ZodUnknown:()=>nn,$ZodVoid:()=>an,$ZodXID:()=>za,$ZodXor:()=>Qa,$brand:()=>Fo,$constructor:()=>y,$input:()=>vs,$output:()=>ys,Doc:()=>Jo,JSONSchema:()=>Eg,JSONSchemaGenerator:()=>Bs,NEVER:()=>na,TimePrecision:()=>_s,_any:()=>ti,_array:()=>Wd,_base64:()=>jn,_base64url:()=>Bn,_bigint:()=>Ts,_boolean:()=>Yn,_catch:()=>NS,_check:()=>Ag,_cidrv4:()=>Ln,_cidrv6:()=>Fn,_coercedBigint:()=>ei,_coercedBoolean:()=>Qn,_coercedDate:()=>ni,_coercedNumber:()=>Jn,_coercedString:()=>En,_cuid:()=>Rn,_cuid2:()=>Cn,_custom:()=>li,_date:()=>Rs,_decode:()=>da,_decodeAsync:()=>ma,_default:()=>CS,_discriminatedUnion:()=>PS,_e164:()=>Vn,_email:()=>Tn,_emoji:()=>kn,_encode:()=>la,_encodeAsync:()=>pa,_endsWith:()=>mr,_enum:()=>SS,_file:()=>Ds,_float32:()=>Ps,_float64:()=>bs,_gt:()=>lt,_gte:()=>Oe,_guid:()=>Kr,_includes:()=>dr,_int:()=>Xn,_int32:()=>As,_int64:()=>Is,_intersection:()=>bS,_ipv4:()=>Mn,_ipv6:()=>Un,_isoDate:()=>qn,_isoDateTime:()=>Zn,_isoDuration:()=>Wn,_isoTime:()=>Gn,_jwt:()=>Hn,_ksuid:()=>Nn,_lazy:()=>FS,_length:()=>Lt,_literal:()=>OS,_lowercase:()=>ur,_lt:()=>ut,_lte:()=>Fe,_mac:()=>xs,_map:()=>TS,_max:()=>Fe,_maxLength:()=>Ut,_maxSize:()=>bt,_mime:()=>fr,_min:()=>Oe,_minLength:()=>Ie,_minSize:()=>dt,_multipleOf:()=>Pt,_nan:()=>Cs,_nanoid:()=>$n,_nativeEnum:()=>wS,_negative:()=>ai,_never:()=>$s,_nonnegative:()=>ci,_nonoptional:()=>DS,_nonpositive:()=>si,_normalize:()=>hr,_null:()=>ks,_nullable:()=>RS,_number:()=>Kn,_optional:()=>$S,_overwrite:()=>nt,_parse:()=>Nr,_parseAsync:()=>Mr,_pipe:()=>MS,_positive:()=>ii,_promise:()=>jS,_property:()=>ui,_readonly:()=>US,_record:()=>ES,_refine:()=>di,_regex:()=>ze,_safeDecode:()=>ha,_safeDecodeAsync:()=>ya,_safeEncode:()=>fa,_safeEncodeAsync:()=>ga,_safeParse:()=>Ur,_safeParseAsync:()=>Fr,_set:()=>IS,_size:()=>Mt,_slugify:()=>Jr,_startsWith:()=>pr,_string:()=>An,_stringFormat:()=>xr,_stringbool:()=>Us,_success:()=>zS,_superRefine:()=>zs,_symbol:()=>ws,_templateLiteral:()=>LS,_toLowerCase:()=>yr,_toUpperCase:()=>vr,_transform:()=>kS,_trim:()=>gr,_tuple:()=>AS,_uint32:()=>Es,_uint64:()=>Ss,_ulid:()=>Dn,_undefined:()=>Os,_union:()=>xS,_unknown:()=>ri,_uppercase:()=>lr,_url:()=>cr,_uuid:()=>In,_uuidv4:()=>Sn,_uuidv6:()=>wn,_uuidv7:()=>On,_void:()=>oi,_xid:()=>zn,_xor:()=>_S,clone:()=>$e,config:()=>xe,createStandardJSONSchemaMethod:()=>Xr,createToJSONSchemaMethod:()=>Kd,decode:()=>Hh,decodeAsync:()=>qh,describe:()=>Ns,encode:()=>Vh,encodeAsync:()=>Zh,extractDefs:()=>jt,finalize:()=>Bt,flattenError:()=>Dr,formatError:()=>zr,globalConfig:()=>Lo,globalRegistry:()=>Re,initializeContext:()=>Ft,isValidBase64:()=>ed,isValidBase64URL:()=>fg,isValidJWT:()=>hg,locales:()=>Wr,meta:()=>Ms,parse:()=>or,parseAsync:()=>nr,prettifyError:()=>ua,process:()=>pe,regexes:()=>Ge,registry:()=>bn,safeDecode:()=>Wh,safeDecodeAsync:()=>Jh,safeEncode:()=>Gh,safeEncodeAsync:()=>Kh,safeParse:()=>Lr,safeParseAsync:()=>jr,toDotPath:()=>Bh,toJSONSchema:()=>pi,treeifyError:()=>ca,util:()=>C,version:()=>Yl});var na=Object.freeze({status:"aborted"});function y(e,t,o){function n(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,u);let l=a.prototype,d=Object.keys(l);for(let g=0;g<d.length;g++){let f=d[g];f in c||(c[f]=l[f].bind(c))}}s(n,"init");let r=o?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(c){var u;let l=o?.Parent?new i:this;n(l,c),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s(c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var Fo=Symbol("zod_brand"),ct=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Rt=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Lo={};function xe(e){return e&&Object.assign(Lo,e),Lo}s(xe,"config");var C={};Xe(C,{BIGINT_FORMAT_RANGES:()=>il,Class:()=>Yu,NUMBER_FORMAT_RANGES:()=>nl,aborted:()=>Nt,allowsEval:()=>tl,assert:()=>zT,assertEqual:()=>$T,assertIs:()=>CT,assertNever:()=>DT,assertNotEqual:()=>RT,assignProp:()=>Dt,base64ToUint8Array:()=>Lh,base64urlToUint8Array:()=>qT,cached:()=>Rr,captureStackTrace:()=>aa,cleanEnum:()=>ZT,cleanRegex:()=>Vo,clone:()=>$e,cloneDef:()=>MT,createTransparentProxy:()=>VT,defineLazy:()=>Q,esc:()=>ia,escapeRegex:()=>ot,extend:()=>zh,finalizeIssue:()=>Ze,floatSafeRemainder:()=>Qu,getElementAtPath:()=>UT,getEnumValues:()=>Bo,getLengthableOrigin:()=>qo,getParsedType:()=>BT,getSizableOrigin:()=>Zo,hexToUint8Array:()=>WT,isObject:()=>rr,isPlainObject:()=>zt,issue:()=>Cr,joinValues:()=>I,jsonStringifyReplacer:()=>$r,merge:()=>HT,mergeDefs:()=>xt,normalizeParams:()=>k,nullish:()=>Ct,numKeys:()=>jT,objectClone:()=>NT,omit:()=>Dh,optionalKeys:()=>ol,parsedType:()=>D,partial:()=>Mh,pick:()=>Ch,prefixIssues:()=>Ye,primitiveTypes:()=>rl,promiseAllObject:()=>LT,propertyKeyTypes:()=>Ho,randomString:()=>FT,required:()=>Uh,safeExtend:()=>Nh,shallowClone:()=>sa,slugify:()=>el,stringifyPrimitive:()=>R,uint8ArrayToBase64:()=>Fh,uint8ArrayToBase64url:()=>GT,uint8ArrayToHex:()=>KT,unwrapMessage:()=>jo});function $T(e){return e}s($T,"assertEqual");function RT(e){return e}s(RT,"assertNotEqual");function CT(e){}s(CT,"assertIs");function DT(e){throw new Error("Unexpected value in exhaustive check")}s(DT,"assertNever");function zT(e){}s(zT,"assert");function Bo(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}s(Bo,"getEnumValues");function I(e,t="|"){return e.map(o=>R(o)).join(t)}s(I,"joinValues");function $r(e,t){return typeof t=="bigint"?t.toString():t}s($r,"jsonStringifyReplacer");function Rr(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}s(Rr,"cached");function Ct(e){return e==null}s(Ct,"nullish");function Vo(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}s(Vo,"cleanRegex");function Qu(e,t){let o=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let u=n.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[1]))}let i=o>r?o:r,a=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return a%c/10**i}s(Qu,"floatSafeRemainder");var Rh=Symbol("evaluating");function Q(e,t,o){let n;Object.defineProperty(e,t,{get(){if(n!==Rh)return n===void 0&&(n=Rh,n=o()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(Q,"defineLazy");function NT(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(NT,"objectClone");function Dt(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}s(Dt,"assignProp");function xt(...e){let t={};for(let o of e){let n=Object.getOwnPropertyDescriptors(o);Object.assign(t,n)}return Object.defineProperties({},t)}s(xt,"mergeDefs");function MT(e){return xt(e._zod.def)}s(MT,"cloneDef");function UT(e,t){return t?t.reduce((o,n)=>o?.[n],e):e}s(UT,"getElementAtPath");function LT(e){let t=Object.keys(e),o=t.map(n=>e[n]);return Promise.all(o).then(n=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=n[i];return r})}s(LT,"promiseAllObject");function FT(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let n=0;n<e;n++)o+=t[Math.floor(Math.random()*t.length)];return o}s(FT,"randomString");function ia(e){return JSON.stringify(e)}s(ia,"esc");function el(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(el,"slugify");var aa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(rr,"isObject");var tl=Rr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function zt(e){if(rr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(rr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}s(zt,"isPlainObject");function sa(e){return zt(e)?{...e}:Array.isArray(e)?[...e]:e}s(sa,"shallowClone");function jT(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}s(jT,"numKeys");var BT=s(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Ho=new Set(["string","number","symbol"]),rl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(ot,"escapeRegex");function $e(e,t,o){let n=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(n._zod.parent=e),n}s($e,"clone");function k(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:s(()=>t.error,"error")}:t}s(k,"normalizeParams");function VT(e){let t;return new Proxy({},{get(o,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(o,n,r,i){return t??(t=e()),Reflect.set(t,n,r,i)},has(o,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(o,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(o,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}s(VT,"createTransparentProxy");function R(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(R,"stringifyPrimitive");function ol(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(ol,"optionalKeys");var nl={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]},il={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ch(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=xt(e._zod.def,{get shape(){let a={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=o.shape[c])}return Dt(this,"shape",a),a},checks:[]});return $e(e,i)}s(Ch,"pick");function Dh(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=xt(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return Dt(this,"shape",a),a},checks:[]});return $e(e,i)}s(Dh,"omit");function zh(e,t){if(!zt(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=xt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Dt(this,"shape",i),i}});return $e(e,r)}s(zh,"extend");function Nh(e,t){if(!zt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=xt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Dt(this,"shape",n),n}});return $e(e,o)}s(Nh,"safeExtend");function HT(e,t){let o=xt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Dt(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return $e(e,o)}s(HT,"merge");function Mh(e,t,o){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=xt(t._zod.def,{get shape(){let c=t._zod.def.shape,u={...c};if(o)for(let l in o){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);o[l]&&(u[l]=e?new e({type:"optional",innerType:c[l]}):c[l])}else for(let l in c)u[l]=e?new e({type:"optional",innerType:c[l]}):c[l];return Dt(this,"shape",u),u},checks:[]});return $e(t,a)}s(Mh,"partial");function Uh(e,t,o){let n=xt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(o)for(let a in o){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);o[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Dt(this,"shape",i),i}});return $e(t,n)}s(Uh,"required");function Nt(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}s(Nt,"aborted");function Ye(e,t){return t.map(o=>{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}s(Ye,"prefixIssues");function jo(e){return typeof e=="string"?e:e?.message}s(jo,"unwrapMessage");function Ze(e,t,o){let n={...e,path:e.path??[]};if(!e.message){let r=jo(e.inst?._zod.def?.error?.(e))??jo(t?.error?.(e))??jo(o.customError?.(e))??jo(o.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}s(Ze,"finalizeIssue");function Zo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Zo,"getSizableOrigin");function qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(qo,"getLengthableOrigin");function D(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}s(D,"parsedType");function Cr(...e){let[t,o,n]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:n}:{...t}}s(Cr,"issue");function ZT(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(ZT,"cleanEnum");function Lh(e){let t=atob(e),o=new Uint8Array(t.length);for(let n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return o}s(Lh,"base64ToUint8Array");function Fh(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}s(Fh,"uint8ArrayToBase64");function qT(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return Lh(t+o)}s(qT,"base64urlToUint8Array");function GT(e){return Fh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(GT,"uint8ArrayToBase64url");function WT(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)o[n/2]=Number.parseInt(t.slice(n,n+2),16);return o}s(WT,"hexToUint8Array");function KT(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(KT,"uint8ArrayToHex");var Yu=class{static{s(this,"Class")}constructor(...t){}};var jh=s((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$r,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Go=y("$ZodError",jh),qe=y("$ZodError",jh,{Parent:Error});function Dr(e,t=o=>o.message){let o={},n=[];for(let r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:o}}s(Dr,"flattenError");function zr(e,t=o=>o.message){let o={_errors:[]},n=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)o._errors.push(t(i));else{let a=o,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}},"processError");return n(e),o}s(zr,"formatError");function ca(e,t=o=>o.message){let o={errors:[]},n=s((r,i=[])=>{var a,c;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>n({issues:l},u.path));else if(u.code==="invalid_key")n({issues:u.issues},u.path);else if(u.code==="invalid_element")n({issues:u.issues},u.path);else{let l=[...i,...u.path];if(l.length===0){o.errors.push(t(u));continue}let d=o,g=0;for(;g<l.length;){let f=l[g],p=g===l.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(c=d.items)[f]??(c[f]={errors:[]}),d=d.items[f]),p&&d.errors.push(t(u)),g++}}},"processError");return n(e),o}s(ca,"treeifyError");function Bh(e){let t=[],o=e.map(n=>typeof n=="object"?n.key:n);for(let n of o)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}s(Bh,"toDotPath");function ua(e){let t=[],o=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of o)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${Bh(n.path)}`);return t.join(`
6
- `)}s(ua,"prettifyError");var Nr=s(e=>(t,o,n,r)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise)throw new ct;if(a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>Ze(u,i,xe())));throw aa(c,r?.callee),c}return a.value},"_parse"),or=Nr(qe),Mr=s(e=>async(t,o,n,r)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>Ze(u,i,xe())));throw aa(c,r?.callee),c}return a.value},"_parseAsync"),nr=Mr(qe),Ur=s(e=>(t,o,n)=>{let r=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:o,issues:[]},r);if(i instanceof Promise)throw new ct;return i.issues.length?{success:!1,error:new(e??Go)(i.issues.map(a=>Ze(a,r,xe())))}:{success:!0,data:i.value}},"_safeParse"),Lr=Ur(qe),Fr=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:o,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Ze(a,r,xe())))}:{success:!0,data:i.value}},"_safeParseAsync"),jr=Fr(qe),la=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Nr(e)(t,o,r)},"_encode"),Vh=la(qe),da=s(e=>(t,o,n)=>Nr(e)(t,o,n),"_decode"),Hh=da(qe),pa=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Mr(e)(t,o,r)},"_encodeAsync"),Zh=pa(qe),ma=s(e=>async(t,o,n)=>Mr(e)(t,o,n),"_decodeAsync"),qh=ma(qe),fa=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,o,r)},"_safeEncode"),Gh=fa(qe),ha=s(e=>(t,o,n)=>Ur(e)(t,o,n),"_safeDecode"),Wh=ha(qe),ga=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Fr(e)(t,o,r)},"_safeEncodeAsync"),Kh=ga(qe),ya=s(e=>async(t,o,n)=>Fr(e)(t,o,n),"_safeDecodeAsync"),Jh=ya(qe);var Ge={};Xe(Ge,{base64:()=>Pl,base64url:()=>va,bigint:()=>Sl,boolean:()=>Ol,browserEmail:()=>nI,cidrv4:()=>xl,cidrv6:()=>_l,cuid:()=>al,cuid2:()=>sl,date:()=>Al,datetime:()=>Tl,domain:()=>sI,duration:()=>pl,e164:()=>bl,email:()=>fl,emoji:()=>hl,extendedDuration:()=>XT,guid:()=>ml,hex:()=>cI,hostname:()=>aI,html5Email:()=>tI,idnEmail:()=>oI,integer:()=>wl,ipv4:()=>gl,ipv6:()=>yl,ksuid:()=>ll,lowercase:()=>Rl,mac:()=>vl,md5_base64:()=>lI,md5_base64url:()=>dI,md5_hex:()=>uI,nanoid:()=>dl,null:()=>kl,number:()=>xa,rfc5322Email:()=>rI,sha1_base64:()=>mI,sha1_base64url:()=>fI,sha1_hex:()=>pI,sha256_base64:()=>gI,sha256_base64url:()=>yI,sha256_hex:()=>hI,sha384_base64:()=>xI,sha384_base64url:()=>_I,sha384_hex:()=>vI,sha512_base64:()=>bI,sha512_base64url:()=>AI,sha512_hex:()=>PI,string:()=>Il,time:()=>El,ulid:()=>cl,undefined:()=>$l,unicodeEmail:()=>Xh,uppercase:()=>Cl,uuid:()=>ir,uuid4:()=>YT,uuid6:()=>QT,uuid7:()=>eI,xid:()=>ul});var al=/^[cC][^\s-]{8,}$/,sl=/^[0-9a-z]+$/,cl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ul=/^[0-9a-vA-V]{20}$/,ll=/^[A-Za-z0-9]{27}$/,dl=/^[a-zA-Z0-9_-]{21}$/,pl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,XT=/^[-+]?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)?)??$/,ml=/^([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})$/,ir=s(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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"),YT=ir(4),QT=ir(6),eI=ir(7),fl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tI=/^[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])?)*$/,rI=/^(([^<>()\[\]\\.,;:\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,}))$/,Xh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,oI=Xh,nI=/^[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])?)*$/,iI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hl(){return new RegExp(iI,"u")}s(hl,"emoji");var gl=/^(?:(?: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])$/,yl=/^(([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}|:))$/,vl=s(e=>{let t=ot(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),xl=/^((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])$/,_l=/^(([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])$/,Pl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,va=/^[A-Za-z0-9_-]*$/,aI=/^(?=.{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])?)*\.?$/,sI=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bl=/^\+[1-9]\d{6,14}$/,Yh="(?:(?:\\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])))",Al=new RegExp(`^${Yh}$`);function Qh(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(Qh,"timeSource");function El(e){return new RegExp(`^${Qh(e)}$`)}s(El,"time");function Tl(e){let t=Qh({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${o.join("|")})`;return new RegExp(`^${Yh}T(?:${n})$`)}s(Tl,"datetime");var Il=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Sl=/^-?\d+n?$/,wl=/^-?\d+$/,xa=/^-?\d+(?:\.\d+)?$/,Ol=/^(?:true|false)$/i,kl=/^null$/i;var $l=/^undefined$/i;var Rl=/^[^A-Z]*$/,Cl=/^[^a-z]*$/,cI=/^[0-9a-fA-F]*$/;function Wo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Wo,"fixedBase64");function Ko(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Ko,"fixedBase64url");var uI=/^[0-9a-fA-F]{32}$/,lI=Wo(22,"=="),dI=Ko(22),pI=/^[0-9a-fA-F]{40}$/,mI=Wo(27,"="),fI=Ko(27),hI=/^[0-9a-fA-F]{64}$/,gI=Wo(43,"="),yI=Ko(43),vI=/^[0-9a-fA-F]{96}$/,xI=Wo(64,""),_I=Ko(64),PI=/^[0-9a-fA-F]{128}$/,bI=Wo(86,"=="),AI=Ko(86);var me=y("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),tg={number:"number",bigint:"bigint",object:"date"},_a=y("$ZodCheckLessThan",(e,t)=>{me.init(e,t);let o=tg[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pa=y("$ZodCheckGreaterThan",(e,t)=>{me.init(e,t);let o=tg[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dl=y("$ZodCheckMultipleOf",(e,t)=>{me.init(e,t),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):Qu(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),zl=y("$ZodCheckNumberFormat",(e,t)=>{me.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),n=o?"int":"number",[r,i]=nl[t.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=t.format,c.minimum=r,c.maximum=i,o&&(c.pattern=wl)}),e._zod.check=a=>{let c=a.value;if(o){if(!Number.isInteger(c)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Nl=y("$ZodCheckBigIntFormat",(e,t)=>{me.init(e,t);let[o,n]=il[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=o,i.maximum=n}),e._zod.check=r=>{let i=r.value;i<o&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),i>n&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Ml=y("$ZodCheckMaxSize",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Zo(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ul=y("$ZodCheckMinSize",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Zo(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ll=y("$ZodCheckSizeEquals",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Zo(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Fl=y("$ZodCheckMaxLength",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let a=qo(r);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jl=y("$ZodCheckMinLength",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let a=qo(r);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bl=y("$ZodCheckLengthEquals",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Ct(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=qo(r),c=i>t.length;n.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Br=y("$ZodCheckStringFormat",(e,t)=>{var o,n;me.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Vl=y("$ZodCheckRegex",(e,t)=>{Br.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Hl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Rl),Br.init(e,t)}),Zl=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cl),Br.init(e,t)}),ql=y("$ZodCheckIncludes",(e,t)=>{me.init(e,t);let o=ot(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=n,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Gl=y("$ZodCheckStartsWith",(e,t)=>{me.init(e,t);let o=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Wl=y("$ZodCheckEndsWith",(e,t)=>{me.init(e,t);let o=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function eg(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues))}s(eg,"handleCheckPropertyResult");var Kl=y("$ZodCheckProperty",(e,t)=>{me.init(e,t),e._zod.check=o=>{let n=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>eg(r,o,t.property));eg(n,o,t.property)}}),Jl=y("$ZodCheckMimeType",(e,t)=>{me.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Xl=y("$ZodCheckOverwrite",(e,t)=>{me.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});var Jo=class{static{s(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
5
+ 3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),c.name="Invalid Dependency",c;u.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=u.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw c=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),c.name="Invalid Content-type header",c;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=n.next(),[3,1];case 3:return o.requests=t,[2,o]}})})},e.prototype.addDependency=function(t,o){if(!this.requests.has(t)){var n=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw n.name="Invalid Dependent",n}if(typeof o<"u"&&!this.requests.has(o)){var n=new Error("Dependency ".concat(o," does not exists, Please check the id"));throw n.name="Invalid Dependency",n}if(typeof o<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(o)!==-1){var n=new Error("Dependency ".concat(o," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}r.dependsOn.push(o)}else{for(var i=this.requests.entries(),a=void 0,c=i.next();!c.done&&c.value[1].id!==t;)a=c,c=i.next();if(typeof a<"u"){var u=a.value[0];if(c.value[1].dependsOn===void 0&&(c.value[1].dependsOn=[]),c.value[1].dependsOn.indexOf(u)!==-1){var n=new Error("Dependency ".concat(u," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}c.value[1].dependsOn.push(u)}else{var n=new Error("Can't add dependency ".concat(o,", There is only a dependent request in the batch"));throw n.name="Invalid Dependency Addition",n}}},e.prototype.removeDependency=function(t,o){var n=this.requests.get(t);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof o<"u"){var r=n.dependsOn.indexOf(o);return r===-1?!1:(n.dependsOn.splice(r,1),!0)}else return delete n.dependsOn,!0},e.requestLimit=20,e})();Yc.BatchRequestContent=z$});var Tb=R(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.BatchResponseContent=void 0;var N$=(be(),ve(Pe)),M$=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var o=t.body,n={};if(n.status=t.status,t.statusText!==void 0&&(n.statusText=t.statusText),n.headers=t.headers,n.headers!==void 0&&n.headers["Content-Type"]!==void 0&&n.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(o);return new Response(r,n)}return new Response(o,n)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var o=t.responses,n=0,r=o.length;n<r;n++)this.responses.set(o[n].id,this.createResponseObject(o[n]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,o;return N$.__generator(this,function(n){switch(n.label){case 0:t=this.responses.entries(),o=t.next(),n.label=1;case 1:return o.done?[3,3]:[4,o.value];case 2:return n.sent(),o=t.next(),[3,1];case 3:return[2]}})},e})();Qc.BatchResponseContent=M$});var ng=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.GRAPH_URLS=Xt.GRAPH_BASE_URL=Xt.GRAPH_API_VERSION=void 0;Xt.GRAPH_API_VERSION="v1.0";Xt.GRAPH_BASE_URL="https://graph.microsoft.com/";Xt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var kt=R(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.GraphClientError=void 0;var U$=(be(),ve(Pe)),L$=(function(e){U$.__extends(t,e);function t(o){var n=e.call(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return s(t,"GraphClientError"),t.setGraphClientError=function(o){var n;return o instanceof Error?n=o:(n=new t,n.customError=o),n},t})(Error);eu.GraphClientError=L$});var tu=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isCustomHost=at.isGraphURL=at.serializeContent=at.urlJoin=at.oDataQueryNames=void 0;var F$=ng(),j$=kt();at.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var B$=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),o=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),n=s(function(i,a){return[t(i),o(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(n)},"urlJoin");at.urlJoin=B$;var V$=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");at.serializeContent=V$;var H$=s(function(e){return Ib(e)},"isGraphURL");at.isGraphURL=H$;var Z$=s(function(e,t){return t.forEach(function(o){return q$(o)}),Ib(e,t)},"isCustomHost");at.isCustomHost=Z$;var Ib=s(function(e,t){if(t===void 0&&(t=F$.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var o=e.indexOf(":"),n=e.indexOf("/"),r="";if(n!==-1)return o!==-1&&o<n?(r=e.substring(0,o),t.has(r)):(r=e.substring(0,n),t.has(r))}return!1},"isValidEndpoint"),q$=s(function(e){if(e.indexOf("/")!==-1)throw new j$.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Yt=R(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.MiddlewareControl=void 0;var G$=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var o=0,n=t;o<n.length;o++){var r=n[o],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,o){this.middlewareOptions.set(t,o)},e})();ru.MiddlewareControl=G$});var bo=R(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.cloneRequestWithNewUrl=st.appendRequestHeader=st.setRequestHeader=st.getRequestHeader=st.generateUUID=void 0;var Sb=(be(),ve(Pe)),W$=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");st.generateUUID=W$;var K$=s(function(e,t,o){var n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(o);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(o);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===o){n=r[i][1];break}}else t.headers[o]!==void 0&&(n=t.headers[o]);return n},"getRequestHeader");st.getRequestHeader=K$;var J$=s(function(e,t,o,n){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(o,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[o]=n,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(o,n);else if(t.headers instanceof Array){for(var a=0,c=t.headers.length;a<c;a++){var u=t.headers[a];if(u[0]===o){u[1]=n;break}}a===c&&t.headers.push([o,n])}else Object.assign(t.headers,(i={},i[o]=n,i))},"setRequestHeader");st.setRequestHeader=J$;var X$=s(function(e,t,o,n){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(o,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[o]=n,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(o,n):t.headers instanceof Array?t.headers.push([o,n]):t.headers===void 0?t.headers=(i={},i[o]=n,i):t.headers[o]===void 0?t.headers[o]=n:t.headers[o]+=", ".concat(n))},"appendRequestHeader");st.appendRequestHeader=X$;var Y$=s(function(e,t){return Sb.__awaiter(void 0,void 0,void 0,function(){var o,n,r,i,a,c,u,l,d,h,f,p,v;return Sb.__generator(this,function(b){switch(b.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return n=b.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:n=b.sent(),b.label=4;case 4:return o=n,r=t.method,i=t.headers,a=t.referrer,c=t.referrerPolicy,u=t.mode,l=t.credentials,d=t.cache,h=t.redirect,f=t.integrity,p=t.keepalive,v=t.signal,[2,new Request(e,{method:r,headers:i,body:o,referrer:a,referrerPolicy:c,mode:u,credentials:l,cache:d,redirect:h,integrity:f,keepalive:p,signal:v})]}})})},"cloneRequestWithNewUrl");st.cloneRequestWithNewUrl=Y$});var ig=R(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.AuthenticationHandlerOptions=void 0;var Q$=(function(){function e(t,o){this.authenticationProvider=t,this.authenticationProviderOptions=o}return s(e,"AuthenticationHandlerOptions"),e})();ou.AuthenticationHandlerOptions=Q$});var Eo=R(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TelemetryHandlerOptions=Ao.FeatureUsageFlag=void 0;var wb=Yt(),ag;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(ag||(Ao.FeatureUsageFlag=ag={}));var eC=(function(){function e(){this.featureUsage=ag.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,o){var n;t.middlewareControl instanceof wb.MiddlewareControl?n=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new wb.MiddlewareControl,typeof n>"u"&&(n=new e,t.middlewareControl.setMiddlewareOptions(e,n)),n.setFeatureUsage(o)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();Ao.TelemetryHandlerOptions=eC});var iu=R(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.AuthenticationHandler=void 0;var Ob=(be(),ve(Pe)),kb=tu(),tC=Yt(),rC=bo(),oC=ig(),Rb=Eo(),nC=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return Ob.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c;return Ob.__generator(this,function(u){switch(u.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,kb.isGraphURL)(o)||t.customHosts&&(0,kb.isCustomHost)(o,t.customHosts)?(n=void 0,t.middlewareControl instanceof tC.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(oC.AuthenticationHandlerOptions)),r=void 0,i=void 0,n&&(r=n.authenticationProvider,i=n.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=u.sent(),c="Bearer ".concat(a),(0,rC.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,c),Rb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Rb.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],u.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();nu.AuthenticationHandler=nC});var su=R(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.HTTPMessageHandler=void 0;var $b=(be(),ve(Pe)),iC=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return $b.__awaiter(this,void 0,void 0,function(){var o;return $b.__generator(this,function(n){switch(n.label){case 0:return o=t,[4,fetch(t.request,t.options)];case 1:return o.response=n.sent(),[2]}})})},e})();au.HTTPMessageHandler=iC});var Zi=R(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RetryHandlerOptions=void 0;var aC=(function(){function e(t,o,n){if(t===void 0&&(t=e.DEFAULT_DELAY),o===void 0&&(o=e.DEFAULT_MAX_RETRIES),n===void 0&&(n=e.defaultShouldRetry),t>e.MAX_DELAY&&o>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(o>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&o<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(o<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(o,e.MAX_MAX_RETRIES),this.shouldRetry=n}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();cu.RetryHandlerOptions=aC});var lu=R(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.RetryHandler=void 0;var To=(be(),ve(Pe)),sg=Hi(),sC=Yt(),Cb=bo(),Db=Zi(),zb=Eo(),cC=(function(){function e(t){t===void 0&&(t=new Db.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,o){var n=typeof t=="string"?o.method:t.method,r=n===sg.RequestMethod.PUT||n===sg.RequestMethod.PATCH||n===sg.RequestMethod.POST;if(r){var i=(0,Cb.getRequestHeader)(t,o,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,o,n){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=o>=2?this.getExponentialBackOffTime(o)+n+r():n+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return To.__awaiter(this,void 0,void 0,function(){var o;return To.__generator(this,function(n){return o=t*1e3,[2,new Promise(function(r){return setTimeout(r,o)})]})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof sC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof o>"u"&&(o=Object.assign(new Db.RetryHandlerOptions,this.options)),o},e.prototype.executeWithRetry=function(t,o,n){return To.__awaiter(this,void 0,void 0,function(){var r;return To.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),o<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,o,t.request,t.options,t.response)?(++o,(0,Cb.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,o.toString()),r=this.getDelay(t.response,o,n.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,o,n)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return To.__awaiter(this,void 0,void 0,function(){var o,n;return To.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),zb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,zb.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();uu.RetryHandler=cC});var qi=R(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.RedirectHandlerOptions=void 0;var uC=(function(){function e(t,o){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),o===void 0&&(o=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var n=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw n.name="MaxLimitExceeded",n}if(t<0){var n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=t,this.shouldRedirect=o}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();du.RedirectHandlerOptions=uC});var mu=R(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RedirectHandler=void 0;var Io=(be(),ve(Pe)),lC=Hi(),dC=Yt(),pC=bo(),cg=qi(),Nb=Eo(),mC=(function(){function e(t){t===void 0&&(t=new cg.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,o){var n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=n.exec(t),i,a;r!==null&&(i=r[0]);var c=n.exec(o);return c!==null&&(a=c[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,o){return Io.__awaiter(this,void 0,void 0,function(){var n,r;return Io.__generator(this,function(i){switch(i.label){case 0:return n=o,typeof o.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,pC.cloneRequestWithNewUrl)(t,o.request)];case 2:r=i.sent(),i.label=3;case 3:return n.request=r,[2]}})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof dC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(cg.RedirectHandlerOptions)),typeof o>"u"&&(o=Object.assign(new cg.RedirectHandlerOptions,this.options)),o},e.prototype.executeWithRedirect=function(t,o,n){return Io.__awaiter(this,void 0,void 0,function(){var r,i;return Io.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,o<n.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&n.shouldRedirect(r)?(++o,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=lC.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,o,n)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return Io.__awaiter(this,void 0,void 0,function(){var o,n;return Io.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,Nb.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Nb.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();pu.RedirectHandler=mC});var Mb=R(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.PACKAGE_VERSION=void 0;fu.PACKAGE_VERSION="3.0.7"});var yu=R(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.TelemetryHandler=void 0;var Ub=(be(),ve(Pe)),Lb=tu(),fC=Mb(),gC=Yt(),gu=bo(),hC=Eo(),yC=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return Ub.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a;return Ub.__generator(this,function(c){switch(c.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,Lb.isGraphURL)(o)||t.customHosts&&(0,Lb.isCustomHost)(o,t.customHosts)?(n=(0,gu.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),n||(n=(0,gu.generateUUID)(),(0,gu.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,n)),r="".concat(e.PRODUCT_NAME,"/").concat(fC.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof gC.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(hC.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,gu.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();hu.TelemetryHandler=yC});var Fb=R(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.MiddlewareFactory=void 0;var vC=iu(),xC=su(),_C=qi(),PC=Zi(),bC=mu(),AC=lu(),EC=yu(),TC=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),IC=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var o=[],n=new vC.AuthenticationHandler(t),r=new AC.RetryHandler(new PC.RetryHandlerOptions),i=new EC.TelemetryHandler,a=new xC.HTTPMessageHandler;if(o.push(n),o.push(r),TC()){var c=new bC.RedirectHandler(new _C.RedirectHandlerOptions);o.push(c)}return o.push(i),o.push(a),o},e})();vu.MiddlewareFactory=IC});var _u=R(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ChaosStrategy=void 0;var jb;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(jb||(xu.ChaosStrategy=jb={}))});var ug=R(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.ChaosHandlerOptions=void 0;var SC=_u(),wC=(function(){function e(t,o,n,r,i,a){if(t===void 0&&(t=SC.ChaosStrategy.RANDOM),o===void 0&&(o="Some error Happened"),this.chaosStrategy=t,this.statusCode=n,this.statusMessage=o,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();Pu.ChaosHandlerOptions=wC});var Bb=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.httpStatusCode=So.methodStatusCode=void 0;So.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};So.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var Zb=R(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ChaosHandler=void 0;var bu=(be(),ve(Pe)),OC=Yt(),kC=bo(),Vb=Bb(),lg=ug(),Hb=_u(),RC=(function(){function e(t,o){t===void 0&&(t=new lg.ChaosHandlerOptions),this.options=t,this.manualMap=o}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,o,n){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",o),r.append("client-request-id",o),r.append("x-ms-ags-diagnostic",""),r.append("Date",n),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,o,n){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=Vb.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":o,date:n}}}}else r={};return r},e.prototype.createResponse=function(t,o){var n=o.request,r=(0,kC.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),c=this.createResponseBody(t,r,i.toString()),u={url:n,status:t.statusCode,statusText:t.statusMessage,headers:a};o.response=new Response(typeof c=="string"?c:JSON.stringify(c),u)},e.prototype.sendRequest=function(t,o){return bu.__awaiter(this,void 0,void 0,function(){return bu.__generator(this,function(n){switch(n.label){case 0:return this.setStatusCode(t,o.request,o.options.method),t.chaosStrategy===Hb.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,o),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(o)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var o=Vb.methodStatusCode[t];return o[Math.floor(Math.random()*o.length)]},e.prototype.getRelativeURL=function(t){var o=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,n;return o.exec(t)!==null&&(n=o.exec(t)[1]),n},e.prototype.setStatusCode=function(t,o,n){var r=this;if(t.chaosStrategy===Hb.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(o);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(n)!==void 0&&(t.statusCode=this.manualMap.get(i).get(n)):this.manualMap.forEach(function(a,c){var u=new RegExp(c+"$");u.test(i)&&r.manualMap.get(c).get(n)!==void 0&&(t.statusCode=r.manualMap.get(c).get(n))})}}else t.statusCode=this.getRandomStatusCode(n)},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof OC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(lg.ChaosHandlerOptions)),typeof o>"u"&&(o=Object.assign(new lg.ChaosHandlerOptions,this.options)),o},e.prototype.execute=function(t){return bu.__awaiter(this,void 0,void 0,function(){var o;return bu.__generator(this,function(n){switch(n.label){case 0:return o=this.getOptions(t),[4,this.sendRequest(o,t)];case 1:return[2,n.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();Au.ChaosHandler=RC});var Gi=R(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ResponseType=void 0;var qb;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(qb||(Eu.ResponseType=qb={}))});var pg=R(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.GraphResponseHandler=wo.DocumentType=void 0;var Tu=(be(),ve(Pe)),Sr=Gi(),dg;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(dg||(wo.DocumentType=dg={}));var Iu;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Iu||(Iu={}));var Su;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Su||(Su={}));var $C=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,o){return typeof DOMParser<"u"?new Promise(function(n,r){t.text().then(function(i){try{var a=new DOMParser,c=a.parseFromString(i,o);n(c)}catch(u){r(u)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,o){return Tu.__awaiter(this,void 0,void 0,function(){var n,r,i,a;return Tu.__generator(this,function(c){switch(c.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=o,i){case Sr.ResponseType.ARRAYBUFFER:return[3,1];case Sr.ResponseType.BLOB:return[3,3];case Sr.ResponseType.DOCUMENT:return[3,5];case Sr.ResponseType.JSON:return[3,7];case Sr.ResponseType.STREAM:return[3,9];case Sr.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return n=c.sent(),[3,24];case 3:return[4,t.blob()];case 4:return n=c.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,dg.TEXT_XML)];case 6:return n=c.sent(),[3,24];case 7:return[4,t.json()];case 8:return n=c.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return n=c.sent(),[3,24];case 11:return[4,t.text()];case 12:return n=c.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(Su.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return n=c.sent(),[3,21];case 15:return new RegExp(Su.IMAGE).test(a)?(n=t.blob(),[3,21]):[3,16];case 16:return a!==Iu.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return n=c.sent(),[3,21];case 18:return a!==Iu.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return n=c.sent(),[3,21];case 20:n=Promise.resolve(t.body),c.label=21;case 21:return[3,23];case 22:n=Promise.resolve(t.body),c.label=23;case 23:return[3,24];case 24:return[2,n]}})})},e.getResponse=function(t,o,n){return Tu.__awaiter(this,void 0,void 0,function(){var r;return Tu.__generator(this,function(i){switch(i.label){case 0:return o!==Sr.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,o)];case 2:if(r=i.sent(),t.ok)if(typeof n=="function")n(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();wo.GraphResponseHandler=$C});var mg=R(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.Range=void 0;var CC=(function(){function e(t,o){t===void 0&&(t=-1),o===void 0&&(o=-1),this.minValue=t,this.maxValue=o}return s(e,"Range"),e})();wu.Range=CC});var fg=R(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.UploadResult=void 0;var DC=(function(){function e(t,o){this._location=o,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,o){return new e(t,o.get("location"))},e})();Ou.UploadResult=DC});var hg=R(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.LargeFileUploadTask=void 0;var Je=(be(),ve(Pe)),gg=kt(),zC=pg(),Gb=Gi(),ku=mg(),NC=fg(),MC=(function(){function e(t,o,n,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,o.sliceFile)this.file=o;else throw new gg.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=o,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=n,this.nextRange=new ku.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,o,n,r){return r===void 0&&(r={}),Je.__awaiter(this,void 0,void 0,function(){var i,a;return Je.__generator(this,function(c){switch(c.label){case 0:return[4,t.api(o).headers(r).post(n)];case 1:return i=c.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var o=t[0];if(typeof o>"u"||o==="")return new ku.Range;var n=o.split("-"),r=parseInt(n[0],10),i=parseInt(n[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new ku.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,o=t+this.options.rangeSize-1;return o>=this.file.size&&(o=this.file.size-1),new ku.Range(t,o)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new gg.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return Je.__awaiter(this,void 0,void 0,function(){var t,o,n,r,i,a,c;return Je.__generator(this,function(u){switch(u.label){case 0:t=this.options&&this.options.uploadEventHandlers,u.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(o=this.getNextRange(),o.maxValue===-1)throw n=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),n.name="Invalid Session",n;return[4,this.file.sliceFile(o)];case 2:return r=u.sent(),[4,this.uploadSliceGetRawResponse(r,o,this.file.size)];case 3:if(i=u.sent(),!i)throw new gg.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,zC.GraphResponseHandler.getResponse(i)];case 4:return a=u.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,o),[2,NC.UploadResult.CreateUploadResult(a,i.headers)]):(c={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(c),this.reportProgress(t,o),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,o){t&&t.progress&&t.progress(o,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).responseType(Gb.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(Gb.ResponseType.RAW).delete()];case 1:return t=o.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=o.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();Ru.LargeFileUploadTask=MC});var yg=R($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.FileUpload=void 0;var UC=kt(),LC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new UC.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();$u.FileUpload=LC});var vg=R(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.getValidRangeSize=void 0;var FC=5*1024*1024,jC=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),BC=s(function(e){e===void 0&&(e=FC);var t=60*1024*1024;return e>t&&(e=t),jC(e)},"getValidRangeSize");Cu.getValidRangeSize=BC});var Kb=R(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.OneDriveLargeFileUploadTask=void 0;var Rt=(be(),ve(Pe)),Wb=kt(),VC=yg(),HC=hg(),ZC=vg(),qC=(function(e){Rt.__extends(t,e);function t(o,n,r,i){return e.call(this,o,n,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(o,n){return n===void 0&&(n=t.DEFAULT_UPLOAD_PATH),o=o.trim(),n=n.trim(),n===""&&(n="/"),n[0]!=="/"&&(n="/".concat(n)),n[n.length-1]!=="/"&&(n="".concat(n,"/")),"/me/drive/root:".concat(n.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(o),":/createUploadSession")},t.getFileInfo=function(o,n){var r,i;if(typeof Blob<"u"&&o instanceof Blob)r=new File([o],n),i=r.size;else if(typeof File<"u"&&o instanceof File)r=o,i=r.size;else if(typeof Uint8Array<"u"&&o instanceof Uint8Array){var a=o;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(o,n,r){return Rt.__awaiter(this,void 0,void 0,function(){var i,a,c;return Rt.__generator(this,function(u){if(!o||!n||!r)throw new Wb.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(n,i),c=new VC.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(o,c,r)]})})},t.createTaskWithFileObject=function(o,n,r){return Rt.__awaiter(this,void 0,void 0,function(){var i,a,c,u;return Rt.__generator(this,function(l){switch(l.label){case 0:if(!o||!n||!r)throw new Wb.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(o,i,a)];case 1:return c=l.sent(),u=(0,ZC.getValidRangeSize)(r.rangeSize),[2,new t(o,n,c,{rangeSize:u,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(o,n,r){return Rt.__awaiter(this,void 0,void 0,function(){var i;return Rt.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,o,n,i)]})})},t.prototype.commit=function(o,n){return n===void 0&&(n="rename"),Rt.__awaiter(this,void 0,void 0,function(){var r;return Rt.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":n,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(o).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(HC.LargeFileUploadTask);Du.OneDriveLargeFileUploadTask=qC});var Xb=R(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.StreamUpload=void 0;var Jb=(be(),ve(Pe)),Wi=kt(),GC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new Wi.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return Jb.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u;return Jb.__generator(this,function(l){switch(l.label){case 0:if(o=t.maxValue-t.minValue+1,n=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Wi.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];n.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),o=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=o?(n.push(this.content.read(o)),[3,3]):[3,1]:[3,4];case 1:return c=(a=n).push,[4,this.readNBytesFromStream(o)];case 2:c.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Wi.GraphClientError("Stream is not readable.");case 5:return u=Buffer.concat(n),this.previousSlice={fileSlice:u,range:t},[2,u]}})})},e.prototype.readNBytesFromStream=function(t){var o=this;return new Promise(function(n,r){var i=[],a=t,c=0;o.content.on("end",function(){if(a>0)return r(new Wi.GraphClientError("Stream ended before reading required range size"))}),o.content.on("readable",function(){for(var u;c<t&&(u=o.content.read(a))!==null;)c+=u.length,i.push(u),a>0&&(a=t-c);if(c===t)return n(Buffer.concat(i));if(!o.content||!o.content.readable)return r(new Wi.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();zu.StreamUpload=GC});var Yb=R(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.PageIterator=void 0;var Oo=(be(),ve(Pe)),WC=(function(){function e(t,o,n,r){this.client=t,this.collection=o.value,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var o=this.collection[this.cursor];t=this.callback(o),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t,o;return Oo.__generator(this,function(n){switch(n.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return o=n.sent(),this.collection=o.value,this.cursor=0,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t;return Oo.__generator(this,function(o){switch(o.label){case 0:t=this.iterationHelper(),o.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return o.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,o.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Oo.__awaiter(this,void 0,void 0,function(){return Oo.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();Nu.PageIterator=WC});var xg=R(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.CustomAuthenticationProvider=void 0;var Mu=(be(),ve(Pe)),Qb=kt(),KC=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return Mu.__awaiter(this,void 0,void 0,function(){var t=this;return Mu.__generator(this,function(o){return[2,new Promise(function(n,r){t.provider(function(i,a){return Mu.__awaiter(t,void 0,void 0,function(){var c,u;return Mu.__generator(this,function(l){switch(l.label){case 0:return a?(n(a),[3,3]):[3,1];case 1:return i||(c="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new Qb.GraphClientError(c)),[4,Qb.GraphClientError.setGraphClientError(i)];case 2:u=l.sent(),r(u),l.label=3;case 3:return[2]}})})})})]})})},e})();Uu.CustomAuthenticationProvider=KC});var _g=R(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.GraphError=void 0;var JC=(be(),ve(Pe)),XC=(function(e){JC.__extends(t,e);function t(o,n,r){o===void 0&&(o=-1);var i=e.call(this,n||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=o,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);Lu.GraphError=XC});var tA=R(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.GraphErrorHandler=void 0;var eA=(be(),ve(Pe)),Pg=_g(),YC=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,o,n){var r=new Pg.GraphError(o,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=n?.headers,r},e.constructErrorFromResponse=function(t,o,n){var r=t.error,i=new Pg.GraphError(o,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=n?.headers,i},e.getError=function(t,o,n,r){return t===void 0&&(t=null),o===void 0&&(o=-1),eA.__awaiter(this,void 0,void 0,function(){var i;return eA.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,o,r):t instanceof Error?i=e.constructError(t,o,r):(i=new Pg.GraphError(o),i.body=t),typeof n=="function")n(i,null);else return[2,i];return[2]})})},e})();Fu.GraphErrorHandler=YC});var bg=R(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.GraphRequest=void 0;var he=(be(),ve(Pe)),QC=kt(),eD=tA(),Ki=tu(),tD=pg(),rD=Yt(),wr=Hi(),oD=Gi(),nD=(function(){function e(t,o,n){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var c=i.indexOf("/");c!==-1&&(r.urlComponents.version=i.substring(0,c),i=i.substring(c+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var u=i.indexOf("?");if(u===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,u);for(var l=i.substring(u+1,i.length).split("&"),d=0,h=l;d<h.length;d++){var f=h[d];r.parseQueryParameter(f)}}},this.httpClient=t,this.config=o,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,o,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];n.length>1&&typeof o=="string"?r=Array.prototype.slice.call(n):typeof o=="string"?r.push(o):r=r.concat(o),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ki.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,o=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&o.push(n+"="+t.oDataQueryParams[n]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var n in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,n)&&o.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];o.push(a)}return o.length>0?"?"+o.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var o=t.split("&"),n=0,r=o;n<r.length;n++){var i=r[n];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var o=t.indexOf("="),n=t.substring(0,o),r=t.substring(o+1);this.setURLComponentsQueryParamater(n,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,o){if(Ki.oDataQueryNames.indexOf(t)!==-1){var n=this.urlComponents.oDataQueryParams[t],r=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?n+","+o:o}else this.urlComponents.otherURLQueryParams[t]=o},e.prototype.isValidQueryKeyValuePair=function(t){var o=t.indexOf("=");if(o===-1)return!1;var n=t.indexOf("(");return!(n!==-1&&t.indexOf("(")<o)},e.prototype.updateRequestOptions=function(t){var o=he.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var n=he.__assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=he.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(o,t.headers),Object.assign(o,this._headers),t.headers=o},e.prototype.send=function(t,o,n){var r;return he.__awaiter(this,void 0,void 0,function(){var i,a,c,u,l,d,h,f;return he.__generator(this,function(p){switch(p.label){case 0:a=new rD.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(o),c=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:o,middlewareControl:a,customHosts:c})];case 2:return u=p.sent(),i=u.response,[4,tD.GraphResponseHandler.getResponse(i,this._responseType,n)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof QC.GraphClientError)throw d;return h=void 0,i&&(h=i.status),[4,eD.GraphErrorHandler.getError(d,h,n,i)];case 5:throw f=p.sent(),f;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),o=0,n=t;o<n.length;o++){var r=n[o];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,o){return this._headers[t]=o,this},e.prototype.headers=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._headers[o]=t[o]);return this},e.prototype.option=function(t,o){return this._options[t]=o,this},e.prototype.options=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._options[o]=t[o]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return he.__awaiter(this,void 0,void 0,function(){var o,n,r;return he.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.GET},[4,this.send(o,n,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,o){return he.__awaiter(this,void 0,void 0,function(){var n,r,i;return he.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),r={method:wr.RequestMethod.POST,body:(0,Ki.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(n,r,o)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,o){return he.__awaiter(this,void 0,void 0,function(){return he.__generator(this,function(n){switch(n.label){case 0:return[4,this.post(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.put=function(t,o){return he.__awaiter(this,void 0,void 0,function(){var n,r;return he.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:wr.RequestMethod.PUT,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,o){return he.__awaiter(this,void 0,void 0,function(){var n,r;return he.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:wr.RequestMethod.PATCH,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,o){return he.__awaiter(this,void 0,void 0,function(){return he.__generator(this,function(n){switch(n.label){case 0:return[4,this.patch(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.delete=function(t){return he.__awaiter(this,void 0,void 0,function(){var o,n;return he.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.DELETE},[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return he.__awaiter(this,void 0,void 0,function(){return he.__generator(this,function(o){switch(o.label){case 0:return[4,this.delete(t)];case 1:return[2,o.sent()]}})})},e.prototype.getStream=function(t){return he.__awaiter(this,void 0,void 0,function(){var o,n;return he.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:wr.RequestMethod.GET},this.responseType(oD.ResponseType.STREAM),[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,o){return he.__awaiter(this,void 0,void 0,function(){var n,r;return he.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),r={method:wr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e})();ju.GraphRequest=nD});var Ag=R(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.HTTPClient=void 0;var rA=(be(),ve(Pe)),iD=(function(){function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(!t||!t.length){var n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Please provide a default middleware chain or custom middleware chain",n}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(o,n){n<t.length-1&&o.setNext(t[n+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return rA.__awaiter(this,void 0,void 0,function(){var o;return rA.__generator(this,function(n){switch(n.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw o=new Error,o.name="InvalidRequestOptions",o.message="Unable to execute the middleware, Please provide valid options for a request",o;return[4,this.middleware.execute(t)];case 1:return n.sent(),[2,t]}})})},e})();Bu.HTTPClient=iD});var nA=R(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.HTTPClientFactory=void 0;var aD=(be(),ve(Pe)),oA=Ag(),sD=iu(),cD=su(),uD=qi(),lD=Zi(),dD=mu(),pD=lu(),mD=yu(),fD=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),gD=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var o=new sD.AuthenticationHandler(t),n=new pD.RetryHandler(new lD.RetryHandlerOptions),r=new mD.TelemetryHandler,i=new cD.HTTPMessageHandler;if(o.setNext(n),fD()){var a=new dD.RedirectHandler(new uD.RedirectHandlerOptions);n.setNext(a),a.setNext(r)}else n.setNext(r);return r.setNext(i),e.createWithMiddleware(o)},e.createWithMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new(oA.HTTPClient.bind.apply(oA.HTTPClient,aD.__spreadArray([void 0],t,!1)))},e})();Vu.HTTPClientFactory=gD});var iA=R(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.validatePolyFilling=void 0;var hD=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Hu.validatePolyFilling=hD});var cA=R(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.Client=void 0;var yD=(be(),ve(Pe)),aA=ng(),vD=xg(),xD=bg(),sA=Ag(),_D=nA(),PD=iA(),bD=(function(){function e(t){this.config={baseUrl:aA.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:aA.GRAPH_API_VERSION},(0,PD.validatePolyFilling)();for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.config[o]=t[o]);var n;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)n=_D.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)n=new(sA.HTTPClient.bind.apply(sA.HTTPClient,yD.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=n}return s(e,"Client"),e.init=function(t){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=n==="authProvider"?new vD.CustomAuthenticationProvider(t[n]):t[n]);return e.initWithMiddleware(o)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new xD.GraphRequest(this.httpClient,this.config,t)},e})();Zu.Client=bD});var Ji=R(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.ResponseType=j.GraphRequest=j.GraphClientError=j.GraphError=j.CustomAuthenticationProvider=j.Client=j.PageIterator=j.Range=j.UploadResult=j.FileUpload=j.StreamUpload=j.getValidRangeSize=j.OneDriveLargeFileUploadTask=j.LargeFileUploadTask=j.ChaosHandler=j.ChaosStrategy=j.ChaosHandlerOptions=j.TelemetryHandlerOptions=j.FeatureUsageFlag=j.RedirectHandlerOptions=j.RetryHandlerOptions=j.AuthenticationHandlerOptions=j.MiddlewareFactory=j.TelemetryHandler=j.RedirectHandler=j.RetryHandler=j.HTTPMessageHandler=j.AuthenticationHandler=j.BatchResponseContent=j.BatchRequestContent=void 0;var AD=Eb();Object.defineProperty(j,"BatchRequestContent",{enumerable:!0,get:s(function(){return AD.BatchRequestContent},"get")});var ED=Tb();Object.defineProperty(j,"BatchResponseContent",{enumerable:!0,get:s(function(){return ED.BatchResponseContent},"get")});var TD=iu();Object.defineProperty(j,"AuthenticationHandler",{enumerable:!0,get:s(function(){return TD.AuthenticationHandler},"get")});var ID=su();Object.defineProperty(j,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return ID.HTTPMessageHandler},"get")});var SD=lu();Object.defineProperty(j,"RetryHandler",{enumerable:!0,get:s(function(){return SD.RetryHandler},"get")});var wD=mu();Object.defineProperty(j,"RedirectHandler",{enumerable:!0,get:s(function(){return wD.RedirectHandler},"get")});var OD=yu();Object.defineProperty(j,"TelemetryHandler",{enumerable:!0,get:s(function(){return OD.TelemetryHandler},"get")});var kD=Fb();Object.defineProperty(j,"MiddlewareFactory",{enumerable:!0,get:s(function(){return kD.MiddlewareFactory},"get")});var RD=ig();Object.defineProperty(j,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return RD.AuthenticationHandlerOptions},"get")});var $D=Zi();Object.defineProperty(j,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return $D.RetryHandlerOptions},"get")});var CD=qi();Object.defineProperty(j,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return CD.RedirectHandlerOptions},"get")});var uA=Eo();Object.defineProperty(j,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return uA.FeatureUsageFlag},"get")});Object.defineProperty(j,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return uA.TelemetryHandlerOptions},"get")});var DD=ug();Object.defineProperty(j,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return DD.ChaosHandlerOptions},"get")});var zD=_u();Object.defineProperty(j,"ChaosStrategy",{enumerable:!0,get:s(function(){return zD.ChaosStrategy},"get")});var ND=Zb();Object.defineProperty(j,"ChaosHandler",{enumerable:!0,get:s(function(){return ND.ChaosHandler},"get")});var MD=hg();Object.defineProperty(j,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return MD.LargeFileUploadTask},"get")});var UD=Kb();Object.defineProperty(j,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return UD.OneDriveLargeFileUploadTask},"get")});var LD=vg();Object.defineProperty(j,"getValidRangeSize",{enumerable:!0,get:s(function(){return LD.getValidRangeSize},"get")});var FD=Xb();Object.defineProperty(j,"StreamUpload",{enumerable:!0,get:s(function(){return FD.StreamUpload},"get")});var jD=yg();Object.defineProperty(j,"FileUpload",{enumerable:!0,get:s(function(){return jD.FileUpload},"get")});var BD=fg();Object.defineProperty(j,"UploadResult",{enumerable:!0,get:s(function(){return BD.UploadResult},"get")});var VD=mg();Object.defineProperty(j,"Range",{enumerable:!0,get:s(function(){return VD.Range},"get")});var HD=Yb();Object.defineProperty(j,"PageIterator",{enumerable:!0,get:s(function(){return HD.PageIterator},"get")});var ZD=cA();Object.defineProperty(j,"Client",{enumerable:!0,get:s(function(){return ZD.Client},"get")});var qD=xg();Object.defineProperty(j,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return qD.CustomAuthenticationProvider},"get")});var GD=_g();Object.defineProperty(j,"GraphError",{enumerable:!0,get:s(function(){return GD.GraphError},"get")});var WD=kt();Object.defineProperty(j,"GraphClientError",{enumerable:!0,get:s(function(){return WD.GraphClientError},"get")});var KD=bg();Object.defineProperty(j,"GraphRequest",{enumerable:!0,get:s(function(){return KD.GraphRequest},"get")});var JD=Gi();Object.defineProperty(j,"ResponseType",{enumerable:!0,get:s(function(){return JD.ResponseType},"get")})});var zo=R((Tg,Ig)=>{(function(e,t){typeof Tg=="object"&&typeof Ig<"u"?Ig.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Tg,(function(){"use strict";var e=1e3,t=6e4,o=36e5,n="millisecond",r="second",i="minute",a="hour",c="day",u="week",l="month",d="quarter",h="year",f="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(Y){var L=["th","st","nd","rd"],M=Y%100;return"["+Y+(L[(M-20)%10]||L[M]||L[0])+"]"},"ordinal")},I=s(function(Y,L,M){var B=String(Y);return!B||B.length>=L?Y:""+Array(L+1-B.length).join(M)+Y},"m"),w={s:I,z:s(function(Y){var L=-Y.utcOffset(),M=Math.abs(L),B=Math.floor(M/60),F=M%60;return(L<=0?"+":"-")+I(B,2,"0")+":"+I(F,2,"0")},"z"),m:s(function Y(L,M){if(L.date()<M.date())return-Y(M,L);var B=12*(M.year()-L.year())+(M.month()-L.month()),F=L.clone().add(B,l),J=M-F<0,re=L.clone().add(B+(J?-1:1),l);return+(-(B+(M-F)/(J?F-re:re-F))||0)},"t"),a:s(function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},"a"),p:s(function(Y){return{M:l,y:h,w:u,d:c,D:f,h:a,m:i,s:r,ms:n,Q:d}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(Y){return Y===void 0},"u")},U="en",ie={};ie[U]=E;var ue=s(function(Y){return Y instanceof Ve},"p"),Se=s(function Y(L,M,B){var F;if(!L)return U;if(typeof L=="string"){var J=L.toLowerCase();ie[J]&&(F=J),M&&(ie[J]=M,F=J);var re=L.split("-");if(!F&&re.length>1)return Y(re[0])}else{var ge=L.name;ie[ge]=L,F=ge}return!B&&F&&(U=F),F||!B&&U},"t"),Ae=s(function(Y,L){if(ue(Y))return Y.clone();var M=typeof L=="object"?L:{};return M.date=Y,M.args=arguments,new Ve(M)},"w"),oe=w;oe.l=Se,oe.i=ue,oe.w=function(Y,L){return Ae(Y,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var Ve=(function(){function Y(M){this.$L=Se(M.locale,null,!0),this.parse(M)}s(Y,"M");var L=Y.prototype;return L.parse=function(M){this.$d=(function(B){var F=B.date,J=B.utc;if(F===null)return new Date(NaN);if(oe.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var re=F.match(v);if(re){var ge=re[2]-1||0,Te=(re[7]||"0").substring(0,3);return J?new Date(Date.UTC(re[1],ge,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Te)):new Date(re[1],ge,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Te)}}return new Date(F)})(M),this.$x=M.x||{},this.init()},L.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},L.$utils=function(){return oe},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(M,B){var F=Ae(M);return this.startOf(B)<=F&&F<=this.endOf(B)},L.isAfter=function(M,B){return Ae(M)<this.startOf(B)},L.isBefore=function(M,B){return this.endOf(B)<Ae(M)},L.$g=function(M,B,F){return oe.u(M)?this[B]:this.set(F,M)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(M,B){var F=this,J=!!oe.u(B)||B,re=oe.p(M),ge=s(function(rr,He){var $t=oe.w(F.$u?Date.UTC(F.$y,He,rr):new Date(F.$y,He,rr),F);return J?$t:$t.endOf(c)},"l"),Te=s(function(rr,He){return oe.w(F.toDate()[rr].apply(F.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(He)),F)},"$"),Re=this.$W,Ue=this.$M,rt=this.$D,kr="set"+(this.$u?"UTC":"");switch(re){case h:return J?ge(1,0):ge(31,11);case l:return J?ge(1,Ue):ge(0,Ue+1);case u:var tr=this.$locale().weekStart||0,No=(Re<tr?Re+7:Re)-tr;return ge(J?rt-No:rt+(6-No),Ue);case c:case f:return Te(kr+"Hours",0);case a:return Te(kr+"Minutes",1);case i:return Te(kr+"Seconds",2);case r:return Te(kr+"Milliseconds",3);default:return this.clone()}},L.endOf=function(M){return this.startOf(M,!1)},L.$set=function(M,B){var F,J=oe.p(M),re="set"+(this.$u?"UTC":""),ge=(F={},F[c]=re+"Date",F[f]=re+"Date",F[l]=re+"Month",F[h]=re+"FullYear",F[a]=re+"Hours",F[i]=re+"Minutes",F[r]=re+"Seconds",F[n]=re+"Milliseconds",F)[J],Te=J===c?this.$D+(B-this.$W):B;if(J===l||J===h){var Re=this.clone().set(f,1);Re.$d[ge](Te),Re.init(),this.$d=Re.set(f,Math.min(this.$D,Re.daysInMonth())).$d}else ge&&this.$d[ge](Te);return this.init(),this},L.set=function(M,B){return this.clone().$set(M,B)},L.get=function(M){return this[oe.p(M)]()},L.add=function(M,B){var F,J=this;M=Number(M);var re=oe.p(B),ge=s(function(Ue){var rt=Ae(J);return oe.w(rt.date(rt.date()+Math.round(Ue*M)),J)},"y");if(re===l)return this.set(l,this.$M+M);if(re===h)return this.set(h,this.$y+M);if(re===c)return ge(1);if(re===u)return ge(7);var Te=(F={},F[i]=t,F[a]=o,F[r]=e,F)[re]||1,Re=this.$d.getTime()+M*Te;return oe.w(Re,this)},L.subtract=function(M,B){return this.add(-1*M,B)},L.format=function(M){var B=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var J=M||"YYYY-MM-DDTHH:mm:ssZ",re=oe.z(this),ge=this.$H,Te=this.$m,Re=this.$M,Ue=F.weekdays,rt=F.months,kr=F.meridiem,tr=s(function(He,$t,Mo,oa){return He&&(He[$t]||He(B,J))||Mo[$t].slice(0,oa)},"h"),No=s(function(He){return oe.s(ge%12||12,He,"0")},"d"),rr=kr||function(He,$t,Mo){var oa=He<12?"AM":"PM";return Mo?oa.toLowerCase():oa};return J.replace(b,(function(He,$t){return $t||(function(Mo){switch(Mo){case"YY":return String(B.$y).slice(-2);case"YYYY":return oe.s(B.$y,4,"0");case"M":return Re+1;case"MM":return oe.s(Re+1,2,"0");case"MMM":return tr(F.monthsShort,Re,rt,3);case"MMMM":return tr(rt,Re);case"D":return B.$D;case"DD":return oe.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return tr(F.weekdaysMin,B.$W,Ue,2);case"ddd":return tr(F.weekdaysShort,B.$W,Ue,3);case"dddd":return Ue[B.$W];case"H":return String(ge);case"HH":return oe.s(ge,2,"0");case"h":return No(1);case"hh":return No(2);case"a":return rr(ge,Te,!0);case"A":return rr(ge,Te,!1);case"m":return String(Te);case"mm":return oe.s(Te,2,"0");case"s":return String(B.$s);case"ss":return oe.s(B.$s,2,"0");case"SSS":return oe.s(B.$ms,3,"0");case"Z":return re}return null})(He)||re.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(M,B,F){var J,re=this,ge=oe.p(B),Te=Ae(M),Re=(Te.utcOffset()-this.utcOffset())*t,Ue=this-Te,rt=s(function(){return oe.m(re,Te)},"D");switch(ge){case h:J=rt()/12;break;case l:J=rt();break;case d:J=rt()/3;break;case u:J=(Ue-Re)/6048e5;break;case c:J=(Ue-Re)/864e5;break;case a:J=Ue/o;break;case i:J=Ue/t;break;case r:J=Ue/e;break;default:J=Ue}return F?J:oe.a(J)},L.daysInMonth=function(){return this.endOf(l).$D},L.$locale=function(){return ie[this.$L]},L.locale=function(M,B){if(!M)return this.$L;var F=this.clone(),J=Se(M,B,!0);return J&&(F.$L=J),F},L.clone=function(){return oe.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},Y})(),ra=Ve.prototype;return Ae.prototype=ra,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",c],["$M",l],["$y",h],["$D",f]].forEach((function(Y){ra[Y[1]]=function(L){return this.$g(L,Y[0],Y[1])}})),Ae.extend=function(Y,L){return Y.$i||(Y(L,Ve,Ae),Y.$i=!0),Ae},Ae.locale=Se,Ae.isDayjs=ue,Ae.unix=function(Y){return Ae(1e3*Y)},Ae.en=ie[U],Ae.Ls=ie,Ae.p={},Ae}))});var Lz={};Xe(Lz,{microsoftOutlook:()=>Uz});module.exports=ve(Lz);var Qe={};Xe(Qe,{$ZodAny:()=>on,$ZodArray:()=>cn,$ZodAsyncError:()=>ct,$ZodBase64:()=>Ba,$ZodBase64URL:()=>Va,$ZodBigInt:()=>Hr,$ZodBigIntFormat:()=>Ga,$ZodBoolean:()=>sr,$ZodCIDRv4:()=>Fa,$ZodCIDRv6:()=>ja,$ZodCUID:()=>$a,$ZodCUID2:()=>Ca,$ZodCatch:()=>us,$ZodCheck:()=>me,$ZodCheckBigIntFormat:()=>Ml,$ZodCheckEndsWith:()=>Kl,$ZodCheckGreaterThan:()=>Pa,$ZodCheckIncludes:()=>Gl,$ZodCheckLengthEquals:()=>Vl,$ZodCheckLessThan:()=>_a,$ZodCheckLowerCase:()=>Zl,$ZodCheckMaxLength:()=>jl,$ZodCheckMaxSize:()=>Ul,$ZodCheckMimeType:()=>Xl,$ZodCheckMinLength:()=>Bl,$ZodCheckMinSize:()=>Ll,$ZodCheckMultipleOf:()=>zl,$ZodCheckNumberFormat:()=>Nl,$ZodCheckOverwrite:()=>Yl,$ZodCheckProperty:()=>Jl,$ZodCheckRegex:()=>Hl,$ZodCheckSizeEquals:()=>Fl,$ZodCheckStartsWith:()=>Wl,$ZodCheckStringFormat:()=>Br,$ZodCheckUpperCase:()=>ql,$ZodCodec:()=>qr,$ZodCustom:()=>yn,$ZodCustomStringFormat:()=>qa,$ZodDate:()=>sn,$ZodDefault:()=>is,$ZodDiscriminatedUnion:()=>un,$ZodE164:()=>Ha,$ZodEmail:()=>Oa,$ZodEmoji:()=>ka,$ZodEncodeError:()=>Ct,$ZodEnum:()=>pn,$ZodError:()=>Go,$ZodExactOptional:()=>ns,$ZodFile:()=>os,$ZodFunction:()=>ms,$ZodGUID:()=>Sa,$ZodIPv4:()=>Ma,$ZodIPv6:()=>Ua,$ZodISODate:()=>Qo,$ZodISODateTime:()=>Yo,$ZodISODuration:()=>tn,$ZodISOTime:()=>en,$ZodIntersection:()=>es,$ZodJWT:()=>Za,$ZodKSUID:()=>Na,$ZodLazy:()=>gs,$ZodLiteral:()=>mn,$ZodMAC:()=>La,$ZodMap:()=>ts,$ZodNaN:()=>ls,$ZodNanoID:()=>Ra,$ZodNever:()=>Xa,$ZodNonOptional:()=>ss,$ZodNull:()=>Ja,$ZodNullable:()=>gn,$ZodNumber:()=>Vr,$ZodNumberFormat:()=>rn,$ZodObject:()=>Ya,$ZodObjectJIT:()=>rd,$ZodOptional:()=>Zr,$ZodPipe:()=>hn,$ZodPrefault:()=>as,$ZodPromise:()=>fs,$ZodReadonly:()=>ds,$ZodRealError:()=>qe,$ZodRecord:()=>dn,$ZodRegistry:()=>hs,$ZodSet:()=>rs,$ZodString:()=>_t,$ZodStringFormat:()=>de,$ZodSuccess:()=>cs,$ZodSymbol:()=>Wa,$ZodTemplateLiteral:()=>ps,$ZodTransform:()=>fn,$ZodTuple:()=>ln,$ZodType:()=>q,$ZodULID:()=>Da,$ZodURL:()=>Xo,$ZodUUID:()=>wa,$ZodUndefined:()=>Ka,$ZodUnion:()=>cr,$ZodUnknown:()=>nn,$ZodVoid:()=>an,$ZodXID:()=>za,$ZodXor:()=>Qa,$brand:()=>Fo,$constructor:()=>y,$input:()=>vs,$output:()=>ys,Doc:()=>Jo,JSONSchema:()=>Eh,JSONSchemaGenerator:()=>Bs,NEVER:()=>na,TimePrecision:()=>_s,_any:()=>ti,_array:()=>Kd,_base64:()=>jn,_base64url:()=>Bn,_bigint:()=>Ts,_boolean:()=>Yn,_catch:()=>US,_check:()=>Ah,_cidrv4:()=>Ln,_cidrv6:()=>Fn,_coercedBigint:()=>ei,_coercedBoolean:()=>Qn,_coercedDate:()=>ni,_coercedNumber:()=>Jn,_coercedString:()=>En,_cuid:()=>$n,_cuid2:()=>Cn,_custom:()=>li,_date:()=>$s,_decode:()=>da,_decodeAsync:()=>ma,_default:()=>zS,_discriminatedUnion:()=>AS,_e164:()=>Vn,_email:()=>Tn,_emoji:()=>kn,_encode:()=>la,_encodeAsync:()=>pa,_endsWith:()=>fr,_enum:()=>OS,_file:()=>Ds,_float32:()=>Ps,_float64:()=>bs,_gt:()=>lt,_gte:()=>Oe,_guid:()=>Kr,_includes:()=>pr,_int:()=>Xn,_int32:()=>As,_int64:()=>Is,_intersection:()=>ES,_ipv4:()=>Mn,_ipv6:()=>Un,_isoDate:()=>qn,_isoDateTime:()=>Zn,_isoDuration:()=>Wn,_isoTime:()=>Gn,_jwt:()=>Hn,_ksuid:()=>Nn,_lazy:()=>BS,_length:()=>Ft,_literal:()=>RS,_lowercase:()=>lr,_lt:()=>ut,_lte:()=>je,_mac:()=>xs,_map:()=>SS,_max:()=>je,_maxLength:()=>Lt,_maxSize:()=>bt,_mime:()=>gr,_min:()=>Oe,_minLength:()=>Ie,_minSize:()=>dt,_multipleOf:()=>Pt,_nan:()=>Cs,_nanoid:()=>Rn,_nativeEnum:()=>kS,_negative:()=>ai,_never:()=>Rs,_nonnegative:()=>ci,_nonoptional:()=>NS,_nonpositive:()=>si,_normalize:()=>hr,_null:()=>ks,_nullable:()=>DS,_number:()=>Kn,_optional:()=>CS,_overwrite:()=>nt,_parse:()=>Nr,_parseAsync:()=>Mr,_pipe:()=>LS,_positive:()=>ii,_promise:()=>VS,_property:()=>ui,_readonly:()=>FS,_record:()=>IS,_refine:()=>di,_regex:()=>Ne,_safeDecode:()=>ga,_safeDecodeAsync:()=>ya,_safeEncode:()=>fa,_safeEncodeAsync:()=>ha,_safeParse:()=>Ur,_safeParseAsync:()=>Fr,_set:()=>wS,_size:()=>Ut,_slugify:()=>Jr,_startsWith:()=>mr,_string:()=>An,_stringFormat:()=>_r,_stringbool:()=>Us,_success:()=>MS,_superRefine:()=>zs,_symbol:()=>ws,_templateLiteral:()=>jS,_toLowerCase:()=>vr,_toUpperCase:()=>xr,_transform:()=>$S,_trim:()=>yr,_tuple:()=>TS,_uint32:()=>Es,_uint64:()=>Ss,_ulid:()=>Dn,_undefined:()=>Os,_union:()=>PS,_unknown:()=>ri,_uppercase:()=>dr,_url:()=>ur,_uuid:()=>In,_uuidv4:()=>Sn,_uuidv6:()=>wn,_uuidv7:()=>On,_void:()=>oi,_xid:()=>zn,_xor:()=>bS,clone:()=>$e,config:()=>xe,createStandardJSONSchemaMethod:()=>Xr,createToJSONSchemaMethod:()=>Jd,decode:()=>Hg,decodeAsync:()=>qg,describe:()=>Ns,encode:()=>Vg,encodeAsync:()=>Zg,extractDefs:()=>Bt,finalize:()=>Vt,flattenError:()=>Dr,formatError:()=>zr,globalConfig:()=>Lo,globalRegistry:()=>Ce,initializeContext:()=>jt,isValidBase64:()=>td,isValidBase64URL:()=>fh,isValidJWT:()=>gh,locales:()=>Wr,meta:()=>Ms,parse:()=>nr,parseAsync:()=>ir,prettifyError:()=>ua,process:()=>pe,regexes:()=>Ge,registry:()=>bn,safeDecode:()=>Wg,safeDecodeAsync:()=>Jg,safeEncode:()=>Gg,safeEncodeAsync:()=>Kg,safeParse:()=>Lr,safeParseAsync:()=>jr,toDotPath:()=>Bg,toJSONSchema:()=>pi,treeifyError:()=>ca,util:()=>D,version:()=>Ql});var na=Object.freeze({status:"aborted"});function y(e,t,o){function n(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,u);let l=a.prototype,d=Object.keys(l);for(let h=0;h<d.length;h++){let f=d[h];f in c||(c[f]=l[f].bind(c))}}s(n,"init");let r=o?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(c){var u;let l=o?.Parent?new i:this;n(l,c),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s(c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var Fo=Symbol("zod_brand"),ct=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ct=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Lo={};function xe(e){return e&&Object.assign(Lo,e),Lo}s(xe,"config");var D={};Xe(D,{BIGINT_FORMAT_RANGES:()=>al,Class:()=>Qu,NUMBER_FORMAT_RANGES:()=>il,aborted:()=>Mt,allowsEval:()=>rl,assert:()=>MT,assertEqual:()=>CT,assertIs:()=>zT,assertNever:()=>NT,assertNotEqual:()=>DT,assignProp:()=>zt,base64ToUint8Array:()=>Lg,base64urlToUint8Array:()=>WT,cached:()=>$r,captureStackTrace:()=>aa,cleanEnum:()=>GT,cleanRegex:()=>Vo,clone:()=>$e,cloneDef:()=>LT,createTransparentProxy:()=>ZT,defineLazy:()=>Q,esc:()=>ia,escapeRegex:()=>ot,extend:()=>zg,finalizeIssue:()=>Ze,floatSafeRemainder:()=>el,getElementAtPath:()=>FT,getEnumValues:()=>Bo,getLengthableOrigin:()=>qo,getParsedType:()=>HT,getSizableOrigin:()=>Zo,hexToUint8Array:()=>JT,isObject:()=>or,isPlainObject:()=>Nt,issue:()=>Cr,joinValues:()=>T,jsonStringifyReplacer:()=>Rr,merge:()=>qT,mergeDefs:()=>xt,normalizeParams:()=>k,nullish:()=>Dt,numKeys:()=>VT,objectClone:()=>UT,omit:()=>Dg,optionalKeys:()=>nl,parsedType:()=>z,partial:()=>Mg,pick:()=>Cg,prefixIssues:()=>Ye,primitiveTypes:()=>ol,promiseAllObject:()=>jT,propertyKeyTypes:()=>Ho,randomString:()=>BT,required:()=>Ug,safeExtend:()=>Ng,shallowClone:()=>sa,slugify:()=>tl,stringifyPrimitive:()=>$,uint8ArrayToBase64:()=>Fg,uint8ArrayToBase64url:()=>KT,uint8ArrayToHex:()=>XT,unwrapMessage:()=>jo});function CT(e){return e}s(CT,"assertEqual");function DT(e){return e}s(DT,"assertNotEqual");function zT(e){}s(zT,"assertIs");function NT(e){throw new Error("Unexpected value in exhaustive check")}s(NT,"assertNever");function MT(e){}s(MT,"assert");function Bo(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}s(Bo,"getEnumValues");function T(e,t="|"){return e.map(o=>$(o)).join(t)}s(T,"joinValues");function Rr(e,t){return typeof t=="bigint"?t.toString():t}s(Rr,"jsonStringifyReplacer");function $r(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}s($r,"cached");function Dt(e){return e==null}s(Dt,"nullish");function Vo(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}s(Vo,"cleanRegex");function el(e,t){let o=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let u=n.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[1]))}let i=o>r?o:r,a=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return a%c/10**i}s(el,"floatSafeRemainder");var $g=Symbol("evaluating");function Q(e,t,o){let n;Object.defineProperty(e,t,{get(){if(n!==$g)return n===void 0&&(n=$g,n=o()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(Q,"defineLazy");function UT(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(UT,"objectClone");function zt(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}s(zt,"assignProp");function xt(...e){let t={};for(let o of e){let n=Object.getOwnPropertyDescriptors(o);Object.assign(t,n)}return Object.defineProperties({},t)}s(xt,"mergeDefs");function LT(e){return xt(e._zod.def)}s(LT,"cloneDef");function FT(e,t){return t?t.reduce((o,n)=>o?.[n],e):e}s(FT,"getElementAtPath");function jT(e){let t=Object.keys(e),o=t.map(n=>e[n]);return Promise.all(o).then(n=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=n[i];return r})}s(jT,"promiseAllObject");function BT(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let n=0;n<e;n++)o+=t[Math.floor(Math.random()*t.length)];return o}s(BT,"randomString");function ia(e){return JSON.stringify(e)}s(ia,"esc");function tl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(tl,"slugify");var aa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function or(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(or,"isObject");var rl=$r(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Nt(e){if(or(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(or(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}s(Nt,"isPlainObject");function sa(e){return Nt(e)?{...e}:Array.isArray(e)?[...e]:e}s(sa,"shallowClone");function VT(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}s(VT,"numKeys");var HT=s(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Ho=new Set(["string","number","symbol"]),ol=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(ot,"escapeRegex");function $e(e,t,o){let n=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(n._zod.parent=e),n}s($e,"clone");function k(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:s(()=>t.error,"error")}:t}s(k,"normalizeParams");function ZT(e){let t;return new Proxy({},{get(o,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(o,n,r,i){return t??(t=e()),Reflect.set(t,n,r,i)},has(o,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(o,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(o,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}s(ZT,"createTransparentProxy");function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s($,"stringifyPrimitive");function nl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(nl,"optionalKeys");var il={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]},al={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Cg(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=xt(e._zod.def,{get shape(){let a={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=o.shape[c])}return zt(this,"shape",a),a},checks:[]});return $e(e,i)}s(Cg,"pick");function Dg(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=xt(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return zt(this,"shape",a),a},checks:[]});return $e(e,i)}s(Dg,"omit");function zg(e,t){if(!Nt(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=xt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return zt(this,"shape",i),i}});return $e(e,r)}s(zg,"extend");function Ng(e,t){if(!Nt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=xt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zt(this,"shape",n),n}});return $e(e,o)}s(Ng,"safeExtend");function qT(e,t){let o=xt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return zt(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return $e(e,o)}s(qT,"merge");function Mg(e,t,o){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=xt(t._zod.def,{get shape(){let c=t._zod.def.shape,u={...c};if(o)for(let l in o){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);o[l]&&(u[l]=e?new e({type:"optional",innerType:c[l]}):c[l])}else for(let l in c)u[l]=e?new e({type:"optional",innerType:c[l]}):c[l];return zt(this,"shape",u),u},checks:[]});return $e(t,a)}s(Mg,"partial");function Ug(e,t,o){let n=xt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(o)for(let a in o){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);o[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return zt(this,"shape",i),i}});return $e(t,n)}s(Ug,"required");function Mt(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}s(Mt,"aborted");function Ye(e,t){return t.map(o=>{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}s(Ye,"prefixIssues");function jo(e){return typeof e=="string"?e:e?.message}s(jo,"unwrapMessage");function Ze(e,t,o){let n={...e,path:e.path??[]};if(!e.message){let r=jo(e.inst?._zod.def?.error?.(e))??jo(t?.error?.(e))??jo(o.customError?.(e))??jo(o.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}s(Ze,"finalizeIssue");function Zo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Zo,"getSizableOrigin");function qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(qo,"getLengthableOrigin");function z(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}s(z,"parsedType");function Cr(...e){let[t,o,n]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:n}:{...t}}s(Cr,"issue");function GT(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(GT,"cleanEnum");function Lg(e){let t=atob(e),o=new Uint8Array(t.length);for(let n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return o}s(Lg,"base64ToUint8Array");function Fg(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}s(Fg,"uint8ArrayToBase64");function WT(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return Lg(t+o)}s(WT,"base64urlToUint8Array");function KT(e){return Fg(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(KT,"uint8ArrayToBase64url");function JT(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)o[n/2]=Number.parseInt(t.slice(n,n+2),16);return o}s(JT,"hexToUint8Array");function XT(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(XT,"uint8ArrayToHex");var Qu=class{static{s(this,"Class")}constructor(...t){}};var jg=s((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Rr,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Go=y("$ZodError",jg),qe=y("$ZodError",jg,{Parent:Error});function Dr(e,t=o=>o.message){let o={},n=[];for(let r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:o}}s(Dr,"flattenError");function zr(e,t=o=>o.message){let o={_errors:[]},n=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)o._errors.push(t(i));else{let a=o,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}},"processError");return n(e),o}s(zr,"formatError");function ca(e,t=o=>o.message){let o={errors:[]},n=s((r,i=[])=>{var a,c;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>n({issues:l},u.path));else if(u.code==="invalid_key")n({issues:u.issues},u.path);else if(u.code==="invalid_element")n({issues:u.issues},u.path);else{let l=[...i,...u.path];if(l.length===0){o.errors.push(t(u));continue}let d=o,h=0;for(;h<l.length;){let f=l[h],p=h===l.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(c=d.items)[f]??(c[f]={errors:[]}),d=d.items[f]),p&&d.errors.push(t(u)),h++}}},"processError");return n(e),o}s(ca,"treeifyError");function Bg(e){let t=[],o=e.map(n=>typeof n=="object"?n.key:n);for(let n of o)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}s(Bg,"toDotPath");function ua(e){let t=[],o=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of o)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${Bg(n.path)}`);return t.join(`
6
+ `)}s(ua,"prettifyError");var Nr=s(e=>(t,o,n,r)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise)throw new ct;if(a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>Ze(u,i,xe())));throw aa(c,r?.callee),c}return a.value},"_parse"),nr=Nr(qe),Mr=s(e=>async(t,o,n,r)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>Ze(u,i,xe())));throw aa(c,r?.callee),c}return a.value},"_parseAsync"),ir=Mr(qe),Ur=s(e=>(t,o,n)=>{let r=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:o,issues:[]},r);if(i instanceof Promise)throw new ct;return i.issues.length?{success:!1,error:new(e??Go)(i.issues.map(a=>Ze(a,r,xe())))}:{success:!0,data:i.value}},"_safeParse"),Lr=Ur(qe),Fr=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:o,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Ze(a,r,xe())))}:{success:!0,data:i.value}},"_safeParseAsync"),jr=Fr(qe),la=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Nr(e)(t,o,r)},"_encode"),Vg=la(qe),da=s(e=>(t,o,n)=>Nr(e)(t,o,n),"_decode"),Hg=da(qe),pa=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Mr(e)(t,o,r)},"_encodeAsync"),Zg=pa(qe),ma=s(e=>async(t,o,n)=>Mr(e)(t,o,n),"_decodeAsync"),qg=ma(qe),fa=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,o,r)},"_safeEncode"),Gg=fa(qe),ga=s(e=>(t,o,n)=>Ur(e)(t,o,n),"_safeDecode"),Wg=ga(qe),ha=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Fr(e)(t,o,r)},"_safeEncodeAsync"),Kg=ha(qe),ya=s(e=>async(t,o,n)=>Fr(e)(t,o,n),"_safeDecodeAsync"),Jg=ya(qe);var Ge={};Xe(Ge,{base64:()=>bl,base64url:()=>va,bigint:()=>wl,boolean:()=>kl,browserEmail:()=>aI,cidrv4:()=>_l,cidrv6:()=>Pl,cuid:()=>sl,cuid2:()=>cl,date:()=>El,datetime:()=>Il,domain:()=>uI,duration:()=>ml,e164:()=>Al,email:()=>gl,emoji:()=>hl,extendedDuration:()=>QT,guid:()=>fl,hex:()=>lI,hostname:()=>cI,html5Email:()=>oI,idnEmail:()=>iI,integer:()=>Ol,ipv4:()=>yl,ipv6:()=>vl,ksuid:()=>dl,lowercase:()=>Cl,mac:()=>xl,md5_base64:()=>pI,md5_base64url:()=>mI,md5_hex:()=>dI,nanoid:()=>pl,null:()=>Rl,number:()=>xa,rfc5322Email:()=>nI,sha1_base64:()=>gI,sha1_base64url:()=>hI,sha1_hex:()=>fI,sha256_base64:()=>vI,sha256_base64url:()=>xI,sha256_hex:()=>yI,sha384_base64:()=>PI,sha384_base64url:()=>bI,sha384_hex:()=>_I,sha512_base64:()=>EI,sha512_base64url:()=>TI,sha512_hex:()=>AI,string:()=>Sl,time:()=>Tl,ulid:()=>ul,undefined:()=>$l,unicodeEmail:()=>Xg,uppercase:()=>Dl,uuid:()=>ar,uuid4:()=>eI,uuid6:()=>tI,uuid7:()=>rI,xid:()=>ll});var sl=/^[cC][^\s-]{8,}$/,cl=/^[0-9a-z]+$/,ul=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ll=/^[0-9a-vA-V]{20}$/,dl=/^[A-Za-z0-9]{27}$/,pl=/^[a-zA-Z0-9_-]{21}$/,ml=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QT=/^[-+]?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)?)??$/,fl=/^([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})$/,ar=s(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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"),eI=ar(4),tI=ar(6),rI=ar(7),gl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,oI=/^[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])?)*$/,nI=/^(([^<>()\[\]\\.,;:\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,}))$/,Xg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,iI=Xg,aI=/^[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])?)*$/,sI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hl(){return new RegExp(sI,"u")}s(hl,"emoji");var yl=/^(?:(?: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])$/,vl=/^(([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}|:))$/,xl=s(e=>{let t=ot(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),_l=/^((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])$/,Pl=/^(([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])$/,bl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,va=/^[A-Za-z0-9_-]*$/,cI=/^(?=.{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])?)*\.?$/,uI=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Al=/^\+[1-9]\d{6,14}$/,Yg="(?:(?:\\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])))",El=new RegExp(`^${Yg}$`);function Qg(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(Qg,"timeSource");function Tl(e){return new RegExp(`^${Qg(e)}$`)}s(Tl,"time");function Il(e){let t=Qg({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${o.join("|")})`;return new RegExp(`^${Yg}T(?:${n})$`)}s(Il,"datetime");var Sl=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),wl=/^-?\d+n?$/,Ol=/^-?\d+$/,xa=/^-?\d+(?:\.\d+)?$/,kl=/^(?:true|false)$/i,Rl=/^null$/i;var $l=/^undefined$/i;var Cl=/^[^A-Z]*$/,Dl=/^[^a-z]*$/,lI=/^[0-9a-fA-F]*$/;function Wo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Wo,"fixedBase64");function Ko(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Ko,"fixedBase64url");var dI=/^[0-9a-fA-F]{32}$/,pI=Wo(22,"=="),mI=Ko(22),fI=/^[0-9a-fA-F]{40}$/,gI=Wo(27,"="),hI=Ko(27),yI=/^[0-9a-fA-F]{64}$/,vI=Wo(43,"="),xI=Ko(43),_I=/^[0-9a-fA-F]{96}$/,PI=Wo(64,""),bI=Ko(64),AI=/^[0-9a-fA-F]{128}$/,EI=Wo(86,"=="),TI=Ko(86);var me=y("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),th={number:"number",bigint:"bigint",object:"date"},_a=y("$ZodCheckLessThan",(e,t)=>{me.init(e,t);let o=th[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pa=y("$ZodCheckGreaterThan",(e,t)=>{me.init(e,t);let o=th[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zl=y("$ZodCheckMultipleOf",(e,t)=>{me.init(e,t),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):el(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),Nl=y("$ZodCheckNumberFormat",(e,t)=>{me.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),n=o?"int":"number",[r,i]=il[t.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=t.format,c.minimum=r,c.maximum=i,o&&(c.pattern=Ol)}),e._zod.check=a=>{let c=a.value;if(o){if(!Number.isInteger(c)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ml=y("$ZodCheckBigIntFormat",(e,t)=>{me.init(e,t);let[o,n]=al[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=o,i.maximum=n}),e._zod.check=r=>{let i=r.value;i<o&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),i>n&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Ul=y("$ZodCheckMaxSize",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Zo(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ll=y("$ZodCheckMinSize",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Zo(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fl=y("$ZodCheckSizeEquals",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Zo(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),jl=y("$ZodCheckMaxLength",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let a=qo(r);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bl=y("$ZodCheckMinLength",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let a=qo(r);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vl=y("$ZodCheckLengthEquals",(e,t)=>{var o;me.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Dt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=qo(r),c=i>t.length;n.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Br=y("$ZodCheckStringFormat",(e,t)=>{var o,n;me.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hl=y("$ZodCheckRegex",(e,t)=>{Br.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Zl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Cl),Br.init(e,t)}),ql=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dl),Br.init(e,t)}),Gl=y("$ZodCheckIncludes",(e,t)=>{me.init(e,t);let o=ot(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=n,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Wl=y("$ZodCheckStartsWith",(e,t)=>{me.init(e,t);let o=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Kl=y("$ZodCheckEndsWith",(e,t)=>{me.init(e,t);let o=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function eh(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues))}s(eh,"handleCheckPropertyResult");var Jl=y("$ZodCheckProperty",(e,t)=>{me.init(e,t),e._zod.check=o=>{let n=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>eh(r,o,t.property));eh(n,o,t.property)}}),Xl=y("$ZodCheckMimeType",(e,t)=>{me.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Yl=y("$ZodCheckOverwrite",(e,t)=>{me.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});var Jo=class{static{s(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
7
7
  `).filter(a=>a),r=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,o=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...o,r.join(`
8
- `))}};var Yl={major:4,minor:3,patch:6};var q=y("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Yl;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let i of r._zod.onattach)i(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,c,u)=>{let l=Nt(a),d;for(let g of c){if(g._zod.def.when){if(!g._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,p=g._zod.check(a);if(p instanceof Promise&&u?.async===!1)throw new ct;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(l||(l=Nt(a,f)))});else{if(a.issues.length===f)continue;l||(l=Nt(a,f))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,c,u)=>{if(Nt(a))return a.aborted=!0,a;let l=r(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new ct;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ct;return u.then(l=>r(l,n,c))}return r(u,n,c)}}Q(e,"~standard",()=>({validate:s(r=>{try{let i=Lr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return jr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),_t=y("$ZodString",(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Il(e._zod.bag),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),de=y("$ZodStringFormat",(e,t)=>{Br.init(e,t),_t.init(e,t)}),Sa=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ml),de.init(e,t)}),wa=y("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ir(n))}else t.pattern??(t.pattern=ir());de.init(e,t)}),Oa=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fl),de.init(e,t)}),Xo=y("$ZodURL",(e,t)=>{de.init(e,t),e._zod.check=o=>{try{let n=o.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=r.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),ka=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=hl()),de.init(e,t)}),$a=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=dl),de.init(e,t)}),Ra=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=al),de.init(e,t)}),Ca=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=sl),de.init(e,t)}),Da=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cl),de.init(e,t)}),za=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ul),de.init(e,t)}),Na=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ll),de.init(e,t)}),Yo=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Tl(t)),de.init(e,t)}),Qo=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Al),de.init(e,t)}),en=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=El(t)),de.init(e,t)}),tn=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=pl),de.init(e,t)}),Ma=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gl),de.init(e,t),e._zod.bag.format="ipv4"}),Ua=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=yl),de.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),La=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=vl(t.delimiter)),de.init(e,t),e._zod.bag.format="mac"}),Fa=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xl),de.init(e,t)}),ja=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=_l),de.init(e,t),e._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[r,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function ed(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(ed,"isValidBase64");var Ba=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Pl),de.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{ed(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function fg(e){if(!va.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return ed(o)}s(fg,"isValidBase64URL");var Va=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=va),de.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{fg(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),Ha=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bl),de.init(e,t)});function hg(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[n]=o;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(hg,"isValidJWT");var Za=y("$ZodJWT",(e,t)=>{de.init(e,t),e._zod.check=o=>{hg(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),qa=y("$ZodCustomStringFormat",(e,t)=>{de.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),Vr=y("$ZodNumber",(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??xa,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),o}}),rn=y("$ZodNumberFormat",(e,t)=>{zl.init(e,t),Vr.init(e,t)}),ar=y("$ZodBoolean",(e,t)=>{q.init(e,t),e._zod.pattern=Ol,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=!!o.value}catch{}let r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),o}}),Hr=y("$ZodBigInt",(e,t)=>{q.init(e,t),e._zod.pattern=Sl,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Ga=y("$ZodBigIntFormat",(e,t)=>{Nl.init(e,t),Hr.init(e,t)}),Wa=y("$ZodSymbol",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),o}}),Ka=y("$ZodUndefined",(e,t)=>{q.init(e,t),e._zod.pattern=$l,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),o}}),Ja=y("$ZodNull",(e,t)=>{q.init(e,t),e._zod.pattern=kl,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{let r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),o}}),on=y("$ZodAny",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),nn=y("$ZodUnknown",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),Xa=y("$ZodNever",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),an=y("$ZodVoid",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),o}}),sn=y("$ZodDate",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let r=o.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),o}});function og(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(og,"handleArrayResult");var cn=y("$ZodArray",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),o;o.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let c=r[a],u=t.element._zod.run({value:c,issues:[]},n);u instanceof Promise?i.push(u.then(l=>og(l,o,a))):og(u,o,a)}return i.length?Promise.all(i).then(()=>o):o}});function Ia(e,t,o,n,r){if(e.issues.length){if(r&&!(o in n))return;t.issues.push(...Ye(o,e.issues))}e.value===void 0?o in n&&(t.value[o]=void 0):t.value[o]=e.value}s(Ia,"handlePropertyResult");function gg(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let o=ol(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}s(gg,"normalizeDef");function yg(e,t,o,n,r,i){let a=[],c=r.keySet,u=r.catchall._zod,l=u.def.type,d=u.optout==="optional";for(let g in t){if(c.has(g))continue;if(l==="never"){a.push(g);continue}let f=u.run({value:t[g],issues:[]},n);f instanceof Promise?e.push(f.then(p=>Ia(p,o,g,t,d))):Ia(f,o,g,t,d)}return a.length&&o.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>o):o}s(yg,"handleCatchall");var Ya=y("$ZodObject",(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let u={...c};return Object.defineProperty(t,"shape",{value:u}),u},"get")})}let n=Rr(()=>gg(t));Q(e._zod,"propValues",()=>{let c=t.shape,u={};for(let l in c){let d=c[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let g of d.values)u[l].add(g)}}return u});let r=rr,i=t.catchall,a;e._zod.parse=(c,u)=>{a??(a=n.value);let l=c.value;if(!r(l))return c.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),c;c.value={};let d=[],g=a.shape;for(let f of a.keys){let p=g[f],v=p._zod.optout==="optional",b=p._zod.run({value:l[f],issues:[]},u);b instanceof Promise?d.push(b.then(T=>Ia(T,c,f,l,v))):Ia(b,c,f,l,v)}return i?yg(d,l,c,u,n.value,e):d.length?Promise.all(d).then(()=>c):c}}),td=y("$ZodObjectJIT",(e,t)=>{Ya.init(e,t);let o=e._zod.parse,n=Rr(()=>gg(t)),r=s(f=>{let p=new Jo(["shape","payload","ctx"]),v=n.value,b=s(B=>{let ie=ia(B);return`shape[${ie}]._zod.run({ value: input[${ie}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let T=Object.create(null),A=0;for(let B of v.keys)T[B]=`key_${A++}`;p.write("const newResult = {};");for(let B of v.keys){let ie=T[B],ue=ia(B),Ae=f[B]?._zod?.optout==="optional";p.write(`const ${ie} = ${b(B)};`),Ae?p.write(`
8
+ `))}};var Ql={major:4,minor:3,patch:6};var q=y("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ql;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let i of r._zod.onattach)i(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,c,u)=>{let l=Mt(a),d;for(let h of c){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,p=h._zod.check(a);if(p instanceof Promise&&u?.async===!1)throw new ct;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(l||(l=Mt(a,f)))});else{if(a.issues.length===f)continue;l||(l=Mt(a,f))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,c,u)=>{if(Mt(a))return a.aborted=!0,a;let l=r(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new ct;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ct;return u.then(l=>r(l,n,c))}return r(u,n,c)}}Q(e,"~standard",()=>({validate:s(r=>{try{let i=Lr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return jr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),_t=y("$ZodString",(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Sl(e._zod.bag),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),de=y("$ZodStringFormat",(e,t)=>{Br.init(e,t),_t.init(e,t)}),Sa=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=fl),de.init(e,t)}),wa=y("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ar(n))}else t.pattern??(t.pattern=ar());de.init(e,t)}),Oa=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gl),de.init(e,t)}),Xo=y("$ZodURL",(e,t)=>{de.init(e,t),e._zod.check=o=>{try{let n=o.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=r.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),ka=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=hl()),de.init(e,t)}),Ra=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=pl),de.init(e,t)}),$a=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=sl),de.init(e,t)}),Ca=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=cl),de.init(e,t)}),Da=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ul),de.init(e,t)}),za=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ll),de.init(e,t)}),Na=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=dl),de.init(e,t)}),Yo=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Il(t)),de.init(e,t)}),Qo=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=El),de.init(e,t)}),en=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Tl(t)),de.init(e,t)}),tn=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ml),de.init(e,t)}),Ma=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=yl),de.init(e,t),e._zod.bag.format="ipv4"}),Ua=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=vl),de.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),La=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=xl(t.delimiter)),de.init(e,t),e._zod.bag.format="mac"}),Fa=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=_l),de.init(e,t)}),ja=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Pl),de.init(e,t),e._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[r,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function td(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(td,"isValidBase64");var Ba=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=bl),de.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{td(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function fh(e){if(!va.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return td(o)}s(fh,"isValidBase64URL");var Va=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=va),de.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{fh(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),Ha=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Al),de.init(e,t)});function gh(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[n]=o;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(gh,"isValidJWT");var Za=y("$ZodJWT",(e,t)=>{de.init(e,t),e._zod.check=o=>{gh(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),qa=y("$ZodCustomStringFormat",(e,t)=>{de.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),Vr=y("$ZodNumber",(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??xa,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),o}}),rn=y("$ZodNumberFormat",(e,t)=>{Nl.init(e,t),Vr.init(e,t)}),sr=y("$ZodBoolean",(e,t)=>{q.init(e,t),e._zod.pattern=kl,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=!!o.value}catch{}let r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),o}}),Hr=y("$ZodBigInt",(e,t)=>{q.init(e,t),e._zod.pattern=wl,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Ga=y("$ZodBigIntFormat",(e,t)=>{Ml.init(e,t),Hr.init(e,t)}),Wa=y("$ZodSymbol",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),o}}),Ka=y("$ZodUndefined",(e,t)=>{q.init(e,t),e._zod.pattern=$l,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),o}}),Ja=y("$ZodNull",(e,t)=>{q.init(e,t),e._zod.pattern=Rl,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{let r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),o}}),on=y("$ZodAny",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),nn=y("$ZodUnknown",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),Xa=y("$ZodNever",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),an=y("$ZodVoid",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),o}}),sn=y("$ZodDate",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let r=o.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),o}});function oh(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(oh,"handleArrayResult");var cn=y("$ZodArray",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),o;o.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let c=r[a],u=t.element._zod.run({value:c,issues:[]},n);u instanceof Promise?i.push(u.then(l=>oh(l,o,a))):oh(u,o,a)}return i.length?Promise.all(i).then(()=>o):o}});function Ia(e,t,o,n,r){if(e.issues.length){if(r&&!(o in n))return;t.issues.push(...Ye(o,e.issues))}e.value===void 0?o in n&&(t.value[o]=void 0):t.value[o]=e.value}s(Ia,"handlePropertyResult");function hh(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let o=nl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}s(hh,"normalizeDef");function yh(e,t,o,n,r,i){let a=[],c=r.keySet,u=r.catchall._zod,l=u.def.type,d=u.optout==="optional";for(let h in t){if(c.has(h))continue;if(l==="never"){a.push(h);continue}let f=u.run({value:t[h],issues:[]},n);f instanceof Promise?e.push(f.then(p=>Ia(p,o,h,t,d))):Ia(f,o,h,t,d)}return a.length&&o.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>o):o}s(yh,"handleCatchall");var Ya=y("$ZodObject",(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let u={...c};return Object.defineProperty(t,"shape",{value:u}),u},"get")})}let n=$r(()=>hh(t));Q(e._zod,"propValues",()=>{let c=t.shape,u={};for(let l in c){let d=c[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let h of d.values)u[l].add(h)}}return u});let r=or,i=t.catchall,a;e._zod.parse=(c,u)=>{a??(a=n.value);let l=c.value;if(!r(l))return c.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),c;c.value={};let d=[],h=a.shape;for(let f of a.keys){let p=h[f],v=p._zod.optout==="optional",b=p._zod.run({value:l[f],issues:[]},u);b instanceof Promise?d.push(b.then(E=>Ia(E,c,f,l,v))):Ia(b,c,f,l,v)}return i?yh(d,l,c,u,n.value,e):d.length?Promise.all(d).then(()=>c):c}}),rd=y("$ZodObjectJIT",(e,t)=>{Ya.init(e,t);let o=e._zod.parse,n=$r(()=>hh(t)),r=s(f=>{let p=new Jo(["shape","payload","ctx"]),v=n.value,b=s(U=>{let ie=ia(U);return`shape[${ie}]._zod.run({ value: input[${ie}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let E=Object.create(null),I=0;for(let U of v.keys)E[U]=`key_${I++}`;p.write("const newResult = {};");for(let U of v.keys){let ie=E[U],ue=ia(U),Ae=f[U]?._zod?.optout==="optional";p.write(`const ${ie} = ${b(U)};`),Ae?p.write(`
9
9
  if (${ie}.issues.length) {
10
10
  if (${ue} in input) {
11
11
  payload.issues = payload.issues.concat(${ie}.issues.map(iss => ({
@@ -39,9 +39,9 @@
39
39
  newResult[${ue}] = ${ie}.value;
40
40
  }
41
41
 
42
- `)}p.write("payload.value = newResult;"),p.write("return payload;");let w=p.compile();return(B,ie)=>w(f,B,ie)},"generateFastpass"),i,a=rr,c=!Lo.jitless,l=c&&tl.value,d=t.catchall,g;e._zod.parse=(f,p)=>{g??(g=n.value);let v=f.value;return a(v)?c&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),f=i(f,p),d?yg([],v,f,p,g,e):f):o(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function ng(e,t,o,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Nt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(a=>Ze(a,n,xe())))}),t)}s(ng,"handleUnionResults");var sr=y("$ZodUnion",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Q(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Vo(i.source)).join("|")})$`)}});let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(u=>ng(u,r,e,i)):ng(c,r,e,i)}});function ig(e,t,o,n){let r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(a=>Ze(a,n,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:[],inclusive:!1}),t)}s(ig,"handleExclusiveUnionResults");var Qa=y("$ZodXor",(e,t)=>{sr.init(e,t),t.inclusive=!1;let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(c.push(l),a=!0):c.push(l)}return a?Promise.all(c).then(u=>ig(u,r,e,i)):ig(c,r,e,i)}}),un=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sr.init(e,t);let o=e._zod.parse;Q(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[c,u]of Object.entries(a)){r[c]||(r[c]=new Set);for(let l of u)r[c].add(l)}}return r});let n=Rr(()=>{let r=t.options,i=new Map;for(let a of r){let c=a._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of c){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!rr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let c=n.value.get(a?.[t.discriminator]);return c?c._zod.run(r,i):t.unionFallback?o(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),es=y("$ZodIntersection",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>ag(o,u,l)):ag(o,i,a)}});function Ql(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(zt(e)&&zt(t)){let o=Object.keys(t),n=Object.keys(e).filter(i=>o.indexOf(i)!==-1),r={...e,...t};for(let i of n){let a=Ql(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t[n],a=Ql(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};o.push(a.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}s(Ql,"mergeValues");function ag(e,t,o){let n=new Map,r;for(let c of t.issues)if(c.code==="unrecognized_keys"){r??(r=c);for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).l=!0}else e.issues.push(c);for(let c of o.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).r=!0;else e.issues.push(c);let i=[...n].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&r&&e.issues.push({...r,keys:i}),Nt(e))return e;let a=Ql(t.value,o.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(ag,"handleIntersectionResults");var ln=y("$ZodTuple",(e,t)=>{q.init(e,t);let o=t.items;e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],c=[...o].reverse().findIndex(d=>d._zod.optin!=="optional"),u=c===-1?0:o.length-c;if(!t.rest){let d=i.length>o.length,g=i.length<u-1;if(d||g)return n.issues.push({...d?{code:"too_big",maximum:o.length,inclusive:!0}:{code:"too_small",minimum:o.length},input:i,inst:e,origin:"array"}),n}let l=-1;for(let d of o){if(l++,l>=i.length&&l>=u)continue;let g=d._zod.run({value:i[l],issues:[]},r);g instanceof Promise?a.push(g.then(f=>ba(f,n,l))):ba(g,n,l)}if(t.rest){let d=i.slice(o.length);for(let g of d){l++;let f=t.rest._zod.run({value:g,issues:[]},r);f instanceof Promise?a.push(f.then(p=>ba(p,n,l))):ba(f,n,l)}}return a.length?Promise.all(a).then(()=>n):n}});function ba(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(ba,"handleTupleResult");var dn=y("$ZodRecord",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!zt(r))return o.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),o;let i=[],a=t.keyType._zod.values;if(a){o.value={};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){c.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},n);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&o.issues.push(...Ye(l,g.issues)),o.value[l]=g.value})):(d.issues.length&&o.issues.push(...Ye(l,d.issues)),o.value[l]=d.value)}let u;for(let l in r)c.has(l)||(u=u??[],u.push(l));u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{o.value={};for(let c of Reflect.ownKeys(r)){if(c==="__proto__")continue;let u=t.keyType._zod.run({value:c,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&xa.test(c)&&u.issues.length){let g=t.keyType._zod.run({value:Number(c),issues:[]},n);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(u=g)}if(u.issues.length){t.mode==="loose"?o.value[c]=r[c]:o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>Ze(g,n,xe())),input:c,path:[c],inst:e});continue}let d=t.valueType._zod.run({value:r[c],issues:[]},n);d instanceof Promise?i.push(d.then(g=>{g.issues.length&&o.issues.push(...Ye(c,g.issues)),o.value[u.value]=g.value})):(d.issues.length&&o.issues.push(...Ye(c,d.issues)),o.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>o):o}}),ts=y("$ZodMap",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),o;let i=[];o.value=new Map;for(let[a,c]of r){let u=t.keyType._zod.run({value:a,issues:[]},n),l=t.valueType._zod.run({value:c,issues:[]},n);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,g])=>{sg(d,g,o,a,r,e,n)})):sg(u,l,o,a,r,e,n)}return i.length?Promise.all(i).then(()=>o):o}});function sg(e,t,o,n,r,i,a){e.issues.length&&(Ho.has(typeof n)?o.issues.push(...Ye(n,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(c=>Ze(c,a,xe()))})),t.issues.length&&(Ho.has(typeof n)?o.issues.push(...Ye(n,t.issues)):o.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:n,issues:t.issues.map(c=>Ze(c,a,xe()))})),o.value.set(e.value,t.value)}s(sg,"handleMapResult");var rs=y("$ZodSet",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Set))return o.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),o;let i=[];o.value=new Set;for(let a of r){let c=t.valueType._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>cg(u,o))):cg(c,o)}return i.length?Promise.all(i).then(()=>o):o}});function cg(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(cg,"handleSetResult");var pn=y("$ZodEnum",(e,t)=>{q.init(e,t);let o=Bo(t.entries),n=new Set(o);e._zod.values=n,e._zod.pattern=new RegExp(`^(${o.filter(r=>Ho.has(typeof r)).map(r=>typeof r=="string"?ot(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:o,input:a,inst:e}),r}}),mn=y("$ZodLiteral",(e,t)=>{if(q.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(t.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?ot(n):n?ot(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return o.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),os=y("$ZodFile",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return r instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),o}}),fn=y("$ZodTransform",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Rt(e.constructor.name);let r=t.transform(o.value,o);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(o.value=a,o));if(r instanceof Promise)throw new ct;return o.value=r,o}});function ug(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(ug,"handleOptionalResult");var Zr=y("$ZodOptional",(e,t)=>{q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)})?$`):void 0}),e._zod.parse=(o,n)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>ug(i,o.value)):ug(r,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,n)}}),ns=y("$ZodExactOptional",(e,t)=>{Zr.init(e,t),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(o,n)=>t.innerType._zod.run(o,n)}),hn=y("$ZodNullable",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)}|null)$`):void 0}),Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,n)=>o.value===null?o:t.innerType._zod.run(o,n)}),is=y("$ZodDefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);if(o.value===void 0)return o.value=t.defaultValue,o;let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>lg(i,t)):lg(r,t)}});function lg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(lg,"handleDefaultResult");var as=y("$ZodPrefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>(n.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,n))}),ss=y("$ZodNonOptional",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>{let o=t.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(o,n)=>{let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>dg(i,e)):dg(r,e)}});function dg(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(dg,"handleNonOptionalResult");var cs=y("$ZodSuccess",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Rt("ZodSuccess");let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.issues.length===0,o)):(o.value=r.issues.length===0,o)}}),us=y("$ZodCatch",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.value,i.issues.length&&(o.value=t.catchValue({...o,error:{issues:i.issues.map(a=>Ze(a,n,xe()))},input:o.value}),o.issues=[]),o)):(o.value=r.value,r.issues.length&&(o.value=t.catchValue({...o,error:{issues:r.issues.map(i=>Ze(i,n,xe()))},input:o.value}),o.issues=[]),o)}}),ls=y("$ZodNaN",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),gn=y("$ZodPipe",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>Aa(a,t.in,n)):Aa(i,t.in,n)}let r=t.in._zod.run(o,n);return r instanceof Promise?r.then(i=>Aa(i,t.out,n)):Aa(r,t.out,n)}});function Aa(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}s(Aa,"handlePipeResult");var qr=y("$ZodCodec",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(o,n);return i instanceof Promise?i.then(a=>Ea(a,t,n)):Ea(i,t,n)}else{let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>Ea(a,t,n)):Ea(i,t,n)}}});function Ea(e,t,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Ta(e,i,t.out,o)):Ta(e,r,t.out,o)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Ta(e,i,t.in,o)):Ta(e,r,t.in,o)}}s(Ea,"handleCodecAResult");function Ta(e,t,o,n){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:t,issues:e.issues},n)}s(Ta,"handleCodecTxResult");var ds=y("$ZodReadonly",(e,t)=>{q.init(e,t),Q(e._zod,"propValues",()=>t.innerType._zod.propValues),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"optin",()=>t.innerType?._zod?.optin),Q(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(pg):pg(r)}});function pg(e){return e.value=Object.freeze(e.value),e}s(pg,"handleReadonlyResult");var ps=y("$ZodTemplateLiteral",(e,t)=>{q.init(e,t);let o=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;o.push(r.slice(i,a))}else if(n===null||rl.has(typeof n))o.push(ot(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),ms=y("$ZodFunction",(e,t)=>(q.init(e,t),e._def=t,e._zod.def=t,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...n){let r=e._def.input?or(e._def.input,n):n,i=Reflect.apply(o,this,r);return e._def.output?or(e._def.output,i):i}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await nr(e._def.input,n):n,i=await Reflect.apply(o,this,r);return e._def.output?await nr(e._def.output,i):i}},e._zod.parse=(o,n)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let n=e.constructor;return Array.isArray(o[0])?new n({type:"function",input:new ln({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new n({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:o})},e)),fs=y("$ZodPromise",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>Promise.resolve(o.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),hs=y("$ZodLazy",(e,t)=>{q.init(e,t),Q(e._zod,"innerType",()=>t.getter()),Q(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Q(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Q(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Q(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,n)=>e._zod.innerType._zod.run(o,n)}),yn=y("$ZodCustom",(e,t)=>{me.init(e,t),q.init(e,t),e._zod.parse=(o,n)=>o,e._zod.check=o=>{let n=o.value,r=t.fn(n);if(r instanceof Promise)return r.then(i=>mg(i,o,n,e));mg(r,o,n,e)}});function mg(e,t,o,n){if(!e){let r={code:"custom",input:o,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(Cr(r))}}s(mg,"handleRefineResult");var Wr={};Xe(Wr,{ar:()=>rd,az:()=>od,be:()=>nd,bg:()=>id,ca:()=>ad,cs:()=>sd,da:()=>cd,de:()=>ud,en:()=>vn,eo:()=>ld,es:()=>dd,fa:()=>pd,fi:()=>md,fr:()=>fd,frCA:()=>hd,he:()=>gd,hu:()=>yd,hy:()=>vd,id:()=>xd,is:()=>_d,it:()=>Pd,ja:()=>bd,ka:()=>Ad,kh:()=>Ed,km:()=>xn,ko:()=>Td,lt:()=>Id,mk:()=>Sd,ms:()=>wd,nl:()=>Od,no:()=>kd,ota:()=>$d,pl:()=>Cd,ps:()=>Rd,pt:()=>Dd,ru:()=>zd,sl:()=>Nd,sv:()=>Md,ta:()=>Ud,th:()=>Ld,tr:()=>Fd,ua:()=>jd,uk:()=>Pn,ur:()=>Bd,uz:()=>Vd,vi:()=>Hd,yo:()=>Gd,zhCN:()=>Zd,zhTW:()=>qd});var TI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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: ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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}`:`${o[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":""}: ${I(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 rd(){return{localeError:TI()}}s(rd,"default");var II=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${c}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${R(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 od(){return{localeError:II()}}s(od,"default");function vg(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(vg,"getBelarusianPlural");var SI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=vg(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.maximum.toString()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=vg(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.minimum.toString()} ${u}`}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 ${o[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"}: ${I(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 nd(){return{localeError:SI()}}s(nd,"default");var wI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${o[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":""}: ${I(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 id(){return{localeError:wI()}}s(id,"default");var OI=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${c}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${R(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 ad(){return{localeError:OI()}}s(ad,"default");var kI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${c}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${R(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.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 ${o[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: ${I(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 sd(){return{localeError:kI()}}s(sd,"default");var $I=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${c}`:`Ugyldigt input: forventede ${i}, fik ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${R(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For lille: forventede ${c} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} 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 ${o[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"}: ${I(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 cd(){return{localeError:$I()}}s(cd,"default");var RI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${c}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${R(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.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: ${o[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"}: ${I(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 ud(){return{localeError:RI()}}s(ud,"default");var CI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return`Invalid input: expected ${i}, received ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(r.values[0])}`:`Invalid option: expected one of ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 vn(){return{localeError:CI()}}s(vn,"default");var DI=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${c}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${R(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 ld(){return{localeError:DI()}}s(ld,"default");var zI=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${R(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} 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 ${o[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":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function dd(){return{localeError:zI()}}s(dd,"default");var NI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${R(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 ${I(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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: ${I(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 pd(){return{localeError:NI()}}s(pd,"default");var MI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${c}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${R(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 md(){return{localeError:MI()}}s(md,"default");var UI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${c} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${R(r.values[0])} attendu`:`Option invalide : une valeur parmi ${I(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${I(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 fd(){return{localeError:UI()}}s(fd,"default");var LI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${c}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${R(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${I(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 hd(){return{localeError:LI()}}s(hd,"default");var FI=s(()=>{let e={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"}},t={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"}},o=s(l=>l?e[l]:void 0,"typeEntry"),n=s(l=>{let d=o(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${n(l)}`,"withDefinite"),i=s(l=>(o(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),c={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"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,g=u[d??""]??n(d),f=D(l.input),p=u[f]??e[f]?.label??f;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${R(l.values[0])}`;let d=l.values.map(p=>R(p));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let g=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${g}`}case"too_big":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${f}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${g} ${p} ${f}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),g=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let T=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`}let b=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${g} ${p} ${f}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${g} ${p} ${f}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let g=c[d.format],f=g?.label??d.format,v=(g?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${v}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function gd(){return{localeError:FI()}}s(gd,"default");var jI=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${R(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 yd(){return{localeError:jI()}}s(yd,"default");function xg(e,t,o){return Math.abs(e)===1?t:o}s(xg,"getArmenianPlural");function Gr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(t.includes(o)?"\u0576":"\u0568")}s(Gr,"withDefiniteArticle");var BI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=xg(c,a.unit.one,a.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 ${Gr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${u}`}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 ${Gr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=xg(c,a.unit.one,a.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 ${Gr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${u}`}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 ${Gr(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 ${o[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":""}. ${I(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Gr(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 ${Gr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function vd(){return{localeError:BI()}}s(vd,"default");var VI=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${R(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${I(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 xd(){return{localeError:VI()}}s(xd,"default");var HI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${R(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 _d(){return{localeError:HI()}}s(_d,"default");var ZI=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${c}`:`Input non valido: atteso ${i}, ricevuto ${c}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${R(r.values[0])}`:`Opzione non valida: atteso uno tra ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 Pd(){return{localeError:ZI()}}s(Pd,"default");var qI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${R(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(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",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.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",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.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${o[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":""}: ${I(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 bd(){return{localeError:qI()}}s(bd,"default");var GI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 Ad(){return{localeError:GI()}}s(Ad,"default");var WI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.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 ${o[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 ${I(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 xn(){return{localeError:WI()}}s(xn,"default");function Ed(){return xn()}s(Ed,"default");var KI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${R(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}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 ${o[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: ${I(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 Td(){return{localeError:KI()}}s(Td,"default");var _n=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function _g(e){let t=Math.abs(e),o=t%10,n=t%100;return n>=11&&n<=19||o===0?"many":o===1?"one":"few"}s(_g,"getUnitTypeFromNumber");var JI=s(()=>{let e={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 t(r,i,a,c){let u=e[r]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[c][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${R(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=n[r.origin]??r.origin,a=t(r.origin,_g(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=n[r.origin]??r.origin,a=t(r.origin,_g(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.minimum.toString()} ${a?.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 ${o[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"}: ${I(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=n[r.origin]??r.origin;return`${_n(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Id(){return{localeError:JI()}}s(Id,"default");var XI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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"}: ${I(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 Sd(){return{localeError:XI()}}s(Sd,"default");var YI=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${c}`:`Input tidak sah: dijangka ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${R(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${I(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 wd(){return{localeError:YI()}}s(wd,"default");var QI=s(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${i}, ontving ${c}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${R(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: 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: ${o[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":""}: ${I(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 Od(){return{localeError:QI()}}s(Od,"default");var eS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${c}`:`Ugyldig input: forventet ${i}, fikk ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${R(r.values[0])}`:`Ugyldig valg: forventet en av ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 kd(){return{localeError:eS()}}s(kd,"default");var tS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${R(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 $d(){return{localeError:tS()}}s($d,"default");var rS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${R(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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"}: ${I(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 Rd(){return{localeError:rS()}}s(Rd,"default");var oS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${c}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${R(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.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) ${o[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":""}: ${I(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 Cd(){return{localeError:oS()}}s(Cd,"default");var nS=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${R(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${I(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 Dd(){return{localeError:nS()}}s(Dd,"default");function Pg(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(Pg,"getRussianPlural");var iS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=Pg(c,a.unit.one,a.unit.few,a.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()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=Pg(c,a.unit.one,a.unit.few,a.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()} ${u}`}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 ${o[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":""}: ${I(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 zd(){return{localeError:iS()}}s(zd,"default");var aS=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${c}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${R(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${I(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 Nd(){return{localeError:aS()}}s(Nd,"default");var sS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${c}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${R(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.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) ${o[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"}: ${I(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 Md(){return{localeError:sS()}}s(Md,"default");var cS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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":""}: ${I(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 Ud(){return{localeError:cS()}}s(Ud,"default");var uS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.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: ${o[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: ${I(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 Ld(){return{localeError:uS()}}s(Ld,"default");var lS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${R(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 Fd(){return{localeError:lS()}}s(Fd,"default");var dS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 Pn(){return{localeError:dS()}}s(Pn,"default");function jd(){return Pn()}s(jd,"default");var pS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c} \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 ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${R(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(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?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${I(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 Bd(){return{localeError:pS()}}s(Bd,"default");var mS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${c}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${R(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.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 ${o[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":""}: ${I(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 Vd(){return{localeError:mS()}}s(Vd,"default");var fS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${R(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 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${I(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 Hd(){return{localeError:fS()}}s(Hd,"default");var hS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${R(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.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${o[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): ${I(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 Zd(){return{localeError:hS()}}s(Zd,"default");var gS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${R(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.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 ${o[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${I(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 qd(){return{localeError:gS()}}s(qd,"default");var yS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=D(r.input),c=n[a]??a;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 ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${R(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.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?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.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: ${o[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: ${I(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 Gd(){return{localeError:yS()}}s(Gd,"default");var bg,ys=Symbol("ZodOutput"),vs=Symbol("ZodInput"),gs=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){let n=o[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){let o=t._zod.parent;if(o){let n={...this.get(o)??{}};delete n.id;let r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function bn(){return new gs}s(bn,"registry");(bg=globalThis).__zod_globalRegistry??(bg.__zod_globalRegistry=bn());var Re=globalThis.__zod_globalRegistry;function An(e,t){return new e({type:"string",...k(t)})}s(An,"_string");function En(e,t){return new e({type:"string",coerce:!0,...k(t)})}s(En,"_coercedString");function Tn(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}s(Tn,"_email");function Kr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}s(Kr,"_guid");function In(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}s(In,"_uuid");function Sn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}s(Sn,"_uuidv4");function wn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}s(wn,"_uuidv6");function On(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}s(On,"_uuidv7");function cr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}s(cr,"_url");function kn(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}s(kn,"_emoji");function $n(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}s($n,"_nanoid");function Rn(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}s(Rn,"_cuid");function Cn(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}s(Cn,"_cuid2");function Dn(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}s(Dn,"_ulid");function zn(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}s(zn,"_xid");function Nn(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}s(Nn,"_ksuid");function Mn(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}s(Mn,"_ipv4");function Un(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}s(Un,"_ipv6");function xs(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(t)})}s(xs,"_mac");function Ln(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}s(Ln,"_cidrv4");function Fn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}s(Fn,"_cidrv6");function jn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}s(jn,"_base64");function Bn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}s(Bn,"_base64url");function Vn(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}s(Vn,"_e164");function Hn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}s(Hn,"_jwt");var _s={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Zn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}s(Zn,"_isoDateTime");function qn(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}s(qn,"_isoDate");function Gn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}s(Gn,"_isoTime");function Wn(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}s(Wn,"_isoDuration");function Kn(e,t){return new e({type:"number",checks:[],...k(t)})}s(Kn,"_number");function Jn(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}s(Jn,"_coercedNumber");function Xn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}s(Xn,"_int");function Ps(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}s(Ps,"_float32");function bs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}s(bs,"_float64");function As(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}s(As,"_int32");function Es(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}s(Es,"_uint32");function Yn(e,t){return new e({type:"boolean",...k(t)})}s(Yn,"_boolean");function Qn(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}s(Qn,"_coercedBoolean");function Ts(e,t){return new e({type:"bigint",...k(t)})}s(Ts,"_bigint");function ei(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}s(ei,"_coercedBigint");function Is(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}s(Is,"_int64");function Ss(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}s(Ss,"_uint64");function ws(e,t){return new e({type:"symbol",...k(t)})}s(ws,"_symbol");function Os(e,t){return new e({type:"undefined",...k(t)})}s(Os,"_undefined");function ks(e,t){return new e({type:"null",...k(t)})}s(ks,"_null");function ti(e){return new e({type:"any"})}s(ti,"_any");function ri(e){return new e({type:"unknown"})}s(ri,"_unknown");function $s(e,t){return new e({type:"never",...k(t)})}s($s,"_never");function oi(e,t){return new e({type:"void",...k(t)})}s(oi,"_void");function Rs(e,t){return new e({type:"date",...k(t)})}s(Rs,"_date");function ni(e,t){return new e({type:"date",coerce:!0,...k(t)})}s(ni,"_coercedDate");function Cs(e,t){return new e({type:"nan",...k(t)})}s(Cs,"_nan");function ut(e,t){return new _a({check:"less_than",...k(t),value:e,inclusive:!1})}s(ut,"_lt");function Fe(e,t){return new _a({check:"less_than",...k(t),value:e,inclusive:!0})}s(Fe,"_lte");function lt(e,t){return new Pa({check:"greater_than",...k(t),value:e,inclusive:!1})}s(lt,"_gt");function Oe(e,t){return new Pa({check:"greater_than",...k(t),value:e,inclusive:!0})}s(Oe,"_gte");function ii(e){return lt(0,e)}s(ii,"_positive");function ai(e){return ut(0,e)}s(ai,"_negative");function si(e){return Fe(0,e)}s(si,"_nonpositive");function ci(e){return Oe(0,e)}s(ci,"_nonnegative");function Pt(e,t){return new Dl({check:"multiple_of",...k(t),value:e})}s(Pt,"_multipleOf");function bt(e,t){return new Ml({check:"max_size",...k(t),maximum:e})}s(bt,"_maxSize");function dt(e,t){return new Ul({check:"min_size",...k(t),minimum:e})}s(dt,"_minSize");function Mt(e,t){return new Ll({check:"size_equals",...k(t),size:e})}s(Mt,"_size");function Ut(e,t){return new Fl({check:"max_length",...k(t),maximum:e})}s(Ut,"_maxLength");function Ie(e,t){return new jl({check:"min_length",...k(t),minimum:e})}s(Ie,"_minLength");function Lt(e,t){return new Bl({check:"length_equals",...k(t),length:e})}s(Lt,"_length");function ze(e,t){return new Vl({check:"string_format",format:"regex",...k(t),pattern:e})}s(ze,"_regex");function ur(e){return new Hl({check:"string_format",format:"lowercase",...k(e)})}s(ur,"_lowercase");function lr(e){return new Zl({check:"string_format",format:"uppercase",...k(e)})}s(lr,"_uppercase");function dr(e,t){return new ql({check:"string_format",format:"includes",...k(t),includes:e})}s(dr,"_includes");function pr(e,t){return new Gl({check:"string_format",format:"starts_with",...k(t),prefix:e})}s(pr,"_startsWith");function mr(e,t){return new Wl({check:"string_format",format:"ends_with",...k(t),suffix:e})}s(mr,"_endsWith");function ui(e,t,o){return new Kl({check:"property",property:e,schema:t,...k(o)})}s(ui,"_property");function fr(e,t){return new Jl({check:"mime_type",mime:e,...k(t)})}s(fr,"_mime");function nt(e){return new Xl({check:"overwrite",tx:e})}s(nt,"_overwrite");function hr(e){return nt(t=>t.normalize(e))}s(hr,"_normalize");function gr(){return nt(e=>e.trim())}s(gr,"_trim");function yr(){return nt(e=>e.toLowerCase())}s(yr,"_toLowerCase");function vr(){return nt(e=>e.toUpperCase())}s(vr,"_toUpperCase");function Jr(){return nt(e=>el(e))}s(Jr,"_slugify");function Wd(e,t,o){return new e({type:"array",element:t,...k(o)})}s(Wd,"_array");function xS(e,t,o){return new e({type:"union",options:t,...k(o)})}s(xS,"_union");function _S(e,t,o){return new e({type:"union",options:t,inclusive:!1,...k(o)})}s(_S,"_xor");function PS(e,t,o,n){return new e({type:"union",options:o,discriminator:t,...k(n)})}s(PS,"_discriminatedUnion");function bS(e,t,o){return new e({type:"intersection",left:t,right:o})}s(bS,"_intersection");function AS(e,t,o,n){let r=o instanceof q,i=r?n:o,a=r?o:null;return new e({type:"tuple",items:t,rest:a,...k(i)})}s(AS,"_tuple");function ES(e,t,o,n){return new e({type:"record",keyType:t,valueType:o,...k(n)})}s(ES,"_record");function TS(e,t,o,n){return new e({type:"map",keyType:t,valueType:o,...k(n)})}s(TS,"_map");function IS(e,t,o){return new e({type:"set",valueType:t,...k(o)})}s(IS,"_set");function SS(e,t,o){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...k(o)})}s(SS,"_enum");function wS(e,t,o){return new e({type:"enum",entries:t,...k(o)})}s(wS,"_nativeEnum");function OS(e,t,o){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(o)})}s(OS,"_literal");function Ds(e,t){return new e({type:"file",...k(t)})}s(Ds,"_file");function kS(e,t){return new e({type:"transform",transform:t})}s(kS,"_transform");function $S(e,t){return new e({type:"optional",innerType:t})}s($S,"_optional");function RS(e,t){return new e({type:"nullable",innerType:t})}s(RS,"_nullable");function CS(e,t,o){return new e({type:"default",innerType:t,get defaultValue(){return typeof o=="function"?o():sa(o)}})}s(CS,"_default");function DS(e,t,o){return new e({type:"nonoptional",innerType:t,...k(o)})}s(DS,"_nonoptional");function zS(e,t){return new e({type:"success",innerType:t})}s(zS,"_success");function NS(e,t,o){return new e({type:"catch",innerType:t,catchValue:typeof o=="function"?o:()=>o})}s(NS,"_catch");function MS(e,t,o){return new e({type:"pipe",in:t,out:o})}s(MS,"_pipe");function US(e,t){return new e({type:"readonly",innerType:t})}s(US,"_readonly");function LS(e,t,o){return new e({type:"template_literal",parts:t,...k(o)})}s(LS,"_templateLiteral");function FS(e,t){return new e({type:"lazy",getter:t})}s(FS,"_lazy");function jS(e,t){return new e({type:"promise",innerType:t})}s(jS,"_promise");function li(e,t,o){let n=k(o);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}s(li,"_custom");function di(e,t,o){return new e({type:"custom",check:"custom",fn:t,...k(o)})}s(di,"_refine");function zs(e){let t=Ag(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Cr(n,o.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),o.issues.push(Cr(r))}},e(o.value,o)));return t}s(zs,"_superRefine");function Ag(e,t){let o=new me({check:"custom",...k(t)});return o._zod.check=e,o}s(Ag,"_check");function Ns(e){let t=new me({check:"describe"});return t._zod.onattach=[o=>{let n=Re.get(o)??{};Re.add(o,{...n,description:e})}],t._zod.check=()=>{},t}s(Ns,"describe");function Ms(e){let t=new me({check:"meta"});return t._zod.onattach=[o=>{let n=Re.get(o)??{};Re.add(o,{...n,...e})}],t._zod.check=()=>{},t}s(Ms,"meta");function Us(e,t){let o=k(t),n=o.truthy??["true","1","yes","on","y","enabled"],r=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(n=n.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(n),a=new Set(r),c=e.Codec??qr,u=e.Boolean??ar,l=e.String??_t,d=new l({type:"string",error:o.error}),g=new u({type:"boolean",error:o.error}),f=new c({type:"pipe",in:d,out:g,transform:s(((p,v)=>{let b=p;return o.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:v.value,inst:f,continue:!1}),{})}),"transform"),reverseTransform:s(((p,v)=>p===!0?n[0]||"true":r[0]||"false"),"reverseTransform"),error:o.error});return f}s(Us,"_stringbool");function xr(e,t,o,n={}){let r=k(n),i={...k(n),check:"string_format",type:"string",format:t,fn:typeof o=="function"?o:c=>o.test(c),...r};return o instanceof RegExp&&(i.pattern=o),new e(i)}s(xr,"_stringFormat");function Ft(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Re,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}s(Ft,"initializeContext");function pe(e,t,o={path:[],schemaPath:[]}){var n;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,o.schemaPath.includes(e)&&(i.cycle=o.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let d={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,f,d)}let g=e._zod.parent;g&&(a.ref||(a.ref=g),pe(g,t,d),t.seen.get(g).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&je(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(pe,"process");function jt(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let u=n.get(c);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(c,a[0])}}let r=s(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=e.external.registry.get(a[0])?.id,f=e.external.uri??(v=>v);if(g)return{ref:f(g)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${f("__shared")}#/${c}/${p}`}}if(a[1]===o)return{ref:"#"};let l=`#/${c}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:u,defId:l}=r(a);c.def={...c.schema},l&&(c.defId=l);let d=c.schema;for(let g in d)delete d[g];d.$ref=u},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
42
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");let w=p.compile();return(U,ie)=>w(f,U,ie)},"generateFastpass"),i,a=or,c=!Lo.jitless,l=c&&rl.value,d=t.catchall,h;e._zod.parse=(f,p)=>{h??(h=n.value);let v=f.value;return a(v)?c&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),f=i(f,p),d?yh([],v,f,p,h,e):f):o(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function nh(e,t,o,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Mt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(a=>Ze(a,n,xe())))}),t)}s(nh,"handleUnionResults");var cr=y("$ZodUnion",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Q(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Vo(i.source)).join("|")})$`)}});let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(u=>nh(u,r,e,i)):nh(c,r,e,i)}});function ih(e,t,o,n){let r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(a=>Ze(a,n,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:[],inclusive:!1}),t)}s(ih,"handleExclusiveUnionResults");var Qa=y("$ZodXor",(e,t)=>{cr.init(e,t),t.inclusive=!1;let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(c.push(l),a=!0):c.push(l)}return a?Promise.all(c).then(u=>ih(u,r,e,i)):ih(c,r,e,i)}}),un=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,cr.init(e,t);let o=e._zod.parse;Q(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[c,u]of Object.entries(a)){r[c]||(r[c]=new Set);for(let l of u)r[c].add(l)}}return r});let n=$r(()=>{let r=t.options,i=new Map;for(let a of r){let c=a._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of c){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!or(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let c=n.value.get(a?.[t.discriminator]);return c?c._zod.run(r,i):t.unionFallback?o(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),es=y("$ZodIntersection",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>ah(o,u,l)):ah(o,i,a)}});function ed(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Nt(e)&&Nt(t)){let o=Object.keys(t),n=Object.keys(e).filter(i=>o.indexOf(i)!==-1),r={...e,...t};for(let i of n){let a=ed(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t[n],a=ed(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};o.push(a.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}s(ed,"mergeValues");function ah(e,t,o){let n=new Map,r;for(let c of t.issues)if(c.code==="unrecognized_keys"){r??(r=c);for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).l=!0}else e.issues.push(c);for(let c of o.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).r=!0;else e.issues.push(c);let i=[...n].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&r&&e.issues.push({...r,keys:i}),Mt(e))return e;let a=ed(t.value,o.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(ah,"handleIntersectionResults");var ln=y("$ZodTuple",(e,t)=>{q.init(e,t);let o=t.items;e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],c=[...o].reverse().findIndex(d=>d._zod.optin!=="optional"),u=c===-1?0:o.length-c;if(!t.rest){let d=i.length>o.length,h=i.length<u-1;if(d||h)return n.issues.push({...d?{code:"too_big",maximum:o.length,inclusive:!0}:{code:"too_small",minimum:o.length},input:i,inst:e,origin:"array"}),n}let l=-1;for(let d of o){if(l++,l>=i.length&&l>=u)continue;let h=d._zod.run({value:i[l],issues:[]},r);h instanceof Promise?a.push(h.then(f=>ba(f,n,l))):ba(h,n,l)}if(t.rest){let d=i.slice(o.length);for(let h of d){l++;let f=t.rest._zod.run({value:h,issues:[]},r);f instanceof Promise?a.push(f.then(p=>ba(p,n,l))):ba(f,n,l)}}return a.length?Promise.all(a).then(()=>n):n}});function ba(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(ba,"handleTupleResult");var dn=y("$ZodRecord",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!Nt(r))return o.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),o;let i=[],a=t.keyType._zod.values;if(a){o.value={};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){c.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},n);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&o.issues.push(...Ye(l,h.issues)),o.value[l]=h.value})):(d.issues.length&&o.issues.push(...Ye(l,d.issues)),o.value[l]=d.value)}let u;for(let l in r)c.has(l)||(u=u??[],u.push(l));u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{o.value={};for(let c of Reflect.ownKeys(r)){if(c==="__proto__")continue;let u=t.keyType._zod.run({value:c,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&xa.test(c)&&u.issues.length){let h=t.keyType._zod.run({value:Number(c),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(u=h)}if(u.issues.length){t.mode==="loose"?o.value[c]=r[c]:o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>Ze(h,n,xe())),input:c,path:[c],inst:e});continue}let d=t.valueType._zod.run({value:r[c],issues:[]},n);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&o.issues.push(...Ye(c,h.issues)),o.value[u.value]=h.value})):(d.issues.length&&o.issues.push(...Ye(c,d.issues)),o.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>o):o}}),ts=y("$ZodMap",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),o;let i=[];o.value=new Map;for(let[a,c]of r){let u=t.keyType._zod.run({value:a,issues:[]},n),l=t.valueType._zod.run({value:c,issues:[]},n);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,h])=>{sh(d,h,o,a,r,e,n)})):sh(u,l,o,a,r,e,n)}return i.length?Promise.all(i).then(()=>o):o}});function sh(e,t,o,n,r,i,a){e.issues.length&&(Ho.has(typeof n)?o.issues.push(...Ye(n,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(c=>Ze(c,a,xe()))})),t.issues.length&&(Ho.has(typeof n)?o.issues.push(...Ye(n,t.issues)):o.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:n,issues:t.issues.map(c=>Ze(c,a,xe()))})),o.value.set(e.value,t.value)}s(sh,"handleMapResult");var rs=y("$ZodSet",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Set))return o.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),o;let i=[];o.value=new Set;for(let a of r){let c=t.valueType._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>ch(u,o))):ch(c,o)}return i.length?Promise.all(i).then(()=>o):o}});function ch(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(ch,"handleSetResult");var pn=y("$ZodEnum",(e,t)=>{q.init(e,t);let o=Bo(t.entries),n=new Set(o);e._zod.values=n,e._zod.pattern=new RegExp(`^(${o.filter(r=>Ho.has(typeof r)).map(r=>typeof r=="string"?ot(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:o,input:a,inst:e}),r}}),mn=y("$ZodLiteral",(e,t)=>{if(q.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(t.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?ot(n):n?ot(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return o.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),os=y("$ZodFile",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return r instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),o}}),fn=y("$ZodTransform",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ct(e.constructor.name);let r=t.transform(o.value,o);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(o.value=a,o));if(r instanceof Promise)throw new ct;return o.value=r,o}});function uh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(uh,"handleOptionalResult");var Zr=y("$ZodOptional",(e,t)=>{q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)})?$`):void 0}),e._zod.parse=(o,n)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>uh(i,o.value)):uh(r,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,n)}}),ns=y("$ZodExactOptional",(e,t)=>{Zr.init(e,t),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(o,n)=>t.innerType._zod.run(o,n)}),gn=y("$ZodNullable",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)}|null)$`):void 0}),Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,n)=>o.value===null?o:t.innerType._zod.run(o,n)}),is=y("$ZodDefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);if(o.value===void 0)return o.value=t.defaultValue,o;let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>lh(i,t)):lh(r,t)}});function lh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(lh,"handleDefaultResult");var as=y("$ZodPrefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>(n.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,n))}),ss=y("$ZodNonOptional",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>{let o=t.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(o,n)=>{let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>dh(i,e)):dh(r,e)}});function dh(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(dh,"handleNonOptionalResult");var cs=y("$ZodSuccess",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ct("ZodSuccess");let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.issues.length===0,o)):(o.value=r.issues.length===0,o)}}),us=y("$ZodCatch",(e,t)=>{q.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.value,i.issues.length&&(o.value=t.catchValue({...o,error:{issues:i.issues.map(a=>Ze(a,n,xe()))},input:o.value}),o.issues=[]),o)):(o.value=r.value,r.issues.length&&(o.value=t.catchValue({...o,error:{issues:r.issues.map(i=>Ze(i,n,xe()))},input:o.value}),o.issues=[]),o)}}),ls=y("$ZodNaN",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),hn=y("$ZodPipe",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>Aa(a,t.in,n)):Aa(i,t.in,n)}let r=t.in._zod.run(o,n);return r instanceof Promise?r.then(i=>Aa(i,t.out,n)):Aa(r,t.out,n)}});function Aa(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}s(Aa,"handlePipeResult");var qr=y("$ZodCodec",(e,t)=>{q.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(o,n);return i instanceof Promise?i.then(a=>Ea(a,t,n)):Ea(i,t,n)}else{let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>Ea(a,t,n)):Ea(i,t,n)}}});function Ea(e,t,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Ta(e,i,t.out,o)):Ta(e,r,t.out,o)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Ta(e,i,t.in,o)):Ta(e,r,t.in,o)}}s(Ea,"handleCodecAResult");function Ta(e,t,o,n){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:t,issues:e.issues},n)}s(Ta,"handleCodecTxResult");var ds=y("$ZodReadonly",(e,t)=>{q.init(e,t),Q(e._zod,"propValues",()=>t.innerType._zod.propValues),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"optin",()=>t.innerType?._zod?.optin),Q(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(ph):ph(r)}});function ph(e){return e.value=Object.freeze(e.value),e}s(ph,"handleReadonlyResult");var ps=y("$ZodTemplateLiteral",(e,t)=>{q.init(e,t);let o=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;o.push(r.slice(i,a))}else if(n===null||ol.has(typeof n))o.push(ot(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),ms=y("$ZodFunction",(e,t)=>(q.init(e,t),e._def=t,e._zod.def=t,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...n){let r=e._def.input?nr(e._def.input,n):n,i=Reflect.apply(o,this,r);return e._def.output?nr(e._def.output,i):i}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await ir(e._def.input,n):n,i=await Reflect.apply(o,this,r);return e._def.output?await ir(e._def.output,i):i}},e._zod.parse=(o,n)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let n=e.constructor;return Array.isArray(o[0])?new n({type:"function",input:new ln({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new n({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:o})},e)),fs=y("$ZodPromise",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>Promise.resolve(o.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),gs=y("$ZodLazy",(e,t)=>{q.init(e,t),Q(e._zod,"innerType",()=>t.getter()),Q(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Q(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Q(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Q(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,n)=>e._zod.innerType._zod.run(o,n)}),yn=y("$ZodCustom",(e,t)=>{me.init(e,t),q.init(e,t),e._zod.parse=(o,n)=>o,e._zod.check=o=>{let n=o.value,r=t.fn(n);if(r instanceof Promise)return r.then(i=>mh(i,o,n,e));mh(r,o,n,e)}});function mh(e,t,o,n){if(!e){let r={code:"custom",input:o,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(Cr(r))}}s(mh,"handleRefineResult");var Wr={};Xe(Wr,{ar:()=>od,az:()=>nd,be:()=>id,bg:()=>ad,ca:()=>sd,cs:()=>cd,da:()=>ud,de:()=>ld,en:()=>vn,eo:()=>dd,es:()=>pd,fa:()=>md,fi:()=>fd,fr:()=>gd,frCA:()=>hd,he:()=>yd,hu:()=>vd,hy:()=>xd,id:()=>_d,is:()=>Pd,it:()=>bd,ja:()=>Ad,ka:()=>Ed,kh:()=>Td,km:()=>xn,ko:()=>Id,lt:()=>Sd,mk:()=>wd,ms:()=>Od,nl:()=>kd,no:()=>Rd,ota:()=>$d,pl:()=>Dd,ps:()=>Cd,pt:()=>zd,ru:()=>Nd,sl:()=>Md,sv:()=>Ud,ta:()=>Ld,th:()=>Fd,tr:()=>jd,ua:()=>Bd,uk:()=>Pn,ur:()=>Vd,uz:()=>Hd,vi:()=>Zd,yo:()=>Wd,zhCN:()=>qd,zhTW:()=>Gd});var SI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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}`:`${o[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":""}: ${T(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 od(){return{localeError:SI()}}s(od,"default");var wI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${c}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${$(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 nd(){return{localeError:wI()}}s(nd,"default");function vh(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(vh,"getBelarusianPlural");var OI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=vh(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.maximum.toString()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=vh(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.minimum.toString()} ${u}`}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 ${o[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"}: ${T(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 id(){return{localeError:OI()}}s(id,"default");var kI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${o[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":""}: ${T(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 ad(){return{localeError:kI()}}s(ad,"default");var RI=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${c}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${$(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${T(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 sd(){return{localeError:RI()}}s(sd,"default");var $I=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${c}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${$(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.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 ${o[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: ${T(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 cd(){return{localeError:$I()}}s(cd,"default");var CI=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${c}`:`Ugyldigt input: forventede ${i}, fik ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${$(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For lille: forventede ${c} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} 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 ${o[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"}: ${T(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 ud(){return{localeError:CI()}}s(ud,"default");var DI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${c}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${$(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.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: ${o[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"}: ${T(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 ld(){return{localeError:DI()}}s(ld,"default");var zI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return`Invalid input: expected ${i}, received ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${$(r.values[0])}`:`Invalid option: expected one of ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 vn(){return{localeError:zI()}}s(vn,"default");var NI=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${c}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${$(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 dd(){return{localeError:NI()}}s(dd,"default");var MI=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${$(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} 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 ${o[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":""}: ${T(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function pd(){return{localeError:MI()}}s(pd,"default");var UI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${$(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 ${T(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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: ${T(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 md(){return{localeError:UI()}}s(md,"default");var LI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${c}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${$(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 fd(){return{localeError:LI()}}s(fd,"default");var FI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${c} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${$(r.values[0])} attendu`:`Option invalide : une valeur parmi ${T(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${T(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 gd(){return{localeError:FI()}}s(gd,"default");var jI=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${c}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${$(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${T(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 hd(){return{localeError:jI()}}s(hd,"default");var BI=s(()=>{let e={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"}},t={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"}},o=s(l=>l?e[l]:void 0,"typeEntry"),n=s(l=>{let d=o(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${n(l)}`,"withDefinite"),i=s(l=>(o(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),c={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"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,h=u[d??""]??n(d),f=z(l.input),p=u[f]??e[f]?.label??f;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${$(l.values[0])}`;let d=l.values.map(p=>$(p));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let h=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${h}`}case"too_big":{let d=a(l.origin),h=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${h} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${h} ${p} ${f}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${h} ${p} ${f}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),h=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let E=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let b=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${h} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${h} ${p} ${f}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${h} ${p} ${f}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let h=c[d.format],f=h?.label??d.format,v=(h?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${v}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${T(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function yd(){return{localeError:BI()}}s(yd,"default");var VI=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${$(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 vd(){return{localeError:VI()}}s(vd,"default");function xh(e,t,o){return Math.abs(e)===1?t:o}s(xh,"getArmenianPlural");function Gr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(t.includes(o)?"\u0576":"\u0568")}s(Gr,"withDefiniteArticle");var HI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=xh(c,a.unit.one,a.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 ${Gr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${u}`}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 ${Gr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=xh(c,a.unit.one,a.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 ${Gr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${u}`}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 ${Gr(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 ${o[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":""}. ${T(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Gr(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 ${Gr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function xd(){return{localeError:HI()}}s(xd,"default");var ZI=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${$(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${T(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 _d(){return{localeError:ZI()}}s(_d,"default");var qI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${$(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 Pd(){return{localeError:qI()}}s(Pd,"default");var GI=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${c}`:`Input non valido: atteso ${i}, ricevuto ${c}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${$(r.values[0])}`:`Opzione non valida: atteso uno tra ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 bd(){return{localeError:GI()}}s(bd,"default");var WI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${$(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${T(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",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.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",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.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${o[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":""}: ${T(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 Ad(){return{localeError:WI()}}s(Ad,"default");var KI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 Ed(){return{localeError:KI()}}s(Ed,"default");var JI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.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 ${o[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 ${T(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 xn(){return{localeError:JI()}}s(xn,"default");function Td(){return xn()}s(Td,"default");var XI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${$(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${T(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}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 ${o[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: ${T(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 Id(){return{localeError:XI()}}s(Id,"default");var _n=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function _h(e){let t=Math.abs(e),o=t%10,n=t%100;return n>=11&&n<=19||o===0?"many":o===1?"one":"few"}s(_h,"getUnitTypeFromNumber");var YI=s(()=>{let e={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 t(r,i,a,c){let u=e[r]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[c][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${$(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${T(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=n[r.origin]??r.origin,a=t(r.origin,_h(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=n[r.origin]??r.origin,a=t(r.origin,_h(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.minimum.toString()} ${a?.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 ${o[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"}: ${T(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=n[r.origin]??r.origin;return`${_n(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Sd(){return{localeError:YI()}}s(Sd,"default");var QI=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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"}: ${T(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 wd(){return{localeError:QI()}}s(wd,"default");var eS=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${c}`:`Input tidak sah: dijangka ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${$(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${T(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 Od(){return{localeError:eS()}}s(Od,"default");var tS=s(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${i}, ontving ${c}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${$(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: 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: ${o[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":""}: ${T(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 kd(){return{localeError:tS()}}s(kd,"default");var rS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${c}`:`Ugyldig input: forventet ${i}, fikk ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${$(r.values[0])}`:`Ugyldig valg: forventet en av ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 Rd(){return{localeError:rS()}}s(Rd,"default");var oS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${$(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 $d(){return{localeError:oS()}}s($d,"default");var nS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${$(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${T(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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"}: ${T(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 Cd(){return{localeError:nS()}}s(Cd,"default");var iS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${c}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${$(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.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) ${o[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":""}: ${T(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 Dd(){return{localeError:iS()}}s(Dd,"default");var aS=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${$(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${T(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 zd(){return{localeError:aS()}}s(zd,"default");function Ph(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(Ph,"getRussianPlural");var sS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=Ph(c,a.unit.one,a.unit.few,a.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()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=Ph(c,a.unit.one,a.unit.few,a.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()} ${u}`}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 ${o[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":""}: ${T(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 Nd(){return{localeError:sS()}}s(Nd,"default");var cS=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${c}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${$(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 Md(){return{localeError:cS()}}s(Md,"default");var uS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${c}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${$(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.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) ${o[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"}: ${T(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 Ud(){return{localeError:uS()}}s(Ud,"default");var lS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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":""}: ${T(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 Ld(){return{localeError:lS()}}s(Ld,"default");var dS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.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: ${o[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: ${T(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 Fd(){return{localeError:dS()}}s(Fd,"default");var pS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${$(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 jd(){return{localeError:pS()}}s(jd,"default");var mS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 Pn(){return{localeError:mS()}}s(Pn,"default");function Bd(){return Pn()}s(Bd,"default");var fS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${$(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${T(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?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 Vd(){return{localeError:fS()}}s(Vd,"default");var gS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${c}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${$(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.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 ${o[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":""}: ${T(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 Hd(){return{localeError:gS()}}s(Hd,"default");var hS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${$(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${T(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 Zd(){return{localeError:hS()}}s(Zd,"default");var yS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${$(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.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${o[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): ${T(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 qd(){return{localeError:yS()}}s(qd,"default");var vS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${$(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.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 ${o[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${T(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 Gd(){return{localeError:vS()}}s(Gd,"default");var xS=s(()=>{let e={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 t(r){return e[r]??null}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${$(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.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?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.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: ${o[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: ${T(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 Wd(){return{localeError:xS()}}s(Wd,"default");var bh,ys=Symbol("ZodOutput"),vs=Symbol("ZodInput"),hs=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){let n=o[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){let o=t._zod.parent;if(o){let n={...this.get(o)??{}};delete n.id;let r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function bn(){return new hs}s(bn,"registry");(bh=globalThis).__zod_globalRegistry??(bh.__zod_globalRegistry=bn());var Ce=globalThis.__zod_globalRegistry;function An(e,t){return new e({type:"string",...k(t)})}s(An,"_string");function En(e,t){return new e({type:"string",coerce:!0,...k(t)})}s(En,"_coercedString");function Tn(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}s(Tn,"_email");function Kr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}s(Kr,"_guid");function In(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}s(In,"_uuid");function Sn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}s(Sn,"_uuidv4");function wn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}s(wn,"_uuidv6");function On(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}s(On,"_uuidv7");function ur(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}s(ur,"_url");function kn(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}s(kn,"_emoji");function Rn(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}s(Rn,"_nanoid");function $n(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}s($n,"_cuid");function Cn(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}s(Cn,"_cuid2");function Dn(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}s(Dn,"_ulid");function zn(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}s(zn,"_xid");function Nn(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}s(Nn,"_ksuid");function Mn(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}s(Mn,"_ipv4");function Un(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}s(Un,"_ipv6");function xs(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(t)})}s(xs,"_mac");function Ln(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}s(Ln,"_cidrv4");function Fn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}s(Fn,"_cidrv6");function jn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}s(jn,"_base64");function Bn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}s(Bn,"_base64url");function Vn(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}s(Vn,"_e164");function Hn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}s(Hn,"_jwt");var _s={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Zn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}s(Zn,"_isoDateTime");function qn(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}s(qn,"_isoDate");function Gn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}s(Gn,"_isoTime");function Wn(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}s(Wn,"_isoDuration");function Kn(e,t){return new e({type:"number",checks:[],...k(t)})}s(Kn,"_number");function Jn(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}s(Jn,"_coercedNumber");function Xn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}s(Xn,"_int");function Ps(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}s(Ps,"_float32");function bs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}s(bs,"_float64");function As(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}s(As,"_int32");function Es(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}s(Es,"_uint32");function Yn(e,t){return new e({type:"boolean",...k(t)})}s(Yn,"_boolean");function Qn(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}s(Qn,"_coercedBoolean");function Ts(e,t){return new e({type:"bigint",...k(t)})}s(Ts,"_bigint");function ei(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}s(ei,"_coercedBigint");function Is(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}s(Is,"_int64");function Ss(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}s(Ss,"_uint64");function ws(e,t){return new e({type:"symbol",...k(t)})}s(ws,"_symbol");function Os(e,t){return new e({type:"undefined",...k(t)})}s(Os,"_undefined");function ks(e,t){return new e({type:"null",...k(t)})}s(ks,"_null");function ti(e){return new e({type:"any"})}s(ti,"_any");function ri(e){return new e({type:"unknown"})}s(ri,"_unknown");function Rs(e,t){return new e({type:"never",...k(t)})}s(Rs,"_never");function oi(e,t){return new e({type:"void",...k(t)})}s(oi,"_void");function $s(e,t){return new e({type:"date",...k(t)})}s($s,"_date");function ni(e,t){return new e({type:"date",coerce:!0,...k(t)})}s(ni,"_coercedDate");function Cs(e,t){return new e({type:"nan",...k(t)})}s(Cs,"_nan");function ut(e,t){return new _a({check:"less_than",...k(t),value:e,inclusive:!1})}s(ut,"_lt");function je(e,t){return new _a({check:"less_than",...k(t),value:e,inclusive:!0})}s(je,"_lte");function lt(e,t){return new Pa({check:"greater_than",...k(t),value:e,inclusive:!1})}s(lt,"_gt");function Oe(e,t){return new Pa({check:"greater_than",...k(t),value:e,inclusive:!0})}s(Oe,"_gte");function ii(e){return lt(0,e)}s(ii,"_positive");function ai(e){return ut(0,e)}s(ai,"_negative");function si(e){return je(0,e)}s(si,"_nonpositive");function ci(e){return Oe(0,e)}s(ci,"_nonnegative");function Pt(e,t){return new zl({check:"multiple_of",...k(t),value:e})}s(Pt,"_multipleOf");function bt(e,t){return new Ul({check:"max_size",...k(t),maximum:e})}s(bt,"_maxSize");function dt(e,t){return new Ll({check:"min_size",...k(t),minimum:e})}s(dt,"_minSize");function Ut(e,t){return new Fl({check:"size_equals",...k(t),size:e})}s(Ut,"_size");function Lt(e,t){return new jl({check:"max_length",...k(t),maximum:e})}s(Lt,"_maxLength");function Ie(e,t){return new Bl({check:"min_length",...k(t),minimum:e})}s(Ie,"_minLength");function Ft(e,t){return new Vl({check:"length_equals",...k(t),length:e})}s(Ft,"_length");function Ne(e,t){return new Hl({check:"string_format",format:"regex",...k(t),pattern:e})}s(Ne,"_regex");function lr(e){return new Zl({check:"string_format",format:"lowercase",...k(e)})}s(lr,"_lowercase");function dr(e){return new ql({check:"string_format",format:"uppercase",...k(e)})}s(dr,"_uppercase");function pr(e,t){return new Gl({check:"string_format",format:"includes",...k(t),includes:e})}s(pr,"_includes");function mr(e,t){return new Wl({check:"string_format",format:"starts_with",...k(t),prefix:e})}s(mr,"_startsWith");function fr(e,t){return new Kl({check:"string_format",format:"ends_with",...k(t),suffix:e})}s(fr,"_endsWith");function ui(e,t,o){return new Jl({check:"property",property:e,schema:t,...k(o)})}s(ui,"_property");function gr(e,t){return new Xl({check:"mime_type",mime:e,...k(t)})}s(gr,"_mime");function nt(e){return new Yl({check:"overwrite",tx:e})}s(nt,"_overwrite");function hr(e){return nt(t=>t.normalize(e))}s(hr,"_normalize");function yr(){return nt(e=>e.trim())}s(yr,"_trim");function vr(){return nt(e=>e.toLowerCase())}s(vr,"_toLowerCase");function xr(){return nt(e=>e.toUpperCase())}s(xr,"_toUpperCase");function Jr(){return nt(e=>tl(e))}s(Jr,"_slugify");function Kd(e,t,o){return new e({type:"array",element:t,...k(o)})}s(Kd,"_array");function PS(e,t,o){return new e({type:"union",options:t,...k(o)})}s(PS,"_union");function bS(e,t,o){return new e({type:"union",options:t,inclusive:!1,...k(o)})}s(bS,"_xor");function AS(e,t,o,n){return new e({type:"union",options:o,discriminator:t,...k(n)})}s(AS,"_discriminatedUnion");function ES(e,t,o){return new e({type:"intersection",left:t,right:o})}s(ES,"_intersection");function TS(e,t,o,n){let r=o instanceof q,i=r?n:o,a=r?o:null;return new e({type:"tuple",items:t,rest:a,...k(i)})}s(TS,"_tuple");function IS(e,t,o,n){return new e({type:"record",keyType:t,valueType:o,...k(n)})}s(IS,"_record");function SS(e,t,o,n){return new e({type:"map",keyType:t,valueType:o,...k(n)})}s(SS,"_map");function wS(e,t,o){return new e({type:"set",valueType:t,...k(o)})}s(wS,"_set");function OS(e,t,o){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...k(o)})}s(OS,"_enum");function kS(e,t,o){return new e({type:"enum",entries:t,...k(o)})}s(kS,"_nativeEnum");function RS(e,t,o){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(o)})}s(RS,"_literal");function Ds(e,t){return new e({type:"file",...k(t)})}s(Ds,"_file");function $S(e,t){return new e({type:"transform",transform:t})}s($S,"_transform");function CS(e,t){return new e({type:"optional",innerType:t})}s(CS,"_optional");function DS(e,t){return new e({type:"nullable",innerType:t})}s(DS,"_nullable");function zS(e,t,o){return new e({type:"default",innerType:t,get defaultValue(){return typeof o=="function"?o():sa(o)}})}s(zS,"_default");function NS(e,t,o){return new e({type:"nonoptional",innerType:t,...k(o)})}s(NS,"_nonoptional");function MS(e,t){return new e({type:"success",innerType:t})}s(MS,"_success");function US(e,t,o){return new e({type:"catch",innerType:t,catchValue:typeof o=="function"?o:()=>o})}s(US,"_catch");function LS(e,t,o){return new e({type:"pipe",in:t,out:o})}s(LS,"_pipe");function FS(e,t){return new e({type:"readonly",innerType:t})}s(FS,"_readonly");function jS(e,t,o){return new e({type:"template_literal",parts:t,...k(o)})}s(jS,"_templateLiteral");function BS(e,t){return new e({type:"lazy",getter:t})}s(BS,"_lazy");function VS(e,t){return new e({type:"promise",innerType:t})}s(VS,"_promise");function li(e,t,o){let n=k(o);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}s(li,"_custom");function di(e,t,o){return new e({type:"custom",check:"custom",fn:t,...k(o)})}s(di,"_refine");function zs(e){let t=Ah(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Cr(n,o.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),o.issues.push(Cr(r))}},e(o.value,o)));return t}s(zs,"_superRefine");function Ah(e,t){let o=new me({check:"custom",...k(t)});return o._zod.check=e,o}s(Ah,"_check");function Ns(e){let t=new me({check:"describe"});return t._zod.onattach=[o=>{let n=Ce.get(o)??{};Ce.add(o,{...n,description:e})}],t._zod.check=()=>{},t}s(Ns,"describe");function Ms(e){let t=new me({check:"meta"});return t._zod.onattach=[o=>{let n=Ce.get(o)??{};Ce.add(o,{...n,...e})}],t._zod.check=()=>{},t}s(Ms,"meta");function Us(e,t){let o=k(t),n=o.truthy??["true","1","yes","on","y","enabled"],r=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(n=n.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(n),a=new Set(r),c=e.Codec??qr,u=e.Boolean??sr,l=e.String??_t,d=new l({type:"string",error:o.error}),h=new u({type:"boolean",error:o.error}),f=new c({type:"pipe",in:d,out:h,transform:s(((p,v)=>{let b=p;return o.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:v.value,inst:f,continue:!1}),{})}),"transform"),reverseTransform:s(((p,v)=>p===!0?n[0]||"true":r[0]||"false"),"reverseTransform"),error:o.error});return f}s(Us,"_stringbool");function _r(e,t,o,n={}){let r=k(n),i={...k(n),check:"string_format",type:"string",format:t,fn:typeof o=="function"?o:c=>o.test(c),...r};return o instanceof RegExp&&(i.pattern=o),new e(i)}s(_r,"_stringFormat");function jt(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ce,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}s(jt,"initializeContext");function pe(e,t,o={path:[],schemaPath:[]}){var n;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,o.schemaPath.includes(e)&&(i.cycle=o.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let d={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,f,d)}let h=e._zod.parent;h&&(a.ref||(a.ref=h),pe(h,t,d),t.seen.get(h).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&Be(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(pe,"process");function Bt(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let u=n.get(c);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(c,a[0])}}let r=s(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let h=e.external.registry.get(a[0])?.id,f=e.external.uri??(v=>v);if(h)return{ref:f(h)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${f("__shared")}#/${c}/${p}`}}if(a[1]===o)return{ref:"#"};let l=`#/${c}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:u,defId:l}=r(a);c.def={...c.schema},l&&(c.defId=l);let d=c.schema;for(let h in d)delete d[h];d.$ref=u},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
43
43
 
44
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(c.cycle){i(a);continue}if(c.count>1&&e.reused==="ref"){i(a);continue}}}s(jt,"extractDefs");function Bt(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s(a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){n(d);let f=e.seen.get(d),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(p)):Object.assign(u,p),Object.assign(u,l),a._zod.parent===d)for(let b in u)b==="$ref"||b==="allOf"||b in l||delete u[b];if(p.$ref&&f.def)for(let b in u)b==="$ref"||b==="allOf"||b in f.def&&JSON.stringify(u[b])===JSON.stringify(f.def[b])&&delete u[b]}let g=a._zod.parent;if(g&&g!==d){n(g);let f=e.seen.get(g);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let p in u)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(u[p])===JSON.stringify(f.def[p])&&delete u[p]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())n(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,o.def??o.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xr(t,"input",e.processors),output:Xr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Bt,"finalize");function je(e,t){let o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return je(n.element,o);if(n.type==="set")return je(n.valueType,o);if(n.type==="lazy")return je(n.getter(),o);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return je(n.innerType,o);if(n.type==="intersection")return je(n.left,o)||je(n.right,o);if(n.type==="record"||n.type==="map")return je(n.keyType,o)||je(n.valueType,o);if(n.type==="pipe")return je(n.in,o)||je(n.out,o);if(n.type==="object"){for(let r in n.shape)if(je(n.shape[r],o))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(je(r,o))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(je(r,o))return!0;return!!(n.rest&&je(n.rest,o))}return!1}s(je,"isTransforming");var Kd=s((e,t={})=>o=>{let n=Ft({...o,processors:t});return pe(e,n),jt(n,e),Bt(n,e)},"createToJSONSchemaMethod"),Xr=s((e,t,o={})=>n=>{let{libraryOptions:r,target:i}=n??{},a=Ft({...r??{},target:i,io:t,processors:o});return pe(e,a),jt(a,e),Bt(a,e)},"createStandardJSONSchemaMethod");var BS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Jd=s((e,t,o,n)=>{let r=o;r.type="string";let{minimum:i,maximum:a,format:c,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),c&&(r.format=BS[c]??c,r.format===""&&delete r.format,c==="time"&&delete r.format),l&&(r.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),Xd=s((e,t,o,n)=>{let r=o,{minimum:i,maximum:a,format:c,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof c=="string"&&c.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof i=="number"&&(r.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},"numberProcessor"),Yd=s((e,t,o,n)=>{o.type="boolean"},"booleanProcessor"),Qd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),ep=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),tp=s((e,t,o,n)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},"nullProcessor"),rp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),op=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),np=s((e,t,o,n)=>{o.not={}},"neverProcessor"),ip=s((e,t,o,n)=>{},"anyProcessor"),ap=s((e,t,o,n)=>{},"unknownProcessor"),sp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),cp=s((e,t,o,n)=>{let r=e._zod.def,i=Bo(r.entries);i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),o.enum=i},"enumProcessor"),up=s((e,t,o,n)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];o.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[a]:o.const=a}else i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),i.every(a=>typeof a=="boolean")&&(o.type="boolean"),i.every(a=>a===null)&&(o.type="null"),o.enum=i},"literalProcessor"),lp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),dp=s((e,t,o,n)=>{let r=o,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),pp=s((e,t,o,n)=>{let r=o,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(i.minLength=a),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),mp=s((e,t,o,n)=>{o.type="boolean"},"successProcessor"),fp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),hp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),gp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),yp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),vp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),xp=s((e,t,o,n)=>{let r=o,i=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof c=="number"&&(r.maxItems=c),r.type="array",r.items=pe(i.element,t,{...n,path:[...n.path,"items"]})},"arrayProcessor"),_p=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=pe(a[l],t,{...n,path:[...n.path,"properties",l]});let c=new Set(Object.keys(a)),u=new Set([...c].filter(l=>{let d=i.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(r.required=Array.from(u)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=pe(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),Fs=s((e,t,o,n)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((c,u)=>pe(c,t,{...n,path:[...n.path,i?"oneOf":"anyOf",u]}));i?o.oneOf=a:o.anyOf=a},"unionProcessor"),Pp=s((e,t,o,n)=>{let r=e._zod.def,i=pe(r.left,t,{...n,path:[...n.path,"allOf",0]}),a=pe(r.right,t,{...n,path:[...n.path,"allOf",1]}),c=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),u=[...c(i)?i.allOf:[i],...c(a)?a.allOf:[a]];o.allOf=u},"intersectionProcessor"),bp=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((f,p)=>pe(f,t,{...n,path:[...n.path,a,p]})),l=i.rest?pe(i.rest,t,{...n,path:[...n.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:u},l&&r.items.anyOf.push(l),r.minItems=u.length,l||(r.maxItems=u.length)):(r.items=u,l&&(r.additionalItems=l));let{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof g=="number"&&(r.maxItems=g)},"tupleProcessor"),Ap=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=pe(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});r.patternProperties={};for(let g of u)r.patternProperties[g.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=pe(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=pe(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(g=>typeof g=="string"||typeof g=="number");d.length>0&&(r.required=d)}},"recordProcessor"),Ep=s((e,t,o,n)=>{let r=e._zod.def,i=pe(r.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,o.nullable=!0):o.anyOf=[i,{type:"null"}]},"nullableProcessor"),Tp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),Ip=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),Sp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),wp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=a},"catchProcessor"),Op=s((e,t,o,n)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;pe(i,t,n);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),kp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.readOnly=!0},"readonlyProcessor"),$p=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),js=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),Rp=s((e,t,o,n)=>{let r=e._zod.innerType;pe(r,t,n);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ls={string:Jd,number:Xd,boolean:Yd,bigint:Qd,symbol:ep,null:tp,undefined:rp,void:op,never:np,any:ip,unknown:ap,date:sp,enum:cp,literal:up,nan:lp,template_literal:dp,file:pp,success:mp,custom:fp,function:hp,transform:gp,map:yp,set:vp,array:xp,object:_p,union:Fs,intersection:Pp,tuple:bp,record:Ap,nullable:Ep,nonoptional:Tp,default:Ip,prefault:Sp,catch:wp,pipe:Op,readonly:kp,promise:$p,optional:js,lazy:Rp};function pi(e,t){if("_idmap"in e){let n=e,r=Ft({...t,processors:Ls}),i={};for(let u of n._idmap.entries()){let[l,d]=u;pe(d,r)}let a={},c={registry:n,uri:t?.uri,defs:i};r.external=c;for(let u of n._idmap.entries()){let[l,d]=u;jt(r,d),a[l]=Bt(r,d)}if(Object.keys(i).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let o=Ft({...t,processors:Ls});return pe(e,o),jt(o,e),Bt(o,e)}s(pi,"toJSONSchema");var Bs=class{static{s(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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let o=t?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=Ft({processors:Ls,target:o,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,o={path:[],schemaPath:[]}){return pe(t,this.ctx,o)}emit(t,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),jt(this.ctx,t);let n=Bt(this.ctx,t),{"~standard":r,...i}=n;return i}};var Eg={};var we=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");q.init(e,t),e.def=t,e.type=t.type,e.parse=(o,n)=>or(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>Lr(e,o,n),e.parseAsync=async(o,n)=>nr(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>jr(e,o,n),e.check=(...o)=>e.clone({...t,checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(o,n)=>$e(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.apply=o=>o(e)}),Vs=y("ZodMiniString",(e,t)=>{_t.init(e,t),we.init(e,t)});function m(e){return An(Vs,e)}s(m,"string");var Yr=y("ZodMiniStringFormat",(e,t)=>{de.init(e,t),Vs.init(e,t)});var ZS=y("ZodMiniURL",(e,t)=>{Xo.init(e,t),Yr.init(e,t)});function Tg(e){return cr(ZS,e)}s(Tg,"url");var Hs=y("ZodMiniNumber",(e,t)=>{Vr.init(e,t),we.init(e,t)});function Ce(e){return Kn(Hs,e)}s(Ce,"number");var qS=y("ZodMiniNumberFormat",(e,t)=>{rn.init(e,t),Hs.init(e,t)});function Ig(e){return Xn(qS,e)}s(Ig,"int");var Cp=y("ZodMiniBoolean",(e,t)=>{ar.init(e,t),we.init(e,t)});function se(e){return Yn(Cp,e)}s(se,"boolean");var Sg=y("ZodMiniBigInt",(e,t)=>{Hr.init(e,t),we.init(e,t)});var GS=y("ZodMiniAny",(e,t)=>{on.init(e,t),we.init(e,t)});function mi(){return ti(GS)}s(mi,"any");var WS=y("ZodMiniUnknown",(e,t)=>{nn.init(e,t),we.init(e,t)});function W(){return ri(WS)}s(W,"unknown");var KS=y("ZodMiniVoid",(e,t)=>{an.init(e,t),we.init(e,t)});function wg(e){return oi(KS,e)}s(wg,"_void");var Og=y("ZodMiniDate",(e,t)=>{sn.init(e,t),we.init(e,t)});var JS=y("ZodMiniArray",(e,t)=>{cn.init(e,t),we.init(e,t)});function Z(e,t){return new JS({type:"array",element:e,...k(t)})}s(Z,"array");var XS=y("ZodMiniObject",(e,t)=>{Ya.init(e,t),we.init(e,t),Q(e,"shape",()=>t.shape)});function P(e,t){let o={type:"object",shape:e??{},...k(t)};return new XS(o)}s(P,"object");var YS=y("ZodMiniUnion",(e,t)=>{sr.init(e,t),we.init(e,t)});function ee(e,t){return new YS({type:"union",options:e,...k(t)})}s(ee,"union");var QS=y("ZodMiniDiscriminatedUnion",(e,t)=>{un.init(e,t),we.init(e,t)});function Vt(e,t,o){return new QS({type:"union",options:t,discriminator:e,...k(o)})}s(Vt,"discriminatedUnion");var ew=y("ZodMiniRecord",(e,t)=>{dn.init(e,t),we.init(e,t)});function K(e,t,o){return new ew({type:"record",keyType:e,valueType:t,...k(o)})}s(K,"record");var tw=y("ZodMiniEnum",(e,t)=>{pn.init(e,t),we.init(e,t),e.options=Object.values(t.entries)});function H(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new tw({type:"enum",entries:o,...k(t)})}s(H,"_enum");var rw=y("ZodMiniLiteral",(e,t)=>{mn.init(e,t),we.init(e,t)});function V(e,t){return new rw({type:"literal",values:Array.isArray(e)?e:[e],...k(t)})}s(V,"literal");var ow=y("ZodMiniTransform",(e,t)=>{fn.init(e,t),we.init(e,t)});function Ht(e){return new ow({type:"transform",transform:e})}s(Ht,"transform");var nw=y("ZodMiniOptional",(e,t)=>{Zr.init(e,t),we.init(e,t)});function E(e){return new nw({type:"optional",innerType:e})}s(E,"optional");var iw=y("ZodMiniNullable",(e,t)=>{hn.init(e,t),we.init(e,t)});function fi(e){return new iw({type:"nullable",innerType:e})}s(fi,"nullable");var aw=y("ZodMiniPipe",(e,t)=>{gn.init(e,t),we.init(e,t)});function Zt(e,t){return new aw({type:"pipe",in:e,out:t})}s(Zt,"pipe");var kg=y("ZodMiniCustom",(e,t)=>{yn.init(e,t),we.init(e,t)});function Zs(e,t){return li(kg,e??(()=>!0),t)}s(Zs,"custom");function Dp(e,t={}){return di(kg,e,t)}s(Dp,"refine");var qs={};Xe(qs,{ZodMiniISODate:()=>Np,ZodMiniISODateTime:()=>zp,ZodMiniISODuration:()=>Up,ZodMiniISOTime:()=>Mp,date:()=>cw,datetime:()=>sw,duration:()=>lw,time:()=>uw});var zp=y("ZodMiniISODateTime",(e,t)=>{Yo.init(e,t),Yr.init(e,t)});function sw(e){return Zn(zp,e)}s(sw,"datetime");var Np=y("ZodMiniISODate",(e,t)=>{Qo.init(e,t),Yr.init(e,t)});function cw(e){return qn(Np,e)}s(cw,"date");var Mp=y("ZodMiniISOTime",(e,t)=>{en.init(e,t),Yr.init(e,t)});function uw(e){return Gn(Mp,e)}s(uw,"time");var Up=y("ZodMiniISODuration",(e,t)=>{tn.init(e,t),Yr.init(e,t)});function lw(e){return Wn(Up,e)}s(lw,"duration");var hi={};Xe(hi,{bigint:()=>fw,boolean:()=>mw,date:()=>hw,number:()=>pw,string:()=>dw});function dw(e){return En(Vs,e)}s(dw,"string");function pw(e){return Jn(Hs,e)}s(pw,"number");function mw(e){return Qn(Cp,e)}s(mw,"boolean");function fw(e){return ei(Sg,e)}s(fw,"bigint");function hw(e){return ni(Og,e)}s(hw,"date");var Fp=P({retryOnFailure:P({defaultValue:E(se()),hide:E(se())}),continueOnFailure:P({defaultValue:E(se()),hide:E(se())})}),Lp=class{constructor(t,o,n,r,i,a,c,u,l,d,g,f,p){this.name=t;this.displayName=o;this.description=n;this.props=r;this.propertyGroups=i;this.run=a;this.test=c;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=g;this.aiMetadata=f;this.classification=p}static{s(this,"IAction")}},O=s(e=>new Lp(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ae=P({displayName:m(),description:E(m()),advanced:E(se()),width:E(H(["half","full"])),icon:E(m()),placeholder:E(m())}),X=s((e,t)=>P({type:V(t),required:se(),defaultValue:E(mi())}),"TPropertyValue");var et=P({...ae.shape,...X(m(),"SHORT_TEXT").shape}),At=P({...ae.shape,...X(m(),"LONG_TEXT").shape});var Rg=P({label:m(),value:W(),description:E(m()),icon:E(m())}),Gs=P({disabled:E(se()),placeholder:E(m()),options:Z(Rg)});var yw=H(["cards"]),tt=P({...ae.shape,options:Gs,display:E(yw),...X(W(),"STATIC_DROPDOWN").shape}),Et=P({...ae.shape,options:Gs,...X(Z(W()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var jp=P({...ae.shape,...X(W(),"DROPDOWN").shape,refreshers:Z(m())}),gi=P({...ae.shape,...X(Z(W()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Z(m())});var Tt=P({...ae.shape,reveals:E(Z(m())),...X(se(),"CHECKBOX").shape});var It=P({...ae.shape,display:E(H(["stepper"])),min:E(Ce()),max:E(Ce()),step:E(Ce()),...X(Ce(),"NUMBER").shape});var yi=P({...ae.shape,streaming:E(se()),...X(W(),"FILE").shape});var vi=P({...ae.shape,...X(m(),"DATE_TIME").shape});var Cg=K(m(),ee([et,At,tt,gi,Et,Tt,It,yi,vi])),xi=P({...ae.shape,properties:Cg,...X(Z(W()),"ARRAY").shape});var Dg=H(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),zg=P({preset:E(Dg),after:E(m()),before:E(m())}),Bp=P({...ae.shape,display:E(H(["dropdown"])),...X(zg,"DATE_RANGE").shape});var _i=P({...ae.shape,...X(ee([K(m(),W())]),"JSON").shape});var Ng=ee([et,tt,_i,xi,Et]),vw=K(m(),Ng),Vp=P({refreshers:Z(m()),...ae.shape,...X(W(),"DYNAMIC").shape});var Ws=P({...ae.shape,...X(wg(),"MARKDOWN").shape});var Pi=(o=>(o.ARCHIVE="ARCHIVE",o.REGISTRY="REGISTRY",o))(Pi||{}),Qr=(o=>(o.CUSTOM="CUSTOM",o.OFFICIAL="OFFICIAL",o))(Qr||{}),_r=(A=>(A.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",A.COMMUNICATION="COMMUNICATION",A.COMMERCE="COMMERCE",A.CORE="CORE",A.UNIVERSAL_AI="UNIVERSAL_AI",A.FLOW_CONTROL="FLOW_CONTROL",A.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",A.ACCOUNTING="ACCOUNTING",A.PRODUCTIVITY="PRODUCTIVITY",A.CONTENT_AND_FILES="CONTENT_AND_FILES",A.DEVELOPER_TOOLS="DEVELOPER_TOOLS",A.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",A.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",A.HUMAN_RESOURCES="HUMAN_RESOURCES",A.PAYMENT_PROCESSING="PAYMENT_PROCESSING",A.MARKETING="MARKETING",A.SALES_AND_CRM="SALES_AND_CRM",A))(_r||{});var bi=(o=>(o.AUTHORIZATION_CODE="authorization_code",o.CLIENT_CREDENTIALS="client_credentials",o))(bi||{}),Hp="both_client_credentials_and_authorization_code";var mt=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(mt||{}),Ai=(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))(Ai||{}),xw=P({strategy:H(Ai),paramName:E(m())}),Ei=(o=>(o.SIMULATION="SIMULATION",o.TEST_FUNCTION="TEST_FUNCTION",o))(Ei||{});var Ks=(o=>(o.WEBSOCKET="WEBSOCKET",o.NONE="NONE",o))(Ks||{}),Mg=P({status:E(Ce()),body:E(W()),headers:E(K(m(),m()))}),Ug=P({type:V("DELAY"),resumeDateTime:m(),requestIdToReply:E(m()),handlerId:E(m()),streamStepProgress:E(H(Ks))}),Lg=P({type:V("WEBHOOK"),requestId:m(),requestIdToReply:E(m()),response:Mg,handlerId:E(m()),streamStepProgress:E(H(Ks))}),_w=ee([Ug,Lg]);var Pw=P({body:W(),rawBody:E(W()),headers:K(m(),m()),queryParams:K(m(),m())});function le(e){return e==null}s(le,"isNil");function Ti(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(Ti,"isEmpty");function St(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(St,"assertNotNullOrUndefined");async function qp(e){try{return{data:await e(),error:null}}catch(t){return{data:null,error:t}}}s(qp,"tryCatch");function Gp(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Gp,"tryCatchSync");var Wp=Le(require("crypto"),1);var bw=128,qt,eo,Aw=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!qt||qt.length<e?(qt=Buffer.allocUnsafe(e*bw),Wp.default.randomFillSync(qt),eo=0):eo+e>qt.length&&(Wp.default.randomFillSync(qt),eo=0)}catch(t){throw qt=void 0,t}eo+=e},"fillPool"),Ew=s(e=>(Aw(e|=0),qt.subarray(eo-e,eo)),"random"),Tw=s((e,t,o)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*n*t/e.length);return(i=t)=>{if(i<=0)return"";let a="";for(;;){let c=o(r),u=r;for(;u--;)if(a+=e[c[u]&n]||"",a.length===i)return a}}},"customRandom"),Fg=s((e,t=21)=>Tw(e,t,Ew),"customAlphabet");var Iw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",jg=21,XL=m().check(ze(new RegExp(`^[0-9a-zA-Z]{${jg}}$`))),Sw=Fg(Iw,jg);var Gt=Zt(Ht(e=>e instanceof Date?e.toISOString():e),m()),it={id:m(),created:Gt,updated:Gt},_e=s(e=>E(fi(e)),"Nullable");function Kp(e){return E(fi(H(e)))}s(Kp,"NullableEnum");var eF=Zt(Ht(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),E(se())),tF=E(qs.datetime({offset:!0}).check(Dp(e=>e.slice(0,4)!=="0000"))),Js=s(e=>Zt(Ht(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),E(Z(e))),"OptionalArrayFromQuery");var nF=K(m(),W());var Jp=(d=>(d.DUTCH="nl",d.ENGLISH="en",d.GERMAN="de",d.FRENCH="fr",d.SPANISH="es",d.JAPANESE="ja",d.CHINESE_SIMPLIFIED="zh",d.PORTUGUESE="pt",d.ARABIC="ar",d.CHINESE_TRADITIONAL="zh-TW",d))(Jp||{});var Wt=(A=>(A.OPENAI="openai",A.OPENROUTER="openrouter",A.ANTHROPIC="anthropic",A.AZURE="azure",A.GOOGLE="google",A.ACTIVEPIECES="activepieces",A.CLOUDFLARE_GATEWAY="cloudflare-gateway",A.CUSTOM="custom",A.BEDROCK="bedrock",A.VERTEX="vertex",A.MISTRAL="mistral",A.XAI="xai",A.DEEPSEEK="deepseek",A.ZAI="zai",A.QWEN="qwen",A.MINIMAX="minimax",A.MOONSHOT="moonshot",A))(Wt||{});var z={};Xe(z,{$brand:()=>Fo,$input:()=>vs,$output:()=>ys,NEVER:()=>na,TimePrecision:()=>_s,ZodAny:()=>_m,ZodArray:()=>Em,ZodBase64:()=>yc,ZodBase64URL:()=>vc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Pc,ZodBoolean:()=>ao,ZodCIDRv4:()=>hc,ZodCIDRv6:()=>gc,ZodCUID:()=>cc,ZodCUID2:()=>uc,ZodCatch:()=>qm,ZodCodec:()=>Oc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>Ri,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>xc,ZodEmail:()=>ic,ZodEmoji:()=>ac,ZodEnum:()=>ro,ZodError:()=>ww,ZodExactOptional:()=>Mm,ZodFile:()=>zm,ZodFirstPartyTypeKind:()=>nf,ZodFunction:()=>tf,ZodGUID:()=>Si,ZodIPv4:()=>mc,ZodIPv6:()=>fc,ZodISODate:()=>Qs,ZodISODateTime:()=>Ys,ZodISODuration:()=>tc,ZodISOTime:()=>ec,ZodIntersection:()=>Sm,ZodIssueCode:()=>kw,ZodJWT:()=>_c,ZodKSUID:()=>pc,ZodLazy:()=>Ym,ZodLiteral:()=>Dm,ZodMAC:()=>mm,ZodMap:()=>Rm,ZodNaN:()=>Wm,ZodNanoID:()=>sc,ZodNever:()=>bm,ZodNonOptional:()=>Sc,ZodNull:()=>vm,ZodNullable:()=>Lm,ZodNumber:()=>io,ZodNumberFormat:()=>br,ZodObject:()=>Di,ZodOptional:()=>Ic,ZodPipe:()=>wc,ZodPrefault:()=>Bm,ZodPromise:()=>ef,ZodReadonly:()=>Km,ZodRealError:()=>We,ZodRecord:()=>Ni,ZodSet:()=>Cm,ZodString:()=>oo,ZodStringFormat:()=>fe,ZodSuccess:()=>Zm,ZodSymbol:()=>gm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Nm,ZodTuple:()=>Om,ZodType:()=>te,ZodULID:()=>lc,ZodURL:()=>$i,ZodUUID:()=>ft,ZodUndefined:()=>ym,ZodUnion:()=>zi,ZodUnknown:()=>Pm,ZodVoid:()=>Am,ZodXID:()=>dc,ZodXor:()=>Tm,_ZodString:()=>nc,_default:()=>jm,_function:()=>Wy,any:()=>Iy,array:()=>Ci,base64:()=>uy,base64url:()=>ly,bigint:()=>Py,boolean:()=>hm,catch:()=>Gm,check:()=>Ky,cidrv4:()=>sy,cidrv6:()=>cy,clone:()=>$e,codec:()=>Zy,coerce:()=>af,config:()=>xe,core:()=>Qe,cuid:()=>Qg,cuid2:()=>ey,custom:()=>Jy,date:()=>wy,decode:()=>am,decodeAsync:()=>cm,describe:()=>Xy,discriminatedUnion:()=>Dy,e164:()=>dy,email:()=>Vg,emoji:()=>Xg,encode:()=>im,encodeAsync:()=>sm,endsWith:()=>mr,enum:()=>Ec,exactOptional:()=>Um,file:()=>jy,flattenError:()=>Dr,float32:()=>yy,float64:()=>vy,formatError:()=>zr,fromJSONSchema:()=>nv,function:()=>Wy,getErrorMap:()=>Rw,globalRegistry:()=>Re,gt:()=>lt,gte:()=>Oe,guid:()=>Hg,hash:()=>gy,hex:()=>hy,hostname:()=>fy,httpUrl:()=>Jg,includes:()=>dr,instanceof:()=>Qy,int:()=>oc,int32:()=>xy,int64:()=>by,intersection:()=>wm,ipv4:()=>ny,ipv6:()=>ay,iso:()=>to,json:()=>tv,jwt:()=>py,keyof:()=>Oy,ksuid:()=>oy,lazy:()=>Qm,length:()=>Lt,literal:()=>Fy,locales:()=>Wr,looseObject:()=>Ry,looseRecord:()=>Ny,lowercase:()=>ur,lt:()=>ut,lte:()=>Fe,mac:()=>iy,map:()=>My,maxLength:()=>Ut,maxSize:()=>bt,meta:()=>Yy,mime:()=>fr,minLength:()=>Ie,minSize:()=>dt,multipleOf:()=>Pt,nan:()=>Hy,nanoid:()=>Yg,nativeEnum:()=>Ly,negative:()=>ai,never:()=>bc,nonnegative:()=>ci,nonoptional:()=>Hm,nonpositive:()=>si,normalize:()=>hr,null:()=>xm,nullable:()=>Oi,nullish:()=>By,number:()=>fm,object:()=>ky,optional:()=>wi,overwrite:()=>nt,parse:()=>tm,parseAsync:()=>rm,partialRecord:()=>zy,pipe:()=>ki,positive:()=>ii,prefault:()=>Vm,preprocess:()=>rv,prettifyError:()=>ua,promise:()=>Gy,property:()=>ui,readonly:()=>Jm,record:()=>$m,refine:()=>rf,regex:()=>ze,regexes:()=>Ge,registry:()=>bn,safeDecode:()=>lm,safeDecodeAsync:()=>pm,safeEncode:()=>um,safeEncodeAsync:()=>dm,safeParse:()=>om,safeParseAsync:()=>nm,set:()=>Uy,setErrorMap:()=>$w,size:()=>Mt,slugify:()=>Jr,startsWith:()=>pr,strictObject:()=>$y,string:()=>rc,stringFormat:()=>my,stringbool:()=>ev,success:()=>Vy,superRefine:()=>of,symbol:()=>Ey,templateLiteral:()=>qy,toJSONSchema:()=>pi,toLowerCase:()=>yr,toUpperCase:()=>vr,transform:()=>Tc,treeifyError:()=>ca,trim:()=>gr,tuple:()=>km,uint32:()=>_y,uint64:()=>Ay,ulid:()=>ty,undefined:()=>Ty,union:()=>Ac,unknown:()=>Pr,uppercase:()=>lr,url:()=>Kg,util:()=>C,uuid:()=>Zg,uuidv4:()=>qg,uuidv6:()=>Gg,uuidv7:()=>Wg,void:()=>Sy,xid:()=>ry,xor:()=>Cy});var Ii={};Xe(Ii,{ZodAny:()=>_m,ZodArray:()=>Em,ZodBase64:()=>yc,ZodBase64URL:()=>vc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Pc,ZodBoolean:()=>ao,ZodCIDRv4:()=>hc,ZodCIDRv6:()=>gc,ZodCUID:()=>cc,ZodCUID2:()=>uc,ZodCatch:()=>qm,ZodCodec:()=>Oc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>Ri,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>xc,ZodEmail:()=>ic,ZodEmoji:()=>ac,ZodEnum:()=>ro,ZodExactOptional:()=>Mm,ZodFile:()=>zm,ZodFunction:()=>tf,ZodGUID:()=>Si,ZodIPv4:()=>mc,ZodIPv6:()=>fc,ZodIntersection:()=>Sm,ZodJWT:()=>_c,ZodKSUID:()=>pc,ZodLazy:()=>Ym,ZodLiteral:()=>Dm,ZodMAC:()=>mm,ZodMap:()=>Rm,ZodNaN:()=>Wm,ZodNanoID:()=>sc,ZodNever:()=>bm,ZodNonOptional:()=>Sc,ZodNull:()=>vm,ZodNullable:()=>Lm,ZodNumber:()=>io,ZodNumberFormat:()=>br,ZodObject:()=>Di,ZodOptional:()=>Ic,ZodPipe:()=>wc,ZodPrefault:()=>Bm,ZodPromise:()=>ef,ZodReadonly:()=>Km,ZodRecord:()=>Ni,ZodSet:()=>Cm,ZodString:()=>oo,ZodStringFormat:()=>fe,ZodSuccess:()=>Zm,ZodSymbol:()=>gm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Nm,ZodTuple:()=>Om,ZodType:()=>te,ZodULID:()=>lc,ZodURL:()=>$i,ZodUUID:()=>ft,ZodUndefined:()=>ym,ZodUnion:()=>zi,ZodUnknown:()=>Pm,ZodVoid:()=>Am,ZodXID:()=>dc,ZodXor:()=>Tm,_ZodString:()=>nc,_default:()=>jm,_function:()=>Wy,any:()=>Iy,array:()=>Ci,base64:()=>uy,base64url:()=>ly,bigint:()=>Py,boolean:()=>hm,catch:()=>Gm,check:()=>Ky,cidrv4:()=>sy,cidrv6:()=>cy,codec:()=>Zy,cuid:()=>Qg,cuid2:()=>ey,custom:()=>Jy,date:()=>wy,describe:()=>Xy,discriminatedUnion:()=>Dy,e164:()=>dy,email:()=>Vg,emoji:()=>Xg,enum:()=>Ec,exactOptional:()=>Um,file:()=>jy,float32:()=>yy,float64:()=>vy,function:()=>Wy,guid:()=>Hg,hash:()=>gy,hex:()=>hy,hostname:()=>fy,httpUrl:()=>Jg,instanceof:()=>Qy,int:()=>oc,int32:()=>xy,int64:()=>by,intersection:()=>wm,ipv4:()=>ny,ipv6:()=>ay,json:()=>tv,jwt:()=>py,keyof:()=>Oy,ksuid:()=>oy,lazy:()=>Qm,literal:()=>Fy,looseObject:()=>Ry,looseRecord:()=>Ny,mac:()=>iy,map:()=>My,meta:()=>Yy,nan:()=>Hy,nanoid:()=>Yg,nativeEnum:()=>Ly,never:()=>bc,nonoptional:()=>Hm,null:()=>xm,nullable:()=>Oi,nullish:()=>By,number:()=>fm,object:()=>ky,optional:()=>wi,partialRecord:()=>zy,pipe:()=>ki,prefault:()=>Vm,preprocess:()=>rv,promise:()=>Gy,readonly:()=>Jm,record:()=>$m,refine:()=>rf,set:()=>Uy,strictObject:()=>$y,string:()=>rc,stringFormat:()=>my,stringbool:()=>ev,success:()=>Vy,superRefine:()=>of,symbol:()=>Ey,templateLiteral:()=>qy,transform:()=>Tc,tuple:()=>km,uint32:()=>_y,uint64:()=>Ay,ulid:()=>ty,undefined:()=>Ty,union:()=>Ac,unknown:()=>Pr,url:()=>Kg,uuid:()=>Zg,uuidv4:()=>qg,uuidv6:()=>Gg,uuidv7:()=>Wg,void:()=>Sy,xid:()=>ry,xor:()=>Cy});var Xs={};Xe(Xs,{endsWith:()=>mr,gt:()=>lt,gte:()=>Oe,includes:()=>dr,length:()=>Lt,lowercase:()=>ur,lt:()=>ut,lte:()=>Fe,maxLength:()=>Ut,maxSize:()=>bt,mime:()=>fr,minLength:()=>Ie,minSize:()=>dt,multipleOf:()=>Pt,negative:()=>ai,nonnegative:()=>ci,nonpositive:()=>si,normalize:()=>hr,overwrite:()=>nt,positive:()=>ii,property:()=>ui,regex:()=>ze,size:()=>Mt,slugify:()=>Jr,startsWith:()=>pr,toLowerCase:()=>yr,toUpperCase:()=>vr,trim:()=>gr,uppercase:()=>lr});var to={};Xe(to,{ZodISODate:()=>Qs,ZodISODateTime:()=>Ys,ZodISODuration:()=>tc,ZodISOTime:()=>ec,date:()=>Yp,datetime:()=>Xp,duration:()=>em,time:()=>Qp});var Ys=y("ZodISODateTime",(e,t)=>{Yo.init(e,t),fe.init(e,t)});function Xp(e){return Zn(Ys,e)}s(Xp,"datetime");var Qs=y("ZodISODate",(e,t)=>{Qo.init(e,t),fe.init(e,t)});function Yp(e){return qn(Qs,e)}s(Yp,"date");var ec=y("ZodISOTime",(e,t)=>{en.init(e,t),fe.init(e,t)});function Qp(e){return Gn(ec,e)}s(Qp,"time");var tc=y("ZodISODuration",(e,t)=>{tn.init(e,t),fe.init(e,t)});function em(e){return Wn(tc,e)}s(em,"duration");var Bg=s((e,t)=>{Go.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(o=>zr(e,o),"value")},flatten:{value:s(o=>Dr(e,o),"value")},addIssue:{value:s(o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,$r,2)},"value")},addIssues:{value:s(o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,$r,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),ww=y("ZodError",Bg),We=y("ZodError",Bg,{Parent:Error});var tm=Nr(We),rm=Mr(We),om=Ur(We),nm=Fr(We),im=la(We),am=da(We),sm=pa(We),cm=ma(We),um=fa(We),lm=ha(We),dm=ga(We),pm=ya(We);var te=y("ZodType",(e,t)=>(q.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xr(e,"input"),output:Xr(e,"output")}}),e.toJSONSchema=Kd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(C.mergeDefs(t,{checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(o,n)=>$e(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.parse=(o,n)=>tm(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>om(e,o,n),e.parseAsync=async(o,n)=>rm(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>nm(e,o,n),e.spa=e.safeParseAsync,e.encode=(o,n)=>im(e,o,n),e.decode=(o,n)=>am(e,o,n),e.encodeAsync=async(o,n)=>sm(e,o,n),e.decodeAsync=async(o,n)=>cm(e,o,n),e.safeEncode=(o,n)=>um(e,o,n),e.safeDecode=(o,n)=>lm(e,o,n),e.safeEncodeAsync=async(o,n)=>dm(e,o,n),e.safeDecodeAsync=async(o,n)=>pm(e,o,n),e.refine=(o,n)=>e.check(rf(o,n)),e.superRefine=o=>e.check(of(o)),e.overwrite=o=>e.check(nt(o)),e.optional=()=>wi(e),e.exactOptional=()=>Um(e),e.nullable=()=>Oi(e),e.nullish=()=>wi(Oi(e)),e.nonoptional=o=>Hm(e,o),e.array=()=>Ci(e),e.or=o=>Ac([e,o]),e.and=o=>wm(e,o),e.transform=o=>ki(e,Tc(o)),e.default=o=>jm(e,o),e.prefault=o=>Vm(e,o),e.catch=o=>Gm(e,o),e.pipe=o=>ki(e,o),e.readonly=()=>Jm(e),e.describe=o=>{let n=e.clone();return Re.add(n,{description:o}),n},Object.defineProperty(e,"description",{get(){return Re.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Re.get(e);let n=e.clone();return Re.add(n,o[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),nc=y("_ZodString",(e,t)=>{_t.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jd(e,n,r,i);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...n)=>e.check(ze(...n)),e.includes=(...n)=>e.check(dr(...n)),e.startsWith=(...n)=>e.check(pr(...n)),e.endsWith=(...n)=>e.check(mr(...n)),e.min=(...n)=>e.check(Ie(...n)),e.max=(...n)=>e.check(Ut(...n)),e.length=(...n)=>e.check(Lt(...n)),e.nonempty=(...n)=>e.check(Ie(1,...n)),e.lowercase=n=>e.check(ur(n)),e.uppercase=n=>e.check(lr(n)),e.trim=()=>e.check(gr()),e.normalize=(...n)=>e.check(hr(...n)),e.toLowerCase=()=>e.check(yr()),e.toUpperCase=()=>e.check(vr()),e.slugify=()=>e.check(Jr())}),oo=y("ZodString",(e,t)=>{_t.init(e,t),nc.init(e,t),e.email=o=>e.check(Tn(ic,o)),e.url=o=>e.check(cr($i,o)),e.jwt=o=>e.check(Hn(_c,o)),e.emoji=o=>e.check(kn(ac,o)),e.guid=o=>e.check(Kr(Si,o)),e.uuid=o=>e.check(In(ft,o)),e.uuidv4=o=>e.check(Sn(ft,o)),e.uuidv6=o=>e.check(wn(ft,o)),e.uuidv7=o=>e.check(On(ft,o)),e.nanoid=o=>e.check($n(sc,o)),e.guid=o=>e.check(Kr(Si,o)),e.cuid=o=>e.check(Rn(cc,o)),e.cuid2=o=>e.check(Cn(uc,o)),e.ulid=o=>e.check(Dn(lc,o)),e.base64=o=>e.check(jn(yc,o)),e.base64url=o=>e.check(Bn(vc,o)),e.xid=o=>e.check(zn(dc,o)),e.ksuid=o=>e.check(Nn(pc,o)),e.ipv4=o=>e.check(Mn(mc,o)),e.ipv6=o=>e.check(Un(fc,o)),e.cidrv4=o=>e.check(Ln(hc,o)),e.cidrv6=o=>e.check(Fn(gc,o)),e.e164=o=>e.check(Vn(xc,o)),e.datetime=o=>e.check(Xp(o)),e.date=o=>e.check(Yp(o)),e.time=o=>e.check(Qp(o)),e.duration=o=>e.check(em(o))});function rc(e){return An(oo,e)}s(rc,"string");var fe=y("ZodStringFormat",(e,t)=>{de.init(e,t),nc.init(e,t)}),ic=y("ZodEmail",(e,t)=>{Oa.init(e,t),fe.init(e,t)});function Vg(e){return Tn(ic,e)}s(Vg,"email");var Si=y("ZodGUID",(e,t)=>{Sa.init(e,t),fe.init(e,t)});function Hg(e){return Kr(Si,e)}s(Hg,"guid");var ft=y("ZodUUID",(e,t)=>{wa.init(e,t),fe.init(e,t)});function Zg(e){return In(ft,e)}s(Zg,"uuid");function qg(e){return Sn(ft,e)}s(qg,"uuidv4");function Gg(e){return wn(ft,e)}s(Gg,"uuidv6");function Wg(e){return On(ft,e)}s(Wg,"uuidv7");var $i=y("ZodURL",(e,t)=>{Xo.init(e,t),fe.init(e,t)});function Kg(e){return cr($i,e)}s(Kg,"url");function Jg(e){return cr($i,{protocol:/^https?$/,hostname:Ge.domain,...C.normalizeParams(e)})}s(Jg,"httpUrl");var ac=y("ZodEmoji",(e,t)=>{ka.init(e,t),fe.init(e,t)});function Xg(e){return kn(ac,e)}s(Xg,"emoji");var sc=y("ZodNanoID",(e,t)=>{$a.init(e,t),fe.init(e,t)});function Yg(e){return $n(sc,e)}s(Yg,"nanoid");var cc=y("ZodCUID",(e,t)=>{Ra.init(e,t),fe.init(e,t)});function Qg(e){return Rn(cc,e)}s(Qg,"cuid");var uc=y("ZodCUID2",(e,t)=>{Ca.init(e,t),fe.init(e,t)});function ey(e){return Cn(uc,e)}s(ey,"cuid2");var lc=y("ZodULID",(e,t)=>{Da.init(e,t),fe.init(e,t)});function ty(e){return Dn(lc,e)}s(ty,"ulid");var dc=y("ZodXID",(e,t)=>{za.init(e,t),fe.init(e,t)});function ry(e){return zn(dc,e)}s(ry,"xid");var pc=y("ZodKSUID",(e,t)=>{Na.init(e,t),fe.init(e,t)});function oy(e){return Nn(pc,e)}s(oy,"ksuid");var mc=y("ZodIPv4",(e,t)=>{Ma.init(e,t),fe.init(e,t)});function ny(e){return Mn(mc,e)}s(ny,"ipv4");var mm=y("ZodMAC",(e,t)=>{La.init(e,t),fe.init(e,t)});function iy(e){return xs(mm,e)}s(iy,"mac");var fc=y("ZodIPv6",(e,t)=>{Ua.init(e,t),fe.init(e,t)});function ay(e){return Un(fc,e)}s(ay,"ipv6");var hc=y("ZodCIDRv4",(e,t)=>{Fa.init(e,t),fe.init(e,t)});function sy(e){return Ln(hc,e)}s(sy,"cidrv4");var gc=y("ZodCIDRv6",(e,t)=>{ja.init(e,t),fe.init(e,t)});function cy(e){return Fn(gc,e)}s(cy,"cidrv6");var yc=y("ZodBase64",(e,t)=>{Ba.init(e,t),fe.init(e,t)});function uy(e){return jn(yc,e)}s(uy,"base64");var vc=y("ZodBase64URL",(e,t)=>{Va.init(e,t),fe.init(e,t)});function ly(e){return Bn(vc,e)}s(ly,"base64url");var xc=y("ZodE164",(e,t)=>{Ha.init(e,t),fe.init(e,t)});function dy(e){return Vn(xc,e)}s(dy,"e164");var _c=y("ZodJWT",(e,t)=>{Za.init(e,t),fe.init(e,t)});function py(e){return Hn(_c,e)}s(py,"jwt");var no=y("ZodCustomStringFormat",(e,t)=>{qa.init(e,t),fe.init(e,t)});function my(e,t,o={}){return xr(no,e,t,o)}s(my,"stringFormat");function fy(e){return xr(no,"hostname",Ge.hostname,e)}s(fy,"hostname");function hy(e){return xr(no,"hex",Ge.hex,e)}s(hy,"hex");function gy(e,t){let o=t?.enc??"hex",n=`${e}_${o}`,r=Ge[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return xr(no,n,r,t)}s(gy,"hash");var io=y("ZodNumber",(e,t)=>{Vr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xd(e,n,r,i),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(Fe(n,r)),e.max=(n,r)=>e.check(Fe(n,r)),e.int=n=>e.check(oc(n)),e.safe=n=>e.check(oc(n)),e.positive=n=>e.check(lt(0,n)),e.nonnegative=n=>e.check(Oe(0,n)),e.negative=n=>e.check(ut(0,n)),e.nonpositive=n=>e.check(Fe(0,n)),e.multipleOf=(n,r)=>e.check(Pt(n,r)),e.step=(n,r)=>e.check(Pt(n,r)),e.finite=()=>e;let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function fm(e){return Kn(io,e)}s(fm,"number");var br=y("ZodNumberFormat",(e,t)=>{rn.init(e,t),io.init(e,t)});function oc(e){return Xn(br,e)}s(oc,"int");function yy(e){return Ps(br,e)}s(yy,"float32");function vy(e){return bs(br,e)}s(vy,"float64");function xy(e){return As(br,e)}s(xy,"int32");function _y(e){return Es(br,e)}s(_y,"uint32");var ao=y("ZodBoolean",(e,t)=>{ar.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Yd(e,o,n,r)});function hm(e){return Yn(ao,e)}s(hm,"boolean");var so=y("ZodBigInt",(e,t)=>{Hr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qd(e,n,r,i),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(Fe(n,r)),e.max=(n,r)=>e.check(Fe(n,r)),e.positive=n=>e.check(lt(BigInt(0),n)),e.negative=n=>e.check(ut(BigInt(0),n)),e.nonpositive=n=>e.check(Fe(BigInt(0),n)),e.nonnegative=n=>e.check(Oe(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(Pt(n,r));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function Py(e){return Ts(so,e)}s(Py,"bigint");var Pc=y("ZodBigIntFormat",(e,t)=>{Ga.init(e,t),so.init(e,t)});function by(e){return Is(Pc,e)}s(by,"int64");function Ay(e){return Ss(Pc,e)}s(Ay,"uint64");var gm=y("ZodSymbol",(e,t)=>{Wa.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ep(e,o,n,r)});function Ey(e){return ws(gm,e)}s(Ey,"symbol");var ym=y("ZodUndefined",(e,t)=>{Ka.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>rp(e,o,n,r)});function Ty(e){return Os(ym,e)}s(Ty,"_undefined");var vm=y("ZodNull",(e,t)=>{Ja.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>tp(e,o,n,r)});function xm(e){return ks(vm,e)}s(xm,"_null");var _m=y("ZodAny",(e,t)=>{on.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ip(e,o,n,r)});function Iy(){return ti(_m)}s(Iy,"any");var Pm=y("ZodUnknown",(e,t)=>{nn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ap(e,o,n,r)});function Pr(){return ri(Pm)}s(Pr,"unknown");var bm=y("ZodNever",(e,t)=>{Xa.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>np(e,o,n,r)});function bc(e){return $s(bm,e)}s(bc,"never");var Am=y("ZodVoid",(e,t)=>{an.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>op(e,o,n,r)});function Sy(e){return oi(Am,e)}s(Sy,"_void");var Ri=y("ZodDate",(e,t)=>{sn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sp(e,n,r,i),e.min=(n,r)=>e.check(Oe(n,r)),e.max=(n,r)=>e.check(Fe(n,r));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function wy(e){return Rs(Ri,e)}s(wy,"date");var Em=y("ZodArray",(e,t)=>{cn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>xp(e,o,n,r),e.element=t.element,e.min=(o,n)=>e.check(Ie(o,n)),e.nonempty=o=>e.check(Ie(1,o)),e.max=(o,n)=>e.check(Ut(o,n)),e.length=(o,n)=>e.check(Lt(o,n)),e.unwrap=()=>e.element});function Ci(e,t){return Wd(Em,e,t)}s(Ci,"array");function Oy(e){let t=e._zod.def.shape;return Ec(Object.keys(t))}s(Oy,"keyof");var Di=y("ZodObject",(e,t)=>{td.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>_p(e,o,n,r),C.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Ec(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Pr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Pr()}),e.strict=()=>e.clone({...e._zod.def,catchall:bc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>C.extend(e,o),e.safeExtend=o=>C.safeExtend(e,o),e.merge=o=>C.merge(e,o),e.pick=o=>C.pick(e,o),e.omit=o=>C.omit(e,o),e.partial=(...o)=>C.partial(Ic,e,o[0]),e.required=(...o)=>C.required(Sc,e,o[0])});function ky(e,t){let o={type:"object",shape:e??{},...C.normalizeParams(t)};return new Di(o)}s(ky,"object");function $y(e,t){return new Di({type:"object",shape:e,catchall:bc(),...C.normalizeParams(t)})}s($y,"strictObject");function Ry(e,t){return new Di({type:"object",shape:e,catchall:Pr(),...C.normalizeParams(t)})}s(Ry,"looseObject");var zi=y("ZodUnion",(e,t)=>{sr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Fs(e,o,n,r),e.options=t.options});function Ac(e,t){return new zi({type:"union",options:e,...C.normalizeParams(t)})}s(Ac,"union");var Tm=y("ZodXor",(e,t)=>{zi.init(e,t),Qa.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Fs(e,o,n,r),e.options=t.options});function Cy(e,t){return new Tm({type:"union",options:e,inclusive:!1,...C.normalizeParams(t)})}s(Cy,"xor");var Im=y("ZodDiscriminatedUnion",(e,t)=>{zi.init(e,t),un.init(e,t)});function Dy(e,t,o){return new Im({type:"union",options:t,discriminator:e,...C.normalizeParams(o)})}s(Dy,"discriminatedUnion");var Sm=y("ZodIntersection",(e,t)=>{es.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Pp(e,o,n,r)});function wm(e,t){return new Sm({type:"intersection",left:e,right:t})}s(wm,"intersection");var Om=y("ZodTuple",(e,t)=>{ln.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>bp(e,o,n,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function km(e,t,o){let n=t instanceof q,r=n?o:t,i=n?t:null;return new Om({type:"tuple",items:e,rest:i,...C.normalizeParams(r)})}s(km,"tuple");var Ni=y("ZodRecord",(e,t)=>{dn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ap(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function $m(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,...C.normalizeParams(o)})}s($m,"record");function zy(e,t,o){let n=$e(e);return n._zod.values=void 0,new Ni({type:"record",keyType:n,valueType:t,...C.normalizeParams(o)})}s(zy,"partialRecord");function Ny(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,mode:"loose",...C.normalizeParams(o)})}s(Ny,"looseRecord");var Rm=y("ZodMap",(e,t)=>{ts.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>yp(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...o)=>e.check(dt(...o)),e.nonempty=o=>e.check(dt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Mt(...o))});function My(e,t,o){return new Rm({type:"map",keyType:e,valueType:t,...C.normalizeParams(o)})}s(My,"map");var Cm=y("ZodSet",(e,t)=>{rs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>vp(e,o,n,r),e.min=(...o)=>e.check(dt(...o)),e.nonempty=o=>e.check(dt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Mt(...o))});function Uy(e,t){return new Cm({type:"set",valueType:e,...C.normalizeParams(t)})}s(Uy,"set");var ro=y("ZodEnum",(e,t)=>{pn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let o=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let i={};for(let a of n)if(o.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...C.normalizeParams(r),entries:i})},e.exclude=(n,r)=>{let i={...t.entries};for(let a of n)if(o.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...C.normalizeParams(r),entries:i})}});function Ec(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ro({type:"enum",entries:o,...C.normalizeParams(t)})}s(Ec,"_enum");function Ly(e,t){return new ro({type:"enum",entries:e,...C.normalizeParams(t)})}s(Ly,"nativeEnum");var Dm=y("ZodLiteral",(e,t)=>{mn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>up(e,o,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Fy(e,t){return new Dm({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(t)})}s(Fy,"literal");var zm=y("ZodFile",(e,t)=>{os.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>pp(e,o,n,r),e.min=(o,n)=>e.check(dt(o,n)),e.max=(o,n)=>e.check(bt(o,n)),e.mime=(o,n)=>e.check(fr(Array.isArray(o)?o:[o],n))});function jy(e){return Ds(zm,e)}s(jy,"file");var Nm=y("ZodTransform",(e,t)=>{fn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>gp(e,o,n,r),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Rt(e.constructor.name);o.addIssue=i=>{if(typeof i=="string")o.issues.push(C.issue(i,o.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=o.value),a.inst??(a.inst=e),o.issues.push(C.issue(a))}};let r=t.transform(o.value,o);return r instanceof Promise?r.then(i=>(o.value=i,o)):(o.value=r,o)}});function Tc(e){return new Nm({type:"transform",transform:e})}s(Tc,"transform");var Ic=y("ZodOptional",(e,t)=>{Zr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>js(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function wi(e){return new Ic({type:"optional",innerType:e})}s(wi,"optional");var Mm=y("ZodExactOptional",(e,t)=>{ns.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>js(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Um(e){return new Mm({type:"optional",innerType:e})}s(Um,"exactOptional");var Lm=y("ZodNullable",(e,t)=>{hn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ep(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Oi(e){return new Lm({type:"nullable",innerType:e})}s(Oi,"nullable");function By(e){return wi(Oi(e))}s(By,"nullish");var Fm=y("ZodDefault",(e,t)=>{is.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ip(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jm(e,t){return new Fm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}s(jm,"_default");var Bm=y("ZodPrefault",(e,t)=>{as.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Sp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Vm(e,t){return new Bm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}s(Vm,"prefault");var Sc=y("ZodNonOptional",(e,t)=>{ss.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Tp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Hm(e,t){return new Sc({type:"nonoptional",innerType:e,...C.normalizeParams(t)})}s(Hm,"nonoptional");var Zm=y("ZodSuccess",(e,t)=>{cs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>mp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Vy(e){return new Zm({type:"success",innerType:e})}s(Vy,"success");var qm=y("ZodCatch",(e,t)=>{us.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>wp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Gm(e,t){return new qm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Gm,"_catch");var Wm=y("ZodNaN",(e,t)=>{ls.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>lp(e,o,n,r)});function Hy(e){return Cs(Wm,e)}s(Hy,"nan");var wc=y("ZodPipe",(e,t)=>{gn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Op(e,o,n,r),e.in=t.in,e.out=t.out});function ki(e,t){return new wc({type:"pipe",in:e,out:t})}s(ki,"pipe");var Oc=y("ZodCodec",(e,t)=>{wc.init(e,t),qr.init(e,t)});function Zy(e,t,o){return new Oc({type:"pipe",in:e,out:t,transform:o.decode,reverseTransform:o.encode})}s(Zy,"codec");var Km=y("ZodReadonly",(e,t)=>{ds.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>kp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Jm(e){return new Km({type:"readonly",innerType:e})}s(Jm,"readonly");var Xm=y("ZodTemplateLiteral",(e,t)=>{ps.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>dp(e,o,n,r)});function qy(e,t){return new Xm({type:"template_literal",parts:e,...C.normalizeParams(t)})}s(qy,"templateLiteral");var Ym=y("ZodLazy",(e,t)=>{hs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Rp(e,o,n,r),e.unwrap=()=>e._zod.def.getter()});function Qm(e){return new Ym({type:"lazy",getter:e})}s(Qm,"lazy");var ef=y("ZodPromise",(e,t)=>{fs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>$p(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Gy(e){return new ef({type:"promise",innerType:e})}s(Gy,"promise");var tf=y("ZodFunction",(e,t)=>{ms.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>hp(e,o,n,r)});function Wy(e){return new tf({type:"function",input:Array.isArray(e?.input)?km(e?.input):e?.input??Ci(Pr()),output:e?.output??Pr()})}s(Wy,"_function");var Mi=y("ZodCustom",(e,t)=>{yn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>fp(e,o,n,r)});function Ky(e){let t=new me({check:"custom"});return t._zod.check=e,t}s(Ky,"check");function Jy(e,t){return li(Mi,e??(()=>!0),t)}s(Jy,"custom");function rf(e,t={}){return di(Mi,e,t)}s(rf,"refine");function of(e){return zs(e)}s(of,"superRefine");var Xy=Ns,Yy=Ms;function Qy(e,t={}){let o=new Mi({type:"custom",check:"custom",fn:s(n=>n instanceof e,"fn"),abort:!0,...C.normalizeParams(t)});return o._zod.bag.Class=e,o._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:o,path:[...o._zod.def.path??[]]})},o}s(Qy,"_instanceof");var ev=s((...e)=>Us({Codec:Oc,Boolean:ao,String:oo},...e),"stringbool");function tv(e){let t=Qm(()=>Ac([rc(e),fm(),hm(),xm(),Ci(t),$m(rc(),t)]));return t}s(tv,"json");function rv(e,t){return ki(Tc(e),t)}s(rv,"preprocess");var kw={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 $w(e){xe({customError:e})}s($w,"setErrorMap");function Rw(){return xe().customError}s(Rw,"getErrorMap");var nf;nf||(nf={});var N={...Ii,...Xs,iso:to},Cw=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 Dw(e,t){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(Dw,"detectVersion");function zw(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===n){let r=o[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}s(zw,"resolveRef");function ov(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return N.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return N.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=zw(r,t),a=Ue(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return N.null();if(r.length===0)return N.never();if(r.length===1)return N.literal(r[0]);if(r.every(a=>typeof a=="string"))return N.enum(r);let i=r.map(a=>N.literal(a));return i.length<2?i[0]:N.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return N.literal(e.const);let o=e.type;if(Array.isArray(o)){let r=o.map(i=>{let a={...e,type:i};return ov(a,t)});return r.length===0?N.never():r.length===1?r[0]:N.union(r)}if(!o)return N.any();let n;switch(o){case"string":{let r=N.string();if(e.format){let i=e.format;i==="email"?r=r.check(N.email()):i==="uri"||i==="uri-reference"?r=r.check(N.url()):i==="uuid"||i==="guid"?r=r.check(N.uuid()):i==="date-time"?r=r.check(N.iso.datetime()):i==="date"?r=r.check(N.iso.date()):i==="time"?r=r.check(N.iso.time()):i==="duration"?r=r.check(N.iso.duration()):i==="ipv4"?r=r.check(N.ipv4()):i==="ipv6"?r=r.check(N.ipv6()):i==="mac"?r=r.check(N.mac()):i==="cidr"?r=r.check(N.cidrv4()):i==="cidr-v6"?r=r.check(N.cidrv6()):i==="base64"?r=r.check(N.base64()):i==="base64url"?r=r.check(N.base64url()):i==="e164"?r=r.check(N.e164()):i==="jwt"?r=r.check(N.jwt()):i==="emoji"?r=r.check(N.emoji()):i==="nanoid"?r=r.check(N.nanoid()):i==="cuid"?r=r.check(N.cuid()):i==="cuid2"?r=r.check(N.cuid2()):i==="ulid"?r=r.check(N.ulid()):i==="xid"?r=r.check(N.xid()):i==="ksuid"&&(r=r.check(N.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),n=r;break}case"number":case"integer":{let r=o==="integer"?N.number().int():N.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),n=r;break}case"boolean":{n=N.boolean();break}case"null":{n=N.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[u,l]of Object.entries(i)){let d=Ue(l,t);r[u]=a.has(u)?d:d.optional()}if(e.propertyNames){let u=Ue(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Ue(e.additionalProperties,t):N.any();if(Object.keys(r).length===0){n=N.record(u,l);break}let d=N.object(r).passthrough(),g=N.looseRecord(u,l);n=N.intersection(d,g);break}if(e.patternProperties){let u=e.patternProperties,l=Object.keys(u),d=[];for(let f of l){let p=Ue(u[f],t),v=N.string().regex(new RegExp(f));d.push(N.looseRecord(v,p))}let g=[];if(Object.keys(r).length>0&&g.push(N.object(r).passthrough()),g.push(...d),g.length===0)n=N.object({}).passthrough();else if(g.length===1)n=g[0];else{let f=N.intersection(g[0],g[1]);for(let p=2;p<g.length;p++)f=N.intersection(f,g[p]);n=f}break}let c=N.object(r);e.additionalProperties===!1?n=c.strict():typeof e.additionalProperties=="object"?n=c.catchall(Ue(e.additionalProperties,t)):n=c.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(u=>Ue(u,t)),c=i&&typeof i=="object"&&!Array.isArray(i)?Ue(i,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>Ue(u,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?Ue(e.additionalItems,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(i!==void 0){let a=Ue(i,t),c=N.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),n=c}else n=N.array(N.any());break}default:throw new Error(`Unsupported type: ${o}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}s(ov,"convertBaseSchema");function Ue(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=ov(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(l=>Ue(l,t)),u=N.union(c);o=n?N.intersection(o,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(l=>Ue(l,t)),u=N.xor(c);o=n?N.intersection(o,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=n?o:N.any();else{let c=n?o:Ue(e.allOf[0],t),u=n?0:1;for(let l=u;l<e.allOf.length;l++)c=N.intersection(c,Ue(e.allOf[l],t));o=c}e.nullable===!0&&t.version==="openapi-3.0"&&(o=N.nullable(o)),e.readOnly===!0&&(o=N.readonly(o));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of i)c in e&&(r[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(r[c]=e[c]);for(let c of Object.keys(e))Cw.has(c)||(r[c]=e[c]);return Object.keys(r).length>0&&t.registry.add(o,r),o}s(Ue,"convertSchema");function nv(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=Dw(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Re};return Ue(e,r)}s(nv,"fromJSONSchema");var af={};Xe(af,{bigint:()=>Lw,boolean:()=>Uw,date:()=>Fw,number:()=>Mw,string:()=>Nw});function Nw(e){return En(oo,e)}s(Nw,"string");function Mw(e){return Jn(io,e)}s(Mw,"number");function Uw(e){return Qn(ao,e)}s(Uw,"boolean");function Lw(e){return ei(so,e)}s(Lw,"bigint");function Fw(e){return ni(Ri,e)}s(Fw,"date");xe(vn());var sf={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue",invalidDomain:"invalidDomain",duplicateDomain:"duplicateDomain"};var iv=(o=>(o.IMAGE="image",o.TEXT="text",o))(iv||{}),Be=z.object({apiKey:z.string()}),av=z.object({serviceAccountJson:z.string().min(1)}),sv=Be,cv=Be.extend({apiKeyHash:z.string()}),uv=Be,lv=Be,dv=Be,pv=Be,mv=Be,fv=Be,hv=z.object({accessKeyId:z.string().min(1),secretAccessKey:z.string().min(1),sessionToken:z.string().optional()}),gv=Be,yv=z.object({}),vv=z.object({}),cf=z.object({modelId:z.string(),modelName:z.string(),modelType:z.enum(iv)}),xv=z.object({apiKeyHeader:z.string(),baseUrl:z.string(),models:z.array(cf),defaultHeaders:z.record(z.string(),z.string()).optional(),apiStyle:z.enum(["chat","responses"]).optional()}),_v=z.object({accountId:z.string(),gatewayId:z.string(),models:z.array(cf),vertexProject:z.string().optional(),vertexRegion:z.string().optional()}),Pv=z.object({resourceName:z.string(),apiVersion:z.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,z.string().optional())}),bv=z.object({}),Av=z.object({}),Ev=z.object({}),Tv=z.object({region:z.string().min(1)}),Iv=z.object({project:z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,sf.invalidGcpResourceId),region:z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,sf.invalidGcpResourceId),models:z.array(cf)}),Sv=z.object({}),Ar=z.object({}),KF=z.union([sv,dv,pv,mv,fv,lv,uv,cv,hv,av,gv]),JF=z.union([xv,_v,Pv,Iv,Tv,yv,bv,Av,Ev,vv,Sv,Ar]),XF=z.discriminatedUnion("provider",[z.object({provider:z.literal("openai"),config:Av.partial(),auth:mv.partial()}),z.object({provider:z.literal("openrouter"),config:Ev.partial(),auth:fv.partial()}),z.object({provider:z.literal("anthropic"),config:yv.partial(),auth:sv.partial()}),z.object({provider:z.literal("azure"),config:Pv.partial(),auth:dv.partial()}),z.object({provider:z.literal("google"),config:bv.partial(),auth:pv.partial()}),z.object({provider:z.literal("cloudflare-gateway"),config:_v.partial(),auth:lv.partial()}),z.object({provider:z.literal("custom"),config:xv.partial(),auth:uv.partial()}),z.object({provider:z.literal("activepieces"),config:vv.partial(),auth:cv.partial()}),z.object({provider:z.literal("bedrock"),config:Tv.partial(),auth:hv.partial()}),z.object({provider:z.literal("vertex"),config:Iv.partial(),auth:av.partial()}),z.object({provider:z.literal("mistral"),config:Sv.partial(),auth:gv.partial()}),z.object({provider:z.literal("xai"),config:Ar.partial(),auth:Be.partial()}),z.object({provider:z.literal("deepseek"),config:Ar.partial(),auth:Be.partial()}),z.object({provider:z.literal("zai"),config:Ar.partial(),auth:Be.partial()}),z.object({provider:z.literal("qwen"),config:Ar.partial(),auth:Be.partial()}),z.object({provider:z.literal("minimax"),config:Ar.partial(),auth:Be.partial()}),z.object({provider:z.literal("moonshot"),config:Ar.partial(),auth:Be.partial()})]);var sj=m().check(ze(/^#[0-9A-Fa-f]{6}$/));var uj=P({filename:m(),data:W(),type:V("file"),mimetype:E(m())});var jw=Le(Ov());var gj=P({...it,name:m(),permissions:Z(m()),platformId:_e(m()),type:m(),userCount:E(Ce())});var Ij=z.enum(["active","out_of_credits","rejected","unreachable"]);var kv=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(kv||{}),uf=(o=>(o.FILE="FILE",o.TABLE="TABLE",o))(uf||{}),lf=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(lf||{});var df=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(df||{});var pf=(o=>(o.IN_PROGRESS="in-progress",o.COMPLETED="completed",o))(pf||{});var Bw=P({mode:H(kv),value:W()}),Vw=P({auth:E(m()),fields:K(m(),Bw)}),Hw=P({pieceName:m(),pieceVersion:m(),actionName:m(),predefinedInput:E(Vw)}),Zw=P({type:V("PIECE"),toolName:m().check(Ie(1)),pieceMetadata:Hw}),qw=P({type:V("none")}),Gw=P({type:V("access_token"),accessToken:m()}),Ww=P({type:V("api_key"),apiKey:m(),apiKeyHeader:m()}),Kw=P({type:V("headers"),headers:K(m(),m())}),Jw=Vt("type",[qw,Gw,Ww,Kw]),$v=P({type:V("FLOW"),toolName:m().check(Ie(1)),externalFlowId:m(),flowDisplayName:E(m())}),Rv=P({type:V("MCP"),toolName:m().check(Ie(1)),serverUrl:Tg(),protocol:H(lf),auth:Jw}),Cv=P({type:V("KNOWLEDGE_BASE"),toolName:m().check(Ie(1)),sourceType:H(uf),sourceId:m(),sourceName:m()}),Xw=Vt("type",[Zw,$v,Rv,Cv]),Yw=P({displayName:m(),description:E(m()),type:H(df)}),Dv=P({type:V("MARKDOWN"),markdown:m()}),co={type:V("TOOL_CALL"),input:_e(K(m(),W())),output:E(W()),toolName:m(),status:H(pf),toolCallId:m(),startTime:m(),endTime:E(m())},m1=P(co),zv=Vt("toolCallType",[P({...co,toolCallType:V("PIECE"),pieceName:m(),pieceVersion:m(),actionName:m()}),P({...co,toolCallType:V("FLOW"),displayName:m(),externalFlowId:m()}),P({...co,toolCallType:V("MCP"),displayName:m(),serverUrl:m()}),P({...co,toolCallType:V("KNOWLEDGE_BASE"),displayName:m(),sourceType:m()}),P({...co,toolCallType:V("UNKNOWN"),displayName:m()})]),Qw=ee([Dv,zv]);var eO=10800*1e3,tO=900*1e3;var gf=(o=>(o.IMAGE="image",o.TEXT="text",o))(gf||{}),wt=P({apiKey:m()}),oO=wt,nO=P({apiKey:m(),apiKeyHash:m()}),iO=wt,aO=wt,sO=wt,cO=wt,uO=wt,lO=wt,dO=wt,Uv=P({serviceAccountJson:m().check(Ie(1))}),Lv=P({accessKeyId:m().check(Ie(1)),secretAccessKey:m().check(Ie(1)),sessionToken:E(m())}),pO=P({}),mO=P({}),fO=P({}),hO=P({}),gO=P({}),yO=P({}),yf=P({modelId:m(),modelName:m(),modelType:H(gf)}),Fv=P({apiKeyHeader:m(),baseUrl:m(),models:Z(yf),defaultHeaders:E(K(m(),m())),apiStyle:E(H(["chat","responses"]))}),jv=P({accountId:m(),gatewayId:m(),models:Z(yf),vertexProject:E(m()),vertexRegion:E(m())}),Bv=P({resourceName:m(),apiVersion:Zt(Ht(e=>typeof e=="string"&&e.trim().length===0?void 0:e),E(m()))}),Vv=P({region:m().check(Ie(1))}),Hv=P({project:m().check(ze(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:m().check(ze(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Z(yf)}),Zv=P({}),vO=ee([oO,sO,cO,uO,lO,aO,iO,nO,Lv,Uv,dO]),qv=ee([Fv,jv,Bv,Hv,Vv,pO,fO,hO,gO,mO,yO,Zv]),xO=P({id:m(),name:m(),type:H(gf)}),_O=P({id:m(),name:m(),provider:H(Wt),config:qv,enabledForChat:se()}),PO=P({provider:H(Wt),name:m(),enabledForChat:se(),keys:Z(P({id:m(),name:m()}))}),bO=P({provider:H(Wt),configId:m(),config:qv,auth:vO,platformId:m()});var y1={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Nv=["gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],AO=["claude-sonnet-5-5","claude-opus-5-5","claude-haiku-5-5"],EO=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Gv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],mf=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],hf=["gemini-2.5-pro","gemini-2.5-flash"],TO=["grok-4.20"],v1={anthropic:EO,google:hf,vertex:hf},x1=[...Gv.map(e=>`anthropic/${e}`),"deepseek/deepseek-v4.1-flash"],IO={openai:Nv,anthropic:AO,google:mf,vertex:mf,activepieces:[...Gv.map(e=>`anthropic/${e}`),...Nv.map(e=>`openai/${e}`),...[...mf,...hf].map(e=>`google/${e}`),...TO.map(e=>`x-ai/${e}`)]};var Mv=128e3,SO={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function wO({provider:e}){return e?SO[e]??Mv:Mv}s(wO,"getMaxContextTokens");var ff={openai:["text-embedding-3-small","text-embedding-3-large"],google:["text-embedding-004","gemini-embedding-001"],azure:["text-embedding-3-small","text-embedding-3-large"],activepieces:["text-embedding-3-small"],openrouter:["openai/text-embedding-3-small","openai/text-embedding-3-large"]},OO={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},kO=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),$O={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 Ne(e){return{chatModels:IO[e],maxContextTokens:wO({provider:e}),embeddingModels:ff[e]??[],defaultEmbeddingModel:ff[e]?.[0],supportsEmbedding:(ff[e]??[]).length>0,supportsImageGeneration:!kO.has(e),defaultImageModel:RO[e],webSearch:OO[e]}}s(Ne,"buildProviderCapabilities");var Wv=[{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"}],RO={activepieces:Wv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},CO={openai:Ne("openai"),anthropic:Ne("anthropic"),openrouter:Ne("openrouter"),azure:Ne("azure"),google:Ne("google"),"cloudflare-gateway":Ne("cloudflare-gateway"),custom:Ne("custom"),bedrock:Ne("bedrock"),vertex:Ne("vertex"),mistral:Ne("mistral"),activepieces:Ne("activepieces"),xai:Ne("xai"),deepseek:Ne("deepseek"),zai:Ne("zai"),qwen:Ne("qwen"),minimax:Ne("minimax"),moonshot:Ne("moonshot")};var DO=P({base64Url:m(),fileName:m(),extension:E(m())}),zO=P({mimeType:m(),url:m(),fileName:E(m())}),vf=ee([DO,zO]);var NO=ee([P({type:V("file"),value:vf}),P({type:V("markdown"),value:m(),files:E(Z(vf))})]),MO=P({sessionId:m(),message:m(),files:E(Z(m()))});var Jv=(o=>(o.ON_NEW_RECORD="ON_NEW_RECORD",o.ON_UPDATE_RECORD="ON_UPDATE_RECORD",o))(Jv||{}),Xv=(o=>(o.ENABLED="ENABLED",o.DISABLED="DISABLED",o))(Xv||{}),xf=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(xf||{});var UO=ee([P({...it,name:m(),externalId:m(),type:V("STATIC_DROPDOWN"),tableId:m(),projectId:m(),data:P({options:Z(P({value:m()}))})}),P({...it,name:m(),externalId:m(),type:ee([V("TEXT"),V("NUMBER"),V("DATE"),V("DATETIME")]),tableId:m(),projectId:m()})]),LO=P({...it,name:m(),folderId:_e(m()),projectId:m(),externalId:m(),status:Kp(Xv),trigger:Kp(Jv)}),FO=P({...it,tableId:m(),projectId:m(),cells:K(m(),P({updated:m(),created:m(),value:W(),fieldName:m()}))}),jO=P({events:Z(H(xf)),webhookUrl:m(),flowId:m()}),BO=P({fields:Z(P({id:m(),name:m()})),rows:Z(K(m(),m())),name:m()}),VO=P({projectId:m(),limit:E(hi.number()),cursor:E(m()),name:E(m()),externalIds:Js(m()),folderId:E(m()),folderIds:Js(m())}),HO=P({records:Z(Z(P({fieldId:m(),value:Qv()}))),tableId:m()}),ZO=P({cells:E(Z(P({fieldId:m(),value:Qv()}))),tableId:m(),agentUpdate:E(se())}),Yv=Vt("operator",[Er("eq"),Er("neq"),Er("gt"),Er("gte"),Er("lt"),Er("lte"),Er("co"),Kv("exists"),Kv("not_exists")]),qO=P({tableId:m(),limit:E(hi.number()),cursor:E(m()),filters:Js(Yv)});function Qv(){return Zt(Ht(e=>e==null?e:String(e)),fi(m()))}s(Qv,"coerceToString");function Er(e){return P({fieldId:m(),operator:V(e),value:m()})}s(Er,"valueFilter");function Kv(e){return P({fieldId:m(),operator:V(e)})}s(Kv,"existenceFilter");var GO=P({status:E(Ce()),body:E(W()),headers:E(K(m(),m()))}),WO=P({...it,deleted:_e(Gt),ownerId:m(),displayName:m(),platformId:m(),externalId:_e(m())});var ex=P({name:m(),description:E(m()),type:m(),required:se()}),KO=P({pieceName:m(),triggerName:m(),input:P({toolName:m(),toolDescription:m(),inputSchema:Z(ex),returnsResponse:se()})});var tx="^[0-9]+\\.[0-9]+\\.[0-9]+$",U1=new RegExp(tx),XO="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",L1=m().check(ze(new RegExp(tx))),F1=m().check(ze(new RegExp(XO))),YO=P({packageType:V("ARCHIVE"),pieceType:H(Qr),pieceName:m(),pieceVersion:m(),archiveId:m(),platformId:m()}),rx=P({packageType:V("REGISTRY"),pieceType:V("OFFICIAL"),pieceName:m(),pieceVersion:m()}),ox=P({packageType:V("REGISTRY"),pieceType:V("CUSTOM"),pieceName:m(),pieceVersion:m(),platformId:m()}),j1=ee([rx,ox]),B1=ee([YO,rx,ox]);var QO=Vt("type",[P({type:V("CRON_EXPRESSION"),cronExpression:m(),timezone:m()}),P({type:V("INTERVAL"),intervalMs:Ig().check(Oe(6e4))})]),V1=P({...it,type:H(mt),projectId:m(),flowId:m(),triggerName:m(),schedule:_e(QO),flowVersionId:m(),pieceName:m(),pieceVersion:m(),deleted:_e(m()),simulate:se()}),nx=(w=>(w.UNKNOWN="UNKNOWN",w.FLOW_RUN_LOG="FLOW_RUN_LOG",w.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",w.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",w.FLOW_STEP_FILE="FLOW_STEP_FILE",w.SAMPLE_DATA="SAMPLE_DATA",w.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",w.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",w.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",w.PROJECT_RELEASE="PROJECT_RELEASE",w.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",w.PLATFORM_ASSET="PLATFORM_ASSET",w.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",w.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",w.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",w.KNOWLEDGE_BASE="KNOWLEDGE_BASE",w.FLOW_BUNDLE="FLOW_BUNDLE",w.PREWARM_SCOPE="PREWARM_SCOPE",w))(nx||{}),ix=(o=>(o.NONE="NONE",o.ZSTD="ZSTD",o))(ix||{}),ax=(o=>(o.S3="S3",o.DB="DB",o))(ax||{}),H1=P({...it,projectId:_e(m()),platformId:_e(m()),type:H(nx),compression:H(ix),data:E(W()),location:H(ax),size:_e(Ce()),fileName:_e(m()),s3Key:_e(m()),metadata:_e(K(m(),m()))}),sx=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(sx||{}),cx=(o=>(o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o))(cx||{}),Z1=P({id:m(),email:m(),firstName:m(),status:H(cx),externalId:_e(m()),platformId:_e(m()),platformRole:H(sx),lastName:m(),created:Gt,updated:Gt,lastActiveDate:_e(Gt),imageUrl:_e(m())});var Pf=P({...ae.shape,...X(K(m(),W()),"OBJECT").shape});var bf=P({...ae.shape,formatProperty:E(m()),...X(m(),"RICH_TEXT").shape});var px=P({...ae.shape,...X(m(),"COLOR").shape});var Af=ee([et,At,bf,Ws,Tt,tt,Et,jp,gi,Vp,It,xi,Pf,_i,vi,Bp,yi,px]),h={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var ht=P({displayName:m(),description:E(m()),hasConnectionIdentifier:E(se())});var mx=P({username:m(),password:m()}),Ef=P({...ht.shape,username:P({displayName:m(),description:E(m())}),password:P({displayName:m(),description:E(m())}),...X(mx,"BASIC_AUTH").shape});var rk=K(m(),ee([et,At,It,Tt,tt])),Tf=P({...ht.shape,props:rk,...X(W(),"CUSTOM_AUTH").shape});var Tr=P({...ht.shape,...X(P({auth:m()}),"SECRET_TEXT").shape});var ok=K(m(),ee([et,At,Tr,It,Tt,tt,Et,Ws])),fx=P({...ht.shape,props:ok,...X(W(),"OIDC").shape});var If=(o=>(o.HEADER="HEADER",o.BODY="BODY",o))(If||{}),hx=ee([et,Tr,tt]),gx=K(m(),hx),yx=P({serverUrlProp:m(),authUrlProp:m(),tokenUrlProp:m(),scopesProp:E(m())}),nk=P({props:E(K(m(),hx)),authUrl:m(),tokenUrl:m(),scope:Z(m()),prompt:E(ee([V("none"),V("consent"),V("login"),V("omit")])),pkce:E(se()),pkceMethod:E(ee([V("plain"),V("S256")])),authorizationMethod:E(H(If)),grantType:E(ee([H(bi),V(Hp)])),extra:E(K(m(),m())),discovery:E(yx)}),vx=P({access_token:m(),props:E(gx),data:K(m(),mi())}),Sf=P({...ht.shape,...nk.shape,...X(vx,"OAUTH2").shape});var uo=ee([Ef,Tf,fx,Sf,Tr]),Ui="Connection",wf={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Ui}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Ui,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Ui}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Ui}},None(){}};var wB={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 ik=P({...ae.shape,...X(W(),"CUSTOM").shape,code:m()});var ak=ee([Af,uo]),Of=K(m(),ak),WB=K(m(),Af);var xx=ee([P({strategy:V("CRON"),cronExpression:m()}),P({strategy:V("NONE")})]),lo=class{constructor(t,o,n,r,i,a,c,u,l,d,g,f,p,v,b,T,A,w,B,ie,ue){this.name=t;this.displayName=o;this.description=n;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=c;this.onHandshake=u;this.renewConfiguration=l;this.onRenew=d;this.onEnable=g;this.onDisable=f;this.onStart=p;this.run=v;this.test=b;this.sampleData=T;this.testStrategy=A;this.outputSchema=w;this.aiMetadata=B;this.classification=ie;this.propertyGroups=ue}static{s(this,"ITrigger")}},po=s(e=>{switch(e.type){case"WEBHOOK":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,le(e.sampleData)&&le(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var _x="2",$c="0.82.0";var kf=class{constructor(t,o,n,r,i,a,c,u,l=$c,d,g="",f){this.displayName=t;this.logoUrl=o;this.authors=n;this.events=r;this.categories=c;this.auth=u;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=g;this.deprecated=f;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:_x}),"getContextInfo");(!ck(l)||uk(l,$c))&&(this.minimumSupportedRelease=$c),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(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:sk(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},bx=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((o,n,r)=>n===r.findIndex(i=>i.type===o.type)))throw new Error("Auth properties must be unique by type");return new kf(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function sk(e){if(e!==void 0)return Array.isArray(e)?e.map(Px):Px(e)}s(sk,"withConnectionIdentifierFlag");function Px(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(Px,"flagConnectionIdentifier");function ck(e){return/^\d+\.\d+\.\d+$/.test(e)}s(ck,"isValidSimpleSemver");function uk(e,t){let[o,n,r]=e.split(".").map(Number),[i,a,c]=t.split(".").map(Number);return o!==i?o<i:n!==a?n<a:r<c}s(uk,"isSemverLessThan");var lk=E(K(m(),K(m(),m()))),Ax=P({id:E(m()),name:m(),displayName:m(),logoUrl:m(),description:m(),authors:Z(m()),platformId:E(m()),directoryPath:E(m()),auth:E(ee([uo,Z(uo)])),version:m(),categories:E(Z(H(_r))),minimumSupportedRelease:E(m()),maximumSupportedRelease:E(m()),deprecated:E(se()),i18n:lk}),dk=H(["human","ai","both"]),Ex=P({description:E(m()),idempotent:E(se())}),Tx=H(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var pk=H(["tabs","section","summary","builder","footer"]),Ix=P({key:m(),display:pk,label:E(m()),description:E(m()),icon:E(m()),props:Z(m())}),Sx=P({name:m(),displayName:m(),description:m(),props:Of,propertyGroups:E(Z(Ix)),requireAuth:se(),errorHandlingOptions:E(Fp),outputSchema:E(Zs()),audience:E(dk),aiMetadata:E(Ex),classification:E(Tx)}),wx=P({name:m(),displayName:m(),description:m(),props:Of,propertyGroups:E(Z(Ix)),errorHandlingOptions:E(Fp),type:H(mt),sampleData:W(),handshakeConfiguration:E(Zs()),renewConfiguration:E(xx),testStrategy:H(Ei),outputSchema:E(Zs()),aiMetadata:E(Ex),classification:E(Tx)}),mk=P({...Ax.shape,actions:K(m(),Sx),triggers:K(m(),wx)}),fk=P({...Ax.shape,actions:Ce(),triggers:Ce(),suggestedActions:E(Z(Sx)),suggestedTriggers:E(Z(wx))}),Ox=P({projectUsage:Ce(),pieceType:H(Qr),packageType:H(Pi),platformId:E(m()),archiveId:E(m())}),Y6=P({...mk.shape,...Ox.shape}),Q6=P({...fk.shape,...Ox.shape}),eV=P({name:m(),version:m()});var $x=Le(require("path")),$f=Le(require("fs/promises"));var Rc={translatePiece:s(({piece:e,locale:t})=>{let o=t?e.i18n?.[t]:void 0;if(!o)return e;let n=kx(e.categories)?gk:hk;return Dx({node:e,tree:n,translations:o})},"translatePiece"),pathsToTranslate:s(e=>kx(e)?[...Rc.pathsToValuesToTranslate,"displayName"]:Rc.pathsToValuesToTranslate,"pathsToTranslate"),initializeI18n:s(async e=>{try{let t=Object.values(Jp),o={};for(let n of t){let r=await _k(n,e);r&&(o[n]=r)}return Object.keys(o).length>0?o:void 0}catch(t){console.log(`Error initializing i18n for ${e}:`,t);return}},"initializeI18n"),pathsToValuesToTranslate:["description","auth.username.displayName","auth.username.description","auth.password.displayName","auth.password.description","auth.props.*.displayName","auth.props.*.description","auth.props.*.options.options.*.label","auth.description","actions.*.displayName","actions.*.description","actions.*.props.*.displayName","actions.*.props.*.description","actions.*.props.*.options.options.*.label","actions.*.propertyGroups.*.label","actions.*.propertyGroups.*.description","triggers.*.displayName","triggers.*.description","triggers.*.props.*.displayName","triggers.*.props.*.description","triggers.*.props.*.options.options.*.label","triggers.*.propertyGroups.*.label","triggers.*.propertyGroups.*.description"]},hk=Rx(Rc.pathsToTranslate()),gk=Rx(Rc.pathsToTranslate(["CORE"]));function Rx(e){return e.reduce((t,o)=>Cx({tree:t,keys:o.split(".")}),{})}s(Rx,"buildTree");function kx(e){return e?.includes("CORE")??!1}s(kx,"isCorePiece");function Cx({tree:e,keys:[t,...o]}){return{...e,[t]:o.length===0?null:Cx({tree:e[t]??{},keys:o})}}s(Cx,"addPath");function Dx({node:e,tree:t,translations:o}){if(!vk(e))return e;let n={},r=!1;for(let[i,a]of Object.entries(t))for(let c of i==="*"?Object.keys(e):[i]){let u=e[c],l=a===null?yk({value:u,translations:o}):Dx({node:u,tree:a,translations:o});l!==u&&(n[c]=l,r=!0)}return r?Object.assign(Array.isArray(e)?[]:{},e,n):e}s(Dx,"translateNode");function yk({value:e,translations:t}){return typeof e!="string"?e:t[e.slice(0,512)]||e}s(yk,"translateValue");function vk(e){return typeof e=="object"&&e!==null}s(vk,"isRecord");async function xk(e){try{return await $f.default.access(e),!0}catch{return!1}}s(xk,"fileExists");var _k=s(async(e,t)=>{let o=$x.default.join(t,"src","i18n",`${e}.json`);if(!await xk(o))return null;try{let n=await $f.default.readFile(o,"utf8"),r=JSON.parse(n);if(typeof r=="object"&&r!==null)return r;throw new Error(`Invalid i18n file format for ${e} in piece ${t}`)}catch(n){return console.error(`Error reading i18n file for ${e} in piece ${t}:`,n),null}},"readLocaleFile");var mo=require("node:stream");var Cc=class{constructor(t,o){this.baseUrl=t;this.authenticationConverter=o}static{s(this,"BaseHttpClient")}getUrl(t){let o=new URL(`${this.baseUrl}${t.url}`),n=`${o.origin}${o.pathname}`,r=new URLSearchParams;return o.searchParams.forEach((i,a)=>{r.append(a,i)}),{urlWithoutQueryParams:n,queryParams:r}}getHeaders(t){let o={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,o),t.body&&(t.headers?.["Content-Type"]==="text/csv"?o["Content-Type"]="text/csv":o["Content-Type"]="application/json"),t.headers&&(o={...o,...t.headers}),o}populateAuthentication(t,o){this.authenticationConverter.convert(t,o)}};var Dc=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new Rf,o=new Cf){this.converters={BEARER_TOKEN:t,BASIC:o}}convert(t,o){return this.converters[t.type].convert(t,o)}},Rf=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,o){return o.Authorization=`Bearer ${t.token}`,o}},Cf=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,o){let n=`${t.username}:${t.password}`,r=Buffer.from(n).toString("base64");return o.Authorization=`Basic ${r}`,o}};var Li=class extends Error{constructor(o,n){let r=n.status||500,i=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:o}}));this.requestBody=o;this.status=r,this.responseBody=i}static{s(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 zx({error:e,requestBody:t}){return e instanceof Li?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(zx,"toFailsafeOutput");var Df=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Df||{});var zc=class extends Cc{static{s(this,"FetchHttpClient")}constructor(t="",o=new Dc){super(t,o)}async sendRequest(t,o){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=Ux(t.body)?wk(i):i,c=t.queryParams??{};for(let[ie,ue]of Object.entries(c))r.append(ie,ue);let u=r.toString(),l=u?`${n}?${u}`:n,d=t.responseType??"json",g=t.followRedirects??!0,f=t.retries??0,{body:p,extraHeaders:v,isStream:b}=Nc(t.method)?bk(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},T=Ek({...a,...v}),A=await Ak(async()=>{let ie=new AbortController,ue=t.timeout&&t.timeout>0?setTimeout(()=>ie.abort(),t.timeout):void 0;try{let Se={method:t.method.toString(),headers:T,body:p,redirect:g?"follow":"manual",signal:ie.signal};return b&&(Se.duplex="half"),o?.dispatcher!==void 0&&(Se.dispatcher=o.dispatcher),await fetch(l,Se)}finally{ue!==void 0&&clearTimeout(ue)}},b?0:f),w=g?300:400;if(A.status<200||A.status>=w){let ie=await Nx(A,d==="stream"?"text":d),ue=new Li(t.redactBodyInErrors===!0?Pk:t.body,{status:A.status,responseBody:ie});throw console.error("[HttpClient#(sanitized error message)] Request failed:",ue),ue}let B=await Nx(A,d);return{status:A.status,headers:Tk(A.headers),body:B}}},Pk="[redacted]";function Nc(e){return e!=="GET"&&e!=="HEAD"}s(Nc,"acceptsRequestBody");function bk(e,t){if(Lx(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Sk(e)){let n=Ik(e);if(n!==null)return{body:n,extraHeaders:e.getHeaders(),isStream:!1};let r=new mo.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof mo.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||Ux(e)||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(bk,"serializeBody");async function Nx(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Lx(e.body)?mo.Readable.from([]):mo.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let o=await e.text();if(o.length===0)return;try{return JSON.parse(o)}catch{return o}}}}s(Nx,"parseResponseBody");async function Ak(e,t){let o;for(let n=0;n<=t;n++)try{let r=await e();if(r.status>=500&&n<t){await Mx(n);continue}return r}catch(r){if(o=r,n<t){await Mx(n);continue}throw r}throw o}s(Ak,"sendWithRetries");function Mx(e){let t=Math.min(1e3*2**e,3e4);return new Promise(o=>setTimeout(o,t))}s(Mx,"backoff");function Ek(e){let t=new Map;for(let[o,n]of Object.entries(e))n!==void 0&&t.set(o.toLowerCase(),[o,Array.isArray(n)?n.join(", "):n]);return Object.fromEntries(t.values())}s(Ek,"normalizeHeaders");function Tk(e){let t={};return e.forEach((o,n)=>{t[n]=o}),t}s(Tk,"toHttpHeaders");function Ik(e){if(!e.hasKnownLength()||e.getLengthSync()>Ok)return null;let{data:t}=Gp(()=>e.getBuffer());return t}s(Ik,"bufferFormDataIfSafe");function Sk(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(Sk,"isNodeFormData");function Ux(e){return typeof FormData<"u"&&e instanceof FormData}s(Ux,"isNativeFormData");function wk(e){return Object.fromEntries(Object.entries(e).filter(([t])=>t.toLowerCase()!=="content-type"))}s(wk,"withoutContentType");function Lx(e){return e==null}s(Lx,"isNil");var Ok=100*1024*1024;var Fx=new zc;var gR=Le(require("fs"));var yR={"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 vR(e){let t=e.split(";")[0].trim().toLowerCase();return yR[t]??""}s(vR,"contentTypeToExtension");var xR=s(({baseUrl:e,relativePath:t})=>{let o=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${o}${n}`},"joinBaseUrlWithRelativePath"),_R=s((e,t)=>{let o="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??o}catch{return o}},"getBaseUrlForDescription");function qP({auth:e,baseUrl:t,authMapping:o,description:n,displayName:r,name:i,props:a,extraProps:c,authLocation:u="headers",classification:l="WRITE"}){return O({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:h.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:h.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${_R(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:h.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Df).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:h.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:h.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:h.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>Nc(d)?{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:h.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:g})=>{if(!d||!Nc(g))return{};let f=d,p={};switch(f){case"none":break;case"json":p.data=h.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=h.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=h.Array({displayName:"Form Data",required:!0,properties:{fieldName:h.ShortText({displayName:"Field Name",required:!0}),fieldType:h.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:h.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:h.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:h.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:h.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:h.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:h.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...c},propertyGroups:[{key:"request",display:"section",label:"Request",icon:"send",props:["method","url","headers","queryParams"]},{key:"payload",display:"section",label:"Data to send",icon:"code",props:["body_type","body"]}],run:s(async d=>{let{method:g,url:f,headers:p,queryParams:v,body:b,body_type:T,failsafe:A,timeout:w,response_is_binary:B,followRedirects:ie}=d.propsValue;St(g,"Method"),St(f,"URL");let ue=le(o)?{}:await o(d.auth,d.propsValue),Se=f.url,Ae=Se.startsWith("http://")||Se.startsWith("https://")?Se:xR({baseUrl:t(d.auth),relativePath:Se}),oe={method:g,url:Ae,headers:{...p??{},...u==="headers"||!le(u)?ue:{}},queryParams:{...u==="queryParams"?ue:{},...v??{}},timeout:w?w*1e3:0,followRedirects:ie};if(B&&(oe.responseType="arraybuffer"),b)if(T&&T!=="none"){let Ve=b.data;if(T==="form_data"){let ra=Ve,{default:Y}=await Promise.resolve().then(()=>Le(ZP())),U=new Y;for(let{fieldName:M,fieldType:j,textFieldValue:L,fileFieldValue:J}of ra)j==="text"&&!Ti(L)?U.append(M,L):j==="file"&&!Ti(J)&&U.append(M,J.data,{filename:J?.filename});oe.body=U,oe.headers={...oe.headers,...U.getHeaders()}}else oe.body=Ve}else T||(oe.body=b);try{let Ve=await Fx.sendRequest(oe);return await PR(d.files,Ve.body,Ve.status,Ve.headers,B)}catch(Ve){if(A)return zx({error:Ve,requestBody:oe.body});throw Ve}},"run")})}s(qP,"createCustomApiCallAction");var PR=s(async(e,t,o,n,r)=>{let i;if(r&&bR(t)){let a=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],c=vR(a??"")||"txt",u;t instanceof ArrayBuffer?u=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?u=t:u=Buffer.from(t),i=await e.write({fileName:`output.${c}`,data:u})}else i=t;return{status:o,headers:n,body:i}},"handleBinaryResponse"),bR=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var gt={async poll(e,{store:t,auth:o,propsValue:n,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let c=await t.get("lastPoll");if(le(c))throw new Error("lastPoll doesn't exist in the store.");let u=await e.items({store:t,auth:o,propsValue:n,lastFetchEpochMS:c,server:a}),l=u.reduce((d,g)=>Math.max(d,g.epochMilliSeconds),c);return await t.put("lastPoll",l),u.filter(d=>d.epochMilliSeconds>c).map(d=>d.data)}case 1:{let c=await t.get("lastItem"),u=await e.items({store:t,auth:o,propsValue:n,lastItemId:c,files:i,server:a}),l=u.findIndex(f=>f.id===c),d=[];le(c)||l==-1?d=u??[]:d=u?.slice(0,l)??[],le(r)||(d=d.slice(-r));let g=d?.[0]?.id;return le(g)||await t.put("lastItem",g),d.map(f=>f.data)}}},async onEnable(e,{store:t,auth:o,propsValue:n,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!le(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!le(await t.get("lastItem")))break;let c=(await e.items({store:t,auth:o,propsValue:n,lastItemId:null,server:r}))?.[0]?.id;le(c)?await t.delete("lastItem"):await t.put("lastItem",c);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:o,store:n,files:r,server:i}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:n,auth:t,propsValue:o,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:n,auth:t,propsValue:o,lastItemId:null,files:r,server:i});break}}return AR(a.map(c=>c.data))}};function AR(e){return e.length<=5?e:e.slice(0,5)}s(AR,"getFirstFiveOrAll");var Vi="login.microsoftonline.com",KP="login.microsoftonline.us",GP="Mail.ReadWrite Mail.Send Calendars.Read offline_access User.Read openid email profile",ER="https://graph.microsoft.com/.default",TR="https://graph.microsoft.us/.default",WP={[Vi]:"https://graph.microsoft.com",[KP]:"https://graph.microsoft.us"},JP=h.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Vi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Vi},{label:"US Government (GCC High)",value:KP}]}}),XP=h.StaticDropdown({displayName:"Access Mode",description:"Pick the option matching your Grant Type. Use a Delegated option with the Authorization Code grant (acts as the signed-in user). Use an App-only option with the Client Credentials grant (acts as the application \u2014 also set Tenant ID and Mailbox), choosing the one that matches your Cloud Environment.",required:!0,defaultValue:GP,options:{disabled:!1,options:[{label:"Delegated \u2014 Commercial (Global)",value:GP},{label:"App-only \u2014 Commercial (Global)",value:ER},{label:"App-only \u2014 US Government (GCC High)",value:TR}]}});function YP(e){return e??Vi}s(YP,"resolveCloudHost");function qc(e){return YP(e.props?.cloud)}s(qc,"getMicrosoftCloudFromAuth");function xo(e){let t=YP(e);return WP[t]??WP[Vi]}s(xo,"getGraphBaseUrl");var cA=Le(Ji());function KD(e){let t=qc(e);return cA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:xo(t)})}s(KD,"createClient");function JD(e){let t=e.props?.mailbox?.trim();return t?`/users/${encodeURIComponent(t)}`:"/me"}s(JD,"mailboxPrefix");function XD(e){return Array.isArray(e)?e.filter(t=>t!=null).map(t=>String(t).trim()).filter(t=>t.length>0).map(t=>({emailAddress:{address:t}})):[]}s(XD,"toRecipients");var _={createClient:KD,mailboxPrefix:JD,toRecipients:XD};var YD=`
44
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(c.cycle){i(a);continue}if(c.count>1&&e.reused==="ref"){i(a);continue}}}s(Bt,"extractDefs");function Vt(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s(a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){n(d);let f=e.seen.get(d),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(p)):Object.assign(u,p),Object.assign(u,l),a._zod.parent===d)for(let b in u)b==="$ref"||b==="allOf"||b in l||delete u[b];if(p.$ref&&f.def)for(let b in u)b==="$ref"||b==="allOf"||b in f.def&&JSON.stringify(u[b])===JSON.stringify(f.def[b])&&delete u[b]}let h=a._zod.parent;if(h&&h!==d){n(h);let f=e.seen.get(h);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let p in u)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(u[p])===JSON.stringify(f.def[p])&&delete u[p]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())n(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,o.def??o.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xr(t,"input",e.processors),output:Xr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Vt,"finalize");function Be(e,t){let o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Be(n.element,o);if(n.type==="set")return Be(n.valueType,o);if(n.type==="lazy")return Be(n.getter(),o);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Be(n.innerType,o);if(n.type==="intersection")return Be(n.left,o)||Be(n.right,o);if(n.type==="record"||n.type==="map")return Be(n.keyType,o)||Be(n.valueType,o);if(n.type==="pipe")return Be(n.in,o)||Be(n.out,o);if(n.type==="object"){for(let r in n.shape)if(Be(n.shape[r],o))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(Be(r,o))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(Be(r,o))return!0;return!!(n.rest&&Be(n.rest,o))}return!1}s(Be,"isTransforming");var Jd=s((e,t={})=>o=>{let n=jt({...o,processors:t});return pe(e,n),Bt(n,e),Vt(n,e)},"createToJSONSchemaMethod"),Xr=s((e,t,o={})=>n=>{let{libraryOptions:r,target:i}=n??{},a=jt({...r??{},target:i,io:t,processors:o});return pe(e,a),Bt(a,e),Vt(a,e)},"createStandardJSONSchemaMethod");var HS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Xd=s((e,t,o,n)=>{let r=o;r.type="string";let{minimum:i,maximum:a,format:c,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),c&&(r.format=HS[c]??c,r.format===""&&delete r.format,c==="time"&&delete r.format),l&&(r.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},"stringProcessor"),Yd=s((e,t,o,n)=>{let r=o,{minimum:i,maximum:a,format:c,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof c=="string"&&c.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof i=="number"&&(r.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},"numberProcessor"),Qd=s((e,t,o,n)=>{o.type="boolean"},"booleanProcessor"),ep=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),tp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),rp=s((e,t,o,n)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},"nullProcessor"),op=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),np=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),ip=s((e,t,o,n)=>{o.not={}},"neverProcessor"),ap=s((e,t,o,n)=>{},"anyProcessor"),sp=s((e,t,o,n)=>{},"unknownProcessor"),cp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),up=s((e,t,o,n)=>{let r=e._zod.def,i=Bo(r.entries);i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),o.enum=i},"enumProcessor"),lp=s((e,t,o,n)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];o.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[a]:o.const=a}else i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),i.every(a=>typeof a=="boolean")&&(o.type="boolean"),i.every(a=>a===null)&&(o.type="null"),o.enum=i},"literalProcessor"),dp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),pp=s((e,t,o,n)=>{let r=o,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),mp=s((e,t,o,n)=>{let r=o,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(i.minLength=a),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),fp=s((e,t,o,n)=>{o.type="boolean"},"successProcessor"),gp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),hp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),yp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),vp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),xp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),_p=s((e,t,o,n)=>{let r=o,i=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof c=="number"&&(r.maxItems=c),r.type="array",r.items=pe(i.element,t,{...n,path:[...n.path,"items"]})},"arrayProcessor"),Pp=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=pe(a[l],t,{...n,path:[...n.path,"properties",l]});let c=new Set(Object.keys(a)),u=new Set([...c].filter(l=>{let d=i.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(r.required=Array.from(u)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=pe(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),Fs=s((e,t,o,n)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((c,u)=>pe(c,t,{...n,path:[...n.path,i?"oneOf":"anyOf",u]}));i?o.oneOf=a:o.anyOf=a},"unionProcessor"),bp=s((e,t,o,n)=>{let r=e._zod.def,i=pe(r.left,t,{...n,path:[...n.path,"allOf",0]}),a=pe(r.right,t,{...n,path:[...n.path,"allOf",1]}),c=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),u=[...c(i)?i.allOf:[i],...c(a)?a.allOf:[a]];o.allOf=u},"intersectionProcessor"),Ap=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((f,p)=>pe(f,t,{...n,path:[...n.path,a,p]})),l=i.rest?pe(i.rest,t,{...n,path:[...n.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:u},l&&r.items.anyOf.push(l),r.minItems=u.length,l||(r.maxItems=u.length)):(r.items=u,l&&(r.additionalItems=l));let{minimum:d,maximum:h}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof h=="number"&&(r.maxItems=h)},"tupleProcessor"),Ep=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=pe(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});r.patternProperties={};for(let h of u)r.patternProperties[h.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=pe(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=pe(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(h=>typeof h=="string"||typeof h=="number");d.length>0&&(r.required=d)}},"recordProcessor"),Tp=s((e,t,o,n)=>{let r=e._zod.def,i=pe(r.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,o.nullable=!0):o.anyOf=[i,{type:"null"}]},"nullableProcessor"),Ip=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),Sp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),wp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),Op=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=a},"catchProcessor"),kp=s((e,t,o,n)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;pe(i,t,n);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),Rp=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.readOnly=!0},"readonlyProcessor"),$p=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),js=s((e,t,o,n)=>{let r=e._zod.def;pe(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),Cp=s((e,t,o,n)=>{let r=e._zod.innerType;pe(r,t,n);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ls={string:Xd,number:Yd,boolean:Qd,bigint:ep,symbol:tp,null:rp,undefined:op,void:np,never:ip,any:ap,unknown:sp,date:cp,enum:up,literal:lp,nan:dp,template_literal:pp,file:mp,success:fp,custom:gp,function:hp,transform:yp,map:vp,set:xp,array:_p,object:Pp,union:Fs,intersection:bp,tuple:Ap,record:Ep,nullable:Tp,nonoptional:Ip,default:Sp,prefault:wp,catch:Op,pipe:kp,readonly:Rp,promise:$p,optional:js,lazy:Cp};function pi(e,t){if("_idmap"in e){let n=e,r=jt({...t,processors:Ls}),i={};for(let u of n._idmap.entries()){let[l,d]=u;pe(d,r)}let a={},c={registry:n,uri:t?.uri,defs:i};r.external=c;for(let u of n._idmap.entries()){let[l,d]=u;Bt(r,d),a[l]=Vt(r,d)}if(Object.keys(i).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let o=jt({...t,processors:Ls});return pe(e,o),Bt(o,e),Vt(o,e)}s(pi,"toJSONSchema");var Bs=class{static{s(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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let o=t?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=jt({processors:Ls,target:o,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,o={path:[],schemaPath:[]}){return pe(t,this.ctx,o)}emit(t,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),Bt(this.ctx,t);let n=Vt(this.ctx,t),{"~standard":r,...i}=n;return i}};var Eh={};var we=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");q.init(e,t),e.def=t,e.type=t.type,e.parse=(o,n)=>nr(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>Lr(e,o,n),e.parseAsync=async(o,n)=>ir(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>jr(e,o,n),e.check=(...o)=>e.clone({...t,checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(o,n)=>$e(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.apply=o=>o(e)}),Vs=y("ZodMiniString",(e,t)=>{_t.init(e,t),we.init(e,t)});function m(e){return An(Vs,e)}s(m,"string");var Yr=y("ZodMiniStringFormat",(e,t)=>{de.init(e,t),Vs.init(e,t)});var GS=y("ZodMiniURL",(e,t)=>{Xo.init(e,t),Yr.init(e,t)});function Th(e){return ur(GS,e)}s(Th,"url");var Hs=y("ZodMiniNumber",(e,t)=>{Vr.init(e,t),we.init(e,t)});function De(e){return Kn(Hs,e)}s(De,"number");var WS=y("ZodMiniNumberFormat",(e,t)=>{rn.init(e,t),Hs.init(e,t)});function Ih(e){return Xn(WS,e)}s(Ih,"int");var Dp=y("ZodMiniBoolean",(e,t)=>{sr.init(e,t),we.init(e,t)});function se(e){return Yn(Dp,e)}s(se,"boolean");var Sh=y("ZodMiniBigInt",(e,t)=>{Hr.init(e,t),we.init(e,t)});var KS=y("ZodMiniAny",(e,t)=>{on.init(e,t),we.init(e,t)});function mi(){return ti(KS)}s(mi,"any");var JS=y("ZodMiniUnknown",(e,t)=>{nn.init(e,t),we.init(e,t)});function W(){return ri(JS)}s(W,"unknown");var XS=y("ZodMiniVoid",(e,t)=>{an.init(e,t),we.init(e,t)});function wh(e){return oi(XS,e)}s(wh,"_void");var Oh=y("ZodMiniDate",(e,t)=>{sn.init(e,t),we.init(e,t)});var YS=y("ZodMiniArray",(e,t)=>{cn.init(e,t),we.init(e,t)});function Z(e,t){return new YS({type:"array",element:e,...k(t)})}s(Z,"array");var QS=y("ZodMiniObject",(e,t)=>{Ya.init(e,t),we.init(e,t),Q(e,"shape",()=>t.shape)});function P(e,t){let o={type:"object",shape:e??{},...k(t)};return new QS(o)}s(P,"object");var ew=y("ZodMiniUnion",(e,t)=>{cr.init(e,t),we.init(e,t)});function ee(e,t){return new ew({type:"union",options:e,...k(t)})}s(ee,"union");var tw=y("ZodMiniDiscriminatedUnion",(e,t)=>{un.init(e,t),we.init(e,t)});function Ht(e,t,o){return new tw({type:"union",options:t,discriminator:e,...k(o)})}s(Ht,"discriminatedUnion");var rw=y("ZodMiniRecord",(e,t)=>{dn.init(e,t),we.init(e,t)});function K(e,t,o){return new rw({type:"record",keyType:e,valueType:t,...k(o)})}s(K,"record");var ow=y("ZodMiniEnum",(e,t)=>{pn.init(e,t),we.init(e,t),e.options=Object.values(t.entries)});function H(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ow({type:"enum",entries:o,...k(t)})}s(H,"_enum");var nw=y("ZodMiniLiteral",(e,t)=>{mn.init(e,t),we.init(e,t)});function V(e,t){return new nw({type:"literal",values:Array.isArray(e)?e:[e],...k(t)})}s(V,"literal");var iw=y("ZodMiniTransform",(e,t)=>{fn.init(e,t),we.init(e,t)});function Zt(e){return new iw({type:"transform",transform:e})}s(Zt,"transform");var aw=y("ZodMiniOptional",(e,t)=>{Zr.init(e,t),we.init(e,t)});function A(e){return new aw({type:"optional",innerType:e})}s(A,"optional");var sw=y("ZodMiniNullable",(e,t)=>{gn.init(e,t),we.init(e,t)});function fi(e){return new sw({type:"nullable",innerType:e})}s(fi,"nullable");var cw=y("ZodMiniPipe",(e,t)=>{hn.init(e,t),we.init(e,t)});function qt(e,t){return new cw({type:"pipe",in:e,out:t})}s(qt,"pipe");var kh=y("ZodMiniCustom",(e,t)=>{yn.init(e,t),we.init(e,t)});function Zs(e,t){return li(kh,e??(()=>!0),t)}s(Zs,"custom");function zp(e,t={}){return di(kh,e,t)}s(zp,"refine");var qs={};Xe(qs,{ZodMiniISODate:()=>Mp,ZodMiniISODateTime:()=>Np,ZodMiniISODuration:()=>Lp,ZodMiniISOTime:()=>Up,date:()=>lw,datetime:()=>uw,duration:()=>pw,time:()=>dw});var Np=y("ZodMiniISODateTime",(e,t)=>{Yo.init(e,t),Yr.init(e,t)});function uw(e){return Zn(Np,e)}s(uw,"datetime");var Mp=y("ZodMiniISODate",(e,t)=>{Qo.init(e,t),Yr.init(e,t)});function lw(e){return qn(Mp,e)}s(lw,"date");var Up=y("ZodMiniISOTime",(e,t)=>{en.init(e,t),Yr.init(e,t)});function dw(e){return Gn(Up,e)}s(dw,"time");var Lp=y("ZodMiniISODuration",(e,t)=>{tn.init(e,t),Yr.init(e,t)});function pw(e){return Wn(Lp,e)}s(pw,"duration");var gi={};Xe(gi,{bigint:()=>hw,boolean:()=>gw,date:()=>yw,number:()=>fw,string:()=>mw});function mw(e){return En(Vs,e)}s(mw,"string");function fw(e){return Jn(Hs,e)}s(fw,"number");function gw(e){return Qn(Dp,e)}s(gw,"boolean");function hw(e){return ei(Sh,e)}s(hw,"bigint");function yw(e){return ni(Oh,e)}s(yw,"date");var jp=P({retryOnFailure:P({defaultValue:A(se()),hide:A(se())}),continueOnFailure:P({defaultValue:A(se()),hide:A(se())})}),Fp=class{constructor(t,o,n,r,i,a,c,u,l,d,h,f,p){this.name=t;this.displayName=o;this.description=n;this.props=r;this.propertyGroups=i;this.run=a;this.test=c;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=h;this.aiMetadata=f;this.classification=p}static{s(this,"IAction")}},O=s(e=>new Fp(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ae=P({displayName:m(),description:A(m()),advanced:A(se()),width:A(H(["half","full"])),icon:A(m()),placeholder:A(m())}),X=s((e,t)=>P({type:V(t),required:se(),defaultValue:A(mi())}),"TPropertyValue");var et=P({...ae.shape,...X(m(),"SHORT_TEXT").shape}),At=P({...ae.shape,...X(m(),"LONG_TEXT").shape});var $h=P({label:m(),value:W(),description:A(m()),icon:A(m())}),Gs=P({disabled:A(se()),placeholder:A(m()),options:Z($h)});var xw=H(["cards"]),tt=P({...ae.shape,options:Gs,display:A(xw),...X(W(),"STATIC_DROPDOWN").shape}),Et=P({...ae.shape,options:Gs,...X(Z(W()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Bp=P({...ae.shape,...X(W(),"DROPDOWN").shape,refreshers:Z(m())}),hi=P({...ae.shape,...X(Z(W()),"MULTI_SELECT_DROPDOWN").shape,refreshers:Z(m())});var Tt=P({...ae.shape,reveals:A(Z(m())),...X(se(),"CHECKBOX").shape});var It=P({...ae.shape,display:A(H(["stepper"])),min:A(De()),max:A(De()),step:A(De()),...X(De(),"NUMBER").shape});var yi=P({...ae.shape,streaming:A(se()),...X(W(),"FILE").shape});var vi=P({...ae.shape,...X(m(),"DATE_TIME").shape});var Ch=K(m(),ee([et,At,tt,hi,Et,Tt,It,yi,vi])),xi=P({...ae.shape,properties:Ch,...X(Z(W()),"ARRAY").shape});var Dh=H(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),zh=P({preset:A(Dh),after:A(m()),before:A(m())}),Vp=P({...ae.shape,display:A(H(["dropdown"])),...X(zh,"DATE_RANGE").shape});var _i=P({...ae.shape,...X(ee([K(m(),W())]),"JSON").shape});var Nh=ee([et,tt,_i,xi,Et]),_w=K(m(),Nh),Hp=P({refreshers:Z(m()),...ae.shape,...X(W(),"DYNAMIC").shape});var Ws=P({...ae.shape,...X(wh(),"MARKDOWN").shape});var Pi=(o=>(o.ARCHIVE="ARCHIVE",o.REGISTRY="REGISTRY",o))(Pi||{}),Qr=(o=>(o.CUSTOM="CUSTOM",o.OFFICIAL="OFFICIAL",o))(Qr||{}),Pr=(I=>(I.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",I.COMMUNICATION="COMMUNICATION",I.COMMERCE="COMMERCE",I.CORE="CORE",I.UNIVERSAL_AI="UNIVERSAL_AI",I.FLOW_CONTROL="FLOW_CONTROL",I.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",I.ACCOUNTING="ACCOUNTING",I.PRODUCTIVITY="PRODUCTIVITY",I.CONTENT_AND_FILES="CONTENT_AND_FILES",I.DEVELOPER_TOOLS="DEVELOPER_TOOLS",I.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",I.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",I.HUMAN_RESOURCES="HUMAN_RESOURCES",I.PAYMENT_PROCESSING="PAYMENT_PROCESSING",I.MARKETING="MARKETING",I.SALES_AND_CRM="SALES_AND_CRM",I))(Pr||{});var bi=(o=>(o.AUTHORIZATION_CODE="authorization_code",o.CLIENT_CREDENTIALS="client_credentials",o))(bi||{}),Zp="both_client_credentials_and_authorization_code";var mt=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(mt||{}),Ai=(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))(Ai||{}),Pw=P({strategy:H(Ai),paramName:A(m())}),Ei=(o=>(o.SIMULATION="SIMULATION",o.TEST_FUNCTION="TEST_FUNCTION",o))(Ei||{});var Ks=(o=>(o.WEBSOCKET="WEBSOCKET",o.NONE="NONE",o))(Ks||{}),Mh=P({status:A(De()),body:A(W()),headers:A(K(m(),m()))}),Uh=P({type:V("DELAY"),resumeDateTime:m(),requestIdToReply:A(m()),handlerId:A(m()),streamStepProgress:A(H(Ks))}),Lh=P({type:V("WEBHOOK"),requestId:m(),requestIdToReply:A(m()),response:Mh,handlerId:A(m()),streamStepProgress:A(H(Ks))}),bw=ee([Uh,Lh]);var Aw=P({body:W(),rawBody:A(W()),headers:K(m(),m()),queryParams:K(m(),m())});function le(e){return e==null}s(le,"isNil");function Ti(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(Ti,"isEmpty");function St(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(St,"assertNotNullOrUndefined");async function Gp(e){try{return{data:await e(),error:null}}catch(t){return{data:null,error:t}}}s(Gp,"tryCatch");function Js(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Js,"tryCatchSync");var Wp=Fe(require("crypto"),1);var Ew=128,Gt,eo,Tw=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Gt||Gt.length<e?(Gt=Buffer.allocUnsafe(e*Ew),Wp.default.randomFillSync(Gt),eo=0):eo+e>Gt.length&&(Wp.default.randomFillSync(Gt),eo=0)}catch(t){throw Gt=void 0,t}eo+=e},"fillPool"),Iw=s(e=>(Tw(e|=0),Gt.subarray(eo-e,eo)),"random"),Sw=s((e,t,o)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*n*t/e.length);return(i=t)=>{if(i<=0)return"";let a="";for(;;){let c=o(r),u=r;for(;u--;)if(a+=e[c[u]&n]||"",a.length===i)return a}}},"customRandom"),Fh=s((e,t=21)=>Sw(e,t,Iw),"customAlphabet");var ww="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",jh=21,QL=m().check(Ne(new RegExp(`^[0-9a-zA-Z]{${jh}}$`))),Ow=Fh(ww,jh);var Wt=qt(Zt(e=>e instanceof Date?e.toISOString():e),m()),it={id:m(),created:Wt,updated:Wt},_e=s(e=>A(fi(e)),"Nullable");function Kp(e){return A(fi(H(e)))}s(Kp,"NullableEnum");var rF=qt(Zt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),A(se())),oF=A(qs.datetime({offset:!0}).check(zp(e=>e.slice(0,4)!=="0000"))),Xs=s(e=>qt(Zt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),A(Z(e))),"OptionalArrayFromQuery");var aF=K(m(),W());var Jp=(d=>(d.DUTCH="nl",d.ENGLISH="en",d.GERMAN="de",d.FRENCH="fr",d.SPANISH="es",d.JAPANESE="ja",d.CHINESE_SIMPLIFIED="zh",d.PORTUGUESE="pt",d.ARABIC="ar",d.CHINESE_TRADITIONAL="zh-TW",d))(Jp||{});var Kt=(U=>(U.OPENAI="openai",U.OPENROUTER="openrouter",U.ANTHROPIC="anthropic",U.AZURE="azure",U.GOOGLE="google",U.ACTIVEPIECES="activepieces",U.CLOUDFLARE_GATEWAY="cloudflare-gateway",U.CUSTOM="custom",U.BEDROCK="bedrock",U.VERTEX="vertex",U.MISTRAL="mistral",U.XAI="xai",U.DEEPSEEK="deepseek",U.ZAI="zai",U.QWEN="qwen",U.MINIMAX="minimax",U.MOONSHOT="moonshot",U.META="meta",U.NVIDIA="nvidia",U))(Kt||{});var C={};Xe(C,{$brand:()=>Fo,$input:()=>vs,$output:()=>ys,NEVER:()=>na,TimePrecision:()=>_s,ZodAny:()=>_m,ZodArray:()=>Em,ZodBase64:()=>vc,ZodBase64URL:()=>xc,ZodBigInt:()=>so,ZodBigIntFormat:()=>bc,ZodBoolean:()=>ao,ZodCIDRv4:()=>hc,ZodCIDRv6:()=>yc,ZodCUID:()=>uc,ZodCUID2:()=>lc,ZodCatch:()=>qm,ZodCodec:()=>kc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>$i,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>_c,ZodEmail:()=>ac,ZodEmoji:()=>sc,ZodEnum:()=>ro,ZodError:()=>kw,ZodExactOptional:()=>Mm,ZodFile:()=>zm,ZodFirstPartyTypeKind:()=>nf,ZodFunction:()=>tf,ZodGUID:()=>Si,ZodIPv4:()=>fc,ZodIPv6:()=>gc,ZodISODate:()=>ec,ZodISODateTime:()=>Qs,ZodISODuration:()=>rc,ZodISOTime:()=>tc,ZodIntersection:()=>Sm,ZodIssueCode:()=>$w,ZodJWT:()=>Pc,ZodKSUID:()=>mc,ZodLazy:()=>Ym,ZodLiteral:()=>Dm,ZodMAC:()=>mm,ZodMap:()=>$m,ZodNaN:()=>Wm,ZodNanoID:()=>cc,ZodNever:()=>bm,ZodNonOptional:()=>wc,ZodNull:()=>vm,ZodNullable:()=>Lm,ZodNumber:()=>io,ZodNumberFormat:()=>Ar,ZodObject:()=>Di,ZodOptional:()=>Sc,ZodPipe:()=>Oc,ZodPrefault:()=>Bm,ZodPromise:()=>ef,ZodReadonly:()=>Km,ZodRealError:()=>We,ZodRecord:()=>Ni,ZodSet:()=>Cm,ZodString:()=>oo,ZodStringFormat:()=>fe,ZodSuccess:()=>Zm,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Nm,ZodTuple:()=>Om,ZodType:()=>te,ZodULID:()=>dc,ZodURL:()=>Ri,ZodUUID:()=>ft,ZodUndefined:()=>ym,ZodUnion:()=>zi,ZodUnknown:()=>Pm,ZodVoid:()=>Am,ZodXID:()=>pc,ZodXor:()=>Tm,_ZodString:()=>ic,_default:()=>jm,_function:()=>Wy,any:()=>Iy,array:()=>Ci,base64:()=>uy,base64url:()=>ly,bigint:()=>Py,boolean:()=>gm,catch:()=>Gm,check:()=>Ky,cidrv4:()=>sy,cidrv6:()=>cy,clone:()=>$e,codec:()=>Zy,coerce:()=>af,config:()=>xe,core:()=>Qe,cuid:()=>Qh,cuid2:()=>ey,custom:()=>Jy,date:()=>wy,decode:()=>am,decodeAsync:()=>cm,describe:()=>Xy,discriminatedUnion:()=>Dy,e164:()=>dy,email:()=>Vh,emoji:()=>Xh,encode:()=>im,encodeAsync:()=>sm,endsWith:()=>fr,enum:()=>Tc,exactOptional:()=>Um,file:()=>jy,flattenError:()=>Dr,float32:()=>yy,float64:()=>vy,formatError:()=>zr,fromJSONSchema:()=>nv,function:()=>Wy,getErrorMap:()=>Dw,globalRegistry:()=>Ce,gt:()=>lt,gte:()=>Oe,guid:()=>Hh,hash:()=>hy,hex:()=>gy,hostname:()=>fy,httpUrl:()=>Jh,includes:()=>pr,instanceof:()=>Qy,int:()=>nc,int32:()=>xy,int64:()=>by,intersection:()=>wm,ipv4:()=>ny,ipv6:()=>ay,iso:()=>to,json:()=>tv,jwt:()=>py,keyof:()=>Oy,ksuid:()=>oy,lazy:()=>Qm,length:()=>Ft,literal:()=>Fy,locales:()=>Wr,looseObject:()=>$y,looseRecord:()=>Ny,lowercase:()=>lr,lt:()=>ut,lte:()=>je,mac:()=>iy,map:()=>My,maxLength:()=>Lt,maxSize:()=>bt,meta:()=>Yy,mime:()=>gr,minLength:()=>Ie,minSize:()=>dt,multipleOf:()=>Pt,nan:()=>Hy,nanoid:()=>Yh,nativeEnum:()=>Ly,negative:()=>ai,never:()=>Ac,nonnegative:()=>ci,nonoptional:()=>Hm,nonpositive:()=>si,normalize:()=>hr,null:()=>xm,nullable:()=>Oi,nullish:()=>By,number:()=>fm,object:()=>ky,optional:()=>wi,overwrite:()=>nt,parse:()=>tm,parseAsync:()=>rm,partialRecord:()=>zy,pipe:()=>ki,positive:()=>ii,prefault:()=>Vm,preprocess:()=>rv,prettifyError:()=>ua,promise:()=>Gy,property:()=>ui,readonly:()=>Jm,record:()=>Rm,refine:()=>rf,regex:()=>Ne,regexes:()=>Ge,registry:()=>bn,safeDecode:()=>lm,safeDecodeAsync:()=>pm,safeEncode:()=>um,safeEncodeAsync:()=>dm,safeParse:()=>om,safeParseAsync:()=>nm,set:()=>Uy,setErrorMap:()=>Cw,size:()=>Ut,slugify:()=>Jr,startsWith:()=>mr,strictObject:()=>Ry,string:()=>oc,stringFormat:()=>my,stringbool:()=>ev,success:()=>Vy,superRefine:()=>of,symbol:()=>Ey,templateLiteral:()=>qy,toJSONSchema:()=>pi,toLowerCase:()=>vr,toUpperCase:()=>xr,transform:()=>Ic,treeifyError:()=>ca,trim:()=>yr,tuple:()=>km,uint32:()=>_y,uint64:()=>Ay,ulid:()=>ty,undefined:()=>Ty,union:()=>Ec,unknown:()=>br,uppercase:()=>dr,url:()=>Kh,util:()=>D,uuid:()=>Zh,uuidv4:()=>qh,uuidv6:()=>Gh,uuidv7:()=>Wh,void:()=>Sy,xid:()=>ry,xor:()=>Cy});var Ii={};Xe(Ii,{ZodAny:()=>_m,ZodArray:()=>Em,ZodBase64:()=>vc,ZodBase64URL:()=>xc,ZodBigInt:()=>so,ZodBigIntFormat:()=>bc,ZodBoolean:()=>ao,ZodCIDRv4:()=>hc,ZodCIDRv6:()=>yc,ZodCUID:()=>uc,ZodCUID2:()=>lc,ZodCatch:()=>qm,ZodCodec:()=>kc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>$i,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>_c,ZodEmail:()=>ac,ZodEmoji:()=>sc,ZodEnum:()=>ro,ZodExactOptional:()=>Mm,ZodFile:()=>zm,ZodFunction:()=>tf,ZodGUID:()=>Si,ZodIPv4:()=>fc,ZodIPv6:()=>gc,ZodIntersection:()=>Sm,ZodJWT:()=>Pc,ZodKSUID:()=>mc,ZodLazy:()=>Ym,ZodLiteral:()=>Dm,ZodMAC:()=>mm,ZodMap:()=>$m,ZodNaN:()=>Wm,ZodNanoID:()=>cc,ZodNever:()=>bm,ZodNonOptional:()=>wc,ZodNull:()=>vm,ZodNullable:()=>Lm,ZodNumber:()=>io,ZodNumberFormat:()=>Ar,ZodObject:()=>Di,ZodOptional:()=>Sc,ZodPipe:()=>Oc,ZodPrefault:()=>Bm,ZodPromise:()=>ef,ZodReadonly:()=>Km,ZodRecord:()=>Ni,ZodSet:()=>Cm,ZodString:()=>oo,ZodStringFormat:()=>fe,ZodSuccess:()=>Zm,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Nm,ZodTuple:()=>Om,ZodType:()=>te,ZodULID:()=>dc,ZodURL:()=>Ri,ZodUUID:()=>ft,ZodUndefined:()=>ym,ZodUnion:()=>zi,ZodUnknown:()=>Pm,ZodVoid:()=>Am,ZodXID:()=>pc,ZodXor:()=>Tm,_ZodString:()=>ic,_default:()=>jm,_function:()=>Wy,any:()=>Iy,array:()=>Ci,base64:()=>uy,base64url:()=>ly,bigint:()=>Py,boolean:()=>gm,catch:()=>Gm,check:()=>Ky,cidrv4:()=>sy,cidrv6:()=>cy,codec:()=>Zy,cuid:()=>Qh,cuid2:()=>ey,custom:()=>Jy,date:()=>wy,describe:()=>Xy,discriminatedUnion:()=>Dy,e164:()=>dy,email:()=>Vh,emoji:()=>Xh,enum:()=>Tc,exactOptional:()=>Um,file:()=>jy,float32:()=>yy,float64:()=>vy,function:()=>Wy,guid:()=>Hh,hash:()=>hy,hex:()=>gy,hostname:()=>fy,httpUrl:()=>Jh,instanceof:()=>Qy,int:()=>nc,int32:()=>xy,int64:()=>by,intersection:()=>wm,ipv4:()=>ny,ipv6:()=>ay,json:()=>tv,jwt:()=>py,keyof:()=>Oy,ksuid:()=>oy,lazy:()=>Qm,literal:()=>Fy,looseObject:()=>$y,looseRecord:()=>Ny,mac:()=>iy,map:()=>My,meta:()=>Yy,nan:()=>Hy,nanoid:()=>Yh,nativeEnum:()=>Ly,never:()=>Ac,nonoptional:()=>Hm,null:()=>xm,nullable:()=>Oi,nullish:()=>By,number:()=>fm,object:()=>ky,optional:()=>wi,partialRecord:()=>zy,pipe:()=>ki,prefault:()=>Vm,preprocess:()=>rv,promise:()=>Gy,readonly:()=>Jm,record:()=>Rm,refine:()=>rf,set:()=>Uy,strictObject:()=>Ry,string:()=>oc,stringFormat:()=>my,stringbool:()=>ev,success:()=>Vy,superRefine:()=>of,symbol:()=>Ey,templateLiteral:()=>qy,transform:()=>Ic,tuple:()=>km,uint32:()=>_y,uint64:()=>Ay,ulid:()=>ty,undefined:()=>Ty,union:()=>Ec,unknown:()=>br,url:()=>Kh,uuid:()=>Zh,uuidv4:()=>qh,uuidv6:()=>Gh,uuidv7:()=>Wh,void:()=>Sy,xid:()=>ry,xor:()=>Cy});var Ys={};Xe(Ys,{endsWith:()=>fr,gt:()=>lt,gte:()=>Oe,includes:()=>pr,length:()=>Ft,lowercase:()=>lr,lt:()=>ut,lte:()=>je,maxLength:()=>Lt,maxSize:()=>bt,mime:()=>gr,minLength:()=>Ie,minSize:()=>dt,multipleOf:()=>Pt,negative:()=>ai,nonnegative:()=>ci,nonpositive:()=>si,normalize:()=>hr,overwrite:()=>nt,positive:()=>ii,property:()=>ui,regex:()=>Ne,size:()=>Ut,slugify:()=>Jr,startsWith:()=>mr,toLowerCase:()=>vr,toUpperCase:()=>xr,trim:()=>yr,uppercase:()=>dr});var to={};Xe(to,{ZodISODate:()=>ec,ZodISODateTime:()=>Qs,ZodISODuration:()=>rc,ZodISOTime:()=>tc,date:()=>Yp,datetime:()=>Xp,duration:()=>em,time:()=>Qp});var Qs=y("ZodISODateTime",(e,t)=>{Yo.init(e,t),fe.init(e,t)});function Xp(e){return Zn(Qs,e)}s(Xp,"datetime");var ec=y("ZodISODate",(e,t)=>{Qo.init(e,t),fe.init(e,t)});function Yp(e){return qn(ec,e)}s(Yp,"date");var tc=y("ZodISOTime",(e,t)=>{en.init(e,t),fe.init(e,t)});function Qp(e){return Gn(tc,e)}s(Qp,"time");var rc=y("ZodISODuration",(e,t)=>{tn.init(e,t),fe.init(e,t)});function em(e){return Wn(rc,e)}s(em,"duration");var Bh=s((e,t)=>{Go.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(o=>zr(e,o),"value")},flatten:{value:s(o=>Dr(e,o),"value")},addIssue:{value:s(o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Rr,2)},"value")},addIssues:{value:s(o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Rr,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),kw=y("ZodError",Bh),We=y("ZodError",Bh,{Parent:Error});var tm=Nr(We),rm=Mr(We),om=Ur(We),nm=Fr(We),im=la(We),am=da(We),sm=pa(We),cm=ma(We),um=fa(We),lm=ga(We),dm=ha(We),pm=ya(We);var te=y("ZodType",(e,t)=>(q.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xr(e,"input"),output:Xr(e,"output")}}),e.toJSONSchema=Jd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(D.mergeDefs(t,{checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(o,n)=>$e(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.parse=(o,n)=>tm(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>om(e,o,n),e.parseAsync=async(o,n)=>rm(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>nm(e,o,n),e.spa=e.safeParseAsync,e.encode=(o,n)=>im(e,o,n),e.decode=(o,n)=>am(e,o,n),e.encodeAsync=async(o,n)=>sm(e,o,n),e.decodeAsync=async(o,n)=>cm(e,o,n),e.safeEncode=(o,n)=>um(e,o,n),e.safeDecode=(o,n)=>lm(e,o,n),e.safeEncodeAsync=async(o,n)=>dm(e,o,n),e.safeDecodeAsync=async(o,n)=>pm(e,o,n),e.refine=(o,n)=>e.check(rf(o,n)),e.superRefine=o=>e.check(of(o)),e.overwrite=o=>e.check(nt(o)),e.optional=()=>wi(e),e.exactOptional=()=>Um(e),e.nullable=()=>Oi(e),e.nullish=()=>wi(Oi(e)),e.nonoptional=o=>Hm(e,o),e.array=()=>Ci(e),e.or=o=>Ec([e,o]),e.and=o=>wm(e,o),e.transform=o=>ki(e,Ic(o)),e.default=o=>jm(e,o),e.prefault=o=>Vm(e,o),e.catch=o=>Gm(e,o),e.pipe=o=>ki(e,o),e.readonly=()=>Jm(e),e.describe=o=>{let n=e.clone();return Ce.add(n,{description:o}),n},Object.defineProperty(e,"description",{get(){return Ce.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Ce.get(e);let n=e.clone();return Ce.add(n,o[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),ic=y("_ZodString",(e,t)=>{_t.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xd(e,n,r,i);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...n)=>e.check(Ne(...n)),e.includes=(...n)=>e.check(pr(...n)),e.startsWith=(...n)=>e.check(mr(...n)),e.endsWith=(...n)=>e.check(fr(...n)),e.min=(...n)=>e.check(Ie(...n)),e.max=(...n)=>e.check(Lt(...n)),e.length=(...n)=>e.check(Ft(...n)),e.nonempty=(...n)=>e.check(Ie(1,...n)),e.lowercase=n=>e.check(lr(n)),e.uppercase=n=>e.check(dr(n)),e.trim=()=>e.check(yr()),e.normalize=(...n)=>e.check(hr(...n)),e.toLowerCase=()=>e.check(vr()),e.toUpperCase=()=>e.check(xr()),e.slugify=()=>e.check(Jr())}),oo=y("ZodString",(e,t)=>{_t.init(e,t),ic.init(e,t),e.email=o=>e.check(Tn(ac,o)),e.url=o=>e.check(ur(Ri,o)),e.jwt=o=>e.check(Hn(Pc,o)),e.emoji=o=>e.check(kn(sc,o)),e.guid=o=>e.check(Kr(Si,o)),e.uuid=o=>e.check(In(ft,o)),e.uuidv4=o=>e.check(Sn(ft,o)),e.uuidv6=o=>e.check(wn(ft,o)),e.uuidv7=o=>e.check(On(ft,o)),e.nanoid=o=>e.check(Rn(cc,o)),e.guid=o=>e.check(Kr(Si,o)),e.cuid=o=>e.check($n(uc,o)),e.cuid2=o=>e.check(Cn(lc,o)),e.ulid=o=>e.check(Dn(dc,o)),e.base64=o=>e.check(jn(vc,o)),e.base64url=o=>e.check(Bn(xc,o)),e.xid=o=>e.check(zn(pc,o)),e.ksuid=o=>e.check(Nn(mc,o)),e.ipv4=o=>e.check(Mn(fc,o)),e.ipv6=o=>e.check(Un(gc,o)),e.cidrv4=o=>e.check(Ln(hc,o)),e.cidrv6=o=>e.check(Fn(yc,o)),e.e164=o=>e.check(Vn(_c,o)),e.datetime=o=>e.check(Xp(o)),e.date=o=>e.check(Yp(o)),e.time=o=>e.check(Qp(o)),e.duration=o=>e.check(em(o))});function oc(e){return An(oo,e)}s(oc,"string");var fe=y("ZodStringFormat",(e,t)=>{de.init(e,t),ic.init(e,t)}),ac=y("ZodEmail",(e,t)=>{Oa.init(e,t),fe.init(e,t)});function Vh(e){return Tn(ac,e)}s(Vh,"email");var Si=y("ZodGUID",(e,t)=>{Sa.init(e,t),fe.init(e,t)});function Hh(e){return Kr(Si,e)}s(Hh,"guid");var ft=y("ZodUUID",(e,t)=>{wa.init(e,t),fe.init(e,t)});function Zh(e){return In(ft,e)}s(Zh,"uuid");function qh(e){return Sn(ft,e)}s(qh,"uuidv4");function Gh(e){return wn(ft,e)}s(Gh,"uuidv6");function Wh(e){return On(ft,e)}s(Wh,"uuidv7");var Ri=y("ZodURL",(e,t)=>{Xo.init(e,t),fe.init(e,t)});function Kh(e){return ur(Ri,e)}s(Kh,"url");function Jh(e){return ur(Ri,{protocol:/^https?$/,hostname:Ge.domain,...D.normalizeParams(e)})}s(Jh,"httpUrl");var sc=y("ZodEmoji",(e,t)=>{ka.init(e,t),fe.init(e,t)});function Xh(e){return kn(sc,e)}s(Xh,"emoji");var cc=y("ZodNanoID",(e,t)=>{Ra.init(e,t),fe.init(e,t)});function Yh(e){return Rn(cc,e)}s(Yh,"nanoid");var uc=y("ZodCUID",(e,t)=>{$a.init(e,t),fe.init(e,t)});function Qh(e){return $n(uc,e)}s(Qh,"cuid");var lc=y("ZodCUID2",(e,t)=>{Ca.init(e,t),fe.init(e,t)});function ey(e){return Cn(lc,e)}s(ey,"cuid2");var dc=y("ZodULID",(e,t)=>{Da.init(e,t),fe.init(e,t)});function ty(e){return Dn(dc,e)}s(ty,"ulid");var pc=y("ZodXID",(e,t)=>{za.init(e,t),fe.init(e,t)});function ry(e){return zn(pc,e)}s(ry,"xid");var mc=y("ZodKSUID",(e,t)=>{Na.init(e,t),fe.init(e,t)});function oy(e){return Nn(mc,e)}s(oy,"ksuid");var fc=y("ZodIPv4",(e,t)=>{Ma.init(e,t),fe.init(e,t)});function ny(e){return Mn(fc,e)}s(ny,"ipv4");var mm=y("ZodMAC",(e,t)=>{La.init(e,t),fe.init(e,t)});function iy(e){return xs(mm,e)}s(iy,"mac");var gc=y("ZodIPv6",(e,t)=>{Ua.init(e,t),fe.init(e,t)});function ay(e){return Un(gc,e)}s(ay,"ipv6");var hc=y("ZodCIDRv4",(e,t)=>{Fa.init(e,t),fe.init(e,t)});function sy(e){return Ln(hc,e)}s(sy,"cidrv4");var yc=y("ZodCIDRv6",(e,t)=>{ja.init(e,t),fe.init(e,t)});function cy(e){return Fn(yc,e)}s(cy,"cidrv6");var vc=y("ZodBase64",(e,t)=>{Ba.init(e,t),fe.init(e,t)});function uy(e){return jn(vc,e)}s(uy,"base64");var xc=y("ZodBase64URL",(e,t)=>{Va.init(e,t),fe.init(e,t)});function ly(e){return Bn(xc,e)}s(ly,"base64url");var _c=y("ZodE164",(e,t)=>{Ha.init(e,t),fe.init(e,t)});function dy(e){return Vn(_c,e)}s(dy,"e164");var Pc=y("ZodJWT",(e,t)=>{Za.init(e,t),fe.init(e,t)});function py(e){return Hn(Pc,e)}s(py,"jwt");var no=y("ZodCustomStringFormat",(e,t)=>{qa.init(e,t),fe.init(e,t)});function my(e,t,o={}){return _r(no,e,t,o)}s(my,"stringFormat");function fy(e){return _r(no,"hostname",Ge.hostname,e)}s(fy,"hostname");function gy(e){return _r(no,"hex",Ge.hex,e)}s(gy,"hex");function hy(e,t){let o=t?.enc??"hex",n=`${e}_${o}`,r=Ge[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return _r(no,n,r,t)}s(hy,"hash");var io=y("ZodNumber",(e,t)=>{Vr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Yd(e,n,r,i),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(je(n,r)),e.max=(n,r)=>e.check(je(n,r)),e.int=n=>e.check(nc(n)),e.safe=n=>e.check(nc(n)),e.positive=n=>e.check(lt(0,n)),e.nonnegative=n=>e.check(Oe(0,n)),e.negative=n=>e.check(ut(0,n)),e.nonpositive=n=>e.check(je(0,n)),e.multipleOf=(n,r)=>e.check(Pt(n,r)),e.step=(n,r)=>e.check(Pt(n,r)),e.finite=()=>e;let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function fm(e){return Kn(io,e)}s(fm,"number");var Ar=y("ZodNumberFormat",(e,t)=>{rn.init(e,t),io.init(e,t)});function nc(e){return Xn(Ar,e)}s(nc,"int");function yy(e){return Ps(Ar,e)}s(yy,"float32");function vy(e){return bs(Ar,e)}s(vy,"float64");function xy(e){return As(Ar,e)}s(xy,"int32");function _y(e){return Es(Ar,e)}s(_y,"uint32");var ao=y("ZodBoolean",(e,t)=>{sr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Qd(e,o,n,r)});function gm(e){return Yn(ao,e)}s(gm,"boolean");var so=y("ZodBigInt",(e,t)=>{Hr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ep(e,n,r,i),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(Oe(n,r)),e.min=(n,r)=>e.check(Oe(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(je(n,r)),e.max=(n,r)=>e.check(je(n,r)),e.positive=n=>e.check(lt(BigInt(0),n)),e.negative=n=>e.check(ut(BigInt(0),n)),e.nonpositive=n=>e.check(je(BigInt(0),n)),e.nonnegative=n=>e.check(Oe(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(Pt(n,r));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function Py(e){return Ts(so,e)}s(Py,"bigint");var bc=y("ZodBigIntFormat",(e,t)=>{Ga.init(e,t),so.init(e,t)});function by(e){return Is(bc,e)}s(by,"int64");function Ay(e){return Ss(bc,e)}s(Ay,"uint64");var hm=y("ZodSymbol",(e,t)=>{Wa.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>tp(e,o,n,r)});function Ey(e){return ws(hm,e)}s(Ey,"symbol");var ym=y("ZodUndefined",(e,t)=>{Ka.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>op(e,o,n,r)});function Ty(e){return Os(ym,e)}s(Ty,"_undefined");var vm=y("ZodNull",(e,t)=>{Ja.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>rp(e,o,n,r)});function xm(e){return ks(vm,e)}s(xm,"_null");var _m=y("ZodAny",(e,t)=>{on.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ap(e,o,n,r)});function Iy(){return ti(_m)}s(Iy,"any");var Pm=y("ZodUnknown",(e,t)=>{nn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>sp(e,o,n,r)});function br(){return ri(Pm)}s(br,"unknown");var bm=y("ZodNever",(e,t)=>{Xa.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ip(e,o,n,r)});function Ac(e){return Rs(bm,e)}s(Ac,"never");var Am=y("ZodVoid",(e,t)=>{an.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>np(e,o,n,r)});function Sy(e){return oi(Am,e)}s(Sy,"_void");var $i=y("ZodDate",(e,t)=>{sn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i),e.min=(n,r)=>e.check(Oe(n,r)),e.max=(n,r)=>e.check(je(n,r));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function wy(e){return $s($i,e)}s(wy,"date");var Em=y("ZodArray",(e,t)=>{cn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>_p(e,o,n,r),e.element=t.element,e.min=(o,n)=>e.check(Ie(o,n)),e.nonempty=o=>e.check(Ie(1,o)),e.max=(o,n)=>e.check(Lt(o,n)),e.length=(o,n)=>e.check(Ft(o,n)),e.unwrap=()=>e.element});function Ci(e,t){return Kd(Em,e,t)}s(Ci,"array");function Oy(e){let t=e._zod.def.shape;return Tc(Object.keys(t))}s(Oy,"keyof");var Di=y("ZodObject",(e,t)=>{rd.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Pp(e,o,n,r),D.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Tc(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:br()}),e.loose=()=>e.clone({...e._zod.def,catchall:br()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ac()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>D.extend(e,o),e.safeExtend=o=>D.safeExtend(e,o),e.merge=o=>D.merge(e,o),e.pick=o=>D.pick(e,o),e.omit=o=>D.omit(e,o),e.partial=(...o)=>D.partial(Sc,e,o[0]),e.required=(...o)=>D.required(wc,e,o[0])});function ky(e,t){let o={type:"object",shape:e??{},...D.normalizeParams(t)};return new Di(o)}s(ky,"object");function Ry(e,t){return new Di({type:"object",shape:e,catchall:Ac(),...D.normalizeParams(t)})}s(Ry,"strictObject");function $y(e,t){return new Di({type:"object",shape:e,catchall:br(),...D.normalizeParams(t)})}s($y,"looseObject");var zi=y("ZodUnion",(e,t)=>{cr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Fs(e,o,n,r),e.options=t.options});function Ec(e,t){return new zi({type:"union",options:e,...D.normalizeParams(t)})}s(Ec,"union");var Tm=y("ZodXor",(e,t)=>{zi.init(e,t),Qa.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Fs(e,o,n,r),e.options=t.options});function Cy(e,t){return new Tm({type:"union",options:e,inclusive:!1,...D.normalizeParams(t)})}s(Cy,"xor");var Im=y("ZodDiscriminatedUnion",(e,t)=>{zi.init(e,t),un.init(e,t)});function Dy(e,t,o){return new Im({type:"union",options:t,discriminator:e,...D.normalizeParams(o)})}s(Dy,"discriminatedUnion");var Sm=y("ZodIntersection",(e,t)=>{es.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>bp(e,o,n,r)});function wm(e,t){return new Sm({type:"intersection",left:e,right:t})}s(wm,"intersection");var Om=y("ZodTuple",(e,t)=>{ln.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ap(e,o,n,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function km(e,t,o){let n=t instanceof q,r=n?o:t,i=n?t:null;return new Om({type:"tuple",items:e,rest:i,...D.normalizeParams(r)})}s(km,"tuple");var Ni=y("ZodRecord",(e,t)=>{dn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ep(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Rm(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,...D.normalizeParams(o)})}s(Rm,"record");function zy(e,t,o){let n=$e(e);return n._zod.values=void 0,new Ni({type:"record",keyType:n,valueType:t,...D.normalizeParams(o)})}s(zy,"partialRecord");function Ny(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,mode:"loose",...D.normalizeParams(o)})}s(Ny,"looseRecord");var $m=y("ZodMap",(e,t)=>{ts.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>vp(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...o)=>e.check(dt(...o)),e.nonempty=o=>e.check(dt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Ut(...o))});function My(e,t,o){return new $m({type:"map",keyType:e,valueType:t,...D.normalizeParams(o)})}s(My,"map");var Cm=y("ZodSet",(e,t)=>{rs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>xp(e,o,n,r),e.min=(...o)=>e.check(dt(...o)),e.nonempty=o=>e.check(dt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Ut(...o))});function Uy(e,t){return new Cm({type:"set",valueType:e,...D.normalizeParams(t)})}s(Uy,"set");var ro=y("ZodEnum",(e,t)=>{pn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(n,r,i)=>up(e,n,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let o=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let i={};for(let a of n)if(o.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...D.normalizeParams(r),entries:i})},e.exclude=(n,r)=>{let i={...t.entries};for(let a of n)if(o.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...D.normalizeParams(r),entries:i})}});function Tc(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ro({type:"enum",entries:o,...D.normalizeParams(t)})}s(Tc,"_enum");function Ly(e,t){return new ro({type:"enum",entries:e,...D.normalizeParams(t)})}s(Ly,"nativeEnum");var Dm=y("ZodLiteral",(e,t)=>{mn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>lp(e,o,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Fy(e,t){return new Dm({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(t)})}s(Fy,"literal");var zm=y("ZodFile",(e,t)=>{os.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>mp(e,o,n,r),e.min=(o,n)=>e.check(dt(o,n)),e.max=(o,n)=>e.check(bt(o,n)),e.mime=(o,n)=>e.check(gr(Array.isArray(o)?o:[o],n))});function jy(e){return Ds(zm,e)}s(jy,"file");var Nm=y("ZodTransform",(e,t)=>{fn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>yp(e,o,n,r),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ct(e.constructor.name);o.addIssue=i=>{if(typeof i=="string")o.issues.push(D.issue(i,o.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=o.value),a.inst??(a.inst=e),o.issues.push(D.issue(a))}};let r=t.transform(o.value,o);return r instanceof Promise?r.then(i=>(o.value=i,o)):(o.value=r,o)}});function Ic(e){return new Nm({type:"transform",transform:e})}s(Ic,"transform");var Sc=y("ZodOptional",(e,t)=>{Zr.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>js(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function wi(e){return new Sc({type:"optional",innerType:e})}s(wi,"optional");var Mm=y("ZodExactOptional",(e,t)=>{ns.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>js(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Um(e){return new Mm({type:"optional",innerType:e})}s(Um,"exactOptional");var Lm=y("ZodNullable",(e,t)=>{gn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Tp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Oi(e){return new Lm({type:"nullable",innerType:e})}s(Oi,"nullable");function By(e){return wi(Oi(e))}s(By,"nullish");var Fm=y("ZodDefault",(e,t)=>{is.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Sp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jm(e,t){return new Fm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():D.shallowClone(t)}})}s(jm,"_default");var Bm=y("ZodPrefault",(e,t)=>{as.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>wp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Vm(e,t){return new Bm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():D.shallowClone(t)}})}s(Vm,"prefault");var wc=y("ZodNonOptional",(e,t)=>{ss.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ip(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Hm(e,t){return new wc({type:"nonoptional",innerType:e,...D.normalizeParams(t)})}s(Hm,"nonoptional");var Zm=y("ZodSuccess",(e,t)=>{cs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>fp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Vy(e){return new Zm({type:"success",innerType:e})}s(Vy,"success");var qm=y("ZodCatch",(e,t)=>{us.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Op(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Gm(e,t){return new qm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Gm,"_catch");var Wm=y("ZodNaN",(e,t)=>{ls.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>dp(e,o,n,r)});function Hy(e){return Cs(Wm,e)}s(Hy,"nan");var Oc=y("ZodPipe",(e,t)=>{hn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>kp(e,o,n,r),e.in=t.in,e.out=t.out});function ki(e,t){return new Oc({type:"pipe",in:e,out:t})}s(ki,"pipe");var kc=y("ZodCodec",(e,t)=>{Oc.init(e,t),qr.init(e,t)});function Zy(e,t,o){return new kc({type:"pipe",in:e,out:t,transform:o.decode,reverseTransform:o.encode})}s(Zy,"codec");var Km=y("ZodReadonly",(e,t)=>{ds.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Rp(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Jm(e){return new Km({type:"readonly",innerType:e})}s(Jm,"readonly");var Xm=y("ZodTemplateLiteral",(e,t)=>{ps.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>pp(e,o,n,r)});function qy(e,t){return new Xm({type:"template_literal",parts:e,...D.normalizeParams(t)})}s(qy,"templateLiteral");var Ym=y("ZodLazy",(e,t)=>{gs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Cp(e,o,n,r),e.unwrap=()=>e._zod.def.getter()});function Qm(e){return new Ym({type:"lazy",getter:e})}s(Qm,"lazy");var ef=y("ZodPromise",(e,t)=>{fs.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>$p(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Gy(e){return new ef({type:"promise",innerType:e})}s(Gy,"promise");var tf=y("ZodFunction",(e,t)=>{ms.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>hp(e,o,n,r)});function Wy(e){return new tf({type:"function",input:Array.isArray(e?.input)?km(e?.input):e?.input??Ci(br()),output:e?.output??br()})}s(Wy,"_function");var Mi=y("ZodCustom",(e,t)=>{yn.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,r)=>gp(e,o,n,r)});function Ky(e){let t=new me({check:"custom"});return t._zod.check=e,t}s(Ky,"check");function Jy(e,t){return li(Mi,e??(()=>!0),t)}s(Jy,"custom");function rf(e,t={}){return di(Mi,e,t)}s(rf,"refine");function of(e){return zs(e)}s(of,"superRefine");var Xy=Ns,Yy=Ms;function Qy(e,t={}){let o=new Mi({type:"custom",check:"custom",fn:s(n=>n instanceof e,"fn"),abort:!0,...D.normalizeParams(t)});return o._zod.bag.Class=e,o._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:o,path:[...o._zod.def.path??[]]})},o}s(Qy,"_instanceof");var ev=s((...e)=>Us({Codec:kc,Boolean:ao,String:oo},...e),"stringbool");function tv(e){let t=Qm(()=>Ec([oc(e),fm(),gm(),xm(),Ci(t),Rm(oc(),t)]));return t}s(tv,"json");function rv(e,t){return ki(Ic(e),t)}s(rv,"preprocess");var $w={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 Cw(e){xe({customError:e})}s(Cw,"setErrorMap");function Dw(){return xe().customError}s(Dw,"getErrorMap");var nf;nf||(nf={});var N={...Ii,...Ys,iso:to},zw=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 Nw(e,t){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(Nw,"detectVersion");function Mw(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===n){let r=o[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}s(Mw,"resolveRef");function ov(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return N.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return N.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=Mw(r,t),a=Le(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return N.null();if(r.length===0)return N.never();if(r.length===1)return N.literal(r[0]);if(r.every(a=>typeof a=="string"))return N.enum(r);let i=r.map(a=>N.literal(a));return i.length<2?i[0]:N.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return N.literal(e.const);let o=e.type;if(Array.isArray(o)){let r=o.map(i=>{let a={...e,type:i};return ov(a,t)});return r.length===0?N.never():r.length===1?r[0]:N.union(r)}if(!o)return N.any();let n;switch(o){case"string":{let r=N.string();if(e.format){let i=e.format;i==="email"?r=r.check(N.email()):i==="uri"||i==="uri-reference"?r=r.check(N.url()):i==="uuid"||i==="guid"?r=r.check(N.uuid()):i==="date-time"?r=r.check(N.iso.datetime()):i==="date"?r=r.check(N.iso.date()):i==="time"?r=r.check(N.iso.time()):i==="duration"?r=r.check(N.iso.duration()):i==="ipv4"?r=r.check(N.ipv4()):i==="ipv6"?r=r.check(N.ipv6()):i==="mac"?r=r.check(N.mac()):i==="cidr"?r=r.check(N.cidrv4()):i==="cidr-v6"?r=r.check(N.cidrv6()):i==="base64"?r=r.check(N.base64()):i==="base64url"?r=r.check(N.base64url()):i==="e164"?r=r.check(N.e164()):i==="jwt"?r=r.check(N.jwt()):i==="emoji"?r=r.check(N.emoji()):i==="nanoid"?r=r.check(N.nanoid()):i==="cuid"?r=r.check(N.cuid()):i==="cuid2"?r=r.check(N.cuid2()):i==="ulid"?r=r.check(N.ulid()):i==="xid"?r=r.check(N.xid()):i==="ksuid"&&(r=r.check(N.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),n=r;break}case"number":case"integer":{let r=o==="integer"?N.number().int():N.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),n=r;break}case"boolean":{n=N.boolean();break}case"null":{n=N.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[u,l]of Object.entries(i)){let d=Le(l,t);r[u]=a.has(u)?d:d.optional()}if(e.propertyNames){let u=Le(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Le(e.additionalProperties,t):N.any();if(Object.keys(r).length===0){n=N.record(u,l);break}let d=N.object(r).passthrough(),h=N.looseRecord(u,l);n=N.intersection(d,h);break}if(e.patternProperties){let u=e.patternProperties,l=Object.keys(u),d=[];for(let f of l){let p=Le(u[f],t),v=N.string().regex(new RegExp(f));d.push(N.looseRecord(v,p))}let h=[];if(Object.keys(r).length>0&&h.push(N.object(r).passthrough()),h.push(...d),h.length===0)n=N.object({}).passthrough();else if(h.length===1)n=h[0];else{let f=N.intersection(h[0],h[1]);for(let p=2;p<h.length;p++)f=N.intersection(f,h[p]);n=f}break}let c=N.object(r);e.additionalProperties===!1?n=c.strict():typeof e.additionalProperties=="object"?n=c.catchall(Le(e.additionalProperties,t)):n=c.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(u=>Le(u,t)),c=i&&typeof i=="object"&&!Array.isArray(i)?Le(i,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>Le(u,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?Le(e.additionalItems,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(i!==void 0){let a=Le(i,t),c=N.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),n=c}else n=N.array(N.any());break}default:throw new Error(`Unsupported type: ${o}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}s(ov,"convertBaseSchema");function Le(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=ov(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(l=>Le(l,t)),u=N.union(c);o=n?N.intersection(o,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(l=>Le(l,t)),u=N.xor(c);o=n?N.intersection(o,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=n?o:N.any();else{let c=n?o:Le(e.allOf[0],t),u=n?0:1;for(let l=u;l<e.allOf.length;l++)c=N.intersection(c,Le(e.allOf[l],t));o=c}e.nullable===!0&&t.version==="openapi-3.0"&&(o=N.nullable(o)),e.readOnly===!0&&(o=N.readonly(o));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of i)c in e&&(r[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(r[c]=e[c]);for(let c of Object.keys(e))zw.has(c)||(r[c]=e[c]);return Object.keys(r).length>0&&t.registry.add(o,r),o}s(Le,"convertSchema");function nv(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=Nw(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ce};return Le(e,r)}s(nv,"fromJSONSchema");var af={};Xe(af,{bigint:()=>jw,boolean:()=>Fw,date:()=>Bw,number:()=>Lw,string:()=>Uw});function Uw(e){return En(oo,e)}s(Uw,"string");function Lw(e){return Jn(io,e)}s(Lw,"number");function Fw(e){return Qn(ao,e)}s(Fw,"boolean");function jw(e){return ei(so,e)}s(jw,"bigint");function Bw(e){return ni($i,e)}s(Bw,"date");xe(vn());var iv=(c=>(c.FLOW_STEP="FLOW_STEP",c.FLOW_AGENT_STEP="FLOW_AGENT_STEP",c.AGENT="AGENT",c.AGENT_BUILDER="AGENT_BUILDER",c.CHAT="CHAT",c.ACTION_RUN="ACTION_RUN",c.KNOWLEDGE_BASE="KNOWLEDGE_BASE",c))(iv||{}),av=(o=>(o.PRODUCTION="PRODUCTION",o.TESTING="TESTING",o))(av||{}),ZF=C.object({origin:C.enum(iv),environment:C.enum(av),agentId:C.string().optional(),flowId:C.string().optional(),flowRunId:C.string().optional(),userId:C.string().optional()});var sf={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue",invalidDomain:"invalidDomain",duplicateDomain:"duplicateDomain"};var sv=(o=>(o.IMAGE="image",o.TEXT="text",o))(sv||{}),Me=C.object({apiKey:C.string()}),cv=C.object({serviceAccountJson:C.string().min(1)}),uv=Me,lv=Me.extend({apiKeyHash:C.string()}),dv=Me,pv=Me,mv=Me,fv=Me,gv=Me,hv=Me,yv=C.object({accessKeyId:C.string().min(1),secretAccessKey:C.string().min(1),sessionToken:C.string().optional()}),vv=Me,xv=C.object({}),_v=C.object({}),cf=C.object({modelId:C.string(),modelName:C.string(),modelType:C.enum(sv)}),Pv=C.object({apiKeyHeader:C.string(),baseUrl:C.string(),models:C.array(cf),defaultHeaders:C.record(C.string(),C.string()).optional(),apiStyle:C.enum(["chat","responses"]).optional()}),bv=C.object({accountId:C.string(),gatewayId:C.string(),models:C.array(cf),vertexProject:C.string().optional(),vertexRegion:C.string().optional()}),Av=C.object({resourceName:C.string(),apiVersion:C.string().optional().transform(e=>e?.trim().length===0?void 0:e)}),Ev=C.object({}),Tv=C.object({}),Iv=C.object({}),Sv=C.object({region:C.string().min(1)}),wv=C.object({project:C.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,sf.invalidGcpResourceId),region:C.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,sf.invalidGcpResourceId),models:C.array(cf)}),Ov=C.object({}),wt=C.object({}),QF=C.union([uv,mv,fv,gv,hv,pv,dv,lv,yv,cv,vv]),ej=C.union([Pv,bv,Av,wv,Sv,xv,Ev,Tv,Iv,_v,Ov,wt]),tj=C.discriminatedUnion("provider",[C.object({provider:C.literal("openai"),config:Tv.partial(),auth:gv.partial()}),C.object({provider:C.literal("openrouter"),config:Iv.partial(),auth:hv.partial()}),C.object({provider:C.literal("anthropic"),config:xv.partial(),auth:uv.partial()}),C.object({provider:C.literal("azure"),config:Av.partial(),auth:mv.partial()}),C.object({provider:C.literal("google"),config:Ev.partial(),auth:fv.partial()}),C.object({provider:C.literal("cloudflare-gateway"),config:bv.partial(),auth:pv.partial()}),C.object({provider:C.literal("custom"),config:Pv.partial(),auth:dv.partial()}),C.object({provider:C.literal("activepieces"),config:_v.partial(),auth:lv.partial()}),C.object({provider:C.literal("bedrock"),config:Sv.partial(),auth:yv.partial()}),C.object({provider:C.literal("vertex"),config:wv.partial(),auth:cv.partial()}),C.object({provider:C.literal("mistral"),config:Ov.partial(),auth:vv.partial()}),C.object({provider:C.literal("xai"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("deepseek"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("zai"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("qwen"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("minimax"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("moonshot"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("meta"),config:wt.partial(),auth:Me.partial()}),C.object({provider:C.literal("nvidia"),config:wt.partial(),auth:Me.partial()})]);var dj=m().check(Ne(/^#[0-9A-Fa-f]{6}$/));var mj=P({filename:m(),data:W(),type:V("file"),mimetype:A(m())});var Vw=Fe(Rv());var _j=P({...it,name:m(),permissions:Z(m()),platformId:_e(m()),type:m(),userCount:A(De())});var kj=C.enum(["active","out_of_credits","rejected","unreachable"]);var $v=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))($v||{}),uf=(o=>(o.FILE="FILE",o.TABLE="TABLE",o))(uf||{}),lf=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(lf||{});var df=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(df||{});var pf=(o=>(o.IN_PROGRESS="in-progress",o.COMPLETED="completed",o))(pf||{});var Hw=P({mode:H($v),value:W()}),Zw=P({auth:A(m()),fields:K(m(),Hw)}),qw=P({pieceName:m(),pieceVersion:m(),actionName:m(),predefinedInput:A(Zw)}),Gw=P({type:V("PIECE"),toolName:m().check(Ie(1)),pieceMetadata:qw}),Ww=P({type:V("none")}),Kw=P({type:V("access_token"),accessToken:m()}),Jw=P({type:V("api_key"),apiKey:m(),apiKeyHeader:m()}),Xw=P({type:V("headers"),headers:K(m(),m())}),Yw=Ht("type",[Ww,Kw,Jw,Xw]),Cv=P({type:V("FLOW"),toolName:m().check(Ie(1)),externalFlowId:m(),flowDisplayName:A(m())}),Dv=P({type:V("MCP"),toolName:m().check(Ie(1)),serverUrl:Th(),protocol:H(lf),auth:Yw}),zv=P({type:V("KNOWLEDGE_BASE"),toolName:m().check(Ie(1)),sourceType:H(uf),sourceId:m(),sourceName:m()}),Qw=Ht("type",[Gw,Cv,Dv,zv]),eO=P({displayName:m(),description:A(m()),type:H(df)}),Nv=P({type:V("MARKDOWN"),markdown:m()}),co={type:V("TOOL_CALL"),input:_e(K(m(),W())),output:A(W()),toolName:m(),status:H(pf),toolCallId:m(),startTime:m(),endTime:A(m())},b1=P(co),Mv=Ht("toolCallType",[P({...co,toolCallType:V("PIECE"),pieceName:m(),pieceVersion:m(),actionName:m()}),P({...co,toolCallType:V("FLOW"),displayName:m(),externalFlowId:m()}),P({...co,toolCallType:V("MCP"),displayName:m(),serverUrl:m()}),P({...co,toolCallType:V("KNOWLEDGE_BASE"),displayName:m(),sourceType:m()}),P({...co,toolCallType:V("UNKNOWN"),displayName:m()})]),tO=ee([Nv,Mv]);var rO=10800*1e3,oO=900*1e3;var hf=(o=>(o.IMAGE="image",o.TEXT="text",o))(hf||{}),Ot=P({apiKey:m()}),iO=Ot,aO=P({apiKey:m(),apiKeyHash:m()}),sO=Ot,cO=Ot,uO=Ot,lO=Ot,dO=Ot,pO=Ot,mO=Ot,Fv=P({serviceAccountJson:m().check(Ie(1))}),jv=P({accessKeyId:m().check(Ie(1)),secretAccessKey:m().check(Ie(1)),sessionToken:A(m())}),fO=P({}),gO=P({}),hO=P({}),yO=P({}),vO=P({}),xO=P({}),yf=P({modelId:m(),modelName:m(),modelType:H(hf)}),Bv=P({apiKeyHeader:m(),baseUrl:m(),models:Z(yf),defaultHeaders:A(K(m(),m())),apiStyle:A(H(["chat","responses"]))}),Vv=P({accountId:m(),gatewayId:m(),models:Z(yf),vertexProject:A(m()),vertexRegion:A(m())}),Hv=P({resourceName:m(),apiVersion:qt(Zt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),A(m()))}),Zv=P({region:m().check(Ie(1))}),qv=P({project:m().check(Ne(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:m().check(Ne(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:Z(yf)}),Gv=P({}),_O=ee([iO,uO,lO,dO,pO,cO,sO,aO,jv,Fv,mO]),Wv=ee([Bv,Vv,Hv,qv,Zv,fO,hO,yO,vO,gO,xO,Gv]),PO=P({id:m(),name:m(),type:H(hf)}),bO=P({id:m(),name:m(),provider:H(Kt),config:Wv,enabledForChat:se()}),AO=P({provider:H(Kt),name:m(),enabledForChat:se(),keys:Z(P({id:m(),name:m()}))}),EO=P({provider:H(Kt),configId:m(),config:Wv,auth:_O,platformId:m()});var I1={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Uv=["gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],TO=["claude-sonnet-5-5","claude-opus-5-5","claude-haiku-5-5"],IO=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Kv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],mf=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],gf=["gemini-2.5-pro","gemini-2.5-flash"],SO=["grok-4.20"],S1={anthropic:IO,google:gf,vertex:gf},w1=[...Kv.map(e=>`anthropic/${e}`),"deepseek/deepseek-v4.1-flash"],wO={openai:Uv,anthropic:TO,google:mf,vertex:mf,activepieces:[...Kv.map(e=>`anthropic/${e}`),...Uv.map(e=>`openai/${e}`),...[...mf,...gf].map(e=>`google/${e}`),...SO.map(e=>`x-ai/${e}`)]};var Lv=128e3,OO={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3,meta:1048576};function kO({provider:e}){return e?OO[e]??Lv:Lv}s(kO,"getMaxContextTokens");var ff={openai:["text-embedding-3-small","text-embedding-3-large"],google:["text-embedding-004","gemini-embedding-001"],azure:["text-embedding-3-small","text-embedding-3-large"],activepieces:["text-embedding-3-small"],openrouter:["openai/text-embedding-3-small","openai/text-embedding-3-large"]},RO={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},$O=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot","meta","nvidia"]),CO={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",meta:"https://api.meta.ai/v1",nvidia:"https://integrate.api.nvidia.com/v1"};function ke(e){return{chatModels:wO[e],maxContextTokens:kO({provider:e}),embeddingModels:ff[e]??[],defaultEmbeddingModel:ff[e]?.[0],supportsEmbedding:(ff[e]??[]).length>0,supportsImageGeneration:!$O.has(e),defaultImageModel:DO[e],webSearch:RO[e]}}s(ke,"buildProviderCapabilities");var Jv=[{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"}],DO={activepieces:Jv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},zO={openai:ke("openai"),anthropic:ke("anthropic"),openrouter:ke("openrouter"),azure:ke("azure"),google:ke("google"),"cloudflare-gateway":ke("cloudflare-gateway"),custom:ke("custom"),bedrock:ke("bedrock"),vertex:ke("vertex"),mistral:ke("mistral"),activepieces:ke("activepieces"),xai:ke("xai"),deepseek:ke("deepseek"),zai:ke("zai"),qwen:ke("qwen"),minimax:ke("minimax"),moonshot:ke("moonshot"),meta:ke("meta"),nvidia:ke("nvidia")};var NO=P({base64Url:m(),fileName:m(),extension:A(m())}),MO=P({mimeType:m(),url:m(),fileName:A(m())}),vf=ee([NO,MO]);var UO=ee([P({type:V("file"),value:vf}),P({type:V("markdown"),value:m(),files:A(Z(vf))})]),LO=P({sessionId:m(),message:m(),files:A(Z(m()))});var Yv=(o=>(o.ON_NEW_RECORD="ON_NEW_RECORD",o.ON_UPDATE_RECORD="ON_UPDATE_RECORD",o))(Yv||{}),Qv=(o=>(o.ENABLED="ENABLED",o.DISABLED="DISABLED",o))(Qv||{}),xf=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(xf||{});var FO=ee([P({...it,name:m(),externalId:m(),type:V("STATIC_DROPDOWN"),tableId:m(),projectId:m(),data:P({options:Z(P({value:m()}))})}),P({...it,name:m(),externalId:m(),type:ee([V("TEXT"),V("NUMBER"),V("DATE"),V("DATETIME")]),tableId:m(),projectId:m()})]),jO=P({...it,name:m(),folderId:_e(m()),projectId:m(),externalId:m(),status:Kp(Qv),trigger:Kp(Yv)}),BO=P({...it,tableId:m(),projectId:m(),cells:K(m(),P({updated:m(),created:m(),value:W(),fieldName:m()}))}),VO=P({events:Z(H(xf)),webhookUrl:m(),flowId:m()}),HO=P({fields:Z(P({id:m(),name:m()})),rows:Z(K(m(),m())),name:m()}),ZO=P({projectId:m(),limit:A(gi.number()),cursor:A(m()),name:A(m()),externalIds:Xs(m()),folderId:A(m()),folderIds:Xs(m())}),qO=P({records:Z(Z(P({fieldId:m(),value:tx()}))),tableId:m()}),GO=P({cells:A(Z(P({fieldId:m(),value:tx()}))),tableId:m(),agentUpdate:A(se())}),ex=Ht("operator",[Er("eq"),Er("neq"),Er("gt"),Er("gte"),Er("lt"),Er("lte"),Er("co"),Xv("exists"),Xv("not_exists")]),WO=P({tableId:m(),limit:A(gi.number()),cursor:A(m()),filters:Xs(ex)});function tx(){return qt(Zt(e=>e==null?e:String(e)),fi(m()))}s(tx,"coerceToString");function Er(e){return P({fieldId:m(),operator:V(e),value:m()})}s(Er,"valueFilter");function Xv(e){return P({fieldId:m(),operator:V(e)})}s(Xv,"existenceFilter");var KO=P({status:A(De()),body:A(W()),headers:A(K(m(),m()))}),JO=P({...it,deleted:_e(Wt),ownerId:m(),displayName:m(),platformId:m(),externalId:_e(m())});var rx=P({name:m(),description:A(m()),type:m(),required:se()}),XO=P({pieceName:m(),triggerName:m(),input:P({toolName:m(),toolDescription:m(),inputSchema:Z(rx),returnsResponse:se()})});var ox="^[0-9]+\\.[0-9]+\\.[0-9]+$",G1=new RegExp(ox),QO="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",W1=m().check(Ne(new RegExp(ox))),K1=m().check(Ne(new RegExp(QO))),ek=P({packageType:V("ARCHIVE"),pieceType:H(Qr),pieceName:m(),pieceVersion:m(),archiveId:m(),platformId:m()}),nx=P({packageType:V("REGISTRY"),pieceType:V("OFFICIAL"),pieceName:m(),pieceVersion:m()}),ix=P({packageType:V("REGISTRY"),pieceType:V("CUSTOM"),pieceName:m(),pieceVersion:m(),platformId:m()}),J1=ee([nx,ix]),X1=ee([ek,nx,ix]);var tk=Ht("type",[P({type:V("CRON_EXPRESSION"),cronExpression:m(),timezone:m()}),P({type:V("INTERVAL"),intervalMs:Ih().check(Oe(6e4))})]),Y1=P({...it,type:H(mt),projectId:m(),flowId:m(),triggerName:m(),schedule:_e(tk),flowVersionId:m(),pieceName:m(),pieceVersion:m(),deleted:_e(m()),simulate:se()}),ax=(w=>(w.UNKNOWN="UNKNOWN",w.FLOW_RUN_LOG="FLOW_RUN_LOG",w.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",w.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",w.FLOW_STEP_FILE="FLOW_STEP_FILE",w.SAMPLE_DATA="SAMPLE_DATA",w.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",w.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",w.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",w.PROJECT_RELEASE="PROJECT_RELEASE",w.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",w.PLATFORM_ASSET="PLATFORM_ASSET",w.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",w.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",w.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",w.KNOWLEDGE_BASE="KNOWLEDGE_BASE",w.FLOW_BUNDLE="FLOW_BUNDLE",w.PREWARM_SCOPE="PREWARM_SCOPE",w))(ax||{}),sx=(o=>(o.NONE="NONE",o.ZSTD="ZSTD",o))(sx||{}),cx=(o=>(o.S3="S3",o.DB="DB",o))(cx||{}),Q1=P({...it,projectId:_e(m()),platformId:_e(m()),type:H(ax),compression:H(sx),data:A(W()),location:H(cx),size:_e(De()),fileName:_e(m()),s3Key:_e(m()),metadata:_e(K(m(),m()))}),ux=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(ux||{}),lx=(o=>(o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o))(lx||{}),e4=P({id:m(),email:m(),firstName:m(),status:H(lx),externalId:_e(m()),platformId:_e(m()),platformRole:H(ux),lastName:m(),created:Wt,updated:Wt,lastActiveDate:_e(Wt),imageUrl:_e(m())});var Pf=P({...ae.shape,...X(K(m(),W()),"OBJECT").shape});var bf=P({...ae.shape,formatProperty:A(m()),...X(m(),"RICH_TEXT").shape});var fx=P({...ae.shape,...X(m(),"COLOR").shape});var Af=ee([et,At,bf,Ws,Tt,tt,Et,Bp,hi,Hp,It,xi,Pf,_i,vi,Vp,yi,fx]),g={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var gt=P({displayName:m(),description:A(m()),hasConnectionIdentifier:A(se())});var gx=P({username:m(),password:m()}),Ef=P({...gt.shape,username:P({displayName:m(),description:A(m())}),password:P({displayName:m(),description:A(m())}),...X(gx,"BASIC_AUTH").shape});var nk=K(m(),ee([et,At,It,Tt,tt])),Tf=P({...gt.shape,props:nk,...X(W(),"CUSTOM_AUTH").shape});var Tr=P({...gt.shape,...X(P({auth:m()}),"SECRET_TEXT").shape});var ik=K(m(),ee([et,At,Tr,It,Tt,tt,Et,Ws])),hx=P({...gt.shape,props:ik,...X(W(),"OIDC").shape});var If=(o=>(o.HEADER="HEADER",o.BODY="BODY",o))(If||{}),yx=ee([et,Tr,tt]),vx=K(m(),yx),xx=P({serverUrlProp:m(),authUrlProp:m(),tokenUrlProp:m(),scopesProp:A(m())}),ak=P({props:A(K(m(),yx)),authUrl:m(),tokenUrl:m(),scope:Z(m()),prompt:A(ee([V("none"),V("consent"),V("login"),V("omit")])),pkce:A(se()),pkceMethod:A(ee([V("plain"),V("S256")])),authorizationMethod:A(H(If)),grantType:A(ee([H(bi),V(Zp)])),extra:A(K(m(),m())),discovery:A(xx)}),_x=P({access_token:m(),props:A(vx),data:K(m(),mi())}),Sf=P({...gt.shape,...ak.shape,...X(_x,"OAUTH2").shape});var uo=ee([Ef,Tf,hx,Sf,Tr]),Ui="Connection",wf={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Ui}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Ui,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Ui}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Ui}},None(){}};var MB={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 sk=P({...ae.shape,...X(W(),"CUSTOM").shape,code:m()});var ck=ee([Af,uo]),Of=K(m(),ck),o6=K(m(),Af);var Px=ee([P({strategy:V("CRON"),cronExpression:m()}),P({strategy:V("NONE")})]),lo=class{constructor(t,o,n,r,i,a,c,u,l,d,h,f,p,v,b,E,I,w,U,ie,ue){this.name=t;this.displayName=o;this.description=n;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=c;this.onHandshake=u;this.renewConfiguration=l;this.onRenew=d;this.onEnable=h;this.onDisable=f;this.onStart=p;this.run=v;this.test=b;this.sampleData=E;this.testStrategy=I;this.outputSchema=w;this.aiMetadata=U;this.classification=ie;this.propertyGroups=ue}static{s(this,"ITrigger")}},po=s(e=>{switch(e.type){case"WEBHOOK":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new lo(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,le(e.sampleData)&&le(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var bx="2",$c="0.82.0";var kf=class{constructor(t,o,n,r,i,a,c,u,l=$c,d,h="",f){this.displayName=t;this.logoUrl=o;this.authors=n;this.events=r;this.categories=c;this.auth=u;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=h;this.deprecated=f;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:bx}),"getContextInfo");(!lk(l)||dk(l,$c))&&(this.minimumSupportedRelease=$c),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(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:uk(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},Ex=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((o,n,r)=>n===r.findIndex(i=>i.type===o.type)))throw new Error("Auth properties must be unique by type");return new kf(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function uk(e){if(e!==void 0)return Array.isArray(e)?e.map(Ax):Ax(e)}s(uk,"withConnectionIdentifierFlag");function Ax(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(Ax,"flagConnectionIdentifier");function lk(e){return/^\d+\.\d+\.\d+$/.test(e)}s(lk,"isValidSimpleSemver");function dk(e,t){let[o,n,r]=e.split(".").map(Number),[i,a,c]=t.split(".").map(Number);return o!==i?o<i:n!==a?n<a:r<c}s(dk,"isSemverLessThan");var pk=A(K(m(),K(m(),m()))),Tx=P({id:A(m()),name:m(),displayName:m(),logoUrl:m(),description:m(),authors:Z(m()),platformId:A(m()),directoryPath:A(m()),auth:A(ee([uo,Z(uo)])),version:m(),categories:A(Z(H(Pr))),minimumSupportedRelease:A(m()),maximumSupportedRelease:A(m()),deprecated:A(se()),i18n:pk}),mk=H(["human","ai","both"]),Ix=P({description:A(m()),idempotent:A(se())}),Sx=H(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var fk=H(["tabs","section","summary","builder","footer"]),wx=P({key:m(),display:fk,label:A(m()),description:A(m()),icon:A(m()),props:Z(m())}),Ox=P({name:m(),displayName:m(),description:m(),props:Of,propertyGroups:A(Z(wx)),requireAuth:se(),errorHandlingOptions:A(jp),outputSchema:A(Zs()),audience:A(mk),aiMetadata:A(Ix),classification:A(Sx)}),kx=P({name:m(),displayName:m(),description:m(),props:Of,propertyGroups:A(Z(wx)),errorHandlingOptions:A(jp),type:H(mt),sampleData:W(),handshakeConfiguration:A(Zs()),renewConfiguration:A(Px),testStrategy:H(Ei),outputSchema:A(Zs()),aiMetadata:A(Ix),classification:A(Sx)}),gk=P({...Tx.shape,actions:K(m(),Ox),triggers:K(m(),kx)}),hk=P({...Tx.shape,actions:De(),triggers:De(),suggestedActions:A(Z(Ox)),suggestedTriggers:A(Z(kx))}),Rx=P({projectUsage:De(),pieceType:H(Qr),packageType:H(Pi),platformId:A(m()),archiveId:A(m())}),sV=P({...gk.shape,...Rx.shape}),cV=P({...hk.shape,...Rx.shape}),uV=P({name:m(),version:m()});var Cx=Fe(require("path")),Rf=Fe(require("fs/promises"));var Cc={translatePiece:s(({piece:e,locale:t})=>{let o=t?e.i18n?.[t]:void 0;if(!o)return e;let n=$x(e.categories)?vk:yk;return Nx({node:e,tree:n,translations:o})},"translatePiece"),pathsToTranslate:s(e=>$x(e)?[...Cc.pathsToValuesToTranslate,"displayName"]:Cc.pathsToValuesToTranslate,"pathsToTranslate"),initializeI18n:s(async e=>{try{let t=Object.values(Jp),o={};for(let n of t){let r=await bk(n,e);r&&(o[n]=r)}return Object.keys(o).length>0?o:void 0}catch(t){console.log(`Error initializing i18n for ${e}:`,t);return}},"initializeI18n"),pathsToValuesToTranslate:["description","auth.username.displayName","auth.username.description","auth.password.displayName","auth.password.description","auth.props.*.displayName","auth.props.*.description","auth.props.*.options.options.*.label","auth.description","actions.*.displayName","actions.*.description","actions.*.props.*.displayName","actions.*.props.*.description","actions.*.props.*.options.options.*.label","actions.*.propertyGroups.*.label","actions.*.propertyGroups.*.description","triggers.*.displayName","triggers.*.description","triggers.*.props.*.displayName","triggers.*.props.*.description","triggers.*.props.*.options.options.*.label","triggers.*.propertyGroups.*.label","triggers.*.propertyGroups.*.description"]},yk=Dx(Cc.pathsToTranslate()),vk=Dx(Cc.pathsToTranslate(["CORE"]));function Dx(e){return e.reduce((t,o)=>zx({tree:t,keys:o.split(".")}),{})}s(Dx,"buildTree");function $x(e){return e?.includes("CORE")??!1}s($x,"isCorePiece");function zx({tree:e,keys:[t,...o]}){return{...e,[t]:o.length===0?null:zx({tree:e[t]??{},keys:o})}}s(zx,"addPath");function Nx({node:e,tree:t,translations:o}){if(!_k(e))return e;let n={},r=!1;for(let[i,a]of Object.entries(t))for(let c of i==="*"?Object.keys(e):[i]){let u=e[c],l=a===null?xk({value:u,translations:o}):Nx({node:u,tree:a,translations:o});l!==u&&(n[c]=l,r=!0)}return r?Object.assign(Array.isArray(e)?[]:{},e,n):e}s(Nx,"translateNode");function xk({value:e,translations:t}){return typeof e!="string"?e:t[e.slice(0,512)]||e}s(xk,"translateValue");function _k(e){return typeof e=="object"&&e!==null}s(_k,"isRecord");async function Pk(e){try{return await Rf.default.access(e),!0}catch{return!1}}s(Pk,"fileExists");var bk=s(async(e,t)=>{let o=Cx.default.join(t,"src","i18n",`${e}.json`);if(!await Pk(o))return null;try{let n=await Rf.default.readFile(o,"utf8"),r=JSON.parse(n);if(typeof r=="object"&&r!==null)return r;throw new Error(`Invalid i18n file format for ${e} in piece ${t}`)}catch(n){return console.error(`Error reading i18n file for ${e} in piece ${t}:`,n),null}},"readLocaleFile");var mo=require("node:stream");var Dc=class{constructor(t,o){this.baseUrl=t;this.authenticationConverter=o}static{s(this,"BaseHttpClient")}getUrl(t){let o=new URL(`${this.baseUrl}${t.url}`),n=`${o.origin}${o.pathname}`,r=new URLSearchParams;return o.searchParams.forEach((i,a)=>{r.append(a,i)}),{urlWithoutQueryParams:n,queryParams:r}}getHeaders(t){let o={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,o),t.body&&(t.headers?.["Content-Type"]==="text/csv"?o["Content-Type"]="text/csv":o["Content-Type"]="application/json"),t.headers&&(o={...o,...t.headers}),o}populateAuthentication(t,o){this.authenticationConverter.convert(t,o)}};var zc=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new $f,o=new Cf){this.converters={BEARER_TOKEN:t,BASIC:o}}convert(t,o){return this.converters[t.type].convert(t,o)}},$f=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,o){return o.Authorization=`Bearer ${t.token}`,o}},Cf=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,o){let n=`${t.username}:${t.password}`,r=Buffer.from(n).toString("base64");return o.Authorization=`Basic ${r}`,o}};var Li=class extends Error{constructor(o,n){let r=n.status||500,i=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:o}}));this.requestBody=o;this.status=r,this.responseBody=i}static{s(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 Mx({error:e,requestBody:t}){return e instanceof Li?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(Mx,"toFailsafeOutput");var Df=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Df||{});var Nc=class extends Dc{static{s(this,"FetchHttpClient")}constructor(t="",o=new zc){super(t,o)}async sendRequest(t,o){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=Fx(t.body)?kk(i):i,c=t.queryParams??{};for(let[ie,ue]of Object.entries(c))r.append(ie,ue);let u=r.toString(),l=u?`${n}?${u}`:n,d=t.responseType??"json",h=t.followRedirects??!0,f=t.retries??0,{body:p,extraHeaders:v,isStream:b}=Mc(t.method)?Ek(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},E=Ik({...a,...v}),I=await Tk(async()=>{let ie=new AbortController,ue=t.timeout&&t.timeout>0?setTimeout(()=>ie.abort(),t.timeout):void 0;try{let Se={method:t.method.toString(),headers:E,body:p,redirect:h?"follow":"manual",signal:ie.signal};return b&&(Se.duplex="half"),o?.dispatcher!==void 0&&(Se.dispatcher=o.dispatcher),await fetch(l,Se)}finally{ue!==void 0&&clearTimeout(ue)}},b?0:f),w=h?300:400;if(I.status<200||I.status>=w){let ie=await Ux(I,d==="stream"?"text":d),ue=new Li(t.redactBodyInErrors===!0?Ak:t.body,{status:I.status,responseBody:ie});throw console.error("[HttpClient#(sanitized error message)] Request failed:",ue),ue}let U=await Ux(I,d);return{status:I.status,headers:Sk(I.headers),body:U}}},Ak="[redacted]";function Mc(e){return e!=="GET"&&e!=="HEAD"}s(Mc,"acceptsRequestBody");function Ek(e,t){if(jx(e))return{body:void 0,extraHeaders:{},isStream:!1};if(Ok(e)){let n=wk(e);if(n!==null)return{body:n,extraHeaders:e.getHeaders(),isStream:!1};let r=new mo.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof mo.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||Fx(e)||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}s(Ek,"serializeBody");async function Ux(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return jx(e.body)?mo.Readable.from([]):mo.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let o=await e.text();if(o.length===0)return;try{return JSON.parse(o)}catch{return o}}}}s(Ux,"parseResponseBody");async function Tk(e,t){let o;for(let n=0;n<=t;n++)try{let r=await e();if(r.status>=500&&n<t){await Lx(n);continue}return r}catch(r){if(o=r,n<t){await Lx(n);continue}throw r}throw o}s(Tk,"sendWithRetries");function Lx(e){let t=Math.min(1e3*2**e,3e4);return new Promise(o=>setTimeout(o,t))}s(Lx,"backoff");function Ik(e){let t=new Map;for(let[o,n]of Object.entries(e))n!==void 0&&t.set(o.toLowerCase(),[o,Array.isArray(n)?n.join(", "):n]);return Object.fromEntries(t.values())}s(Ik,"normalizeHeaders");function Sk(e){let t={};return e.forEach((o,n)=>{t[n]=o}),t}s(Sk,"toHttpHeaders");function wk(e){if(!e.hasKnownLength()||e.getLengthSync()>Rk)return null;let{data:t}=Js(()=>e.getBuffer());return t}s(wk,"bufferFormDataIfSafe");function Ok(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(Ok,"isNodeFormData");function Fx(e){return typeof FormData<"u"&&e instanceof FormData}s(Fx,"isNativeFormData");function kk(e){return Object.fromEntries(Object.entries(e).filter(([t])=>t.toLowerCase()!=="content-type"))}s(kk,"withoutContentType");function jx(e){return e==null}s(jx,"isNil");var Rk=100*1024*1024;var Bx=new Nc;var v$=Fe(require("fs"));var x$={"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 _$(e){let t=e.split(";")[0].trim().toLowerCase();return x$[t]??""}s(_$,"contentTypeToExtension");var P$=s(({baseUrl:e,relativePath:t})=>{let o=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${o}${n}`},"joinBaseUrlWithRelativePath"),b$=s((e,t)=>{let o="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??o}catch{return o}},"getBaseUrlForDescription");function WP({auth:e,baseUrl:t,authMapping:o,description:n,displayName:r,name:i,props:a,extraProps:c,authLocation:u="headers",classification:l="WRITE"}){return O({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:g.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:g.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${b$(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:g.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Df).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:g.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:g.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:g.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>Mc(d)?{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:g.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:h})=>{if(!d||!Mc(h))return{};let f=d,p={};switch(f){case"none":break;case"json":p.data=g.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=g.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=g.Array({displayName:"Form Data",required:!0,properties:{fieldName:g.ShortText({displayName:"Field Name",required:!0}),fieldType:g.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:g.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:g.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:g.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:g.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:g.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:g.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...c},propertyGroups:[{key:"request",display:"section",label:"Request",icon:"send",props:["method","url","headers","queryParams"]},{key:"payload",display:"section",label:"Data to send",icon:"code",props:["body_type","body"]}],run:s(async d=>{let{method:h,url:f,headers:p,queryParams:v,body:b,body_type:E,failsafe:I,timeout:w,response_is_binary:U,followRedirects:ie}=d.propsValue;St(h,"Method"),St(f,"URL");let ue=le(o)?{}:await o(d.auth,d.propsValue),Se=f.url,Ae=Se.startsWith("http://")||Se.startsWith("https://")?Se:P$({baseUrl:t(d.auth),relativePath:Se}),oe={method:h,url:Ae,headers:{...p??{},...u==="headers"||!le(u)?ue:{}},queryParams:{...u==="queryParams"?ue:{},...v??{}},timeout:w?w*1e3:0,followRedirects:ie};if(U&&(oe.responseType="arraybuffer"),b)if(E&&E!=="none"){let Ve=b.data;if(E==="form_data"){let ra=Ve,{default:Y}=await Promise.resolve().then(()=>Fe(GP())),L=new Y;for(let{fieldName:M,fieldType:B,textFieldValue:F,fileFieldValue:J}of ra)B==="text"&&!Ti(F)?L.append(M,F):B==="file"&&!Ti(J)&&L.append(M,J.data,{filename:J?.filename});oe.body=L,oe.headers={...oe.headers,...L.getHeaders()}}else oe.body=Ve}else E||(oe.body=b);try{let Ve=await Bx.sendRequest(oe);return await A$(d.files,Ve.body,Ve.status,Ve.headers,U)}catch(Ve){if(I)return Mx({error:Ve,requestBody:oe.body});throw Ve}},"run")})}s(WP,"createCustomApiCallAction");var A$=s(async(e,t,o,n,r)=>{let i;if(r&&E$(t)){let a=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],c=_$(a??"")||"txt",u;t instanceof ArrayBuffer?u=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?u=t:u=Buffer.from(t),i=await e.write({fileName:`output.${c}`,data:u})}else i=t;return{status:o,headers:n,body:i}},"handleBinaryResponse"),E$=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var ht={async poll(e,{store:t,auth:o,propsValue:n,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let c=await t.get("lastPoll");if(le(c))throw new Error("lastPoll doesn't exist in the store.");let u=await e.items({store:t,auth:o,propsValue:n,lastFetchEpochMS:c,server:a}),l=u.reduce((d,h)=>Math.max(d,h.epochMilliSeconds),c);return await t.put("lastPoll",l),u.filter(d=>d.epochMilliSeconds>c).map(d=>d.data)}case 1:{let c=await t.get("lastItem"),u=await e.items({store:t,auth:o,propsValue:n,lastItemId:c,files:i,server:a}),l=u.findIndex(f=>f.id===c),d=[];le(c)||l==-1?d=u??[]:d=u?.slice(0,l)??[],le(r)||(d=d.slice(-r));let h=d?.[0]?.id;return le(h)||await t.put("lastItem",h),d.map(f=>f.data)}}},async onEnable(e,{store:t,auth:o,propsValue:n,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!le(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!le(await t.get("lastItem")))break;let c=(await e.items({store:t,auth:o,propsValue:n,lastItemId:null,server:r}))?.[0]?.id;le(c)?await t.delete("lastItem"):await t.put("lastItem",c);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:o,store:n,files:r,server:i}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:n,auth:t,propsValue:o,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:n,auth:t,propsValue:o,lastItemId:null,files:r,server:i});break}}return T$(a.map(c=>c.data))}};function T$(e){return e.length<=5?e:e.slice(0,5)}s(T$,"getFirstFiveOrAll");var Vi="login.microsoftonline.com",XP="login.microsoftonline.us",KP="Mail.ReadWrite Mail.Send Calendars.Read offline_access User.Read openid email profile",I$="https://graph.microsoft.com/.default",S$="https://graph.microsoft.us/.default",JP={[Vi]:"https://graph.microsoft.com",[XP]:"https://graph.microsoft.us"},YP=g.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Vi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Vi},{label:"US Government (GCC High)",value:XP}]}}),QP=g.StaticDropdown({displayName:"Access Mode",description:"Pick the option matching your Grant Type. Use a Delegated option with the Authorization Code grant (acts as the signed-in user). Use an App-only option with the Client Credentials grant (acts as the application \u2014 also set Tenant ID and Mailbox), choosing the one that matches your Cloud Environment.",required:!0,defaultValue:KP,options:{disabled:!1,options:[{label:"Delegated \u2014 Commercial (Global)",value:KP},{label:"App-only \u2014 Commercial (Global)",value:I$},{label:"App-only \u2014 US Government (GCC High)",value:S$}]}});function eb(e){return e??Vi}s(eb,"resolveCloudHost");function Gc(e){return eb(e.props?.cloud)}s(Gc,"getMicrosoftCloudFromAuth");function xo(e){let t=eb(e);return JP[t]??JP[Vi]}s(xo,"getGraphBaseUrl");var lA=Fe(Ji());function XD(e){let t=Gc(e);return lA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:xo(t)})}s(XD,"createClient");function YD(e){let t=e.props?.mailbox?.trim();return t?`/users/${encodeURIComponent(t)}`:"/me"}s(YD,"mailboxPrefix");function QD(e){return Array.isArray(e)?e.filter(t=>t!=null).map(t=>String(t).trim()).filter(t=>t.length>0).map(t=>({emailAddress:{address:t}})):[]}s(QD,"toRecipients");var _={createClient:XD,mailboxPrefix:YD,toRecipients:QD};var ez=`
45
45
  This connection supports two access modes. Pick the matching **Grant Type** and **Access Mode** below.
46
46
 
47
47
  **Delegated (Authorization Code)** \u2014 acts as the signed-in user. Keep **Access Mode** on the Delegated option, leave **Mailbox** blank, and keep **Tenant ID** as \`common\`. If you use your own Azure app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application), set the **Redirect URI** to {{redirectUrl}} and add these **Microsoft Graph (Delegated) permissions**:
@@ -56,7 +56,7 @@ This connection supports two access modes. Pick the matching **Grant Type** and
56
56
  - Mail.Send
57
57
 
58
58
  For app-only, Microsoft grants tenant-wide mailbox access by default \u2014 scope it to specific mailboxes with an [ApplicationAccessPolicy](https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access).
59
- `,S=wf.OAuth2({description:YD,grantType:"both_client_credentials_and_authorization_code",props:{cloud:JP,accessMode:XP,tenant:h.ShortText({displayName:"Tenant ID",description:'Use "common" for the default delegated multi-tenant flow. For app-only (Client Credentials), set this to your Directory (tenant) ID.',required:!0,defaultValue:"common"}),mailbox:h.ShortText({displayName:"Mailbox (App-only)",description:"Email/UPN or user object ID of the mailbox to act on. Required for app-only (Client Credentials). Leave blank for delegated access (acts as the signed-in user).",required:!1})},authUrl:"https://{cloud}/{tenant}/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/{tenant}/oauth2/v2.0/token",required:!0,scope:["{accessMode}"],prompt:"omit",validate:s(async({auth:e})=>{try{let t=e;return await _.createClient(t).api(`${_.mailboxPrefix(t)}/mailFolders/inbox`).get(),{valid:!0}}catch(t){return{valid:!1,error:QD(t)}}},"validate")});function QD(e){if(typeof e=="object"&&e!==null){let t=[];if("statusCode"in e&&e.statusCode&&t.push(`HTTP ${String(e.statusCode)}`),"code"in e&&e.code&&t.push(String(e.code)),"message"in e&&e.message&&t.push(String(e.message)),"body"in e&&e.body){let o=e.body;t.push(typeof o=="string"?o.slice(0,800):JSON.stringify(o).slice(0,800))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"Unknown error while validating the connection."}s(QD,"describeGraphError");var ez={Prefer:'outlook.body-content-type="text"'},tz="id,subject,bodyPreview,from,sender,toRecipients,ccRecipients,bccRecipients,replyTo,receivedDateTime,sentDateTime,createdDateTime,lastModifiedDateTime,hasAttachments,isRead,isDraft,importance,categories,flag,webLink,parentFolderId,conversationId,internetMessageId",rz="id,displayName,parentFolderId,childFolderCount,unreadItemCount,totalItemCount,isHidden",oz="id,name,contentType,size,isInline,lastModifiedDateTime",nz="Accepts a mail folder ID or a well-known name such as inbox, drafts, sentitems, deleteditems, archive or junkemail.",iz="It must be a delta link returned by this action on this connection; links pointing at another mailbox or endpoint are rejected.",az="Outlook message ID. Resolve one with List Messages, Search Messages or Get Message.";function dA(e){return(e.props?.mailbox??"").trim()}s(dA,"getConfiguredMailbox");function sz(e){return dA(e).length>0}s(sz,"isAppOnlyConnection");function cz(e){return encodeURIComponent(e.trim())}s(cz,"encodeGraphId");function uz(e){return(e.props?.cloud??"").includes(".us")}s(uz,"isGovernmentCloud");function pA(e){if(typeof e=="object"&&e!==null&&"statusCode"in e){let t=e.statusCode;if(typeof t=="number")return t}}s(pA,"graphStatusCode");function mA(e){if(typeof e=="object"&&e!==null&&"code"in e){let t=e.code;if(typeof t=="string")return t}}s(mA,"graphErrorCode");function lz(e){let t=mA(e)??"";return["BadRequest","RequestBroker--ParseUri","ResourceNotFound","ErrorInvalidUser","MailboxNotEnabledForRESTAPI"].some(n=>t===n)}s(lz,"isUnsupportedMePathError");function dz(e){let{"@removed":t,...o}=e;return{...o,removed:t!==void 0,removedReason:t?.reason??null}}s(dz,"withDeltaRemoval");function fA(e){if(typeof e=="object"&&e!==null){let t=[],o=e;if(o.code&&t.push(String(o.code)),o.message&&t.push(String(o.message)),o.body){let n=o.body;t.push(typeof n=="string"?n.slice(0,500):JSON.stringify(n).slice(0,500))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"No further detail was returned by Microsoft Graph."}s(fA,"graphErrorDetail");function pz({error:e,operation:t}){let o=pA(e),n=fA(e);return o===401?new Error(`${t} failed: the Outlook connection is not authenticated (HTTP 401). Reconnect the account. ${n}`):o===403?new Error(`${t} failed: Microsoft Graph denied the request (HTTP 403). The connection may lack the permission this endpoint requires, or the mailbox may not be accessible in this access mode. ${n}`):o===404?new Error(`${t} failed: the requested item was not found (HTTP 404). The ID may be wrong, or the item may have been moved or deleted. ${n}`):o===429?new Error(`${t} failed: Microsoft Graph throttled the request (HTTP 429). Retry after a short delay. ${n}`):new Error(`${t} failed. ${n}`)}s(pz,"graphError");var uA=["v1.0","beta"],mz="*";function lA(e){return e.split("?")[0].split("/").filter(t=>t.length>0).map(t=>{try{return decodeURIComponent(t)}catch{return t}})}s(lA,"pathSegments");function fz({segments:e,pattern:t}){return e.length!==t.length?!1:t.every((o,n)=>o===mz?e[n].length>0:e[n]===o)}s(fz,"segmentsMatchPattern");function hz({auth:e,deltaLink:t,expectedPath:o,operation:n}){let r=t.trim(),i=new URL(xo(qc(e))).origin,a=lA(o),c=`Expected an absolute URL on ${i} whose path is /{${uA.join("|")}}/${a.join("/")}. Only pass a delta link that this action returned.`,u;try{u=new URL(r)}catch{throw new ko(`${n} failed: the supplied delta link is not an absolute URL. ${c}`)}if(u.origin!==i)throw new ko(`${n} failed: the supplied delta link points at ${u.origin}, which is not the Microsoft Graph endpoint of this connection. ${c}`);let l=lA(u.pathname);if(l.length===0||!uA.includes(l[0]))throw new ko(`${n} failed: the supplied delta link does not target a supported Microsoft Graph API version. ${c}`);if(!fz({segments:l.slice(1),pattern:a}))throw new ko(`${n} failed: the supplied delta link addresses /${l.slice(1).join("/")}, which is outside the mailbox and endpoint this action is configured for. ${c}`);return u.toString()}s(hz,"resolveDeltaUrl");var ko=class extends Error{static{s(this,"InvalidDeltaLinkError")}constructor(t){super(t),this.name="InvalidDeltaLinkError"}},x={textBodyHeaders:ez,messageSelect:tz,mailFolderSelect:rz,attachmentSelect:oz,wellKnownFolderHint:nz,messageIdHint:az,getConfiguredMailbox:dA,isAppOnlyConnection:sz,isGovernmentCloud:uz,encodeGraphId:cz,graphStatusCode:pA,graphErrorCode:mA,graphErrorDetail:fA,isUnsupportedMePathError:lz,withDeltaRemoval:dz,resolveDeltaUrl:hz,deltaLinkHint:iz,graphError:pz};var yt=s(e=>h.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o);try{return{disabled:!1,options:(await n.api(`${_.mailboxPrefix(o)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"} - ${a.from?.emailAddress?.name||a.from?.emailAddress?.address||"Unknown Sender"}`,value:a.id}))}}catch{return{disabled:!0,options:[],placeholder:"Could not load emails. Check your connection."}}},"options")}),"messageIdDropdown"),hA=s(e=>h.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o);try{return{disabled:!1,options:(await n.api(`${_.mailboxPrefix(o)}/mailFolders/drafts/messages?$top=50&$select=id,subject,from,toRecipients,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:gz(a),value:a.id}))}}catch{return{disabled:!0,options:[],placeholder:"Could not load drafts. Check your connection."}}},"options")}),"draftMessageIdDropdown"),Yt=s(e=>h.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o),r=_.mailboxPrefix(o),{folders:i,failed:a}=await yA({client:n,firstPageUrl:`${r}/mailFolders?$top=100&$select=${vA}`});if(a&&i.length===0)return{disabled:!0,options:[],placeholder:"Could not load folders. Check your connection."};let c=await gA({client:n,prefix:r,folders:i,parentPath:"",limit:yz,requestLimit:vz});return{disabled:!1,options:c.options,placeholder:a||c.incomplete?"Not all folders could be loaded.":void 0}},"options")}),"mailFolderIdDropdown");async function gA({client:e,prefix:t,folders:o,parentPath:n,limit:r,requestLimit:i}){let a=[],c=0,u=!1;for(let[l,d]of o.entries()){if(a.length>=r)return{options:a,requests:c,incomplete:!0};let g=`${n}${d.displayName||"Unnamed folder"}`;if(a.push({label:g,value:d.id||""}),!d.id||!d.childFolderCount)continue;let f=r-a.length-(o.length-l-1);if(c>=i||f<=0){u=!0;continue}c++;let p=await yA({client:e,firstPageUrl:`${t}/mailFolders/${x.encodeGraphId(d.id)}/childFolders?$top=100&$select=${vA}`}),v=await gA({client:e,prefix:t,folders:p.folders,parentPath:`${g} / `,limit:f,requestLimit:i-c});a.push(...v.options),c+=v.requests,u=u||p.failed||v.incomplete}return{options:a,requests:c,incomplete:u}}s(gA,"folderTreeOptions");async function yA({client:e,firstPageUrl:t}){let o=[],n=t;for(;n;){let r=n,i=await qp(()=>e.api(r).get());if(i.error!==null)return{folders:o,failed:!0};o.push(...i.data.value),n=i.data["@odata.nextLink"]}return{folders:o,failed:!1}}s(yA,"fetchAllFolders");function gz(e){let t=e.subject||"No Subject",o=e.toRecipients?.[0]?.emailAddress?.address;return o?`${t} - to ${o}`:t}s(gz,"draftLabel");var vA="id,displayName,childFolderCount",yz=2e3,vz=100;var Or=[{key:"name",label:"Name",value:"emailAddress.name"},{key:"address",label:"Email Address",value:"emailAddress.address",format:"email"}],$o=[{key:"id",label:"Message ID"},{key:"subject",label:"Subject"},{key:"bodyPreview",label:"Body Preview"},{key:"body",label:"Body",children:[{key:"contentType",label:"Content Type"},{key:"content",label:"Content"}]},{key:"from",label:"From",children:Or},{key:"sender",label:"Sender",children:Or},{key:"toRecipients",label:"To Recipients",labelKey:"address",listItems:Or},{key:"ccRecipients",label:"CC Recipients",labelKey:"address",listItems:Or},{key:"bccRecipients",label:"BCC Recipients",labelKey:"address",listItems:Or},{key:"replyTo",label:"Reply To",labelKey:"address",listItems:Or},{key:"receivedDateTime",label:"Received At",format:"datetime"},{key:"sentDateTime",label:"Sent At",format:"datetime"},{key:"createdDateTime",label:"Created At",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"},{key:"hasAttachments",label:"Has Attachments",format:"boolean"},{key:"isRead",label:"Is Read",format:"boolean"},{key:"isDraft",label:"Is Draft",format:"boolean"},{key:"importance",label:"Importance"},{key:"categories",label:"Categories"},{key:"flag",label:"Flag",children:[{key:"flagStatus",label:"Flag Status"}]},{key:"webLink",label:"Web Link",format:"url"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"conversationId",label:"Conversation ID"},{key:"internetMessageId",label:"Internet Message ID"}],xA=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"file",label:"File",format:"url"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],Ro=[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"messageId",label:"Message ID"}],_A=[{key:"name",label:"Name"},{key:"address",label:"Email Address",format:"email"}],Xi=[...$o,{key:"inferenceClassification",label:"Inference Classification"},{key:"isReadReceiptRequested",label:"Is Read Receipt Requested",format:"boolean"},{key:"isDeliveryReceiptRequested",label:"Is Delivery Receipt Requested",format:"boolean"}],PA=$o.filter(e=>e.key!=="body"),xz=Xi.filter(e=>e.key!=="from"&&e.key!=="sender"),Zu=[{key:"id",label:"Folder ID"},{key:"displayName",label:"Display Name"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"childFolderCount",label:"Child Folder Count",format:"number"},{key:"unreadItemCount",label:"Unread Item Count",format:"number"},{key:"totalItemCount",label:"Total Item Count",format:"number"},{key:"isHidden",label:"Is Hidden",format:"boolean"}],Yi=[...Zu,{key:"sizeInBytes",label:"Size",format:"filesize"},{key:"wellKnownName",label:"Well-Known Name"}],Eh=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],bA=[{key:"messageId",label:"Message ID"},{key:"status",label:"HTTP Status",format:"number"},{key:"error",label:"Error"}],AA=[{key:"id",label:"Override ID"},{key:"classifyAs",label:"Classify As"},{key:"senderEmailAddress",label:"Sender",children:_A}],EA=[{key:"removed",label:"Removed",format:"boolean"},{key:"removedReason",label:"Removal Reason"}],Co=[{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextLink",label:"Next Page URL",format:"url"}],Do={fields:$o},TA={fields:$o.filter(e=>e.key!=="from"&&e.key!=="sender")},IA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"totalCount",label:"Total Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextPageUrl",label:"Next Page URL",format:"url"},{key:"result",label:"Emails",labelKey:"subject",listItems:$o}]},SA={itemLabel:"{name}",fields:[{key:"attachments",label:"Attachments",value:"",listItems:xA}]},wA={fields:Ro},OA={fields:Ro},kA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"draftId",label:"Draft ID"},{key:"draftLink",label:"Draft Link",format:"url"}]},$A={fields:[{key:"approved",label:"Approved",format:"boolean"}]},qu={fields:$o},RA={fields:[...xA,{key:"messageId",label:"Message ID"},{key:"messageSubject",label:"Message Subject"},{key:"messageSender",label:"Message Sender",children:Or},{key:"messageReceivedDateTime",label:"Message Received At",format:"datetime"},{key:"parentFolderId",label:"Parent Folder ID"}]},vt={fields:Xi},Qt={fields:xz},CA={fields:[{key:"messages",label:"Messages",labelKey:"subject",listItems:PA},...Co]},DA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"messages",label:"Messages",labelKey:"subject",listItems:Xi},...Co]},zA={fields:[{key:"changes",label:"Changed Messages",labelKey:"subject",listItems:[...PA,...EA]},...Co,{key:"deltaLink",label:"Delta Link",format:"url"}]},NA={fields:[{key:"messageId",label:"Message ID"},{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"}]},MA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"previousMessageId",label:"Previous Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Xi}]},UA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"sourceMessageId",label:"Source Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Xi}]},LA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"newMessageId",listItems:[{key:"messageId",label:"Previous Message ID"},{key:"newMessageId",label:"New Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:bA}]},FA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"messageId",listItems:[{key:"messageId",label:"Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:bA}]},jA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"}]},BA={fields:[{key:"messageId",label:"Message ID"},{key:"attachments",label:"Attachments",labelKey:"name",listItems:[...Eh,{key:"attachmentType",label:"Attachment Type"}]},{key:"count",label:"Count",format:"number"}]},VA={fields:[...Eh,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},HA={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"attachmentId",label:"Attachment ID"},{key:"messageId",label:"Message ID"}]},ZA={fields:[...Eh,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},qA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"},{key:"attachmentId",label:"Attachment ID"}]},GA={fields:Zu},WA={fields:Yi},KA={fields:[{key:"folders",label:"Folders",labelKey:"displayName",listItems:Zu},...Co]},JA={fields:[{key:"parentFolderId",label:"Parent Folder ID"},{key:"folders",label:"Folders",labelKey:"displayName",listItems:Zu},...Co]},XA={fields:[{key:"changes",label:"Changed Folders",labelKey:"displayName",listItems:[...Yi,...EA]},...Co,{key:"deltaLink",label:"Delta Link",format:"url"}]},YA={fields:[{key:"created",label:"Created",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"folder",label:"Folder",children:Yi}]},QA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newFolderId",label:"New Folder ID"},{key:"sourceFolderId",label:"Source Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Yi}]},eE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"newFolderId",label:"New Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Yi}]},tE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"folderId",label:"Folder ID"}]},Gu={fields:AA},rE={fields:[{key:"overrides",label:"Overrides",labelKey:"classifyAs",listItems:AA},{key:"count",label:"Count",format:"number"}]},oE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"overrideId",label:"Override ID"}]},nE={fields:[{key:"mailTips",label:"Mail Tips",listItems:[{key:"emailAddress",label:"Email Address",children:_A},{key:"mailboxFull",label:"Mailbox Full",format:"boolean"},{key:"deliveryRestricted",label:"Delivery Restricted",format:"boolean"},{key:"isModerated",label:"Is Moderated",format:"boolean"},{key:"recipientScope",label:"Recipient Scope"},{key:"maxMessageSize",label:"Max Message Size",format:"filesize"},{key:"externalMemberCount",label:"External Member Count",format:"number"},{key:"totalMemberCount",label:"Total Member Count",format:"number"},{key:"automaticReplies",label:"Automatic Replies"}]},{key:"count",label:"Count",format:"number"}]},iE={fields:[{key:"id",label:"User ID"},{key:"displayName",label:"Display Name"},{key:"mail",label:"Email Address",format:"email"},{key:"userPrincipalName",label:"User Principal Name"},{key:"source",label:"Source"}]},aE={fields:[{key:"timeZones",label:"Time Zones",labelKey:"displayName",listItems:[{key:"alias",label:"Alias"},{key:"displayName",label:"Display Name"}]},{key:"count",label:"Count",format:"number"}]},sE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"subject",label:"Subject"},{key:"recipients",label:"Recipients"}]},cE={fields:Ro},uE={fields:Ro},lE={fields:Ro},dE={fields:[...Ro,{key:"recipients",label:"Recipients"}]};var pE=O({auth:S,name:"addLabelToEmail",classification:"WRITE",displayName:"Add Label to Email",description:"Tag an email with one or more Outlook categories.",audience:"human",aiMetadata:{description:"Adds one or more Outlook categories (labels) to a specific message, merging them with any categories already present. Use this to tag or classify an email. Idempotent: re-adding the same categories leaves the message unchanged since duplicates are de-duplicated.",idempotent:!0},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to tag.",required:!0}),categories:h.Array({displayName:"Categories",description:"Category names to add, one per row.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=_.createClient(e.auth),i=(await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[],a=[...new Set([...i,...o])];return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var mE=O({auth:S,name:"createDraftEmail",classification:"WRITE",displayName:"Create Draft Email",description:"Save a new email to your Drafts folder without sending it.",audience:"human",aiMetadata:{description:"Creates a new unsent draft email in the Outlook mailbox with recipients, subject, body, and optional attachments. Use this to stage a message for later review or sending (pair with Send Draft Email). Not idempotent: each call creates a separate draft.",idempotent:!1},outputSchema:TA,propertyGroups:[{key:"recipients",display:"tabs",label:"Recipients",props:["recipients","ccRecipients","bccRecipients"]}],props:{recipients:h.Array({displayName:"To",required:!0}),ccRecipients:h.Array({displayName:"Cc",required:!1,defaultValue:[]}),bccRecipients:h.Array({displayName:"Bcc",required:!1,defaultValue:[]}),subject:h.ShortText({displayName:"Subject",placeholder:"Invoice for March",required:!0}),bodyFormat:h.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),body:h.LongText({displayName:"Body",required:!0}),attachments:h.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:h.File({displayName:"File",required:!0}),fileName:h.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}})},async run(e){let t=e.propsValue.attachments??[],{subject:o,body:n,bodyFormat:r}=e.propsValue,i={subject:o,body:{content:n,contentType:r},toRecipients:_.toRecipients(e.propsValue.recipients),ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:t.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))};return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages`).post(i)}});var fE=O({auth:S,name:"downloadAttachment",classification:"READ",displayName:"Download Attachment",description:"Save the files attached to an email so later steps can use them.",audience:"human",aiMetadata:{description:"Fetches all file attachments from a specific Outlook message (by message ID) and writes them to storage for downstream steps. Use this after locating a message to retrieve its attached files. Requires a valid message ID; idempotent since it only reads.",idempotent:!0},outputSchema:SA,props:{messageId:h.ShortText({displayName:"Message ID",description:"Map it from a Find Email step or an Outlook trigger.",required:!0})},async run(e){let{messageId:t}=e.propsValue,n=await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/attachments`).get(),r=[];for(let i of n.value)i.name&&i.contentBytes&&r.push({...i,file:await e.files.write({fileName:i.name||"test.png",data:Buffer.from(i.contentBytes,"base64")})});return r}});var Sh=Le(zo());var hE=O({auth:S,name:"findEmail",classification:"SEARCH",displayName:"Find Email",description:"Search your mailbox by keywords, sender or subject.",audience:"human",aiMetadata:{description:"Searches the Outlook mailbox for messages matching a full-text query (supports field syntax like from:, subject:, hasAttachments:), optionally scoped to one folder and capped by a max-results count. Use this to locate emails and obtain their message IDs for follow-up actions. Idempotent read-only lookup.",idempotent:!0},outputSchema:IA,props:{searchQuery:h.ShortText({displayName:"Search Query",description:"Words to find. Narrow with from:, subject: or hasAttachments:true.",placeholder:"from:jane@example.com invoice",required:!0}),folderId:Yt({displayName:"Folder",description:"Leave empty to search every folder.",required:!1}),top:h.Number({displayName:"Max Results",description:"How many emails to return, up to 1000.",required:!1,defaultValue:25,display:"stepper",min:1,max:1e3,step:1})},async run(e){let{searchQuery:t,folderId:o,top:n}=e.propsValue,r=_.createClient(e.auth),i=o?`${_.mailboxPrefix(e.auth)}/mailFolders/${o}/messages`:`${_.mailboxPrefix(e.auth)}/messages`,a=`$search="${t}"`,c=n?`$top=${Math.min(Math.max(n,1),1e3)}`:"$top=25",u=[a,c].filter(Boolean).join("&"),l=`${i}?${u}`,d={ConsistencyLevel:"eventual",Prefer:'outlook.body-content-type="text"'},g=await r.api(l).headers(d).get(),f=g.value,p=g["@odata.nextLink"];return t&&f.sort((v,b)=>(0,Sh.default)(b.receivedDateTime).valueOf()-(0,Sh.default)(v.receivedDateTime).valueOf()),{found:f.length>0,result:f,hasMore:!!p,nextPageUrl:p,totalCount:f.length}}});var gE=O({auth:S,name:"forwardEmail",classification:"WRITE",displayName:"Forward Email",description:"Forward an email to new recipients with an optional note.",audience:"human",aiMetadata:{description:"Forwards an existing Outlook message (by message ID) to new recipients, preserving the original body and attachments and prepending an optional comment. Use this to pass an existing email along rather than composing a new one. Not idempotent: each call sends a new forwarded email.",idempotent:!1},outputSchema:OA,props:{messageId:yt({displayName:"Email",description:"The email to forward.",required:!0}),recipients:h.Array({displayName:"To",description:"One address per row.",required:!0}),comment:h.LongText({displayName:"Comment",description:"Added above the forwarded email. HTML tags are rendered.",required:!1})},async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get(),i={toRecipients:_.toRecipients(e.propsValue.recipients),body:{contentType:"html",content:(o??"")+"<br><br>"+r.body.content},attachments:r.attachments};return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}/forward`).post({message:i}),{success:!0,message:"Email forwarded successfully.",messageId:t}}});var yE=O({auth:S,name:"moveEmailToFolder",classification:"WRITE",displayName:"Move Email to Folder",description:"Move an email into another folder.",audience:"human",aiMetadata:{description:"Moves a specific Outlook message into a chosen mail folder. Use this to organize, archive, or route an email after processing it. Note: the move assigns a new message ID, so re-running with the original ID will fail once moved.",idempotent:!1},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to move.",required:!0}),destinationFolderId:Yt({displayName:"Destination Folder",description:"Folder to move the email into.",required:!0})},async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue;return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/move`).post({destinationId:o})}});var vE=O({auth:S,name:"removeLabelFromEmail",classification:"WRITE",displayName:"Remove Label from Email",description:"Remove one or more Outlook categories from an email.",audience:"human",aiMetadata:{description:"Removes one or more Outlook categories (labels) from a specific message, leaving any other categories intact. Use this to untag or reclassify an email. Idempotent: re-running with the same categories yields the same final label set.",idempotent:!0},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to remove categories from.",required:!0}),categories:h.Array({displayName:"Categories",description:"Category names to remove, one per row.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=_.createClient(e.auth),a=((await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[]).filter(u=>!o.includes(u));return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var xE=O({auth:S,name:"reply-email",classification:"WRITE",displayName:"Reply to Email",description:"Reply to an Outlook email, or save the reply as a draft.",audience:"human",aiMetadata:{description:"Replies to an existing Outlook message (identified by message ID), supporting added CC/BCC recipients and attachments. Set the Create Draft flag to stage the reply without sending; otherwise it is sent immediately. Not idempotent when sending: each call creates and dispatches a new reply.",idempotent:!1},outputSchema:kA,propertyGroups:[{key:"recipients",display:"tabs",label:"Cc and Bcc",props:["ccRecipients","bccRecipients"]}],props:{messageId:yt({displayName:"Email",description:"The email to reply to.",required:!0}),bodyFormat:h.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),replyBody:h.LongText({displayName:"Body",required:!0}),ccRecipients:h.Array({displayName:"Cc",required:!1}),bccRecipients:h.Array({displayName:"Bcc",required:!1}),attachments:h.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:h.File({displayName:"File",required:!0}),fileName:h.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}}),draft:h.Checkbox({displayName:"Save as Draft",description:"Save the reply to Drafts instead of sending it.",required:!1,defaultValue:!1})},async run(e){let{replyBody:t,bodyFormat:o,messageId:n,draft:r}=e.propsValue,i=e.propsValue.attachments??[],a={body:{content:t,contentType:o},ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:i.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))},c=_.createClient(e.auth);try{let l=(await c.api(`${_.mailboxPrefix(e.auth)}/messages/${n}/createReply`).post({message:a})).id;return r?{success:!0,message:"Draft created successfully.",draftId:l,draftLink:`https://outlook.office.com/mail/drafts/id/${l}`}:(await c.api(`${_.mailboxPrefix(e.auth)}/messages/${l}/send`).post({}),{success:!0,message:"Reply sent successfully.",draftId:l})}catch(u){console.error("Reply Email Error:",u);let l=u instanceof Error?u.message:"Unknown error";throw new Error(l)}}});var _E=O({auth:S,name:"sendDraftEmail",classification:"WRITE",displayName:"Send Draft Email",description:"Send an email that is waiting in your Drafts folder.",audience:"human",aiMetadata:{description:"Sends an existing draft email (identified by draft message ID) from the Outlook mailbox. Use this to dispatch a draft previously staged by Create Draft Email or a draft reply. Not idempotent: once sent the draft no longer exists, so re-running with the same ID will fail.",idempotent:!1},outputSchema:wA,props:{messageId:hA({displayName:"Email",description:"Pick a draft from your Drafts folder.",required:!0})},async run(e){let{messageId:t}=e.propsValue;return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}});var PE=O({auth:S,name:"send-email",classification:"WRITE",displayName:"Send Email",description:"Send an email from your Outlook mailbox.",audience:"human",aiMetadata:{description:"Composes and sends a new email from the authenticated Outlook mailbox to the given recipients, with optional CC/BCC and file attachments. Use this to send a fresh message (not a reply or forward). Not idempotent: each call dispatches a new email and saves a copy to Sent Items.",idempotent:!1},propertyGroups:[{key:"recipients",display:"tabs",label:"Recipients",props:["recipients","ccRecipients","bccRecipients"]}],props:{recipients:h.Array({displayName:"To",required:!0}),ccRecipients:h.Array({displayName:"Cc",required:!1,defaultValue:[]}),bccRecipients:h.Array({displayName:"Bcc",required:!1,defaultValue:[]}),subject:h.ShortText({displayName:"Subject",placeholder:"Invoice for March",required:!0}),bodyFormat:h.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),body:h.LongText({displayName:"Body",required:!0}),attachments:h.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:h.File({displayName:"File",required:!0}),fileName:h.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}})},async run(e){let t=e.propsValue.attachments??[],{subject:o,body:n,bodyFormat:r}=e.propsValue,i={subject:o,body:{content:n,contentType:r},toRecipients:_.toRecipients(e.propsValue.recipients),ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:t.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))};return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:i,saveToSentItems:"true"})}});var AE=Le(Ji()),Qi=Le(zo());var EE="id,subject,from,sender,receivedDateTime,parentFolderId",_z=5,Pz=100,Wu="pollCursor",TE="lastPoll",IE=po({auth:S,name:"newAttachment",classification:"READ",displayName:"New Attachment",description:"Triggers once for each attachment on a new email.",aiMetadata:{description:"Fires once per attachment when a new email carrying one or more file attachments arrives, optionally scoped to a folder, sender, attachment-name, or file-extension filter. Each fire represents a single attachment from a newly received message."},outputSchema:RA,props:{folderId:Yt({displayName:"Folder",description:"Leave empty to watch the whole mailbox, including sent mail.",required:!1}),sender:h.ShortText({displayName:"From",description:"Only emails whose sender address contains this text.",placeholder:"sender@example.com",required:!1}),attachmentNameFilter:h.ShortText({displayName:"Attachment Name",description:"Only attachments whose file name contains this text.",placeholder:"invoice",required:!1}),fileExtension:h.ShortText({displayName:"File Extension",description:"Only attachments with this extension. Separate several with commas, e.g. pdf, docx.",placeholder:"pdf",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){e.isRepublish&&await Sz(e.store)||await e.store.put(Wu,{epochMilliSeconds:Date.now(),seenMessageIds:[]})},async onDisable(e){},async test(e){let{folderId:t,...o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=t?`${r}/mailFolders/${t}/messages`:`${r}/messages`,a=await n.api(`${i}?$filter=receivedDateTime ge 1900-01-01T00:00:00Z and hasAttachments eq true`).select(EE).orderby("receivedDateTime desc").top(Pz).get();return(await bE({client:n,mailboxPrefix:r,messages:a.value,files:e.files,filters:o,limit:_z})).reverse()},async run(e){let t=await wz(e.store),{folderId:o,...n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a=o?`${i}/mailFolders/${o}/messages`:`${i}/messages`,c=(0,Qi.default)(t.epochMilliSeconds).toISOString(),u=await Oz({client:r,url:`${a}?$filter=receivedDateTime ge ${c} and hasAttachments eq true`}),l=await bE({client:r,mailboxPrefix:i,messages:u.filter(d=>Tz({message:d,cursor:t})),files:e.files,filters:n});return await e.store.put(Wu,Iz({cursor:t,messages:u})),l}});function bz({message:e,sender:t}){let o=t?.trim().toLowerCase();return o?[e.from?.emailAddress?.address,e.sender?.emailAddress?.address].some(n=>!le(n)&&n.toLowerCase().includes(o)):!0}s(bz,"messageMatchesSender");function Az({name:e,filters:t}){let o=e?.toLowerCase(),n=t.attachmentNameFilter?.trim().toLowerCase();if(n&&!o?.includes(n))return!1;let r=Ez(t.fileExtension);return!(r.length>0&&!r.some(i=>o?.endsWith(`.${i}`)))}s(Az,"attachmentMatchesFilters");function Ez(e){return(e??"").split(",").map(t=>t.trim().toLowerCase().replace(/^\./,"")).filter(t=>t.length>0)}s(Ez,"parseExtensions");function Tz({message:e,cursor:t}){let o=(0,Qi.default)(e.receivedDateTime).valueOf();return o!==t.epochMilliSeconds?o>t.epochMilliSeconds:!le(t.seenMessageIds)&&!t.seenMessageIds.includes(e.id)}s(Tz,"isUnseenMessage");function Iz({cursor:e,messages:t}){let o=t.reduce((i,a)=>Math.max(i,(0,Qi.default)(a.receivedDateTime).valueOf()),e.epochMilliSeconds),n=t.filter(i=>(0,Qi.default)(i.receivedDateTime).valueOf()===o).map(i=>i.id),r=o===e.epochMilliSeconds?e.seenMessageIds??[]:[];return{epochMilliSeconds:o,seenMessageIds:[...new Set([...n,...r])]}}s(Iz,"advanceCursor");async function Sz(e){let[t,o]=await Promise.all([e.get(Wu),e.get(TE)]);return!le(t)||!le(o)}s(Sz,"hasPollCursor");async function wz(e){let t=await e.get(Wu);if(!le(t))return t;let o=await e.get(TE);if(le(o))throw new Error("lastPoll doesn't exist in the store.");return{epochMilliSeconds:o,seenMessageIds:null}}s(wz,"readPollCursor");async function Oz({client:e,url:t}){let o=await e.api(t).select(EE).orderby("receivedDateTime desc").get(),n=[];for(;o.value.length>0&&(n.push(...o.value),!!o["@odata.nextLink"]);)o=await e.api(o["@odata.nextLink"]).get();return n}s(Oz,"listMessages");async function kz({client:e,mailboxPrefix:t,messageId:o,attachmentId:n}){let r=`${t}/messages/${x.encodeGraphId(o)}`,i=await e.api(`${r}/attachments/${x.encodeGraphId(n)}/$value`).responseType(AE.ResponseType.ARRAYBUFFER).get();return Buffer.isBuffer(i)?i:Buffer.from(i)}s(kz,"downloadAttachment");async function bE({client:e,mailboxPrefix:t,messages:o,files:n,filters:r,limit:i}){let a=[];for(let c of o){if(!bz({message:c,sender:r.sender}))continue;let u=await e.api(`${t}/messages/${c.id}/attachments`).get();for(let l of u.value){let{contentBytes:d,...g}=l;if(!Az({name:l.name,filters:r})||!l.name||l["@odata.type"]!=="#microsoft.graph.fileAttachment")continue;let f=d?Buffer.from(d,"base64"):await kz({client:e,mailboxPrefix:t,messageId:c.id,attachmentId:l.id}),p=await n.write({fileName:l.name,data:f});if(a.push({file:p,messageId:c.id,messageSubject:c.subject,messageSender:c.sender,messageReceivedDateTime:c.receivedDateTime,parentFolderId:c.parentFolderId,...g}),!le(i)&&a.length>=i)return a}}return a}s(bE,"enrichAttachments");var wh=Le(zo());var Ku={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=_.createClient(e),r=[],i=o.folderId,a=t===0?"$top=10":`$filter=createdDateTime gt ${(0,wh.default)(t).toISOString()}`,c=await n.api(`${_.mailboxPrefix(e)}/mailFolders/${i}/messages?${a}`).orderby("createdDateTime desc").get();if(t===0)for(let u of c.value)r.push(u);else for(;c.value.length>0;){for(let u of c.value)r.push(u);if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return r.map(u=>({epochMilliSeconds:(0,wh.default)(u.createdDateTime).valueOf(),data:u}))},"items")},SE=po({auth:S,name:"newEmailInFolder",classification:"READ",displayName:"New Email in Folder",description:"Triggers when a new email lands in the folder you pick.",aiMetadata:{description:"Fires when a new message appears in the chosen Outlook mail folder. Each fire represents one new email added to that folder."},outputSchema:qu,props:{folderId:Yt({displayName:"Folder",description:"New emails in this folder start the flow.",required:!0})},sampleData:{},type:"POLLING",async onEnable(e){await gt.onEnable(Ku,e)},async onDisable(e){await gt.onDisable(Ku,e)},async test(e){return await gt.test(Ku,e)},async run(e){return await gt.poll(Ku,e)}});var Oh=Le(zo());var Ju={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=_.createClient(e),r=[],i=t===0?"$top=10":`$filter=receivedDateTime gt ${(0,Oh.default)(t).toISOString()}`,a=await n.api(`${_.mailboxPrefix(e)}/mailFolders/inbox/messages?${i}`).orderby("receivedDateTime desc").get();if(t===0)for(let u of a.value)r.push(u);else for(;a.value.length>0;){for(let u of a.value)r.push(u);if(a["@odata.nextLink"])a=await n.api(a["@odata.nextLink"]).get();else break}let c=r;return o?.sender&&(c=c.filter(u=>{let l=u.from?.emailAddress?.address?.toLowerCase(),d=o.sender?.toLowerCase();return l===d})),o?.recipient&&(c=c.filter(u=>u.toRecipients?.some(d=>{let g=d.emailAddress?.address?.toLowerCase(),f=o.recipient?.toLowerCase();return g===f}))),c.map(u=>({epochMilliSeconds:(0,Oh.default)(u.receivedDateTime).valueOf(),data:u}))},"items")},wE=po({auth:S,name:"newEmail",classification:"READ",displayName:"New Email",description:"Triggers when a new email arrives in your Inbox.",aiMetadata:{description:"Fires when a new message arrives in the mailbox Inbox, optionally narrowed to a specific sender and/or recipient address. Each fire represents one newly received email."},outputSchema:qu,props:{sender:h.ShortText({displayName:"From",description:"Only emails sent from this address.",placeholder:"sender@example.com",required:!1}),recipient:h.ShortText({displayName:"To",description:"Only emails sent to this address.",placeholder:"you@example.com",required:!1,advanced:!0})},sampleData:{},type:"POLLING",async onEnable(e){await gt.onEnable(Ju,e)},async onDisable(e){await gt.onDisable(Ju,e)},async test(e){return await gt.test(Ju,e)},async run(e){return await gt.poll(Ju,e)}});var OE=O({auth:S,name:"request_approval_in_mail",classification:"WRITE",displayName:"Request Approval in Email",description:"Send an email with an approval link and pause until it is answered.",audience:"both",aiMetadata:{description:"Sends an email with a single link to a confirmation page where the recipient chooses Approve or Disapprove, then pauses the flow until they respond, resuming with the decision. Use this as a human-in-the-loop approval gate before proceeding. Not idempotent: each call sends a new email and creates a new pending waitpoint.",idempotent:!1},outputSchema:$A,props:{recipients:h.ShortText({displayName:"To",description:"Address that receives the approval request.",placeholder:"manager@example.com",required:!0}),subject:h.ShortText({displayName:"Subject",placeholder:"Approval needed: purchase order 1042",required:!0}),body:h.LongText({displayName:"Body",description:"Shown above the Review & Respond button. HTML tags are rendered.",required:!0})},async run(e){if(e.executionType==="BEGIN")try{let t=e.auth.access_token,o=e.propsValue.recipients,{subject:n,body:r}=e.propsValue;St(t,"token"),St(o,"recipients"),St(n,"subject"),St(r,"body");let i=await e.run.createWaitpoint({type:"WEBHOOK"}),a=`${i.resumeUrl}/confirm`,c=`
59
+ `,S=wf.OAuth2({description:ez,grantType:"both_client_credentials_and_authorization_code",props:{cloud:YP,accessMode:QP,tenant:g.ShortText({displayName:"Tenant ID",description:'Use "common" for the default delegated multi-tenant flow. For app-only (Client Credentials), set this to your Directory (tenant) ID.',required:!0,defaultValue:"common"}),mailbox:g.ShortText({displayName:"Mailbox (App-only)",description:"Email/UPN or user object ID of the mailbox to act on. Required for app-only (Client Credentials). Leave blank for delegated access (acts as the signed-in user).",required:!1})},authUrl:"https://{cloud}/{tenant}/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/{tenant}/oauth2/v2.0/token",required:!0,scope:["{accessMode}"],prompt:"omit",validate:s(async({auth:e})=>{try{let t=e;return await _.createClient(t).api(`${_.mailboxPrefix(t)}/mailFolders/inbox`).get(),{valid:!0}}catch(t){return{valid:!1,error:tz(t)}}},"validate")});function tz(e){if(typeof e=="object"&&e!==null){let t=[];if("statusCode"in e&&e.statusCode&&t.push(`HTTP ${String(e.statusCode)}`),"code"in e&&e.code&&t.push(String(e.code)),"message"in e&&e.message&&t.push(String(e.message)),"body"in e&&e.body){let o=e.body;t.push(typeof o=="string"?o.slice(0,800):JSON.stringify(o).slice(0,800))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"Unknown error while validating the connection."}s(tz,"describeGraphError");var rz={Prefer:'outlook.body-content-type="text"'},oz="id,subject,bodyPreview,from,sender,toRecipients,ccRecipients,bccRecipients,replyTo,receivedDateTime,sentDateTime,createdDateTime,lastModifiedDateTime,hasAttachments,isRead,isDraft,importance,categories,flag,webLink,parentFolderId,conversationId,internetMessageId",nz="id,displayName,parentFolderId,childFolderCount,unreadItemCount,totalItemCount,isHidden",iz="id,name,contentType,size,isInline,lastModifiedDateTime",az="Accepts a mail folder ID or a well-known name such as inbox, drafts, sentitems, deleteditems, archive or junkemail.",sz="It must be a delta link returned by this action on this connection; links pointing at another mailbox or endpoint are rejected.",cz="Outlook message ID. Resolve one with List Messages, Search Messages or Get Message.";function mA(e){return(e.props?.mailbox??"").trim()}s(mA,"getConfiguredMailbox");function uz(e){return mA(e).length>0}s(uz,"isAppOnlyConnection");function lz(e){return encodeURIComponent(e.trim())}s(lz,"encodeGraphId");function dz(e){return(e.props?.cloud??"").includes(".us")}s(dz,"isGovernmentCloud");function fA(e){if(typeof e=="object"&&e!==null&&"statusCode"in e){let t=e.statusCode;if(typeof t=="number")return t}}s(fA,"graphStatusCode");function gA(e){if(typeof e=="object"&&e!==null&&"code"in e){let t=e.code;if(typeof t=="string")return t}}s(gA,"graphErrorCode");function pz(e){let t=gA(e)??"";return["BadRequest","RequestBroker--ParseUri","ResourceNotFound","ErrorInvalidUser","MailboxNotEnabledForRESTAPI"].some(n=>t===n)}s(pz,"isUnsupportedMePathError");function mz(e){let{"@removed":t,...o}=e;return{...o,removed:t!==void 0,removedReason:t?.reason??null}}s(mz,"withDeltaRemoval");function hA(e){if(typeof e=="object"&&e!==null){let t=[],o=e;if(o.code&&t.push(String(o.code)),o.message&&t.push(String(o.message)),o.body){let n=o.body;t.push(typeof n=="string"?n.slice(0,500):JSON.stringify(n).slice(0,500))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"No further detail was returned by Microsoft Graph."}s(hA,"graphErrorDetail");function fz({error:e,operation:t}){let o=fA(e),n=hA(e);return o===401?new Error(`${t} failed: the Outlook connection is not authenticated (HTTP 401). Reconnect the account. ${n}`):o===403?new Error(`${t} failed: Microsoft Graph denied the request (HTTP 403). The connection may lack the permission this endpoint requires, or the mailbox may not be accessible in this access mode. ${n}`):o===404?new Error(`${t} failed: the requested item was not found (HTTP 404). The ID may be wrong, or the item may have been moved or deleted. ${n}`):o===429?new Error(`${t} failed: Microsoft Graph throttled the request (HTTP 429). Retry after a short delay. ${n}`):new Error(`${t} failed. ${n}`)}s(fz,"graphError");var dA=["v1.0","beta"],gz="*";function pA(e){return e.split("?")[0].split("/").filter(t=>t.length>0).map(t=>{try{return decodeURIComponent(t)}catch{return t}})}s(pA,"pathSegments");function hz({segments:e,pattern:t}){return e.length!==t.length?!1:t.every((o,n)=>o===gz?e[n].length>0:e[n]===o)}s(hz,"segmentsMatchPattern");function yz({auth:e,deltaLink:t,expectedPath:o,operation:n}){let r=t.trim(),i=new URL(xo(Gc(e))).origin,a=pA(o),c=`Expected an absolute URL on ${i} whose path is /{${dA.join("|")}}/${a.join("/")}. Only pass a delta link that this action returned.`,u;try{u=new URL(r)}catch{throw new ko(`${n} failed: the supplied delta link is not an absolute URL. ${c}`)}if(u.origin!==i)throw new ko(`${n} failed: the supplied delta link points at ${u.origin}, which is not the Microsoft Graph endpoint of this connection. ${c}`);let l=pA(u.pathname);if(l.length===0||!dA.includes(l[0]))throw new ko(`${n} failed: the supplied delta link does not target a supported Microsoft Graph API version. ${c}`);if(!hz({segments:l.slice(1),pattern:a}))throw new ko(`${n} failed: the supplied delta link addresses /${l.slice(1).join("/")}, which is outside the mailbox and endpoint this action is configured for. ${c}`);return u.toString()}s(yz,"resolveDeltaUrl");var ko=class extends Error{static{s(this,"InvalidDeltaLinkError")}constructor(t){super(t),this.name="InvalidDeltaLinkError"}},x={textBodyHeaders:rz,messageSelect:oz,mailFolderSelect:nz,attachmentSelect:iz,wellKnownFolderHint:az,messageIdHint:cz,getConfiguredMailbox:mA,isAppOnlyConnection:uz,isGovernmentCloud:dz,encodeGraphId:lz,graphStatusCode:fA,graphErrorCode:gA,graphErrorDetail:hA,isUnsupportedMePathError:pz,withDeltaRemoval:mz,resolveDeltaUrl:yz,deltaLinkHint:sz,graphError:fz};var yt=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o);try{return{disabled:!1,options:(await n.api(`${_.mailboxPrefix(o)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"} - ${a.from?.emailAddress?.name||a.from?.emailAddress?.address||"Unknown Sender"}`,value:a.id}))}}catch{return{disabled:!0,options:[],placeholder:"Could not load emails. Check your connection."}}},"options")}),"messageIdDropdown"),yA=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o);try{return{disabled:!1,options:(await n.api(`${_.mailboxPrefix(o)}/mailFolders/drafts/messages?$top=50&$select=id,subject,from,toRecipients,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:vz(a),value:a.id}))}}catch{return{disabled:!0,options:[],placeholder:"Could not load drafts. Check your connection."}}},"options")}),"draftMessageIdDropdown"),Qt=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your Outlook account first.",disabled:!0,options:[]};let o=t,n=_.createClient(o),r=_.mailboxPrefix(o),{folders:i,failed:a}=await xA({client:n,firstPageUrl:`${r}/mailFolders?$top=100&$select=${_A}`});if(a&&i.length===0)return{disabled:!0,options:[],placeholder:"Could not load folders. Check your connection."};let c=await vA({client:n,prefix:r,folders:i,parentPath:"",limit:xz,requestLimit:_z});return{disabled:!1,options:c.options,placeholder:a||c.incomplete?"Not all folders could be loaded.":void 0}},"options")}),"mailFolderIdDropdown");async function vA({client:e,prefix:t,folders:o,parentPath:n,limit:r,requestLimit:i}){let a=[],c=0,u=!1;for(let[l,d]of o.entries()){if(a.length>=r)return{options:a,requests:c,incomplete:!0};let h=`${n}${d.displayName||"Unnamed folder"}`;if(a.push({label:h,value:d.id||""}),!d.id||!d.childFolderCount)continue;let f=r-a.length-(o.length-l-1);if(c>=i||f<=0){u=!0;continue}c++;let p=await xA({client:e,firstPageUrl:`${t}/mailFolders/${x.encodeGraphId(d.id)}/childFolders?$top=100&$select=${_A}`}),v=await vA({client:e,prefix:t,folders:p.folders,parentPath:`${h} / `,limit:f,requestLimit:i-c});a.push(...v.options),c+=v.requests,u=u||p.failed||v.incomplete}return{options:a,requests:c,incomplete:u}}s(vA,"folderTreeOptions");async function xA({client:e,firstPageUrl:t}){let o=[],n=t;for(;n;){let r=n,i=await Gp(()=>e.api(r).get());if(i.error!==null)return{folders:o,failed:!0};o.push(...i.data.value),n=i.data["@odata.nextLink"]}return{folders:o,failed:!1}}s(xA,"fetchAllFolders");function vz(e){let t=e.subject||"No Subject",o=e.toRecipients?.[0]?.emailAddress?.address;return o?`${t} - to ${o}`:t}s(vz,"draftLabel");var _A="id,displayName,childFolderCount",xz=2e3,_z=100;var Or=[{key:"name",label:"Name",value:"emailAddress.name"},{key:"address",label:"Email Address",value:"emailAddress.address",format:"email"}],Ro=[{key:"id",label:"Message ID"},{key:"subject",label:"Subject"},{key:"bodyPreview",label:"Body Preview"},{key:"body",label:"Body",children:[{key:"contentType",label:"Content Type"},{key:"content",label:"Content"}]},{key:"from",label:"From",children:Or},{key:"sender",label:"Sender",children:Or},{key:"toRecipients",label:"To Recipients",labelKey:"address",listItems:Or},{key:"ccRecipients",label:"CC Recipients",labelKey:"address",listItems:Or},{key:"bccRecipients",label:"BCC Recipients",labelKey:"address",listItems:Or},{key:"replyTo",label:"Reply To",labelKey:"address",listItems:Or},{key:"receivedDateTime",label:"Received At",format:"datetime"},{key:"sentDateTime",label:"Sent At",format:"datetime"},{key:"createdDateTime",label:"Created At",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"},{key:"hasAttachments",label:"Has Attachments",format:"boolean"},{key:"isRead",label:"Is Read",format:"boolean"},{key:"isDraft",label:"Is Draft",format:"boolean"},{key:"importance",label:"Importance"},{key:"categories",label:"Categories"},{key:"flag",label:"Flag",children:[{key:"flagStatus",label:"Flag Status"}]},{key:"webLink",label:"Web Link",format:"url"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"conversationId",label:"Conversation ID"},{key:"internetMessageId",label:"Internet Message ID"}],PA=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"file",label:"File",format:"url"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],$o=[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"messageId",label:"Message ID"}],bA=[{key:"name",label:"Name"},{key:"address",label:"Email Address",format:"email"}],Xi=[...Ro,{key:"inferenceClassification",label:"Inference Classification"},{key:"isReadReceiptRequested",label:"Is Read Receipt Requested",format:"boolean"},{key:"isDeliveryReceiptRequested",label:"Is Delivery Receipt Requested",format:"boolean"}],AA=Ro.filter(e=>e.key!=="body"),Pz=Xi.filter(e=>e.key!=="from"&&e.key!=="sender"),qu=[{key:"id",label:"Folder ID"},{key:"displayName",label:"Display Name"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"childFolderCount",label:"Child Folder Count",format:"number"},{key:"unreadItemCount",label:"Unread Item Count",format:"number"},{key:"totalItemCount",label:"Total Item Count",format:"number"},{key:"isHidden",label:"Is Hidden",format:"boolean"}],Yi=[...qu,{key:"sizeInBytes",label:"Size",format:"filesize"},{key:"wellKnownName",label:"Well-Known Name"}],Eg=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],EA=[{key:"messageId",label:"Message ID"},{key:"status",label:"HTTP Status",format:"number"},{key:"error",label:"Error"}],TA=[{key:"id",label:"Override ID"},{key:"classifyAs",label:"Classify As"},{key:"senderEmailAddress",label:"Sender",children:bA}],IA=[{key:"removed",label:"Removed",format:"boolean"},{key:"removedReason",label:"Removal Reason"}],Co=[{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextLink",label:"Next Page URL",format:"url"}],Do={fields:Ro},SA={fields:Ro.filter(e=>e.key!=="from"&&e.key!=="sender")},wA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"totalCount",label:"Total Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextPageUrl",label:"Next Page URL",format:"url"},{key:"result",label:"Emails",labelKey:"subject",listItems:Ro}]},OA={itemLabel:"{name}",fields:[{key:"attachments",label:"Attachments",value:"",listItems:PA}]},kA={fields:$o},RA={fields:$o},$A={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"draftId",label:"Draft ID"},{key:"draftLink",label:"Draft Link",format:"url"}]},CA={fields:[{key:"approved",label:"Approved",format:"boolean"}]},Gu={fields:Ro},DA={fields:[...PA,{key:"messageId",label:"Message ID"},{key:"messageSubject",label:"Message Subject"},{key:"messageSender",label:"Message Sender",children:Or},{key:"messageReceivedDateTime",label:"Message Received At",format:"datetime"},{key:"parentFolderId",label:"Parent Folder ID"}]},vt={fields:Xi},er={fields:Pz},zA={fields:[{key:"messages",label:"Messages",labelKey:"subject",listItems:AA},...Co]},NA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"messages",label:"Messages",labelKey:"subject",listItems:Xi},...Co]},MA={fields:[{key:"changes",label:"Changed Messages",labelKey:"subject",listItems:[...AA,...IA]},...Co,{key:"deltaLink",label:"Delta Link",format:"url"}]},UA={fields:[{key:"messageId",label:"Message ID"},{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"}]},LA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"previousMessageId",label:"Previous Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Xi}]},FA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"sourceMessageId",label:"Source Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Xi}]},jA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"newMessageId",listItems:[{key:"messageId",label:"Previous Message ID"},{key:"newMessageId",label:"New Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:EA}]},BA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"messageId",listItems:[{key:"messageId",label:"Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:EA}]},VA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"}]},HA={fields:[{key:"messageId",label:"Message ID"},{key:"attachments",label:"Attachments",labelKey:"name",listItems:[...Eg,{key:"attachmentType",label:"Attachment Type"}]},{key:"count",label:"Count",format:"number"}]},ZA={fields:[...Eg,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},qA={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"attachmentId",label:"Attachment ID"},{key:"messageId",label:"Message ID"}]},GA={fields:[...Eg,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},WA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"},{key:"attachmentId",label:"Attachment ID"}]},KA={fields:qu},JA={fields:Yi},XA={fields:[{key:"folders",label:"Folders",labelKey:"displayName",listItems:qu},...Co]},YA={fields:[{key:"parentFolderId",label:"Parent Folder ID"},{key:"folders",label:"Folders",labelKey:"displayName",listItems:qu},...Co]},QA={fields:[{key:"changes",label:"Changed Folders",labelKey:"displayName",listItems:[...Yi,...IA]},...Co,{key:"deltaLink",label:"Delta Link",format:"url"}]},eE={fields:[{key:"created",label:"Created",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"folder",label:"Folder",children:Yi}]},tE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newFolderId",label:"New Folder ID"},{key:"sourceFolderId",label:"Source Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Yi}]},rE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"newFolderId",label:"New Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Yi}]},oE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"folderId",label:"Folder ID"}]},Wu={fields:TA},nE={fields:[{key:"overrides",label:"Overrides",labelKey:"classifyAs",listItems:TA},{key:"count",label:"Count",format:"number"}]},iE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"overrideId",label:"Override ID"}]},aE={fields:[{key:"mailTips",label:"Mail Tips",listItems:[{key:"emailAddress",label:"Email Address",children:bA},{key:"mailboxFull",label:"Mailbox Full",format:"boolean"},{key:"deliveryRestricted",label:"Delivery Restricted",format:"boolean"},{key:"isModerated",label:"Is Moderated",format:"boolean"},{key:"recipientScope",label:"Recipient Scope"},{key:"maxMessageSize",label:"Max Message Size",format:"filesize"},{key:"externalMemberCount",label:"External Member Count",format:"number"},{key:"totalMemberCount",label:"Total Member Count",format:"number"},{key:"automaticReplies",label:"Automatic Replies"}]},{key:"count",label:"Count",format:"number"}]},sE={fields:[{key:"id",label:"User ID"},{key:"displayName",label:"Display Name"},{key:"mail",label:"Email Address",format:"email"},{key:"userPrincipalName",label:"User Principal Name"},{key:"source",label:"Source"}]},cE={fields:[{key:"timeZones",label:"Time Zones",labelKey:"displayName",listItems:[{key:"alias",label:"Alias"},{key:"displayName",label:"Display Name"}]},{key:"count",label:"Count",format:"number"}]},uE={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"subject",label:"Subject"},{key:"recipients",label:"Recipients"}]},lE={fields:$o},dE={fields:$o},pE={fields:$o},mE={fields:[...$o,{key:"recipients",label:"Recipients"}]};var fE=O({auth:S,name:"addLabelToEmail",classification:"WRITE",displayName:"Add Label to Email",description:"Tag an email with one or more Outlook categories.",audience:"human",aiMetadata:{description:"Adds one or more Outlook categories (labels) to a specific message, merging them with any categories already present. Use this to tag or classify an email. Idempotent: re-adding the same categories leaves the message unchanged since duplicates are de-duplicated.",idempotent:!0},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to tag.",required:!0}),categories:g.Array({displayName:"Categories",description:"Category names to add, one per row.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=_.createClient(e.auth),i=(await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[],a=[...new Set([...i,...o])];return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var gE=O({auth:S,name:"createDraftEmail",classification:"WRITE",displayName:"Create Draft Email",description:"Save a new email to your Drafts folder without sending it.",audience:"human",aiMetadata:{description:"Creates a new unsent draft email in the Outlook mailbox with recipients, subject, body, and optional attachments. Use this to stage a message for later review or sending (pair with Send Draft Email). Not idempotent: each call creates a separate draft.",idempotent:!1},outputSchema:SA,propertyGroups:[{key:"recipients",display:"tabs",label:"Recipients",props:["recipients","ccRecipients","bccRecipients"]}],props:{recipients:g.Array({displayName:"To",required:!0}),ccRecipients:g.Array({displayName:"Cc",required:!1,defaultValue:[]}),bccRecipients:g.Array({displayName:"Bcc",required:!1,defaultValue:[]}),subject:g.ShortText({displayName:"Subject",placeholder:"Invoice for March",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}})},async run(e){let t=e.propsValue.attachments??[],{subject:o,body:n,bodyFormat:r}=e.propsValue,i={subject:o,body:{content:n,contentType:r},toRecipients:_.toRecipients(e.propsValue.recipients),ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:t.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))};return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages`).post(i)}});var hE=O({auth:S,name:"downloadAttachment",classification:"READ",displayName:"Download Attachment",description:"Save the files attached to an email so later steps can use them.",audience:"human",aiMetadata:{description:"Fetches all file attachments from a specific Outlook message (by message ID) and writes them to storage for downstream steps. Use this after locating a message to retrieve its attached files. Requires a valid message ID; idempotent since it only reads.",idempotent:!0},outputSchema:OA,props:{messageId:g.ShortText({displayName:"Message ID",description:"Map it from a Find Email step or an Outlook trigger.",required:!0})},async run(e){let{messageId:t}=e.propsValue,n=await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/attachments`).get(),r=[];for(let i of n.value)i.name&&i.contentBytes&&r.push({...i,file:await e.files.write({fileName:i.name||"test.png",data:Buffer.from(i.contentBytes,"base64")})});return r}});var Sg=Fe(zo());var yE=O({auth:S,name:"findEmail",classification:"SEARCH",displayName:"Find Email",description:"Search your mailbox by keywords, sender or subject.",audience:"human",aiMetadata:{description:"Searches the Outlook mailbox for messages matching a full-text query (supports field syntax like from:, subject:, hasAttachments:), optionally scoped to one folder and capped by a max-results count. Use this to locate emails and obtain their message IDs for follow-up actions. Idempotent read-only lookup.",idempotent:!0},outputSchema:wA,props:{searchQuery:g.ShortText({displayName:"Search Query",description:"Words to find. Narrow with from:, subject: or hasAttachments:true.",placeholder:"from:jane@example.com invoice",required:!0}),folderId:Qt({displayName:"Folder",description:"Leave empty to search every folder.",required:!1}),top:g.Number({displayName:"Max Results",description:"How many emails to return, up to 1000.",required:!1,defaultValue:25,display:"stepper",min:1,max:1e3,step:1})},async run(e){let{searchQuery:t,folderId:o,top:n}=e.propsValue,r=_.createClient(e.auth),i=o?`${_.mailboxPrefix(e.auth)}/mailFolders/${o}/messages`:`${_.mailboxPrefix(e.auth)}/messages`,a=`$search="${t}"`,c=n?`$top=${Math.min(Math.max(n,1),1e3)}`:"$top=25",u=[a,c].filter(Boolean).join("&"),l=`${i}?${u}`,d={ConsistencyLevel:"eventual",Prefer:'outlook.body-content-type="text"'},h=await r.api(l).headers(d).get(),f=h.value,p=h["@odata.nextLink"];return t&&f.sort((v,b)=>(0,Sg.default)(b.receivedDateTime).valueOf()-(0,Sg.default)(v.receivedDateTime).valueOf()),{found:f.length>0,result:f,hasMore:!!p,nextPageUrl:p,totalCount:f.length}}});var vE=O({auth:S,name:"forwardEmail",classification:"WRITE",displayName:"Forward Email",description:"Forward an email to new recipients with an optional note.",audience:"human",aiMetadata:{description:"Forwards an existing Outlook message (by message ID) to new recipients, preserving the original body and attachments and prepending an optional comment. Use this to pass an existing email along rather than composing a new one. Not idempotent: each call sends a new forwarded email.",idempotent:!1},outputSchema:RA,props:{messageId:yt({displayName:"Email",description:"The email to forward.",required:!0}),recipients:g.Array({displayName:"To",description:"One address per row.",required:!0}),comment:g.LongText({displayName:"Comment",description:"Added above the forwarded email. HTML tags are rendered.",required:!1})},async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get(),i={toRecipients:_.toRecipients(e.propsValue.recipients),body:{contentType:"html",content:(o??"")+"<br><br>"+r.body.content},attachments:r.attachments};return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}/forward`).post({message:i}),{success:!0,message:"Email forwarded successfully.",messageId:t}}});var xE=O({auth:S,name:"moveEmailToFolder",classification:"WRITE",displayName:"Move Email to Folder",description:"Move an email into another folder.",audience:"human",aiMetadata:{description:"Moves a specific Outlook message into a chosen mail folder. Use this to organize, archive, or route an email after processing it. Note: the move assigns a new message ID, so re-running with the original ID will fail once moved.",idempotent:!1},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to move.",required:!0}),destinationFolderId:Qt({displayName:"Destination Folder",description:"Folder to move the email into.",required:!0})},async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue;return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/move`).post({destinationId:o})}});var _E=O({auth:S,name:"removeLabelFromEmail",classification:"WRITE",displayName:"Remove Label from Email",description:"Remove one or more Outlook categories from an email.",audience:"human",aiMetadata:{description:"Removes one or more Outlook categories (labels) from a specific message, leaving any other categories intact. Use this to untag or reclassify an email. Idempotent: re-running with the same categories yields the same final label set.",idempotent:!0},outputSchema:Do,props:{messageId:yt({displayName:"Email",description:"The email to remove categories from.",required:!0}),categories:g.Array({displayName:"Categories",description:"Category names to remove, one per row.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=_.createClient(e.auth),a=((await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[]).filter(u=>!o.includes(u));return await n.api(`${_.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var PE=O({auth:S,name:"reply-email",classification:"WRITE",displayName:"Reply to Email",description:"Reply to an Outlook email, or save the reply as a draft.",audience:"human",aiMetadata:{description:"Replies to an existing Outlook message (identified by message ID), supporting added CC/BCC recipients and attachments. Set the Create Draft flag to stage the reply without sending; otherwise it is sent immediately. Not idempotent when sending: each call creates and dispatches a new reply.",idempotent:!1},outputSchema:$A,propertyGroups:[{key:"recipients",display:"tabs",label:"Cc and Bcc",props:["ccRecipients","bccRecipients"]}],props:{messageId:yt({displayName:"Email",description:"The email to reply to.",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),replyBody:g.LongText({displayName:"Body",required:!0}),ccRecipients:g.Array({displayName:"Cc",required:!1}),bccRecipients:g.Array({displayName:"Bcc",required:!1}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}}),draft:g.Checkbox({displayName:"Save as Draft",description:"Save the reply to Drafts instead of sending it.",required:!1,defaultValue:!1})},async run(e){let{replyBody:t,bodyFormat:o,messageId:n,draft:r}=e.propsValue,i=e.propsValue.attachments??[],a={body:{content:t,contentType:o},ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:i.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))},c=_.createClient(e.auth);try{let l=(await c.api(`${_.mailboxPrefix(e.auth)}/messages/${n}/createReply`).post({message:a})).id;return r?{success:!0,message:"Draft created successfully.",draftId:l,draftLink:`https://outlook.office.com/mail/drafts/id/${l}`}:(await c.api(`${_.mailboxPrefix(e.auth)}/messages/${l}/send`).post({}),{success:!0,message:"Reply sent successfully.",draftId:l})}catch(u){console.error("Reply Email Error:",u);let l=u instanceof Error?u.message:"Unknown error";throw new Error(l)}}});var bE=O({auth:S,name:"sendDraftEmail",classification:"WRITE",displayName:"Send Draft Email",description:"Send an email that is waiting in your Drafts folder.",audience:"human",aiMetadata:{description:"Sends an existing draft email (identified by draft message ID) from the Outlook mailbox. Use this to dispatch a draft previously staged by Create Draft Email or a draft reply. Not idempotent: once sent the draft no longer exists, so re-running with the same ID will fail.",idempotent:!1},outputSchema:kA,props:{messageId:yA({displayName:"Email",description:"Pick a draft from your Drafts folder.",required:!0})},async run(e){let{messageId:t}=e.propsValue;return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/messages/${t}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}});var AE=O({auth:S,name:"send-email",classification:"WRITE",displayName:"Send Email",description:"Send an email from your Outlook mailbox.",audience:"human",aiMetadata:{description:"Composes and sends a new email from the authenticated Outlook mailbox to the given recipients, with optional CC/BCC and file attachments. Use this to send a fresh message (not a reply or forward). Not idempotent: each call dispatches a new email and saves a copy to Sent Items.",idempotent:!1},propertyGroups:[{key:"recipients",display:"tabs",label:"Recipients",props:["recipients","ccRecipients","bccRecipients"]}],props:{recipients:g.Array({displayName:"To",required:!0}),ccRecipients:g.Array({displayName:"Cc",required:!1,defaultValue:[]}),bccRecipients:g.Array({displayName:"Bcc",required:!1,defaultValue:[]}),subject:g.ShortText({displayName:"Subject",placeholder:"Invoice for March",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",description:"How the text in Body is interpreted.",required:!0,defaultValue:"text",display:"cards",options:{disabled:!1,options:[{label:"Plain Text",value:"text",description:"Sent as written",icon:"text"},{label:"HTML",value:"html",description:"Tags are rendered",icon:"code"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"Attachment Name",description:"Overrides the uploaded file name.",placeholder:"report.pdf",required:!1})}})},async run(e){let t=e.propsValue.attachments??[],{subject:o,body:n,bodyFormat:r}=e.propsValue,i={subject:o,body:{content:n,contentType:r},toRecipients:_.toRecipients(e.propsValue.recipients),ccRecipients:_.toRecipients(e.propsValue.ccRecipients),bccRecipients:_.toRecipients(e.propsValue.bccRecipients),attachments:t.map(u=>({"@odata.type":"#microsoft.graph.fileAttachment",name:u.fileName||u.file.filename,contentBytes:u.file.base64}))};return await _.createClient(e.auth).api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:i,saveToSentItems:"true"})}});var TE=Fe(Ji()),Qi=Fe(zo());var IE="id,subject,from,sender,receivedDateTime,parentFolderId",bz=5,Az=100,Ku="pollCursor",SE="lastPoll",wE=po({auth:S,name:"newAttachment",classification:"READ",displayName:"New Attachment",description:"Triggers once for each attachment on a new email.",aiMetadata:{description:"Fires once per attachment when a new email carrying one or more file attachments arrives, optionally scoped to a folder, sender, attachment-name, or file-extension filter. Each fire represents a single attachment from a newly received message."},outputSchema:DA,props:{folderId:Qt({displayName:"Folder",description:"Leave empty to watch the whole mailbox, including sent mail.",required:!1}),sender:g.ShortText({displayName:"From",description:"Only emails whose sender address contains this text.",placeholder:"sender@example.com",required:!1}),attachmentNameFilter:g.ShortText({displayName:"Attachment Name",description:"Only attachments whose file name contains this text.",placeholder:"invoice",required:!1}),fileExtension:g.ShortText({displayName:"File Extension",description:"Only attachments with this extension. Separate several with commas, e.g. pdf, docx.",placeholder:"pdf",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){e.isRepublish&&await Oz(e.store)||await e.store.put(Ku,{epochMilliSeconds:Date.now(),seenMessageIds:[]})},async onDisable(e){},async test(e){let{folderId:t,...o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=t?`${r}/mailFolders/${t}/messages`:`${r}/messages`,a=await n.api(`${i}?$filter=receivedDateTime ge 1900-01-01T00:00:00Z and hasAttachments eq true`).select(IE).orderby("receivedDateTime desc").top(Az).get();return(await EE({client:n,mailboxPrefix:r,messages:a.value,files:e.files,filters:o,limit:bz})).reverse()},async run(e){let t=await kz(e.store),{folderId:o,...n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a=o?`${i}/mailFolders/${o}/messages`:`${i}/messages`,c=(0,Qi.default)(t.epochMilliSeconds).toISOString(),u=await Rz({client:r,url:`${a}?$filter=receivedDateTime ge ${c} and hasAttachments eq true`}),l=await EE({client:r,mailboxPrefix:i,messages:u.filter(d=>Sz({message:d,cursor:t})),files:e.files,filters:n});return await e.store.put(Ku,wz({cursor:t,messages:u})),l}});function Ez({message:e,sender:t}){let o=t?.trim().toLowerCase();return o?[e.from?.emailAddress?.address,e.sender?.emailAddress?.address].some(n=>!le(n)&&n.toLowerCase().includes(o)):!0}s(Ez,"messageMatchesSender");function Tz({name:e,filters:t}){let o=e?.toLowerCase(),n=t.attachmentNameFilter?.trim().toLowerCase();if(n&&!o?.includes(n))return!1;let r=Iz(t.fileExtension);return!(r.length>0&&!r.some(i=>o?.endsWith(`.${i}`)))}s(Tz,"attachmentMatchesFilters");function Iz(e){return(e??"").split(",").map(t=>t.trim().toLowerCase().replace(/^\./,"")).filter(t=>t.length>0)}s(Iz,"parseExtensions");function Sz({message:e,cursor:t}){let o=(0,Qi.default)(e.receivedDateTime).valueOf();return o!==t.epochMilliSeconds?o>t.epochMilliSeconds:!le(t.seenMessageIds)&&!t.seenMessageIds.includes(e.id)}s(Sz,"isUnseenMessage");function wz({cursor:e,messages:t}){let o=t.reduce((i,a)=>Math.max(i,(0,Qi.default)(a.receivedDateTime).valueOf()),e.epochMilliSeconds),n=t.filter(i=>(0,Qi.default)(i.receivedDateTime).valueOf()===o).map(i=>i.id),r=o===e.epochMilliSeconds?e.seenMessageIds??[]:[];return{epochMilliSeconds:o,seenMessageIds:[...new Set([...n,...r])]}}s(wz,"advanceCursor");async function Oz(e){let[t,o]=await Promise.all([e.get(Ku),e.get(SE)]);return!le(t)||!le(o)}s(Oz,"hasPollCursor");async function kz(e){let t=await e.get(Ku);if(!le(t))return t;let o=await e.get(SE);if(le(o))throw new Error("lastPoll doesn't exist in the store.");return{epochMilliSeconds:o,seenMessageIds:null}}s(kz,"readPollCursor");async function Rz({client:e,url:t}){let o=await e.api(t).select(IE).orderby("receivedDateTime desc").get(),n=[];for(;o.value.length>0&&(n.push(...o.value),!!o["@odata.nextLink"]);)o=await e.api(o["@odata.nextLink"]).get();return n}s(Rz,"listMessages");async function $z({client:e,mailboxPrefix:t,messageId:o,attachmentId:n}){let r=`${t}/messages/${x.encodeGraphId(o)}`,i=await e.api(`${r}/attachments/${x.encodeGraphId(n)}/$value`).responseType(TE.ResponseType.ARRAYBUFFER).get();return Buffer.isBuffer(i)?i:Buffer.from(i)}s($z,"downloadAttachment");async function EE({client:e,mailboxPrefix:t,messages:o,files:n,filters:r,limit:i}){let a=[];for(let c of o){if(!Ez({message:c,sender:r.sender}))continue;let u=await e.api(`${t}/messages/${c.id}/attachments`).get();for(let l of u.value){let{contentBytes:d,...h}=l;if(!Tz({name:l.name,filters:r})||!l.name||l["@odata.type"]!=="#microsoft.graph.fileAttachment")continue;let f=d?Buffer.from(d,"base64"):await $z({client:e,mailboxPrefix:t,messageId:c.id,attachmentId:l.id}),p=await n.write({fileName:l.name,data:f});if(a.push({file:p,messageId:c.id,messageSubject:c.subject,messageSender:c.sender,messageReceivedDateTime:c.receivedDateTime,parentFolderId:c.parentFolderId,...h}),!le(i)&&a.length>=i)return a}}return a}s(EE,"enrichAttachments");var wg=Fe(zo());var Ju={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=_.createClient(e),r=[],i=o.folderId,a=t===0?"$top=10":`$filter=createdDateTime gt ${(0,wg.default)(t).toISOString()}`,c=await n.api(`${_.mailboxPrefix(e)}/mailFolders/${i}/messages?${a}`).orderby("createdDateTime desc").get();if(t===0)for(let u of c.value)r.push(u);else for(;c.value.length>0;){for(let u of c.value)r.push(u);if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return r.map(u=>({epochMilliSeconds:(0,wg.default)(u.createdDateTime).valueOf(),data:u}))},"items")},OE=po({auth:S,name:"newEmailInFolder",classification:"READ",displayName:"New Email in Folder",description:"Triggers when a new email lands in the folder you pick.",aiMetadata:{description:"Fires when a new message appears in the chosen Outlook mail folder. Each fire represents one new email added to that folder."},outputSchema:Gu,props:{folderId:Qt({displayName:"Folder",description:"New emails in this folder start the flow.",required:!0})},sampleData:{},type:"POLLING",async onEnable(e){await ht.onEnable(Ju,e)},async onDisable(e){await ht.onDisable(Ju,e)},async test(e){return await ht.test(Ju,e)},async run(e){return await ht.poll(Ju,e)}});var Og=Fe(zo());var Xu={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=_.createClient(e),r=[],i=t===0?"$top=10":`$filter=receivedDateTime gt ${(0,Og.default)(t).toISOString()}`,a=await n.api(`${_.mailboxPrefix(e)}/mailFolders/inbox/messages?${i}`).orderby("receivedDateTime desc").get();if(t===0)for(let u of a.value)r.push(u);else for(;a.value.length>0;){for(let u of a.value)r.push(u);if(a["@odata.nextLink"])a=await n.api(a["@odata.nextLink"]).get();else break}let c=r;return o?.sender&&(c=c.filter(u=>{let l=u.from?.emailAddress?.address?.toLowerCase(),d=o.sender?.toLowerCase();return l===d})),o?.recipient&&(c=c.filter(u=>u.toRecipients?.some(d=>{let h=d.emailAddress?.address?.toLowerCase(),f=o.recipient?.toLowerCase();return h===f}))),c.map(u=>({epochMilliSeconds:(0,Og.default)(u.receivedDateTime).valueOf(),data:u}))},"items")},kE=po({auth:S,name:"newEmail",classification:"READ",displayName:"New Email",description:"Triggers when a new email arrives in your Inbox.",aiMetadata:{description:"Fires when a new message arrives in the mailbox Inbox, optionally narrowed to a specific sender and/or recipient address. Each fire represents one newly received email."},outputSchema:Gu,props:{sender:g.ShortText({displayName:"From",description:"Only emails sent from this address.",placeholder:"sender@example.com",required:!1}),recipient:g.ShortText({displayName:"To",description:"Only emails sent to this address.",placeholder:"you@example.com",required:!1,advanced:!0})},sampleData:{},type:"POLLING",async onEnable(e){await ht.onEnable(Xu,e)},async onDisable(e){await ht.onDisable(Xu,e)},async test(e){return await ht.test(Xu,e)},async run(e){return await ht.poll(Xu,e)}});var RE=O({auth:S,name:"request_approval_in_mail",classification:"WRITE",displayName:"Request Approval in Email",description:"Send an email with an approval link and pause until it is answered.",audience:"both",aiMetadata:{description:"Sends an email with a single link to a confirmation page where the recipient chooses Approve or Disapprove, then pauses the flow until they respond, resuming with the decision. Use this as a human-in-the-loop approval gate before proceeding. Not idempotent: each call sends a new email and creates a new pending waitpoint.",idempotent:!1},outputSchema:CA,props:{recipients:g.ShortText({displayName:"To",description:"Address that receives the approval request.",placeholder:"manager@example.com",required:!0}),subject:g.ShortText({displayName:"Subject",placeholder:"Approval needed: purchase order 1042",required:!0}),body:g.LongText({displayName:"Body",description:"Shown above the Review & Respond button. HTML tags are rendered.",required:!0})},async run(e){if(e.executionType==="BEGIN")try{let t=e.auth.access_token,o=e.propsValue.recipients,{subject:n,body:r}=e.propsValue;St(t,"token"),St(o,"recipients"),St(n,"subject"),St(r,"body");let i=await e.run.createWaitpoint({type:"WEBHOOK"}),a=`${i.publicResumeUrl??i.resumeUrl}/confirm`,c=`
60
60
  <div>
61
61
  <p>${r}</p>
62
62
  <br />
@@ -64,7 +64,7 @@ For app-only, Microsoft grants tenant-wide mailbox access by default \u2014 scop
64
64
  <a href="${a}" style="display: inline-block; padding: 10px 20px; background-color: #6e41e2; color: white; text-decoration: none; border-radius: 4px;">Review &amp; Respond</a>
65
65
  </p>
66
66
  </div>
67
- `,u=_.createClient(e.auth),l={subject:n,body:{content:c,contentType:"html"},toRecipients:[{emailAddress:{address:o}}]};return await u.api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:l,saveToSentItems:!0}),e.run.waitForWaitpoint(i.id),{approved:!1}}catch(t){throw console.error("[RequestApprovalEmail] Error during BEGIN execution:",t),t}else return{approved:e.resumePayload.queryParams.action==="approve"}}});var kE=O({auth:S,name:"outlook_add_message_attachment",classification:"WRITE",displayName:"Add Attachment to Draft",description:"Attaches a file to a draft message.",audience:"ai",aiMetadata:{description:"Attaches one file to an existing draft message and returns the created attachment metadata without echoing the file bytes back. Only meaningful on drafts, and only for files under 3 MB; larger files need an upload session, which this piece does not expose yet. Pair it with Create Draft and Send Draft. Not idempotent: each call adds another attachment, even with the same file name.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Draft Message ID",description:"ID of the draft to attach the file to. Obtain it from Create Draft.",required:!0}),file:h.File({displayName:"File",description:"File to attach. Must be smaller than 3 MB.",required:!0}),fileName:h.ShortText({displayName:"File Name",description:"Name shown on the attachment. Defaults to the uploaded file name.",required:!1})},outputSchema:ZA,async run(e){let{messageId:t,fileName:o}=e.propsValue,n=e.propsValue.file,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{let a=await r.api(`${i}/messages/${x.encodeGraphId(t)}/attachments`).post({"@odata.type":"#microsoft.graph.fileAttachment",name:o||n.filename,contentBytes:n.base64});return{messageId:t,id:a?.id??null,name:a?.name??null,contentType:a?.contentType??null,size:a?.size??null,isInline:a?.isInline??null,lastModifiedDateTime:a?.lastModifiedDateTime??null,attachmentType:a?.["@odata.type"]??null}}catch(a){throw x.graphError({error:a,operation:"Adding the attachment to the Outlook draft"})}}});var $E=O({auth:S,name:"outlook_add_message_categories",classification:"WRITE",displayName:"Add Categories to Message",description:"Adds categories (labels) to a message.",audience:"ai",aiMetadata:{description:"Adds one or more Outlook categories to a message, merging them with the categories already on it so nothing is overwritten. Use Remove Categories from Message for the inverse, and Update Message when other fields change too. Idempotent: re-adding the same categories leaves the message unchanged.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),categories:h.Array({displayName:"Categories",description:"Category names to add to the message.",required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`;try{let c=(await n.api(`${i}?$select=id,categories`).get())?.categories??[],u=[...new Set([...c,...o])];return await n.api(i).headers(x.textBodyHeaders).patch({categories:u})}catch(a){throw x.graphError({error:a,operation:"Adding categories to the Outlook message"})}}});var RE=20,Rz=15e3;function Cz(e){return new Promise(t=>setTimeout(t,e))}s(Cz,"delay");function Dz(e){let t=e.headers?.["Retry-After"]??e.headers?.["retry-after"],o=t?Number(t):NaN;return Number.isFinite(o)&&o>0?Math.min(o*1e3,Rz):2e3}s(Dz,"retryDelayMs");async function CE({client:e,requests:t}){return(await e.api("/$batch").post({requests:t}))?.responses??[]}s(CE,"postChunk");async function ea({client:e,requests:t}){let o=[];for(let n=0;n<t.length;n+=RE){let r=t.slice(n,n+RE),i=await CE({client:e,requests:r}),a=i.filter(f=>f.status===429);if(a.length===0){o.push(...i);continue}let c=Math.max(...a.map(f=>Dz(f)));await Cz(c);let u=new Set(a.map(f=>f.id)),l=r.filter(f=>u.has(f.id)),d=await CE({client:e,requests:l}),g=new Map(d.map(f=>[f.id,f]));o.push(...i.map(f=>g.get(f.id)??f))}return o}s(ea,"runGraphBatch");function ta(e){let t=e.body;if(t&&typeof t=="object"&&"error"in t){let o=t.error,n=[o?.code,o?.message].filter(Boolean);if(n.length>0)return n.join(": ")}return typeof t=="string"&&t.length>0?t.slice(0,500):`Microsoft Graph returned HTTP ${e.status} for this item.`}s(ta,"describeBatchFailure");var DE=O({auth:S,name:"outlook_batch_move_messages",classification:"WRITE",displayName:"Batch Move Messages",description:"Moves several messages to one folder in a single batched call.",audience:"ai",aiMetadata:{description:"Moves many messages into the same destination folder using Microsoft Graph batching, in chunks of 20 sub-requests. Every moved message gets a NEW ID, returned per item, and the original IDs stop resolving. Individual items can fail while others succeed, so always read the failed list. Use Move Message for a single message. Not idempotent: a retry with the old IDs fails.",idempotent:!1},props:{messageIds:h.Array({displayName:"Message IDs",description:"IDs of the messages to move. Resolve them with List Messages or Search Messages.",required:!0}),destinationFolderId:h.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:LA,async run(e){let{destinationFolderId:t}=e.propsValue,o=e.propsValue.messageIds??[];if(o.length===0)throw new Error("Batch moving Outlook messages failed: no message IDs were supplied.");let n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=o.map((a,c)=>({id:String(c+1),method:"POST",url:`${r}/messages/${x.encodeGraphId(a)}/move`,headers:{"Content-Type":"application/json"},body:{destinationId:t}}));try{let a=await ea({client:n,requests:i}),c=[],u=[];for(let l of a){let d=o[Number(l.id)-1];if(l.status>=200&&l.status<300){let g=l.body??{};c.push({messageId:d,newMessageId:g.id??null})}else u.push({messageId:d,status:l.status,error:ta(l)})}return{success:u.length===0,destinationFolderId:t,requestedCount:o.length,succeededCount:c.length,failedCount:u.length,succeeded:c,failed:u}}catch(a){throw x.graphError({error:a,operation:"Batch moving Outlook messages"})}}});var zE=O({auth:S,name:"outlook_batch_update_messages",classification:"WRITE",displayName:"Batch Update Messages",description:"Applies the same property changes to several messages at once.",audience:"ai",aiMetadata:{description:"Applies the same read state, flag, importance and category changes to many messages through Microsoft Graph batching, in chunks of 20 sub-requests. Fields left empty are never sent, and categories are merged per message against that message current categories, so tags on other messages are not wiped. Individual items can fail while others succeed, so always read the failed list. Idempotent: re-applying the same field values converges on the same state and creates no new entities.",idempotent:!0},props:{messageIds:h.Array({displayName:"Message IDs",description:"IDs of the messages to update. Resolve them with List Messages or Search Messages.",required:!0}),isRead:h.StaticDropdown({displayName:"Read State",description:"Leave unset to keep each message current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:h.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep each message current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:h.StaticDropdown({displayName:"Importance",description:"Leave unset to keep each message current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:h.Array({displayName:"Categories to Add",description:"Category names merged into the categories each message already has.",required:!1}),categoriesToRemove:h.Array({displayName:"Categories to Remove",description:"Category names removed from each message.",required:!1})},outputSchema:FA,async run(e){let{isRead:t,flagStatus:o,importance:n}=e.propsValue,r=e.propsValue.messageIds??[],i=e.propsValue.categoriesToAdd??[],a=e.propsValue.categoriesToRemove??[];if(r.length===0)throw new Error("Batch updating Outlook messages failed: no message IDs were supplied.");let c={};t!==void 0&&(c.isRead=t==="true"),o!==void 0&&(c.flag={flagStatus:o}),n!==void 0&&(c.importance=n);let u=i.length>0||a.length>0;if(Object.keys(c).length===0&&!u)throw new Error("Batch updating Outlook messages failed: no fields were supplied, so there is nothing to change.");let l=_.createClient(e.auth),d=_.mailboxPrefix(e.auth),g=[],f=new Map;try{if(u){let T=r.map((w,B)=>({id:String(B+1),method:"GET",url:`${d}/messages/${x.encodeGraphId(w)}?$select=id,categories`})),A=await ea({client:l,requests:T});for(let w of A){let B=r[Number(w.id)-1];if(w.status>=200&&w.status<300){let ue=(w.body??{}).categories??[];f.set(B,[...new Set([...ue,...i])].filter(Se=>!a.includes(Se)))}else g.push({messageId:B,status:w.status,error:ta(w)})}}let p=u?r.filter(T=>f.has(T)):r,v=p.map((T,A)=>({id:String(A+1),method:"PATCH",url:`${d}/messages/${x.encodeGraphId(T)}`,headers:{"Content-Type":"application/json"},body:u?{...c,categories:f.get(T)}:{...c}})),b=[];if(v.length>0){let T=await ea({client:l,requests:v});for(let A of T){let w=p[Number(A.id)-1];A.status>=200&&A.status<300?b.push({messageId:w}):g.push({messageId:w,status:A.status,error:ta(A)})}}return{success:g.length===0,requestedCount:r.length,succeededCount:b.length,failedCount:g.length,succeeded:b,failed:g}}catch(p){throw x.graphError({error:p,operation:"Batch updating Outlook messages"})}}});var NE=O({auth:S,name:"outlook_copy_mail_folder",classification:"WRITE",displayName:"Copy Mail Folder",description:"Copies a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Copies a mail folder, with its messages and sub-folders, under a destination folder and returns the new folder. Use Move Mail Folder when the original should not stay in place. Not idempotent: each call creates another copy.",idempotent:!1},props:{folderId:h.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),destinationFolderId:h.ShortText({displayName:"Destination Folder ID",description:`Folder that will contain the copy. ${x.wellKnownFolderHint}`,required:!0})},outputSchema:QA,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceFolderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw x.graphError({error:i,operation:"Copying the Outlook mail folder"})}}});var ME=O({auth:S,name:"outlook_copy_message",classification:"WRITE",displayName:"Copy Message",description:"Copies a message into another mail folder.",audience:"ai",aiMetadata:{description:"Copies one message into another mail folder, leaving the original where it is, and returns the copy. The copy has a NEW message ID, returned as newMessageId. Use Move Message when the original should not stay behind. Not idempotent: each call creates one more copy.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),destinationFolderId:h.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:UA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw x.graphError({error:i,operation:"Copying the Outlook message"})}}});var UE=O({auth:S,name:"outlook_create_draft",classification:"WRITE",displayName:"Create Draft",description:"Creates an unsent draft message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft email in the mailbox (optionally inside a specific folder) and returns its message ID. Use this to stage a message for review, to attach files with Add Attachment to Draft, or before Send Draft; use Send Email to send in one step. Not idempotent: every call creates another draft.",idempotent:!1},props:{recipients:h.Array({displayName:"To Email(s)",required:!1}),ccRecipients:h.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:h.Array({displayName:"BCC Email(s)",required:!1}),subject:h.ShortText({displayName:"Subject",required:!0}),bodyFormat:h.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:h.LongText({displayName:"Body",required:!0}),folderId:h.ShortText({displayName:"Folder ID",description:`Create the draft inside a specific folder. ${x.wellKnownFolderHint} Leave empty to use the Drafts folder.`,required:!1}),attachments:h.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:h.File({displayName:"File",required:!0}),fileName:h.ShortText({displayName:"File Name",required:!1})}})},outputSchema:Qt,async run(e){let t=e.propsValue.recipients??[],o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c,folderId:u}=e.propsValue,l={subject:i,body:{content:a,contentType:c},toRecipients:t.map(p=>({emailAddress:{address:p}})),ccRecipients:o.map(p=>({emailAddress:{address:p}})),bccRecipients:n.map(p=>({emailAddress:{address:p}})),attachments:r.map(p=>({"@odata.type":"#microsoft.graph.fileAttachment",name:p.fileName||p.file.filename,contentBytes:p.file.base64}))},d=_.createClient(e.auth),g=_.mailboxPrefix(e.auth),f=u?`${g}/mailFolders/${x.encodeGraphId(u)}/messages`:`${g}/messages`;try{return await d.api(f).post(l)}catch(p){throw x.graphError({error:p,operation:"Creating the Outlook draft"})}}});var LE=O({auth:S,name:"outlook_create_focused_inbox_override",classification:"WRITE",displayName:"Create Focused Inbox Override",description:"Forces mail from a sender into the Focused or Other tab.",audience:"ai",aiMetadata:{description:"Pins future mail from one sender address to the Focused or the Other tab. Microsoft upserts by sender address: if an override already exists for that address, its classification is updated instead of a duplicate being created, and the stored display name is left untouched unless Sender Display Name is supplied. Idempotent for that reason. Use Update Focused Inbox Override when you already hold an override ID.",idempotent:!0},props:{senderEmailAddress:h.ShortText({displayName:"Sender Email Address",description:"SMTP address of the sender the override applies to.",required:!0}),classifyAs:h.StaticDropdown({displayName:"Classify As",required:!0,defaultValue:"focused",options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}}),senderName:h.ShortText({displayName:"Sender Display Name",description:"Optional display name stored alongside the override.",required:!1})},outputSchema:Gu,async run(e){let{senderEmailAddress:t,classifyAs:o,senderName:n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/inferenceClassification/overrides`).post({classifyAs:o,senderEmailAddress:{...n?{name:n}:{},address:t}})}catch(a){throw x.graphError({error:a,operation:"Creating the Focused Inbox override"})}}});var FE=O({auth:S,name:"outlook_create_forward_draft",classification:"WRITE",displayName:"Create Forward Draft",description:"Creates an unsent forward draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft that forwards an existing message to the given recipients, and returns the draft message ID so the forward can be edited before sending. Use Forward Message to send in one step, and Send Draft to dispatch this draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),recipients:h.Array({displayName:"To Email(s)",description:"Email addresses the draft will forward the message to.",required:!0}),comment:h.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/createForward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))})}catch(a){throw x.graphError({error:a,operation:"Creating the Outlook forward draft"})}}});var jE=O({auth:S,name:"outlook_create_mail_folder",classification:"WRITE",displayName:"Create Mail Folder",description:"Creates a mail folder, or returns the existing one with the same name.",audience:"ai",aiMetadata:{description:"Creates a mail folder at the top level or under a parent folder. It first queries the sibling folders by exact display name and returns the existing folder with created set to false when one already carries the same display name, so no duplicate folder is ever created. Idempotent: repeat calls return the same folder.",idempotent:!0},props:{displayName:h.ShortText({displayName:"Folder Name",description:"Display name of the folder to create.",required:!0}),parentFolderId:h.ShortText({displayName:"Parent Folder ID",description:`Create the folder under this parent. ${x.wellKnownFolderHint} Leave empty to create it at the top level.`,required:!1})},outputSchema:YA,async run(e){let{displayName:t,parentFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=o?`${r}/mailFolders/${x.encodeGraphId(o)}/childFolders`:`${r}/mailFolders`,a=t.trim();try{let u=((await n.api(`${i}?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$filter=${encodeURIComponent(`displayName eq '${a.replace(/'/g,"''")}'`)}`).get()).value??[]).find(d=>(d.displayName??"").toLowerCase()===a.toLowerCase());if(u)return{created:!1,folder:u,folderId:u.id??null};let l=await n.api(i).post({displayName:t});return{created:!0,folder:l,folderId:l?.id??null}}catch(c){throw x.graphError({error:c,operation:"Creating the Outlook mail folder"})}}});var BE=O({auth:S,name:"outlook_create_reply_all_draft",classification:"WRITE",displayName:"Create Reply-All Draft",description:"Creates an unsent reply-all draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft addressed to the sender and every other recipient of an existing message, and returns the draft message ID. Use Create Reply Draft to answer only the sender, or Reply All to Message to send immediately. Send it later with Send Draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:h.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/createReplyAll`).post({comment:o??""})}catch(i){throw x.graphError({error:i,operation:"Creating the Outlook reply-all draft"})}}});var VE=O({auth:S,name:"outlook_create_reply_draft",classification:"WRITE",displayName:"Create Reply Draft",description:"Creates an unsent reply draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft reply to the sender of an existing message and returns the draft message ID. Use this when the reply needs editing, extra attachments or review before it goes out; use Reply to Message to send in one step, and Send Draft to dispatch the draft afterwards. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:h.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/createReply`).post({comment:o??""})}catch(i){throw x.graphError({error:i,operation:"Creating the Outlook reply draft"})}}});var HE=O({auth:S,name:"outlook_delete_focused_inbox_override",classification:"DESTRUCTIVE",displayName:"Delete Focused Inbox Override",description:"Removes a Focused Inbox sender override.",audience:"ai",aiMetadata:{description:"Deletes one Focused Inbox override so mail from that sender is classified by Outlook again. The override ID comes from List Focused Inbox Overrides. Not idempotent: repeating the call with the same ID fails once the override is gone.",idempotent:!1},props:{overrideId:h.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0})},outputSchema:oE,async run(e){let{overrideId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/inferenceClassification/overrides/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Focused Inbox override deleted.",overrideId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Focused Inbox override"})}}});var ZE=O({auth:S,name:"outlook_delete_mail_folder",classification:"DESTRUCTIVE",displayName:"Delete Mail Folder",description:"Deletes a mail folder and everything inside it.",audience:"ai",aiMetadata:{description:"Deletes a mail folder together with every message and sub-folder it contains. Move messages out with Batch Move Messages first if they must be kept. Not idempotent: repeating the call with the same ID fails once the folder is gone.",idempotent:!1},props:{folderId:h.ShortText({displayName:"Folder ID",description:`${x.wellKnownFolderHint} Well-known system folders cannot be deleted.`,required:!0})},outputSchema:tE,async run(e){let{folderId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Mail folder deleted.",folderId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Outlook mail folder"})}}});var qE=O({auth:S,name:"outlook_delete_message",classification:"DESTRUCTIVE",displayName:"Delete Message (to Deleted Items)",description:"Moves a message to the Deleted Items folder.",audience:"ai",aiMetadata:{description:"Deletes one message by moving it to Deleted Items, where it stays recoverable. This is the safe delete to prefer; Permanently Delete Message is unrecoverable. Not idempotent: repeating the call with the same ID fails once the message has moved.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:jA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Message moved to Deleted Items.",messageId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Outlook message"})}}});var GE=O({auth:S,name:"outlook_delete_message_attachment",classification:"DESTRUCTIVE",displayName:"Delete Message Attachment",description:"Removes an attachment from a message.",audience:"ai",aiMetadata:{description:"Removes one attachment from a message, typically a draft, and it cannot be restored afterwards. Resolve the attachment ID with List Message Attachments first. Not idempotent: repeating the call with the same ID fails once the attachment is gone.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:h.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments.",required:!0})},outputSchema:qA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}`).delete(),{success:!0,message:"Attachment deleted.",messageId:t,attachmentId:o}}catch(i){throw x.graphError({error:i,operation:"Deleting the Outlook message attachment"})}}});var WE=Le(Ji());var KE=O({auth:S,name:"outlook_download_message_attachment",classification:"READ",displayName:"Download Message Attachment",description:"Downloads one file attachment of a message.",audience:"ai",aiMetadata:{description:"Downloads the bytes of a single file attachment and stores it for downstream steps. Only file attachments can be downloaded; item attachments (an attached email or event) and reference attachments (a cloud link) are rejected with an explanatory error, so check the attachment kind with List Message Attachments first. Read-only and safe to retry.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:h.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:HA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}`,a;try{a=await n.api(`${i}?$select=${x.attachmentSelect}`).get()}catch(u){throw x.graphError({error:u,operation:"Reading the Outlook attachment before download"})}let c=a?.["@odata.type"]??"";if(c!=="#microsoft.graph.fileAttachment")throw new Error(`Downloading the Outlook attachment failed: this attachment is a ${c||"non-file attachment"}, and only #microsoft.graph.fileAttachment items expose downloadable bytes. Use List Message Attachments to find a file attachment on this message.`);try{let u=await n.api(`${i}/$value`).responseType(WE.ResponseType.ARRAYBUFFER).get(),l=Buffer.isBuffer(u)?u:Buffer.from(u),d=a?.name??"attachment",g=await e.files.write({fileName:d,data:l});return{messageId:t,attachmentId:o,fileName:d,contentType:a?.contentType??null,size:l.length,file:g}}catch(u){throw x.graphError({error:u,operation:"Downloading the Outlook message attachment"})}}});var JE=O({auth:S,name:"outlook_forward_message",classification:"WRITE",displayName:"Forward Message",description:"Forwards a message to new recipients.",audience:"ai",aiMetadata:{description:"Forwards an existing message to new recipients, keeping the original body and attachments and prepending an optional comment. Use Create Forward Draft when the forward should be edited before sending. Not idempotent: each call sends another forwarded copy.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),recipients:h.Array({displayName:"To Email(s)",description:"Email addresses to forward the message to.",required:!0}),comment:h.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:dE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/forward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))}),{success:!0,message:"Message forwarded successfully.",messageId:t,recipients:n}}catch(a){throw x.graphError({error:a,operation:"Forwarding the Outlook message"})}}});var XE=O({auth:S,name:"outlook_get_mail_folder",classification:"READ",displayName:"Get Mail Folder",description:"Reads one mail folder by ID or well-known name.",audience:"ai",aiMetadata:{description:"Reads a single mail folder and returns its display name, parent, child count and unread and total item counts. Accepts either an opaque folder ID or a well-known name such as inbox or drafts, which makes it the cheapest way to resolve a standard folder ID. Read-only and safe to retry.",idempotent:!0},props:{folderId:h.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0,defaultValue:"inbox"})},outputSchema:GA,async run(e){let{folderId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${x.encodeGraphId(t)}?$select=${x.mailFolderSelect}`).get()}catch(r){throw x.graphError({error:r,operation:"Reading the Outlook mail folder"})}}});var zz="automaticReplies, mailboxFullStatus, customMailTip, externalMemberCount, maxMessageSize, deliveryRestriction, moderationStatus, recipientScope, totalMemberCount",YE=O({auth:S,name:"outlook_get_mail_tips",classification:"READ",displayName:"Get Mail Tips",description:"Reads pre-send mail tips for a set of recipients.",audience:"ai",aiMetadata:{description:"Checks recipients before sending and reports automatic replies or out-of-office messages, full mailboxes, maximum accepted message size, delivery restrictions, moderation and whether the recipient is external. Use this ahead of Send Email when a message is important or goes outside the organisation. Read-only and safe to retry.",idempotent:!0},props:{emailAddresses:h.Array({displayName:"Recipient Email Addresses",description:"Addresses to check. Up to 100 recipients per call.",required:!0})},outputSchema:nE,async run(e){let t=e.propsValue.emailAddresses;if(t.length===0)throw new Error("Reading Outlook mail tips failed: no recipient addresses were supplied.");let o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/getMailTips`).post({EmailAddresses:t,MailTipsOptions:zz}))?.value??[];return{mailTips:i,count:i.length}}catch(r){throw x.graphError({error:r,operation:"Reading Outlook mail tips"})}}});var QE=O({auth:S,name:"outlook_get_message",classification:"READ",displayName:"Get Message",description:"Retrieves a single message by its ID.",audience:"ai",aiMetadata:{description:"Reads one Outlook message by ID and returns its headers, plain-text body and metadata. Use this after List Messages or Search Messages to inspect a specific email; use Get Message MIME Content when you need the raw RFC-822 source. Read-only and safe to retry.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}`).headers(x.textBodyHeaders).get()}catch(r){throw x.graphError({error:r,operation:"Reading the Outlook message"})}}});var eT=O({auth:S,name:"outlook_get_message_attachment",classification:"READ",displayName:"Get Message Attachment",description:"Reads the metadata of one attachment.",audience:"ai",aiMetadata:{description:"Returns the metadata of a single attachment (name, content type, size, inline flag and attachment kind) without transferring the file bytes. Use Download Message Attachment when the file content itself is needed, and List Message Attachments to discover attachment IDs. Read-only and safe to retry.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:h.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:VA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}?$select=${x.attachmentSelect}`).get();return{messageId:t,id:i?.id??null,name:i?.name??null,contentType:i?.contentType??null,size:i?.size??null,isInline:i?.isInline??null,lastModifiedDateTime:i?.lastModifiedDateTime??null,attachmentType:i?.["@odata.type"]??null}}catch(i){throw x.graphError({error:i,operation:"Reading the Outlook message attachment"})}}});var tT=Le(Ji());var rT=O({auth:S,name:"outlook_get_message_mime",classification:"READ",displayName:"Get Message MIME Content",description:"Downloads the raw MIME (RFC-822) content of a message.",audience:"ai",aiMetadata:{description:"Stores the raw RFC-822 MIME source of one Outlook message, including full internet headers, as a byte-exact .eml file and returns that file plus its size. The content is not returned inline, because MIME can carry 8-bit and non-UTF-8 bytes that no text field round-trips; read the file when you need the headers. Use this for archival or forensic inspection; use Get Message when the parsed fields are enough. Read-only and safe to retry.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:NA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let r=await o.api(`${n}/messages/${x.encodeGraphId(t)}/$value`).responseType(tT.ResponseType.ARRAYBUFFER).get(),i=Buffer.isBuffer(r)?r:Buffer.from(r),a="message.eml",c=await e.files.write({fileName:a,data:i});return{messageId:t,fileName:a,contentType:"message/rfc822",size:i.length,file:c}}catch(r){throw x.graphError({error:r,operation:"Downloading the Outlook message MIME content"})}}});var oT=O({auth:S,name:"outlook_get_my_profile",classification:"READ",displayName:"Get My Profile",description:"Reads the identity of the connected account.",audience:"ai",aiMetadata:{description:"Returns the identity behind the connection: display name, primary email address and user principal name. Use this to learn your own address before composing mail, filtering a thread or deciding whether a sender is you. On app-only connections it reports the configured mailbox without calling Microsoft Graph, because reading another user profile would need a directory permission this piece does not request. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:iE,async run(e){if(x.isAppOnlyConnection(e.auth)){let o=x.getConfiguredMailbox(e.auth);return{id:null,displayName:null,mail:o,userPrincipalName:o,source:"connection-mailbox"}}let t=_.createClient(e.auth);try{let o=await t.api("/me?$select=id,displayName,mail,userPrincipalName").get();return{id:o?.id??null,displayName:o?.displayName??null,mail:o?.mail??null,userPrincipalName:o?.userPrincipalName??null,source:"graph"}}catch(o){throw x.graphError({error:o,operation:"Reading the Outlook profile"})}}});var nT=O({auth:S,name:"outlook_get_supported_time_zones",classification:"READ",displayName:"Get Supported Time Zones",description:"Lists the time zones Outlook accepts for this account.",audience:"ai",aiMetadata:{description:"Lists the time zone names Outlook accepts, so a time zone string can be validated before it is used elsewhere. Works on delegated connections only: Microsoft exposes no application permission for it, so app-only connections are rejected with an explanatory error. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:aE,async run(e){if(x.isAppOnlyConnection(e.auth))throw new Error("Listing the supported time zones is available on delegated Outlook connections only. Microsoft Graph exposes no application permission for this endpoint, so an app-only connection with a configured mailbox cannot call it.");let t=_.createClient(e.auth),o=_.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/outlook/supportedTimeZones`).get()).value??[];return{timeZones:r,count:r.length}}catch(n){throw x.graphError({error:n,operation:"Listing the supported Outlook time zones"})}}});var iT=O({auth:S,name:"outlook_list_child_mail_folders",classification:"SEARCH",displayName:"List Child Mail Folders",description:"Lists the sub-folders of one mail folder.",audience:"ai",aiMetadata:{description:"Lists the direct sub-folders of a given mail folder, including hidden ones, so nested hierarchies can be walked one level at a time. Use List Mail Folders for the top level; a child folder ID works anywhere a folder ID is accepted. Read-only and safe to retry.",idempotent:!0},props:{folderId:h.ShortText({displayName:"Parent Folder ID",description:x.wellKnownFolderHint,required:!0,defaultValue:"inbox"}),maxResults:h.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:JA,async run(e){let{folderId:t,maxResults:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=Math.min(Math.max(o??50,1),100);try{let a=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/childFolders?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$top=${i}`).get(),c=a.value??[],u=a["@odata.nextLink"];return{parentFolderId:t,folders:c,count:c.length,hasMore:!!u,nextLink:u??null}}catch(a){throw x.graphError({error:a,operation:"Listing the Outlook child mail folders"})}}});var aT=O({auth:S,name:"outlook_list_focused_inbox_overrides",classification:"SEARCH",displayName:"List Focused Inbox Overrides",description:"Lists the Focused Inbox sender overrides of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the Focused Inbox overrides that force mail from specific senders into the Focused or Other tab, with the override ID for each sender. Run this first: Update Focused Inbox Override and Delete Focused Inbox Override both need an ID that only this action returns. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:rE,async run(e){let t=_.createClient(e.auth),o=_.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/inferenceClassification/overrides`).get()).value??[];return{overrides:r,count:r.length}}catch(n){throw x.graphError({error:n,operation:"Listing the Focused Inbox overrides"})}}});var sT=O({auth:S,name:"outlook_list_mail_folders",classification:"SEARCH",displayName:"List Mail Folders",description:"Lists the top-level mail folders of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the top-level mail folders with their IDs, display names and item counts, including hidden folders. Use this to resolve a folder ID before moving, copying or listing messages; use List Child Mail Folders to walk deeper into the tree. Read-only and safe to retry.",idempotent:!0},props:{maxResults:h.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:KA,async run(e){let{maxResults:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth),r=Math.min(Math.max(t??50,1),100);try{let i=await o.api(`${n}/mailFolders?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$top=${r}`).get(),a=i.value??[],c=i["@odata.nextLink"];return{folders:a,count:a.length,hasMore:!!c,nextLink:c??null}}catch(i){throw x.graphError({error:i,operation:"Listing the Outlook mail folders"})}}});var cT=O({auth:S,name:"outlook_list_mail_folders_delta",classification:"SEARCH",displayName:"List Folder Changes (Delta)",description:"Tracks created, renamed and deleted mail folders.",audience:"ai",aiMetadata:{description:"Returns the mail folders created, renamed or removed since a previous delta link, plus a fresh delta link for the next call. Use this to keep a folder tree in sync instead of re-listing it; it pairs with List Message Changes (Delta) for messages. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the folder was deleted and only its id and removedReason are meaningful. Read-only and safe to retry.",idempotent:!0},props:{deltaLink:h.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder tree. ${x.deltaLinkHint}`,required:!1})},outputSchema:XA,async run(e){let{deltaLink:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth),r="Listing the Outlook mail folder changes",i=`${n}/mailFolders/delta`,a=t?x.resolveDeltaUrl({auth:e.auth,deltaLink:t,expectedPath:i,operation:r}):i;try{let c=await o.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(g=>x.withDeltaRemoval(g)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw x.graphError({error:c,operation:r})}}});var uT=O({auth:S,name:"outlook_list_message_attachments",classification:"SEARCH",displayName:"List Message Attachments",description:"Lists the attachments of a message without downloading them.",audience:"ai",aiMetadata:{description:"Lists every attachment on one message with its ID, name, content type, size and kind, without transferring any file bytes. Use this first to pick an attachment ID for Download Message Attachment or Get Message Attachment. Read-only and safe to retry.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:BA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/messages/${x.encodeGraphId(t)}/attachments?$select=${x.attachmentSelect}`).get()).value??[];return{messageId:t,attachments:i.map(a=>({id:a.id??null,name:a.name??null,contentType:a.contentType??null,size:a.size??null,isInline:a.isInline??null,lastModifiedDateTime:a.lastModifiedDateTime??null,attachmentType:a["@odata.type"]??null})),count:i.length}}catch(r){throw x.graphError({error:r,operation:"Listing the Outlook message attachments"})}}});var lT=O({auth:S,name:"outlook_list_messages",classification:"SEARCH",displayName:"List Messages",description:"Lists messages from the mailbox or a single mail folder.",audience:"ai",aiMetadata:{description:"Enumerates Outlook messages, optionally scoped to one mail folder and narrowed by an OData $filter expression, and returns their IDs and headers. Use this to discover message IDs for other actions; use Search Messages instead when you only have free-text keywords. Read-only and safe to retry.",idempotent:!0},props:{folderId:h.ShortText({displayName:"Folder ID",description:`Limit the listing to one folder. ${x.wellKnownFolderHint} Leave empty to list the whole mailbox.`,required:!1}),filter:h.ShortText({displayName:"Filter",description:"Optional OData $filter expression, for example: isRead eq false, or receivedDateTime ge 2024-01-01T00:00:00Z.",required:!1}),maxResults:h.Number({displayName:"Max Results",description:"Maximum number of messages to return (1-100).",required:!1,defaultValue:25}),skip:h.Number({displayName:"Skip",description:"Number of messages to skip before returning results, for paging.",required:!1})},outputSchema:CA,async run(e){let{folderId:t,filter:o,maxResults:n,skip:r}=e.propsValue,i=_.createClient(e.auth),a=_.mailboxPrefix(e.auth),c=t?`${a}/mailFolders/${x.encodeGraphId(t)}/messages`:`${a}/messages`,u=Math.min(Math.max(n??25,1),100),l=[`$select=${x.messageSelect}`,`$top=${u}`];o?l.push(`$filter=${encodeURIComponent(o)}`):l.push("$orderby=receivedDateTime%20desc"),r!==void 0&&r>0&&l.push(`$skip=${Math.floor(r)}`);try{let d=await i.api(`${c}?${l.join("&")}`).headers(x.textBodyHeaders).get(),g=d.value??[],f=d["@odata.nextLink"];return{messages:g,count:g.length,hasMore:!!f,nextLink:f??null}}catch(d){throw x.graphError({error:d,operation:"Listing Outlook messages"})}}});var dT=O({auth:S,name:"outlook_list_messages_delta",classification:"SEARCH",displayName:"List Message Changes (Delta)",description:"Tracks created, updated and deleted messages in a folder.",audience:"ai",aiMetadata:{description:"Returns the messages added, changed or removed in one mail folder since a previous delta link, plus a fresh delta link for the next call. Use this for incremental sync instead of re-listing a folder; a first call without a delta link returns the current contents. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the item was deleted and only its id and removedReason are meaningful. Delta payloads omit message bodies and attachments, so follow up with Get Message for full content. Read-only and safe to retry.",idempotent:!0},props:{folderId:h.ShortText({displayName:"Folder ID",description:`Folder to track. ${x.wellKnownFolderHint}`,required:!0,defaultValue:"inbox"}),deltaLink:h.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder state. ${x.deltaLinkHint}`,required:!1})},outputSchema:zA,async run(e){let{folderId:t,deltaLink:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i="Listing Outlook message changes",a=o?x.resolveDeltaUrl({auth:e.auth,deltaLink:o,expectedPath:`${r}/mailFolders/*/messages/delta`,operation:i}):`${r}/mailFolders/${x.encodeGraphId(t)}/messages/delta?$select=${x.messageSelect}`;try{let c=await n.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(g=>x.withDeltaRemoval(g)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw x.graphError({error:c,operation:i})}}});var pT=O({auth:S,name:"outlook_move_mail_folder",classification:"WRITE",displayName:"Move Mail Folder",description:"Moves a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Reparents a mail folder, moving it with its messages and sub-folders under a different destination folder. Use Copy Mail Folder to duplicate instead of relocating, and Rename Mail Folder to change only its name. The move issues the folder a new ID: carry newFolderId forward into later steps, not the folderId that was passed in. Not idempotent: once moved, the same call repeated against the old parent no longer applies.",idempotent:!1},props:{folderId:h.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),destinationFolderId:h.ShortText({displayName:"Destination Folder ID",description:`New parent folder. ${x.wellKnownFolderHint}`,required:!0})},outputSchema:eE,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,folderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw x.graphError({error:i,operation:"Moving the Outlook mail folder"})}}});var mT=O({auth:S,name:"outlook_move_message",classification:"WRITE",displayName:"Move Message",description:"Moves a message to another mail folder.",audience:"ai",aiMetadata:{description:"Moves one message into another mail folder and returns the moved copy. The move mints a NEW message ID: the original ID stops resolving, so use the returned newMessageId for any follow-up step. Use Copy Message to leave the original in place, or Batch Move Messages for many messages. Not idempotent: a retry with the old ID fails.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),destinationFolderId:h.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:MA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,previousMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw x.graphError({error:i,operation:"Moving the Outlook message"})}}});var fT=O({auth:S,name:"outlook_permanently_delete_message",classification:"DESTRUCTIVE",displayName:"Permanently Delete Message",description:"Permanently deletes a message so it cannot be recovered.",audience:"ai",aiMetadata:{description:"Permanently removes one message from the mailbox with no way to recover it, bypassing Deleted Items. Prefer Delete Message (to Deleted Items) in every case where recovery might be wanted; only use this when the caller explicitly asked for unrecoverable deletion. Unavailable on US Government DoD and 21Vianet clouds. Not idempotent: a retry with the same ID fails.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),confirm:h.Checkbox({displayName:"Confirm Permanent Deletion",description:"Must be enabled. The message cannot be recovered afterwards.",required:!0,defaultValue:!1})},async run(e){let{messageId:t,confirm:o}=e.propsValue;if(!o)throw new Error("Permanently deleting the Outlook message was refused: enable Confirm Permanent Deletion to proceed, or use Delete Message (to Deleted Items) instead.");if(x.isGovernmentCloud(e.auth))throw new Error("Permanently deleting the Outlook message is not available on the US Government cloud. Use Delete Message (to Deleted Items) instead.");let n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=x.encodeGraphId(t);try{return await n.api(`${r}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(a){if(!(r==="/me"&&x.isUnsupportedMePathError(a)))throw x.graphError({error:a,operation:"Permanently deleting the Outlook message"});try{let l=(await n.api("/me?$select=id").get())?.id;if(!l)throw x.graphError({error:a,operation:"Permanently deleting the Outlook message"});return await n.api(`/users/${x.encodeGraphId(l)}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(u){throw x.graphError({error:u,operation:`Permanently deleting the Outlook message (retried against /users/{id} after the /me path was rejected with: ${x.graphErrorDetail(a)})`})}}}});var hT=O({auth:S,name:"outlook_remove_message_categories",classification:"WRITE",displayName:"Remove Categories from Message",description:"Removes categories (labels) from a message.",audience:"ai",aiMetadata:{description:"Removes one or more Outlook categories from a message while leaving its other categories intact. Use Add Categories to Message for the inverse, and Update Message when other fields change too. Idempotent: removing a category the message does not have changes nothing.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),categories:h.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`;try{let u=((await n.api(`${i}?$select=id,categories`).get())?.categories??[]).filter(l=>!o.includes(l));return await n.api(i).headers(x.textBodyHeaders).patch({categories:u})}catch(a){throw x.graphError({error:a,operation:"Removing categories from the Outlook message"})}}});var gT=O({auth:S,name:"outlook_reply_all_to_message",classification:"WRITE",displayName:"Reply All to Message",description:"Replies to the sender and all recipients of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender and every other recipient of an existing message. Use Reply to Message to answer the sender only, or Create Reply-All Draft when the reply must be reviewed first. Not idempotent: each call sends another reply to everyone on the thread.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:h.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0})},outputSchema:lE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/replyAll`).post({comment:o}),{success:!0,message:"Reply-all sent successfully.",messageId:t}}catch(i){throw x.graphError({error:i,operation:"Replying to all recipients of the Outlook message"})}}});var yT=O({auth:S,name:"outlook_reply_to_message",classification:"WRITE",displayName:"Reply to Message",description:"Replies to the sender of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender of an existing message, quoting the original thread. Use Reply All to Message to include every original recipient, or Create Reply Draft when the reply must be reviewed before sending. Not idempotent: each call sends another reply.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:h.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0}),ccRecipients:h.Array({displayName:"Additional CC Email(s)",required:!1})},outputSchema:uE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.ccRecipients??[],r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a={comment:o};n.length>0&&(a.message={ccRecipients:n.map(c=>({emailAddress:{address:c}}))});try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/reply`).post(a),{success:!0,message:"Reply sent successfully.",messageId:t}}catch(c){throw x.graphError({error:c,operation:"Replying to the Outlook message"})}}});var kh=Le(zo());var vT=O({auth:S,name:"outlook_search_messages",classification:"SEARCH",displayName:"Search Messages",description:"Searches messages with a full-text query.",audience:"ai",aiMetadata:{description:"Runs a full-text Outlook search (KQL terms such as from:jane@contoso.com, subject:invoice or hasAttachments:true), optionally inside one folder, and returns matching messages newest first. Pick this when you have keywords; use List Messages when you need an exact OData filter or paging. Search cannot be combined with filters or server-side sorting, and is unreliable on personal Microsoft accounts. Read-only and safe to retry.",idempotent:!0},props:{searchQuery:h.ShortText({displayName:"Search Query",description:"Keywords or KQL terms to match, for example: from:john@example.com, subject:urgent, hasAttachments:true.",required:!0}),folderId:h.ShortText({displayName:"Folder ID",description:`Search inside one folder only. ${x.wellKnownFolderHint} Leave empty to search the whole mailbox.`,required:!1}),maxResults:h.Number({displayName:"Max Results",description:"Maximum number of results to return (1-1000).",required:!1,defaultValue:25})},outputSchema:DA,async run(e){let{searchQuery:t,folderId:o,maxResults:n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a=o?`${i}/mailFolders/${x.encodeGraphId(o)}/messages`:`${i}/messages`,c=Math.min(Math.max(n??25,1),1e3),u=`${a}?$search=${encodeURIComponent(`"${t}"`)}&$top=${c}`;try{let l=await r.api(u).headers({ConsistencyLevel:"eventual",...x.textBodyHeaders}).get(),d=l.value??[];d.sort((f,p)=>(0,kh.default)(p.receivedDateTime).valueOf()-(0,kh.default)(f.receivedDateTime).valueOf());let g=l["@odata.nextLink"];return{found:d.length>0,messages:d,count:d.length,hasMore:!!g,nextLink:g??null}}catch(l){throw x.graphError({error:l,operation:"Searching Outlook messages"})}}});var xT=O({auth:S,name:"outlook_send_draft",classification:"WRITE",displayName:"Send Draft",description:"Sends an existing draft message.",audience:"ai",aiMetadata:{description:"Sends a draft that already exists in the mailbox, identified by its message ID. Use this after Create Draft, Create Reply Draft, Create Reply-All Draft or Create Forward Draft. Not idempotent: the draft stops existing once sent, so a repeat call with the same ID fails.",idempotent:!1},props:{messageId:h.ShortText({displayName:"Draft Message ID",description:"ID of the draft to send. Obtain it from Create Draft or one of the Create ... Draft actions.",required:!0})},outputSchema:cE,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}catch(r){throw x.graphError({error:r,operation:"Sending the Outlook draft"})}}});var _T=O({auth:S,name:"outlook_send_email",classification:"WRITE",displayName:"Send Email",description:"Composes and sends a new email.",audience:"ai",aiMetadata:{description:"Composes and immediately sends a brand new email from the connected Outlook mailbox, with optional CC, BCC and attachments, and saves a copy in Sent Items. Use Reply to Message or Forward Message instead when responding to existing mail, and Create Draft when the message should be staged rather than sent. Not idempotent: every call dispatches another email.",idempotent:!1},props:{recipients:h.Array({displayName:"To Email(s)",description:"Email addresses of the primary recipients.",required:!0}),ccRecipients:h.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:h.Array({displayName:"BCC Email(s)",required:!1}),subject:h.ShortText({displayName:"Subject",required:!0}),bodyFormat:h.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:h.LongText({displayName:"Body",required:!0}),attachments:h.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:h.File({displayName:"File",required:!0}),fileName:h.ShortText({displayName:"File Name",required:!1})}})},outputSchema:sE,async run(e){let t=e.propsValue.recipients,o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c}=e.propsValue,u={subject:i,body:{content:a,contentType:c},toRecipients:t.map(d=>({emailAddress:{address:d}})),ccRecipients:o.map(d=>({emailAddress:{address:d}})),bccRecipients:n.map(d=>({emailAddress:{address:d}})),attachments:r.map(d=>({"@odata.type":"#microsoft.graph.fileAttachment",name:d.fileName||d.file.filename,contentBytes:d.file.base64}))},l=_.createClient(e.auth);try{return await l.api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:u,saveToSentItems:"true"}),{success:!0,message:"Email sent successfully.",subject:i,recipients:t}}catch(d){throw x.graphError({error:d,operation:"Sending the Outlook email"})}}});var PT=O({auth:S,name:"outlook_set_message_read_status",classification:"WRITE",displayName:"Mark Message Read / Unread",description:"Marks a message as read or unread.",audience:"ai",aiMetadata:{description:"Sets only the read state of one message, leaving every other property untouched. Use this for the common mark-as-read step; use Update Message when other fields change too, or Batch Update Messages for many messages at once. Idempotent: re-applying the same state changes nothing.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),isRead:h.StaticDropdown({displayName:"Read State",required:!0,defaultValue:"true",options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}})},outputSchema:vt,async run(e){let{messageId:t,isRead:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}`).headers(x.textBodyHeaders).patch({isRead:o==="true"})}catch(i){throw x.graphError({error:i,operation:"Updating the read state of the Outlook message"})}}});var bT=O({auth:S,name:"outlook_update_focused_inbox_override",classification:"WRITE",displayName:"Update Focused Inbox Override",description:"Changes the classification of a Focused Inbox override.",audience:"ai",aiMetadata:{description:"Switches an existing Focused Inbox override between the Focused and Other tabs. The classification is the only writable property, and the override ID comes from List Focused Inbox Overrides. Idempotent: applying the same classification again changes nothing.",idempotent:!0},props:{overrideId:h.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0}),classifyAs:h.StaticDropdown({displayName:"Classify As",required:!0,options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}})},outputSchema:Gu,async run(e){let{overrideId:t,classifyAs:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/inferenceClassification/overrides/${x.encodeGraphId(t)}`).patch({classifyAs:o})}catch(i){throw x.graphError({error:i,operation:"Updating the Focused Inbox override"})}}});var AT=O({auth:S,name:"outlook_update_mail_folder",classification:"WRITE",displayName:"Rename Mail Folder",description:"Renames a mail folder.",audience:"ai",aiMetadata:{description:"Renames a mail folder. The display name is the only writable property of a folder, so use Move Mail Folder to change its parent and Create Mail Folder to add a new one. Idempotent: applying the same name again changes nothing.",idempotent:!0},props:{folderId:h.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),displayName:h.ShortText({displayName:"New Folder Name",required:!0})},outputSchema:WA,async run(e){let{folderId:t,displayName:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}`).patch({displayName:o})}catch(i){throw x.graphError({error:i,operation:"Renaming the Outlook mail folder"})}}});var ET=O({auth:S,name:"outlook_update_message",classification:"WRITE",displayName:"Update Message",description:"Updates the writable properties of a message.",audience:"ai",aiMetadata:{description:"Updates one message in place: read state, flag state, importance and categories on any message, plus subject and body on a draft. Fields left empty are not sent, and categories are merged with the ones already on the message instead of replacing them. Use Mark Message Read / Unread for the read flag alone, or Batch Update Messages for many messages at once. Idempotent: re-applying the same values converges on the same state.",idempotent:!0},props:{messageId:h.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),isRead:h.StaticDropdown({displayName:"Read State",description:"Leave unset to keep the current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:h.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep the current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:h.StaticDropdown({displayName:"Importance",description:"Leave unset to keep the current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:h.Array({displayName:"Categories to Add",description:"Category names to add, merged with the categories already on the message.",required:!1}),categoriesToRemove:h.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!1}),subject:h.ShortText({displayName:"Subject",description:"Only writable while the message is still a draft.",required:!1}),body:h.LongText({displayName:"Body",description:"Only writable while the message is still a draft.",required:!1}),bodyFormat:h.StaticDropdown({displayName:"Body Format",description:"Format of the new body. Ignored when no body is supplied.",required:!1,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}})},outputSchema:vt,async run(e){let{messageId:t,isRead:o,flagStatus:n,importance:r,subject:i,body:a,bodyFormat:c}=e.propsValue,u=e.propsValue.categoriesToAdd??[],l=e.propsValue.categoriesToRemove??[],d=_.createClient(e.auth),f=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`,p={};o!==void 0&&(p.isRead=o==="true"),n!==void 0&&(p.flag={flagStatus:n}),r!==void 0&&(p.importance=r),i!==void 0&&(p.subject=i),a!==void 0&&(p.body={content:a,contentType:c??"text"});let v=u.length>0||l.length>0;if(Object.keys(p).length===0&&!v)throw new Error("Updating the Outlook message failed: no fields were supplied, so there is nothing to change.");try{if(v){let T=(await d.api(`${f}?$select=id,categories`).get())?.categories??[],A=[...new Set([...T,...u])].filter(w=>!l.includes(w));p.categories=A}return await d.api(f).headers(x.textBodyHeaders).patch(p)}catch(b){throw x.graphError({error:b,operation:"Updating the Outlook message"})}}});var Nz=bx({displayName:"Microsoft Outlook",auth:S,minimumSupportedRelease:"0.88.2",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-outlook.png",categories:["PRODUCTIVITY"],authors:["lucaslimasouza","kishanprmr","sanket-a11y"],actions:[PE,fE,xE,mE,pE,vE,OE,yE,_E,gE,hE,lT,QE,vT,rT,dT,_T,UE,xT,yT,gT,JE,VE,BE,FE,ET,PT,mT,ME,qE,fT,DE,zE,$E,hT,uT,eT,KE,kE,GE,sT,iT,XE,jE,AT,ZE,NE,pT,cT,aT,LE,bT,HE,YE,oT,nT,qP({auth:S,baseUrl:s(e=>{let t=e.props?.cloud;return xo(t)+"/v1.0/"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[wE,SE,IE]});0&&(module.exports={microsoftOutlook});
67
+ `,u=_.createClient(e.auth),l={subject:n,body:{content:c,contentType:"html"},toRecipients:[{emailAddress:{address:o}}]};return await u.api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:l,saveToSentItems:!0}),e.run.waitForWaitpoint(i.id),{approved:!1}}catch(t){throw console.error("[RequestApprovalEmail] Error during BEGIN execution:",t),t}else return{approved:e.resumePayload.queryParams.action==="approve"}}});var $E=O({auth:S,name:"outlook_add_message_attachment",classification:"WRITE",displayName:"Add Attachment to Draft",description:"Attaches a file to a draft message.",audience:"ai",aiMetadata:{description:"Attaches one file to an existing draft message and returns the created attachment metadata without echoing the file bytes back. Only meaningful on drafts, and only for files under 3 MB; larger files need an upload session, which this piece does not expose yet. Pair it with Create Draft and Send Draft. Not idempotent: each call adds another attachment, even with the same file name.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Draft Message ID",description:"ID of the draft to attach the file to. Obtain it from Create Draft.",required:!0}),file:g.File({displayName:"File",description:"File to attach. Must be smaller than 3 MB.",required:!0}),fileName:g.ShortText({displayName:"File Name",description:"Name shown on the attachment. Defaults to the uploaded file name.",required:!1})},outputSchema:GA,async run(e){let{messageId:t,fileName:o}=e.propsValue,n=e.propsValue.file,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{let a=await r.api(`${i}/messages/${x.encodeGraphId(t)}/attachments`).post({"@odata.type":"#microsoft.graph.fileAttachment",name:o||n.filename,contentBytes:n.base64});return{messageId:t,id:a?.id??null,name:a?.name??null,contentType:a?.contentType??null,size:a?.size??null,isInline:a?.isInline??null,lastModifiedDateTime:a?.lastModifiedDateTime??null,attachmentType:a?.["@odata.type"]??null}}catch(a){throw x.graphError({error:a,operation:"Adding the attachment to the Outlook draft"})}}});var CE=O({auth:S,name:"outlook_add_message_categories",classification:"WRITE",displayName:"Add Categories to Message",description:"Adds categories (labels) to a message.",audience:"ai",aiMetadata:{description:"Adds one or more Outlook categories to a message, merging them with the categories already on it so nothing is overwritten. Use Remove Categories from Message for the inverse, and Update Message when other fields change too. Idempotent: re-adding the same categories leaves the message unchanged.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),categories:g.Array({displayName:"Categories",description:"Category names to add to the message.",required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`;try{let c=(await n.api(`${i}?$select=id,categories`).get())?.categories??[],u=[...new Set([...c,...o])];return await n.api(i).headers(x.textBodyHeaders).patch({categories:u})}catch(a){throw x.graphError({error:a,operation:"Adding categories to the Outlook message"})}}});var DE=20,Dz=15e3;function zz(e){return new Promise(t=>setTimeout(t,e))}s(zz,"delay");function Nz(e){let t=e.headers?.["Retry-After"]??e.headers?.["retry-after"],o=t?Number(t):NaN;return Number.isFinite(o)&&o>0?Math.min(o*1e3,Dz):2e3}s(Nz,"retryDelayMs");async function zE({client:e,requests:t}){return(await e.api("/$batch").post({requests:t}))?.responses??[]}s(zE,"postChunk");async function ea({client:e,requests:t}){let o=[];for(let n=0;n<t.length;n+=DE){let r=t.slice(n,n+DE),i=await zE({client:e,requests:r}),a=i.filter(f=>f.status===429);if(a.length===0){o.push(...i);continue}let c=Math.max(...a.map(f=>Nz(f)));await zz(c);let u=new Set(a.map(f=>f.id)),l=r.filter(f=>u.has(f.id)),d=await zE({client:e,requests:l}),h=new Map(d.map(f=>[f.id,f]));o.push(...i.map(f=>h.get(f.id)??f))}return o}s(ea,"runGraphBatch");function ta(e){let t=e.body;if(t&&typeof t=="object"&&"error"in t){let o=t.error,n=[o?.code,o?.message].filter(Boolean);if(n.length>0)return n.join(": ")}return typeof t=="string"&&t.length>0?t.slice(0,500):`Microsoft Graph returned HTTP ${e.status} for this item.`}s(ta,"describeBatchFailure");var NE=O({auth:S,name:"outlook_batch_move_messages",classification:"WRITE",displayName:"Batch Move Messages",description:"Moves several messages to one folder in a single batched call.",audience:"ai",aiMetadata:{description:"Moves many messages into the same destination folder using Microsoft Graph batching, in chunks of 20 sub-requests. Every moved message gets a NEW ID, returned per item, and the original IDs stop resolving. Individual items can fail while others succeed, so always read the failed list. Use Move Message for a single message. Not idempotent: a retry with the old IDs fails.",idempotent:!1},props:{messageIds:g.Array({displayName:"Message IDs",description:"IDs of the messages to move. Resolve them with List Messages or Search Messages.",required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:jA,async run(e){let{destinationFolderId:t}=e.propsValue,o=e.propsValue.messageIds??[];if(o.length===0)throw new Error("Batch moving Outlook messages failed: no message IDs were supplied.");let n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=o.map((a,c)=>({id:String(c+1),method:"POST",url:`${r}/messages/${x.encodeGraphId(a)}/move`,headers:{"Content-Type":"application/json"},body:{destinationId:t}}));try{let a=await ea({client:n,requests:i}),c=[],u=[];for(let l of a){let d=o[Number(l.id)-1];if(l.status>=200&&l.status<300){let h=l.body??{};c.push({messageId:d,newMessageId:h.id??null})}else u.push({messageId:d,status:l.status,error:ta(l)})}return{success:u.length===0,destinationFolderId:t,requestedCount:o.length,succeededCount:c.length,failedCount:u.length,succeeded:c,failed:u}}catch(a){throw x.graphError({error:a,operation:"Batch moving Outlook messages"})}}});var ME=O({auth:S,name:"outlook_batch_update_messages",classification:"WRITE",displayName:"Batch Update Messages",description:"Applies the same property changes to several messages at once.",audience:"ai",aiMetadata:{description:"Applies the same read state, flag, importance and category changes to many messages through Microsoft Graph batching, in chunks of 20 sub-requests. Fields left empty are never sent, and categories are merged per message against that message current categories, so tags on other messages are not wiped. Individual items can fail while others succeed, so always read the failed list. Idempotent: re-applying the same field values converges on the same state and creates no new entities.",idempotent:!0},props:{messageIds:g.Array({displayName:"Message IDs",description:"IDs of the messages to update. Resolve them with List Messages or Search Messages.",required:!0}),isRead:g.StaticDropdown({displayName:"Read State",description:"Leave unset to keep each message current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:g.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep each message current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:g.StaticDropdown({displayName:"Importance",description:"Leave unset to keep each message current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:g.Array({displayName:"Categories to Add",description:"Category names merged into the categories each message already has.",required:!1}),categoriesToRemove:g.Array({displayName:"Categories to Remove",description:"Category names removed from each message.",required:!1})},outputSchema:BA,async run(e){let{isRead:t,flagStatus:o,importance:n}=e.propsValue,r=e.propsValue.messageIds??[],i=e.propsValue.categoriesToAdd??[],a=e.propsValue.categoriesToRemove??[];if(r.length===0)throw new Error("Batch updating Outlook messages failed: no message IDs were supplied.");let c={};t!==void 0&&(c.isRead=t==="true"),o!==void 0&&(c.flag={flagStatus:o}),n!==void 0&&(c.importance=n);let u=i.length>0||a.length>0;if(Object.keys(c).length===0&&!u)throw new Error("Batch updating Outlook messages failed: no fields were supplied, so there is nothing to change.");let l=_.createClient(e.auth),d=_.mailboxPrefix(e.auth),h=[],f=new Map;try{if(u){let E=r.map((w,U)=>({id:String(U+1),method:"GET",url:`${d}/messages/${x.encodeGraphId(w)}?$select=id,categories`})),I=await ea({client:l,requests:E});for(let w of I){let U=r[Number(w.id)-1];if(w.status>=200&&w.status<300){let ue=(w.body??{}).categories??[];f.set(U,[...new Set([...ue,...i])].filter(Se=>!a.includes(Se)))}else h.push({messageId:U,status:w.status,error:ta(w)})}}let p=u?r.filter(E=>f.has(E)):r,v=p.map((E,I)=>({id:String(I+1),method:"PATCH",url:`${d}/messages/${x.encodeGraphId(E)}`,headers:{"Content-Type":"application/json"},body:u?{...c,categories:f.get(E)}:{...c}})),b=[];if(v.length>0){let E=await ea({client:l,requests:v});for(let I of E){let w=p[Number(I.id)-1];I.status>=200&&I.status<300?b.push({messageId:w}):h.push({messageId:w,status:I.status,error:ta(I)})}}return{success:h.length===0,requestedCount:r.length,succeededCount:b.length,failedCount:h.length,succeeded:b,failed:h}}catch(p){throw x.graphError({error:p,operation:"Batch updating Outlook messages"})}}});var UE=O({auth:S,name:"outlook_copy_mail_folder",classification:"WRITE",displayName:"Copy Mail Folder",description:"Copies a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Copies a mail folder, with its messages and sub-folders, under a destination folder and returns the new folder. Use Move Mail Folder when the original should not stay in place. Not idempotent: each call creates another copy.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:`Folder that will contain the copy. ${x.wellKnownFolderHint}`,required:!0})},outputSchema:tE,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceFolderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw x.graphError({error:i,operation:"Copying the Outlook mail folder"})}}});var LE=O({auth:S,name:"outlook_copy_message",classification:"WRITE",displayName:"Copy Message",description:"Copies a message into another mail folder.",audience:"ai",aiMetadata:{description:"Copies one message into another mail folder, leaving the original where it is, and returns the copy. The copy has a NEW message ID, returned as newMessageId. Use Move Message when the original should not stay behind. Not idempotent: each call creates one more copy.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:FA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw x.graphError({error:i,operation:"Copying the Outlook message"})}}});var FE=O({auth:S,name:"outlook_create_draft",classification:"WRITE",displayName:"Create Draft",description:"Creates an unsent draft message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft email in the mailbox (optionally inside a specific folder) and returns its message ID. Use this to stage a message for review, to attach files with Add Attachment to Draft, or before Send Draft; use Send Email to send in one step. Not idempotent: every call creates another draft.",idempotent:!1},props:{recipients:g.Array({displayName:"To Email(s)",required:!1}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),folderId:g.ShortText({displayName:"Folder ID",description:`Create the draft inside a specific folder. ${x.wellKnownFolderHint} Leave empty to use the Drafts folder.`,required:!1}),attachments:g.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},outputSchema:er,async run(e){let t=e.propsValue.recipients??[],o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c,folderId:u}=e.propsValue,l={subject:i,body:{content:a,contentType:c},toRecipients:t.map(p=>({emailAddress:{address:p}})),ccRecipients:o.map(p=>({emailAddress:{address:p}})),bccRecipients:n.map(p=>({emailAddress:{address:p}})),attachments:r.map(p=>({"@odata.type":"#microsoft.graph.fileAttachment",name:p.fileName||p.file.filename,contentBytes:p.file.base64}))},d=_.createClient(e.auth),h=_.mailboxPrefix(e.auth),f=u?`${h}/mailFolders/${x.encodeGraphId(u)}/messages`:`${h}/messages`;try{return await d.api(f).post(l)}catch(p){throw x.graphError({error:p,operation:"Creating the Outlook draft"})}}});var jE=O({auth:S,name:"outlook_create_focused_inbox_override",classification:"WRITE",displayName:"Create Focused Inbox Override",description:"Forces mail from a sender into the Focused or Other tab.",audience:"ai",aiMetadata:{description:"Pins future mail from one sender address to the Focused or the Other tab. Microsoft upserts by sender address: if an override already exists for that address, its classification is updated instead of a duplicate being created, and the stored display name is left untouched unless Sender Display Name is supplied. Idempotent for that reason. Use Update Focused Inbox Override when you already hold an override ID.",idempotent:!0},props:{senderEmailAddress:g.ShortText({displayName:"Sender Email Address",description:"SMTP address of the sender the override applies to.",required:!0}),classifyAs:g.StaticDropdown({displayName:"Classify As",required:!0,defaultValue:"focused",options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}}),senderName:g.ShortText({displayName:"Sender Display Name",description:"Optional display name stored alongside the override.",required:!1})},outputSchema:Wu,async run(e){let{senderEmailAddress:t,classifyAs:o,senderName:n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/inferenceClassification/overrides`).post({classifyAs:o,senderEmailAddress:{...n?{name:n}:{},address:t}})}catch(a){throw x.graphError({error:a,operation:"Creating the Focused Inbox override"})}}});var BE=O({auth:S,name:"outlook_create_forward_draft",classification:"WRITE",displayName:"Create Forward Draft",description:"Creates an unsent forward draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft that forwards an existing message to the given recipients, and returns the draft message ID so the forward can be edited before sending. Use Forward Message to send in one step, and Send Draft to dispatch this draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),recipients:g.Array({displayName:"To Email(s)",description:"Email addresses the draft will forward the message to.",required:!0}),comment:g.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:er,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/createForward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))})}catch(a){throw x.graphError({error:a,operation:"Creating the Outlook forward draft"})}}});var VE=O({auth:S,name:"outlook_create_mail_folder",classification:"WRITE",displayName:"Create Mail Folder",description:"Creates a mail folder, or returns the existing one with the same name.",audience:"ai",aiMetadata:{description:"Creates a mail folder at the top level or under a parent folder. It first queries the sibling folders by exact display name and returns the existing folder with created set to false when one already carries the same display name, so no duplicate folder is ever created. Idempotent: repeat calls return the same folder.",idempotent:!0},props:{displayName:g.ShortText({displayName:"Folder Name",description:"Display name of the folder to create.",required:!0}),parentFolderId:g.ShortText({displayName:"Parent Folder ID",description:`Create the folder under this parent. ${x.wellKnownFolderHint} Leave empty to create it at the top level.`,required:!1})},outputSchema:eE,async run(e){let{displayName:t,parentFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=o?`${r}/mailFolders/${x.encodeGraphId(o)}/childFolders`:`${r}/mailFolders`,a=t.trim();try{let u=((await n.api(`${i}?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$filter=${encodeURIComponent(`displayName eq '${a.replace(/'/g,"''")}'`)}`).get()).value??[]).find(d=>(d.displayName??"").toLowerCase()===a.toLowerCase());if(u)return{created:!1,folder:u,folderId:u.id??null};let l=await n.api(i).post({displayName:t});return{created:!0,folder:l,folderId:l?.id??null}}catch(c){throw x.graphError({error:c,operation:"Creating the Outlook mail folder"})}}});var HE=O({auth:S,name:"outlook_create_reply_all_draft",classification:"WRITE",displayName:"Create Reply-All Draft",description:"Creates an unsent reply-all draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft addressed to the sender and every other recipient of an existing message, and returns the draft message ID. Use Create Reply Draft to answer only the sender, or Reply All to Message to send immediately. Send it later with Send Draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:er,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/createReplyAll`).post({comment:o??""})}catch(i){throw x.graphError({error:i,operation:"Creating the Outlook reply-all draft"})}}});var ZE=O({auth:S,name:"outlook_create_reply_draft",classification:"WRITE",displayName:"Create Reply Draft",description:"Creates an unsent reply draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft reply to the sender of an existing message and returns the draft message ID. Use this when the reply needs editing, extra attachments or review before it goes out; use Reply to Message to send in one step, and Send Draft to dispatch the draft afterwards. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:er,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/createReply`).post({comment:o??""})}catch(i){throw x.graphError({error:i,operation:"Creating the Outlook reply draft"})}}});var qE=O({auth:S,name:"outlook_delete_focused_inbox_override",classification:"DESTRUCTIVE",displayName:"Delete Focused Inbox Override",description:"Removes a Focused Inbox sender override.",audience:"ai",aiMetadata:{description:"Deletes one Focused Inbox override so mail from that sender is classified by Outlook again. The override ID comes from List Focused Inbox Overrides. Not idempotent: repeating the call with the same ID fails once the override is gone.",idempotent:!1},props:{overrideId:g.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0})},outputSchema:iE,async run(e){let{overrideId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/inferenceClassification/overrides/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Focused Inbox override deleted.",overrideId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Focused Inbox override"})}}});var GE=O({auth:S,name:"outlook_delete_mail_folder",classification:"DESTRUCTIVE",displayName:"Delete Mail Folder",description:"Deletes a mail folder and everything inside it.",audience:"ai",aiMetadata:{description:"Deletes a mail folder together with every message and sub-folder it contains. Move messages out with Batch Move Messages first if they must be kept. Not idempotent: repeating the call with the same ID fails once the folder is gone.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:`${x.wellKnownFolderHint} Well-known system folders cannot be deleted.`,required:!0})},outputSchema:oE,async run(e){let{folderId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Mail folder deleted.",folderId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Outlook mail folder"})}}});var WE=O({auth:S,name:"outlook_delete_message",classification:"DESTRUCTIVE",displayName:"Delete Message (to Deleted Items)",description:"Moves a message to the Deleted Items folder.",audience:"ai",aiMetadata:{description:"Deletes one message by moving it to Deleted Items, where it stays recoverable. This is the safe delete to prefer; Permanently Delete Message is unrecoverable. Not idempotent: repeating the call with the same ID fails once the message has moved.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:VA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}`).delete(),{success:!0,message:"Message moved to Deleted Items.",messageId:t}}catch(r){throw x.graphError({error:r,operation:"Deleting the Outlook message"})}}});var KE=O({auth:S,name:"outlook_delete_message_attachment",classification:"DESTRUCTIVE",displayName:"Delete Message Attachment",description:"Removes an attachment from a message.",audience:"ai",aiMetadata:{description:"Removes one attachment from a message, typically a draft, and it cannot be restored afterwards. Resolve the attachment ID with List Message Attachments first. Not idempotent: repeating the call with the same ID fails once the attachment is gone.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments.",required:!0})},outputSchema:WA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}`).delete(),{success:!0,message:"Attachment deleted.",messageId:t,attachmentId:o}}catch(i){throw x.graphError({error:i,operation:"Deleting the Outlook message attachment"})}}});var JE=Fe(Ji());var XE=O({auth:S,name:"outlook_download_message_attachment",classification:"READ",displayName:"Download Message Attachment",description:"Downloads one file attachment of a message.",audience:"ai",aiMetadata:{description:"Downloads the bytes of a single file attachment and stores it for downstream steps. Only file attachments can be downloaded; item attachments (an attached email or event) and reference attachments (a cloud link) are rejected with an explanatory error, so check the attachment kind with List Message Attachments first. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:qA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}`,a;try{a=await n.api(`${i}?$select=${x.attachmentSelect}`).get()}catch(u){throw x.graphError({error:u,operation:"Reading the Outlook attachment before download"})}let c=a?.["@odata.type"]??"";if(c!=="#microsoft.graph.fileAttachment")throw new Error(`Downloading the Outlook attachment failed: this attachment is a ${c||"non-file attachment"}, and only #microsoft.graph.fileAttachment items expose downloadable bytes. Use List Message Attachments to find a file attachment on this message.`);try{let u=await n.api(`${i}/$value`).responseType(JE.ResponseType.ARRAYBUFFER).get(),l=Buffer.isBuffer(u)?u:Buffer.from(u),d=a?.name??"attachment",h=await e.files.write({fileName:d,data:l});return{messageId:t,attachmentId:o,fileName:d,contentType:a?.contentType??null,size:l.length,file:h}}catch(u){throw x.graphError({error:u,operation:"Downloading the Outlook message attachment"})}}});var YE=O({auth:S,name:"outlook_forward_message",classification:"WRITE",displayName:"Forward Message",description:"Forwards a message to new recipients.",audience:"ai",aiMetadata:{description:"Forwards an existing message to new recipients, keeping the original body and attachments and prepending an optional comment. Use Create Forward Draft when the forward should be edited before sending. Not idempotent: each call sends another forwarded copy.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),recipients:g.Array({displayName:"To Email(s)",description:"Email addresses to forward the message to.",required:!0}),comment:g.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:mE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/forward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))}),{success:!0,message:"Message forwarded successfully.",messageId:t,recipients:n}}catch(a){throw x.graphError({error:a,operation:"Forwarding the Outlook message"})}}});var QE=O({auth:S,name:"outlook_get_mail_folder",classification:"READ",displayName:"Get Mail Folder",description:"Reads one mail folder by ID or well-known name.",audience:"ai",aiMetadata:{description:"Reads a single mail folder and returns its display name, parent, child count and unread and total item counts. Accepts either an opaque folder ID or a well-known name such as inbox or drafts, which makes it the cheapest way to resolve a standard folder ID. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0,defaultValue:"inbox"})},outputSchema:KA,async run(e){let{folderId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${x.encodeGraphId(t)}?$select=${x.mailFolderSelect}`).get()}catch(r){throw x.graphError({error:r,operation:"Reading the Outlook mail folder"})}}});var Mz="automaticReplies, mailboxFullStatus, customMailTip, externalMemberCount, maxMessageSize, deliveryRestriction, moderationStatus, recipientScope, totalMemberCount",eT=O({auth:S,name:"outlook_get_mail_tips",classification:"READ",displayName:"Get Mail Tips",description:"Reads pre-send mail tips for a set of recipients.",audience:"ai",aiMetadata:{description:"Checks recipients before sending and reports automatic replies or out-of-office messages, full mailboxes, maximum accepted message size, delivery restrictions, moderation and whether the recipient is external. Use this ahead of Send Email when a message is important or goes outside the organisation. Read-only and safe to retry.",idempotent:!0},props:{emailAddresses:g.Array({displayName:"Recipient Email Addresses",description:"Addresses to check. Up to 100 recipients per call.",required:!0})},outputSchema:aE,async run(e){let t=e.propsValue.emailAddresses;if(t.length===0)throw new Error("Reading Outlook mail tips failed: no recipient addresses were supplied.");let o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/getMailTips`).post({EmailAddresses:t,MailTipsOptions:Mz}))?.value??[];return{mailTips:i,count:i.length}}catch(r){throw x.graphError({error:r,operation:"Reading Outlook mail tips"})}}});var tT=O({auth:S,name:"outlook_get_message",classification:"READ",displayName:"Get Message",description:"Retrieves a single message by its ID.",audience:"ai",aiMetadata:{description:"Reads one Outlook message by ID and returns its headers, plain-text body and metadata. Use this after List Messages or Search Messages to inspect a specific email; use Get Message MIME Content when you need the raw RFC-822 source. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}`).headers(x.textBodyHeaders).get()}catch(r){throw x.graphError({error:r,operation:"Reading the Outlook message"})}}});var rT=O({auth:S,name:"outlook_get_message_attachment",classification:"READ",displayName:"Get Message Attachment",description:"Reads the metadata of one attachment.",audience:"ai",aiMetadata:{description:"Returns the metadata of a single attachment (name, content type, size, inline flag and attachment kind) without transferring the file bytes. Use Download Message Attachment when the file content itself is needed, and List Message Attachments to discover attachment IDs. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:ZA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/attachments/${x.encodeGraphId(o)}?$select=${x.attachmentSelect}`).get();return{messageId:t,id:i?.id??null,name:i?.name??null,contentType:i?.contentType??null,size:i?.size??null,isInline:i?.isInline??null,lastModifiedDateTime:i?.lastModifiedDateTime??null,attachmentType:i?.["@odata.type"]??null}}catch(i){throw x.graphError({error:i,operation:"Reading the Outlook message attachment"})}}});var oT=Fe(Ji());var nT=O({auth:S,name:"outlook_get_message_mime",classification:"READ",displayName:"Get Message MIME Content",description:"Downloads the raw MIME (RFC-822) content of a message.",audience:"ai",aiMetadata:{description:"Stores the raw RFC-822 MIME source of one Outlook message, including full internet headers, as a byte-exact .eml file and returns that file plus its size. The content is not returned inline, because MIME can carry 8-bit and non-UTF-8 bytes that no text field round-trips; read the file when you need the headers. Use this for archival or forensic inspection; use Get Message when the parsed fields are enough. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:UA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let r=await o.api(`${n}/messages/${x.encodeGraphId(t)}/$value`).responseType(oT.ResponseType.ARRAYBUFFER).get(),i=Buffer.isBuffer(r)?r:Buffer.from(r),a="message.eml",c=await e.files.write({fileName:a,data:i});return{messageId:t,fileName:a,contentType:"message/rfc822",size:i.length,file:c}}catch(r){throw x.graphError({error:r,operation:"Downloading the Outlook message MIME content"})}}});var iT=O({auth:S,name:"outlook_get_my_profile",classification:"READ",displayName:"Get My Profile",description:"Reads the identity of the connected account.",audience:"ai",aiMetadata:{description:"Returns the identity behind the connection: display name, primary email address and user principal name. Use this to learn your own address before composing mail, filtering a thread or deciding whether a sender is you. On app-only connections it reports the configured mailbox without calling Microsoft Graph, because reading another user profile would need a directory permission this piece does not request. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:sE,async run(e){if(x.isAppOnlyConnection(e.auth)){let o=x.getConfiguredMailbox(e.auth);return{id:null,displayName:null,mail:o,userPrincipalName:o,source:"connection-mailbox"}}let t=_.createClient(e.auth);try{let o=await t.api("/me?$select=id,displayName,mail,userPrincipalName").get();return{id:o?.id??null,displayName:o?.displayName??null,mail:o?.mail??null,userPrincipalName:o?.userPrincipalName??null,source:"graph"}}catch(o){throw x.graphError({error:o,operation:"Reading the Outlook profile"})}}});var aT=O({auth:S,name:"outlook_get_supported_time_zones",classification:"READ",displayName:"Get Supported Time Zones",description:"Lists the time zones Outlook accepts for this account.",audience:"ai",aiMetadata:{description:"Lists the time zone names Outlook accepts, so a time zone string can be validated before it is used elsewhere. Works on delegated connections only: Microsoft exposes no application permission for it, so app-only connections are rejected with an explanatory error. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:cE,async run(e){if(x.isAppOnlyConnection(e.auth))throw new Error("Listing the supported time zones is available on delegated Outlook connections only. Microsoft Graph exposes no application permission for this endpoint, so an app-only connection with a configured mailbox cannot call it.");let t=_.createClient(e.auth),o=_.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/outlook/supportedTimeZones`).get()).value??[];return{timeZones:r,count:r.length}}catch(n){throw x.graphError({error:n,operation:"Listing the supported Outlook time zones"})}}});var sT=O({auth:S,name:"outlook_list_child_mail_folders",classification:"SEARCH",displayName:"List Child Mail Folders",description:"Lists the sub-folders of one mail folder.",audience:"ai",aiMetadata:{description:"Lists the direct sub-folders of a given mail folder, including hidden ones, so nested hierarchies can be walked one level at a time. Use List Mail Folders for the top level; a child folder ID works anywhere a folder ID is accepted. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Parent Folder ID",description:x.wellKnownFolderHint,required:!0,defaultValue:"inbox"}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:YA,async run(e){let{folderId:t,maxResults:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=Math.min(Math.max(o??50,1),100);try{let a=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/childFolders?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$top=${i}`).get(),c=a.value??[],u=a["@odata.nextLink"];return{parentFolderId:t,folders:c,count:c.length,hasMore:!!u,nextLink:u??null}}catch(a){throw x.graphError({error:a,operation:"Listing the Outlook child mail folders"})}}});var cT=O({auth:S,name:"outlook_list_focused_inbox_overrides",classification:"SEARCH",displayName:"List Focused Inbox Overrides",description:"Lists the Focused Inbox sender overrides of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the Focused Inbox overrides that force mail from specific senders into the Focused or Other tab, with the override ID for each sender. Run this first: Update Focused Inbox Override and Delete Focused Inbox Override both need an ID that only this action returns. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:nE,async run(e){let t=_.createClient(e.auth),o=_.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/inferenceClassification/overrides`).get()).value??[];return{overrides:r,count:r.length}}catch(n){throw x.graphError({error:n,operation:"Listing the Focused Inbox overrides"})}}});var uT=O({auth:S,name:"outlook_list_mail_folders",classification:"SEARCH",displayName:"List Mail Folders",description:"Lists the top-level mail folders of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the top-level mail folders with their IDs, display names and item counts, including hidden folders. Use this to resolve a folder ID before moving, copying or listing messages; use List Child Mail Folders to walk deeper into the tree. Read-only and safe to retry.",idempotent:!0},props:{maxResults:g.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:XA,async run(e){let{maxResults:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth),r=Math.min(Math.max(t??50,1),100);try{let i=await o.api(`${n}/mailFolders?includeHiddenFolders=true&$select=${x.mailFolderSelect}&$top=${r}`).get(),a=i.value??[],c=i["@odata.nextLink"];return{folders:a,count:a.length,hasMore:!!c,nextLink:c??null}}catch(i){throw x.graphError({error:i,operation:"Listing the Outlook mail folders"})}}});var lT=O({auth:S,name:"outlook_list_mail_folders_delta",classification:"SEARCH",displayName:"List Folder Changes (Delta)",description:"Tracks created, renamed and deleted mail folders.",audience:"ai",aiMetadata:{description:"Returns the mail folders created, renamed or removed since a previous delta link, plus a fresh delta link for the next call. Use this to keep a folder tree in sync instead of re-listing it; it pairs with List Message Changes (Delta) for messages. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the folder was deleted and only its id and removedReason are meaningful. Read-only and safe to retry.",idempotent:!0},props:{deltaLink:g.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder tree. ${x.deltaLinkHint}`,required:!1})},outputSchema:QA,async run(e){let{deltaLink:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth),r="Listing the Outlook mail folder changes",i=`${n}/mailFolders/delta`,a=t?x.resolveDeltaUrl({auth:e.auth,deltaLink:t,expectedPath:i,operation:r}):i;try{let c=await o.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(h=>x.withDeltaRemoval(h)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw x.graphError({error:c,operation:r})}}});var dT=O({auth:S,name:"outlook_list_message_attachments",classification:"SEARCH",displayName:"List Message Attachments",description:"Lists the attachments of a message without downloading them.",audience:"ai",aiMetadata:{description:"Lists every attachment on one message with its ID, name, content type, size and kind, without transferring any file bytes. Use this first to pick an attachment ID for Download Message Attachment or Get Message Attachment. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0})},outputSchema:HA,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/messages/${x.encodeGraphId(t)}/attachments?$select=${x.attachmentSelect}`).get()).value??[];return{messageId:t,attachments:i.map(a=>({id:a.id??null,name:a.name??null,contentType:a.contentType??null,size:a.size??null,isInline:a.isInline??null,lastModifiedDateTime:a.lastModifiedDateTime??null,attachmentType:a["@odata.type"]??null})),count:i.length}}catch(r){throw x.graphError({error:r,operation:"Listing the Outlook message attachments"})}}});var pT=O({auth:S,name:"outlook_list_messages",classification:"SEARCH",displayName:"List Messages",description:"Lists messages from the mailbox or a single mail folder.",audience:"ai",aiMetadata:{description:"Enumerates Outlook messages, optionally scoped to one mail folder and narrowed by an OData $filter expression, and returns their IDs and headers. Use this to discover message IDs for other actions; use Search Messages instead when you only have free-text keywords. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:`Limit the listing to one folder. ${x.wellKnownFolderHint} Leave empty to list the whole mailbox.`,required:!1}),filter:g.ShortText({displayName:"Filter",description:"Optional OData $filter expression, for example: isRead eq false, or receivedDateTime ge 2024-01-01T00:00:00Z.",required:!1}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of messages to return (1-100).",required:!1,defaultValue:25}),skip:g.Number({displayName:"Skip",description:"Number of messages to skip before returning results, for paging.",required:!1})},outputSchema:zA,async run(e){let{folderId:t,filter:o,maxResults:n,skip:r}=e.propsValue,i=_.createClient(e.auth),a=_.mailboxPrefix(e.auth),c=t?`${a}/mailFolders/${x.encodeGraphId(t)}/messages`:`${a}/messages`,u=Math.min(Math.max(n??25,1),100),l=[`$select=${x.messageSelect}`,`$top=${u}`];o?l.push(`$filter=${encodeURIComponent(o)}`):l.push("$orderby=receivedDateTime%20desc"),r!==void 0&&r>0&&l.push(`$skip=${Math.floor(r)}`);try{let d=await i.api(`${c}?${l.join("&")}`).headers(x.textBodyHeaders).get(),h=d.value??[],f=d["@odata.nextLink"];return{messages:h,count:h.length,hasMore:!!f,nextLink:f??null}}catch(d){throw x.graphError({error:d,operation:"Listing Outlook messages"})}}});var mT=O({auth:S,name:"outlook_list_messages_delta",classification:"SEARCH",displayName:"List Message Changes (Delta)",description:"Tracks created, updated and deleted messages in a folder.",audience:"ai",aiMetadata:{description:"Returns the messages added, changed or removed in one mail folder since a previous delta link, plus a fresh delta link for the next call. Use this for incremental sync instead of re-listing a folder; a first call without a delta link returns the current contents. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the item was deleted and only its id and removedReason are meaningful. Delta payloads omit message bodies and attachments, so follow up with Get Message for full content. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:`Folder to track. ${x.wellKnownFolderHint}`,required:!0,defaultValue:"inbox"}),deltaLink:g.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder state. ${x.deltaLinkHint}`,required:!1})},outputSchema:MA,async run(e){let{folderId:t,deltaLink:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i="Listing Outlook message changes",a=o?x.resolveDeltaUrl({auth:e.auth,deltaLink:o,expectedPath:`${r}/mailFolders/*/messages/delta`,operation:i}):`${r}/mailFolders/${x.encodeGraphId(t)}/messages/delta?$select=${x.messageSelect}`;try{let c=await n.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(h=>x.withDeltaRemoval(h)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw x.graphError({error:c,operation:i})}}});var fT=O({auth:S,name:"outlook_move_mail_folder",classification:"WRITE",displayName:"Move Mail Folder",description:"Moves a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Reparents a mail folder, moving it with its messages and sub-folders under a different destination folder. Use Copy Mail Folder to duplicate instead of relocating, and Rename Mail Folder to change only its name. The move issues the folder a new ID: carry newFolderId forward into later steps, not the folderId that was passed in. Not idempotent: once moved, the same call repeated against the old parent no longer applies.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:`New parent folder. ${x.wellKnownFolderHint}`,required:!0})},outputSchema:rE,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,folderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw x.graphError({error:i,operation:"Moving the Outlook mail folder"})}}});var gT=O({auth:S,name:"outlook_move_message",classification:"WRITE",displayName:"Move Message",description:"Moves a message to another mail folder.",audience:"ai",aiMetadata:{description:"Moves one message into another mail folder and returns the moved copy. The move mints a NEW message ID: the original ID stops resolving, so use the returned newMessageId for any follow-up step. Use Copy Message to leave the original in place, or Batch Move Messages for many messages. Not idempotent: a retry with the old ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:x.wellKnownFolderHint,required:!0})},outputSchema:LA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${x.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,previousMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw x.graphError({error:i,operation:"Moving the Outlook message"})}}});var hT=O({auth:S,name:"outlook_permanently_delete_message",classification:"DESTRUCTIVE",displayName:"Permanently Delete Message",description:"Permanently deletes a message so it cannot be recovered.",audience:"ai",aiMetadata:{description:"Permanently removes one message from the mailbox with no way to recover it, bypassing Deleted Items. Prefer Delete Message (to Deleted Items) in every case where recovery might be wanted; only use this when the caller explicitly asked for unrecoverable deletion. Unavailable on US Government DoD and 21Vianet clouds. Not idempotent: a retry with the same ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),confirm:g.Checkbox({displayName:"Confirm Permanent Deletion",description:"Must be enabled. The message cannot be recovered afterwards.",required:!0,defaultValue:!1})},async run(e){let{messageId:t,confirm:o}=e.propsValue;if(!o)throw new Error("Permanently deleting the Outlook message was refused: enable Confirm Permanent Deletion to proceed, or use Delete Message (to Deleted Items) instead.");if(x.isGovernmentCloud(e.auth))throw new Error("Permanently deleting the Outlook message is not available on the US Government cloud. Use Delete Message (to Deleted Items) instead.");let n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth),i=x.encodeGraphId(t);try{return await n.api(`${r}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(a){if(!(r==="/me"&&x.isUnsupportedMePathError(a)))throw x.graphError({error:a,operation:"Permanently deleting the Outlook message"});try{let l=(await n.api("/me?$select=id").get())?.id;if(!l)throw x.graphError({error:a,operation:"Permanently deleting the Outlook message"});return await n.api(`/users/${x.encodeGraphId(l)}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(u){throw x.graphError({error:u,operation:`Permanently deleting the Outlook message (retried against /users/{id} after the /me path was rejected with: ${x.graphErrorDetail(a)})`})}}}});var yT=O({auth:S,name:"outlook_remove_message_categories",classification:"WRITE",displayName:"Remove Categories from Message",description:"Removes categories (labels) from a message.",audience:"ai",aiMetadata:{description:"Removes one or more Outlook categories from a message while leaving its other categories intact. Use Add Categories to Message for the inverse, and Update Message when other fields change too. Idempotent: removing a category the message does not have changes nothing.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),categories:g.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!0})},outputSchema:vt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=_.createClient(e.auth),i=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`;try{let u=((await n.api(`${i}?$select=id,categories`).get())?.categories??[]).filter(l=>!o.includes(l));return await n.api(i).headers(x.textBodyHeaders).patch({categories:u})}catch(a){throw x.graphError({error:a,operation:"Removing categories from the Outlook message"})}}});var vT=O({auth:S,name:"outlook_reply_all_to_message",classification:"WRITE",displayName:"Reply All to Message",description:"Replies to the sender and all recipients of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender and every other recipient of an existing message. Use Reply to Message to answer the sender only, or Create Reply-All Draft when the reply must be reviewed first. Not idempotent: each call sends another reply to everyone on the thread.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0})},outputSchema:pE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}/replyAll`).post({comment:o}),{success:!0,message:"Reply-all sent successfully.",messageId:t}}catch(i){throw x.graphError({error:i,operation:"Replying to all recipients of the Outlook message"})}}});var xT=O({auth:S,name:"outlook_reply_to_message",classification:"WRITE",displayName:"Reply to Message",description:"Replies to the sender of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender of an existing message, quoting the original thread. Use Reply All to Message to include every original recipient, or Create Reply Draft when the reply must be reviewed before sending. Not idempotent: each call sends another reply.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0}),ccRecipients:g.Array({displayName:"Additional CC Email(s)",required:!1})},outputSchema:dE,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.ccRecipients??[],r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a={comment:o};n.length>0&&(a.message={ccRecipients:n.map(c=>({emailAddress:{address:c}}))});try{return await r.api(`${i}/messages/${x.encodeGraphId(t)}/reply`).post(a),{success:!0,message:"Reply sent successfully.",messageId:t}}catch(c){throw x.graphError({error:c,operation:"Replying to the Outlook message"})}}});var kg=Fe(zo());var _T=O({auth:S,name:"outlook_search_messages",classification:"SEARCH",displayName:"Search Messages",description:"Searches messages with a full-text query.",audience:"ai",aiMetadata:{description:"Runs a full-text Outlook search (KQL terms such as from:jane@contoso.com, subject:invoice or hasAttachments:true), optionally inside one folder, and returns matching messages newest first. Pick this when you have keywords; use List Messages when you need an exact OData filter or paging. Search cannot be combined with filters or server-side sorting, and is unreliable on personal Microsoft accounts. Read-only and safe to retry.",idempotent:!0},props:{searchQuery:g.ShortText({displayName:"Search Query",description:"Keywords or KQL terms to match, for example: from:john@example.com, subject:urgent, hasAttachments:true.",required:!0}),folderId:g.ShortText({displayName:"Folder ID",description:`Search inside one folder only. ${x.wellKnownFolderHint} Leave empty to search the whole mailbox.`,required:!1}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of results to return (1-1000).",required:!1,defaultValue:25})},outputSchema:NA,async run(e){let{searchQuery:t,folderId:o,maxResults:n}=e.propsValue,r=_.createClient(e.auth),i=_.mailboxPrefix(e.auth),a=o?`${i}/mailFolders/${x.encodeGraphId(o)}/messages`:`${i}/messages`,c=Math.min(Math.max(n??25,1),1e3),u=`${a}?$search=${encodeURIComponent(`"${t}"`)}&$top=${c}`;try{let l=await r.api(u).headers({ConsistencyLevel:"eventual",...x.textBodyHeaders}).get(),d=l.value??[];d.sort((f,p)=>(0,kg.default)(p.receivedDateTime).valueOf()-(0,kg.default)(f.receivedDateTime).valueOf());let h=l["@odata.nextLink"];return{found:d.length>0,messages:d,count:d.length,hasMore:!!h,nextLink:h??null}}catch(l){throw x.graphError({error:l,operation:"Searching Outlook messages"})}}});var PT=O({auth:S,name:"outlook_send_draft",classification:"WRITE",displayName:"Send Draft",description:"Sends an existing draft message.",audience:"ai",aiMetadata:{description:"Sends a draft that already exists in the mailbox, identified by its message ID. Use this after Create Draft, Create Reply Draft, Create Reply-All Draft or Create Forward Draft. Not idempotent: the draft stops existing once sent, so a repeat call with the same ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Draft Message ID",description:"ID of the draft to send. Obtain it from Create Draft or one of the Create ... Draft actions.",required:!0})},outputSchema:lE,async run(e){let{messageId:t}=e.propsValue,o=_.createClient(e.auth),n=_.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${x.encodeGraphId(t)}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}catch(r){throw x.graphError({error:r,operation:"Sending the Outlook draft"})}}});var bT=O({auth:S,name:"outlook_send_email",classification:"WRITE",displayName:"Send Email",description:"Composes and sends a new email.",audience:"ai",aiMetadata:{description:"Composes and immediately sends a brand new email from the connected Outlook mailbox, with optional CC, BCC and attachments, and saves a copy in Sent Items. Use Reply to Message or Forward Message instead when responding to existing mail, and Create Draft when the message should be staged rather than sent. Not idempotent: every call dispatches another email.",idempotent:!1},props:{recipients:g.Array({displayName:"To Email(s)",description:"Email addresses of the primary recipients.",required:!0}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},outputSchema:uE,async run(e){let t=e.propsValue.recipients,o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c}=e.propsValue,u={subject:i,body:{content:a,contentType:c},toRecipients:t.map(d=>({emailAddress:{address:d}})),ccRecipients:o.map(d=>({emailAddress:{address:d}})),bccRecipients:n.map(d=>({emailAddress:{address:d}})),attachments:r.map(d=>({"@odata.type":"#microsoft.graph.fileAttachment",name:d.fileName||d.file.filename,contentBytes:d.file.base64}))},l=_.createClient(e.auth);try{return await l.api(`${_.mailboxPrefix(e.auth)}/sendMail`).post({message:u,saveToSentItems:"true"}),{success:!0,message:"Email sent successfully.",subject:i,recipients:t}}catch(d){throw x.graphError({error:d,operation:"Sending the Outlook email"})}}});var AT=O({auth:S,name:"outlook_set_message_read_status",classification:"WRITE",displayName:"Mark Message Read / Unread",description:"Marks a message as read or unread.",audience:"ai",aiMetadata:{description:"Sets only the read state of one message, leaving every other property untouched. Use this for the common mark-as-read step; use Update Message when other fields change too, or Batch Update Messages for many messages at once. Idempotent: re-applying the same state changes nothing.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),isRead:g.StaticDropdown({displayName:"Read State",required:!0,defaultValue:"true",options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}})},outputSchema:vt,async run(e){let{messageId:t,isRead:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${x.encodeGraphId(t)}`).headers(x.textBodyHeaders).patch({isRead:o==="true"})}catch(i){throw x.graphError({error:i,operation:"Updating the read state of the Outlook message"})}}});var ET=O({auth:S,name:"outlook_update_focused_inbox_override",classification:"WRITE",displayName:"Update Focused Inbox Override",description:"Changes the classification of a Focused Inbox override.",audience:"ai",aiMetadata:{description:"Switches an existing Focused Inbox override between the Focused and Other tabs. The classification is the only writable property, and the override ID comes from List Focused Inbox Overrides. Idempotent: applying the same classification again changes nothing.",idempotent:!0},props:{overrideId:g.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0}),classifyAs:g.StaticDropdown({displayName:"Classify As",required:!0,options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}})},outputSchema:Wu,async run(e){let{overrideId:t,classifyAs:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/inferenceClassification/overrides/${x.encodeGraphId(t)}`).patch({classifyAs:o})}catch(i){throw x.graphError({error:i,operation:"Updating the Focused Inbox override"})}}});var TT=O({auth:S,name:"outlook_update_mail_folder",classification:"WRITE",displayName:"Rename Mail Folder",description:"Renames a mail folder.",audience:"ai",aiMetadata:{description:"Renames a mail folder. The display name is the only writable property of a folder, so use Move Mail Folder to change its parent and Create Mail Folder to add a new one. Idempotent: applying the same name again changes nothing.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:x.wellKnownFolderHint,required:!0}),displayName:g.ShortText({displayName:"New Folder Name",required:!0})},outputSchema:JA,async run(e){let{folderId:t,displayName:o}=e.propsValue,n=_.createClient(e.auth),r=_.mailboxPrefix(e.auth);try{return await n.api(`${r}/mailFolders/${x.encodeGraphId(t)}`).patch({displayName:o})}catch(i){throw x.graphError({error:i,operation:"Renaming the Outlook mail folder"})}}});var IT=O({auth:S,name:"outlook_update_message",classification:"WRITE",displayName:"Update Message",description:"Updates the writable properties of a message.",audience:"ai",aiMetadata:{description:"Updates one message in place: read state, flag state, importance and categories on any message, plus subject and body on a draft. Fields left empty are not sent, and categories are merged with the ones already on the message instead of replacing them. Use Mark Message Read / Unread for the read flag alone, or Batch Update Messages for many messages at once. Idempotent: re-applying the same values converges on the same state.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:x.messageIdHint,required:!0}),isRead:g.StaticDropdown({displayName:"Read State",description:"Leave unset to keep the current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:g.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep the current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:g.StaticDropdown({displayName:"Importance",description:"Leave unset to keep the current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:g.Array({displayName:"Categories to Add",description:"Category names to add, merged with the categories already on the message.",required:!1}),categoriesToRemove:g.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!1}),subject:g.ShortText({displayName:"Subject",description:"Only writable while the message is still a draft.",required:!1}),body:g.LongText({displayName:"Body",description:"Only writable while the message is still a draft.",required:!1}),bodyFormat:g.StaticDropdown({displayName:"Body Format",description:"Format of the new body. Ignored when no body is supplied.",required:!1,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}})},outputSchema:vt,async run(e){let{messageId:t,isRead:o,flagStatus:n,importance:r,subject:i,body:a,bodyFormat:c}=e.propsValue,u=e.propsValue.categoriesToAdd??[],l=e.propsValue.categoriesToRemove??[],d=_.createClient(e.auth),f=`${_.mailboxPrefix(e.auth)}/messages/${x.encodeGraphId(t)}`,p={};o!==void 0&&(p.isRead=o==="true"),n!==void 0&&(p.flag={flagStatus:n}),r!==void 0&&(p.importance=r),i!==void 0&&(p.subject=i),a!==void 0&&(p.body={content:a,contentType:c??"text"});let v=u.length>0||l.length>0;if(Object.keys(p).length===0&&!v)throw new Error("Updating the Outlook message failed: no fields were supplied, so there is nothing to change.");try{if(v){let E=(await d.api(`${f}?$select=id,categories`).get())?.categories??[],I=[...new Set([...E,...u])].filter(w=>!l.includes(w));p.categories=I}return await d.api(f).headers(x.textBodyHeaders).patch(p)}catch(b){throw x.graphError({error:b,operation:"Updating the Outlook message"})}}});var Uz=Ex({displayName:"Microsoft Outlook",auth:S,minimumSupportedRelease:"0.88.2",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-outlook.png",categories:["PRODUCTIVITY"],authors:["lucaslimasouza","kishanprmr","sanket-a11y"],actions:[AE,hE,PE,gE,fE,_E,RE,xE,bE,vE,yE,pT,tT,_T,nT,mT,bT,FE,PT,xT,vT,YE,ZE,HE,BE,IT,AT,gT,LE,WE,hT,NE,ME,CE,yT,dT,rT,XE,$E,KE,uT,sT,QE,VE,TT,GE,UE,fT,lT,cT,jE,ET,qE,eT,iT,aT,WP({auth:S,baseUrl:s(e=>{let t=e.props?.cloud;return xo(t)+"/v1.0/"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[kE,OE,wE]});0&&(module.exports={microsoftOutlook});
68
68
  /*! Bundled license information:
69
69
 
70
70
  mime-types/index.js: